UNPKG

@taiga-ui/kit

Version:

Taiga UI Angular main components kit

19 lines (18 loc) 1.04 kB
import type { FactoryProvider } from '@angular/core'; import { InjectionToken } from '@angular/core'; import type { MaskitoTimeMode } from '@maskito/kit'; import type { TuiValueTransformer } from '@taiga-ui/cdk/classes'; import type { TuiDay, TuiTime } from '@taiga-ui/cdk/date-time'; import type { TuiInputDateOptionsNew } from '@taiga-ui/kit/components/input-date'; export interface TuiInputDateTimeOptions extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> { readonly timeMode: MaskitoTimeMode; readonly dateTimeSeparator: string; readonly valueTransformer: TuiValueTransformer<[TuiDay, TuiTime | null] | null, any>; } export declare const TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS: { readonly valueTransformer: TuiValueTransformer<any, any>; readonly timeMode: "HH:MM"; readonly dateTimeSeparator: ", "; }; export declare const TUI_INPUT_DATE_TIME_OPTIONS: InjectionToken<TuiInputDateTimeOptions>; export declare const tuiInputDateTimeOptionsProvider: (options: Partial<TuiInputDateTimeOptions>) => FactoryProvider;