/** * 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 { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, TemplateRef, Type, ViewContainerRef } from '@angular/core'; import { Observable } from 'rxjs'; import { NzButtonType } from 'ng-zorro-antd/button'; import { BooleanInput, NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzModalLegacyAPI } from './modal-legacy-api'; import { NzModalRef } from './modal-ref'; import { ModalButtonOptions, ModalOptions, ModalTypes, OnClickCallback, StyleObjectLike } from './modal-types'; import { NzModalService } from './modal.service'; import * as i0 from "@angular/core"; export declare class NzModalComponent implements OnChanges, NzModalLegacyAPI, OnDestroy { private cdr; private modal; private viewContainerRef; static ngAcceptInputType_nzMask: BooleanInput; static ngAcceptInputType_nzMaskClosable: BooleanInput; static ngAcceptInputType_nzCloseOnNavigation: BooleanInput; static ngAcceptInputType_nzVisible: BooleanInput; static ngAcceptInputType_nzClosable: BooleanInput; static ngAcceptInputType_nzOkLoading: BooleanInput; static ngAcceptInputType_nzOkDisabled: BooleanInput; static ngAcceptInputType_nzCancelDisabled: BooleanInput; static ngAcceptInputType_nzCancelLoading: BooleanInput; static ngAcceptInputType_nzKeyboard: BooleanInput; static ngAcceptInputType_nzNoAnimation: BooleanInput; static ngAcceptInputType_nzOkDanger: BooleanInput; static ngAcceptInputType_nzCentered: BooleanInput; static ngAcceptInputType_nzDraggable: BooleanInput; nzMask?: boolean; nzMaskClosable?: boolean; nzCloseOnNavigation?: boolean; nzVisible: boolean; nzClosable: boolean; nzOkLoading: boolean; nzOkDisabled: boolean; nzCancelDisabled: boolean; nzCancelLoading: boolean; nzKeyboard: boolean; nzNoAnimation: boolean; nzCentered: boolean; nzDraggable: boolean; nzContent?: string | TemplateRef<{}> | Type; nzFooter?: string | TemplateRef<{}> | Array> | null; nzZIndex: number; nzWidth: number | string; nzWrapClassName?: string; nzClassName?: string; nzStyle?: object; nzTitle?: string | TemplateRef<{}>; nzCloseIcon: string | TemplateRef; nzMaskStyle?: StyleObjectLike; nzBodyStyle?: StyleObjectLike; nzOkText?: string | null; nzCancelText?: string | null; nzOkType: NzButtonType; nzOkDanger: boolean; nzIconType: string; nzModalType: ModalTypes; nzAutofocus: 'ok' | 'cancel' | 'auto' | null; readonly nzOnOk: EventEmitter | OnClickCallback | NzSafeAny; readonly nzOnCancel: EventEmitter | OnClickCallback | NzSafeAny; readonly nzAfterOpen: EventEmitter; readonly nzAfterClose: EventEmitter; readonly nzVisibleChange: EventEmitter; set modalTitle(value: TemplateRef); contentFromContentChild: TemplateRef; set modalFooter(value: TemplateRef); private modalRef; private destroy$; get afterOpen(): Observable; get afterClose(): Observable; constructor(cdr: ChangeDetectorRef, modal: NzModalService, viewContainerRef: ViewContainerRef); open(): void; close(result?: R): void; destroy(result?: R): void; triggerOk(): void; triggerCancel(): void; getContentComponent(): T | void; getElement(): HTMLElement | void; getModalRef(): NzModalRef | null; private setTitleWithTemplate; private setFooterWithTemplate; private getConfig; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "nz-modal", ["nzModal"], { "nzMask": { "alias": "nzMask"; "required": false; }; "nzMaskClosable": { "alias": "nzMaskClosable"; "required": false; }; "nzCloseOnNavigation": { "alias": "nzCloseOnNavigation"; "required": false; }; "nzVisible": { "alias": "nzVisible"; "required": false; }; "nzClosable": { "alias": "nzClosable"; "required": false; }; "nzOkLoading": { "alias": "nzOkLoading"; "required": false; }; "nzOkDisabled": { "alias": "nzOkDisabled"; "required": false; }; "nzCancelDisabled": { "alias": "nzCancelDisabled"; "required": false; }; "nzCancelLoading": { "alias": "nzCancelLoading"; "required": false; }; "nzKeyboard": { "alias": "nzKeyboard"; "required": false; }; "nzNoAnimation": { "alias": "nzNoAnimation"; "required": false; }; "nzCentered": { "alias": "nzCentered"; "required": false; }; "nzDraggable": { "alias": "nzDraggable"; "required": false; }; "nzContent": { "alias": "nzContent"; "required": false; }; "nzFooter": { "alias": "nzFooter"; "required": false; }; "nzZIndex": { "alias": "nzZIndex"; "required": false; }; "nzWidth": { "alias": "nzWidth"; "required": false; }; "nzWrapClassName": { "alias": "nzWrapClassName"; "required": false; }; "nzClassName": { "alias": "nzClassName"; "required": false; }; "nzStyle": { "alias": "nzStyle"; "required": false; }; "nzTitle": { "alias": "nzTitle"; "required": false; }; "nzCloseIcon": { "alias": "nzCloseIcon"; "required": false; }; "nzMaskStyle": { "alias": "nzMaskStyle"; "required": false; }; "nzBodyStyle": { "alias": "nzBodyStyle"; "required": false; }; "nzOkText": { "alias": "nzOkText"; "required": false; }; "nzCancelText": { "alias": "nzCancelText"; "required": false; }; "nzOkType": { "alias": "nzOkType"; "required": false; }; "nzOkDanger": { "alias": "nzOkDanger"; "required": false; }; "nzIconType": { "alias": "nzIconType"; "required": false; }; "nzModalType": { "alias": "nzModalType"; "required": false; }; "nzAutofocus": { "alias": "nzAutofocus"; "required": false; }; "nzOnOk": { "alias": "nzOnOk"; "required": false; }; "nzOnCancel": { "alias": "nzOnCancel"; "required": false; }; }, { "nzOnOk": "nzOnOk"; "nzOnCancel": "nzOnCancel"; "nzAfterOpen": "nzAfterOpen"; "nzAfterClose": "nzAfterClose"; "nzVisibleChange": "nzVisibleChange"; }, ["modalTitle", "contentFromContentChild", "modalFooter"], never, true, never>; }