@Component({ selector: 'kbq-action-container', exportAs: 'kbqActionContainer' })
class KbqActionContainer {}Component that is used to group instances of kbq-option.
When options aren't provided as ng-content, used as a Group Header with styling.
@Component({ selector: 'kbq-optgroup', exportAs: 'kbqOptgroup' })
class KbqOptgroup {
readonly label = input<string>();
readonly disabled = input<boolean>(false);
labelId: string;
}disabledboolean Whether the group, and every option in it, is disabled.
labelIdstring Unique id for the underlying label.
Single option inside of a <kbq-select> element.
@Component({ selector: 'kbq-option', exportAs: 'kbqOption' })
class KbqOption extends KbqOptionBase implements KbqTitleTextRef {
value = input<any>();
readonly selectable = input<boolean>(true);
readonly userSelect = input<boolean>(false);
showCheckbox = input<boolean | undefined>();
viewValue = input<string | undefined>();
disabled = input<boolean>(false);
readonly group: KbqOptgroup | null;
get textElement(): ElementRef<HTMLElement> | undefined;
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange>;
readonly stateChanges: Subject<void>;
get multiple(): boolean;
get id(): string;
get selected(): boolean;
get active(): boolean;
select(emitEvent?: boolean): void;
deselect(emitEvent?: boolean): void;
focus(): void;
setActiveStyles(): void;
setInactiveStyles(): void;
getLabel(): string;
handleKeydown(event: KeyboardEvent): void;
selectViaInteraction(): void;
getTabIndex(): string;
getHostElement(): HTMLElement;
}valueany The form value of the option.
showCheckboxboolean | undefined Whether the option renders a checkbox. Follows the multiple selection mode of the parent until bound.
viewValuestring | undefined The displayed value of the option. It is necessary to show the selected option in the select's trigger. Falls back to the text of the option.
disabledboolean Whether the option is disabled, through its own input or its group.
textElementElementRef<HTMLElement> | undefined Element holding the text of the option, measured by kbq-title.
onSelectionChangeEventEmitter<KbqOptionSelectionChange> Event emitted when the option is selected or deselected. A stream rather than an output(): it keeps
emitting after the option is destroyed, because a select holds on to a selected option that its search or
virtual scroll removed.
stateChangesSubject<void> Emits when the state of the option changes and any parents have to be notified.
multipleboolean Whether the wrapping component is in multiple selection mode.
activeboolean Whether or not the option is currently active and ready to be selected. An active option displays styles as if it is focused, but the focus is actually retained somewhere else. This comes in handy for components like autocomplete where focus must remain on the input.
focus()void Moves keyboard focus to this option and reveals it — see kbqFocusAndReveal.
setActiveStyles()void This method sets display styles on the option to make it appear active. This is used by the ActiveDescendantKeyManager so key events will display the proper options as active on arrow key events.
setInactiveStyles()void This method removes display styles on the option that made it appear active. This is used by the ActiveDescendantKeyManager so key events will display the proper options as active on arrow key events.
getLabel()string Gets the label to be used when determining whether the option should be focused.
handleKeydown()void Ensures the option is selected when activated from the keyboard.
selectViaInteraction()void Selects the option while indicating the selection came from the user. Used to determine if the select's view -> model callback should be invoked.
@Component({ selector: 'kbq-option-action', exportAs: 'kbqOptionAction' })
class KbqOptionActionComponent {
readonly ariaLabel = input<string>(undefined, {
alias: 'aria-label'
});
readonly disabled = input<boolean>(false);
hasFocus: boolean;
get active(): boolean;
focus(origin?: FocusOrigin, options?: FocusOptions): void;
onClick($event: any): void;
onKeyDown($event: any): void;
}aria-labelstring Accessible name of the button. The rendered content is an icon, so without a name the button is announced as unlabelled; defaults to the localized "option actions" text.
disabledboolean Whether the action is disabled.
localeOverridesKbqPartialLocaleData | undefined Localized strings for this element and its subtree, keyed by locale section. Every key is optional at every depth.
Shared behavior for checkbox-like controls: checked/disabled/indeterminate/tabIndex state, the click-to-toggle
algorithm, ARIA-checked computation, and ControlValueAccessor change plumbing.
Meant to be applied via hostDirectives by components that render their own native <input type="checkbox">
and markup (e.g. KbqCheckbox, KbqToggleComponent, or custom checkbox-like primitives). Hosts stay
responsible for their own public inputs/outputs, FocusMonitor wiring, and emitting their own typed
change event - this directive only centralizes the state and decisions behind them.
@Directive({ selector: '[kbqCheckable]', exportAs: 'kbqCheckable' })
class KbqCheckable implements ControlValueAccessor {
readonly checked = model<boolean>(false);
readonly disabled = model<boolean>(false);
readonly indeterminate = model<boolean>(false);
readonly effectiveTabIndex: Signal<number>;
getAriaChecked(): KbqCheckedState;
toggle(): void;
resolveClick(
clickAction: KbqCheckableClickAction
): KbqCheckableClickResult;
resetNativeInput(nativeInput: HTMLInputElement): void;
notifyFormValueChange(value: boolean): void;
}effectiveTabIndexSignal<number> The tab index actually applied to the native input: forced to -1 while disabled.
getAriaChecked()KbqCheckedState Returns the ARIA-checked value: 'true', 'false', or 'mixed' when indeterminate.
toggle()void Toggles the checked state and notifies the registered ControlValueAccessor change handler.
resolveClick()KbqCheckableClickResult Resolves what a click on the native input should do, based on the current state and clickAction.
Pure - does not mutate state. Callers apply checked/indeterminate themselves and own emitting
their own change events, so timing/order stays identical to a hand-written click handler.
resetNativeInput()void Resets the native input to match the current checked/indeterminate state (used for the noop click action).
notifyFormValueChange()void Notifies the registered ControlValueAccessor change handler.
Renders the color of a component as its kbq-<color> host class.
@Directive()
class KbqColorDirective<T extends string = KbqComponentColors | string> {
readonly color = input<T | null | undefined>();
get colorClassName(): string;
setDefaultColor(color: T): void;
}colorT | null | undefined Color of the component. A value set in code holds until the input changes, and the default color is used while both are unset or falsy.
colorClassNamestring current class name of color
setDefaultColor()void this color will be used as a default value. For example [color]="'' | false | undefined | null".
@Directive({
selector: '.kbq-form-vertical, .kbq-form-horizontal',
exportAs: 'kbqForm'
})
class KbqForm {
readonly elements: Signal<readonly KbqFormElement[]>;
handleElements(elements: readonly KbqFormElement[]): void;
}@Directive({
selector: '.kbq-form__row, .kbq-form__fieldset, .kbq-form__legend',
exportAs: 'kbqFormElement'
})
class KbqFormElement {
margin: boolean;
isFieldSet: boolean;
hasLegend: boolean;
isHorizontal: boolean;
readonly elements: Signal<readonly KbqFormElement[]>;
}Overrides localized strings for one element and its subtree, as a template binding.
The provider helpers — kbqSelectLocaleConfigurationProvider and its siblings — can only be attached to
an injector, so scoping an override to a single component instance means owning a component boundary.
This directive is the per-instance counterpart: every localized component applies it through
hostDirectives and exposes it as localeOverrides, and it can also be placed on any element of your
own to scope an override to a whole region.
It is also the read side: a component that applies it takes its own strings from read, so the
overrides and the strings they are supposed to override can never come apart. The two directions keep
separate names — [localeOverrides] writes a partial, localeConfiguration() reads the resolved whole.
Only the keys you pass are overridden; everything else keeps following the active locale.
The hostDirectives entry is spelled out in every component rather than shared as a const on purpose:
Angular resolves hostDirectives with the partial evaluator, and a component in another entry point
resolves this package through the built index.d.ts, where a const is a declaration without an
initializer — NG1010: Host directive reference must be a class.
@Directive({ selector: '[kbqLocaleOverrides]', exportAs: 'kbqLocaleOverrides' })
class KbqLocaleOverridesDirective implements KbqLocaleOverridesHost {
readonly overrides = input<KbqPartialLocaleData | undefined>(
undefined,
{ alias: 'kbqLocaleOverrides' }
);
readonly resolvedOverrides: Signal<KbqPartialLocaleData>;
read<K extends KbqLocaleSection>(
section: K,
token: InjectionToken<KbqLocaleData[K]>
): Signal<KbqLocaleData[K]>;
}kbqLocaleOverridesKbqPartialLocaleData | undefined Localized strings for this element and its subtree, keyed by locale section. Every key is optional at every depth.
read()Signal<KbqLocaleData[K]> Reactive localized strings for one section, resolved against this carrier and every ancestor of it.
The counterpart of kbqInjectLocaleConfiguration for a component that carries this directive.
It resolves the same sources — the two are interchangeable in what they return — but it is reached
through the carrier, so a component that forgot the hostDirectives entry fails at construction
instead of silently resolving an ancestor's carrier. Resolve it with { self: true } for that to
hold: { host: true } reaches the enclosing component's host element, where an ancestor would
answer. Carrying the directive is what makes [localeOverrides] work, so every localized component
reads this way; a component with no carrier of its own — a leaf, a pipe — calls
kbqInjectLocaleConfiguration instead.
Applying the directive is not the same as exposing its input: KbqDropzoneContent carries it without
one, because its content has no element for a consumer to bind on.
Sources are merged in the order the localization guide documents, and repeated calls with the same token return the same signal.
Call it from a field initializer or a constructor. It needs no injection context, but the first call
for a token opens a subscription, which Angular forbids inside a reactive context — a call from a
template expression or a computed throws, and only until the token has been cached.
sectionK Section of the locale data to read.
tokenInjectionToken<KbqLocaleData[K]> Configuration token, whose factory supplies the default strings.
@Directive({ selector: '[kbqNormalizeWhitespace]' })
class KbqNormalizeWhitespace {
onCopy($event: ClipboardEvent): void;
}onCopy()void Replace thin-space with space on copy event
Marker directive for the bottom-shadow indicator. Linked to the container directive via a
template ref: <footer [kbqOverflowShadowBottom]="containerRef">.
Sets an inline box-shadow on the host element. See KbqOverflowShadowTop.
@Directive({
selector: '[kbqOverflowShadowBottom]',
exportAs: 'kbqOverflowShadowBottom'
})
class KbqOverflowShadowBottom {
readonly ref = input<KbqOverflowShadowContainer | undefined>(
undefined,
{ alias: 'kbqOverflowShadowBottom' }
);
readonly shadow = input<string>(
'var(--kbq-shadow-overflow-normal-top)'
);
}kbqOverflowShadowBottomKbqOverflowShadowContainer | undefined Reference to the container directive. See KbqOverflowShadowTop.ref.
shadowstring Value of box-shadow when the shadow is active. Defaults to the standard Koobiq token.
Container directive that sits on the scrollable element. Listens for scroll events and
keeps the overflow signal up to date, which is then read by KbqOverflowShadowTop and
KbqOverflowShadowBottom.
The scroll source is auto-detected: if KBQ_OVERFLOW_SHADOW_SOURCE is provided in the
host's DI, that source is used; otherwise the native scroll event on the host element
is observed.
In addition to scroll events, the directive observes the scroll source's box-size changes
via CDK's SharedResizeObserver — this covers layout changes that happen without a scroll
and alter the viewport size (modal open/close animation, window resize, reflow that resizes
the element). Content that only grows scrollHeight without changing the element's box size
is not detected by the resize observer; call checkOverflow() manually for those cases.
@Directive({
selector: '[kbqOverflowShadowContainer]',
exportAs: 'kbqOverflowShadowContainer'
})
class KbqOverflowShadowContainer {
readonly debounce = input<number>(0);
readonly overflow: WritableSignal<KbqOverflowShadowState>;
checkOverflow(): void;
}debouncenumber Optional debounce for scroll events, in milliseconds. Default is 0.
overflowWritableSignal<KbqOverflowShadowState> Current shadow state. Re-checked on every scroll event and resize; changes only when an edge does.
checkOverflow()void Force-rechecks overflow and updates the signal. Calling this manually is normally not
necessary — scroll events plus SharedResizeObserver cover the standard scenarios. Kept
for rare cases when external code knows about a layout change more precisely than the
browser observers (e.g. content that only grows scrollHeight).
Marker directive for the top-shadow indicator. Linked to the container directive via a
template ref: <header [kbqOverflowShadowTop]="containerRef">.
Sets an inline box-shadow on the host element using the value from the shadow input
(the Koobiq token by default). Consumers can override the shadow from the outside by
overriding the token --kbq-shadow-overflow-normal-bottom (or whichever token is passed
via the shadow input) in the relevant cascade scope.
@Directive({
selector: '[kbqOverflowShadowTop]',
exportAs: 'kbqOverflowShadowTop'
})
class KbqOverflowShadowTop {
readonly ref = input<KbqOverflowShadowContainer | undefined>(
undefined,
{ alias: 'kbqOverflowShadowTop' }
);
readonly shadow = input<string>(
'var(--kbq-shadow-overflow-normal-bottom)'
);
}kbqOverflowShadowTopKbqOverflowShadowContainer | undefined Reference to the container directive. May be undefined if the container has not
been rendered yet (e.g. the indicator lives in one @if block and the container in
another).
shadowstring Value of box-shadow when the shadow is active. Defaults to the standard Koobiq token.
Renders the panels opened from inside the element into an overlay layer of its own, beneath a sticky kbq-top-bar
or kbq-navbar, so they slide under the bar while the content scrolls.
Covers the panels of select, tree-select, timezone select, dropdown, popover, autocomplete, datepicker and inline
edit. Modals, sidepanels, toasts, tooltips and the panels opened from outside the element or from a
KbqOverlayLayerExclude element inside it, such as the bars, stay in the application-wide overlay container
above the bars. The layer's z-index is --kbq-overlay-layer-z-index (980).
@Directive({ selector: '[kbqOverlayLayer]' })
class KbqOverlayLayer {}Keeps the panels opened from inside the element in the application-wide overlay container, even within a
KbqOverlayLayer element, so they stay above page chrome they overlap. kbq-top-bar, kbq-navbar and
kbq-vertical-navbar apply it themselves.
@Directive({ selector: '[kbqOverlayLayerExclude]' })
class KbqOverlayLayerExclude {}@Directive()
abstract class KbqPopUp {
protected readonly renderer: Renderer2;
protected get elementRef(): ElementRef<HTMLElement>;
protected readonly changeDetectorRef: ChangeDetectorRef;
readonly destroyRef: DestroyRef;
readonly hovered: Signal<boolean>;
trigger: KbqPopUpTrigger<unknown>;
header: string | TemplateRef<unknown>;
content: string | TemplateRef<unknown>;
context: { $implicit: unknown } | null;
classMap: {};
arrow: boolean;
arrowCentered: boolean;
protected arrowCenterInset: number;
defaultPaddings: boolean;
offset: number | null;
visibility: PopUpVisibility;
visibleChange: EventEmitter<boolean>;
protected prefix: string;
protected readonly onHideSubject: Subject<void>;
isTemplateRef(value: any): boolean;
show(delay: number): void;
hide(delay: number): void;
isVisible(): boolean;
updateClassMap(
placement: string,
customClass: string,
classMap?: any
): void;
afterHidden(): Observable<void>;
protected setHovered(value: boolean): void;
detectChanges(): void;
protected afterShowAnimation(): void;
protected addEventListenerForHide(): void;
protected setStickPosition(): void;
}elementRefElementRef<HTMLElement> The element the pop-up measures and decorates: its host, unless a subclass renders a panel of its own.
hoveredSignal<boolean> Whether the pointer is over the pop-up.
classMap{} CSS classes of the pop-up element: the placement, the custom class and the modifiers of the subclass.
arrowCenteredboolean Whether the arrow points at the origin center while the panel keeps its placement. Defaults to false.
arrowCenterInsetnumber Distance from a panel edge to the arrow center, in pixels. Defaults to 0.
visibilityPopUpVisibility Stage of the pop-up's life: not shown yet, visible, or hidden.
onHideSubjectSubject<void> Subject for notifying that the tooltip has been hidden from the view
hide()void Hides the popup after a specified delay.
The hide timeout triggers the hiding of the popup by updating visibility and emitting relevant events.
delaynumber The delay in milliseconds before hiding the popup.
afterHidden()Observable<void> Returns an observable that notifies when the tooltip has been hidden from view.
setHovered()void Records whether the pointer is over the pop-up, and lets the trigger re-evaluate its delayed hide.
afterShowAnimation()void Called once the pop-up has animated in. Only the entrance animates: hide() emits onHideSubject
synchronously and KbqPopUpTrigger detaches the overlay in the same call stack.
addEventListenerForHide()void Binds the mouseleave hide listener on the pop-up element, at most once per instance.
Abstract base directive for hover/focus/click-triggered pop-ups (e.g. tooltip and popover). It manages the CDK overlay lifecycle, binds the trigger event listeners, resolves placement via a flexible connected position strategy, and controls show/hide timing. Concrete subclasses supply the pop-up component type, its content, and the overlay configuration.
@Directive()
abstract class KbqPopUpTrigger<T> implements KbqSiblingPopup {
isOpen: boolean;
get isAttached(): boolean;
get openedChange(): Observable<boolean>;
arrowCentered: boolean;
protected setHovered(value: boolean): void;
updateOrigin(origin: KbqOverlayOrigin | null): void;
}isOpenboolean Whether the pop-up overlay is currently open.
isAttachedboolean Whether the pop-up overlay is currently attached.
Unlike isOpen, which follows the visibility of the pop-up component and therefore lags a task behind
show()/hide(), this flips synchronously — it is the window during which the overlay (and its
backdrop) is present in the DOM. Part of the KbqSiblingPopup contract.
openedChangeObservable<boolean> Emits true when the pop-up opens and false when it closes. Part of the KbqSiblingPopup contract.
arrowCenteredboolean Whether the arrow points at the origin center while the panel keeps its placement. Defaults to false.
setHovered()void Records whether the pointer is over the trigger.
updateOrigin()void Positions the pop-up against origin — an element, or a rectangle in viewport coordinates such as the one
kbqCreateCaretOrigin keeps on the caret — instead of the host element; null restores the host
element. An open pop-up moves to the new origin at once.
This moves the position origin only. setExternalNativeElement moves the host itself, and with it
the trigger's event listeners, its focus target and the scroll containers the pop-up follows.
Marks its host as read once the user has dwelled on it long enough, or has clicked it.
Dwelling is tracked for pointer (mouseenter/mouseleave) and keyboard (focusin/focusout)
interaction alike, so the host becomes readable without a mouse. The two channels run
independently — the pointer can still rest on the host after focus has left, and the other way
round — so the dwell ends only once both of them have. focusin/focusout bubble, so focusing any
control inside the host counts as dwelling on the host itself, and moving focus between two of them
keeps the dwell running.
@Directive()
class KbqReadStateDirective {
get timestamp(): number | undefined;
timeToRead: number;
readonly read: BehaviorSubject<boolean>;
startDwell(channel?: 'pointer' | 'focus'): void;
endDwell(channel?: 'pointer' | 'focus', event?: FocusEvent): void;
}timestampnumber | undefined Start of the earliest dwell still in progress, or undefined while the host is neither hovered nor focused.
timeToReadnumber How long (ms) the user has to dwell on the host before it counts as read.
startDwell()void Starts measuring a dwell on one channel. Re-entering the same one keeps its earliest start.
endDwell()void Ends the dwell on one channel and, once no channel is left dwelling, marks the host as read when
the whole dwell lasted longer than timeToRead.
event?FocusEvent the focusout that ended a focus dwell. Its relatedTarget is the element about to
receive focus: focus landing inside the host again is a move between the host's own controls, not
the user leaving.
@Directive({ selector: 'kbq-select-footer, [kbq-select-footer]' })
class KbqSelectFooter {}Action inside a kbq-select-footer, drawn as a row of the drop-down menu rather than as a form
button. Apply it to a native button or a so activation and semantics stay native.
@Directive({ selector: '[kbq-select-footer-item]' })
class KbqSelectFooterItem {}@Directive({ selector: 'kbq-select-matcher, [kbq-select-matcher]' })
class KbqSelectMatcher {
readonly useDefaultHandlers = input<boolean>(true);
}@Directive({ selector: '[kbqSelectSearch]', exportAs: 'kbqSelectSearch' })
class KbqSelectSearch {
readonly changes: EventEmitter<string>;
isSearchChanged: boolean;
get ngControl(): NgControl | null;
setPlaceholder(value: string): void;
focus(): void;
reset(): void;
value(): unknown;
handleKeydown(event: KeyboardEvent): void;
}@Directive({
selector: '[kbq-select-search-empty-result]',
exportAs: 'kbqSelectSearchEmptyResult'
})
class KbqSelectSearchEmptyResult {}@Directive({ selector: 'kbq-select-trigger, [kbq-select-trigger]' })
class KbqSelectTrigger {}Persists one component's state through KBQ_STATE_STORE.
Applied with hostDirectives, forwarding both inputs, and injected to drive it. What to persist and
when to read it stays with the component: read() once while initializing, write() on every change.
The Core page carries the worked example and the rules.
The key comes from stateSavingKey, or is derived from where the host sits in the document
(KBQ_STATE_SAVING_KEY_RESOLVER) — see the Core page for the rules that come with that.
@Directive({ selector: '[kbqStateSaving]', exportAs: 'kbqStateSaving' })
class KbqStateSaving implements KbqStateSavingRef {
readonly useStateSaving = input<boolean>(
inject(KBQ_STATE_SAVING_ENABLED)
);
readonly stateSavingKey = input<string>('');
readonly keyChanges = output<void>();
readonly host: Element | null;
get state(): unknown;
get name(): string;
get key(): string;
get enabled(): boolean;
read<T>(normalize: (parsed: unknown) => T | null): T | null;
write(state: unknown): void;
clear(): void;
applying<R>(apply: () => R): R;
}useStateSavingboolean Whether the component remembers its state across reloads and restores it on the next render.
Defaults to true, or to whatever KBQ_STATE_SAVING_ENABLED is provided as.
stateSavingKeystring The key the state is persisted under. While it is empty the key is derived from where the
component sits in the document, which moves when the surrounding markup is restructured — an id
on the component or any ancestor pins it just as well as this input does.
keyChangesvoid Emits when the key changes after the state was read, so the owner can restore from the new one.
The key is read once, while the owner restores, and write() refuses a key it has not read —
without this, moving a component to another key would stop its writes for good instead of moving
its state. Not forwarded from a host: the component that injects the directive is the one that
knows how to restore itself.
hostElement | null The host element the key is derived from, and by which KbqStateSavingService locates it.
Typed nullable for KbqStateSavingRef, whose other implementation has no element of its own —
KbqSidepanelService persists on behalf of a panel that lives in an overlay.
stateunknown The state last read from or written to the store, or null when there is none.
namestring How the host is named in dev-mode warnings: its tag, which is what the author sees in the markup.
keystring The key the state is persisted under, empty until read() has run. Deliberately the key that was
read: resolving one now needs the host to be in the document.
enabledboolean Whether this host persists — its own useStateSaving, not the application-wide switch.
read()T | null Reads the persisted state, coerced by normalize. Returns null while persistence is disabled,
and while no key can be resolved for the host.
normalize turns a raw payload into state and returns null when it cannot. Storage is
user-writable, so nothing is trusted; this is also where an older payload is migrated.
write()void Persists the state. A no-op while persistence is disabled, while applying() runs, and before
read() has run.
Pass the whole state, not a change to it: a full snapshot drops values that no longer exist.
clear()void Removes the persisted state. Persistence itself stays on — the next write() records it again.
Deliberately not gated on the application-wide switch, unlike read() and write(): that switch
means "stop remembering", and removing what was remembered carries it out.
applying()R Runs apply with write() suppressed, and nests safely. Restored state goes through the
component's own setters, which persist as they go.
Use the kbqAbsoluteLongDate pipe (KbqAbsoluteLongDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteLongDateImpurePipe', pure: false })
class AbsoluteDateFormatterImpurePipe<D> extends AbsoluteDateFormatterPipe<D> {
transform(
value: D | string | null | undefined,
currYear?: boolean
): string;
}Use the kbqAbsoluteLongDate pipe (KbqAbsoluteLongDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteLongDate' })
class AbsoluteDateFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D | string | null | undefined,
currYear?: boolean
): string;
}Use the kbqAbsoluteShortDate pipe (KbqAbsoluteShortDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteShortDateImpurePipe', pure: false })
class AbsoluteDateShortFormatterImpurePipe<D> extends AbsoluteDateShortFormatterPipe<D> {
transform(
value: D | string | null | undefined,
currYear?: boolean
): string;
}Use the kbqAbsoluteShortDate pipe (KbqAbsoluteShortDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteShortDate' })
class AbsoluteDateShortFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D | string | null | undefined,
currYear?: boolean
): string;
}Use the kbqAbsoluteLongDateTime pipe (KbqAbsoluteLongDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteLongDateTimeImpurePipe', pure: false })
class AbsoluteDateTimeFormatterImpurePipe<D> extends AbsoluteDateTimeFormatterPipe<D> {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqAbsoluteLongDateTime pipe (KbqAbsoluteLongDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteLongDateTime' })
class AbsoluteDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqAbsoluteShortDateTime pipe (KbqAbsoluteShortDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteShortDateTimeImpurePipe', pure: false })
class AbsoluteShortDateTimeFormatterImpurePipe<D> extends AbsoluteShortDateTimeFormatterPipe<D> {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqAbsoluteShortDateTime pipe (KbqAbsoluteShortDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'absoluteShortDateTime' })
class AbsoluteShortDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqDurationLong pipe (KbqDurationLongPipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'durationLongImpurePipe', pure: false })
class DurationLongFormatterImpurePipe<D> extends DurationLongFormatterPipe<D> {
transform(
value: D[] | string[] | null | undefined,
units?: DurationUnit[],
fraction?: boolean
): string;
}Use the kbqDurationLong pipe (KbqDurationLongPipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'durationLong' })
class DurationLongFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
units?: DurationUnit[],
fraction?: boolean
): string;
}Use the kbqDurationShortest pipe (KbqDurationShortestPipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'durationShortestImpurePipe', pure: false })
class DurationShortestFormatterImpurePipe<D> extends DurationShortestFormatterPipe<D> {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqDurationShortest pipe (KbqDurationShortestPipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'durationShortest' })
class DurationShortestFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqDurationShort pipe (KbqDurationShortPipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'durationShortImpurePipe', pure: false })
class DurationShortFormatterImpurePipe<D> extends DurationShortFormatterPipe<D> {
transform(
value: D[] | string[] | null | undefined,
units?: DurationUnit[],
fraction?: boolean
): string;
}Use the kbqDurationShort pipe (KbqDurationShortPipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'durationShort' })
class DurationShortFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
units?: DurationUnit[],
fraction?: boolean
): string;
}@Pipe({ name: 'kbqAbsoluteLongDate', pure: false })
class KbqAbsoluteLongDatePipe<D> extends BaseLocaleAwareFormatterPipe<D, D | string | null | undefined, [currYear?: boolean]> implements PipeTransform {
transform(
value: D | string | null | undefined,
currYear?: boolean
): string;
}@Pipe({ name: 'kbqAbsoluteLongDateTime', pure: false })
class KbqAbsoluteLongDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D | string | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqAbsoluteShortDate', pure: false })
class KbqAbsoluteShortDatePipe<D> extends BaseLocaleAwareFormatterPipe<D, D | string | null | undefined, [currYear?: boolean]> implements PipeTransform {
transform(
value: D | string | null | undefined,
currYear?: boolean
): string;
}@Pipe({ name: 'kbqAbsoluteShortDateTime', pure: false })
class KbqAbsoluteShortDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D | string | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqDataSize', pure: false })
class KbqDataSizePipe implements PipeTransform {
transform(
source: number,
precision?: number,
unitSystemName?: KbqMeasurementSystemType,
locale?: string
): string;
}transform()string Transforms bytes into localized size string
@Pipe({ name: 'kbqNumber', pure: false })
class KbqDecimalPipe implements KbqNumericPipe, PipeTransform {
transform(
value: any,
digitsInfo?: string,
locale?: string
): string | null;
}transform()string | null valueany The number to be formatted.
digitsInfo?string Decimal representation options, specified by a string
in the format {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}.
minIntegerDigits: The minimum number of integer digits before the decimal point.
Default is 1.minFractionDigits: The minimum number of digits after the decimal point.
Default is 0.maxFractionDigits: The maximum number of digits after the decimal point.
Default is 3.locale?string A locale code for the locale format rules to use.
When not supplied, uses the value of KBQ_LOCALE_ID, which is ru by default.
Formats the duration between two dates in the long text format, e.g. 2 дня и 4 часа.
Takes a [from, to] tuple, like the range pipes. units restricts the units to show (the
formatter picks them automatically when omitted), fraction adds a fractional part for years
and months.
Renders an empty string when the tuple itself or one of its bounds is missing or invalid, or when
from is later than to.
{{ [startedAt, finishedAt] | kbqDurationLong }}
{{ [startedAt, finishedAt] | kbqDurationLong: ['hours', 'minutes'] }}
{{ [startedAt, finishedAt] | kbqDurationLong: ['years'] : true }}@Pipe({ name: 'kbqDurationLong', pure: false })
class KbqDurationLongPipe<D> extends BaseLocaleAwareFormatterPipe<
D,
D[] | string[] | null | undefined,
[units?: DurationUnit[], fraction?: boolean]
> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
units?: DurationUnit[],
fraction?: boolean
): string;
}Formats the duration between two dates as a digital-clock value, e.g. 48:02:25.
Takes a [from, to] tuple, like the range pipes. options.seconds defaults to true and
options.milliseconds to false; options.currYear is not used by this format.
Renders an empty string when the tuple itself or one of its bounds is missing or invalid, or when
from is later than to.
{{ [startedAt, finishedAt] | kbqDurationShortest }}
{{ [startedAt, finishedAt] | kbqDurationShortest: { seconds: false } }}@Pipe({ name: 'kbqDurationShortest', pure: false })
class KbqDurationShortestPipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Formats the duration between two dates in the short text format, e.g. 2 д 4 ч.
Takes a [from, to] tuple, like the range pipes. units restricts the units to show (the
formatter picks them automatically when omitted), fraction adds a fractional part for years
and months.
Renders an empty string when the tuple itself or one of its bounds is missing or invalid, or when
from is later than to.
{{ [startedAt, finishedAt] | kbqDurationShort }}
{{ [startedAt, finishedAt] | kbqDurationShort: ['seconds', 'milliseconds'] }}@Pipe({ name: 'kbqDurationShort', pure: false })
class KbqDurationShortPipe<D> extends BaseLocaleAwareFormatterPipe<
D,
D[] | string[] | null | undefined,
[units?: DurationUnit[], fraction?: boolean]
> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
units?: DurationUnit[],
fraction?: boolean
): string;
}@Pipe({ name: 'kbqHighlightBackground' })
class KbqHighlightBackgroundPipe implements PipeTransform {
transform(
value: unknown,
keyword: unknown,
foldDiacritics?: boolean
): string;
}Wraps the matches of a search in a bold <mark class="kbq-highlight">.
@Pipe({ name: 'kbqHighlightBold' })
class KbqHighlightBoldPipe implements PipeTransform {
transform(
value: string | null | undefined,
keyword: string | readonly string[] | null | undefined,
foldDiacritics?: boolean
): string;
}transform()string Returns value as HTML with every match of keyword marked, or '' when value is not a string.
With foldDiacritics, a keyword matches regardless of diacritics: creme marks Crème.
Use the kbqHighlightBold pipe (KbqHighlightBoldPipe). Will be removed in 22.0.0.
@Pipe({ name: 'mcHighlight' })
class KbqHighlightPipe implements PipeTransform {
transform(
value: unknown,
keyword: unknown,
foldDiacritics?: boolean
): string;
}@Pipe({ name: 'kbqRangeLongDate', pure: false })
class KbqRangeLongDatePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, []> implements PipeTransform {
transform(value: D[] | string[] | null | undefined): string;
}@Pipe({ name: 'kbqRangeLongDateTime', pure: false })
class KbqRangeLongDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqRangeMiddleDateTime', pure: false })
class KbqRangeMiddleDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqRangeShortDate', pure: false })
class KbqRangeShortDatePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, []> implements PipeTransform {
transform(value: D[] | string[] | null | undefined): string;
}@Pipe({ name: 'kbqRangeShortDateTime', pure: false })
class KbqRangeShortDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqRelativeLongDate', pure: false })
class KbqRelativeLongDatePipe<D> extends BaseLocaleAwareFormatterPipe<
D,
D | string | null | undefined,
[options?: Pick<DateTimeOptions, 'sentenceStart'>]
> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: Pick<DateTimeOptions, 'sentenceStart'>
): string;
}@Pipe({ name: 'kbqRelativeLongDateTime', pure: false })
class KbqRelativeLongDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D | string | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqRelativeShortDate', pure: false })
class KbqRelativeShortDatePipe<D> extends BaseLocaleAwareFormatterPipe<
D,
D | string | null | undefined,
[options?: Pick<DateTimeOptions, 'sentenceStart'>]
> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: Pick<DateTimeOptions, 'sentenceStart'>
): string;
}@Pipe({ name: 'kbqRelativeShortDateTime', pure: false })
class KbqRelativeShortDateTimePipe<D> extends BaseLocaleAwareFormatterPipe<D, D | string | null | undefined, [options?: DateTimeOptions]> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}@Pipe({ name: 'kbqRoundNumber', pure: false })
class KbqRoundDecimalPipe implements PipeTransform {
transform(value: any, locale?: string): any;
}@Pipe({ name: 'kbqTableNumber', pure: false })
class KbqTableNumberPipe implements KbqNumericPipe, PipeTransform {
transform(
value: any,
digitsInfo?: string,
locale?: string
): string | null;
}transform()string | null valueany The number to be formatted.
digitsInfo?string Decimal representation options, specified by a string
in the format {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}.
minIntegerDigits: The minimum number of integer digits before the decimal point.
Default is 1.minFractionDigits: The minimum number of digits after the decimal point.
Default is 0.maxFractionDigits: The maximum number of digits after the decimal point.
Default is 3.locale?string A locale code for the locale format rules to use.
When not supplied, uses the value of KBQ_LOCALE_ID, which is ru by default.
Use the kbqRangeLongDate pipe (KbqRangeLongDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeLongDateImpurePipe', pure: false })
class RangeDateFormatterImpurePipe<D> extends RangeDateFormatterPipe<D> {
transform(value: D[] | string[] | null | undefined): string;
}Use the kbqRangeLongDate pipe (KbqRangeLongDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeLongDate' })
class RangeDateFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(value: D[] | string[] | null | undefined): string;
}Use the kbqRangeLongDateTime pipe (KbqRangeLongDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeLongDateTimeImpurePipe', pure: false })
class RangeDateTimeFormatterImpurePipe<D> extends RangeDateTimeFormatterPipe<D> {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRangeLongDateTime pipe (KbqRangeLongDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeLongDateTime' })
class RangeDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRangeMiddleDateTime pipe (KbqRangeMiddleDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeMiddleDateTimeImpurePipe', pure: false })
class RangeMiddleDateTimeFormatterImpurePipe<D> extends RangeMiddleDateTimeFormatterPipe<D> {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRangeMiddleDateTime pipe (KbqRangeMiddleDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeMiddleDateTime' })
class RangeMiddleDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRangeShortDate pipe (KbqRangeShortDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeShortDateImpurePipe', pure: false })
class RangeShortDateFormatterImpurePipe<D> extends RangeShortDateFormatterPipe<D> {
transform(value: D[] | string[] | null | undefined): string;
}Use the kbqRangeShortDate pipe (KbqRangeShortDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeShortDate' })
class RangeShortDateFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(value: D[] | string[] | null | undefined): string;
}Use the kbqRangeShortDateTime pipe (KbqRangeShortDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeShortDateTimeImpurePipe', pure: false })
class RangeShortDateTimeFormatterImpurePipe<D> extends RangeShortDateTimeFormatterPipe<D> {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRangeShortDateTime pipe (KbqRangeShortDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'rangeShortDateTime' })
class RangeShortDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D[] | string[] | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRelativeLongDate pipe (KbqRelativeLongDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeLongDateImpurePipe', pure: false })
class RelativeDateFormatterImpurePipe<D> extends RelativeDateFormatterPipe<D> {
transform(value: D | string | null | undefined): string;
}Use the kbqRelativeLongDate pipe (KbqRelativeLongDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeLongDate' })
class RelativeDateFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(value: D | string | null | undefined): string;
}Use the kbqRelativeLongDateTime pipe (KbqRelativeLongDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeLongDateTimeImpurePipe', pure: false })
class RelativeDateTimeFormatterImpurePipe<D> extends RelativeDateTimeFormatterPipe<D> {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRelativeLongDateTime pipe (KbqRelativeLongDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeLongDateTime' })
class RelativeDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRelativeShortDate pipe (KbqRelativeShortDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeShortDateImpurePipe', pure: false })
class RelativeShortDateFormatterImpurePipe<D> extends RelativeShortDateFormatterPipe<D> {
transform(value: D | string | null | undefined): string;
}Use the kbqRelativeShortDate pipe (KbqRelativeShortDatePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeShortDate' })
class RelativeShortDateFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(value: D | string | null | undefined): string;
}Use the kbqRelativeShortDateTime pipe (KbqRelativeShortDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeShortDateTimeImpurePipe', pure: false })
class RelativeShortDateTimeFormatterImpurePipe<D> extends RelativeShortDateTimeFormatterPipe<D> {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}Use the kbqRelativeShortDateTime pipe (KbqRelativeShortDateTimePipe), which follows a locale change.
Will be removed in 22.0.0.
@Pipe({ name: 'relativeShortDateTime' })
class RelativeShortDateTimeFormatterPipe<D> extends BaseFormatterPipe<D> implements PipeTransform {
transform(
value: D | string | null | undefined,
options?: DateTimeOptions
): string;
}@Injectable()
class DateFormatter<D> extends BaseDateFormatter<D> {
readonly adapter: DateAdapter<D>;
config: FormatterConfig;
setLocale(localeName: string): void;
relativeDate(
date: D,
template: FormatterRelativeTemplate,
seconds?: boolean,
milliseconds?: boolean,
sentenceStart?: boolean
): string;
relativeShortDate(date: D, options?: DateTimeOptions): string;
relativeLongDate(date: D, options?: DateTimeOptions): string;
relativeShortDateTime(date: D, options?: DateTimeOptions): string;
relativeLongDateTime(date: D, options?: DateTimeOptions): string;
absoluteDate(
date: D,
params: FormatterAbsoluteTemplate,
datetime?: boolean,
seconds?: boolean,
milliseconds?: boolean,
currYear?: boolean
): string;
absoluteShortDate(date: D, currYear?: boolean): string;
absoluteShortDateTime(date: D, options?: DateTimeOptions): string;
absoluteLongDate(date: D, currYear?: boolean): string;
absoluteLongDateTime(date: D, options?: DateTimeOptions): string;
openedRangeDate(
startDate: D | null,
endDate: D | null,
template: FormatterRangeTemplate
): string;
openedRangeDateTime(
startDate: D | null,
endDate: D | null,
template: FormatterRangeTemplate,
seconds?: boolean,
milliseconds?: boolean
): string;
rangeDate(
startDate: D,
endDate: D,
template: FormatterRangeTemplate
): string;
rangeDateTime(
startDate: D,
endDate: D,
template: FormatterRangeTemplate,
seconds?: boolean,
milliseconds?: boolean
): string;
rangeShortDate(startDate: D | null, endDate?: D): string;
rangeShortDateTime(
startDate: D | null,
endDate?: D | null,
options?: DateTimeOptions
): string;
rangeLongDate(startDate: D | null, endDate?: D | null): string;
rangeLongDateTime(
startDate: D | null,
endDate?: D,
options?: DateTimeOptions
): string;
rangeMiddleDateTime(
startDate: D,
endDate: D,
options?: DateTimeOptions
): string;
durationShortest(
startDate: D,
endDate: D,
seconds?: boolean,
milliseconds?: boolean
): string;
duration(
startDate: D,
endDate: D,
units: DurationUnit[],
fraction: boolean,
template: FormatterDurationTemplate
): string;
durationLong(
startDate: D,
endDate: D,
units?: DurationUnit[],
fraction?: boolean
): string;
durationShort(
startDate: D,
endDate: D,
units?: DurationUnit[],
fraction?: boolean
): string;
}relativeDate()string dateD date
templateFormatterRelativeTemplate template
seconds?boolean use seconds
milliseconds?boolean use milliseconds
sentenceStart?boolean whether the formatted value starts a sentence
string relative date by template
relativeShortDate()string dateD date
options?DateTimeOptions DateTimeOptions
string relative date in short format
relativeLongDate()string dateD date
options?DateTimeOptions DateTimeOptions
string relative date in long format
relativeShortDateTime()string dateD date
options?DateTimeOptions DateTimeOptions
string relative date in short format with time
relativeLongDateTime()string dateD date
options?DateTimeOptions DateTimeOptions
string relative date in long format with time
absoluteDate()string dateD date
paramsFormatterAbsoluteTemplate parameters
datetime?boolean should time be shown as well
seconds?boolean should time with seconds be shown as well
milliseconds?boolean should time with milliseconds be shown as well
currYear?boolean should current year be shown as well
absoluteShortDate()string dateD date
currYear?boolean should the year be shown forced
string absolute date in short format
absoluteShortDateTime()string dateD date
options?DateTimeOptions DateTimeOptions
string absolute date in short format with time
absoluteLongDate()string dateD date
currYear?boolean should the year be shown forced
string absolute date in long format
absoluteLongDateTime()string dateD date
options?DateTimeOptions DateTimeOptions
string absolute date in long format with time
openedRangeDate()string startDateD | null start date
endDateD | null end date
templateFormatterRangeTemplate template
string opened date
openedRangeDateTime()string startDateD | null start date
endDateD | null end date
templateFormatterRangeTemplate template
seconds?boolean should time with seconds be shown as well
milliseconds?boolean should time with milliseconds be shown as well
string opened date
rangeDate()string startDateD start date
endDateD end date
templateFormatterRangeTemplate template
string range date in template format
rangeDateTime()string startDateD start date
endDateD end date
templateFormatterRangeTemplate template
seconds?boolean use seconds
milliseconds?boolean use milliseconds
string range date in template format with time
rangeShortDate()string startDateD | null start date
endDate?D end date
string range date in short format
rangeShortDateTime()string startDateD | null start date
endDate?D | null end date
options?DateTimeOptions DateTimeOptions
string range date in short format with time
rangeLongDate()string startDateD | null start date
endDate?D | null end date
string range date in long format
rangeLongDateTime()string startDateD | null start date
endDate?D end date
options?DateTimeOptions DateTimeOptions
string range date in long format with time
rangeMiddleDateTime()string startDateD start date
endDateD end date
options?DateTimeOptions DateTimeOptions
string range middle date with time
durationShortest()string startDateD start date
endDateD end date
seconds?boolean add seconds to formatted value
milliseconds?boolean add milliseconds to formatted value
string formatted duration as string like 48:02:25
duration()string startDateD start date
endDateD end date
unitsDurationUnit[] if defined, units to show will be specified
fractionboolean shows fraction part for years and months
templateFormatterDurationTemplate specify template
string formatted duration as string
Provider that defines how form controls behave with regards to displaying error messages. Error state matcher that matches when a control is invalid and touched or form is submitted.
@Injectable({ providedIn: 'root' })
class ErrorStateMatcher {
isErrorState(
control: AbstractControl | null,
form: FormGroupDirective | NgForm | null
): boolean;
}Holds the time zone every date the library creates, parses and formats is rendered in.
Provided in root, so KBQ_DATE_TIMEZONE in the application providers configures the whole
application. To scope a zone to one subtree, list kbqDateTimezoneProvider in that component's
providers together with the date adapter and the DateFormatter: the adapter captures the service of
the injector that created it, and keeps using it.
@Injectable({ providedIn: 'root' })
class KbqDateTimezoneService {
readonly timezone: Signal<KbqTimezoneLike>;
readonly changes: Observable<KbqTimezoneLike>;
setTimezone(timezone: KbqTimezoneLike): void;
offsetAt(timestamp: number): number | null;
}timezoneSignal<KbqTimezoneLike> Active time zone.
changesObservable<KbqTimezoneLike> Emits when the active time zone changes.
The counterpart of DateAdapter.localeChanges, for the surfaces that render a date once instead of
through an impure pipe — the date inputs and the calendar.
setTimezone()void Activates a time zone.
offsetAt()number | null Offset of the active zone at timestamp, in minutes east of UTC, or null when dates are left in
the host zone.
@Injectable({ providedIn: 'root' })
class KbqLocaleService {
readonly changes: BehaviorSubject<string>;
readonly locales: KbqLocaleDataMap;
readonly localeId: Signal<KbqLocaleIdLike>;
readonly data: Signal<KbqLocaleData>;
readonly items: Signal<KbqLocaleItem[]>;
/** @deprecated */
id: string;
/** @deprecated */
current: KbqLocaleData;
setLocale(id: KbqLocaleIdLike): void;
addLocale(
id: KbqLocaleIdLike,
localeData: KbqPartialLocaleData
): void;
getParams<K extends KbqLocaleSection>(section: K): KbqLocaleData[K];
getParams(section: string): any;
params<K extends KbqLocaleSection>(
section: K
): Signal<KbqLocaleData[K]>;
}changesBehaviorSubject<string> Emits the active locale id on every change.
Prefer the localeId signal in new code — a signal read from a template registers on the
reading view, which an observable subscribed in one component cannot do for its children.
localesKbqLocaleDataMap Every registered locale keyed by id, plus the items list used to render locale pickers.
localeIdSignal<KbqLocaleIdLike> Active locale id.
dataSignal<KbqLocaleData> Locale data of the active locale. Always complete — see addLocale.
itemsSignal<KbqLocaleItem[]> Registered locales, for rendering a locale picker.
idstring Use the localeId signal. Will be removed in 22.0.0.
currentKbqLocaleData Use the data signal. Will be removed in 22.0.0.
setLocale()void Activates a locale.
addLocale()void Registers a locale and activates it.
The data may be partial: every section — and every key within a section — is optional, and whatever
is omitted is completed from the shipped locale of the same id, or from the default locale when the
id is new. That is what lets getParams promise a complete section for any registered locale.
getParams()KbqLocaleData[K] Localized strings of one section of the active locale.
Passing a known KbqLocaleSection resolves the precise configuration type; any other string
falls back to any, so dynamically-built section names keep working.
params()Signal<KbqLocaleData[K]> Reactive counterpart of getParams: re-emits whenever the locale changes.
Default KbqStateStore implementation, persisting into localStorage.
@Injectable({ providedIn: 'root' })
class KbqLocalStorageStateStore extends KbqWebStorageStateStore {
readonly changes: Observable<void>;
keys(): string[];
getState(key: string): unknown;
setState(key: string, state: unknown): void;
removeState(key: string): void;
}changesObservable<void> storage fires only in the other documents of the same origin, never in the one that wrote the
value, so this reports exactly the external changes KbqStateStore.changes is meant to report,
with no echo of this instance's own writes.
Nothing in the library uses it. Measure the scrollbar of the element that scrolls instead:
element.offsetWidth - element.clientWidth. Will be removed in 22.0.0.
@Injectable({ providedIn: 'root' })
class KbqMeasureScrollbarService {
get scrollBarWidth(): number;
initScrollBarWidth(): void;
}KbqStateStore implementation persisting into sessionStorage, so the state lives for the tab
session instead of until it expires.
providers: [{ provide: KBQ_STATE_STORE, useExisting: KbqSessionStorageStateStore }]@Injectable({ providedIn: 'root' })
class KbqSessionStorageStateStore extends KbqWebStorageStateStore {
readonly changes: Observable<void>;
keys(): string[];
getState(key: string): unknown;
setState(key: string, state: unknown): void;
removeState(key: string): void;
}changesObservable<void> storage fires only in the other documents of the same origin, never in the one that wrote the
value, so this reports exactly the external changes KbqStateStore.changes is meant to report,
with no echo of this instance's own writes.
OverlayContainer that places the .cdk-overlay-container inside a shadow root instead of document.body.
Provide it with kbqShadowDomOverlayProvider.
The default CDK OverlayContainer always appends its container to document.body. When the application is
rendered inside a shadow root (e.g. a Module Federation micro-frontend), overlays — toasts, modals, dropdowns,
tooltips, etc. — escape the shadow tree into the light DOM. There they lose access to the styles and theme tokens
scoped to the shadow root (Koobiq theme tokens are defined on the .kbq-light / .kbq-dark ancestor), which
results in unstyled overlays.
This container resolves the target shadow root from KBQ_SHADOW_DOM_OVERLAY_HOST (or the root component when
the token is absent) and relocates the overlay container into it. After relocating, it also clones CDK's own
structural overlay stylesheet (position/z-index/backdrop, .cdk-overlay-container:empty) into the shadow root,
since those document.head styles do not cross the shadow boundary. If no shadow root is found — the common case
for an app rendered directly in the light DOM — the container is left on document.body, so it is safe to provide
unconditionally.
Only open shadow roots can be resolved: a closed shadow root exposes neither Element.shadowRoot nor a
ShadowRoot from getRootNode(), so pass an element that already lives inside the closed tree if you must use one.
Note: this fixes the overlay container placement and delivers the CDK structural overlay styles. The host
application is still responsible for delivering the Koobiq component/theme styles (the .kbq-light / .kbq-dark
tokens and component CSS) into the shadow root, since global document.head stylesheets do not cascade across a
shadow boundary.
@Injectable()
class KbqShadowDomOverlayContainer extends OverlayContainer {
getContainerElement(): HTMLElement;
}getContainerElement()HTMLElement This method returns the overlay container element. It will lazily create the element the first time it is called to facilitate using the container in non-browser environments.
HTMLElement the container element
Reports and manages what has been persisted through KbqStateSaving.
Two sources, because neither covers the other. The registry of live components says who persists,
under which key, and what they currently hold — including a component given its own
KBQ_STATE_STORE, which the root store cannot see. The root store says what is actually stored,
including entries no live component claims: a component whose surrounding markup changed writes under
a new key and strands the old entry, and only the store knows it is still there.
Everything is reported as a snapshot rather than a signal. Components register while their host is
being created, which happens during change detection, and a signal written then is read back by a
view that has already been checked (NG0100). Subscribe to changes to know when to take a new
snapshot.
const stateSaving = inject(KbqStateSavingService);
stateSaving.clearOrphans();
stateSaving.setEnabled(false);@Injectable({ providedIn: 'root' })
class KbqStateSavingService {
readonly changes: Observable<void>;
isEnabled(): boolean;
setEnabled(enabled: boolean): void;
components(): readonly KbqStateSavingRef[];
keys(): string[];
orphans(): string[];
read(key: string): unknown;
write(key: string, state: unknown): void;
remove(key: string): void;
clear(): void;
clearOrphans(): void;
}changesObservable<void> Emits whenever this picture changes: a component registered, persisted, cleared or was destroyed, this service wrote or removed something, or the store reported a change made outside this tab.
It says that something changed, never what — take a fresh snapshot in response. Expect it to be chatty: the initial render of a page full of persisting components emits once per component, and a component that persists on every interaction emits on every interaction.
isEnabled()boolean Whether components are allowed to persist.
setEnabled()void Turns persistence off, or back on, for every component at once — the switch behind a "do not
remember my interface" setting. A component's own useStateSaving still has to be set for it to
persist; this only takes that away.
Turning it off stops reading and writing. It does not remove what is already stored, and does not
collapse what was already restored — call clear() for the first, reload for the second. A
component reads once while it initializes, so a setting that arrives later than that reaches the
next render; provide KBQ_STATE_SAVING_ENABLED to decide before anything reads.
components()readonly KbqStateSavingRef[] Every live component that persists state, in registration order.
keys()string[] Every key the root store holds. Empty when the store cannot enumerate — see KbqStateStore.keys,
which a backend-backed store is expected to leave out.
orphans()string[] The keys the root store holds that no live component claims — what a markup change leaves behind.
A component that has not read yet claims nothing, so a page still initializing can report a key as orphaned for as long as that takes.
read()unknown The raw payload stored under the key, or null.
Raw: normalizing a payload into state belongs to the component that wrote it (see the
normalize callback of KbqStateSaving.read()), and the service does not know which component that is.
write()void Overwrites the payload stored under the key. It has to be JSON-serializable, and in the shape the
owning component's normalize accepts — anything else is rejected on read and the component falls
back to its default.
A component restores once, while initializing, so this reaches a component that is already on screen only after a reload.
remove()void Removes the entry stored under the key, in the root store and in any live component's own.
clear()void Removes every entry, claimed and orphaned alike.
clearOrphans()void Removes only the entries no live component claims, leaving what is in use alone.
KbqThemeStore implementation backed by a cookie, for apps with live Angular SSR — a cookie travels
with the request, so the server can read it and render the right theme immediately, unlike localStorage.
On the server it reads the incoming request's Cookie header itself, so no bootstrap wiring is needed.
Not useful for a statically prerendered site — there is no request there, so use
KbqThemeLocalStorageStore instead.
@Injectable({ providedIn: 'root' })
class KbqThemeCookieStore implements KbqThemeStore {
getMode(): KbqThemeMode | null;
setMode(mode: KbqThemeMode): void;
getStaticTheme(): string | null;
setStaticTheme(name: string | null): void;
}Default KbqThemeStore implementation backed by localStorage.
All access is guarded so it is safe on the server (SSR) and in environments where storage throws on access
(private mode, sandboxed iframes). The storage key is configured via KBQ_THEME_CONFIG.storageKey
(see kbqThemeProvider()).
@Injectable({ providedIn: 'root' })
class KbqThemeLocalStorageStore implements KbqThemeStore {
readonly changes: Observable<void>;
getMode(): KbqThemeMode | null;
setMode(mode: KbqThemeMode): void;
getStaticTheme(): string | null;
setStaticTheme(name: string | null): void;
}changesObservable<void> storage fires only in the other documents of the same origin, never in the one that wrote the
value, so this reports exactly the external changes KbqThemeStore.changes is meant to report,
with no echo of this instance's own writes. EMPTY on the server, which has no other tabs to hear
from — a listener there would never fire.
Manages the active Koobiq theme: resolves mode() against the OS color scheme and the registered
themes(), applies the active theme's class to the document body, and persists mode() via
KBQ_THEME_STORE.
providers: [kbqThemeProvider({ themes: myThemes, mode: 'dark' })]@Injectable({ providedIn: 'root' })
class KbqThemeService<T extends KbqThemeConfig = KbqThemeConfig> {
readonly themes: Signal<T[]>;
readonly mode: Signal<KbqThemeMode>;
readonly staticTheme: Signal<string | null>;
readonly currentTheme: Signal<T | null>;
readonly colorScheme: Signal<KbqThemeColorScheme>;
setThemes(items: T[]): void;
setMode(mode: KbqThemeMode): void;
selectTheme(name: string | null): void;
toggle(): void;
}themesSignal<T[]> Themes available to select from. Set via setThemes() to register a fully custom set.
modeSignal<KbqThemeMode> Selected fixed 'light'/'dark' mode, or 'auto' to follow the OS color scheme. Set via setMode().
staticThemeSignal<string | null> Name of a theme selected out of themes(),
overriding mode resolution in currentTheme() until
cleared or setMode()/toggle() is called. null when nothing is selected.
currentThemeSignal<T | null> The static theme if staticTheme() is set, otherwise the theme whose colorScheme matches resolvedMode().
colorSchemeSignal<KbqThemeColorScheme> currentTheme()'s polarity, falling back to resolvedMode() if nothing matched.
setThemes()void Replaces the registered theme set with a fully custom one.
setMode()void Sets a fixed 'light'/'dark' mode, or 'auto' to follow the OS color scheme, clearing any active
static theme so this always hands control back to dynamic resolution.
selectTheme()void Pins a theme by name out of themes(), or clears the pin when name is null.
toggle()void Switches between 'light'/'dark', based on colorScheme() — the current theme's actual polarity.
Base KbqStateStore backed by one of the Window storages, which the subclass picks.
All access is guarded so it is safe on the server (SSR) and in environments where storage throws on access (private mode, sandboxed iframes) or holds a payload that is not even valid JSON.
@Injectable()
abstract class KbqWebStorageStateStore implements KbqStateStore {
readonly changes: Observable<void>;
protected abstract getStorage(window: Window): Storage;
keys(): string[];
getState(key: string): unknown;
setState(key: string, state: unknown): void;
removeState(key: string): void;
}changesObservable<void> storage fires only in the other documents of the same origin, never in the one that wrote the
value, so this reports exactly the external changes KbqStateStore.changes is meant to report,
with no echo of this instance's own writes.
getStorage()Storage The storage this store reads from and writes to.
Error state matcher that matches when a control is invalid and dirty or form is submitted.
@Injectable()
class ShowOnControlDirtyErrorStateMatcher implements ErrorStateMatcher {
isErrorState(
control: AbstractControl | null,
form: FormGroupDirective | NgForm | null
): boolean;
}Error state matcher that matches when a control is invalid and form is submitted. Requires use FormGroupDirective or NgForm.
@Injectable()
class ShowOnFormSubmitErrorStateMatcher implements ErrorStateMatcher {
isErrorState(
control: AbstractControl | null,
form: FormGroupDirective | NgForm | null
): boolean;
}Error state matcher with split behavior based on error's type:
required errors are shown only after the form is submitted.@Injectable()
class ShowRequiredOnSubmitErrorStateMatcher implements ErrorStateMatcher {
isErrorState(
control: AbstractControl | null,
form: FormGroupDirective | NgForm | null
): boolean;
}class ActiveDescendantKeyManager<T> extends ListKeyManager<Highlightable & T> {
tabOut: Subject<void>;
change: Subject<number>;
previousActiveItemIndex: number;
get activeItemIndex(): number;
get activeItem(): T | null;
setActiveItem(index: number): void;
setActiveItem(item: T): void;
isTyping(): boolean;
withScrollSize(scrollSize: number): this;
withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this;
withWrap(shouldWrap?: boolean): this;
skipPredicate(predicate: (item: T) => boolean): this;
withVerticalOrientation(enabled?: boolean): this;
withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this;
withTypeAhead(
debounceInterval?: number,
searchLetterIndex?: number
): this;
withHomeAndEnd(enabled?: boolean): this;
onKeydown(event: KeyboardEvent): void;
setFirstItemActive(): void;
setLastItemActive(): void;
setNextItemActive(): void;
setPreviousItemActive(): void;
setNextPageItemActive(delta?: number): void;
setPreviousPageItemActive(delta?: number): void;
updateActiveItem(index: number): void;
updateActiveItem(item: number | T): void;
}tabOutSubject<void> Stream that emits any time the TAB key is pressed, so components can react when focus is shifted off of the list.
changeSubject<number> Stream that emits whenever the active item of the list manager changes.
setActiveItem()void This method sets the active item to the item at the specified index. It also adds active styles to the newly active item and removes active styles from the previously active item.
indexnumber Index of the item to be set as active.
isTyping()boolean Gets whether the user is currently typing into the manager using the typeahead feature.
withAllowedModifierKeys()this Modifier keys which are allowed to be held down and whose default actions will be prevented as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
withWrap()this Turns on wrapping mode, which ensures that the active item will wrap to the other end of list when there are no more items in the given direction.
skipPredicate()this Sets the predicate function that determines which items should be skipped by the list key manager.
predicate(item: T) => boolean Function that determines whether the given item should be skipped.
withVerticalOrientation()this Configures whether the key manager should be able to move the selection vertically.
enabled?boolean Whether vertical selection should be enabled.
withHorizontalOrientation()this Configures the key manager to move the selection horizontally.
Passing in null will disable horizontal movement.
direction'ltr' | 'rtl' | null Direction in which the selection can be moved.
withTypeAhead()this Turns on typeahead mode which allows users to set the active item by typing.
debounceInterval?number Time to wait after the last keystroke before setting the active item.
searchLetterIndex?number letter index for incremental search, if is -1 search is disabled
withHomeAndEnd()this Configures the key manager to activate the first and last items respectively when the Home or End key is pressed.
enabled?boolean Whether pressing the Home or End key activates the first/last item.
onKeydown()void Sets the active item depending on the key event passed in.
eventKeyboardEvent Keyboard event to be used for determining which element should be active.
updateActiveItem()void Allows setting the active without any other effects.
indexnumber Index of the item to be set as active.
The base of the deprecated unprefixed date pipes. Will be removed in 22.0.0.
class BaseFormatterPipe<D> {}abstract class DateAdapter<D> extends BaseDateAdapter<D> {
abstract get localeChanges(): Observable<any>;
config: DateAdapterConfig;
protected locale: any;
abstract getYear(date: D): number;
abstract getMonth(date: D): number;
abstract getDate(date: D): number;
abstract getDayOfWeek(date: D): number;
abstract getHours(date: D): number;
abstract getMinutes(date: D): number;
abstract getSeconds(date: D): number;
abstract getMilliseconds(date: D): number;
abstract getTime(date: D): number;
abstract getMonthNames(
style: "short" | "long" | "narrow"
): string[];
abstract getDateNames(): string[];
abstract getDayOfWeekNames(
style: "short" | "long" | "narrow"
): string[];
abstract getYearName(date: D): string;
abstract getFirstDayOfWeek(): number;
abstract getNumDaysInMonth(date: D): number;
abstract clone(date: D): D;
abstract createDate(year: number, month?: number, date?: number): D;
abstract createDateTime(
year: number,
month: number,
date: number,
hours: number,
minutes: number,
seconds: number,
milliseconds: number
): D;
abstract today(): D;
abstract parse(value: any, parseFormat: any): D | null;
abstract format(date: D, displayFormat: any): string;
abstract addCalendarUnits(
date: D,
amount: number | DurationObjectUnits,
unit?: DurationUnit
): D;
abstract addCalendarYears(date: D, years: number): D;
abstract addCalendarMonths(date: D, months: number): D;
abstract addCalendarDays(date: D, days: number): D;
abstract toIso8601(date: D): string;
abstract isDateInstance(obj: any): boolean;
abstract isValid(date: D): boolean;
abstract invalid(): D;
abstract hasSame(startDate: D, endDate: D, unit: string): boolean;
abstract diffNow(date: D, unit: string): number;
abstract daysFromToday(date: D): number;
abstract durationObjectFromDates(
start: D,
end: D,
units: DurationUnit[],
showFraction?: boolean
): DurationObjectUnits;
abstract durationAs(
durationObject: DurationObjectUnits,
unit: DurationUnit
): number;
abstract durationFormat(
durationObject: DurationObjectUnits,
displayFormat: any
): string;
abstract startOf(date: D, unit: DateUnit): D;
deserialize(value: any): D | null;
setLocale(locale: any): void;
compareDate(first: D, second: D): number;
compareDateTime(first: D, second: D): number;
sameDate(first: D | null, second: D | null): boolean;
clampDate(date: D, min?: D | null, max?: D | null): D;
}localeChangesObservable<any> A stream that emits when the locale changes.
localeany The locale to use for all dates.
getYear()number Gets the year component of the given date.
dateD The date to extract the year from.
number The year component.
getMonth()number Gets the month component of the given date.
dateD The date to extract the month from.
number The month component (0-indexed, 0 = January).
getDate()number Gets the date of the month component of the given date.
dateD The date to extract the date of the month from.
number The month component (1-indexed, 1 = first of month).
getDayOfWeek()number Gets the day of the week component of the given date.
dateD The date to extract the day of the week from.
number The month component (0-indexed, 0 = Sunday).
getHours()number Gets the hours component of the given date.
dateD The date to extract from.
number The hours component in 24h format.
getMinutes()number Gets the minutes component of the given date.
dateD The date to extract from.
number The minutes component
getSeconds()number Gets the seconds component of the given date.
dateD The date to extract from.
number The seconds component
getMilliseconds()number Gets the milliseconds component of the given date.
dateD The date to extract from.
number The milliseconds component
getTime()number Gets returns the number of milliseconds since the Unix Epoch of the given date.
dateD The date to extract from.
number The milliseconds
getMonthNames()string[] Gets a list of names for the months.
style"short" | "long" | "narrow" The naming style (e.g. long = 'January', short = 'Jan', narrow = 'J').
string[] An ordered list of all month names, starting with January.
getDateNames()string[] Gets a list of names for the dates of the month.
string[] An ordered list of all date of the month names, starting with '1'.
getDayOfWeekNames()string[] Gets a list of names for the days of the week.
style"short" | "long" | "narrow" The naming style (e.g. long = 'Sunday', short = 'Sun', narrow = 'S').
string[] An ordered list of all weekday names, starting with Sunday.
getYearName()string Gets the name for the year of the given date.
dateD The date to get the year name for.
string The name of the given year (e.g. '2017').
getFirstDayOfWeek()number Gets the first day of the week.
number The first day of the week (0-indexed, 0 = Sunday).
getNumDaysInMonth()number Gets the number of days in the month of the given date.
dateD The date whose month should be checked.
number The number of days in the month of the given date.
clone()D Clones the given date.
dateD The date to clone
D A new date equal to the given date.
createDate()D Creates a date with the given year, month, and date. Does not allow over/under-flow of the month and date.
yearnumber The full year of the date. (e.g. 89 means the year 89, not the year 1989).
month?number The month of the date (0-indexed, 0 = January). Must be an integer 0 - 11.
date?number The date of month of the date. Must be an integer 1 - length of the given month.
D The new date, or null if invalid.
createDateTime()D Creates a date time with the given year, month, date, hours, minutes, seconds and milliseconds. Does not allow over/under-flow of the month and date.
yearnumber The full year of the date. (e.g. 89 means the year 89, not the year 1989).
monthnumber The month of the date (0-indexed, 0 = January). Must be an integer 0 - 11.
datenumber The date of month of the date. Must be an integer 1 - length of the given month.
hoursnumber The date of month of the date. Must be an integer 1 - length of the given month.
minutesnumber The date of month of the date. Must be an integer 1 - length of the given month.
secondsnumber The date of month of the date. Must be an integer 1 - length of the given month.
millisecondsnumber The date of month of the date. Must be an integer 1 - length of the given month.
D The new date, or null if invalid.
today()D Gets today's date.
D Today's date.
parse()D | null Parses a date from a user-provided value.
valueany The value to parse.
parseFormatany The expected format of the value being parsed (type is implementation-dependent).
D | null The parsed date.
format()string Formats a date as a string according to the given format.
dateD The value to format.
displayFormatany The format to use to display the date as a string.
string The formatted date string.
addCalendarUnits()D Adds calendar units to a date.
dateD The date to add units to
amountnumber | DurationObjectUnits The amount to add (number with unit param) or duration object with multiple units
unit?DurationUnit The unit type (e.g., 'days', 'months', 'years') when amount is a number
D A new date with the specified units added
addCalendarYears()D Adds the given number of years to the date. Years are counted as if flipping 12 pages on the calendar for each year and then finding the closest date in the new month. For example when adding 1 year to Feb 29, 2016, the resulting date will be Feb 28, 2017.
dateD The date to add years to.
yearsnumber The number of years to add (maybe negative).
D A new date equal to the given one with the specified number of years added.
addCalendarMonths()D Adds the given number of months to the date. Months are counted as if flipping a page on the calendar for each month and then finding the closest date in the new month. For example when adding 1 month to Jan 31, 2017, the resulting date will be Feb 28, 2017.
dateD The date to add months to.
monthsnumber The number of months to add (may be negative).
D A new date equal to the given one with the specified number of months added.
addCalendarDays()D Adds the given number of days to the date. Days are counted as if moving one cell on the calendar for each day.
dateD The date to add days to.
daysnumber The number of days to add (may be negative).
D A new date equal to the given one with the specified number of days added.
toIso8601()string Gets the RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339) for the given date.
This method is used to generate date strings that are compatible with native HTML attributes
such as the min or max attribute of an <input>.
dateD The date to get the ISO date string for.
string The ISO date string.
isDateInstance()boolean Checks whether the given object is considered a date instance by this DateAdapter.
objany The object to check
boolean Whether the object is a date instance.
isValid()boolean Checks whether the given date is valid.
dateD The date to check.
boolean Whether the date is valid.
invalid()D Gets date instance that is not valid.
D An invalid date.
startOf()D "Set" given date to the beginning of the given unit.
deserialize()D | null Attempts to deserialize a value to a valid date object. This is different from parsing in that
deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
string). The default implementation does not allow any deserialization, it simply checks that
the given value is already a valid date object or null. The <mat-datepicker> will call this
method on all of it's @Input() properties that accept dates. It is therefore possible to
support passing values from your backend directly to these properties by overriding this method
to also deserialize the format used by your backend.
valueany The value to be deserialized into a date object.
D | null The deserialized date object, either a valid date, null if the value can be deserialized into a null date (e.g. the empty string), or an invalid date.
setLocale()void Sets the locale used for all dates.
localeany The new locale.
compareDate()number Compares two dates.
firstD The first date to compare.
secondD The second date to compare.
number 0 if the dates are equal, a number less than 0 if the first date is earlier, a number greater than 0 if the first date is later.
compareDateTime()number Compares two dates.
firstD The first date to compare.
secondD The second date to compare.
number 0 if the dates are equal, a number less than 0 if the first date is earlier, a number greater than 0 if the first date is later.
sameDate()boolean Checks if two dates are equal.
firstD | null The first date to check.
secondD | null The second date to check.
boolean Whether the two dates are equal. Null dates are considered equal to other null dates.
clampDate()D Clamp the given date between min and max dates.
dateD The date to clamp.
min?D | null The minimum value to allow. If null or omitted no min is enforced.
max?D | null The maximum value to allow. If null or omitted no max is enforced.
D min if date is less than min, max if date is greater than max,
otherwise date.
class EmptyFocusTrapStrategy implements FocusTrapInertStrategy {
preventFocus(): void;
allowFocus(): void;
}Provides a set of validators for file-related form controls.
class FileValidators {
static maxFileSize(maxSize: number): ValidatorFn;
static isCorrectExtension(
accept: (`.${string}` | `${string}/${string}`)[]
): ValidatorFn;
}maxFileSize()ValidatorFn Validator that checks if the file size is less than or equal to the provided maxSize.
maxSizenumber The maximum allowed file size in bytes.
ValidatorFn A ValidatorFn function that checks the file size.
const control = new FormControl(null, [FileValidators.maxFileSize(1024 * 1024)]); // 1MB
control.setValue(FILE_LESS_OR_EQUAL_THAN_1MB);
console.log(control.errors); // null
control.setValue(FILE_MORE_THAN_1MB);
console.log(control.errors); // {maxFileSize: { max: 1048576, actual: FILE_MORE_THAN_1MB.size }}isCorrectExtension()ValidatorFn Validator that checks whether file's name or MIME type matches one of the accepted extensions or MIME types.
accept(`.${string}` | `${string}/${string}`)[] Array of allowed file extensions or MIME types.
ValidatorFn ValidatorFn that returns validation error if file type is not accepted, or null otherwise.
class FocusKeyManager<T> extends ListKeyManager<IFocusableOption & T> {
tabOut: Subject<void>;
change: Subject<number>;
previousActiveItemIndex: number;
get activeItemIndex(): number;
get activeItem(): T | null;
setActiveItem(item: number | T): void;
setFocusOrigin(origin: FocusOrigin): this;
/** @deprecated */
getFocusOrigin(): FocusOrigin;
isTyping(): boolean;
withScrollSize(scrollSize: number): this;
withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this;
withWrap(shouldWrap?: boolean): this;
skipPredicate(predicate: (item: T) => boolean): this;
withVerticalOrientation(enabled?: boolean): this;
withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this;
withTypeAhead(
debounceInterval?: number,
searchLetterIndex?: number
): this;
withHomeAndEnd(enabled?: boolean): this;
onKeydown(event: KeyboardEvent): void;
setFirstItemActive(): void;
setLastItemActive(): void;
setNextItemActive(): void;
setPreviousItemActive(): void;
setNextPageItemActive(delta?: number): void;
setPreviousPageItemActive(delta?: number): void;
updateActiveItem(index: number): void;
updateActiveItem(item: number | T): void;
}tabOutSubject<void> Stream that emits any time the TAB key is pressed, so components can react when focus is shifted off of the list.
changeSubject<number> Stream that emits whenever the active item of the list manager changes.
setActiveItem()void Sets the active item or index to the item that is specified and focuses it.
itemnumber | T Item to be set as active.
setFocusOrigin()this Sets the focus origin that will be passed in to the items for any subsequent focus calls.
originFocusOrigin Focus origin to be used when focusing items.
getFocusOrigin()FocusOrigin Keep the origin you pass to setFocusOrigin(). Will be removed in 22.0.0.
isTyping()boolean Gets whether the user is currently typing into the manager using the typeahead feature.
withAllowedModifierKeys()this Modifier keys which are allowed to be held down and whose default actions will be prevented as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
withWrap()this Turns on wrapping mode, which ensures that the active item will wrap to the other end of list when there are no more items in the given direction.
skipPredicate()this Sets the predicate function that determines which items should be skipped by the list key manager.
predicate(item: T) => boolean Function that determines whether the given item should be skipped.
withVerticalOrientation()this Configures whether the key manager should be able to move the selection vertically.
enabled?boolean Whether vertical selection should be enabled.
withHorizontalOrientation()this Configures the key manager to move the selection horizontally.
Passing in null will disable horizontal movement.
direction'ltr' | 'rtl' | null Direction in which the selection can be moved.
withTypeAhead()this Turns on typeahead mode which allows users to set the active item by typing.
debounceInterval?number Time to wait after the last keystroke before setting the active item.
searchLetterIndex?number letter index for incremental search, if is -1 search is disabled
withHomeAndEnd()this Configures the key manager to activate the first and last items respectively when the Home or End key is pressed.
enabled?boolean Whether pressing the Home or End key activates the first/last item.
onKeydown()void Sets the active item depending on the key event passed in.
eventKeyboardEvent Keyboard event to be used for determining which element should be active.
updateActiveItem()void Allows setting the active without any other effects.
indexnumber Index of the item to be set as active.
Scroll strategy that repositions the overlay on scroll and reports when the tracked element moves outside its boundary:
originElement: tracks the origin against each ancestor CdkScrollable container.originElement: tracks the overlay panel against the viewport.Two ways to react to the out-of-bounds event, usable independently or together:
hide — a handle for callers that don't control how this strategy is
constructed (e.g. reaching into an existing component's overlayRef.getConfig().scrollStrategy
from the outside).onHide via the factory returned by kbqAutoHideScrollStrategyFactory — for callers
that construct the strategy themselves.class KbqAutoHideScrollStrategy implements ScrollStrategy {
readonly hide: Observable<void>;
constructor(
scrollDispatcher: ScrollDispatcher,
viewportRuler: ViewportRuler,
ngZone: NgZone,
config?: KbqAutoHideScrollStrategyConfig,
hooks?: KbqAutoHideScrollStrategyHooks
);
enable(): void;
disable(): void;
detach(): void;
}hideObservable<void> Emits once when the tracked element scrolls outside its boundary.
enable()void Subscribes to scroll events and starts repositioning / out-of-bounds detection.
disable()void Unsubscribes from scroll events.
detach()void Disables the strategy and completes hide.
abstract class KbqOptionBase {
abstract get value(): any;
abstract get viewValue(): string;
abstract get disabled(): boolean;
abstract readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<any>>;
abstract select(): void;
abstract deselect(): void;
protected emitSelectionChangeEvent(isUserInput?: boolean): void;
}emitSelectionChangeEvent()void Emits the selection change event.
Event object emitted by KbqOption when selected or deselected.
class KbqOptionSelectionChange<T = KbqOption> {
source: T;
isUserInput: boolean;
constructor(source: T, isUserInput?: boolean);
}Event emitted by the onSelectAll outputs when the select-all toggle runs.
class KbqSelectAllEvent<T, S = unknown> {
readonly source: S;
readonly options: T[];
readonly selected: boolean;
constructor(source: S, options: T[], selected: boolean);
}sourceS Component that emitted the event.
optionsT[] The selectable options affected by the toggle.
selectedboolean true when all options were selected, false when all were deselected.
constructor()sourceS Component that emitted the event.
optionsT[] The selectable options affected by the toggle.
selectedboolean true when all options were selected, false when all were deselected.
class KbqVirtualOption extends KbqOptionBase {
disabled: any;
get selected(): boolean;
get viewValue(): string;
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<KbqVirtualOption>>;
value: any;
constructor(value: any, _disabled?: boolean, _viewValue?: string);
select(): void;
deselect(): void;
protected emitSelectionChangeEvent(isUserInput?: boolean): void;
}emitSelectionChangeEvent()void Emits the selection change event.
This class manages keyboard events for selectable lists. If you pass it a query list of items, it will set the active item correctly when arrow events occur.
class ListKeyManager<T extends ListKeyManagerOption> {
tabOut: Subject<void>;
change: Subject<number>;
previousActiveItemIndex: number;
get activeItemIndex(): number;
get activeItem(): T | null;
constructor(_items: QueryList<T>);
isTyping(): boolean;
withScrollSize(scrollSize: number): this;
withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this;
withWrap(shouldWrap?: boolean): this;
skipPredicate(predicate: (item: T) => boolean): this;
withVerticalOrientation(enabled?: boolean): this;
withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this;
withTypeAhead(
debounceInterval?: number,
searchLetterIndex?: number
): this;
withHomeAndEnd(enabled?: boolean): this;
setActiveItem(index: number | T): void;
onKeydown(event: KeyboardEvent): void;
setFirstItemActive(): void;
setLastItemActive(): void;
setNextItemActive(): void;
setPreviousItemActive(): void;
setNextPageItemActive(delta?: number): void;
setPreviousPageItemActive(delta?: number): void;
updateActiveItem(index: number): void;
updateActiveItem(item: number | T): void;
}tabOutSubject<void> Stream that emits any time the TAB key is pressed, so components can react when focus is shifted off of the list.
changeSubject<number> Stream that emits whenever the active item of the list manager changes.
isTyping()boolean Gets whether the user is currently typing into the manager using the typeahead feature.
withAllowedModifierKeys()this Modifier keys which are allowed to be held down and whose default actions will be prevented as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
withWrap()this Turns on wrapping mode, which ensures that the active item will wrap to the other end of list when there are no more items in the given direction.
skipPredicate()this Sets the predicate function that determines which items should be skipped by the list key manager.
predicate(item: T) => boolean Function that determines whether the given item should be skipped.
withVerticalOrientation()this Configures whether the key manager should be able to move the selection vertically.
enabled?boolean Whether vertical selection should be enabled.
withHorizontalOrientation()this Configures the key manager to move the selection horizontally.
Passing in null will disable horizontal movement.
direction'ltr' | 'rtl' | null Direction in which the selection can be moved.
withTypeAhead()this Turns on typeahead mode which allows users to set the active item by typing.
debounceInterval?number Time to wait after the last keystroke before setting the active item.
searchLetterIndex?number letter index for incremental search, if is -1 search is disabled
withHomeAndEnd()this Configures the key manager to activate the first and last items respectively when the Home or End key is pressed.
enabled?boolean Whether pressing the Home or End key activates the first/last item.
setActiveItem()void Sets the active item to the item at the index specified.
indexnumber | T The index of the item to be set as active or item The item to be set as active.
onKeydown()void Sets the active item depending on the key event passed in.
eventKeyboardEvent Keyboard event to be used for determining which element should be active.
updateActiveItem()void Allows setting the active without any other effects.
indexnumber Index of the item to be set as active.
Provides a set of validators for password form controls.
class PasswordValidators {
static minLength(min: number): ValidatorFn;
static maxLength(max: number): ValidatorFn;
static minUppercase(min: number): ValidatorFn;
static minLowercase(min: number): ValidatorFn;
static minNumber(min: number): ValidatorFn;
static minSpecial(min: number): ValidatorFn;
}minLength()ValidatorFn Validator that requires the control's value length to be at least min characters.
min - number of characters.
const control = new FormControl('password', PasswordValidators.minLength(10));
console.log(control.errors); // {minLength: {min: 10, actual: 8}}maxLength()ValidatorFn Validator that requires the control's value length to be at most max characters.
max - number of characters.
const control = new FormControl('password', PasswordValidators.maxLength(6));
console.log(control.errors); // {maxLength: {max: 6, actual: 8}}minUppercase()ValidatorFn Validator that requires the control's value to be at least min uppercase characters.
min - number of uppercase characters.
const control = new FormControl('Password', PasswordValidators.minUppercase(2));
console.log(control.errors); // {minUppercase: {min: 2, actual: 1}}minLowercase()ValidatorFn Validator that requires the control's value to be at least min lowercase characters.
min - number of lowercase characters.
const control = new FormControl('PASSWORD', PasswordValidators.minLowercase());
console.log(control.errors); // {minLowercase: {min: 1, actual: 0}}minNumber()ValidatorFn Validator that requires the control's value to be at least min number characters.
min - number of number characters.
const control = new FormControl('passw0rd', PasswordValidators.minNumber(2));
console.log(control.errors); // {minNumber: {min: 2, actual: 1}}minSpecial()ValidatorFn Validator that requires the control's value to be at least min special characters.
min - number of special characters.
['!','@','#','$','%','^','&','*']const control = new FormControl('pa$sword', PasswordValidators.minSpecial(2));
console.log(control.errors); // {minSpecial: {min: 2, actual: 1}}Error state matcher that also shows an error set on a FormGroup on the controls that error concerns,
which the default matcher cannot: it is handed the field's own FormControl and never looks further.
scope maps an error to those controls, so no error shape is imposed on validators. The error is revealed
once every one of them is touched, or the form is submitted — override shouldReveal to change that.
providers: [
kbqErrorStateMatcherProvider(
new ShowOnCrossFieldErrorStateMatcher((key) =>
key === 'passwordsMismatch' ? ['newPassword', 'confirmPassword'] : null
)
)
]Always pass an instance, as above — never the bare class (or a subclass) to kbqErrorStateMatcherProvider.
scope has no injection token, so Angular cannot construct this class on its own; passing the class throws
NG0204 the first time anything injects ErrorStateMatcher.
Cross-field display timing is this class's one job; timing for a control's own, non-cross-field errors is
not, so it is delegated to own (default: the plain ErrorStateMatcher) rather than hard-coded — pass any
other matcher to combine its timing with cross-field support, instead of subclassing:
new ShowOnCrossFieldErrorStateMatcher(
(key) => (key === 'passwordsMismatch' ? ['newPassword', 'confirmPassword'] : null),
new ShowRequiredOnSubmitErrorStateMatcher()
)class ShowOnCrossFieldErrorStateMatcher extends ErrorStateMatcher {
constructor(scope: CrossFieldErrorScope, own?: ErrorStateMatcher);
isErrorState(
control: AbstractControl | null,
form: FormGroupDirective | NgForm | null
): boolean;
protected shouldReveal(controls: AbstractControl[]): boolean;
}shouldReveal()boolean Whether the controls a cross-field error concerns have been interacted with enough to show it.
Consulted only while the form has not been submitted — a submit always reveals. A disabled control
counts as satisfied, since it can never be touched by the user. Override to change the rule: when one
end of a range is prefilled and the user is never expected to visit it, waiting for all of them hides
the error until submit, and controls.some(...) is the better cue.
Function that parse string and return a number. The string can be in any locale.
function checkAndNormalizeLocalizedNumber(
num: string | null | undefined,
locale?: string
): number | null;Creates a fake event object with any desired event type.
function createFakeEvent(
type: string,
canBubble?: boolean,
cancelable?: boolean
): Event;Dispatches a keydown event from an element.
function createKeyboardEvent(
type: string,
keyCode: number,
target?: Element,
key?: string
): any;Creates a browser MouseEvent with the specified options.
function createMouseEvent(
type: string,
x?: number,
y?: number,
button?: number
): MouseEvent;Builds a case- and diacritic-insensitive substring predicate for the given query. The query is
tokenized (bare words + "quoted phrases") and every token must match (AND) against at least
one of the supplied haystacks (OR across fields) — pass a single string for a single-field
search, or an array for multi-field rows. An empty/whitespace-only query matches everything.
function createSearchPredicate(
query: string
): (value: string | readonly string[]) => boolean;Creates a browser TouchEvent with the specified pointer coordinates.
function createTouchEvent(
type: string,
pageX?: number,
pageY?: number
): UIEvent;Utility to dispatch any event on a Node.
function dispatchEvent(node: Node | Window, event: Event): Event;Shorthand to dispatch a fake event on a specified node.
function dispatchFakeEvent(
node: Node | Window,
type: string,
canBubble?: boolean
): Event;Shorthand to dispatch a keyboard event with a specified key code and, optionally, a KeyboardEvent.key.
function dispatchKeyboardEvent(
node: Node,
type: string,
keyCode: number,
target?: Element,
key?: string
): KeyboardEvent;Shorthand to dispatch a mouse event on the specified coordinates.
function dispatchMouseEvent(
node: Node,
type: string,
x?: number,
y?: number,
event?: MouseEvent
): MouseEvent;Shorthand to dispatch a touch event on the specified coordinates.
function dispatchTouchEvent(
node: Node,
type: string,
x?: number,
y?: number
): Event;Escapes characters in the specified string that have special meaning in a regular expression.
function escapeRegExp(value: string): string;Locates every case- and diacritic-insensitive match of tokens in value, returning [start, end)
ranges in value's own (unfolded) coordinates — overlapping or adjacent ranges are merged. This is
what a highlighter needs to stay in sync with createSearchPredicate: matching a folded value
like cafe against Café only tells you that it matched, not where in the original string to
mark, since folding can change which letters look alike without changing the string's length.
function findSearchMatchRanges(
value: string,
tokens: readonly string[]
): Array<[number, number]>;Formats a number value according to locale and formatting options
function formatNumberWithLocale(
value: unknown,
formatter: Intl.NumberFormat,
options?: KbqNumberFormatOptions
): string;Converts a byte value into locale-independent file size parts: numeric value and unit abbreviation.
getFormattedSizeParts(1500, 'SI'); // { value: "1.50", unit: "KB" }function getFormattedSizeParts(
value: number,
system: KbqUnitSystem
): { value: string; unit: string };valuenumber size in bytes.
systemKbqUnitSystem unit system defining abbreviations and base scaling (SI/IEC).
{ value: string; unit: string } Object with the formatted size info.
State of a "select all" master checkbox over the same items toggleSelectAll would act on.
Considers only selectable items, so items the toggle cannot reach (disabled, non-selectable) never
pin the checkbox to indeterminate. An empty selectable set reads as unchecked: there is nothing
to select, and [].every() being true would otherwise report a full selection.
function getSelectAllState<T>(
adapter: KbqSelectAllAdapter<T>
): KbqPseudoCheckboxState;Use typeof value === 'boolean'. Will be removed in 22.0.0.
function isBoolean(value: unknown): value is boolean;Whether the current platform is a Mac.
function isMac(): boolean;function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): { items: { id: string; name: string; }[]; 'en-US': { formatters: { number: { rounding: { separator: string; groupSeparator: string; thousand: string; million: string; billion: string; trillion: string; }; }; }; input: { number: { groupSeparator: string[]; fractionSeparator: string; }; }; sizeUnits: { defaultUnitSystem: "SI"; defaultPrecision: number; unitSystems: { SI: { abbreviations: string[]; base: number; power: number; }; IEC: { abbreviations: string[]; base: number; power: number; }; }; }; a11y: { close: string; save: string; saving: string; saveFailed: string; cancel: string; edit: string; removeAll: string; remove: string; breadcrumbs: string; expandBreadcrumbs: string; previousMonth: string; currentDate: string; nextMonth: string; clear: string; showPassword: string; hidePassword: string; resizeColumns: string; resizePanels: string; toastRegion: string; optionActions: string; progressBar: string; }; select: { hiddenItemsText: string; selectAll: string; }; datepicker: { placeholder: string; dateInput: string; }; timepicker: { placeholder: { full: string; short: string; }; }; fileUpload: { a11y: { fileAdded: string; fileRemoved: string; filesNotAdded: string; }; single: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; }; multiple: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; captionTextWhenSelected: string; captionTextForCompactSize: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; title: string; }; }; codeBlock: { softWrapOnTooltip: string; softWrapOffTooltip: string; downloadTooltip: string; copiedTooltip: string; copyTooltip: string; viewAllText: string; viewLessText: string; openExternalSystemTooltip: string; }; timezone: { searchPlaceholder: string; otherCountriesLabel: string; }; actionsPanel: { closeTooltip: string; }; filterBar: { reset: { buttonName: string; }; search: { tooltip: string; placeholder: string; }; filters: { defaultName: string; saveNewFilterTooltip: string; searchPlaceholder: string; searchEmptyResult: string; saveAsNewFilter: string; saveChangesHeader: string; saveChangesButton: string; saveAsNewHeader: string; saveAsNewButton: string; change: string; resetChanges: string; remove: string; errorHint: string; saveButton: string; cancelButton: string; actionsTooltip: string; }; add: { tooltip: string; addedAnnouncement: string; }; refresher: { refresh: string; settings: string; }; pipe: { clearButtonTooltip: string; removeButtonTooltip: string; applyButton: string; emptySearchResult: string; selectAll: string; noOptions: string; }; datePipe: { customPeriod: string; customPeriodFrom: string; customPeriodTo: string; customPeriodErrorHint: string; customPeriodMinIntervalErrorHint: string; customPeriodMaxIntervalErrorHint: string; backToPeriodSelection: string; }; }; clampedText: { openText: string; closeText: string; showMoreText: string; moreText: string; }; navbar: { toggle: { expand: string; collapse: string; }; }; searchExpandable: { tooltip: string; placeholder: string; }; appSwitcher: { searchPlaceholder: string; searchEmptyResult: string; sitesHeader: string; clearSearch: string; }; username: { siteLabel: string; }; popoverConfirm: { confirmText: string; confirmButtonText: string; }; timeRange: { title: { placeholder: string; }; editor: { from: string; to: string; apply: string; cancel: string; rangeLabel: string; outOfBoundsError: string; allTime: string; currentQuarter: string; currentYear: string; allTimeOption: string; currentQuarterOption: string; currentYearOption: string; }; durationTemplate: { title: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; option: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; }; }; notificationCenter: { notifications: string; remove: string; removeAll: string; doNotDisturb: string; showPopUpNotifications: string; noNotifications: string; failedToLoadNotifications: string; repeat: string; loadingMore: string; unread: string; }; }; 'es-LA': { formatters: { number: { rounding: { separator: string; groupSeparator: string; thousand: string; million: string; billion: string; trillion: string; }; decimal: { viewGroupSeparator: string; }; }; }; input: { number: { groupSeparator: string[]; fractionSeparator: string; viewGroupSeparator: string; }; }; sizeUnits: { defaultUnitSystem: "SI"; defaultPrecision: number; unitSystems: { SI: { abbreviations: string[]; base: number; power: number; }; IEC: { abbreviations: string[]; base: number; power: number; }; }; }; a11y: { close: string; save: string; saving: string; saveFailed: string; cancel: string; edit: string; removeAll: string; remove: string; breadcrumbs: string; expandBreadcrumbs: string; previousMonth: string; currentDate: string; nextMonth: string; clear: string; showPassword: string; hidePassword: string; resizeColumns: string; resizePanels: string; toastRegion: string; optionActions: string; progressBar: string; }; select: { hiddenItemsText: string; selectAll: string; }; datepicker: { placeholder: string; }; timepicker: { placeholder: { full: string; short: string; }; }; fileUpload: { a11y: { fileAdded: string; fileRemoved: string; filesNotAdded: string; }; single: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; }; multiple: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; captionTextWhenSelected: string; captionTextForCompactSize: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; title: string; }; }; codeBlock: { softWrapOnTooltip: string; softWrapOffTooltip: string; downloadTooltip: string; copiedTooltip: string; copyTooltip: string; viewAllText: string; viewLessText: string; openExternalSystemTooltip: string; }; timezone: { searchPlaceholder: string; otherCountriesLabel: string; }; actionsPanel: { closeTooltip: string; }; filterBar: { reset: { buttonName: string; }; search: { tooltip: string; placeholder: string; }; filters: { defaultName: string; saveNewFilterTooltip: string; searchPlaceholder: string; searchEmptyResult: string; saveAsNewFilter: string; saveChangesHeader: string; saveChangesButton: string; saveAsNewHeader: string; saveAsNewButton: string; change: string; resetChanges: string; remove: string; errorHint: string; saveButton: string; cancelButton: string; actionsTooltip: string; }; add: { tooltip: string; addedAnnouncement: string; }; refresher: { refresh: string; settings: string; }; pipe: { clearButtonTooltip: string; removeButtonTooltip: string; applyButton: string; emptySearchResult: string; selectAll: string; noOptions: string; }; datePipe: { customPeriod: string; customPeriodFrom: string; customPeriodTo: string; customPeriodErrorHint: string; customPeriodMinIntervalErrorHint: string; customPeriodMaxIntervalErrorHint: string; backToPeriodSelection: string; }; }; clampedText: { openText: string; closeText: string; showMoreText: string; moreText: string; }; navbar: { toggle: { expand: string; collapse: string; }; }; searchExpandable: { tooltip: string; placeholder: string; }; appSwitcher: { searchPlaceholder: string; searchEmptyResult: string; sitesHeader: string; clearSearch: string; }; username: { siteLabel: string; }; popoverConfirm: { confirmText: string; confirmButtonText: string; }; timeRange: { title: { placeholder: string; }; editor: { from: string; to: string; apply: string; cancel: string; rangeLabel: string; outOfBoundsError: string; allTime: string; currentQuarter: string; currentYear: string; allTimeOption: string; currentQuarterOption: string; currentYearOption: string; }; durationTemplate: { title: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; option: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; }; }; notificationCenter: { notifications: string; remove: string; removeAll: string; doNotDisturb: string; showPopUpNotifications: string; noNotifications: string; failedToLoadNotifications: string; repeat: string; loadingMore: string; unread: string; }; }; 'pt-BR': { formatters: { number: { rounding: { separator: string; groupSeparator: string; thousand: string; million: string; billion: string; trillion: string; }; }; }; input: { number: { groupSeparator: string[]; fractionSeparator: string; }; }; sizeUnits: { defaultUnitSystem: "SI"; defaultPrecision: number; unitSystems: { SI: { abbreviations: string[]; base: number; power: number; }; IEC: { abbreviations: string[]; base: number; power: number; }; }; }; a11y: { close: string; save: string; saving: string; saveFailed: string; cancel: string; edit: string; removeAll: string; remove: string; breadcrumbs: string; expandBreadcrumbs: string; previousMonth: string; currentDate: string; nextMonth: string; clear: string; showPassword: string; hidePassword: string; resizeColumns: string; resizePanels: string; toastRegion: string; optionActions: string; progressBar: string; }; select: { hiddenItemsText: string; selectAll: string; }; datepicker: { placeholder: string; }; timepicker: { placeholder: { full: string; short: string; }; }; fileUpload: { a11y: { fileAdded: string; fileRemoved: string; filesNotAdded: string; }; single: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; }; multiple: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; captionTextWhenSelected: string; captionTextForCompactSize: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; title: string; }; }; codeBlock: { softWrapOnTooltip: string; softWrapOffTooltip: string; downloadTooltip: string; copiedTooltip: string; copyTooltip: string; viewAllText: string; viewLessText: string; openExternalSystemTooltip: string; }; timezone: { searchPlaceholder: string; otherCountriesLabel: string; }; actionsPanel: { closeTooltip: string; }; filterBar: { reset: { buttonName: string; }; search: { tooltip: string; placeholder: string; }; filters: { defaultName: string; saveNewFilterTooltip: string; searchPlaceholder: string; searchEmptyResult: string; saveAsNewFilter: string; saveChangesHeader: string; saveChangesButton: string; saveAsNewHeader: string; saveAsNewButton: string; change: string; resetChanges: string; remove: string; errorHint: string; saveButton: string; cancelButton: string; actionsTooltip: string; }; add: { tooltip: string; addedAnnouncement: string; }; refresher: { refresh: string; settings: string; }; pipe: { clearButtonTooltip: string; removeButtonTooltip: string; applyButton: string; emptySearchResult: string; selectAll: string; noOptions: string; }; datePipe: { customPeriod: string; customPeriodFrom: string; customPeriodTo: string; customPeriodErrorHint: string; customPeriodMinIntervalErrorHint: string; customPeriodMaxIntervalErrorHint: string; backToPeriodSelection: string; }; }; clampedText: { openText: string; closeText: string; showMoreText: string; moreText: string; }; navbar: { toggle: { expand: string; collapse: string; }; }; searchExpandable: { tooltip: string; placeholder: string; }; appSwitcher: { searchPlaceholder: string; searchEmptyResult: string; sitesHeader: string; clearSearch: string; }; username: { siteLabel: string; }; popoverConfirm: { confirmText: string; confirmButtonText: string; }; timeRange: { title: { placeholder: string; }; editor: { from: string; to: string; apply: string; cancel: string; rangeLabel: string; outOfBoundsError: string; allTime: string; currentQuarter: string; currentYear: string; allTimeOption: string; currentQuarterOption: string; currentYearOption: string; }; durationTemplate: { title: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; option: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; }; }; notificationCenter: { notifications: string; remove: string; removeAll: string; doNotDisturb: string; showPopUpNotifications: string; noNotifications: string; failedToLoadNotifications: string; repeat: string; loadingMore: string; unread: string; }; }; 'ru-RU': { formatters: { number: { rounding: { separator: string; groupSeparator: string; thousand: string; million: string; billion: string; trillion: string; }; decimal: { viewGroupSeparator: string; }; }; }; input: { number: { groupSeparator: string[]; fractionSeparator: string; startFormattingFrom: number; viewGroupSeparator: string; }; }; sizeUnits: { defaultUnitSystem: "SI"; defaultPrecision: number; unitSystems: { SI: { abbreviations: string[]; base: number; power: number; }; IEC: { abbreviations: string[]; base: number; power: number; }; }; }; a11y: { close: string; save: string; saving: string; saveFailed: string; cancel: string; edit: string; removeAll: string; remove: string; breadcrumbs: string; expandBreadcrumbs: string; previousMonth: string; currentDate: string; nextMonth: string; clear: string; showPassword: string; hidePassword: string; resizeColumns: string; resizePanels: string; toastRegion: string; optionActions: string; progressBar: string; }; select: { hiddenItemsText: string; selectAll: string; }; datepicker: { placeholder: string; dateInput: string; }; timepicker: { placeholder: { full: string; short: string; }; }; fileUpload: { a11y: { fileAdded: string; fileRemoved: string; filesNotAdded: string; }; single: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; }; multiple: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; captionTextWhenSelected: string; captionTextForCompactSize: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; title: string; }; }; codeBlock: { softWrapOnTooltip: string; softWrapOffTooltip: string; downloadTooltip: string; copiedTooltip: string; copyTooltip: string; viewAllText: string; viewLessText: string; openExternalSystemTooltip: string; }; timezone: { searchPlaceholder: string; otherCountriesLabel: string; }; actionsPanel: { closeTooltip: string; }; filterBar: { reset: { buttonName: string; }; search: { tooltip: string; placeholder: string; }; filters: { defaultName: string; saveNewFilterTooltip: string; searchPlaceholder: string; searchEmptyResult: string; saveAsNewFilter: string; saveChangesHeader: string; saveChangesButton: string; saveAsNewHeader: string; saveAsNewButton: string; change: string; resetChanges: string; remove: string; errorHint: string; saveButton: string; cancelButton: string; actionsTooltip: string; }; add: { tooltip: string; addedAnnouncement: string; }; refresher: { refresh: string; settings: string; }; pipe: { clearButtonTooltip: string; removeButtonTooltip: string; applyButton: string; emptySearchResult: string; selectAll: string; noOptions: string; }; datePipe: { customPeriod: string; customPeriodFrom: string; customPeriodTo: string; customPeriodErrorHint: string; customPeriodMinIntervalErrorHint: string; customPeriodMaxIntervalErrorHint: string; backToPeriodSelection: string; }; }; clampedText: { openText: string; closeText: string; showMoreText: string; moreText: string; }; navbar: { toggle: { expand: string; collapse: string; }; }; searchExpandable: { tooltip: string; placeholder: string; }; appSwitcher: { searchPlaceholder: string; searchEmptyResult: string; sitesHeader: string; clearSearch: string; }; username: { siteLabel: string; }; popoverConfirm: { confirmText: string; confirmButtonText: string; }; timeRange: { title: { placeholder: string; }; editor: { from: string; to: string; apply: string; cancel: string; rangeLabel: string; outOfBoundsError: string; allTime: string; currentQuarter: string; currentYear: string; allTimeOption: string; currentQuarterOption: string; currentYearOption: string; }; durationTemplate: { title: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; option: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; }; }; notificationCenter: { notifications: string; remove: string; removeAll: string; doNotDisturb: string; showPopUpNotifications: string; noNotifications: string; failedToLoadNotifications: string; repeat: string; loadingMore: string; unread: string; }; }; 'tk-TM': { formatters: { number: { rounding: { separator: string; groupSeparator: string; thousand: string; million: string; billion: string; trillion: string; }; }; }; input: { number: { groupSeparator: string[]; fractionSeparator: string; viewGroupSeparator: string; }; }; sizeUnits: { defaultUnitSystem: "SI"; defaultPrecision: number; unitSystems: { SI: { abbreviations: string[]; base: number; power: number; }; IEC: { abbreviations: string[]; base: number; power: number; }; }; }; a11y: { close: string; save: string; saving: string; saveFailed: string; cancel: string; edit: string; removeAll: string; remove: string; breadcrumbs: string; expandBreadcrumbs: string; previousMonth: string; currentDate: string; nextMonth: string; clear: string; showPassword: string; hidePassword: string; resizeColumns: string; resizePanels: string; toastRegion: string; optionActions: string; progressBar: string; }; select: { hiddenItemsText: string; selectAll: string; }; datepicker: { placeholder: string; dateInput: string; }; timepicker: { placeholder: { full: string; short: string; }; }; fileUpload: { a11y: { fileAdded: string; fileRemoved: string; filesNotAdded: string; }; single: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; }; multiple: { captionText: string; captionTextOnlyFolder: string; captionTextWithFolder: string; captionTextWhenSelected: string; captionTextForCompactSize: string; browseLink: string; browseLinkFolder: string; browseLinkFolderMixed: string; title: string; }; }; codeBlock: { softWrapOnTooltip: string; softWrapOffTooltip: string; downloadTooltip: string; copiedTooltip: string; copyTooltip: string; viewAllText: string; viewLessText: string; openExternalSystemTooltip: string; }; timezone: { searchPlaceholder: string; otherCountriesLabel: string; }; actionsPanel: { closeTooltip: string; }; filterBar: { reset: { buttonName: string; }; search: { tooltip: string; placeholder: string; }; filters: { defaultName: string; saveNewFilterTooltip: string; searchPlaceholder: string; searchEmptyResult: string; saveAsNewFilter: string; saveChangesHeader: string; saveChangesButton: string; saveAsNewHeader: string; saveAsNewButton: string; change: string; resetChanges: string; remove: string; errorHint: string; saveButton: string; cancelButton: string; actionsTooltip: string; }; add: { tooltip: string; addedAnnouncement: string; }; refresher: { refresh: string; settings: string; }; pipe: { clearButtonTooltip: string; removeButtonTooltip: string; applyButton: string; emptySearchResult: string; selectAll: string; noOptions: string; }; datePipe: { customPeriod: string; customPeriodFrom: string; customPeriodTo: string; customPeriodErrorHint: string; customPeriodMinIntervalErrorHint: string; customPeriodMaxIntervalErrorHint: string; backToPeriodSelection: string; }; }; clampedText: { openText: string; closeText: string; showMoreText: string; moreText: string; }; navbar: { toggle: { expand: string; collapse: string; }; }; searchExpandable: { tooltip: string; placeholder: string; }; appSwitcher: { searchPlaceholder: string; searchEmptyResult: string; sitesHeader: string; clearSearch: string; }; username: { siteLabel: string; }; popoverConfirm: { confirmText: string; confirmButtonText: string; }; timeRange: { title: { placeholder: string; }; editor: { from: string; to: string; apply: string; cancel: string; rangeLabel: string; outOfBoundsError: string; allTime: string; currentQuarter: string; currentYear: string; allTimeOption: string; currentQuarterOption: string; currentYearOption: string; }; durationTemplate: { title: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; option: { SEPARATOR: string; LAST_PART_SEPARATOR: string; YEARS: string; MONTHS: string; WEEKS: string; DAYS: string; HOURS: string; MINUTES: string; SECONDS: string; YEARS_FRACTION: string; MONTHS_FRACTION: string; }; }; }; notificationCenter: { notifications: string; remove: string; removeAll: string; doNotDisturb: string; showPopUpNotifications: string; noNotifications: string; failedToLoadNotifications: string; repeat: string; loadingMore: string; unread: string; }; }; };Factory function for KbqAutoHideScrollStrategy. Use it directly as a useFactory value
when providing a component-level scroll strategy token (e.g. KBQ_POPOVER_SCROLL_STRATEGY).
The returned function accepts an optional hooks object (see KbqAutoHideScrollStrategyHooks)
and an optional config (see KbqAutoHideScrollStrategyConfig).
const createScrollStrategy = kbqAutoHideScrollStrategyFactory(scrollDispatcher, viewportRuler, ngZone);
const strategy = createScrollStrategy({ onHide: () => this.hide() }, { originElement });function kbqAutoHideScrollStrategyFactory(
scrollDispatcher: ScrollDispatcher,
viewportRuler: ViewportRuler,
ngZone: NgZone
): (hooks?: KbqAutoHideScrollStrategyHooks, config?: KbqAutoHideScrollStrategyConfig) => KbqAutoHideScrollStrategy;Turns the state of an operation into the visibility of its loading indicator, so that the indicator
does not flash: it appears only once the operation has run for delay, and once shown stays visible
for at least minDuration.
Use the result for the indicator only. State that blocks a repeated action, such as disabled,
has to follow the operation itself and change immediately.
readonly showIndicator$ = this.loading$.pipe(kbqDelayLoadingIndicator());function kbqDelayLoadingIndicator(
options?: KbqDelayLoadingIndicatorOptions
): MonoTypeOperatorFunction<boolean>;Moves focus from an option to its trailing action button on Tab.
Shared by KbqListOption and KbqTreeOption so the two cannot drift apart. Tab is swallowed only
when focus actually landed: the action lives in a display: none container until the option is
hovered or keyboard-focused, and focusing a hidden element is a no-op, so suppressing Tab there
would trap focus on the option.
function kbqFocusOptionActionOnTab(
$event: KeyboardEvent,
actionButton: KbqOptionActionComponent | undefined
): void;Reactive localized strings for one section of the active locale.
Follows KBQ_LOCALE_SERVICE when the application provides one, and otherwise resolves token, whose
factory supplies the default strings. Overrides registered through
kbqLocaleConfigurationOverrideProvider are merged on top of whichever of the two applies, and a
KbqLocaleOverridesDirective on the element or any ancestor of it on top of those — the more
local the source, the later it is merged. Being a signal is what makes a runtime setLocale() reach
OnPush children that render these strings: they register the read on their own view, which a
subscription in the parent could never do for them.
This is the carrier-less path — for a pipe, or for content that resolves against an ancestor carrier
only. A component that carries KbqLocaleOverridesDirective itself reads its strings through
KbqLocaleOverridesDirective.read instead, which cannot be called without the carrier.
function kbqInjectLocaleConfiguration<K extends KbqLocaleSection>(
section: K,
token: InjectionToken<KbqLocaleData[K]>
): Signal<KbqLocaleData[K]>;sectionK Section of the locale data to read.
tokenInjectionToken<KbqLocaleData[K]> Configuration token, whose factory supplies the default strings.
Reads the locale service the application provided.
Resolves KBQ_LOCALE_SERVICE, not the class: the token is what the components read, and an application
is free to provide something else under it. Pass { optional: true } for code that has to keep working
without a locale service — which is how every component of this library reads it.
function kbqInjectLocaleService(
options?: InjectOptions & { optional?: false }
): KbqLocaleService;
function kbqInjectLocaleService(
options: InjectOptions
): KbqLocaleService | null;Function that returns a string representation of a number without localized separators
function normalizeNumber(
value: string | null | undefined,
customConfig: Pick<KbqInputNumberLocaleConfiguration, 'fractionSeparator' | 'groupSeparator'>
): string;Normalizes a string for case- and diacritic-insensitive search comparison: trims the ends,
decomposes accented characters (NFKD), strips the resulting combining marks (while preserving
й/Й as distinct letters), and lowercases using the current locale. Internal whitespace and
punctuation are left untouched.
function normalizeSearchValue(value: string): string;Patches an element's focus and blur methods to emit events consistently and predictably: a browser does not fire the focus handlers at all while its window is not focused.
function patchElementFocus(element: HTMLElement): void;Resolves the multiple input of a selection list or tree into a mode, or null for single selection.
The set of modes is closed, so an unrecognized value falls back to single selection and is reported in dev mode rather than read as multiple selection.
function resolveMultipleMode(
value: KbqMultipleInput
): MultipleMode | null;Whether Ctrl/Cmd + A should select the text of a search <input> rather than toggle options.
Returns true only when the input has text that is not already fully selected (nothing selected,
a partial selection, or just a caret). Returns false for an empty input (so select-all falls
straight through to the options) and when the whole value is already selected (a second press
then acts on the options).
function shouldSelectSearchText(
input: HTMLInputElement | null | undefined
): boolean;Canonical "select all / deselect all" toggle shared by the multi-select components (Ctrl/Cmd + A).
Considers only selectable items and selects them all. When allowDeselect is true and every selectable
item is already selected, deselects them all instead; otherwise a repeated call is a no-op. No-op when
there are no selectable items.
function toggleSelectAll<T>(
adapter: KbqSelectAllAdapter<T>,
options?: KbqToggleSelectAllOptions
): T[];T[] the items whose selected state actually flipped, in input order.
Splits a raw query into tokens, treating whitespace as a separator and "quoted phrases" as
a single token (spaces inside the quotes are preserved). A " with no matching closing quote
stays part of its token instead of being dropped, so a half-open quote yields a token no
realistic haystack contains — and therefore no results — until the quote is closed.
function tokenizeSearchQuery(query: string): string[];Focuses an input, sets its value and dispatches
the input event, simulating the user typing.
function typeInElement(value: string, element: HTMLInputElement): void;valuestring Value to be set on the input.
elementHTMLInputElement Element onto which to set the value.
function wrappedErrorMessage(e: Error): RegExp;Resolves which controls a group-level error concerns.
Called with one error of a group at a time. Return the names of the controls the error applies to, relative
to the group holding it — AbstractControl.get paths such as 'passwords.confirm' are supported — or
null for errors this scope does not know.
It is called from change detection, so keep it cheap and allocation-free.
type CrossFieldErrorScope = (errorKey: string, errorValue: unknown) => readonly string[] | null;This is the interface for highlightable items (used by the ActiveDescendantKeyManager). Each item must know how to style itself as active or inactive and whether or not it is currently disabled.
interface Highlightable extends ListKeyManagerOption {
disabled?: boolean | Signal<boolean>;
setActiveStyles(): void;
setInactiveStyles(): void;
getLabel?(): string;
}disabledboolean | Signal<boolean> Whether the option is disabled. A signal lets an option expose disabled as an input().
This is the interface for focusable items (used by the FocusKeyManager). Each item must know how to focus itself, whether or not it is currently disabled and be able to supply it's label.
interface IFocusableOption extends ListKeyManagerOption {
disabled?: boolean | Signal<boolean>;
focus(origin?: FocusOrigin): void;
getLabel?(): string;
}disabledboolean | Signal<boolean> Whether the option is disabled. A signal lets an option expose disabled as an input().
Text the library exposes to assistive tech only: accessible names for the icon-only buttons and the unlabelled regions it renders itself, and live-region announcements.
An icon carries no text, so without one of these a button has no accessible name at all (AXE
button-name); the same holds for a landmark region (AXE landmark-unique / region). None of
these strings are ever displayed.
type KbqA11yLocaleConfiguration = {
close: string;
save: string;
saving: string;
saveFailed: string;
cancel: string;
edit: string;
removeAll: string;
remove: string;
breadcrumbs: string;
expandBreadcrumbs: string;
previousMonth: string;
currentDate: string;
nextMonth: string;
clear: string;
showPassword: string;
hidePassword: string;
resizeColumns: string;
resizePanels: string;
toastRegion: string;
optionActions: string;
progressBar: string;
};closestring Close button of a modal, popover, sidepanel, content panel, notification center or toast, and of the expandable search, whose suffix collapses an empty field back to its icon.
savestring Confirm button of an inline edit.
savingstring Announced while an inline edit saves a value in the background.
saveFailedstring Announced when a background save of an inline edit fails.
cancelstring Discard button of an inline edit.
editstring Name of the control that opens an inline edit's editor, when the host supplies none.
removeAllstring Button removing every notification at once.
removestring Button removing one selected value, followed by that value's own text.
breadcrumbsstring Breadcrumbs navigation landmark, unless the consumer names it with an aria-label of its own.
expandBreadcrumbsstring Breadcrumbs button revealing the items hidden by overflow.
previousMonthstring Calendar button switching to the previous month.
currentDatestring Calendar button switching back to the current date.
nextMonthstring Calendar button switching to the next month.
clearstring Form field button that clears the control value.
showPasswordstring Password form field button that reveals the password.
hidePasswordstring Password form field button that masks the password.
resizeColumnsstring Separator that resizes the columns of a description list.
resizePanelsstring Separator that resizes the panels of a splitter.
toastRegionstring Region holding the stack of toast notifications.
optionActionsstring Trailing action button of a list or tree option.
progressBarstring Progress bar that carries neither an aria-label nor a projected [kbq-progress-bar-text].
Locale configuration for KbqActionsPanelModule.
type KbqActionsPanelLocaleConfiguration = {
closeTooltip: string;
};Configuration of the motion of Koobiq components.
interface KbqAnimationsConfig {
animationsDisabled?: boolean;
}animationsDisabledboolean Whether components skip their enter, leave and state animations.
Locale configuration for KbqAppSwitcherModule: the strings rendered by the app-switcher popup.
type KbqAppSwitcherLocaleConfiguration = {
searchPlaceholder: string;
searchEmptyResult: string;
sitesHeader: string;
clearSearch: string;
};searchPlaceholderstring Placeholder and accessible name of the search field.
searchEmptyResultstring Message shown when no application matches the search query.
sitesHeaderstring Heading above the list of other sites.
clearSearchstring Accessible name of the button that clears the search field.
Configuration options for KbqAutoHideScrollStrategy.
interface KbqAutoHideScrollStrategyConfig {
originElement?: HTMLElement;
scrollThrottle?: number;
}originElementHTMLElement Element whose position is tracked against ancestor scroll container boundaries. When omitted, the overlay panel is checked against the viewport instead.
scrollThrottlenumber Scroll event throttle in ms. Defaults to 20.
Lifecycle hooks for KbqAutoHideScrollStrategy, passed via kbqAutoHideScrollStrategyFactory.
interface KbqAutoHideScrollStrategyHooks {
onHide?: () => void;
}onHide() => void Called (inside Angular zone) when the tracked element scrolls outside its scroll container boundary.
interface KbqBaseFileUploadLocaleConfiguration {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed?: string;
}Rectangle occupied by a text insertion point or a text selection, in viewport coordinates.
Shaped after the virtual origin a CDK FlexibleConnectedPositionStrategy accepts, so it can be handed to
setOrigin() as it is and every placement, offset and fallback keeps working against it.
interface KbqCaretRect {
x: number;
y: number;
width: number;
height: number;
}xnumber Distance from the left edge of the viewport, in pixels.
ynumber Distance from the top edge of the viewport, in pixels.
widthnumber Width of the selection, or 0 for a collapsed caret.
heightnumber Height of one line of text in the field.
Click action shared by checkable controls (checkbox, toggle, and custom checkbox-like primitives).
noop: Do not toggle checked or indeterminate.
check: Only toggle checked status, ignore indeterminate.
check-indeterminate: Toggle checked status, set indeterminate to false. Default behavior.
undefined: Same as check-indeterminate.
type KbqCheckableClickAction = 'noop' | 'check' | 'check-indeterminate' | undefined;Result of resolving a click on a checkable control's native input. See KbqCheckable.resolveClick.
interface KbqCheckableClickResult {
readonly shouldToggle: boolean;
readonly shouldClearIndeterminate: boolean;
}shouldToggleboolean Whether checked should be toggled and a change event emitted.
shouldClearIndeterminateboolean Whether indeterminate should be cleared and an indeterminateChange event emitted.
Tri-state checkbox values, as in
aria-checked.
type KbqCheckedState = 'true' | 'false' | 'mixed';Locale configuration for KbqClampedText
type KbqClampedTextLocaleConfiguration = {
openText: string;
closeText: string;
showMoreText: string;
moreText: string;
};Locale configuration for KbqCodeBlockModule.
type KbqCodeBlockLocaleConfiguration = {
softWrapOnTooltip: string;
softWrapOffTooltip: string;
downloadTooltip: string;
copiedTooltip: string;
copyTooltip: string;
viewAllText: string;
viewLessText: string;
openExternalSystemTooltip: string;
};Contract for an ancestor that wants to override where overlays opened by a nested
KbqFormField's control (e.g. a select's dropdown, a datepicker's calendar) are
anchored, instead of the form-field's own container.
interface KbqConnectedOverlayOriginProvider {
getConnectedOverlayOrigin(): ElementRef<any> | undefined;
}getConnectedOverlayOrigin()ElementRef<any> | undefined Element the overlay should be positioned and sized against, or undefined to fall
back to the form-field's own container.
type KbqDateFormats = DateFormats;Locale configuration for KbqDatepickerModule.
Only placeholder reaches the rendered output — see dateInput.
type KbqDatepickerLocaleConfiguration = {
placeholder: string;
/** @deprecated */
dateInput?: string;
};placeholderstring Placeholder of the date input, in the locale's own notation (e.g. дд.мм.гггг).
dateInputstring Parsing/formatting pattern for the date input.
Never read: the input format is resolved from KBQ_DATE_FORMATS and the date adapter's own config,
not from the locale data. Optional because es-LA and pt-BR never declared it.
Set the input format through KBQ_DATE_FORMATS. Will be removed in 22.0.0.
Recursive counterpart of Partial<T>: every property at every depth becomes optional.
Arrays and functions are passed through unchanged — making the elements of string[] optional
would turn it into { 0?: string }, which is never what a partial override means.
type KbqDeepPartial<T> = T extends (...args: never[]) => unknown
? T
: T extends readonly unknown[]
? T
: T extends object
? { [K in keyof T]?: KbqDeepPartial<T[K]> }
: T;Defines the available size options for Koobiq components.
type KbqDefaultSizes = 'compact' | 'normal' | 'big';Timing options of kbqDelayLoadingIndicator.
type KbqDelayLoadingIndicatorOptions = {
delay?: number;
minDuration?: number;
};delaynumber How long, in milliseconds, an operation has to run before the indicator appears. Defaults to 500.
minDurationnumber How long, in milliseconds, the indicator stays visible once it has appeared. Defaults to 300.
Converts an enumeration (enum) type into a string literal type containing all possible string representations of the values.
type KbqEnumValues<T extends string | number> = `${T}`;Type helper describing accepted file types, referring to unique file type specifiers.
type KbqFileTypeSpecifier = Parameters<typeof FileValidators.isCorrectExtension>[0];Announcements the uploaders push into their own live region.
Unlike KbqA11yLocaleConfiguration these are not names of controls: nothing renders them,
they are read out once when the file list changes.
type KbqFileUploadA11yLocaleConfiguration = {
fileAdded: string;
fileRemoved: string;
filesNotAdded: string;
};fileAddedstring Announced after a file is added; {{ fileName }} is replaced with its name.
fileRemovedstring Announced after a file is removed; {{ fileName }} is replaced with its name.
filesNotAddedstring Announced when part of a selection is discarded — a duplicate, or everything past the first file.
Labels of both upload flavours, and the announcements neither of them renders.
type KbqFileUploadLocaleConfiguration = {
a11y: KbqFileUploadA11yLocaleConfiguration;
single: KbqBaseFileUploadLocaleConfiguration;
multiple: KbqMultipleFileUploadLocaleConfiguration;
};a11yKbqFileUploadA11yLocaleConfiguration Announcements of file list changes, read out rather than rendered.
singleKbqBaseFileUploadLocaleConfiguration Labels of the uploader that holds one file.
multipleKbqMultipleFileUploadLocaleConfiguration Labels of the uploader that holds a list, including its title and compact caption.
Locale configuration for KbqFilterBarModule and its pipes.
type KbqFilterBarLocaleConfiguration = {
reset: {
buttonName: string;
};
search: {
tooltip: string;
placeholder: string;
};
filters: {
defaultName: string;
saveNewFilterTooltip: string;
searchPlaceholder: string;
searchEmptyResult: string;
saveAsNewFilter: string;
saveChangesHeader: string;
saveChangesButton: string;
saveAsNewHeader: string;
saveAsNewButton: string;
change: string;
resetChanges: string;
remove: string;
errorHint: string;
saveButton: string;
cancelButton: string;
actionsTooltip: string;
};
add: {
tooltip: string;
addedAnnouncement: string;
};
refresher: {
refresh: string;
settings: string;
};
pipe: {
clearButtonTooltip: string;
removeButtonTooltip: string;
applyButton: string;
emptySearchResult: string;
selectAll: string;
noOptions: string;
};
datePipe: {
customPeriod: string;
customPeriodFrom: string;
customPeriodTo: string;
customPeriodErrorHint: string;
customPeriodMinIntervalErrorHint: string;
customPeriodMaxIntervalErrorHint: string;
backToPeriodSelection: string;
};
};filters.saveChangesHeaderstring Header of the rename popover; it also names the popover's name field.
filters.saveChangesButtonstring Label of the filter-actions item that saves the pending changes.
filters.saveAsNewHeaderstring Header of the popover that saves a new filter; it also names the popover's name field.
filters.saveAsNewButtonstring Label of the filter-actions item that saves the current filter as a new one.
add.addedAnnouncementstring Announced after a filter is added. Supports the {{ name }} placeholder.
pipe.noOptionsstring Shown in the dropdown of an option pipe whose template has no values.
datePipe.customPeriodMinIntervalErrorHintstring Supports the {{ value }} placeholder.
datePipe.customPeriodMaxIntervalErrorHintstring Supports the {{ value }} placeholder.
Controls the direction of flex items: horizontal ('row') or vertical ('column').
type KbqFlexDirection = 'row' | 'column';Controls flex item wrapping: single-line ('nowrap') or multi-line ('wrap').
type KbqFlexWrap = 'nowrap' | 'wrap';Locale configuration for the number formatter pipes.
type KbqFormattersLocaleConfiguration = {
number: {
rounding: KbqNumberRoundingLocaleConfiguration;
decimal?: KbqNumberFormatOptions;
};
};number.decimalKbqNumberFormatOptions Present only for the locales that override the group separator of the decimal pipe.
Locale configuration for the library's inputs.
type KbqInputLocaleConfiguration = {
number: KbqInputNumberLocaleConfiguration;
};Locale configuration for KbqNumberInput.
type KbqInputNumberLocaleConfiguration = {
groupSeparator: string[];
fractionSeparator: string;
startFormattingFrom?: number;
} & KbqNumberFormatOptions;groupSeparatorstring[] Characters recognized as group (thousands) separators.
fractionSeparatorstring Character used for the decimal separator
startFormattingFromnumber Number of digits before applying group separators
Every localized string and formatting rule the library reads, keyed by section.
This is the contract for custom locale data registered through KBQ_LOCALE_DATA or
KbqLocaleService.addLocale(), and the shape KbqLocaleService.getParams() resolves against.
interface KbqLocaleData extends KbqLocaleStringsData, KbqLocaleFormattersData {
a11y: KbqA11yLocaleConfiguration;
select: KbqSelectLocaleConfiguration;
datepicker: KbqDatepickerLocaleConfiguration;
timepicker: KbqTimepickerLocaleConfiguration;
fileUpload: KbqFileUploadLocaleConfiguration;
codeBlock: KbqCodeBlockLocaleConfiguration;
timezone: KbqTimezoneLocaleConfiguration;
actionsPanel: KbqActionsPanelLocaleConfiguration;
filterBar: KbqFilterBarLocaleConfiguration;
clampedText: KbqClampedTextLocaleConfiguration;
navbar: KbqNavbarLocaleConfiguration;
searchExpandable: KbqSearchExpandableLocaleConfiguration;
appSwitcher: KbqAppSwitcherLocaleConfiguration;
timeRange: KbqTimeRangeLocaleConfiguration;
notificationCenter: KbqNotificationCenterLocaleConfiguration;
popoverConfirm: KbqPopoverConfirmLocaleConfiguration;
username: KbqUsernameLocaleConfiguration;
formatters: KbqFormattersLocaleConfiguration;
input: KbqInputLocaleConfiguration;
sizeUnits: KbqSizeUnitsLocaleConfiguration;
}usernameKbqUsernameLocaleConfiguration Strings of kbq-username, none of which it renders visibly.
Shape accepted by KBQ_LOCALE_DATA. Each locale may be partial: KbqLocaleService merges what it
receives over the default locale, so a consumer only has to supply the strings they want to change.
interface KbqLocaleDataInput {
[localeId: string]: KbqPartialLocaleData | KbqLocaleItem[] | undefined;
items?: KbqLocaleItem[];
}The resolved locale registry: every known locale keyed by id, plus the list used by locale pickers.
type KbqLocaleDataMap = Record<string, KbqLocaleData> & {
items: KbqLocaleItem[];
};The number and size formatting rules of a locale — the shape of ruRUFormattersData and its siblings.
interface KbqLocaleFormattersData {
formatters: KbqFormattersLocaleConfiguration;
input: KbqInputLocaleConfiguration;
sizeUnits: KbqSizeUnitsLocaleConfiguration;
}Identifiers of the locales shipped with the library.
type KbqLocaleId = 'en-US' | 'es-LA' | 'pt-BR' | 'ru-RU' | 'tk-TM';A locale identifier: one of the shipped KbqLocaleIds, or any other string for a locale
registered through KBQ_LOCALE_DATA / addLocale(). The string & {} arm keeps the set open while
still offering the shipped ids as completions.
type KbqLocaleIdLike = KbqLocaleId | (string & {});An entry of the locale registry, used to render locale pickers.
type KbqLocaleItem = {
id: KbqLocaleIdLike;
name: string;
};namestring Name of the locale in that locale's own language.
Name of a section of KbqLocaleData, as accepted by KbqLocaleService.getParams().
type KbqLocaleSection = keyof KbqLocaleData;The localized strings of a locale — the shape of ruRULocaleData and its siblings.
Split from KbqLocaleFormattersData because the two halves live in separate files and are
merged into one locale entry by KBQ_DEFAULT_LOCALE_DATA_FACTORY.
interface KbqLocaleStringsData {
a11y: KbqA11yLocaleConfiguration;
select: KbqSelectLocaleConfiguration;
datepicker: KbqDatepickerLocaleConfiguration;
timepicker: KbqTimepickerLocaleConfiguration;
fileUpload: KbqFileUploadLocaleConfiguration;
codeBlock: KbqCodeBlockLocaleConfiguration;
timezone: KbqTimezoneLocaleConfiguration;
actionsPanel: KbqActionsPanelLocaleConfiguration;
filterBar: KbqFilterBarLocaleConfiguration;
clampedText: KbqClampedTextLocaleConfiguration;
navbar: KbqNavbarLocaleConfiguration;
searchExpandable: KbqSearchExpandableLocaleConfiguration;
appSwitcher: KbqAppSwitcherLocaleConfiguration;
timeRange: KbqTimeRangeLocaleConfiguration;
notificationCenter: KbqNotificationCenterLocaleConfiguration;
popoverConfirm: KbqPopoverConfirmLocaleConfiguration;
username: KbqUsernameLocaleConfiguration;
}usernameKbqUsernameLocaleConfiguration Strings of kbq-username, none of which it renders visibly.
Unit systems as union type
type KbqMeasurementSystemType = keyof typeof KbqMeasurementSystem;interface KbqMultipleFileUploadLocaleConfiguration extends KbqBaseFileUploadLocaleConfiguration {
captionTextWhenSelected: string;
captionTextForCompactSize: string;
title: string;
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed?: string;
}Values accepted by the multiple input of a selection list or tree.
KbqEnumValues accepts a mode either as a MultipleMode member or as the plain string a static
attribute delivers, and follows the enum on its own. The remaining literals are the boolean spellings a
static attribute delivers: '' is what a bare multiple resolves to, 'true' and 'false' are what
multiple="true" and multiple="false" deliver.
Single selection is the default, so the way to ask for it is to leave the attribute off entirely.
type KbqMultipleInput = KbqEnumValues<MultipleMode> | 'true' | 'false' | '' | boolean | null | undefined;Locale configuration for the kbq-vertical-navbar collapse toggle.
type KbqNavbarLocaleConfiguration = {
toggle: {
expand: string;
collapse: string;
};
};toggle.expandstring Accessible name of the toggle while the navbar is collapsed.
toggle.collapsestring Accessible name of the toggle while the navbar is expanded.
Locale configuration for KbqNotificationCenterModule.
type KbqNotificationCenterLocaleConfiguration = {
notifications: string;
remove: string;
removeAll: string;
doNotDisturb: string;
showPopUpNotifications: string;
noNotifications: string;
failedToLoadNotifications: string;
repeat: string;
loadingMore: string;
unread: string;
};notificationsstring Heading of the notification center.
removestring Accessible name of a single notification's remove button.
removeAllstring Label of the action clearing every notification at once.
doNotDisturbstring Label of the "do not disturb" switch.
showPopUpNotificationsstring Label of the "show pop-up notifications" switch.
noNotificationsstring Message shown when there is nothing to display.
failedToLoadNotificationsstring Message shown when loading the notifications failed.
repeatstring Label of the button retrying a failed load.
loadingMorestring Announced while the next page of notifications is loading.
unreadstring Accessible name of the unread marker, which is otherwise conveyed by a dot alone.
Options for overriding locale-based number formatting
type KbqNumberFormatOptions = {
viewGroupSeparator?: string;
};viewGroupSeparatorstring Overrides the default group separator in the formatted output
Special contract between KbqDecimalPipe and KbqTableNumberPipe,
so they can be interchangeable in the cases of usage
interface KbqNumericPipe {
transform(
value: unknown,
digitsInfo?: string,
locale?: string
): string | null;
}Structural, so core doesn't depend on dropdown; nothing type-checks it against KbqDropdownTrigger.
interface KbqOptionActionParent {
dropdownTrigger: { opened: boolean; restoreFocus: WritableSignal<boolean>; dropdownClosed: OutputRef<void>; lastDestroyReason: void | 'click' | 'keydown' | 'tab'; openedBy: Exclude<FocusOrigin, 'program' | null> | undefined; toggle(): void; };
focus(): void;
}Defines component orientation.
type KbqOrientation = 'horizontal' | 'vertical';Source of scroll events and scroll metrics. Can be provided by a component that wraps
the scrollable element (e.g. KbqScrollbar) so that KbqOverflowShadowContainer does
not have to subscribe to the native scroll event directly.
interface KbqOverflowShadowSource {
readonly onScroll: Observable<unknown>;
getScrollElement(): HTMLElement | null;
}onScrollObservable<unknown> Emits whenever the wrapped element scrolls.
getScrollElement()HTMLElement | null The element whose scrollTop/clientHeight/scrollHeight drive the shadows, or null if not ready yet.
Shadow visibility state — which of the two shadows should be rendered.
interface KbqOverflowShadowState {
top: boolean;
bottom: boolean;
}topboolean Whether the top (header) shadow should be visible — content is scrolled past the top.
bottomboolean Whether the bottom (footer) shadow should be visible — more content remains below the fold.
Element an overlay is anchored to, or a getter read again on every attach of the overlay.
type KbqOverlayLayerOrigin = Element | (() => Element | null | undefined);Places overlays into the layer of the KbqOverlayLayer element their origin is in.
interface KbqOverlayLayers {
adopt(overlayRef: OverlayRef, origin: KbqOverlayLayerOrigin): void;
}adopt()void Moves the overlay into the layer of the innermost kbqOverlayLayer element that contains origin and keeps it
there on every attach. An overlay whose origin is outside every such element stays in the application-wide
overlay container.
Anything a connected overlay can be anchored to: an element, or a rectangle in viewport coordinates such as
the caret rectangle kbqGetCaretRect measures.
type KbqOverlayOrigin = ElementRef<HTMLElement> | HTMLElement | CdkOverlayOrigin | KbqCaretRect;Maximum height of an overlay panel's scrollable content, in pixels. null falls back to the
--kbq-select-panel-size-max-height design token.
The cap covers the scrollable list only — a search field or a footer rendered beside it adds to the
panel's total height. With a cdk-virtual-scroll-viewport the value is an exact height rather than a
cap, because the viewport pins both its min-height and its max-height to the token.
type KbqPanelMaxHeight = number | null;Maximum width of an overlay panel, in pixels. null falls back to the --kbq-panel-size-width-max
design token.
The cap is soft: it limits how far a panel grows with its content, but never makes a panel narrower
than its trigger, and never overrides an explicit panelWidth.
type KbqPanelMaxWidth = number | null;Minimum width of an overlay panel, in pixels. null applies no additional minimum.
type KbqPanelMinWidth = number | null;Width of an overlay panel.
'auto' — matches the trigger width, but never narrower than panelMinWidth.number — an explicit width in pixels. panelMinWidth is not applied.string — an explicit CSS width (e.g. fit-content, 20rem). panelMinWidth is not applied.null/'' — the panel sizes to its content, but never narrower than the trigger or panelMinWidth.type KbqPanelWidth = 'auto' | number | (string & {}) | null | '';interface KbqParentPopup {
closedStream: Observable<boolean>;
}Locale data with every section — and every key within a section — optional.
type KbqPartialLocaleData = KbqDeepPartial<KbqLocaleData>;Locale configuration for the [kbqPopoverConfirm] variant of KbqPopoverModule.
Unlike KbqA11yLocaleConfiguration these strings are displayed: they are the default question and
the default confirm-button caption of a confirmation popover.
type KbqPopoverConfirmLocaleConfiguration = {
confirmText: string;
confirmButtonText: string;
};confirmTextstring Question rendered in the body of the confirmation popover.
confirmButtonTextstring Caption of the button that confirms the action.
type KbqPopUpPlacementValues = KbqEnumValues<PopUpPlacements>;type KbqPopUpSizeValues = KbqEnumValues<PopUpSizes>;type KbqPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate' | boolean;Axis a scroll-overflow check applies to.
type KbqScrollAxis = 'horizontal' | 'vertical';Locale configuration for KbqSearchExpandableModule.
type KbqSearchExpandableLocaleConfiguration = {
tooltip: string;
placeholder: string;
};tooltipstring Accessible name and tooltip of the collapsed search trigger.
placeholderstring Placeholder of the expanded search field.
Adapter describing how a component reads and writes selection state for a set of items,
so the shared select-all logic can operate regardless of how selection is stored
(per-option setter, SelectionModel on data nodes, etc.).
interface KbqSelectAllAdapter<T> {
items: readonly T[];
isSelectable: (item: T) => boolean;
isSelected: (item: T) => boolean;
setSelected: (item: T, selected: boolean) => void;
}itemsreadonly T[] All candidate items, in render/model order.
isSelectable(item: T) => boolean Whether the item may participate (e.g. not disabled, and — for tree — selectable()).
isSelected(item: T) => boolean Current selected state of the item.
setSelected(item: T, selected: boolean) => void Applies the new selected state to the item. Must be idempotent — a no-op, with no further side
effects (no emitted events, no notifications) — when selected already matches the item's current
state: toggleSelectAll calls this for every selectable item, not just the ones whose state
actually changes, and relies on implementations to absorb the redundant calls silently.
Locale configuration shared by the components that render a "select all" row: hiddenItemsText is read
by KbqSelectModule (kbq-select) only, while selectAll is read by KbqSelectModule, by
KbqTreeModule (kbq-tree-selection, including standalone usage outside KbqTreeSelectModule) and by
KbqListModule (kbq-list-selection).
type KbqSelectLocaleConfiguration = {
hiddenItemsText: string;
selectAll: string;
};hiddenItemsTextstring Counter of the selected values that did not fit into the trigger. Supports the {{ number }} placeholder.
selectAllstring Label of the "select all" master checkbox rendered by the selectAll input.
Reference to the element used to locate the shadow root that should host the CDK overlay container.
It can be the shadow host element itself (the common case — the MFE root element) or any element that already
lives inside the shadow tree. Provide it directly, as an ElementRef, or as a getter (useful when the element is
created after the providers are declared, e.g. resolved lazily at bootstrap).
type KbqShadowDomOverlayHost = HTMLElement | ElementRef<HTMLElement> | (() => Element | null | undefined);Contract of a pop-up anchored to the same element as a tooltip — a popover, a dropdown, a select and so on.
A tooltip sharing its host with such a pop-up mutes itself while the pop-up is on screen, so the two never compete for the same anchor and the focus restored by the closing pop-up does not re-open the tooltip.
interface KbqSiblingPopup {
readonly isAttached: boolean;
readonly openedChange: Observable<boolean>;
}isAttachedboolean Whether the pop-up overlay is currently attached. Unlike a visibility flag it must flip synchronously, both when the overlay is attached and when it is detached.
openedChangeObservable<boolean> Emits true when the pop-up opens and false when it closes.
Use KbqSizeUnitsLocaleConfiguration. Will be removed in 22.0.0.
type KbqSizeUnitsConfig = KbqSizeUnitsLocaleConfiguration;Configuration for file size formatting options. Defines the default unit system, precision, and available unit systems.
interface KbqSizeUnitsLocaleConfiguration {
defaultUnitSystem: KbqMeasurementSystemType;
defaultPrecision: number;
unitSystems: { [KbqMeasurementSystem.SI]: KbqUnitSystem; [KbqMeasurementSystem.IEC]: KbqUnitSystem; };
}defaultUnitSystemKbqMeasurementSystemType Default unit system to use, one of KbqMeasurementSystem (e.g., 'SI' or 'IEC').
defaultPrecisionnumber Default number of decimal places to display in formatted output: with 2, "1.23 KB".
unitSystems{ [KbqMeasurementSystem.SI]: KbqUnitSystem; [KbqMeasurementSystem.IEC]: KbqUnitSystem; } Unit systems by KbqMeasurementSystem.
Produces the storage key for a component that persists state without being given a stateSavingKey.
Returning an empty string means "this host cannot be identified": the component then persists nothing rather than writing under a key a later load would not reproduce.
type KbqStateSavingKeyResolver = (host: Element | null) => string;Something that persists state, as KbqStateSavingService reports it.
Every KbqStateSaving directive satisfies this and registers itself, so the service sees a component
even when it was given its own KBQ_STATE_STORE — one the root store knows nothing about. A service
that persists on behalf of something with no host element registers one of these too, and reports a
null host; KbqSidepanelService does, for a sidepanel that is closed when its entry matters.
interface KbqStateSavingRef {
readonly name: string;
readonly key: string;
readonly enabled: boolean;
readonly state: unknown;
readonly host: Element | null;
clear(): void;
}namestring How the owner is named in dev-mode warnings — a tag name for a component.
keystring The key the state is persisted under. Empty until the component has read, and for a host no key could be derived from.
enabledboolean Whether this component persists — its own useStateSaving, not the service-wide switch.
stateunknown The state it last read or wrote, or null. Raw, in the shape the component persists.
hostElement | null The host element, for locating the component on the page.
clear()void Removes this component's persisted state, through its own store.
Strategy used to persist component state across reloads.
Payloads are opaque: a store moves them, it never interprets them. A read is typed unknown on
purpose — web storage is origin-wide and user-writable, so the consumer has to normalize whatever
comes back (see the normalize callback of KbqStateSaving.read()).
Provide a custom implementation through the KBQ_STATE_STORE token to change where the state is
stored. To keep it for the tab session only, provide the bundled KbqSessionStorageStateStore
instead of writing one.
Every method is synchronous. A component reads once while it initializes and cannot wait, so a
store that returns a promise restores nothing — the payload reaches normalize unresolved and is
rejected (dev mode warns about it). To back the state with a server, load it before the application
renders — provideAppInitializer — and serve it from memory here.
interface KbqStateStore {
changes?: Observable<void>;
getState(key: string): unknown;
setState(key: string, state: unknown): void;
removeState(key: string): void;
keys?(): string[];
}changesObservable<void> Optional. Emits whenever entries change outside this instance — the same app open in another tab,
most commonly. KbqStateSavingService re-emits it, so a panel listing the entries can refresh.
Leave it out when the storage has no way to report that.
getState()unknown Returns the raw persisted payload for the key, or null when nothing is stored/available.
setState()void Persists the payload under the key. It has to be JSON-serializable.
removeState()void Removes the payload persisted under the key.
keys()string[] Optional. Every key this store currently holds.
KbqStateSavingService needs it to report the entries no live component claims. Leave it out when
the storage cannot be enumerated, and the service reports the live components alone.
type KbqStickToWindowPlacementValues = KbqEnumValues<
PopUpPlacements.Top | PopUpPlacements.Right | PopUpPlacements.Bottom | PopUpPlacements.Left
>;Anything the caret helpers can measure: a text field, or an element the user edits directly.
type KbqTextAnchor = HTMLInputElement | HTMLTextAreaElement | HTMLElement;Layer that renders text over a text field in the field's own layout.
interface KbqTextMirror {
update(before: string, hint: string, after: string): boolean;
hide(): void;
destroy(): void;
}update()boolean Shows hint exactly where the field would render it between before and after. Both of those stay
transparent: they only take the room the field's own text takes, so the field stays readable through the layer.
Returns whether the hint is shown where it belongs: on the row the text before it ends on, and inside the part of the field the user can see. A hint that is not is hidden again.
hide()void Hides the layer until the next update.
destroy()void Removes the layer.
Part of a text field's value that is being completed: the query right before the caret.
interface KbqTextQuery {
start: number;
end: number;
text: string;
trigger: string | null;
}startnumber Index the query starts at, including its trigger character. Replacing the query starts here.
endnumber Index the query ends at — the caret.
textstring Text to match the options against, without the trigger character.
triggerstring | null Trigger the query starts with, or null when the query is the word before the caret.
Options of kbqGetTextQuery.
interface KbqTextQueryOptions {
triggers?: readonly string[];
minLength?: number;
}triggersreadonly string[] Strings that start a query, such as / for commands or @ for mentions. When empty, the word before the
caret is the query.
minLengthnumber Shortest query that counts. Defaults to 1 for a word and to 0 after a trigger.
Light/dark polarity of a KbqThemeConfig. Drives mode() resolution and is the strictly-typed value
to reach for when something (e.g. CSS light-dark()) needs to know which of the two is active.
type KbqThemeColorScheme = 'light' | 'dark';A theme registered with KbqThemeService, resolved by mode() via its required colorScheme.
interface KbqThemeConfig {
name: string;
className: string;
colorScheme: KbqThemeColorScheme;
}classNamestring CSS class applied to the document body when this theme is active.
Selection understood by KbqThemeService. The only way to select a theme — see setMode().
type KbqThemeMode = 'auto' | KbqThemeColorScheme;Settings accepted by KBQ_THEME_CONFIG / kbqThemeProvider().
interface KbqThemeSettings<T extends KbqThemeConfig = KbqThemeConfig> {
themes: T[];
mode: KbqThemeMode;
theme: string | null;
storageKey: string;
}themesT[] Themes available to the service. Defaults to KBQ_DEFAULT_THEMES.
modeKbqThemeMode Initial mode, used only when nothing is persisted yet in the KBQ_THEME_STORE. Defaults to 'auto'.
themestring | null Name of the theme pinned initially, overriding mode resolution — see KbqThemeService.staticTheme.
Used only when nothing is persisted yet in the KBQ_THEME_STORE — a KbqThemeStore reads a pin the
user cleared and one that was never set back the same way, so a persisted mode is what tells the two
apart. Clearing the pin through selectTheme(null) without ever calling setMode() leaves nothing
persisted, and this theme applies again on the next load. Defaults to null.
storageKeystring Key used to persist the selection — a localStorage key or cookie name, depending on KBQ_THEME_STORE.
Defaults to 'kbq-theme-mode'.
Strategy used by KbqThemeService to persist and restore mode().
Provide a custom implementation through the KBQ_THEME_STORE token to change where it's stored
(e.g. sessionStorage, a backend), or to disable persistence entirely.
interface KbqThemeStore {
changes?: Observable<void>;
getMode(): KbqThemeMode | null;
setMode(mode: KbqThemeMode): void;
getStaticTheme(): string | null;
setStaticTheme(name: string | null): void;
}changesObservable<void> Optional. Emits whenever the stored values change outside this instance — the same app open in
another tab, most commonly. KbqThemeService re-reads the store on every emission, so a theme
switched in one tab reaches the others. Leave it out when the storage has no way to report that.
getMode()KbqThemeMode | null Returns the previously saved mode, or null when nothing is stored/available. Raw value only —
applying KbqThemeSettings.mode as the default for a null/invalid result is the caller's job
(see KbqThemeService's readMode()), not this method's.
setMode()void Persists the mode.
getStaticTheme()string | null Returns the previously saved static theme name, or null when nothing is available.
Raw value only — applying KbqThemeSettings.theme as the default is the caller's job, not this method's.
setStaticTheme()void Persists the static theme name, or clears it when null.
Locale configuration for KbqTimepickerModule.
type KbqTimepickerLocaleConfiguration = {
placeholder: {
full: string;
short: string;
};
};placeholder{ full: string; short: string; } Placeholders keyed by the time format rendered by the input.
placeholder.fullstring Placeholder for the HH:mm:ss format.
placeholder.shortstring Placeholder for the HH:mm format.
Locale configuration for KbqTimeRange
type KbqTimeRangeLocaleConfiguration = {
title: {
placeholder: string;
};
editor: {
from: string;
to: string;
apply: string;
cancel: string;
rangeLabel: string;
outOfBoundsError: string;
allTime: string;
currentQuarter: string;
currentYear: string;
allTimeOption?: string;
currentQuarterOption?: string;
currentYearOption?: string;
};
durationTemplate: {
title: FormatterDurationTemplate;
option: FormatterDurationTemplate;
};
};editor.outOfBoundsErrorstring Reported when both ends of the range leave minDate/maxDate. Supports the {{ value }} placeholder.
editor.allTimeOptionstring Label for the allTime option in the presets list, as opposed to the trigger label in allTime
editor.currentQuarterOptionstring Label for the currentQuarter option in the presets list, as opposed to the trigger label in currentQuarter
editor.currentYearOptionstring Label for the currentYear option in the presets list, as opposed to the trigger label in currentYear
Time zone the library renders dates in.
Accepts an IANA name ('Europe/Moscow'), a fixed offset — in minutes east of UTC (180) or as a
string ('+03:00', 'UTC+3', '03:00:00') — 'utc', or 'system' for the zone of the host the code
runs on.
The string & {} arm keeps IANA names open while still offering the special values as completions.
type KbqTimezoneLike = 'system' | 'utc' | number | (string & {});Locale configuration for KbqTimezoneModule.
type KbqTimezoneLocaleConfiguration = {
searchPlaceholder: string;
otherCountriesLabel: string;
};searchPlaceholderstring Placeholder of the search field inside the timezone select.
otherCountriesLabelstring Label of the group that holds every country other than the promoted one.
interface KbqTitleTextRef {
textElement?: ElementRef;
parentTextElement?: ElementRef;
}Options for toggleSelectAll.
interface KbqToggleSelectAllOptions {
allowDeselect?: boolean;
}allowDeselectboolean When true, a repeated toggle deselects everything once all selectable items are already
selected. When false (default), the toggle only ever selects.
interface KbqUnitSystem {
abbreviations: string[];
base: number;
power: number;
}Locale configuration for KbqUsernameModule.
The site is rendered as a bare (corp) parenthetical, so its meaning is carried by punctuation
alone; siteLabel is the visually hidden word that names it for assistive tech.
type KbqUsernameLocaleConfiguration = {
siteLabel: string;
};siteLabelstring Word naming the site hint, e.g. site. Never displayed.
Handler that will update scroll position of elements inside overlay
interface KeyboardNavigationHandler {
scrollActiveOptionIntoView(): void;
}scrollActiveOptionIntoView()void Scrolls the active option into view.
Modifier keys handled by the ListKeyManager.
type ListKeyManagerModifierKey = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';interface ListKeyManagerOption {
disabled?: boolean | Signal<boolean>;
getLabel?(): string;
}disabledboolean | Signal<boolean> Whether the option is disabled. A signal lets an option expose disabled as an input().
enum KbqComponentColors {
Theme = 'theme',
ThemeFade = 'theme-fade',
Contrast = 'contrast',
ContrastFade = 'contrast-fade',
Error = 'error',
Warning = 'warning',
Success = 'success',
Default = 'contrast',
Empty = 'empty'
}Available unit systems for file size formatting.
enum KbqMeasurementSystem {
SI = 'SI',
IEC = 'IEC'
}Theme names for KBQ_DEFAULT_THEMES, the built-in light/dark theme set.
enum KbqThemeNames {
Light = 'light',
Dark = 'dark'
}Light'light' Name for the built-in light theme.
Dark'dark' Name for the built-in dark theme.
CSS class names for KBQ_DEFAULT_THEMES, the built-in light/dark theme set.
enum KbqThemeSelector {
Light = 'kbq-light',
Dark = 'kbq-dark'
}Light'kbq-light' Class for the built-in light theme.
Dark'kbq-dark' Class for the built-in dark theme.
enum MultipleMode {
CHECKBOX = 'checkbox',
KEYBOARD = 'keyboard'
}enum PopUpPlacements {
Top = 'top',
TopLeft = 'topLeft',
TopRight = 'topRight',
Right = 'right',
RightTop = 'rightTop',
RightBottom = 'rightBottom',
Left = 'left',
LeftTop = 'leftTop',
LeftBottom = 'leftBottom',
Bottom = 'bottom',
BottomLeft = 'bottomLeft',
BottomRight = 'bottomRight'
}enum PopUpSizes {
Small = 'small',
Medium = 'medium',
Large = 'large',
Custom = 'custom'
}enum PopUpTriggers {
Click = 'click',
Focus = 'focus',
Hover = 'hover',
Keydown = 'keydown',
Program = 'program'
}enum PopUpVisibility {
Initial = 'initial',
Visible = 'visible',
Hidden = 'hidden'
}const applyPopupMargins: (renderer: Renderer2, element: HTMLElement, name: string, value: string) => void;Default value when configuring overlay in popups (Autocomplete, Datepicker, Dropdown, Select, Tags Autocomplete, Tags Input, Timezone, TreeSelect).
const defaultOffsetY: number;const enUSFormattersData: {
formatters: {
number: {
rounding: {
separator: string;
groupSeparator: string;
thousand: string;
million: string;
billion: string;
trillion: string;
};
};
};
input: {
number: {
groupSeparator: string[];
fractionSeparator: string;
};
};
sizeUnits: {
defaultUnitSystem: "SI";
defaultPrecision: number;
unitSystems: {
SI: {
abbreviations: string[];
base: number;
power: number;
};
IEC: {
abbreviations: string[];
base: number;
power: number;
};
};
};
};const enUSLocaleData: {
a11y: {
close: string;
save: string;
saving: string;
saveFailed: string;
cancel: string;
edit: string;
removeAll: string;
remove: string;
breadcrumbs: string;
expandBreadcrumbs: string;
previousMonth: string;
currentDate: string;
nextMonth: string;
clear: string;
showPassword: string;
hidePassword: string;
resizeColumns: string;
resizePanels: string;
toastRegion: string;
optionActions: string;
progressBar: string;
};
select: {
hiddenItemsText: string;
selectAll: string;
};
datepicker: {
placeholder: string;
dateInput: string;
};
timepicker: {
placeholder: {
full: string;
short: string;
};
};
fileUpload: {
a11y: {
fileAdded: string;
fileRemoved: string;
filesNotAdded: string;
};
single: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
};
multiple: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
captionTextWhenSelected: string;
captionTextForCompactSize: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
title: string;
};
};
codeBlock: {
softWrapOnTooltip: string;
softWrapOffTooltip: string;
downloadTooltip: string;
copiedTooltip: string;
copyTooltip: string;
viewAllText: string;
viewLessText: string;
openExternalSystemTooltip: string;
};
timezone: {
searchPlaceholder: string;
otherCountriesLabel: string;
};
actionsPanel: {
closeTooltip: string;
};
filterBar: {
reset: {
buttonName: string;
};
search: {
tooltip: string;
placeholder: string;
};
filters: {
defaultName: string;
saveNewFilterTooltip: string;
searchPlaceholder: string;
searchEmptyResult: string;
saveAsNewFilter: string;
saveChangesHeader: string;
saveChangesButton: string;
saveAsNewHeader: string;
saveAsNewButton: string;
change: string;
resetChanges: string;
remove: string;
errorHint: string;
saveButton: string;
cancelButton: string;
actionsTooltip: string;
};
add: {
tooltip: string;
addedAnnouncement: string;
};
refresher: {
refresh: string;
settings: string;
};
pipe: {
clearButtonTooltip: string;
removeButtonTooltip: string;
applyButton: string;
emptySearchResult: string;
selectAll: string;
noOptions: string;
};
datePipe: {
customPeriod: string;
customPeriodFrom: string;
customPeriodTo: string;
customPeriodErrorHint: string;
customPeriodMinIntervalErrorHint: string;
customPeriodMaxIntervalErrorHint: string;
backToPeriodSelection: string;
};
};
clampedText: {
openText: string;
closeText: string;
showMoreText: string;
moreText: string;
};
navbar: {
toggle: {
expand: string;
collapse: string;
};
};
searchExpandable: {
tooltip: string;
placeholder: string;
};
appSwitcher: {
searchPlaceholder: string;
searchEmptyResult: string;
sitesHeader: string;
clearSearch: string;
};
username: {
siteLabel: string;
};
popoverConfirm: {
confirmText: string;
confirmButtonText: string;
};
timeRange: {
title: {
placeholder: string;
};
editor: {
from: string;
to: string;
apply: string;
cancel: string;
rangeLabel: string;
outOfBoundsError: string;
allTime: string;
currentQuarter: string;
currentYear: string;
allTimeOption: string;
currentQuarterOption: string;
currentYearOption: string;
};
durationTemplate: {
title: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
option: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
};
};
notificationCenter: {
notifications: string;
remove: string;
removeAll: string;
doNotDisturb: string;
showPopUpNotifications: string;
noNotifications: string;
failedToLoadNotifications: string;
repeat: string;
loadingMore: string;
unread: string;
};
};const esLAFormattersData: {
formatters: {
number: {
rounding: {
separator: string;
groupSeparator: string;
thousand: string;
million: string;
billion: string;
trillion: string;
};
decimal: {
viewGroupSeparator: string;
};
};
};
input: {
number: {
groupSeparator: string[];
fractionSeparator: string;
viewGroupSeparator: string;
};
};
sizeUnits: {
defaultUnitSystem: "SI";
defaultPrecision: number;
unitSystems: {
SI: {
abbreviations: string[];
base: number;
power: number;
};
IEC: {
abbreviations: string[];
base: number;
power: number;
};
};
};
};const esLALocaleData: {
a11y: {
close: string;
save: string;
saving: string;
saveFailed: string;
cancel: string;
edit: string;
removeAll: string;
remove: string;
breadcrumbs: string;
expandBreadcrumbs: string;
previousMonth: string;
currentDate: string;
nextMonth: string;
clear: string;
showPassword: string;
hidePassword: string;
resizeColumns: string;
resizePanels: string;
toastRegion: string;
optionActions: string;
progressBar: string;
};
select: {
hiddenItemsText: string;
selectAll: string;
};
datepicker: {
placeholder: string;
};
timepicker: {
placeholder: {
full: string;
short: string;
};
};
fileUpload: {
a11y: {
fileAdded: string;
fileRemoved: string;
filesNotAdded: string;
};
single: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
};
multiple: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
captionTextWhenSelected: string;
captionTextForCompactSize: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
title: string;
};
};
codeBlock: {
softWrapOnTooltip: string;
softWrapOffTooltip: string;
downloadTooltip: string;
copiedTooltip: string;
copyTooltip: string;
viewAllText: string;
viewLessText: string;
openExternalSystemTooltip: string;
};
timezone: {
searchPlaceholder: string;
otherCountriesLabel: string;
};
actionsPanel: {
closeTooltip: string;
};
filterBar: {
reset: {
buttonName: string;
};
search: {
tooltip: string;
placeholder: string;
};
filters: {
defaultName: string;
saveNewFilterTooltip: string;
searchPlaceholder: string;
searchEmptyResult: string;
saveAsNewFilter: string;
saveChangesHeader: string;
saveChangesButton: string;
saveAsNewHeader: string;
saveAsNewButton: string;
change: string;
resetChanges: string;
remove: string;
errorHint: string;
saveButton: string;
cancelButton: string;
actionsTooltip: string;
};
add: {
tooltip: string;
addedAnnouncement: string;
};
refresher: {
refresh: string;
settings: string;
};
pipe: {
clearButtonTooltip: string;
removeButtonTooltip: string;
applyButton: string;
emptySearchResult: string;
selectAll: string;
noOptions: string;
};
datePipe: {
customPeriod: string;
customPeriodFrom: string;
customPeriodTo: string;
customPeriodErrorHint: string;
customPeriodMinIntervalErrorHint: string;
customPeriodMaxIntervalErrorHint: string;
backToPeriodSelection: string;
};
};
clampedText: {
openText: string;
closeText: string;
showMoreText: string;
moreText: string;
};
navbar: {
toggle: {
expand: string;
collapse: string;
};
};
searchExpandable: {
tooltip: string;
placeholder: string;
};
appSwitcher: {
searchPlaceholder: string;
searchEmptyResult: string;
sitesHeader: string;
clearSearch: string;
};
username: {
siteLabel: string;
};
popoverConfirm: {
confirmText: string;
confirmButtonText: string;
};
timeRange: {
title: {
placeholder: string;
};
editor: {
from: string;
to: string;
apply: string;
cancel: string;
rangeLabel: string;
outOfBoundsError: string;
allTime: string;
currentQuarter: string;
currentYear: string;
allTimeOption: string;
currentQuarterOption: string;
currentYearOption: string;
};
durationTemplate: {
title: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
option: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
};
};
notificationCenter: {
notifications: string;
remove: string;
removeAll: string;
doNotDisturb: string;
showPopUpNotifications: string;
noNotifications: string;
failedToLoadNotifications: string;
repeat: string;
loadingMore: string;
unread: string;
};
};Child nodes that take part in the icon detection: comments and whitespace-only text nodes are
ignored so that detection does not depend on preserveWhitespaces.
const getContentNodes: (element: Node) => Node[];Converts bytes to Kb, Mb, Gb
const getHumanizedBytes: (
value: number,
system: KbqUnitSystem,
threshold?: number
) => { result: number; unit: string };const getNodesWithoutComments: (nodes: NodeList) => Node[];Whether the value is Element.
const isElement: (value: unknown) => value is Element;Whether the value is HTMLElement.
const isHtmlElement: (value: unknown) => value is HTMLElement;Whether the value is HTMLElement or null.
const isHtmlElementOrNull: (
value: unknown
) => value is HTMLElement | null;Whether the value is null.
const isNull: (value: unknown) => value is null;Whether the value is undefined.
const isUndefined: (value: unknown) => value is undefined;Localization configuration provider for the accessible names of built-in icon-only buttons.
const KBQ_A11Y_LOCALE_CONFIGURATION: InjectionToken<KbqA11yLocaleConfiguration>;Configures the motion of Koobiq components, for example { animationsDisabled: true } for a test suite
that should not wait for transitions.
const KBQ_ANIMATIONS_CONFIG: InjectionToken<KbqAnimationsConfig>;Injection token that can be used to specify the default click behavior for checkable controls.
const KBQ_CHECKABLE_CLICK_ACTION: InjectionToken<KbqCheckableClickAction>;Pane class applied to a connected overlay whose panel is positioned ABOVE its trigger (flipped).
Mirror of KBQ_CONNECTED_OVERLAY_BELOW_CLASS: the visual gap is recreated as transparent
padding-bottom inside the pane so the flipped gap is not click/hover-through.
const KBQ_CONNECTED_OVERLAY_ABOVE_CLASS: string;Pane class applied to a connected overlay whose panel is positioned BELOW its trigger.
Used instead of a physical offsetY gap: the pane sits flush with the trigger and the visual gap is
recreated as transparent padding-top inside the pane (see the kbq-connected-overlay-gap styles), so the
gap is covered by the pane (pointer-events: auto) and can no longer be clicked/hovered through.
const KBQ_CONNECTED_OVERLAY_BELOW_CLASS: string;Injection token for KbqConnectedOverlayOriginProvider. Provide it on an ancestor
component to redirect where a nested KbqFormField's control positions its overlay.
const KBQ_CONNECTED_OVERLAY_ORIGIN: InjectionToken<KbqConnectedOverlayOriginProvider>;Pane class applied to a connected overlay whose panel is anchored to the FIRST ROW of a trigger it OVERLAPS — a multiline select whose tag rows have made it taller than the panel itself, with too little room to open on either side of it.
The panel ends up where it would for a single-row trigger, so the gap is the same transparent
padding-top as KBQ_CONNECTED_OVERLAY_BELOW_CLASS. It is a separate class because the room left
for the panel has to be measured from the first row rather than from the trigger's bottom edge, and the
class is how the component tells the two apart.
const KBQ_CONNECTED_OVERLAY_OVERLAP_CLASS: string;const KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER: <T>(token: InjectionToken<T>, factory: (overlay: Overlay) => () => ScrollStrategy) => { provide: InjectionToken<T>; deps: (typeof Overlay)[]; useFactory: (overlay: Overlay) => () => ScrollStrategy; };const KBQ_DATE_FORMATS: InjectionToken<DateFormats>;InjectionToken for datepicker that can be used to override default locale code.
const KBQ_DATE_LOCALE: InjectionToken<string>;InjectionToken for the time zone every date the library formats is rendered in.
Read once, by the KbqDateTimezoneService constructor, out of the injector that created the
service — call KbqDateTimezoneService.setTimezone to change the zone afterwards. Defaults to
'system', the zone of the host the code runs on.
const KBQ_DATE_TIMEZONE: InjectionToken<KbqTimezoneLike>;const KBQ_DEFAULT_LOCALE_ID: string;The built-in light/dark theme set — KBQ_THEME_CONFIG's default themes.
const KBQ_DEFAULT_THEMES: KbqThemeConfig[];Localization configuration provider for the number formatting rules — the decimal separators the
pipes apply on top of Intl.NumberFormat, and the abbreviations kbqRoundNumber renders.
Supplies the defaults only: the active locale wins over it, and
kbqFormattersLocaleConfigurationProvider wins over both.
const KBQ_FORMATTERS_LOCALE_CONFIGURATION: InjectionToken<KbqFormattersLocaleConfiguration>;const KBQ_INVALID_VALUE_ERROR: string;const KBQ_LOCALE_DATA: InjectionToken<KbqLocaleDataInput>;const KBQ_LOCALE_ID: InjectionToken<KbqLocaleIdLike>;const KBQ_LOCALE_SERVICE: InjectionToken<KbqLocaleService>;const KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS: ParsedDigitsInfo;const KBQ_NUMBER_FORMATTER_OPTIONS: InjectionToken<ParsedDigitsInfo>;const KBQ_OPTION_ACTION_PARENT: InjectionToken<KbqOptionActionParent>;Injection token used to provide the parent component to options.
const KBQ_OPTION_PARENT_COMPONENT: InjectionToken<KbqOptionParentComponent>;DI token a scrollable wrapper component can provide to expose itself as the scroll source
for a co-located KbqOverflowShadowContainer (see KbqScrollbar).
const KBQ_OVERFLOW_SHADOW_SOURCE: InjectionToken<KbqOverflowShadowSource>;Places overlays into the layer of the KbqOverlayLayer element their origin is in.
const KBQ_OVERLAY_LAYERS: InjectionToken<KbqOverlayLayers>;Default minimum width of an overlay panel, in pixels.
Kept in sync by hand with --kbq-dropdown-size-container-width-min in dropdown-tokens.scss,
which expresses the same default for the dropdown's CSS-driven sizing.
const KBQ_PANEL_DEFAULT_MIN_WIDTH: number;InjectionToken for providing component with popup. Used in select and tree-select for tooltip.
const KBQ_PARENT_POPUP: InjectionToken<KbqParentPopup>;Localization configuration provider for the default strings of a confirmation popover.
const KBQ_POPOVER_CONFIRM_LOCALE_CONFIGURATION: InjectionToken<KbqPopoverConfirmLocaleConfiguration>;Default localized strings shared by the select-like components.
const KBQ_SELECT_DEFAULT_LOCALE_CONFIGURATION: KbqSelectLocaleConfiguration;Localization configuration provider for the select-like components.
Lives in core rather than in @koobiq/components/select because several packages that do not depend
on one another read this section: KbqSelect, KbqTreeSelect, KbqTreeSelection (the last one also
standalone, outside a tree-select) and KbqListSelection.
const KBQ_SELECT_LOCALE_CONFIGURATION: InjectionToken<KbqSelectLocaleConfiguration>;Injection token that determines the scroll handling while a select is open.
The root default keeps the select usable when it is reached outside KbqSelectModule's injector - imported
as a bare standalone component, pulled in through another standalone component (KbqTimezoneSelect,
KbqCalendarHeader), or rendered in a component built from the root injector, as KbqModalService does.
Providing the token anywhere still wins over this default.
const KBQ_SELECT_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;Minimum option count threshold for displaying select search. Search is hidden when fewer options are available.
const KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD: number;Element used by KbqShadowDomOverlayContainer to locate the shadow root that should host overlays.
When not provided, the container falls back to the application root component element.
const KBQ_SHADOW_DOM_OVERLAY_HOST: InjectionToken<KbqShadowDomOverlayHost>;Element-level token for pop-ups sharing their trigger element with a tooltip. Multi-provided, so a single element can carry several pop-ups at once — for example the filter-bar button with both a popover and a dropdown attached to it.
const KBQ_SIBLING_POPUP: InjectionToken<readonly KbqSiblingPopup[]>;Use KBQ_SIZE_UNITS_LOCALE_CONFIGURATION. Will be removed in 22.0.0.
const KBQ_SIZE_UNITS_CONFIG: InjectionToken<KbqSizeUnitsLocaleConfiguration>;Use KBQ_SIZE_UNITS_DEFAULT_LOCALE_CONFIGURATION. Will be removed in 22.0.0.
const KBQ_SIZE_UNITS_DEFAULT_CONFIG: KbqSizeUnitsLocaleConfiguration;const KBQ_SIZE_UNITS_DEFAULT_LOCALE_CONFIGURATION: KbqSizeUnitsLocaleConfiguration;Configuration for converting sizes in different unit systems. Supplies the defaults only — the active
locale wins over it, and kbqSizeUnitsLocaleConfigurationProvider wins over both.
const KBQ_SIZE_UNITS_LOCALE_CONFIGURATION: InjectionToken<KbqSizeUnitsLocaleConfiguration>;What useStateSaving defaults to. Provide false to turn state saving off across an application;
a component opts back in with [useStateSaving]="true".
The only switch in place before the first component reads — KbqStateSavingService.setEnabled() runs
later than that.
const KBQ_STATE_SAVING_ENABLED: InjectionToken<boolean>;Injection token for the strategy that derives a storage key from the host element when a component
persists state without a stateSavingKey. Defaults to kbqStructuralStateSavingKey.
Replace it to key the state on something the DOM does not know about — an application that keeps the same layout across parameterized routes can prefix the resolved key with the route it is on.
providers: [
{
provide: KBQ_STATE_SAVING_KEY_RESOLVER,
useFactory: () => {
const router = inject(Router);
return (host: Element | null) => `${router.url}|${kbqStructuralStateSavingKey(host)}`;
}
}
]const KBQ_STATE_SAVING_KEY_RESOLVER: InjectionToken<KbqStateSavingKeyResolver>;How long a web-storage entry survives without being written or read, in milliseconds. Defaults to 90 days.
Components persist under keys derived from the host's position in the document when no
stateSavingKey is given, so a restructuring silently strands the entry written under the previous
key. The TTL is what eventually collects those.
const KBQ_STATE_SAVING_TTL: InjectionToken<number>;Injection token for the store components persist their state into (see KbqStateStore).
Defaults to a localStorage-backed implementation (KbqLocalStorageStateStore).
Providing it in a component's own providers scopes the replacement to that subtree.
const KBQ_STATE_STORE: InjectionToken<KbqStateStore>;Injection token for KbqThemeService's settings. Configure via kbqThemeProvider(), not this directly.
const KBQ_THEME_CONFIG: InjectionToken<KbqThemeSettings>;Injection token for the store used to persist the current mode (see KbqThemeStore).
Defaults to a localStorage-backed implementation (KbqThemeLocalStorageStore).
const KBQ_THEME_STORE: InjectionToken<KbqThemeStore>;const KBQ_TITLE_TEXT_REF: InjectionToken<KbqTitleTextRef>;An abstraction over the global window object.
const KBQ_WINDOW: InjectionToken<Window>;Utility provider of KBQ_A11Y_LOCALE_CONFIGURATION. Only the names you pass are overridden;
the rest keep following the active locale.
const kbqA11yLocaleConfigurationProvider: (
configuration: KbqDeepPartial<KbqA11yLocaleConfiguration>
) => Provider;Overlay origin that stays on the caret: a virtual origin for FlexibleConnectedPositionStrategy.setOrigin() whose
x, y, width and height are measured again whenever the strategy reads them.
A plain rectangle is a snapshot, and every repositioning the caret itself does not cause — a scrolled page, a resized window, the field moving within its layout — would place the overlay at coordinates the caret has left. Reads made within one task share one measurement, so positioning the overlay measures the caret once.
measure returns the rectangle to anchor to, including a fallback for when the caret cannot be located.
const kbqCreateCaretOrigin: (
measure: () => KbqCaretRect
) => Readonly<KbqCaretRect>;Utility provider of KBQ_DATE_TIMEZONE, the time zone dates are rendered in.
Provides KbqDateTimezoneService alongside the token, so listing it in a component's providers
scopes the zone to that subtree instead of resolving the root service and silently doing nothing.
const kbqDateTimezoneProvider: (
timezone: KbqTimezoneLike
) => Provider[];Recursively completes patch from base — the runtime counterpart of KbqDeepPartial.
A shallow spread would be wrong for any T with a nested section: { ...base, ...patch } replaces a
whole sub-object, dropping the sibling keys the patch never mentioned.
Returns base itself whenever the patch adds nothing, so that overriding one section leaves every
other section referentially identical to the object it was completed from.
const kbqDeepMerge: <T>(
base: T,
patch: NoInfer<KbqDeepPartial<T>> | undefined
) => T;Utility provider for ErrorStateMatcher.
const kbqErrorStateMatcherProvider: (
errorStateMatcher: Type<ErrorStateMatcher> | ErrorStateMatcher
) => Provider;Use kbqSizeUnitsLocaleConfigurationProvider. Will be removed in 22.0.0.
const kbqFilesizeFormatterConfigurationProvider: (
configuration: KbqDeepPartial<KbqSizeUnitsLocaleConfiguration>
) => Provider;Focuses element and scrolls it into view by the shortest distance, leaving a visible one alone.
The reveal is explicit because the one focus() performs implicitly is not portable: WebKit defers it
to a later rendering update, where it lands after — and undoes — any scrolling the reader did in the
meantime. Letting the element reveal itself keeps every consumer working, whatever it uses as a scroll
container, and the browser resolves that container rather than the caller guessing at it.
Pass skipReveal when the pointer caused the focus: the element is already under the cursor, so
revealing it would shift the list out from under it.
const kbqFocusAndReveal: (element: HTMLElement, skipReveal?: boolean) => void;Utility provider of KBQ_FORMATTERS_LOCALE_CONFIGURATION. Only the rules you pass are overridden;
the rest keep following the active locale.
const kbqFormattersLocaleConfigurationProvider: (
configuration: KbqDeepPartial<KbqFormattersLocaleConfiguration>
) => Provider;Rectangle of the caret in element, in viewport coordinates, or null when there is nothing to measure —
the element holds no selection, or it is detached from a rendered document.
Falls back to the element's own box for fields whose rendered text is not their value (password and
friends), for right-to-left text, where the visual order of a bidi line is not a prefix of the value, and for
inputs whose text is centred or end-aligned.
The result is always clamped to the field's visible box, so a caret scrolled out of view keeps whatever is
anchored to it next to the field instead of sending it off screen.
const kbqGetCaretRect: (element: KbqTextAnchor) => KbqCaretRect | null;Rendered height of an element, or 0 when it has no box.
getClientRects() returns an empty list for elements that are not laid out and is missing entirely
from the server DOM, so both the method and the first rect are read defensively rather than going
through getBoundingClientRect(), whose zeroes are indistinguishable from a genuinely collapsed
element.
const kbqGetElementHeight: (element: Element) => number;Rectangle of an overlay origin in viewport coordinates, for measurements and arrow alignment.
const kbqGetOverlayOriginSize: (
origin: KbqOverlayOrigin | FlexibleConnectedPositionStrategyOrigin
) => Pick<KbqCaretRect, 'x' | 'y' | 'width' | 'height'>;Largest disagreement (px) between an element's box metrics and the scroll offset the browser actually hands out.
scrollWidth/clientWidth are rounded to whole CSS pixels (up to 1px of error) while the scroll offset
snaps to the device-pixel grid, whose step is 1 / devicePixelRatio CSS px — so the bound is
1 + 1 / devicePixelRatio and widens as the page is zoomed out, rather than being a constant. At 50% zoom
on a 1× display it is already 3px, which is why a fixed tolerance leaks the bug back in at low zoom.
The view is resolved from the element rather than a global, so the helper stays usable on the server.
const kbqGetScrollOverflowTolerance: (element: Element) => number;Rectangle of the text selected in element, in viewport coordinates, collapsing to the caret rectangle
(kbqGetCaretRect) when nothing is selected.
const kbqGetSelectionRect: (
element: KbqTextAnchor
) => KbqCaretRect | null;Query right before caret in value, or null when the text there is not one.
With triggers, the query runs from the closest trigger to the caret. The trigger has to start the line or
follow whitespace — so that the @ of an e-mail address opens nothing — and no whitespace may stand between it
and the caret. Without triggers, the query is the word the caret ends.
const kbqGetTextQuery: (
value: string,
caret: number,
{ triggers = [], minLength }?: KbqTextQueryOptions
) => KbqTextQuery | null;Whether element has scroll overflow along axis larger than the measurement error of the metrics it is
derived from — i.e. whether there is a scroll range the user can actually reach.
const kbqHasScrollOverflow: (
element: Element,
axis?: KbqScrollAxis
) => boolean;Tracks whether the current control's value was filled in by the browser, as a signal.
Call it from an injection context on a directive whose host is the element the browser actually
fills — a text <input> or a <textarea>. Every KbqFormFieldControl that can be autofilled
exposes the result as its autofilled member.
This is a hook for application code, not the mechanism behind the autofill styling. The styling
keys on :autofill in CSS, which matches in the same style pass the browser fills the field;
detection here goes through a zero-length keyframe animation and an animationstart listener, so
it lands a frame or two later — too late to paint with, and early enough for anything a component
wants to do about it.
monitor() returns EMPTY off the browser platform, so this needs no Platform guard.
const kbqInjectAutofilled: () => Signal<boolean>;Injects the native element for the current component.
const kbqInjectNativeElement: <T extends Element = HTMLElement>() => T;Whether the origin is an element with a box of its own, rather than a rectangle in viewport coordinates.
const kbqIsElementOrigin: (origin: KbqOverlayOrigin) => boolean;Calls callback whenever the caret of element may have moved — the user typed, moved the caret, selected
text or scrolled the field — and returns the function that stops listening.
The listeners are bound in the zone the caller runs it in.
const kbqListenForCaretMoves: (
renderer: Renderer2,
element: HTMLElement,
callback: () => void
) => (() => void);Registers a partial override of one locale section.
Backs every kbq<Component>LocaleConfigurationProvider. The override is applied on top of the active
locale rather than replacing it, so the keys it does not mention keep following setLocale().
const kbqLocaleConfigurationOverrideProvider: <K extends KbqLocaleSection>(
section: K,
configuration: KbqDeepPartial<KbqLocaleData[K]>
) => Provider;Utility provider of KBQ_LOCALE_ID, the locale to activate.
Belongs in the same providers array as kbqLocaleServiceProvider: the id is read once, by the
KbqLocaleService constructor, out of the injector that created the service. Use setLocale() to change
the locale afterwards.
const kbqLocaleIDProvider: (localeId: KbqLocaleIdLike) => Provider;Utility provider for the locale service. KBQ_LOCALE_SERVICE has no factory, so nothing is localized
until an application provides it.
Provides the service next to the token rather than aliasing the class through useClass, which builds a
second instance: the one the components read then has nothing to do with the one inject(KbqLocaleService)
hands out, and setLocale() called on the latter moves nothing that is rendered.
On a component it scopes the locale to that subtree — put kbqLocaleIDProvider in the same array to
pick the locale of that scope.
const kbqLocaleServiceProvider: () => Provider;numberAttribute for an input whose default is undefined: a missing, empty or unparsable value gives
undefined rather than NaN or 0. Angular's own transform returns NaN, which is not nullish and
therefore walks past every ?? meant to apply the default, and 0 for null and for an empty string.
const kbqOptionalNumberAttribute: (
value: unknown
) => number | undefined;Utility provider of KBQ_POPOVER_CONFIRM_LOCALE_CONFIGURATION. Only the strings you pass are overridden;
the rest keep following the active locale.
const kbqPopoverConfirmLocaleConfigurationProvider: (
configuration: KbqDeepPartial<KbqPopoverConfirmLocaleConfiguration>
) => Provider;Resolves a Koobiq origin into the value a connected position strategy accepts.
const kbqResolveOverlayOrigin: (
origin: KbqOverlayOrigin | FlexibleConnectedPositionStrategyOrigin
) => FlexibleConnectedPositionStrategyOrigin;Offset of timezone at timestamp, in minutes east of UTC. null means "leave the date in the host
zone" — either because timezone is 'system', or because it is a name no Intl implementation knows.
Takes the instant because an IANA zone has no single offset: 'Europe/Berlin' is +60 in January and
+120 in July, and one list of dates can span the change.
const kbqResolveTimezoneOffset: (
timezone: KbqTimezoneLike,
timestamp: number
) => number | null;Scrolls a text field horizontally so that its current selection is visible.
Browsers scroll a field to the caret only for edits the user makes: a selection set from script leaves the field at whatever offset the last keystroke produced. A masked field re-renders its value and moves the caret between value parts on every keystroke, so without this the field keeps the offset of the part that was edited before and clips the one being edited now.
Leaves the field alone when it is not focused, when it renders something other than its value, and in right-to-left text, where the browser's own caret following is already correct.
const kbqRevealSelection: (element: HTMLInputElement) => void;Utility provider of KBQ_SELECT_LOCALE_CONFIGURATION. Only the strings you pass are overridden;
the rest keep following the active locale.
const kbqSelectLocaleConfigurationProvider: (
configuration: KbqDeepPartial<KbqSelectLocaleConfiguration>
) => Provider;Selects the [start, end] range of a text field and keeps it visible with kbqRevealSelection.
const kbqSetSelectionRange: (
element: HTMLInputElement,
start: number,
end: number
) => void;Providers that route all CDK overlays into a shadow root via KbqShadowDomOverlayContainer.
Add it to the bootstrap providers of an application rendered inside a shadow root:
bootstrapApplication(AppComponent, {
providers: kbqShadowDomOverlayProvider(() => document.querySelector('my-mfe-root')!)
});The provider replaces the global OverlayContainer token, so it cannot be combined with another custom
OverlayContainer (e.g. CDK's FullscreenOverlayContainer) — the last provider wins. Apps that need both must
subclass KbqShadowDomOverlayContainer.
const kbqShadowDomOverlayProvider: (
host?: KbqShadowDomOverlayHost
) => Provider[];Builds the multi-provider entry a pop-up trigger adds to its own providers to announce itself to a
tooltip on the same element.
Every concrete trigger has to add it on its own: Angular copies providers to a subclass only when that
subclass has no decorator of its own, so inheriting from an already-announced trigger is not enough.
const kbqSiblingPopupProvider: (
popup: Type<KbqSiblingPopup>
) => Provider;Utility provider of KBQ_SIZE_UNITS_LOCALE_CONFIGURATION. Only the units you pass are overridden;
the rest keep following the active locale.
const kbqSizeUnitsLocaleConfigurationProvider: (
configuration: KbqDeepPartial<KbqSizeUnitsLocaleConfiguration>
) => Provider;Default KbqStateSavingKeyResolver: builds the key from where the host sits in the document.
Each segment is the tag name, suffixed with :n when earlier siblings share it. An author-written
id ends the walk and becomes the root segment, which is what makes the key survive a restructuring
above the component — and gives an author a way to pin it without reaching for stateSavingKey.
app-root/main/kbq-accordion
app-root/main/kbq-accordion:1
#settings-panel/div/kbq-accordion
#faqconst kbqStructuralStateSavingKey: KbqStateSavingKeyResolver;Configures KbqThemeService — registers custom themes, sets the initial mode, and how it's persisted.
Only the properties you pass are overridden; anything omitted keeps its KBQ_THEME_DEFAULT_SETTINGS value.
const kbqThemeProvider: <T extends KbqThemeConfig = KbqThemeConfig>(
config: Partial<KbqThemeSettings<T>>
) => Provider;const POSITION_TO_CSS_MAP: { [key: string]: string };const ptBRFormattersData: {
formatters: {
number: {
rounding: {
separator: string;
groupSeparator: string;
thousand: string;
million: string;
billion: string;
trillion: string;
};
};
};
input: {
number: {
groupSeparator: string[];
fractionSeparator: string;
};
};
sizeUnits: {
defaultUnitSystem: "SI";
defaultPrecision: number;
unitSystems: {
SI: {
abbreviations: string[];
base: number;
power: number;
};
IEC: {
abbreviations: string[];
base: number;
power: number;
};
};
};
};const ptBRLocaleData: {
a11y: {
close: string;
save: string;
saving: string;
saveFailed: string;
cancel: string;
edit: string;
removeAll: string;
remove: string;
breadcrumbs: string;
expandBreadcrumbs: string;
previousMonth: string;
currentDate: string;
nextMonth: string;
clear: string;
showPassword: string;
hidePassword: string;
resizeColumns: string;
resizePanels: string;
toastRegion: string;
optionActions: string;
progressBar: string;
};
select: {
hiddenItemsText: string;
selectAll: string;
};
datepicker: {
placeholder: string;
};
timepicker: {
placeholder: {
full: string;
short: string;
};
};
fileUpload: {
a11y: {
fileAdded: string;
fileRemoved: string;
filesNotAdded: string;
};
single: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
};
multiple: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
captionTextWhenSelected: string;
captionTextForCompactSize: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
title: string;
};
};
codeBlock: {
softWrapOnTooltip: string;
softWrapOffTooltip: string;
downloadTooltip: string;
copiedTooltip: string;
copyTooltip: string;
viewAllText: string;
viewLessText: string;
openExternalSystemTooltip: string;
};
timezone: {
searchPlaceholder: string;
otherCountriesLabel: string;
};
actionsPanel: {
closeTooltip: string;
};
filterBar: {
reset: {
buttonName: string;
};
search: {
tooltip: string;
placeholder: string;
};
filters: {
defaultName: string;
saveNewFilterTooltip: string;
searchPlaceholder: string;
searchEmptyResult: string;
saveAsNewFilter: string;
saveChangesHeader: string;
saveChangesButton: string;
saveAsNewHeader: string;
saveAsNewButton: string;
change: string;
resetChanges: string;
remove: string;
errorHint: string;
saveButton: string;
cancelButton: string;
actionsTooltip: string;
};
add: {
tooltip: string;
addedAnnouncement: string;
};
refresher: {
refresh: string;
settings: string;
};
pipe: {
clearButtonTooltip: string;
removeButtonTooltip: string;
applyButton: string;
emptySearchResult: string;
selectAll: string;
noOptions: string;
};
datePipe: {
customPeriod: string;
customPeriodFrom: string;
customPeriodTo: string;
customPeriodErrorHint: string;
customPeriodMinIntervalErrorHint: string;
customPeriodMaxIntervalErrorHint: string;
backToPeriodSelection: string;
};
};
clampedText: {
openText: string;
closeText: string;
showMoreText: string;
moreText: string;
};
navbar: {
toggle: {
expand: string;
collapse: string;
};
};
searchExpandable: {
tooltip: string;
placeholder: string;
};
appSwitcher: {
searchPlaceholder: string;
searchEmptyResult: string;
sitesHeader: string;
clearSearch: string;
};
username: {
siteLabel: string;
};
popoverConfirm: {
confirmText: string;
confirmButtonText: string;
};
timeRange: {
title: {
placeholder: string;
};
editor: {
from: string;
to: string;
apply: string;
cancel: string;
rangeLabel: string;
outOfBoundsError: string;
allTime: string;
currentQuarter: string;
currentYear: string;
allTimeOption: string;
currentQuarterOption: string;
currentYearOption: string;
};
durationTemplate: {
title: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
option: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
};
};
notificationCenter: {
notifications: string;
remove: string;
removeAll: string;
doNotDisturb: string;
showPopUpNotifications: string;
noNotifications: string;
failedToLoadNotifications: string;
repeat: string;
loadingMore: string;
unread: string;
};
};const ruRUFormattersData: {
formatters: {
number: {
rounding: {
separator: string;
groupSeparator: string;
thousand: string;
million: string;
billion: string;
trillion: string;
};
decimal: {
viewGroupSeparator: string;
};
};
};
input: {
number: {
groupSeparator: string[];
fractionSeparator: string;
startFormattingFrom: number;
viewGroupSeparator: string;
};
};
sizeUnits: {
defaultUnitSystem: "SI";
defaultPrecision: number;
unitSystems: {
SI: {
abbreviations: string[];
base: number;
power: number;
};
IEC: {
abbreviations: string[];
base: number;
power: number;
};
};
};
};const ruRULocaleData: {
a11y: {
close: string;
save: string;
saving: string;
saveFailed: string;
cancel: string;
edit: string;
removeAll: string;
remove: string;
breadcrumbs: string;
expandBreadcrumbs: string;
previousMonth: string;
currentDate: string;
nextMonth: string;
clear: string;
showPassword: string;
hidePassword: string;
resizeColumns: string;
resizePanels: string;
toastRegion: string;
optionActions: string;
progressBar: string;
};
select: {
hiddenItemsText: string;
selectAll: string;
};
datepicker: {
placeholder: string;
dateInput: string;
};
timepicker: {
placeholder: {
full: string;
short: string;
};
};
fileUpload: {
a11y: {
fileAdded: string;
fileRemoved: string;
filesNotAdded: string;
};
single: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
};
multiple: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
captionTextWhenSelected: string;
captionTextForCompactSize: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
title: string;
};
};
codeBlock: {
softWrapOnTooltip: string;
softWrapOffTooltip: string;
downloadTooltip: string;
copiedTooltip: string;
copyTooltip: string;
viewAllText: string;
viewLessText: string;
openExternalSystemTooltip: string;
};
timezone: {
searchPlaceholder: string;
otherCountriesLabel: string;
};
actionsPanel: {
closeTooltip: string;
};
filterBar: {
reset: {
buttonName: string;
};
search: {
tooltip: string;
placeholder: string;
};
filters: {
defaultName: string;
saveNewFilterTooltip: string;
searchPlaceholder: string;
searchEmptyResult: string;
saveAsNewFilter: string;
saveChangesHeader: string;
saveChangesButton: string;
saveAsNewHeader: string;
saveAsNewButton: string;
change: string;
resetChanges: string;
remove: string;
errorHint: string;
saveButton: string;
cancelButton: string;
actionsTooltip: string;
};
add: {
tooltip: string;
addedAnnouncement: string;
};
refresher: {
refresh: string;
settings: string;
};
pipe: {
clearButtonTooltip: string;
removeButtonTooltip: string;
applyButton: string;
emptySearchResult: string;
selectAll: string;
noOptions: string;
};
datePipe: {
customPeriod: string;
customPeriodFrom: string;
customPeriodTo: string;
customPeriodErrorHint: string;
customPeriodMinIntervalErrorHint: string;
customPeriodMaxIntervalErrorHint: string;
backToPeriodSelection: string;
};
};
clampedText: {
openText: string;
closeText: string;
showMoreText: string;
moreText: string;
};
navbar: {
toggle: {
expand: string;
collapse: string;
};
};
searchExpandable: {
tooltip: string;
placeholder: string;
};
appSwitcher: {
searchPlaceholder: string;
searchEmptyResult: string;
sitesHeader: string;
clearSearch: string;
};
username: {
siteLabel: string;
};
popoverConfirm: {
confirmText: string;
confirmButtonText: string;
};
timeRange: {
title: {
placeholder: string;
};
editor: {
from: string;
to: string;
apply: string;
cancel: string;
rangeLabel: string;
outOfBoundsError: string;
allTime: string;
currentQuarter: string;
currentYear: string;
allTimeOption: string;
currentQuarterOption: string;
currentYearOption: string;
};
durationTemplate: {
title: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
option: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
};
};
notificationCenter: {
notifications: string;
remove: string;
removeAll: string;
doNotDisturb: string;
showPopUpNotifications: string;
noNotifications: string;
failedToLoadNotifications: string;
repeat: string;
loadingMore: string;
unread: string;
};
};Whether the element supports the native disabled attribute; on any other host it is invalid HTML.
const supportsNativeDisabled: (element: Element) => boolean;const tkTMFormattersData: {
formatters: {
number: {
rounding: {
separator: string;
groupSeparator: string;
thousand: string;
million: string;
billion: string;
trillion: string;
};
};
};
input: {
number: {
groupSeparator: string[];
fractionSeparator: string;
viewGroupSeparator: string;
};
};
sizeUnits: {
defaultUnitSystem: "SI";
defaultPrecision: number;
unitSystems: {
SI: {
abbreviations: string[];
base: number;
power: number;
};
IEC: {
abbreviations: string[];
base: number;
power: number;
};
};
};
};const tkTMLocaleData: {
a11y: {
close: string;
save: string;
saving: string;
saveFailed: string;
cancel: string;
edit: string;
removeAll: string;
remove: string;
breadcrumbs: string;
expandBreadcrumbs: string;
previousMonth: string;
currentDate: string;
nextMonth: string;
clear: string;
showPassword: string;
hidePassword: string;
resizeColumns: string;
resizePanels: string;
toastRegion: string;
optionActions: string;
progressBar: string;
};
select: {
hiddenItemsText: string;
selectAll: string;
};
datepicker: {
placeholder: string;
dateInput: string;
};
timepicker: {
placeholder: {
full: string;
short: string;
};
};
fileUpload: {
a11y: {
fileAdded: string;
fileRemoved: string;
filesNotAdded: string;
};
single: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
};
multiple: {
captionText: string;
captionTextOnlyFolder: string;
captionTextWithFolder: string;
captionTextWhenSelected: string;
captionTextForCompactSize: string;
browseLink: string;
browseLinkFolder: string;
browseLinkFolderMixed: string;
title: string;
};
};
codeBlock: {
softWrapOnTooltip: string;
softWrapOffTooltip: string;
downloadTooltip: string;
copiedTooltip: string;
copyTooltip: string;
viewAllText: string;
viewLessText: string;
openExternalSystemTooltip: string;
};
timezone: {
searchPlaceholder: string;
otherCountriesLabel: string;
};
actionsPanel: {
closeTooltip: string;
};
filterBar: {
reset: {
buttonName: string;
};
search: {
tooltip: string;
placeholder: string;
};
filters: {
defaultName: string;
saveNewFilterTooltip: string;
searchPlaceholder: string;
searchEmptyResult: string;
saveAsNewFilter: string;
saveChangesHeader: string;
saveChangesButton: string;
saveAsNewHeader: string;
saveAsNewButton: string;
change: string;
resetChanges: string;
remove: string;
errorHint: string;
saveButton: string;
cancelButton: string;
actionsTooltip: string;
};
add: {
tooltip: string;
addedAnnouncement: string;
};
refresher: {
refresh: string;
settings: string;
};
pipe: {
clearButtonTooltip: string;
removeButtonTooltip: string;
applyButton: string;
emptySearchResult: string;
selectAll: string;
noOptions: string;
};
datePipe: {
customPeriod: string;
customPeriodFrom: string;
customPeriodTo: string;
customPeriodErrorHint: string;
customPeriodMinIntervalErrorHint: string;
customPeriodMaxIntervalErrorHint: string;
backToPeriodSelection: string;
};
};
clampedText: {
openText: string;
closeText: string;
showMoreText: string;
moreText: string;
};
navbar: {
toggle: {
expand: string;
collapse: string;
};
};
searchExpandable: {
tooltip: string;
placeholder: string;
};
appSwitcher: {
searchPlaceholder: string;
searchEmptyResult: string;
sitesHeader: string;
clearSearch: string;
};
username: {
siteLabel: string;
};
popoverConfirm: {
confirmText: string;
confirmButtonText: string;
};
timeRange: {
title: {
placeholder: string;
};
editor: {
from: string;
to: string;
apply: string;
cancel: string;
rangeLabel: string;
outOfBoundsError: string;
allTime: string;
currentQuarter: string;
currentYear: string;
allTimeOption: string;
currentQuarterOption: string;
currentYearOption: string;
};
durationTemplate: {
title: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
option: {
SEPARATOR: string;
LAST_PART_SEPARATOR: string;
YEARS: string;
MONTHS: string;
WEEKS: string;
DAYS: string;
HOURS: string;
MINUTES: string;
SECONDS: string;
YEARS_FRACTION: string;
MONTHS_FRACTION: string;
};
};
};
notificationCenter: {
notifications: string;
remove: string;
removeAll: string;
doNotDisturb: string;
showPopUpNotifications: string;
noNotifications: string;
failedToLoadNotifications: string;
repeat: string;
loadingMore: string;
unread: string;
};
};const VERSION: Version;