/** Angular2 */ import * as ng from "@angular/core"; /** Core */ import { CoreComponent } from "cmf.core/src/core"; import { DialogButtonCallbackArgs, DialogButton, ConfirmDialogResult, DialogShowOptions } from "cmf.core/src/domain/extensions/dialog"; /** Components */ import { ModalViewInstance } from "../modalView/modalView"; export { DialogButtonCallbackArgs, DialogButton, ConfirmDialogResult, DialogShowOptions }; /** * @whatItDoes * Diagram component * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `string` : **icon** - The icon of this component ; * `string` : **mainTitle** - The main title of this component ; * `DialogButton[]` : **buttons** - The buttons of this component . * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * ``` * * ### Code Behind * Examples: * ```typescript * this.framework.sandbox.dialog.error( * this._elementRef, * { * headerIcon: "icon-core-st-lg-generic", * headerTitle: "headerTitle string", * bodyIcon: "icon-core-st-sm-reject", * bodyMessage: "ERROR body Message ", * bodySubMessage: "error body Sub Message ", * buttons: * [{ * id: "id_cancel", * primary: false, * message: "warning Cancel Cancel Cancel", * autoClose: false, * callback: (): Promise => { * args.close(); * return Promise.resolve(); * } * }, * { * id: "id_ok", * primary: true, * message: "warning OK", * autoClose: true * }] * } * ); * ``` * */ export declare class Dialog extends CoreComponent { private modalInstance; private buttonClickDefaultArgs; headerIcon: string; headerTitle: string; /** * Deprecated title input */ private title; buttons: DialogButton[]; /** * Show footer */ showHeader: boolean; /** * Show footer */ showFooter: boolean; constructor(elementRef: ng.ElementRef, modalInstance: ModalViewInstance); close(avoidRefresh?: boolean): void; /** * On Button Click handler. * @param event Browser click event * @param button DialogButton clicked */ onButtonClick(event: MouseEvent, button: DialogButton): void; } export declare class DialogModule { }