@dbg-riskit/angular-view
Version:
33 lines (32 loc) • 1.32 kB
TypeScript
import { MatDialogRef } from '@angular/material/dialog';
import { MatColorTheme } from '@dbg-riskit/angular-common';
import { DialogComponent } from './dialog.service';
import * as i0 from "@angular/core";
export interface DialogConfig<R> {
dialogType: DialogType;
buttons?: Array<DialogButton<R>>;
title?: string;
message: string;
note?: string;
icon?: string;
}
export declare type DialogType = 'error' | 'warning' | 'info' | 'success' | 'question';
export interface DialogButton<R> {
label: string;
value?: R;
primary?: boolean;
}
export declare class MessageDialogComponent<R> implements DialogComponent<DialogConfig<R>, R> {
readonly dialogRef: MatDialogRef<MessageDialogComponent<R>, R>;
private readonly data;
get customIcon(): string | undefined;
get dialogType(): DialogType;
get buttons(): Array<DialogButton<R>>;
constructor(dialogRef: MatDialogRef<MessageDialogComponent<R>, R>, data: DialogConfig<R>);
get color(): MatColorTheme;
get icon(): string;
get dialogData(): DialogConfig<R>;
close(button: DialogButton<R>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MessageDialogComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MessageDialogComponent<any>, "ng-component", never, {}, {}, never, never>;
}