import { MessageBoxButtons } from '../../../Types/MessageBoxButtons'; import { DialogElement } from '../Dialog/DialogElement'; import type { IMessageBoxElementProps } from './IMessageBoxElementProps'; import { MessageBoxElementIntl } from './MessageBoxElementIntl'; declare const MessageBoxElement_base: import("../../../../Index").ControlBehaviorReturn, import("../../../Behaviors/TextFormattable").ITextFormattableProps>; /** * MessageBox - A modal dialog that presents information and prompts for a user response. * * @description * Displays alerts, confirmations, or informational prompts. The set of displayed buttons * is controlled by the `buttons` attribute (the only HTML-reflected property). * Header, message, icon, and labels must be set via JavaScript. * * @name MessageBox * @element mosaik-message-box * @category Overlays * * @csspart actionCancel - The cancel action button. * @csspart actionNo - The no action button. * @csspart actionOk - The ok action button. * @csspart actions - The actions container. * @csspart actionYes - The yes action button. * @csspart backdrop - The semi-transparent overlay backdrop. * @csspart content - The content area with icon and message. * @csspart elevation - The elevation shadow layer. * @csspart header - The header section with title and subtitle. * @csspart headerText - The header title text. * @csspart icon - The message icon. * @csspart message - The message text. * @csspart root - The root dialog element. * @csspart subHeaderText - The header subtitle text. * * @cssprop {String} --message-box-background-color - The box background color CSS custom property. * @cssprop {String} --message-box-border-color - The box border color CSS custom property. * @cssprop {String} --message-box-border-radius - The box border radius CSS custom property. * @cssprop {String} --message-box-border-style - The box border style CSS custom property. * @cssprop {String} --message-box-border-width - The box border width CSS custom property. * @cssprop {String} --message-box-divider-height - The box divider height CSS custom property. * @cssprop {String} --message-box-font-family - The box font family CSS custom property. * @cssprop {String} --message-box-font-letter-spacing - The box font letter spacing CSS custom property. * @cssprop {String} --message-box-font-line-height - The box font line height CSS custom property. * @cssprop {String} --message-box-font-size - The box font size CSS custom property. * @cssprop {String} --message-box-font-text-decoration - The box font text decoration CSS custom property. * @cssprop {String} --message-box-font-text-transform - The box font text transform CSS custom property. * @cssprop {String} --message-box-font-weight - The box font weight CSS custom property. * @cssprop {String} --message-box-foreground-color - The box foreground color CSS custom property. * @cssprop {String} --message-box-gap - The box gap CSS custom property. * @cssprop {String} --message-box-header-font-family - The box header font family CSS custom property. * @cssprop {String} --message-box-header-font-letter-spacing - The box header font letter spacing CSS custom property. * @cssprop {String} --message-box-header-font-line-height - The box header font line height CSS custom property. * @cssprop {String} --message-box-header-font-size - The box header font size CSS custom property. * @cssprop {String} --message-box-header-font-text-decoration - The box header font text decoration CSS custom property. * @cssprop {String} --message-box-header-font-text-transform - The box header font text transform CSS custom property. * @cssprop {String} --message-box-header-font-weight - The box header font weight CSS custom property. * @cssprop {String} --message-box-header-foreground-color - The box header foreground color CSS custom property. * @cssprop {String} --message-box-padding-bottom - The box padding bottom CSS custom property. * @cssprop {String} --message-box-padding-left - The box padding left CSS custom property. * @cssprop {String} --message-box-padding-right - The box padding right CSS custom property. * @cssprop {String} --message-box-padding-top - The box padding top CSS custom property. * @cssprop {String} --message-box-shadow - The box shadow CSS custom property. * @cssprop {String} --message-box-shadow-blur - The box shadow blur CSS custom property. * @cssprop {String} --message-box-shadow-color - The box shadow color CSS custom property. * @cssprop {String} --message-box-shadow-offset-x - The box shadow offset x CSS custom property. * @cssprop {String} --message-box-shadow-offset-y - The box shadow offset y CSS custom property. * @cssprop {String} --message-box-shadow-spread - The box shadow spread CSS custom property. * @cssprop {String} --message-box-sub-header-font-family - The box sub header font family CSS custom property. * @cssprop {String} --message-box-sub-header-font-letter-spacing - The box sub header font letter spacing CSS custom property. * @cssprop {String} --message-box-sub-header-font-line-height - The box sub header font line height CSS custom property. * @cssprop {String} --message-box-sub-header-font-size - The box sub header font size CSS custom property. * @cssprop {String} --message-box-sub-header-font-text-decoration - The box sub header font text decoration CSS custom property. * @cssprop {String} --message-box-sub-header-font-text-transform - The box sub header font text transform CSS custom property. * @cssprop {String} --message-box-sub-header-font-weight - The box sub header font weight CSS custom property. * @cssprop {String} --message-box-sub-header-foreground-color - The box sub header foreground color CSS custom property. * @cssprop {String} --message-box-transition-duration - The box transition duration CSS custom property. * @cssprop {String} --message-box-transition-mode - The box transition mode CSS custom property. * @cssprop {String} --message-box-transition-property - The box transition property CSS custom property. * @cssprop {String} --message-box-translate - The box translate CSS custom property. * * @dependency mosaik-backdrop - The Backdrop element. * @dependency mosaik-button - The Button element. * @dependency mosaik-elevation - The Elevation element. * @dependency mosaik-icon - The Icon element. * @dependency mosaik-text - The Text element. * * @example * Confirmation message box with Yes/No buttons: * ```html * * ``` * * @example * Alert message box with OK button: * ```html * * ``` * * @public */ export declare class MessageBoxElement extends MessageBoxElement_base implements IMessageBoxElementProps { private readonly _intlController; private _header; private _subHeader; private _message; private _buttons; private _icon; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `header` property. * * @public */ get header(): string; set header(value: string); /** * Gets or sets the `subHeader` property. * * @public */ get subHeader(): string; set subHeader(value: string); /** * Gets or sets the `message` property. * * @public */ get message(): string; set message(value: string); /** * Gets or sets the `buttons` property. * * @public * @attr */ get buttons(): MessageBoxButtons; set buttons(value: MessageBoxButtons); /** * Gets or sets the `icon` property. * * @public */ get icon(): string; set icon(value: string); /** * Returns the `intl` property. * * @public * @readonly */ get intl(): MessageBoxElementIntl; /** * Handles the `isOpen` property change. * Ensures the native dialog element is shown or hidden. * * @protected */ protected onIsOpenPropertyChanged(_prev: boolean, next: boolean): void; /** * @private * @template */ onDialogResult(result: 'ok' | 'cancel' | 'yes' | 'no'): void; } /** * @public */ export declare namespace MessageBoxElement { type Props = IMessageBoxElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-message-box': MessageBoxElement; } } export {}; //# sourceMappingURL=MessageBoxElement.d.ts.map