@taiga-ui/kit
Version:
Taiga UI Angular main components kit
18 lines (17 loc) • 1.02 kB
TypeScript
import { type FactoryProvider, InjectionToken } from '@angular/core';
import { type MaskitoTimeMode } from '@maskito/kit';
import { type TuiValueTransformer } from '@taiga-ui/cdk/classes';
import { type TuiDay, type 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;