import { KbqTimepickerModule } from '@koobiq/components/timepicker';@Directive({ selector: 'input[kbqTimepicker]', exportAs: 'kbqTimepicker' }) class KbqTimepicker<D> implements KbqFormFieldControl<D>, ControlValueAccessor, Validator { readonly errorStateMatcher = input<ErrorStateMatcher>(); readonly disabled = input<boolean>(false); readonly id = input<string | undefined>(); readonly format = input<TimeFormats>(DEFAULT_TIME_FORMAT); readonly min = input<D | null>(null); readonly max = input<D | null>(null); readonly value = input<D | null | undefined>(); readonly kbqValidationTooltip = input<KbqTooltipTrigger | undefined>(); readonly incorrectInput = output<void>(); get hasSelection(): boolean; get isFullFormat(): boolean; get isShortFormat(): boolean; get viewValue(): string; get ngControl(): any; selectionStart: number | null; selectionEnd: number | null; get timeFormatPlaceholder(): string; onInput: () => void; getSize(): number; focus(): void; focusChanged(isFocused: boolean): void; onBlur(): void; onPaste($event: any): void; onKeyDown(event: KeyboardEvent): void; validate(control: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; }
errorStateMatcherErrorStateMatcher Object used to control when error messages are shown.
disabledboolean Whether the timepicker is disabled. Also set by the bound form control.
idstring | undefined Unique id of the element, generated when not provided.
formatTimeFormats Time format the input parses and renders. An unsupported value falls back to the default.
minD | null Earliest time the control accepts. Anything the date adapter cannot read is treated as unset.
maxD | null Latest time the control accepts. Anything the date adapter cannot read is treated as unset.
valueD | null | undefined The time the control holds: set with [value], by the form control and by typing.
kbqValidationTooltipKbqTooltipTrigger | undefined Tooltip shown for a moment whenever a keystroke is rejected.
localeOverridesKbqPartialLocaleData | undefined Localized strings for this element and its subtree, keyed by locale section. Every key is optional at every depth.
timeFormatPlaceholderstring Localized placeholder
enum TimeFormats { HHmmss = 'HH:mm:ss', HHmm = 'HH:mm' }
enum TimeParts { hours, minutes, seconds }
const AM_PM_FORMAT_REGEXP: RegExp;const DEFAULT_TIME_FORMAT: TimeFormats;const HOURS_MINUTES_REGEXP: RegExp;const HOURS_MINUTES_SECONDS_REGEXP: RegExp;const HOURS_ONLY_REGEXP: RegExp;const HOURS_PER_DAY: number;Utility provider for KBQ_TIMEPICKER_LOCALE_CONFIGURATION. Only the strings you pass are overridden; the rest
keep following the active locale.
const kbqTimepickerLocaleConfigurationProvider: ( configuration: KbqDeepPartial<KbqTimepickerLocaleConfiguration> ) => Provider;
const MINUTES_PER_HOUR: number;const SECONDS_PER_MINUTE: number;const TIMEFORMAT_PLACEHOLDERS: { [timeFormat: string]: string };Object that maps each time format to a related locale key
const TimeFormatToLocaleKeys: Record<TimeFormats, 'full' | 'short'>;