UNPKG

@universis/common

Version:

Universis - common directives and services

45 lines (44 loc) 1.11 kB
import { OnInit, ElementRef } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import 'bootstrap/js/dist/modal'; export declare enum DIALOG_BUTTONS { Ok = 1, Yes = 2, No = 4, Abort = 8, Retry = 16, Ignore = 32, Cancel = 64, YesNo = 6, AbortRetryIgnore = 54, OkCancel = 65, YesNoCancel = 70 } export declare class DialogComponent implements OnInit { private _element; private _translateService; title: string; message: string; theme: string; buttons: DIALOG_BUTTONS; private modalRef; language: string; constructor(_element: ElementRef, _translateService: TranslateService); bitwiseAnd(a: any, b: any): number; /** * Shows modal dialog * @returns Promise<any> */ show(): Promise<{}>; /** * Hides modal dialog * @param value */ hide(value: any): void; /** * Converts modal buttons classes modal-ok, modal-yes-no etc to dialog buttons * @param {Array<string>} classList */ private classListToButtons; ngOnInit(): Promise<void>; }