import { KbqTimepickerModule } from '@koobiq/components/timepicker';

KbqTimepicker

directiveСкопировать ссылку на KbqTimepicker
@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;
}
errorStateMatcherinputСкопировать ссылку на errorStateMatcherErrorStateMatcher

Object used to control when error messages are shown.

disabledinputСкопировать ссылку на disabledboolean

Whether the timepicker is disabled. Also set by the bound form control.

idinputСкопировать ссылку на idstring | undefined

Unique id of the element, generated when not provided.

formatinputСкопировать ссылку на formatTimeFormats

Time format the input parses and renders. An unsupported value falls back to the default.

mininputСкопировать ссылку на minD | null

Earliest time the control accepts. Anything the date adapter cannot read is treated as unset.

maxinputСкопировать ссылку на maxD | null

Latest time the control accepts. Anything the date adapter cannot read is treated as unset.

valueinputСкопировать ссылку на valueD | null | undefined

The time the control holds: set with [value], by the form control and by typing.

kbqValidationTooltipinputСкопировать ссылку на kbqValidationTooltipKbqTooltipTrigger | undefined

Tooltip shown for a moment whenever a keystroke is rejected.

localeOverridesinputСкопировать ссылку на localeOverridesKbqPartialLocaleData | undefined

Localized strings for this element and its subtree, keyed by locale section. Every key is optional at every depth.

timeFormatPlaceholderСкопировать ссылку на timeFormatPlaceholderstring

Localized placeholder

TimeFormats

enumСкопировать ссылку на TimeFormats
enum TimeFormats {
HHmmss = 'HH:mm:ss',
HHmm = 'HH:mm'
}

TimeParts

enumСкопировать ссылку на TimeParts
enum TimeParts {
hours,
minutes,
seconds
}

AM_PM_FORMAT_REGEXP

constСкопировать ссылку на AM_PM_FORMAT_REGEXP
const AM_PM_FORMAT_REGEXP: RegExp;

DEFAULT_TIME_FORMAT

constСкопировать ссылку на DEFAULT_TIME_FORMAT
const DEFAULT_TIME_FORMAT: TimeFormats;

HOURS_MINUTES_REGEXP

constСкопировать ссылку на HOURS_MINUTES_REGEXP
const HOURS_MINUTES_REGEXP: RegExp;

HOURS_MINUTES_SECONDS_REGEXP

constСкопировать ссылку на HOURS_MINUTES_SECONDS_REGEXP
const HOURS_MINUTES_SECONDS_REGEXP: RegExp;

HOURS_ONLY_REGEXP

constСкопировать ссылку на HOURS_ONLY_REGEXP
const HOURS_ONLY_REGEXP: RegExp;

HOURS_PER_DAY

constСкопировать ссылку на HOURS_PER_DAY
const HOURS_PER_DAY: number;

kbqTimepickerLocaleConfigurationProvider

constСкопировать ссылку на kbqTimepickerLocaleConfigurationProvider

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;

MINUTES_PER_HOUR

constСкопировать ссылку на MINUTES_PER_HOUR
const MINUTES_PER_HOUR: number;

SECONDS_PER_MINUTE

constСкопировать ссылку на SECONDS_PER_MINUTE
const SECONDS_PER_MINUTE: number;

TIMEFORMAT_PLACEHOLDERS

constСкопировать ссылку на TIMEFORMAT_PLACEHOLDERS
const TIMEFORMAT_PLACEHOLDERS: { [timeFormat: string]: string };

TimeFormatToLocaleKeys

constСкопировать ссылку на TimeFormatToLocaleKeys

Object that maps each time format to a related locale key

const TimeFormatToLocaleKeys: Record<TimeFormats, 'full' | 'short'>;
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.