import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; import { MotionOptions } from '@primeuix/motion'; import * as i2 from 'primeng/api'; import { ConfirmEventType, Footer, Confirmation } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { Dialog } from 'primeng/dialog'; import { CSSProperties, AppendTo } from 'primeng/types/shared'; import { Nullable } from 'primeng/ts-helpers'; import { ConfirmDialogPassThrough, ConfirmDialogDefaultFocus, ConfirmDialogMessageTemplateContext, ConfirmDialogHeadlessTemplateContext } from 'primeng/types/confirmdialog'; export * from 'primeng/types/confirmdialog'; import { DialogPosition } from 'primeng/types/dialog'; import { Subscription } from 'rxjs'; import { BaseStyle } from 'primeng/base'; declare class ConfirmDialogStyle extends BaseStyle { name: string; style: string; classes: { root: string; icon: string; message: string; pcRejectButton: string; pcAcceptButton: string; }; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } /** * * ConfirmDialog uses a Dialog UI with confirmDialog method or tag. * * [Live Demo](https://www.primeng.org/confirmdialog) * * @module confirmdialogstyle * */ declare enum ConfirmDialogClasses { /** * Class name of the root element */ root = "p-confirmdialog", /** * Class name of the icon element */ icon = "p-confirmdialog-icon", /** * Class name of the message element */ message = "p-confirmdialog-message", /** * Class name of the reject button element */ pcRejectButton = "p-confirmdialog-reject-button", /** * Class name of the accept button element */ pcAcceptButton = "p-confirmdialog-accept-button" } /** * ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API. * @group Components */ declare class ConfirmDialog extends BaseComponent { componentName: string; $pcConfirmDialog: ConfirmDialog | undefined; bindDirectiveInstance: Bind; /** * Title text of the dialog. * @group Props */ header: _angular_core.InputSignal; /** * Icon to display next to message. * @group Props */ icon: _angular_core.InputSignal; /** * Message of the confirmation. * @group Props */ message: _angular_core.InputSignal; /** * Inline style of the element. * @group Props */ style: _angular_core.InputSignal; /** * Class of the element. * @group Props */ styleClass: _angular_core.InputSignal; /** * Specify the CSS class(es) for styling the mask element * @group Props */ maskStyleClass: _angular_core.InputSignal; /** * Icon of the accept button. * @group Props */ acceptIcon: _angular_core.InputSignal; /** * Label of the accept button. * @group Props */ acceptLabel: _angular_core.InputSignal; /** * Defines a string that labels the close button for accessibility. * @group Props */ closeAriaLabel: _angular_core.InputSignal; /** * Defines a string that labels the accept button for accessibility. * @group Props */ acceptAriaLabel: _angular_core.InputSignal; /** * Visibility of the accept button. * @group Props */ acceptVisible: _angular_core.InputSignalWithTransform; /** * Icon of the reject button. * @group Props */ rejectIcon: _angular_core.InputSignal; /** * Label of the reject button. * @group Props */ rejectLabel: _angular_core.InputSignal; /** * Defines a string that labels the reject button for accessibility. * @group Props */ rejectAriaLabel: _angular_core.InputSignal; /** * Visibility of the reject button. * @group Props */ rejectVisible: _angular_core.InputSignalWithTransform; /** * Style class of the accept button. * @group Props */ acceptButtonStyleClass: _angular_core.InputSignal; /** * Style class of the reject button. * @group Props */ rejectButtonStyleClass: _angular_core.InputSignal; /** * Specifies if pressing escape key should hide the dialog. * @group Props */ closeOnEscape: _angular_core.InputSignalWithTransform; /** * Specifies if clicking the modal background should hide the dialog. * @group Props */ dismissableMask: _angular_core.InputSignalWithTransform; /** * Determines whether scrolling behavior should be blocked within the component. * @group Props */ blockScroll: _angular_core.InputSignalWithTransform; /** * When enabled dialog is displayed in RTL direction. * @group Props */ rtl: _angular_core.InputSignalWithTransform; /** * Adds a close icon to the header to hide the dialog. * @group Props */ closable: _angular_core.InputSignalWithTransform; /** * 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: _angular_core.InputSignal; /** * Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs. * @group Props */ key: _angular_core.InputSignal; /** * Whether to automatically manage layering. * @group Props */ autoZIndex: _angular_core.InputSignalWithTransform; /** * Base zIndex value to use in layering. * @group Props */ baseZIndex: _angular_core.InputSignalWithTransform; /** * The motion options. * @group Props */ motionOptions: _angular_core.InputSignal; /** * The motion options for the mask. * @group Props */ maskMotionOptions: _angular_core.InputSignal; /** * When enabled, can only focus on elements inside the confirm dialog. * @group Props */ focusTrap: _angular_core.InputSignalWithTransform; /** * Element to receive the focus when the dialog gets visible. * @group Props */ defaultFocus: _angular_core.InputSignal; /** * Object literal to define widths per screen size. * @group Props */ breakpoints: _angular_core.InputSignal | undefined>; /** * Defines if background should be blocked when dialog is displayed. * @group Props */ modal: _angular_core.InputSignalWithTransform; /** * Current visible state as a boolean. * @group Props */ visible: _angular_core.ModelSignal; /** * Allows getting the position of the component. * @group Props */ position: _angular_core.InputSignal; /** * Enables dragging to change the position using header. * @group Props */ draggable: _angular_core.InputSignalWithTransform; /** * Callback to invoke when dialog is hidden. * @param {ConfirmEventType} enum - Custom confirm event. * @group Emits */ onHide: _angular_core.OutputEmitterRef; footer: _angular_core.Signal