import { ConfirmPopupContentTemplateContext, ConfirmPopupDefaultFocus, ConfirmPopupHeadlessTemplateContext, ConfirmPopupPassThrough } from "primeng/types/confirmpopup"; import * as i0 from "@angular/core"; import { ElementRef, TemplateRef } from "@angular/core"; import { MotionEvent, MotionOptions } from "@primeuix/motion"; import * as i2 from "primeng/api"; import { ConfirmEventType, Confirmation, OverlayService } from "primeng/api"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { ConnectedOverlayScrollHandler } from "primeng/dom"; import { AppendTo, CSSProperties } from "primeng/types/shared"; import { Nullable, VoidListener } from "primeng/ts-helpers"; import { Subscription } from "rxjs"; import { BaseStyle } from "primeng/base"; export * from "primeng/types/confirmpopup"; export declare class ConfirmPopupStyle extends BaseStyle { name: string; style: string; classes: { root: () => string[]; content: string; icon: string; message: string; footer: string; pcRejectButton: string; pcAcceptButton: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * ConfirmPopup displays a confirmation overlay displayed relatively to its target. * * [Live Demo](https://www.primeng.org/confirmpopup) * * @module confirmpopupstyle * */ export declare enum ConfirmPopupClasses { /** * Class name of the root element */ root = "p-confirmpopup", /** * Class name of the content element */ content = "p-confirmpopup-content", /** * Class name of the icon element */ icon = "p-confirmpopup-icon", /** * Class name of the message element */ message = "p-confirmpopup-message", /** * Class name of the footer element */ footer = "p-confirmpopup-footer", /** * Class name of the reject button element */ pcRejectButton = "p-confirmpopup-reject-button", /** * Class name of the accept button element */ pcAcceptButton = "p-confirmpopup-accept-button" } /** * ConfirmPopup displays a confirmation overlay displayed relatively to its target. * @group Components */ export declare class ConfirmPopup extends BaseComponent { componentName: string; $pcConfirmPopup: ConfirmPopup | undefined; bindDirectiveInstance: Bind; /** * Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs. * @group Props */ key: import("@angular/core").InputSignal; /** * Element to receive the focus when the popup gets visible, valid values are "accept", "reject", and "none". * @group Props */ defaultFocus: import("@angular/core").InputSignal; /** * Whether to automatically manage layering. * @group Props */ autoZIndex: import("@angular/core").InputSignalWithTransform; /** * Base zIndex value to use in layering. * @group Props */ baseZIndex: import("@angular/core").InputSignalWithTransform; /** * Inline style of the component. * @group Props */ style: import("@angular/core").InputSignal; /** * Style class of the component. * @group Props */ styleClass: import("@angular/core").InputSignal; /** * Defines if the component is visible. * @group Props */ visible: import("@angular/core").InputSignal; private _visible; computedVisible: import("@angular/core").Signal; render: import("@angular/core").WritableSignal; /** * The motion options. * @group Props */ motionOptions: import("@angular/core").InputSignal; computedMotionOptions: import("@angular/core").Signal; /** * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). * @defaultValue 'body' * @group Props */ appendTo: import("@angular/core").InputSignal; headlessContext: import("@angular/core").Signal; contentContext: import("@angular/core").Signal; $appendTo: import("@angular/core").Signal; container: HTMLElement | null; subscription: Subscription; confirmation: import("@angular/core").WritableSignal>; autoFocusAccept: boolean; autoFocusReject: boolean; /** * Custom content template. * @group Templates */ contentTemplate: import("@angular/core").Signal | undefined>; /** * Custom accept icon template. * @group Templates */ acceptIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom reject icon template. * @group Templates */ rejectIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom headless template. * @group Templates */ headlessTemplate: import("@angular/core").Signal | undefined>; acceptButtonViewChild: import("@angular/core").Signal | undefined>; rejectButtonViewChild: import("@angular/core").Signal | undefined>; documentClickListener: VoidListener; documentResizeListener: VoidListener; scrollHandler: Nullable; private window; _componentStyle: ConfirmPopupStyle; overlayService: OverlayService; private confirmationService; constructor(); onAfterViewChecked(): void; option(name: string, k?: string): any; onEscapeKeydown(event: Event): void; onBeforeEnter(event: MotionEvent): void; handleFocus(): void; onAfterLeave(): void; getAcceptButtonProps(): any; getRejectButtonProps(): any; alignOverlay(): void; setZIndex(): void; alignArrow(): void; appendOverlay(): void; restoreAppend(): void; hide(): void; onAccept(): void; onReject(type?: ConfirmEventType): void; onOverlayClick(event: MouseEvent): void; bindListeners(): void; unbindListeners(): void; bindDocumentClickListener(): void; unbindDocumentClickListener(): void; onWindowResize(): void; bindDocumentResizeListener(): void; unbindDocumentResizeListener(): void; bindScrollListener(): void; unbindScrollListener(): void; unsubscribeConfirmationSubscriptions(): void; onContainerDestroy(): void; get acceptButtonLabel(): string; get rejectButtonLabel(): string; get rejectVisible(): boolean; get acceptVisible(): boolean; get rejectButtonSize(): any; get rejectButtonText(): boolean; get acceptButtonSize(): any; get rejectButtonStyleClass(): string | undefined; get acceptButtonStyleClass(): string | undefined; get hasIcon(): boolean; get hasRejectIcon(): boolean; get hasAcceptIcon(): boolean; get rejectIcon(): string | undefined; get acceptIcon(): string | undefined; get message(): string | undefined; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class ConfirmPopupModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }