/** * 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 { VtsButtonType } from '@ui-vts-kit/ng-vts/button'; import { BooleanInput, VtsSafeAny } from '@ui-vts-kit/ng-vts/core/types'; import { Observable } from 'rxjs'; import { VtsModalLegacyAPI } from './modal-legacy-api'; import { VtsModalRef } from './modal-ref'; import { ModalButtonOptions, ModalTypes, OnClickCallback, StyleObjectLike } from './modal-types'; import { VtsModalService } from './modal.service'; import * as i0 from "@angular/core"; export declare class VtsModalComponent implements OnChanges, VtsModalLegacyAPI, OnDestroy { private cdr; private modal; private viewContainerRef; static ngAcceptInputType_vtsMask: BooleanInput; static ngAcceptInputType_vtsMaskClosable: BooleanInput; static ngAcceptInputType_vtsCloseOnNavigation: BooleanInput; static ngAcceptInputType_vtsVisible: BooleanInput; static ngAcceptInputType_vtsClosable: BooleanInput; static ngAcceptInputType_vtsOkLoading: BooleanInput; static ngAcceptInputType_vtsOkDisabled: BooleanInput; static ngAcceptInputType_vtsCancelDisabled: BooleanInput; static ngAcceptInputType_vtsCancelLoading: BooleanInput; static ngAcceptInputType_vtsKeyboard: BooleanInput; static ngAcceptInputType_vtsNoAnimation: BooleanInput; static ngAcceptInputType_vtsOkDanger: BooleanInput; static ngAcceptInputType_vtsCentered: BooleanInput; vtsMask?: boolean; vtsMaskClosable?: boolean; vtsCloseOnNavigation?: boolean; vtsVisible: boolean; vtsClosable: boolean; vtsOkLoading: boolean; vtsOkDisabled: boolean; vtsCancelDisabled: boolean; vtsCancelLoading: boolean; vtsKeyboard: boolean; vtsNoAnimation: boolean; vtsCentered: boolean; vtsContent?: string | TemplateRef<{}> | Type; vtsComponentParams?: T; vtsFooter?: string | TemplateRef<{}> | Array> | null; vtsZIndex: number; vtsWidth: number | string; vtsWrapClassName?: string; vtsClassName?: string; vtsStyle?: object; vtsTitle?: string | TemplateRef<{}>; vtsCloseIcon: string | TemplateRef; vtsMaskStyle?: StyleObjectLike; vtsBodyStyle?: StyleObjectLike; vtsOkText?: string | null; vtsCancelText?: string | null; vtsOkType: VtsButtonType; vtsOkDanger: boolean; vtsIconType: string; vtsModalType: ModalTypes; vtsAutofocus: 'ok' | 'cancel' | 'auto' | null; readonly vtsOnOk: EventEmitter | OnClickCallback | VtsSafeAny; readonly vtsOnCancel: EventEmitter | OnClickCallback | VtsSafeAny; readonly vtsAfterOpen: EventEmitter; readonly vtsAfterClose: EventEmitter; readonly vtsVisibleChange: EventEmitter; contentTemplateRef: TemplateRef<{}>; set modalTitle(value: TemplateRef); contentFromContentChild: TemplateRef; set modalFooter(value: TemplateRef); private modalRef; get afterOpen(): Observable; get afterClose(): Observable; constructor(cdr: ChangeDetectorRef, modal: VtsModalService, viewContainerRef: ViewContainerRef); open(): void; close(result?: R): void; destroy(result?: R): void; triggerOk(): void; triggerCancel(): void; getContentComponent(): T | void; getElement(): HTMLElement | void; getModalRef(): VtsModalRef | null; private setTitleWithTemplate; private setFooterWithTemplate; private getConfig; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "vts-modal", ["vtsModal"], { "vtsMask": { "alias": "vtsMask"; "required": false; }; "vtsMaskClosable": { "alias": "vtsMaskClosable"; "required": false; }; "vtsCloseOnNavigation": { "alias": "vtsCloseOnNavigation"; "required": false; }; "vtsVisible": { "alias": "vtsVisible"; "required": false; }; "vtsClosable": { "alias": "vtsClosable"; "required": false; }; "vtsOkLoading": { "alias": "vtsOkLoading"; "required": false; }; "vtsOkDisabled": { "alias": "vtsOkDisabled"; "required": false; }; "vtsCancelDisabled": { "alias": "vtsCancelDisabled"; "required": false; }; "vtsCancelLoading": { "alias": "vtsCancelLoading"; "required": false; }; "vtsKeyboard": { "alias": "vtsKeyboard"; "required": false; }; "vtsNoAnimation": { "alias": "vtsNoAnimation"; "required": false; }; "vtsCentered": { "alias": "vtsCentered"; "required": false; }; "vtsContent": { "alias": "vtsContent"; "required": false; }; "vtsComponentParams": { "alias": "vtsComponentParams"; "required": false; }; "vtsFooter": { "alias": "vtsFooter"; "required": false; }; "vtsZIndex": { "alias": "vtsZIndex"; "required": false; }; "vtsWidth": { "alias": "vtsWidth"; "required": false; }; "vtsWrapClassName": { "alias": "vtsWrapClassName"; "required": false; }; "vtsClassName": { "alias": "vtsClassName"; "required": false; }; "vtsStyle": { "alias": "vtsStyle"; "required": false; }; "vtsTitle": { "alias": "vtsTitle"; "required": false; }; "vtsCloseIcon": { "alias": "vtsCloseIcon"; "required": false; }; "vtsMaskStyle": { "alias": "vtsMaskStyle"; "required": false; }; "vtsBodyStyle": { "alias": "vtsBodyStyle"; "required": false; }; "vtsOkText": { "alias": "vtsOkText"; "required": false; }; "vtsCancelText": { "alias": "vtsCancelText"; "required": false; }; "vtsOkType": { "alias": "vtsOkType"; "required": false; }; "vtsOkDanger": { "alias": "vtsOkDanger"; "required": false; }; "vtsIconType": { "alias": "vtsIconType"; "required": false; }; "vtsModalType": { "alias": "vtsModalType"; "required": false; }; "vtsAutofocus": { "alias": "vtsAutofocus"; "required": false; }; "vtsOnOk": { "alias": "vtsOnOk"; "required": false; }; "vtsOnCancel": { "alias": "vtsOnCancel"; "required": false; }; }, { "vtsOnOk": "vtsOnOk"; "vtsOnCancel": "vtsOnCancel"; "vtsAfterOpen": "vtsAfterOpen"; "vtsAfterClose": "vtsAfterClose"; "vtsVisibleChange": "vtsVisibleChange"; }, ["modalTitle", "contentFromContentChild", "modalFooter"], ["*"], false, never>; }