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 format = input<TimeFormats>(DEFAULT_TIME_FORMAT);
readonly min = input<D | null>(null);
readonly max = input<D | null>(null);
readonly id = input<string | undefined>();
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: ClipboardEvent): 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.
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.
idstring | undefined Unique id of the element, generated when not provided.
valueD | null | undefined The time the control holds: set with [value], by the form control and by typing. The model value is
adapted to the active zone, while the rendered text is owned by writeValue and by typing — a write made
with emitModelToViewChange: false updates this signal without rewriting the text, and (valueChange)
is not emitted for it.
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'>;