import { DialogHeaderTemplateContext, DialogPassThrough, DialogPosition } from "primeng/types/dialog"; 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 { OverlayService } from "primeng/api"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { Nullable, VoidListener } from "primeng/ts-helpers"; import { ButtonDirectiveOptions } from "primeng/types/button"; import { AppendTo, CSSProperties } from "primeng/types/shared"; import { BaseStyle } from "primeng/base"; export * from "primeng/types/dialog"; export declare class DialogStyle extends BaseStyle { name: string; style: string; classes: { mask: ({ instance }: { instance: any; }) => (string | { 'p-overlay-mask': any; })[]; root: ({ instance }: { instance: any; }) => (string | { 'p-dialog-maximized': any; })[]; header: string; title: string; resizeHandle: string; headerActions: string; pcMaximizeButton: string; pcCloseButton: string; content: () => string[]; footer: string; }; inlineStyles: { mask: ({ instance }: { instance: any; }) => any; root: ({ instance }: { instance: any; }) => any; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Dialog is a container to display content in an overlay window. * * [Live Demo](https://www.primeng.org/dialog) * * @module dialogstyle * */ export declare enum DialogClasses { /** * Class name of the mask element */ mask = "p-dialog-mask", /** * Class name of the root element */ root = "p-dialog", /** * Class name of the header element */ header = "p-dialog-header", /** * Class name of the title element */ title = "p-dialog-title", /** * Class name of the header actions element */ headerActions = "p-dialog-header-actions", /** * Class name of the maximize button element */ pcMaximizeButton = "p-dialog-maximize-button", /** * Class name of the close button element */ pcCloseButton = "p-dialog-close-button", /** * Class name of the content element */ content = "p-dialog-content", /** * Class name of the footer element */ footer = "p-dialog-footer" } /** * Dialog is a container to display content in an overlay window. * @group Components */ export declare class Dialog extends BaseComponent { componentName: string; hostName: import("@angular/core").InputSignal; $pcDialog: Dialog | undefined; bindDirectiveInstance: Bind; /** * Title text of the dialog. * @group Props */ header: import("@angular/core").InputSignal; /** * Enables dragging to change the position using header. * @group Props */ draggable: import("@angular/core").InputSignalWithTransform; /** * Enables resizing of the content. * @group Props */ resizable: import("@angular/core").InputSignalWithTransform; /** * Style of the content section. * @group Props */ contentStyle: import("@angular/core").InputSignal; /** * Style class of the content. * @group Props */ contentStyleClass: import("@angular/core").InputSignal; /** * Defines if background should be blocked when dialog is displayed. * @group Props */ modal: import("@angular/core").InputSignalWithTransform; /** * Specifies if pressing escape key should hide the dialog. * @group Props */ closeOnEscape: import("@angular/core").InputSignalWithTransform; /** * Specifies if clicking the modal background should hide the dialog. * @group Props */ dismissableMask: import("@angular/core").InputSignalWithTransform; /** * When enabled dialog is displayed in RTL direction. * @group Props */ rtl: import("@angular/core").InputSignalWithTransform; /** * Adds a close icon to the header to hide the dialog. * @group Props */ closable: import("@angular/core").InputSignalWithTransform; /** * Object literal to define widths per screen size. * @group Props */ breakpoints: import("@angular/core").InputSignal | undefined>; /** * Style class of the component. * @group Props */ styleClass: import("@angular/core").InputSignal; /** * Style class of the mask. * @group Props */ maskStyleClass: import("@angular/core").InputSignal; /** * Style of the mask. * @group Props */ maskStyle: import("@angular/core").InputSignal; /** * Whether to show the header or not. * @group Props */ showHeader: import("@angular/core").InputSignalWithTransform; /** * Whether background scroll should be blocked when dialog is visible. * @group Props */ blockScroll: import("@angular/core").InputSignalWithTransform; /** * 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; /** * Minimum value for the left coordinate of dialog in dragging. * @group Props */ minX: import("@angular/core").InputSignalWithTransform; /** * Minimum value for the top coordinate of dialog in dragging. * @group Props */ minY: import("@angular/core").InputSignalWithTransform; /** * When enabled, first focusable element receives focus on show. * @group Props */ focusOnShow: import("@angular/core").InputSignalWithTransform; /** * Whether the dialog can be displayed full screen. * @group Props */ maximizable: import("@angular/core").InputSignalWithTransform; /** * Keeps dialog in the viewport. * @group Props */ keepInViewport: import("@angular/core").InputSignalWithTransform; /** * When enabled, can only focus on elements inside the dialog. * @group Props */ focusTrap: import("@angular/core").InputSignalWithTransform; /** * The motion options for the mask. * @group Props */ maskMotionOptions: import("@angular/core").InputSignal; computedMaskMotionOptions: import("@angular/core").Signal; maskEnterActiveClass: import("@angular/core").Signal<"" | "p-overlay-mask-enter-active">; maskLeaveActiveClass: import("@angular/core").Signal<"" | "p-overlay-mask-leave-active">; /** * The motion options. * @group Props */ motionOptions: import("@angular/core").InputSignal; computedMotionOptions: import("@angular/core").Signal; /** * Name of the close icon. * @group Props */ closeIcon: import("@angular/core").InputSignal; /** * Defines a string that labels the close button for accessibility. * @group Props */ closeAriaLabel: import("@angular/core").InputSignal; /** * Index of the close button in tabbing order. * @group Props */ closeTabindex: import("@angular/core").InputSignal; /** * Name of the minimize icon. * @group Props */ minimizeIcon: import("@angular/core").InputSignal; /** * Name of the maximize icon. * @group Props */ maximizeIcon: import("@angular/core").InputSignal; /** * Configuration object forwarded to the underlying button. * @group Props */ closeButtonProps: import("@angular/core").InputSignal; /** * Configuration object forwarded to the underlying button. * @group Props */ maximizeButtonProps: import("@angular/core").InputSignal; /** * Specifies the visibility of the dialog. * @group Props */ visible: import("@angular/core").ModelSignal; /** * Inline style of the component. * @group Props */ style: import("@angular/core").InputSignal; /** * Position of the dialog, options are "center", "top", "bottom", "left", "right", "topleft", "topright", "bottomleft" or "bottomright". * @group Props */ position: import("@angular/core").InputSignal; /** * Role attribute of html element. * @group Emits */ role: import("@angular/core").InputSignal; /** * 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 'self' * @group Props */ appendTo: import("@angular/core").InputSignal; /** * Callback to invoke when dialog is shown. * @group Emits */ onShow: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dialog is hidden. * @group Emits */ onHide: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dialog resizing is initiated. * @param {MouseEvent} event - Mouse event. * @group Emits */ onResizeInit: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dialog resizing is completed. * @param {MouseEvent} event - Mouse event. * @group Emits */ onResizeEnd: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dialog dragging is initiated. * @param {MouseEvent} event - Mouse event. * @group Emits */ onDragStart: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dialog dragging is completed. * @param {DragEvent} event - Drag event. * @group Emits */ onDragEnd: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dialog maximized or unmaximized. * @group Emits */ onMaximize: import("@angular/core").OutputEmitterRef<{ maximized: boolean | undefined; }>; headerViewChild: import("@angular/core").Signal | undefined>; contentViewChild: import("@angular/core").Signal | undefined>; footerViewChild: import("@angular/core").Signal | undefined>; /** * Custom header template. * @group Templates */ headerTemplate: import("@angular/core").Signal | undefined>; /** * Custom content template. * @group Templates */ contentTemplate: import("@angular/core").Signal | undefined>; /** * Custom footer template. * @group Templates */ footerTemplate: import("@angular/core").Signal | undefined>; /** * Custom close icon template. * @group Templates */ closeIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom maximize icon template. * @group Templates */ maximizeIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom minimize icon template. * @group Templates */ minimizeIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom headless template. * @group Templates */ headlessTemplate: import("@angular/core").Signal | undefined>; $appendTo: import("@angular/core").Signal; renderMask: import("@angular/core").WritableSignal; renderDialog: import("@angular/core").WritableSignal; maskVisible: boolean | undefined; container: import("@angular/core").WritableSignal>; wrapper: Nullable; dragging: boolean | undefined; ariaId: string; ariaLabelledBy: import("@angular/core").Signal; headerTemplateContext: import("@angular/core").Signal; documentDragListener: VoidListener; documentDragEndListener: VoidListener; resizing: boolean | undefined; documentResizeListener: VoidListener; documentResizeEndListener: VoidListener; documentEscapeListener: VoidListener; maskClickListener: VoidListener; lastPageX: number | undefined; lastPageY: number | undefined; preventVisibleChangePropagation: boolean | undefined; maximized: import("@angular/core").WritableSignal; preMaximizeContentHeight: number | undefined; preMaximizeContainerWidth: number | undefined; preMaximizeContainerHeight: number | undefined; preMaximizePageX: number | undefined; preMaximizePageY: number | undefined; id: string; _style: Record; originalStyle: Record | undefined; styleElement: HTMLStyleElement | null; _componentStyle: DialogStyle; overlayService: OverlayService; private zIndexForLayering?; get maximizeLabel(): string; get minimizeLabel(): string; maximizeButtonAriaLabel: import("@angular/core").Signal; maximizeButtonTabindex: import("@angular/core").Signal<"0" | "-1">; toggleIcon: import("@angular/core").Signal; showToggleIcon: import("@angular/core").Signal; showDefaultMaximizeIcon: import("@angular/core").Signal; showMaximizeSvg: import("@angular/core").Signal; showMinimizeSvg: import("@angular/core").Signal; showMaximizeIconTemplate: import("@angular/core").Signal; showMinimizeIconTemplate: import("@angular/core").Signal; showDefaultCloseIcon: import("@angular/core").Signal; scrollBlockerActive: import("@angular/core").Signal; focusTrapDisabled: import("@angular/core").Signal; constructor(); dataP: import("@angular/core").Signal; onAfterViewChecked(): void; onInit(): void; _focus(focusParentElement?: HTMLElement): boolean; focus(focusParentElement?: HTMLElement): void; close(event: Event): void; enableModality(): void; disableModality(): void; maximize(): void; unbindMaskClickListener(): void; moveOnTop(): void; createStyle(): void; private breakpointsCSS; initDrag(event: MouseEvent): void; onDrag(event: MouseEvent): void; endDrag(event: DragEvent): void; resetPosition(): void; center(): void; initResize(event: MouseEvent): void; onResize(event: MouseEvent): void; resizeEnd(event: MouseEvent): void; bindGlobalListeners(): void; unbindGlobalListeners(): void; bindDocumentDragListener(): void; unbindDocumentDragListener(): void; bindDocumentDragEndListener(): void; unbindDocumentDragEndListener(): void; bindDocumentResizeListeners(): void; unbindDocumentResizeListeners(): void; bindDocumentEscapeListener(): void; unbindDocumentEscapeListener(): void; appendContainer(): void; restoreAppend(): void; onBeforeEnter(event: MotionEvent): void; onAfterEnter(): void; onBeforeLeave(): void; onAfterLeave(): void; onMaskAfterLeave(): void; onContainerDestroy(): void; destroyStyle(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class DialogModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }