import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, EventEmitter, ElementRef, OnInit } from '@angular/core'; import { SharedConfigService } from '@sowatech/shared/shared-config'; import { LoggerService } from '@sowatech/shared/logger'; import * as i8 from 'ngx-bootstrap/modal'; import { ModalDirective } from 'ngx-bootstrap/modal'; import * as i7 from '@angular/common'; import * as i9 from '@angular/forms'; import * as i10 from '@sowatech/shared/no-double-click'; import * as i11 from '@sowatech/shared/template'; import * as i12 from '@sowatech/shared/layout'; declare class MessageBoxService { private logger; constructor(logger: LoggerService); private registeredComponent; registerComponent(messageBoxComponent: MessageBoxComponent): void; showDialog(text: string, title?: string, messageType?: MessageType, messageButtons?: MessageButtons): Promise; confirmDialog(text: string, title?: string): Promise; infoDialog(text: string, title?: string): Promise; errorDialog(text: string, title?: string): Promise; closeDialog(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare enum MessageButtons { OK_CANCEL = 0, YES_NO = 1, YES_NO_CANCEL = 2, CLOSE = 3 } declare enum MessageType { PLAIN = 0, ERROR = 1, INFORMATION = 2, WARNING = 3, QUESTION = 4 } declare enum DialogResult { OK = 0, CANCEL = 1, YES = 2, NO = 3, CLOSE = 4 } declare class MessageBoxComponent implements AfterViewInit, OnDestroy { private messageBoxService; protected timeStamp: i0.WritableSignal; constructor(messageBoxService: MessageBoxService, sharedConfig: SharedConfigService); protected handleKeyboardEvent(event: KeyboardEvent): void; private closeModalFix; private subscriptions; ngOnDestroy(): void; ngAfterViewInit(): void; text: string; title: string; iconClass: string; private messageButtons; protected messageType: MessageType; disableAnimation: boolean; /** Verfolgt, ob der Dialog initialisiert wurde, um das Rendern versteckter Dialoge im DOM zu vermeiden (WAVE Barrierefreiheit) */ protected readonly isDialogOpen: i0.WritableSignal; cancel: EventEmitter; submitWithOk: EventEmitter; private readonly dialog; private readonly btnOk; private resolve; private reject; show(text: string, title?: string, messageType?: MessageType, messageButtons?: MessageButtons): Promise; showConfirm(text: string, title?: string): Promise; showClose(text: string, title?: string, messageType?: MessageType): Promise; private hideDialog; closeDialog(): void; btnClicked(btn: HTMLButtonElement): void; protected btnVisible(btn: HTMLButtonElement): boolean; protected readonly MessageType: typeof MessageType; private tryOpenDialog; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FileDialogComponent { constructor(); extensions: string; multiple: boolean; onOk: EventEmitter; file: ElementRef; dialogForm: any; show(): void; ok(fileList: FileList): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DialogInitDirective implements AfterViewInit { private logger; private readonly destroyRef; dialog: ModalDirective; private nativeElement; /** * Selector für das Element, das beim Öffnen des Dialogs fokussiert werden soll. * Wird beim Schließen des Dialogs zurückgesetzt. * Ist nötig, da beim Aufruf der Fokus-Methode eventuell das Element noch nicht existiert. */ private focusedSelector; constructor(el: ElementRef, logger: LoggerService); ngAfterViewInit(): void; focus(fieldname: string): void; onDialogShown(): void; private onDialogHidden; private focusFirstElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class BackdropPrintComponent implements OnInit, OnDestroy { ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BackdropComponent implements OnInit, OnDestroy { ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type ModalDialogSize = 'sm' | 'md' | 'lg'; declare class CustomContentDialogComponent { modalDialog: ModalDirective; modalTitle: string; animate: boolean; size: ModalDialogSize; open(): void; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DialogsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { BackdropComponent, BackdropPrintComponent, CustomContentDialogComponent, DialogInitDirective, DialogResult, DialogsModule, FileDialogComponent, MessageBoxComponent, MessageBoxService, MessageButtons, MessageType };