/** * 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 { Directionality } from '@angular/cdk/bidi'; import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { NzButtonType } from 'ng-zorro-antd/button'; import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { BooleanInput, NgStyleInterface, NzSafeAny, NzTSType } from 'ng-zorro-antd/core/types'; import { NzTooltipBaseDirective, NzToolTipComponent, NzTooltipTrigger, PropertyMapping } from 'ng-zorro-antd/tooltip'; import * as i0 from "@angular/core"; export declare type NzAutoFocusType = null | 'ok' | 'cancel'; export declare class NzPopconfirmDirective extends NzTooltipBaseDirective { readonly _nzModuleName: NzConfigKey; static ngAcceptInputType_nzCondition: BooleanInput; static ngAcceptInputType_nzPopconfirmShowArrow: BooleanInput; static ngAcceptInputType_nzPopconfirmArrowPointAtCenter: BooleanInput; arrowPointAtCenter?: boolean; title?: NzTSType; directiveTitle?: NzTSType | null; trigger?: NzTooltipTrigger; placement?: string | string[]; origin?: ElementRef; mouseEnterDelay?: number; mouseLeaveDelay?: number; overlayClassName?: string; overlayStyle?: NgStyleInterface; visible?: boolean; nzOkText?: string; nzOkType?: string; nzOkDanger?: boolean; nzCancelText?: string; nzBeforeConfirm?: () => Observable | Promise | boolean; nzIcon?: string | TemplateRef; nzCondition: boolean; nzPopconfirmShowArrow: boolean; nzPopconfirmBackdrop?: boolean; nzAutofocus: NzAutoFocusType; readonly visibleChange: EventEmitter; readonly nzOnCancel: EventEmitter; readonly nzOnConfirm: EventEmitter; protected readonly componentRef: ComponentRef; protected getProxyPropertyMap(): PropertyMapping; constructor(elementRef: ElementRef, hostView: ViewContainerRef, resolver: ComponentFactoryResolver, renderer: Renderer2, noAnimation?: NzNoAnimationDirective, nzConfigService?: NzConfigService); /** * @override */ protected createComponent(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class NzPopconfirmComponent extends NzToolTipComponent implements OnDestroy { private elementRef; okBtn: QueryList; cancelBtn: QueryList; nzCancelText?: string; nzCondition: boolean; nzPopconfirmShowArrow: boolean; nzIcon?: string | TemplateRef; nzOkText?: string; nzOkType: NzButtonType | 'danger'; nzOkDanger: boolean; nzAutoFocus: NzAutoFocusType; nzBeforeConfirm: (() => Observable | Promise | boolean) | null; readonly nzOnCancel: Subject; readonly nzOnConfirm: Subject; protected _trigger: NzTooltipTrigger; private elementFocusedBeforeModalWasOpened; private document; _prefix: string; confirmLoading: boolean; constructor(cdr: ChangeDetectorRef, elementRef: ElementRef, directionality: Directionality, document: NzSafeAny, noAnimation?: NzNoAnimationDirective); ngOnDestroy(): void; /** * @override */ show(): void; hide(): void; handleConfirm(): void; onCancel(): void; onConfirm(): void; private capturePreviouslyFocusedElement; private restoreFocus; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }