import * as i0 from '@angular/core'; import { ModuleWithProviders, OnInit, AfterViewInit, OnDestroy } from '@angular/core'; import { FormGroup, ValidatorFn } from '@angular/forms'; import { Observable } from 'rxjs'; import { MatDialogRef } from '@angular/material/dialog'; /** * Backward-compatible MmSharedUiModule for legacy apps that use * importProvidersFrom(MmSharedUiModule.forRoot()). * * Provides a Material-based ConfirmationService as a drop-in replacement * for the Kendo-based version from @meshmakers/shared-ui. */ declare class MmSharedUiModule { static forRoot(): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Backward-compatible AbstractDetailsComponent for legacy apps. */ declare abstract class AbstractDetailsComponent { private _loading; private readonly _ownerForm; private _entity; protected constructor(formGroup: FormGroup); get loading(): boolean; set loading(value: boolean); get entity(): TEntity | null; set entity(value: TEntity | null); get ownerForm(): FormGroup; get isLoaded(): boolean; hasError: (controlName: string, errorName: string) => boolean; hasFormError: (errorName: string) => boolean; updateDateTime(controlName: string): void; copyInputMessage(inputElement: HTMLInputElement): void; protected onProgressStarting(): void; protected onProgressCompleted(): void; } /** * Backward-compatible CommonValidators for legacy apps. */ type CompareValueFn = (value: TValue) => boolean; declare class CommonValidators { static phoneNumber(): ValidatorFn; static httpUri(): ValidatorFn; static ensureSameValue(sourceControlName: string): ValidatorFn; static conditionalRequired(sourceControlName: string, sourceValueCompareExpression: CompareValueFn): ValidatorFn; static dependentControls(controlNames: string[]): ValidatorFn; } declare enum ButtonTypes { Ok = 0, Cancel = 1, Yes = 2, No = 3 } declare enum DialogType { YesNo = 0, YesNoCancel = 1, OkCancel = 2, Ok = 3 } interface ConfirmationWindowData { title: string; message: string; dialogType: DialogType; } declare class ConfirmationWindowResult { result: ButtonTypes; constructor(result: ButtonTypes); } declare class ConfirmationService { private readonly dialog; showYesNoConfirmationDialog(title: string, message: string): Promise; showYesNoCancelConfirmationDialog(title: string, message: string): Promise; showOkCancelConfirmationDialog(title: string, message: string): Promise; showOkDialog(title: string, message: string): Promise; private openDialog; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ConfirmationDialogComponent implements OnInit { private readonly dialogRef; readonly data: ConfirmationWindowData; button1Text: string; button2Text: string | null; button3Text: string | null; private button1Result; private button2Result; private button3Result; ngOnInit(): void; onButton1(): void; onButton2(): void; onButton3(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ProgressValue { statusText: string | null; progressValue: number; constructor(); } interface ProgressWindowData { isDeterminate: boolean; progress: Observable; isCancelOperationAvailable: boolean; cancelOperation: () => void; } declare class ProgressWindowComponent implements AfterViewInit, OnDestroy { private readonly dialogRef; private readonly data; private readonly cdr; private progressSubscription?; isDeterminate: boolean; isCancelOperationAvailable: boolean; statusText: string | null; progressPercent: number; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; onCancelClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Reference returned by showProgress methods. * Provides a close() method compatible with the Kendo DialogRef API. */ declare class ProgressDialogRef { private readonly dialogRef; constructor(dialogRef: MatDialogRef); close(): void; } interface ProgressWindowConfig { title: string; progress: Observable; isDeterminate?: boolean; isCancelOperationAvailable?: boolean; cancelOperation?: () => void; width?: number; height?: number | string; } interface ProgressWindowOptions { isCancelOperationAvailable?: boolean; cancelOperation?: () => void; width?: number; height?: number | string; } declare class ProgressWindowService { private readonly dialog; showProgress(config: ProgressWindowConfig): ProgressDialogRef; showDeterminateProgress(title: string, progress: Observable, options?: Partial): ProgressDialogRef; showIndeterminateProgress(title: string, progress: Observable, options?: Partial): ProgressDialogRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare enum ImportStrategyDto { InsertOnly = 0, Upsert = 1 } export { AbstractDetailsComponent, ButtonTypes, CommonValidators, ConfirmationDialogComponent, ConfirmationService, ConfirmationWindowResult, DialogType, ImportStrategyDto, MmSharedUiModule, ProgressDialogRef, ProgressValue, ProgressWindowComponent, ProgressWindowService }; export type { CompareValueFn, ConfirmationWindowData, ProgressWindowConfig, ProgressWindowData, ProgressWindowOptions };