import * as i0 from '@angular/core'; import { OnDestroy, OnChanges, SimpleChanges, AfterContentInit, InjectionToken, ElementRef, Type, AfterViewInit } from '@angular/core'; import { DefaultValueAccessor, CheckboxControlValueAccessor, RadioControlValueAccessor, ControlValueAccessor, SelectControlValueAccessor, NgSelectOption, Validator, AbstractControl, ValidationErrors, NgControl } from '@angular/forms'; import { RangeDatepicker, ButtonVariant, ButtonColor } from '@universal-material/web'; export { SnackbarDuration } from '@universal-material/web'; import { BehaviorSubject, Observable, Subject } from 'rxjs'; import * as i3 from '@angular/common'; declare class UmDefaultControlValueAccessor extends DefaultValueAccessor { /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmCheckControlValueAccessor extends CheckboxControlValueAccessor { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmRadioControlValueAccessor extends RadioControlValueAccessor { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmChipFieldControlValueAccessor implements ControlValueAccessor { private _renderer; private _elementRef; onChange: (_: any) => void; onTouched: () => void; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); writeValue(obj: any): void; protected setProperty(key: string, value: any): void; registerOnTouched(fn: () => void): void; registerOnChange(fn: (_: any) => {}): void; setDisabledState(isDisabled: boolean): void; _handleChange(value: []): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmTypeaheadControlValueAccessor implements ControlValueAccessor { private _renderer; private _elementRef; onChange: (_: any) => void; onTouched: () => void; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); writeValue(obj: any): void; protected setProperty(key: string, value: any): void; registerOnTouched(fn: () => void): void; registerOnChange(fn: (_: any) => {}): void; setDisabledState(isDisabled: boolean): void; _handleChange(value: [] | null): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmSelectControlValueAccessor extends SelectControlValueAccessor { /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); _writeValueAfterRender(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmSelectOption extends NgSelectOption { /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmSliderControlValueAccessor implements ControlValueAccessor { private _renderer; private _elementRef; onChange: (_: any) => void; onTouched: () => void; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); writeValue(value: any): void; protected setProperty(key: string, value: any): void; registerOnChange(fn: (_: any) => {}): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; _handleChange(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UmDatepickerControlValueAccessor implements ControlValueAccessor { private _renderer; private _elementRef; onChange: (_: any) => void; onTouched: () => void; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); writeValue(value: any): void; protected setProperty(key: string, value: any): void; registerOnChange(fn: (_: any) => {}): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; _handleChange(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Coordinates the `uStartDate`/`uEndDate` value accessors of a * `u-range-datepicker`, splitting and combining the element's * `YYYY-MM-DD - YYYY-MM-DD` value so each end binds to its own form control, * mirroring `mat-date-range-input` with `matStartDate`/`matEndDate`. */ declare class UmRangeDatepickerDirective { readonly element: RangeDatepicker; private readonly _renderer; private readonly _disabledParts; getPart(index: 0 | 1): string | Date | null; setPart(index: 0 | 1, value: string | Date | null): void; /** The range datepicker is only disabled when both ends are disabled, like `mat-date-range-input`. */ setPartDisabled(index: 0 | 1, disabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare abstract class UmRangeDatepickerPartControlValueAccessor implements ControlValueAccessor, OnDestroy { protected abstract readonly _index: 0 | 1; private readonly _rangeDatepicker; onChange: (_: any) => void; onTouched: () => void; constructor(); ngOnDestroy(): void; writeValue(value: any): void; registerOnChange(fn: (_: any) => {}): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; private readonly _handleChange; private readonly _handleTouched; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Binds a form control to the start date of the enclosing `u-range-datepicker`. * The input is a hidden value carrier — the range datepicker renders its own * field — so it only exists to anchor `formControlName`/`ngModel`. */ declare class UmStartDateControlValueAccessor extends UmRangeDatepickerPartControlValueAccessor { protected readonly _index = 0; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Binds a form control to the end date of the enclosing `u-range-datepicker`. * The input is a hidden value carrier — the range datepicker renders its own * field — so it only exists to anchor `formControlName`/`ngModel`. */ declare class UmEndDateControlValueAccessor extends UmRangeDatepickerPartControlValueAccessor { protected readonly _index = 1; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Validator directive for the `min` bound of `u-datepicker`/`u-range-datepicker`. * Declaring `min` as an input keeps the binding from reaching the element, so the * directive re-reflects it via `attr.min` to keep the calendar constrained. * On a range value, `min` validates the range start. */ declare class UmDatepickerMinValidator implements Validator, OnChanges { min: string | null; private _onChange?; ngOnChanges(changes: SimpleChanges): void; validate(control: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Validator directive for the `max` bound of `u-datepicker`/`u-range-datepicker`. * Declaring `max` as an input keeps the binding from reaching the element, so the * directive re-reflects it via `attr.max` to keep the calendar constrained. * On a range value, `max` validates the range end. */ declare class UmDatepickerMaxValidator implements Validator, OnChanges { max: string | null; private _onChange?; ngOnChanges(changes: SimpleChanges): void; validate(control: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ScrollableContainerWrapper { private _container; defaultTarget: EventTarget | any; _innerScrollTop: BehaviorSubject; scrollTop: number | null; scrollTop$: Observable; private _emitScroll; private _getScrollTop; get container(): EventTarget | any; set container(value: EventTarget | any); } declare abstract class ScrollBehavior implements AfterContentInit, OnChanges { readonly scrollContainer: i0.InputSignal; protected _scrollableWrapper: ScrollableContainerWrapper | null; protected abstract _processBehavior: (scrollTop: number | null) => void; protected defaultTarget: EventTarget | any; protected _setScrollWrapper(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class DialogBodyDirective extends ScrollBehavior { dialog: any; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); _processBehavior: () => void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare const DIALOG_DEFAULT_OPTIONS: InjectionToken; interface DialogConfig { closeOnBackdropClick?: boolean; closeOnEsc?: boolean; } declare class DialogBaseComponent { #private; protected readonly _elementRef: ElementRef; _dialogConfig: { closeOnBackdropClick?: boolean; closeOnEsc?: boolean; }; protected readonly _hiding: i0.WritableSignal; readonly show: i0.ModelSignal; readonly afterClose: i0.OutputEmitterRef; readonly closedFromBackdrop: i0.OutputEmitterRef; set _contentChildBody(dialogBody: DialogBodyDirective); set _viewChildBody(dialogBody: DialogBodyDirective); dialogBody: DialogBodyDirective | null; readonly scrollTopDivider: i0.WritableSignal; readonly scrollBottomDivider: i0.WritableSignal; constructor(); protected backdropClick(): void; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DialogComponent extends DialogBaseComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const DIALOG_DATA: InjectionToken; declare class DialogService { private readonly _componentFactoryResolver; private readonly _appRef; private readonly _injector; private readonly _dialogStackService; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); _internalOpen(dialogType: Type, customInjectionTokens: WeakMap): T; open(dialogType: Type, data?: any): T; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const CONFIRM_DIALOG_DEFAULT_OPTIONS: InjectionToken; interface ConfirmDialogButtonConfig { text?: string; variant?: ButtonVariant; color?: ButtonColor; } declare class ConfirmDialogConfig implements DialogConfig { title?: string; confirmButton?: ConfirmDialogButtonConfig; cancelButton?: ConfirmDialogButtonConfig; closeOnBackdropClick?: boolean; closeOnEsc?: boolean; } declare abstract class ConfirmDialogComponent extends DialogComponent { private readonly sanitizer; safeMessage: string | null; set message(value: string); private _closed; readonly _confirmDialogConfig: ConfirmDialogConfig; onCancel: Subject; onConfirm: Subject; confirmed: boolean; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); private _assignConfig; close(): void; _cancelClick(): void; _confirmClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ProgressDialogComponent extends DialogComponent { readonly message: i0.WritableSignal; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ProgressDialogService { private readonly _dialogService; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); open(message?: string | null): ProgressDialogComponent; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DialogModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface RippleConfig { size?: number; borderRadius?: string; dontChangePositioning?: boolean; } declare class RippleDirective implements AfterViewInit { protected readonly _elementRef: ElementRef; private document; readonly rippleConfig: i0.InputSignal; readonly disabled: i0.InputSignal; isTouching: boolean; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); private static _setElementSquareSizeAndCenter; _mousedown: (e: MouseEvent) => void; _touchstart: (e: TouchEvent) => void; ngAfterViewInit(): void; createRipple(releaseEventName: string, releaseCallback: Function | null, pageX: number, pageY: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class RippleModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface InputBaseComponent { disabled: boolean; focused: boolean; empty: boolean; focus(): void; } type FormFieldAppearance = 'default' | 'box' | 'outlined' | 'search'; declare const FORM_FIELD_DEFAULT_APPEARANCE: InjectionToken; declare class FormFieldComponent { readonly _elementRef: ElementRef; _appearanceClass: string; _appearance: FormFieldAppearance; _defaultAppearance: FormFieldAppearance; _input: InputBaseComponent | null; _hasLabel: boolean; readonly selectionField: i0.InputSignal; set labelWidth(width: number); get removeMarginStyle(): "0" | ""; readonly invalid: i0.InputSignal; readonly removeMargin: i0.InputSignal; readonly supportingText: i0.InputSignal; readonly errorText: i0.InputSignal; readonly activated: i0.OutputEmitterRef; get appearance(): FormFieldAppearance; set appearance(value: FormFieldAppearance); /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); click(): void; mouseDown(e: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LabelDirective { /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class FormFieldModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare abstract class TextInputBase { readonly ngControl: NgControl | null; protected readonly _elementRef: ElementRef; focused: boolean; get disabled(): boolean; set disabled(value: boolean); protected _disabled: boolean; static ngAcceptInputType_disabled: boolean | ''; /** Whether the element is readonly. */ get readonly(): boolean; set readonly(value: boolean); private _readonly; get empty(): boolean; _blur: () => void; _focus: () => void; get _disabledAttribute(): true | null; protected constructor(ngControl: NgControl | null, formField: FormFieldComponent | null); focus(): void; /** Callback for the cases where the focused state of the input changes. */ _focusChanged(focused: boolean): void; mouseDown(e: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TextInputDirective extends TextInputBase { readonly ngControl: NgControl; readonly setInputClass: i0.InputSignal; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TextFieldModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TabBarDirective { #private; readonly activeTabIndex: i0.ModelSignal; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class FloatingActionBehaviorDirective extends ScrollBehavior { private readonly elementRef; private _lastScrollY; defaultTarget: Window & typeof globalThis; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); protected _processBehavior: (scrollTop: number | null) => void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface ConfirmDialogRef { onCancel: Observable; onConfirm: Observable; } declare class ConfirmDialogService { #private; open(message: string, config?: ConfirmDialogConfig): ConfirmDialogRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const SNACKBAR_DEFAULT_OPTIONS: InjectionToken; interface SnackbarConfig { actionLabel?: string | null; duration?: number; } interface SnackbarRef { message: string; action?: string; onAction: Observable; dismiss(): void; } declare class SnackbarService { private readonly _defaultConfig; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); open(message: string, config?: SnackbarConfig): SnackbarRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class UniversalMaterialModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { CONFIRM_DIALOG_DEFAULT_OPTIONS, ConfirmDialogComponent, ConfirmDialogConfig, ConfirmDialogService, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DialogBaseComponent, DialogBodyDirective, DialogComponent, DialogModule, DialogService, FORM_FIELD_DEFAULT_APPEARANCE, FloatingActionBehaviorDirective, FormFieldComponent, FormFieldModule, LabelDirective, ProgressDialogComponent, ProgressDialogService, RippleDirective, RippleModule, SNACKBAR_DEFAULT_OPTIONS, SnackbarService, TabBarDirective, TextFieldModule, TextInputBase, TextInputDirective, UmCheckControlValueAccessor, UmChipFieldControlValueAccessor, UmDatepickerControlValueAccessor, UmDatepickerMaxValidator, UmDatepickerMinValidator, UmDefaultControlValueAccessor, UmEndDateControlValueAccessor, UmRadioControlValueAccessor, UmRangeDatepickerDirective, UmRangeDatepickerPartControlValueAccessor, UmSelectControlValueAccessor, UmSelectOption, UmSliderControlValueAccessor, UmStartDateControlValueAccessor, UmTypeaheadControlValueAccessor, UniversalMaterialModule }; export type { ConfirmDialogRef, DialogConfig, FormFieldAppearance, InputBaseComponent, SnackbarConfig };