import { StaticProvider, Type } from "@angular/core"; import { MdlButtonComponent } from "../button/mdl-button.component"; /** * The simple Dialog can have as much actions as needed by the user. */ export interface IMdlDialogAction { /** * the handler is a callback function. this funciton will be called if * the action button was clicked. */ handler: () => void; /** * the text of the action button */ text: string; /** * is this a closing aciton? means the action is called if the user pressed the esc key. */ isClosingAction?: boolean; } /** * rect from where the dialog should be opened or closed to. */ export interface IOpenCloseRect { height: number; left: number; top: number; width: number; } /** * Dialog configuration for all dialogs (simple or custom) */ export interface IMdlDialogConfiguration { /** * true if the dialog should be opened as modal. */ isModal?: boolean; /** * true if the dialogs should animate. defaults to true. */ animate?: boolean; /** * css classes as space delimted list of classes applied to * the dialog-host component. (e.g. a b -> ; providers?: StaticProvider[]; }