UNPKG

@taiga-ui/legacy

Version:

Legacy Taiga UI entities from the previous major release to simplify migration

88 lines (87 loc) 4.39 kB
import { type MaskitoOptions } from '@maskito/core'; import { type TuiValueTransformer } from '@taiga-ui/cdk/classes'; import { type TuiDateMode, TuiDay, TuiMonth, TuiTime, type TuiTimeMode } from '@taiga-ui/cdk/date-time'; import { type TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone'; import { type TuiBooleanHandler, type TuiContext } from '@taiga-ui/cdk/types'; import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types'; import { type TuiInputDateOptions } from '@taiga-ui/kit/tokens'; import { AbstractTuiControl } from '@taiga-ui/legacy/classes'; import { type TuiFocusableElementAccessor } from '@taiga-ui/legacy/tokens'; import { type Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * TODO(v5): delete it * @deprecated use new version of {@link https://taiga-ui.dev/components/input-date-time TuiInputDateTime} (from @taiga-ui/kit) instead */ export declare class TuiInputDateTimeComponent extends AbstractTuiControl<[TuiDay, TuiTime | null] | null> implements TuiFocusableElementAccessor { private readonly textfield?; private readonly options; private readonly textfieldSize; private month; private readonly timeMode$; private readonly nativeValue; protected readonly timeTexts$: Observable<{ 'MM:SS': string; 'HH:MM': string; 'HH:MM AA': string; 'HH:MM:SS': string; 'HH:MM:SS AA': string; 'HH:MM:SS.MSS': string; 'HH:MM:SS.MSS AA': string; 'HH AA': string; HH: string; 'MM:SS.MSS': string; 'MM.SS.MSS': string; 'SS.MSS': string; }>; protected readonly dateTexts$: Observable<Record<TuiDateMode, string>>; protected readonly valueTransformer: TuiValueTransformer<[ TuiDay, TuiTime | null ]> | null; protected readonly type: TuiContext<TuiActiveZone>; protected readonly filler$: Observable<string>; protected dateFormat: import("@taiga-ui/core/tokens").TuiDateFormatSettings; protected readonly isMobile: boolean; protected readonly dateFormat$: import("rxjs").Subscription; min: TuiDay | [TuiDay | null, TuiTime | null] | null; max: TuiDay | [TuiDay | null, TuiTime | null] | null; disabledItemHandler: TuiBooleanHandler<TuiDay>; defaultActiveYearMonth: TuiMonth; open: boolean; set timeMode(value: TuiTimeMode); get timeMode(): TuiTimeMode; get nativeFocusableElement(): HTMLInputElement | null; get focused(): boolean; get computedValue(): string; setDisabledState(): void; writeValue(value: [TuiDay, TuiTime | null] | null): void; onValueChange(value: string): void; protected get size(): TuiSizeL | TuiSizeS; protected get computedMin(): TuiDay | [TuiDay, TuiTime]; protected get computedMax(): TuiDay | [TuiDay, TuiTime]; protected get fillerLength(): number; protected get maskOptions(): MaskitoOptions; protected get calendarIcon(): TuiInputDateOptions['icon']; protected get showNativePicker(): boolean; protected get calendarValue(): TuiDay | null; protected get calendarMinDay(): TuiDay; protected get calendarMaxDay(): TuiDay; protected get computedActiveYearMonth(): TuiMonth; protected onClick(): void; protected onDayClick(day: TuiDay): void; protected onMonthChange(month: TuiMonth): void; protected onOpenChange(open: boolean): void; protected onFocused(focused: boolean): void; protected getFallbackValue(): [TuiDay, TuiTime | null] | null; protected valueIdenticalComparator(oldValue: [TuiDay, TuiTime | null] | null, newValue: [TuiDay, TuiTime | null] | null): boolean; private get nativePicker(); private calculateMask; private getDateTimeString; private clampTime; private trimTrailingSeparator; private toNativeDate; private toTuiDay; static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputDateTimeComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputDateTimeComponent, "tui-input-date-time", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabledItemHandler": { "alias": "disabledItemHandler"; "required": false; }; "defaultActiveYearMonth": { "alias": "defaultActiveYearMonth"; "required": false; }; "timeMode": { "alias": "timeMode"; "required": false; }; }, {}, never, ["*", "input"], false, never>; }