/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AnimationEvent } from '@angular/animations'; import { FocusTrapFactory } from '@angular/cdk/a11y'; import { OverlayRef } from '@angular/cdk/overlay'; import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal'; import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core'; import { NzConfigService } from 'ng-zorro-antd/core/config'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { Subject } from 'rxjs'; import { NzModalRef } from './modal-ref'; import { ModalOptions } from './modal-types'; export declare function throwNzModalContentAlreadyAttachedError(): never; export declare class BaseModalContainerComponent extends BasePortalOutlet implements OnDestroy { protected elementRef: ElementRef; protected focusTrapFactory: FocusTrapFactory; cdr: ChangeDetectorRef; protected render: Renderer2; protected overlayRef: OverlayRef; protected nzConfigService: NzConfigService; config: ModalOptions; protected animationType?: string | undefined; portalOutlet: CdkPortalOutlet; modalElementRef: ElementRef; animationStateChanged: EventEmitter; containerClick: EventEmitter; cancelTriggered: EventEmitter; okTriggered: EventEmitter; state: 'void' | 'enter' | 'exit'; document: Document; modalRef: NzModalRef; isStringContent: boolean; private elementFocusedBeforeModalWasOpened; private focusTrap; private mouseDown; private oldMaskStyle; protected destroy$: Subject; get showMask(): boolean; get maskClosable(): boolean; constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, cdr: ChangeDetectorRef, render: Renderer2, overlayRef: OverlayRef, nzConfigService: NzConfigService, config: ModalOptions, document?: NzSafeAny, animationType?: string | undefined); onContainerClick(e: MouseEvent): void; onMousedown(): void; onMouseup(): void; onCloseClick(): void; onOkClick(): void; attachComponentPortal(portal: ComponentPortal): ComponentRef; attachTemplatePortal(portal: TemplatePortal): EmbeddedViewRef; attachStringContent(): void; getNativeElement(): HTMLElement; private animationDisabled; private setModalTransformOrigin; private savePreviouslyFocusedElement; private trapFocus; private restoreFocus; private setEnterAnimationClass; private setExitAnimationClass; private setMaskExitAnimationClass; private cleanAnimationClass; bindBackdropStyle(): void; private setContainer; private resetContainer; /** * Set the container element. * @deprecated Not supported. * @breaking-change 11.0.0 */ private getContainer; updateMaskClassname(): void; onAnimationDone(event: AnimationEvent): void; onAnimationStart(event: AnimationEvent): void; startExitAnimation(): void; ngOnDestroy(): void; }