UNPKG

@ctodev/cclibrary-typings

Version:

Library typings for use with CLARC INFINITY

83 lines (82 loc) 2.9 kB
import { OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { TccInputMaskComponent } from '../../../shared/components/tcc-input-mask/tcc-input-mask.component'; import { TccInputMask } from '../../../shared/models/inputMask.model'; import { AlertType } from '../../models/alert.model'; import { TccTutorialTooltip } from '../tcc-tutorial-tooltip/tcc-tutorial-tooltip.component'; import { TccTutorialService } from '../../../shared/services/tcc-tutorial/tcc-tutorial.service'; export declare namespace tccDialogWindow { enum dialogButtonType { filled = 0, secondary = 1, outlined = 2 } interface TccDialogTextStyle { color?: string; fontSize?: number; fontWeight?: number; fontFamily?: string; } interface TccDialogHeader extends TccDialogTextStyle { text: string; } interface TccDialogData { type?: AlertType; header?: string | TccDialogHeader; inputElements?: TccInputMask.RowElements | TccInputMask.SectionElement; buttons?: TccDialogButton[]; illustration?: illustration | string; message?: string | TccDialogMessage; tutorial?: TccTutorialTooltip.options; } interface TccDialogButton { caption?: string; filled?: dialogButtonType; type?: AlertType; returnvalue?: any; submit?: boolean; } interface TccDialogMessage extends TccDialogTextStyle { message: string; width?: string; } interface TccInputDialogReturn { returnvalue: any; values: TccInputMask.valueChanges; } interface illustration { height: string; width: string; illustration: string; } } export declare class TccDialogWindowComponent implements OnInit { data: tccDialogWindow.TccDialogData; private dialogRef; tutorialService: TccTutorialService; inputMask: TccInputMaskComponent; icon: string; headerText: tccDialogWindow.TccDialogHeader; class: string; color: string; dialogButtonType: typeof tccDialogWindow.dialogButtonType; _inputElements: TccInputMask.SectionElements; message: tccDialogWindow.TccDialogMessage; illustrationHeight: string; illustrationWidth: string; illustration: string; tutorial: TccTutorialTooltip.options; constructor(data: tccDialogWindow.TccDialogData, dialogRef: MatDialogRef<TccDialogWindowComponent>, tutorialService: TccTutorialService); ngOnInit(): void; private get getText(); private get getMessage(); private get getIcon(); private get getClass(); private get getIconColor(); private get inputElements(); private initIllustration; private get getTutorial(); private getFilledButtonClass; onDialogClick(event: KeyboardEvent): void; close(buttonValue: any): void; }