KbqActionContainer

componentCopy link to KbqActionContainer
@Component({ selector: 'kbq-action-container', exportAs: 'kbqActionContainer' })
class KbqActionContainer {}

KbqOptgroup

componentCopy link to KbqOptgroup

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;
}
disabledinputCopy link to disabledboolean

Whether the group, and every option in it, is disabled.

labelIdCopy link to labelIdstring

Unique id for the underlying label.

KbqOption

componentCopy link to KbqOption

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;
}
valueinputCopy link to valueany

The form value of the option.

showCheckboxinputCopy link to showCheckboxboolean | undefined

Whether the option renders a checkbox. Follows the multiple selection mode of the parent until bound.

viewValueinputCopy link to 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.

disabledinputCopy link to disabledboolean

Whether the option is disabled, through its own input or its group.

textElementCopy link to textElementElementRef<HTMLElement> | undefined

Element holding the text of the option, measured by kbq-title.

onSelectionChangeCopy link to 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.

stateChangesCopy link to stateChangesSubject<void>

Emits when the state of the option changes and any parents have to be notified.

multipleCopy link to multipleboolean

Whether the wrapping component is in multiple selection mode.

activeCopy link to 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()Copy link to focus()void

Moves keyboard focus to this option and reveals it — see kbqFocusAndReveal.

setActiveStyles()Copy link to 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()Copy link to 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()Copy link to getLabel()string

Gets the label to be used when determining whether the option should be focused.

handleKeydown()Copy link to handleKeydown()void

Ensures the option is selected when activated from the keyboard.

selectViaInteraction()Copy link to 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.

KbqOptionActionComponent

componentCopy link to KbqOptionActionComponent
@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-labelinputCopy link to 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.

disabledinputCopy link to disabledboolean

Whether the action is disabled.

localeOverridesinputCopy link to localeOverridesKbqPartialLocaleData | undefined

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

KbqCheckable

directiveCopy link to KbqCheckable

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;
}
effectiveTabIndexCopy link to effectiveTabIndexSignal<number>

The tab index actually applied to the native input: forced to -1 while disabled.

getAriaChecked()Copy link to getAriaChecked()KbqCheckedState

Returns the ARIA-checked value: 'true', 'false', or 'mixed' when indeterminate.

toggle()Copy link to toggle()void

Toggles the checked state and notifies the registered ControlValueAccessor change handler.

resolveClick()Copy link to 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()Copy link to resetNativeInput()void

Resets the native input to match the current checked/indeterminate state (used for the noop click action).

notifyFormValueChange()Copy link to notifyFormValueChange()void

Notifies the registered ControlValueAccessor change handler.

KbqColorDirective

directiveCopy link to KbqColorDirective

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;
}
colorinputCopy link to 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.

colorClassNameCopy link to colorClassNamestring

current class name of color

setDefaultColor()Copy link to setDefaultColor()void

this color will be used as a default value. For example [color]="'' | false | undefined | null".

KbqForm

directiveCopy link to KbqForm
@Directive({
    selector: '.kbq-form-vertical, .kbq-form-horizontal',
    exportAs: 'kbqForm'
})
class KbqForm {
    readonly elements: Signal<readonly KbqFormElement[]>;
    handleElements(elements: readonly KbqFormElement[]): void;
}

KbqFormElement

directiveCopy link to KbqFormElement
@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[]>;
}

KbqLocaleOverridesDirective

directiveCopy link to KbqLocaleOverridesDirective

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]>;
}
kbqLocaleOverridesinputCopy link to kbqLocaleOverridesKbqPartialLocaleData | undefined

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

read()Copy link to 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.

Parameters
sectionK

Section of the locale data to read.

tokenInjectionToken<KbqLocaleData[K]>

Configuration token, whose factory supplies the default strings.

KbqNormalizeWhitespace

directiveCopy link to KbqNormalizeWhitespace
@Directive({ selector: '[kbqNormalizeWhitespace]' })
class KbqNormalizeWhitespace {
    onCopy($event: ClipboardEvent): void;
}
onCopy()Copy link to onCopy()void

Replace thin-space with space on copy event

KbqOverflowShadowBottom

directiveCopy link to KbqOverflowShadowBottom

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)'
    );
}
kbqOverflowShadowBottominputCopy link to kbqOverflowShadowBottomKbqOverflowShadowContainer | undefined

Reference to the container directive. See KbqOverflowShadowTop.ref.

shadowinputCopy link to shadowstring

Value of box-shadow when the shadow is active. Defaults to the standard Koobiq token.

KbqOverflowShadowContainer

directiveCopy link to KbqOverflowShadowContainer

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;
}
debounceinputCopy link to debouncenumber

Optional debounce for scroll events, in milliseconds. Default is 0.

overflowCopy link to overflowWritableSignal<KbqOverflowShadowState>

Current shadow state. Re-checked on every scroll event and resize; changes only when an edge does.

checkOverflow()Copy link to 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).

KbqOverflowShadowTop

directiveCopy link to KbqOverflowShadowTop

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)'
    );
}
kbqOverflowShadowTopinputCopy link to 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).

shadowinputCopy link to shadowstring

Value of box-shadow when the shadow is active. Defaults to the standard Koobiq token.

KbqOverlayLayer

directiveCopy link to KbqOverlayLayer

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 {}

KbqOverlayLayerExclude

directiveCopy link to KbqOverlayLayerExclude

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 {}

KbqPopUp

directiveCopy link to KbqPopUp
@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;
}
elementRefCopy link to elementRefElementRef<HTMLElement>

The element the pop-up measures and decorates: its host, unless a subclass renders a panel of its own.

hoveredCopy link to hoveredSignal<boolean>

Whether the pointer is over the pop-up.

classMapCopy link to classMap{}

CSS classes of the pop-up element: the placement, the custom class and the modifiers of the subclass.

arrowCenteredCopy link to arrowCenteredboolean

Whether the arrow points at the origin center while the panel keeps its placement. Defaults to false.

arrowCenterInsetCopy link to arrowCenterInsetnumber

Distance from a panel edge to the arrow center, in pixels. Defaults to 0.

visibilityCopy link to visibilityPopUpVisibility

Stage of the pop-up's life: not shown yet, visible, or hidden.

onHideSubjectCopy link to onHideSubjectSubject<void>

Subject for notifying that the tooltip has been hidden from the view

hide()Copy link to 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.

Parameters
delaynumber

The delay in milliseconds before hiding the popup.

afterHidden()Copy link to afterHidden()Observable<void>

Returns an observable that notifies when the tooltip has been hidden from view.

setHovered()Copy link to setHovered()void

Records whether the pointer is over the pop-up, and lets the trigger re-evaluate its delayed hide.

afterShowAnimation()Copy link to 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()Copy link to addEventListenerForHide()void

Binds the mouseleave hide listener on the pop-up element, at most once per instance.

KbqPopUpTrigger

directiveCopy link to KbqPopUpTrigger

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;
}
isOpenCopy link to isOpenboolean

Whether the pop-up overlay is currently open.

isAttachedCopy link to 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.

openedChangeCopy link to openedChangeObservable<boolean>

Emits true when the pop-up opens and false when it closes. Part of the KbqSiblingPopup contract.

arrowCenteredCopy link to arrowCenteredboolean

Whether the arrow points at the origin center while the panel keeps its placement. Defaults to false.

setHovered()Copy link to setHovered()void

Records whether the pointer is over the trigger.

updateOrigin()Copy link to 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.

KbqReadStateDirective

directiveCopy link to KbqReadStateDirective

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;
}
timestampCopy link to timestampnumber | undefined

Start of the earliest dwell still in progress, or undefined while the host is neither hovered nor focused.

timeToReadCopy link to timeToReadnumber

How long (ms) the user has to dwell on the host before it counts as read.

startDwell()Copy link to startDwell()void

Starts measuring a dwell on one channel. Re-entering the same one keeps its earliest start.

endDwell()Copy link to 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.

Parameters
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.

KbqSelectFooter

directiveCopy link to KbqSelectFooter
@Directive({ selector: 'kbq-select-footer, [kbq-select-footer]' })
class KbqSelectFooter {}

KbqSelectFooterItem

directiveCopy link to KbqSelectFooterItem

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 {}

KbqSelectMatcher

directiveCopy link to KbqSelectMatcher
@Directive({ selector: 'kbq-select-matcher, [kbq-select-matcher]' })
class KbqSelectMatcher {
    readonly useDefaultHandlers = input<boolean>(true);
}

KbqSelectSearch

directiveCopy link to KbqSelectSearch
@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;
}

KbqSelectSearchEmptyResult

directiveCopy link to KbqSelectSearchEmptyResult
@Directive({
    selector: '[kbq-select-search-empty-result]',
    exportAs: 'kbqSelectSearchEmptyResult'
})
class KbqSelectSearchEmptyResult {}

KbqSelectTrigger

directiveCopy link to KbqSelectTrigger
@Directive({ selector: 'kbq-select-trigger, [kbq-select-trigger]' })
class KbqSelectTrigger {}

KbqStateSaving

directiveCopy link to KbqStateSaving

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;
}
useStateSavinginputCopy link to 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.

stateSavingKeyinputCopy link to 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.

keyChangesoutputCopy link to 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.

hostCopy link to 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.

stateCopy link to stateunknown

The state last read from or written to the store, or null when there is none.

nameCopy link to namestring

How the host is named in dev-mode warnings: its tag, which is what the author sees in the markup.

keyCopy link to 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.

enabledCopy link to enabledboolean

Whether this host persists — its own useStateSaving, not the application-wide switch.

read()Copy link to 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()Copy link to 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()Copy link to 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()Copy link to applying()R

Runs apply with write() suppressed, and nests safely. Restored state goes through the component's own setters, which persist as they go.

AbsoluteDateFormatterImpurePipe

pipeDeprecatedCopy link to AbsoluteDateFormatterImpurePipe

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;
}

AbsoluteDateFormatterPipe

pipeDeprecatedCopy link to AbsoluteDateFormatterPipe

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;
}

AbsoluteDateShortFormatterImpurePipe

pipeDeprecatedCopy link to AbsoluteDateShortFormatterImpurePipe

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;
}

AbsoluteDateShortFormatterPipe

pipeDeprecatedCopy link to AbsoluteDateShortFormatterPipe

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;
}

AbsoluteDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to AbsoluteDateTimeFormatterImpurePipe

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;
}

AbsoluteDateTimeFormatterPipe

pipeDeprecatedCopy link to AbsoluteDateTimeFormatterPipe

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;
}

AbsoluteShortDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to AbsoluteShortDateTimeFormatterImpurePipe

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;
}

AbsoluteShortDateTimeFormatterPipe

pipeDeprecatedCopy link to AbsoluteShortDateTimeFormatterPipe

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;
}

DurationLongFormatterImpurePipe

pipeDeprecatedCopy link to DurationLongFormatterImpurePipe

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;
}

DurationLongFormatterPipe

pipeDeprecatedCopy link to DurationLongFormatterPipe

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;
}

DurationShortestFormatterImpurePipe

pipeDeprecatedCopy link to DurationShortestFormatterImpurePipe

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;
}

DurationShortestFormatterPipe

pipeDeprecatedCopy link to DurationShortestFormatterPipe

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;
}

DurationShortFormatterImpurePipe

pipeDeprecatedCopy link to DurationShortFormatterImpurePipe

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;
}

DurationShortFormatterPipe

pipeDeprecatedCopy link to DurationShortFormatterPipe

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;
}

KbqAbsoluteLongDatePipe

pipeCopy link to KbqAbsoluteLongDatePipe
@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;
}

KbqAbsoluteLongDateTimePipe

pipeCopy link to KbqAbsoluteLongDateTimePipe
@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;
}

KbqAbsoluteShortDatePipe

pipeCopy link to KbqAbsoluteShortDatePipe
@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;
}

KbqAbsoluteShortDateTimePipe

pipeCopy link to KbqAbsoluteShortDateTimePipe
@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;
}

KbqDataSizePipe

pipeCopy link to KbqDataSizePipe
@Pipe({ name: 'kbqDataSize', pure: false })
class KbqDataSizePipe implements PipeTransform {
    transform(
        source: number,
        precision?: number,
        unitSystemName?: KbqMeasurementSystemType,
        locale?: string
    ): string;
}
transform()Copy link to transform()string

Transforms bytes into localized size string

KbqDecimalPipe

pipeCopy link to KbqDecimalPipe
@Pipe({ name: 'kbqNumber', pure: false })
class KbqDecimalPipe implements KbqNumericPipe, PipeTransform {
    transform(
        value: any,
        digitsInfo?: string,
        locale?: string
    ): string | null;
}
transform()Copy link to transform()string | null
Parameters
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.

KbqDurationLongPipe

pipeCopy link to KbqDurationLongPipe

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.

Example
{{ [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;
}

KbqDurationShortestPipe

pipeCopy link to KbqDurationShortestPipe

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.

Example
{{ [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;
}

KbqDurationShortPipe

pipeCopy link to KbqDurationShortPipe

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.

Example
{{ [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;
}

KbqHighlightBackgroundPipe

pipeCopy link to KbqHighlightBackgroundPipe
@Pipe({ name: 'kbqHighlightBackground' })
class KbqHighlightBackgroundPipe implements PipeTransform {
    transform(
        value: unknown,
        keyword: unknown,
        foldDiacritics?: boolean
    ): string;
}

KbqHighlightBoldPipe

pipeCopy link to KbqHighlightBoldPipe

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()Copy link to 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.

KbqHighlightPipe

pipeDeprecatedCopy link to KbqHighlightPipe

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;
}

KbqRangeLongDatePipe

pipeCopy link to KbqRangeLongDatePipe
@Pipe({ name: 'kbqRangeLongDate', pure: false })
class KbqRangeLongDatePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, []> implements PipeTransform {
    transform(value: D[] | string[] | null | undefined): string;
}

KbqRangeLongDateTimePipe

pipeCopy link to KbqRangeLongDateTimePipe
@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;
}

KbqRangeMiddleDateTimePipe

pipeCopy link to KbqRangeMiddleDateTimePipe
@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;
}

KbqRangeShortDatePipe

pipeCopy link to KbqRangeShortDatePipe
@Pipe({ name: 'kbqRangeShortDate', pure: false })
class KbqRangeShortDatePipe<D> extends BaseLocaleAwareFormatterPipe<D, D[] | string[] | null | undefined, []> implements PipeTransform {
    transform(value: D[] | string[] | null | undefined): string;
}

KbqRangeShortDateTimePipe

pipeCopy link to KbqRangeShortDateTimePipe
@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;
}

KbqRelativeLongDatePipe

pipeCopy link to KbqRelativeLongDatePipe
@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;
}

KbqRelativeLongDateTimePipe

pipeCopy link to KbqRelativeLongDateTimePipe
@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;
}

KbqRelativeShortDatePipe

pipeCopy link to KbqRelativeShortDatePipe
@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;
}

KbqRelativeShortDateTimePipe

pipeCopy link to KbqRelativeShortDateTimePipe
@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;
}

KbqRoundDecimalPipe

pipeCopy link to KbqRoundDecimalPipe
@Pipe({ name: 'kbqRoundNumber', pure: false })
class KbqRoundDecimalPipe implements PipeTransform {
    transform(value: any, locale?: string): any;
}

KbqTableNumberPipe

pipeCopy link to KbqTableNumberPipe
@Pipe({ name: 'kbqTableNumber', pure: false })
class KbqTableNumberPipe implements KbqNumericPipe, PipeTransform {
    transform(
        value: any,
        digitsInfo?: string,
        locale?: string
    ): string | null;
}
transform()Copy link to transform()string | null
Parameters
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.

RangeDateFormatterImpurePipe

pipeDeprecatedCopy link to RangeDateFormatterImpurePipe

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;
}

RangeDateFormatterPipe

pipeDeprecatedCopy link to RangeDateFormatterPipe

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;
}

RangeDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to RangeDateTimeFormatterImpurePipe

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;
}

RangeDateTimeFormatterPipe

pipeDeprecatedCopy link to RangeDateTimeFormatterPipe

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;
}

RangeMiddleDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to RangeMiddleDateTimeFormatterImpurePipe

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;
}

RangeMiddleDateTimeFormatterPipe

pipeDeprecatedCopy link to RangeMiddleDateTimeFormatterPipe

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;
}

RangeShortDateFormatterImpurePipe

pipeDeprecatedCopy link to RangeShortDateFormatterImpurePipe

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;
}

RangeShortDateFormatterPipe

pipeDeprecatedCopy link to RangeShortDateFormatterPipe

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;
}

RangeShortDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to RangeShortDateTimeFormatterImpurePipe

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;
}

RangeShortDateTimeFormatterPipe

pipeDeprecatedCopy link to RangeShortDateTimeFormatterPipe

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;
}

RelativeDateFormatterImpurePipe

pipeDeprecatedCopy link to RelativeDateFormatterImpurePipe

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;
}

RelativeDateFormatterPipe

pipeDeprecatedCopy link to RelativeDateFormatterPipe

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;
}

RelativeDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to RelativeDateTimeFormatterImpurePipe

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;
}

RelativeDateTimeFormatterPipe

pipeDeprecatedCopy link to RelativeDateTimeFormatterPipe

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;
}

RelativeShortDateFormatterImpurePipe

pipeDeprecatedCopy link to RelativeShortDateFormatterImpurePipe

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;
}

RelativeShortDateFormatterPipe

pipeDeprecatedCopy link to RelativeShortDateFormatterPipe

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;
}

RelativeShortDateTimeFormatterImpurePipe

pipeDeprecatedCopy link to RelativeShortDateTimeFormatterImpurePipe

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;
}

RelativeShortDateTimeFormatterPipe

pipeDeprecatedCopy link to RelativeShortDateTimeFormatterPipe

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;
}

DateFormatter

serviceCopy link to DateFormatter
@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()Copy link to relativeDate()string
Parameters
dateD

date

templateFormatterRelativeTemplate

template

seconds?boolean

use seconds

milliseconds?boolean

use milliseconds

sentenceStart?boolean

whether the formatted value starts a sentence

Returns
string

relative date by template

relativeShortDate()Copy link to relativeShortDate()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in short format

relativeLongDate()Copy link to relativeLongDate()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in long format

relativeShortDateTime()Copy link to relativeShortDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in short format with time

relativeLongDateTime()Copy link to relativeLongDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in long format with time

absoluteDate()Copy link to absoluteDate()string
Parameters
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()Copy link to absoluteShortDate()string
Parameters
dateD

date

currYear?boolean

should the year be shown forced

Returns
string

absolute date in short format

absoluteShortDateTime()Copy link to absoluteShortDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

absolute date in short format with time

absoluteLongDate()Copy link to absoluteLongDate()string
Parameters
dateD

date

currYear?boolean

should the year be shown forced

Returns
string

absolute date in long format

absoluteLongDateTime()Copy link to absoluteLongDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

absolute date in long format with time

openedRangeDate()Copy link to openedRangeDate()string
Parameters
startDateD | null

start date

endDateD | null

end date

templateFormatterRangeTemplate

template

Returns
string

opened date

openedRangeDateTime()Copy link to openedRangeDateTime()string
Parameters
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

Returns
string

opened date

rangeDate()Copy link to rangeDate()string
Parameters
startDateD

start date

endDateD

end date

templateFormatterRangeTemplate

template

Returns
string

range date in template format

rangeDateTime()Copy link to rangeDateTime()string
Parameters
startDateD

start date

endDateD

end date

templateFormatterRangeTemplate

template

seconds?boolean

use seconds

milliseconds?boolean

use milliseconds

Returns
string

range date in template format with time

rangeShortDate()Copy link to rangeShortDate()string
Parameters
startDateD | null

start date

endDate?D

end date

Returns
string

range date in short format

rangeShortDateTime()Copy link to rangeShortDateTime()string
Parameters
startDateD | null

start date

endDate?D | null

end date

options?DateTimeOptions

DateTimeOptions

Returns
string

range date in short format with time

rangeLongDate()Copy link to rangeLongDate()string
Parameters
startDateD | null

start date

endDate?D | null

end date

Returns
string

range date in long format

rangeLongDateTime()Copy link to rangeLongDateTime()string
Parameters
startDateD | null

start date

endDate?D

end date

options?DateTimeOptions

DateTimeOptions

Returns
string

range date in long format with time

rangeMiddleDateTime()Copy link to rangeMiddleDateTime()string
Parameters
startDateD

start date

endDateD

end date

options?DateTimeOptions

DateTimeOptions

Returns
string

range middle date with time

durationShortest()Copy link to durationShortest()string
Parameters
startDateD

start date

endDateD

end date

seconds?boolean

add seconds to formatted value

milliseconds?boolean

add milliseconds to formatted value

Returns
string

formatted duration as string like 48:02:25

duration()Copy link to duration()string
Parameters
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

Returns
string

formatted duration as string

ErrorStateMatcher

serviceCopy link to ErrorStateMatcher

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;
}

KbqDateTimezoneService

serviceCopy link to KbqDateTimezoneService

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;
}
timezoneCopy link to timezoneSignal<KbqTimezoneLike>

Active time zone.

changesCopy link to 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()Copy link to setTimezone()void

Activates a time zone.

offsetAt()Copy link to 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.

KbqLocaleService

serviceCopy link to KbqLocaleService
@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]>;
}
changesCopy link to 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.

localesCopy link to localesKbqLocaleDataMap

Every registered locale keyed by id, plus the items list used to render locale pickers.

localeIdCopy link to localeIdSignal<KbqLocaleIdLike>

Active locale id.

dataCopy link to dataSignal<KbqLocaleData>

Locale data of the active locale. Always complete — see addLocale.

itemsCopy link to itemsSignal<KbqLocaleItem[]>

Registered locales, for rendering a locale picker.

idDeprecatedCopy link to idstring

Use the localeId signal. Will be removed in 22.0.0.

currentDeprecatedCopy link to currentKbqLocaleData

Use the data signal. Will be removed in 22.0.0.

setLocale()Copy link to setLocale()void

Activates a locale.

addLocale()Copy link to 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()Copy link to 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()Copy link to params()Signal<KbqLocaleData[K]>

Reactive counterpart of getParams: re-emits whenever the locale changes.

KbqLocalStorageStateStore

serviceCopy link to KbqLocalStorageStateStore

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;
}
changesCopy link to 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.

KbqMeasureScrollbarService

serviceDeprecatedCopy link to KbqMeasureScrollbarService

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;
}

KbqSessionStorageStateStore

serviceCopy link to KbqSessionStorageStateStore

KbqStateStore implementation persisting into sessionStorage, so the state lives for the tab session instead of until it expires.

Example
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;
}
changesCopy link to 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.

KbqShadowDomOverlayContainer

serviceCopy link to KbqShadowDomOverlayContainer

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()Copy link to 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.

Returns
HTMLElement

the container element

KbqStateSavingService

serviceCopy link to KbqStateSavingService

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.

Example
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;
}
changesCopy link to 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()Copy link to isEnabled()boolean

Whether components are allowed to persist.

setEnabled()Copy link to 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()Copy link to components()readonly KbqStateSavingRef[]

Every live component that persists state, in registration order.

keys()Copy link to 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()Copy link to 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()Copy link to 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()Copy link to 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()Copy link to remove()void

Removes the entry stored under the key, in the root store and in any live component's own.

clear()Copy link to clear()void

Removes every entry, claimed and orphaned alike.

clearOrphans()Copy link to clearOrphans()void

Removes only the entries no live component claims, leaving what is in use alone.

KbqThemeCookieStore

serviceCopy link to KbqThemeCookieStore

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;
}

KbqThemeLocalStorageStore

serviceCopy link to KbqThemeLocalStorageStore

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;
}
changesCopy link to 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.

KbqThemeService

serviceCopy link to KbqThemeService

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.

Example
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;
}
themesCopy link to themesSignal<T[]>

Themes available to select from. Set via setThemes() to register a fully custom set.

modeCopy link to modeSignal<KbqThemeMode>

Selected fixed 'light'/'dark' mode, or 'auto' to follow the OS color scheme. Set via setMode().

staticThemeCopy link to 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.

currentThemeCopy link to currentThemeSignal<T | null>

The static theme if staticTheme() is set, otherwise the theme whose colorScheme matches resolvedMode().

colorSchemeCopy link to colorSchemeSignal<KbqThemeColorScheme>

currentTheme()'s polarity, falling back to resolvedMode() if nothing matched.

setThemes()Copy link to setThemes()void

Replaces the registered theme set with a fully custom one.

setMode()Copy link to 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()Copy link to selectTheme()void

Pins a theme by name out of themes(), or clears the pin when name is null.

toggle()Copy link to toggle()void

Switches between 'light'/'dark', based on colorScheme() — the current theme's actual polarity.

KbqWebStorageStateStore

serviceCopy link to KbqWebStorageStateStore

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;
}
changesCopy link to 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()Copy link to getStorage()Storage

The storage this store reads from and writes to.

ShowOnControlDirtyErrorStateMatcher

serviceCopy link to ShowOnControlDirtyErrorStateMatcher

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;
}

ShowOnFormSubmitErrorStateMatcher

serviceCopy link to ShowOnFormSubmitErrorStateMatcher

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;
}

ShowRequiredOnSubmitErrorStateMatcher

serviceCopy link to ShowRequiredOnSubmitErrorStateMatcher

Error state matcher with split behavior based on error's type:

  • required errors are shown only after the form is submitted.
  • All other errors are shown as soon as the control is invalid and touched.
@Injectable()
class ShowRequiredOnSubmitErrorStateMatcher implements ErrorStateMatcher {
    isErrorState(
        control: AbstractControl | null,
        form: FormGroupDirective | NgForm | null
    ): boolean;
}

ActiveDescendantKeyManager

classCopy link to ActiveDescendantKeyManager
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;
}
tabOutCopy link to tabOutSubject<void>

Stream that emits any time the TAB key is pressed, so components can react when focus is shifted off of the list.

changeCopy link to changeSubject<number>

Stream that emits whenever the active item of the list manager changes.

setActiveItem()Copy link to 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.

Parameters
indexnumber

Index of the item to be set as active.

isTyping()Copy link to isTyping()boolean

Gets whether the user is currently typing into the manager using the typeahead feature.

withAllowedModifierKeys()Copy link to 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()Copy link to 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()Copy link to skipPredicate()this

Sets the predicate function that determines which items should be skipped by the list key manager.

Parameters
predicate(item: T) => boolean

Function that determines whether the given item should be skipped.

withVerticalOrientation()Copy link to withVerticalOrientation()this

Configures whether the key manager should be able to move the selection vertically.

Parameters
enabled?boolean

Whether vertical selection should be enabled.

withHorizontalOrientation()Copy link to withHorizontalOrientation()this

Configures the key manager to move the selection horizontally. Passing in null will disable horizontal movement.

Parameters
direction'ltr' | 'rtl' | null

Direction in which the selection can be moved.

withTypeAhead()Copy link to withTypeAhead()this

Turns on typeahead mode which allows users to set the active item by typing.

Parameters
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()Copy link to withHomeAndEnd()this

Configures the key manager to activate the first and last items respectively when the Home or End key is pressed.

Parameters
enabled?boolean

Whether pressing the Home or End key activates the first/last item.

onKeydown()Copy link to onKeydown()void

Sets the active item depending on the key event passed in.

Parameters
eventKeyboardEvent

Keyboard event to be used for determining which element should be active.

updateActiveItem()Copy link to updateActiveItem()void

Allows setting the active without any other effects.

Parameters
indexnumber

Index of the item to be set as active.

BaseFormatterPipe

classDeprecatedCopy link to BaseFormatterPipe

The base of the deprecated unprefixed date pipes. Will be removed in 22.0.0.

class BaseFormatterPipe<D> {}

DateAdapter

abstract classCopy link to DateAdapter
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;
}
localeChangesCopy link to localeChangesObservable<any>

A stream that emits when the locale changes.

localeCopy link to localeany

The locale to use for all dates.

getYear()Copy link to getYear()number

Gets the year component of the given date.

Parameters
dateD

The date to extract the year from.

Returns
number

The year component.

getMonth()Copy link to getMonth()number

Gets the month component of the given date.

Parameters
dateD

The date to extract the month from.

Returns
number

The month component (0-indexed, 0 = January).

getDate()Copy link to getDate()number

Gets the date of the month component of the given date.

Parameters
dateD

The date to extract the date of the month from.

Returns
number

The month component (1-indexed, 1 = first of month).

getDayOfWeek()Copy link to getDayOfWeek()number

Gets the day of the week component of the given date.

Parameters
dateD

The date to extract the day of the week from.

Returns
number

The month component (0-indexed, 0 = Sunday).

getHours()Copy link to getHours()number

Gets the hours component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The hours component in 24h format.

getMinutes()Copy link to getMinutes()number

Gets the minutes component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The minutes component

getSeconds()Copy link to getSeconds()number

Gets the seconds component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The seconds component

getMilliseconds()Copy link to getMilliseconds()number

Gets the milliseconds component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The milliseconds component

getTime()Copy link to getTime()number

Gets returns the number of milliseconds since the Unix Epoch of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The milliseconds

getMonthNames()Copy link to getMonthNames()string[]

Gets a list of names for the months.

Parameters
style"short" | "long" | "narrow"

The naming style (e.g. long = 'January', short = 'Jan', narrow = 'J').

Returns
string[]

An ordered list of all month names, starting with January.

getDateNames()Copy link to getDateNames()string[]

Gets a list of names for the dates of the month.

Returns
string[]

An ordered list of all date of the month names, starting with '1'.

getDayOfWeekNames()Copy link to getDayOfWeekNames()string[]

Gets a list of names for the days of the week.

Parameters
style"short" | "long" | "narrow"

The naming style (e.g. long = 'Sunday', short = 'Sun', narrow = 'S').

Returns
string[]

An ordered list of all weekday names, starting with Sunday.

getYearName()Copy link to getYearName()string

Gets the name for the year of the given date.

Parameters
dateD

The date to get the year name for.

Returns
string

The name of the given year (e.g. '2017').

getFirstDayOfWeek()Copy link to getFirstDayOfWeek()number

Gets the first day of the week.

Returns
number

The first day of the week (0-indexed, 0 = Sunday).

getNumDaysInMonth()Copy link to getNumDaysInMonth()number

Gets the number of days in the month of the given date.

Parameters
dateD

The date whose month should be checked.

Returns
number

The number of days in the month of the given date.

clone()Copy link to clone()D

Clones the given date.

Parameters
dateD

The date to clone

Returns
D

A new date equal to the given date.

createDate()Copy link to createDate()D

Creates a date with the given year, month, and date. Does not allow over/under-flow of the month and date.

Parameters
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.

Returns
D

The new date, or null if invalid.

createDateTime()Copy link to 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.

Parameters
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.

Returns
D

The new date, or null if invalid.

today()Copy link to today()D

Gets today's date.

Returns
D

Today's date.

parse()Copy link to parse()D | null

Parses a date from a user-provided value.

Parameters
valueany

The value to parse.

parseFormatany

The expected format of the value being parsed (type is implementation-dependent).

Returns
D | null

The parsed date.

format()Copy link to format()string

Formats a date as a string according to the given format.

Parameters
dateD

The value to format.

displayFormatany

The format to use to display the date as a string.

Returns
string

The formatted date string.

addCalendarUnits()Copy link to addCalendarUnits()D

Adds calendar units to a date.

Parameters
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

Returns
D

A new date with the specified units added

addCalendarYears()Copy link to 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.

Parameters
dateD

The date to add years to.

yearsnumber

The number of years to add (maybe negative).

Returns
D

A new date equal to the given one with the specified number of years added.

addCalendarMonths()Copy link to 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.

Parameters
dateD

The date to add months to.

monthsnumber

The number of months to add (may be negative).

Returns
D

A new date equal to the given one with the specified number of months added.

addCalendarDays()Copy link to 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.

Parameters
dateD

The date to add days to.

daysnumber

The number of days to add (may be negative).

Returns
D

A new date equal to the given one with the specified number of days added.

toIso8601()Copy link to 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>.

Parameters
dateD

The date to get the ISO date string for.

Returns
string

The ISO date string.

isDateInstance()Copy link to isDateInstance()boolean

Checks whether the given object is considered a date instance by this DateAdapter.

Parameters
objany

The object to check

Returns
boolean

Whether the object is a date instance.

isValid()Copy link to isValid()boolean

Checks whether the given date is valid.

Parameters
dateD

The date to check.

Returns
boolean

Whether the date is valid.

invalid()Copy link to invalid()D

Gets date instance that is not valid.

Returns
D

An invalid date.

startOf()Copy link to startOf()D

"Set" given date to the beginning of the given unit.

deserialize()Copy link to 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.

Parameters
valueany

The value to be deserialized into a date object.

Returns
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()Copy link to setLocale()void

Sets the locale used for all dates.

Parameters
localeany

The new locale.

compareDate()Copy link to compareDate()number

Compares two dates.

Parameters
firstD

The first date to compare.

secondD

The second date to compare.

Returns
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()Copy link to compareDateTime()number

Compares two dates.

Parameters
firstD

The first date to compare.

secondD

The second date to compare.

Returns
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()Copy link to sameDate()boolean

Checks if two dates are equal.

Parameters
firstD | null

The first date to check.

secondD | null

The second date to check.

Returns
boolean

Whether the two dates are equal. Null dates are considered equal to other null dates.

clampDate()Copy link to clampDate()D

Clamp the given date between min and max dates.

Parameters
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.

Returns
D

min if date is less than min, max if date is greater than max, otherwise date.

EmptyFocusTrapStrategy

classCopy link to EmptyFocusTrapStrategy
class EmptyFocusTrapStrategy implements FocusTrapInertStrategy {
    preventFocus(): void;
    allowFocus(): void;
}

FileValidators

classCopy link to FileValidators

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()Copy link to maxFileSize()ValidatorFn

Validator that checks if the file size is less than or equal to the provided maxSize.

Parameters
maxSizenumber

The maximum allowed file size in bytes.

Returns
ValidatorFn

A ValidatorFn function that checks the file size.

Usage:

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()Copy link to isCorrectExtension()ValidatorFn

Validator that checks whether file's name or MIME type matches one of the accepted extensions or MIME types.

Parameters
accept(`.${string}` | `${string}/${string}`)[]

Array of allowed file extensions or MIME types.

Returns
ValidatorFn

ValidatorFn that returns validation error if file type is not accepted, or null otherwise.

FocusKeyManager

classCopy link to FocusKeyManager
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;
}
tabOutCopy link to tabOutSubject<void>

Stream that emits any time the TAB key is pressed, so components can react when focus is shifted off of the list.

changeCopy link to changeSubject<number>

Stream that emits whenever the active item of the list manager changes.

setActiveItem()Copy link to setActiveItem()void

Sets the active item or index to the item that is specified and focuses it.

Parameters
itemnumber | T

Item to be set as active.

setFocusOrigin()Copy link to setFocusOrigin()this

Sets the focus origin that will be passed in to the items for any subsequent focus calls.

Parameters
originFocusOrigin

Focus origin to be used when focusing items.

getFocusOrigin()DeprecatedCopy link to getFocusOrigin()FocusOrigin

Keep the origin you pass to setFocusOrigin(). Will be removed in 22.0.0.

isTyping()Copy link to isTyping()boolean

Gets whether the user is currently typing into the manager using the typeahead feature.

withAllowedModifierKeys()Copy link to 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()Copy link to 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()Copy link to skipPredicate()this

Sets the predicate function that determines which items should be skipped by the list key manager.

Parameters
predicate(item: T) => boolean

Function that determines whether the given item should be skipped.

withVerticalOrientation()Copy link to withVerticalOrientation()this

Configures whether the key manager should be able to move the selection vertically.

Parameters
enabled?boolean

Whether vertical selection should be enabled.

withHorizontalOrientation()Copy link to withHorizontalOrientation()this

Configures the key manager to move the selection horizontally. Passing in null will disable horizontal movement.

Parameters
direction'ltr' | 'rtl' | null

Direction in which the selection can be moved.

withTypeAhead()Copy link to withTypeAhead()this

Turns on typeahead mode which allows users to set the active item by typing.

Parameters
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()Copy link to withHomeAndEnd()this

Configures the key manager to activate the first and last items respectively when the Home or End key is pressed.

Parameters
enabled?boolean

Whether pressing the Home or End key activates the first/last item.

onKeydown()Copy link to onKeydown()void

Sets the active item depending on the key event passed in.

Parameters
eventKeyboardEvent

Keyboard event to be used for determining which element should be active.

updateActiveItem()Copy link to updateActiveItem()void

Allows setting the active without any other effects.

Parameters
indexnumber

Index of the item to be set as active.

KbqAutoHideScrollStrategy

classCopy link to KbqAutoHideScrollStrategy

Scroll strategy that repositions the overlay on scroll and reports when the tracked element moves outside its boundary:

  • With originElement: tracks the origin against each ancestor CdkScrollable container.
  • Without originElement: tracks the overlay panel against the viewport.

Two ways to react to the out-of-bounds event, usable independently or together:

  • Subscribe to 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).
  • Pass 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;
}
hideCopy link to hideObservable<void>

Emits once when the tracked element scrolls outside its boundary.

enable()Copy link to enable()void

Subscribes to scroll events and starts repositioning / out-of-bounds detection.

disable()Copy link to disable()void

Unsubscribes from scroll events.

detach()Copy link to detach()void

Disables the strategy and completes hide.

KbqOptionBase

abstract classCopy link to KbqOptionBase
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()Copy link to emitSelectionChangeEvent()void

Emits the selection change event.

KbqOptionSelectionChange

classCopy link to KbqOptionSelectionChange

Event object emitted by KbqOption when selected or deselected.

class KbqOptionSelectionChange<T = KbqOption> {
    source: T;
    isUserInput: boolean;
    constructor(source: T, isUserInput?: boolean);
}

KbqSelectAllEvent

classCopy link to KbqSelectAllEvent

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);
}
sourceCopy link to sourceS

Component that emitted the event.

optionsCopy link to optionsT[]

The selectable options affected by the toggle.

selectedCopy link to selectedboolean

true when all options were selected, false when all were deselected.

constructor()Copy link to constructor()
Parameters
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.

KbqVirtualOption

classCopy link to KbqVirtualOption
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()Copy link to emitSelectionChangeEvent()void

Emits the selection change event.

ListKeyManager

classCopy link to ListKeyManager

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;
}
tabOutCopy link to tabOutSubject<void>

Stream that emits any time the TAB key is pressed, so components can react when focus is shifted off of the list.

changeCopy link to changeSubject<number>

Stream that emits whenever the active item of the list manager changes.

isTyping()Copy link to isTyping()boolean

Gets whether the user is currently typing into the manager using the typeahead feature.

withAllowedModifierKeys()Copy link to 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()Copy link to 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()Copy link to skipPredicate()this

Sets the predicate function that determines which items should be skipped by the list key manager.

Parameters
predicate(item: T) => boolean

Function that determines whether the given item should be skipped.

withVerticalOrientation()Copy link to withVerticalOrientation()this

Configures whether the key manager should be able to move the selection vertically.

Parameters
enabled?boolean

Whether vertical selection should be enabled.

withHorizontalOrientation()Copy link to withHorizontalOrientation()this

Configures the key manager to move the selection horizontally. Passing in null will disable horizontal movement.

Parameters
direction'ltr' | 'rtl' | null

Direction in which the selection can be moved.

withTypeAhead()Copy link to withTypeAhead()this

Turns on typeahead mode which allows users to set the active item by typing.

Parameters
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()Copy link to withHomeAndEnd()this

Configures the key manager to activate the first and last items respectively when the Home or End key is pressed.

Parameters
enabled?boolean

Whether pressing the Home or End key activates the first/last item.

setActiveItem()Copy link to setActiveItem()void

Sets the active item to the item at the index specified.

Parameters
indexnumber | T

The index of the item to be set as active or item The item to be set as active.

onKeydown()Copy link to onKeydown()void

Sets the active item depending on the key event passed in.

Parameters
eventKeyboardEvent

Keyboard event to be used for determining which element should be active.

updateActiveItem()Copy link to updateActiveItem()void

Allows setting the active without any other effects.

Parameters
indexnumber

Index of the item to be set as active.

PasswordValidators

classCopy link to PasswordValidators

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()Copy link to minLength()ValidatorFn

Validator that requires the control's value length to be at least min characters.

min - number of characters.

Usage:

const control = new FormControl('password', PasswordValidators.minLength(10));
console.log(control.errors); // {minLength: {min: 10, actual: 8}}
maxLength()Copy link to maxLength()ValidatorFn

Validator that requires the control's value length to be at most max characters.

max - number of characters.

Usage:

const control = new FormControl('password', PasswordValidators.maxLength(6));
console.log(control.errors); // {maxLength: {max: 6, actual: 8}}
minUppercase()Copy link to minUppercase()ValidatorFn

Validator that requires the control's value to be at least min uppercase characters.

min - number of uppercase characters.

Usage:

const control = new FormControl('Password', PasswordValidators.minUppercase(2));
console.log(control.errors); // {minUppercase: {min: 2, actual: 1}}
minLowercase()Copy link to minLowercase()ValidatorFn

Validator that requires the control's value to be at least min lowercase characters.

min - number of lowercase characters.

Usage:

const control = new FormControl('PASSWORD', PasswordValidators.minLowercase());
console.log(control.errors); // {minLowercase: {min: 1, actual: 0}}
minNumber()Copy link to minNumber()ValidatorFn

Validator that requires the control's value to be at least min number characters.

min - number of number characters.

Usage:

const control = new FormControl('passw0rd', PasswordValidators.minNumber(2));
console.log(control.errors); // {minNumber: {min: 2, actual: 1}}
minSpecial()Copy link to minSpecial()ValidatorFn

Validator that requires the control's value to be at least min special characters.

min - number of special characters.

Special characters:

['!','@','#','$','%','^','&','*']

Usage:

const control = new FormControl('pa$sword', PasswordValidators.minSpecial(2));
console.log(control.errors); // {minSpecial: {min: 2, actual: 1}}

ShowOnCrossFieldErrorStateMatcher

classCopy link to ShowOnCrossFieldErrorStateMatcher

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.

Usage:

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.

Combining with another matcher

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()Copy link to 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.

checkAndNormalizeLocalizedNumber

functionCopy link to checkAndNormalizeLocalizedNumber

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;

createFakeEvent

functionCopy link to createFakeEvent

Creates a fake event object with any desired event type.

function createFakeEvent(
    type: string,
    canBubble?: boolean,
    cancelable?: boolean
): Event;

createKeyboardEvent

functionCopy link to createKeyboardEvent

Dispatches a keydown event from an element.

function createKeyboardEvent(
    type: string,
    keyCode: number,
    target?: Element,
    key?: string
): any;

createMouseEvent

functionCopy link to createMouseEvent

Creates a browser MouseEvent with the specified options.

function createMouseEvent(
    type: string,
    x?: number,
    y?: number,
    button?: number
): MouseEvent;

createSearchPredicate

functionCopy link to createSearchPredicate

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;

createTouchEvent

functionCopy link to createTouchEvent

Creates a browser TouchEvent with the specified pointer coordinates.

function createTouchEvent(
    type: string,
    pageX?: number,
    pageY?: number
): UIEvent;

dispatchEvent

functionCopy link to dispatchEvent

Utility to dispatch any event on a Node.

function dispatchEvent(node: Node | Window, event: Event): Event;

dispatchFakeEvent

functionCopy link to dispatchFakeEvent

Shorthand to dispatch a fake event on a specified node.

function dispatchFakeEvent(
    node: Node | Window,
    type: string,
    canBubble?: boolean
): Event;

dispatchKeyboardEvent

functionCopy link to dispatchKeyboardEvent

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;

dispatchMouseEvent

functionCopy link to dispatchMouseEvent

Shorthand to dispatch a mouse event on the specified coordinates.

function dispatchMouseEvent(
    node: Node,
    type: string,
    x?: number,
    y?: number,
    event?: MouseEvent
): MouseEvent;

dispatchTouchEvent

functionCopy link to dispatchTouchEvent

Shorthand to dispatch a touch event on the specified coordinates.

function dispatchTouchEvent(
    node: Node,
    type: string,
    x?: number,
    y?: number
): Event;

escapeRegExp

functionCopy link to escapeRegExp

Escapes characters in the specified string that have special meaning in a regular expression.

function escapeRegExp(value: string): string;

findSearchMatchRanges

functionCopy link to findSearchMatchRanges

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]>;

formatNumberWithLocale

functionCopy link to formatNumberWithLocale

Formats a number value according to locale and formatting options

function formatNumberWithLocale(
    value: unknown,
    formatter: Intl.NumberFormat,
    options?: KbqNumberFormatOptions
): string;

getFormattedSizeParts

functionCopy link to getFormattedSizeParts

Converts a byte value into locale-independent file size parts: numeric value and unit abbreviation.

Example
getFormattedSizeParts(1500, 'SI'); // { value: "1.50", unit: "KB" }
function getFormattedSizeParts(
    value: number,
    system: KbqUnitSystem
): { value: string; unit: string };
Parameters
valuenumber

size in bytes.

systemKbqUnitSystem

unit system defining abbreviations and base scaling (SI/IEC).

Returns
{ value: string; unit: string }

Object with the formatted size info.

getSelectAllState

functionCopy link to getSelectAllState

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;

isBoolean

functionDeprecatedCopy link to isBoolean

Use typeof value === 'boolean'. Will be removed in 22.0.0.

function isBoolean(value: unknown): value is boolean;

isMac

functionCopy link to isMac

Whether the current platform is a Mac.

function isMac(): boolean;

KBQ_DEFAULT_LOCALE_DATA_FACTORY

functionCopy link to KBQ_DEFAULT_LOCALE_DATA_FACTORY
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; }; }; };

kbqAutoHideScrollStrategyFactory

functionCopy link to kbqAutoHideScrollStrategyFactory

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).

Example
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;

kbqDelayLoadingIndicator

functionCopy link to kbqDelayLoadingIndicator

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.

Example
readonly showIndicator$ = this.loading$.pipe(kbqDelayLoadingIndicator());
function kbqDelayLoadingIndicator(
    options?: KbqDelayLoadingIndicatorOptions
): MonoTypeOperatorFunction<boolean>;

kbqFocusOptionActionOnTab

functionCopy link to kbqFocusOptionActionOnTab

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;

kbqInjectLocaleConfiguration

functionCopy link to kbqInjectLocaleConfiguration

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]>;
Parameters
sectionK

Section of the locale data to read.

tokenInjectionToken<KbqLocaleData[K]>

Configuration token, whose factory supplies the default strings.

kbqInjectLocaleService

functionCopy link to kbqInjectLocaleService

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;

normalizeNumber

functionCopy link to normalizeNumber

Function that returns a string representation of a number without localized separators

function normalizeNumber(
    value: string | null | undefined,
    customConfig: Pick<KbqInputNumberLocaleConfiguration, 'fractionSeparator' | 'groupSeparator'>
): string;

normalizeSearchValue

functionCopy link to normalizeSearchValue

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;

patchElementFocus

functionCopy link to patchElementFocus

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;

resolveMultipleMode

functionCopy link to resolveMultipleMode

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;

shouldSelectSearchText

functionCopy link to shouldSelectSearchText

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;

toggleSelectAll

functionCopy link to toggleSelectAll

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[];
Returns
T[]

the items whose selected state actually flipped, in input order.

tokenizeSearchQuery

functionCopy link to tokenizeSearchQuery

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[];

typeInElement

functionCopy link to typeInElement

Focuses an input, sets its value and dispatches the input event, simulating the user typing.

function typeInElement(value: string, element: HTMLInputElement): void;
Parameters
valuestring

Value to be set on the input.

elementHTMLInputElement

Element onto which to set the value.

wrappedErrorMessage

functionCopy link to wrappedErrorMessage
function wrappedErrorMessage(e: Error): RegExp;

CrossFieldErrorScope

typeCopy link to CrossFieldErrorScope

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;

Highlightable

interfaceCopy link to Highlightable

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;
}
disabledoptionalCopy link to disabledboolean | Signal<boolean>

Whether the option is disabled. A signal lets an option expose disabled as an input().

IFocusableOption

interfaceCopy link to IFocusableOption

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;
}
disabledoptionalCopy link to disabledboolean | Signal<boolean>

Whether the option is disabled. A signal lets an option expose disabled as an input().

KbqA11yLocaleConfiguration

typeCopy link to KbqA11yLocaleConfiguration

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;
};
closeCopy link to 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.

saveCopy link to savestring

Confirm button of an inline edit.

savingCopy link to savingstring

Announced while an inline edit saves a value in the background.

saveFailedCopy link to saveFailedstring

Announced when a background save of an inline edit fails.

cancelCopy link to cancelstring

Discard button of an inline edit.

editCopy link to editstring

Name of the control that opens an inline edit's editor, when the host supplies none.

removeAllCopy link to removeAllstring

Button removing every notification at once.

removeCopy link to removestring

Button removing one selected value, followed by that value's own text.

breadcrumbsCopy link to breadcrumbsstring

Breadcrumbs navigation landmark, unless the consumer names it with an aria-label of its own.

expandBreadcrumbsCopy link to expandBreadcrumbsstring

Breadcrumbs button revealing the items hidden by overflow.

previousMonthCopy link to previousMonthstring

Calendar button switching to the previous month.

currentDateCopy link to currentDatestring

Calendar button switching back to the current date.

nextMonthCopy link to nextMonthstring

Calendar button switching to the next month.

clearCopy link to clearstring

Form field button that clears the control value.

showPasswordCopy link to showPasswordstring

Password form field button that reveals the password.

hidePasswordCopy link to hidePasswordstring

Password form field button that masks the password.

resizeColumnsCopy link to resizeColumnsstring

Separator that resizes the columns of a description list.

resizePanelsCopy link to resizePanelsstring

Separator that resizes the panels of a splitter.

toastRegionCopy link to toastRegionstring

Region holding the stack of toast notifications.

optionActionsCopy link to optionActionsstring

Trailing action button of a list or tree option.

progressBarCopy link to progressBarstring

Progress bar that carries neither an aria-label nor a projected [kbq-progress-bar-text].

KbqActionsPanelLocaleConfiguration

typeCopy link to KbqActionsPanelLocaleConfiguration

Locale configuration for KbqActionsPanelModule.

type KbqActionsPanelLocaleConfiguration = {
    closeTooltip: string;
};

KbqAnimationsConfig

interfaceCopy link to KbqAnimationsConfig

Configuration of the motion of Koobiq components.

interface KbqAnimationsConfig {
    animationsDisabled?: boolean;
}
animationsDisabledoptionalCopy link to animationsDisabledboolean

Whether components skip their enter, leave and state animations.

KbqAppSwitcherLocaleConfiguration

typeCopy link to KbqAppSwitcherLocaleConfiguration

Locale configuration for KbqAppSwitcherModule: the strings rendered by the app-switcher popup.

type KbqAppSwitcherLocaleConfiguration = {
    searchPlaceholder: string;
    searchEmptyResult: string;
    sitesHeader: string;
    clearSearch: string;
};
searchPlaceholderCopy link to searchPlaceholderstring

Placeholder and accessible name of the search field.

searchEmptyResultCopy link to searchEmptyResultstring

Message shown when no application matches the search query.

sitesHeaderCopy link to sitesHeaderstring

Heading above the list of other sites.

clearSearchCopy link to clearSearchstring

Accessible name of the button that clears the search field.

KbqAutoHideScrollStrategyConfig

interfaceCopy link to KbqAutoHideScrollStrategyConfig

Configuration options for KbqAutoHideScrollStrategy.

interface KbqAutoHideScrollStrategyConfig {
    originElement?: HTMLElement;
    scrollThrottle?: number;
}
originElementoptionalCopy link to originElementHTMLElement

Element whose position is tracked against ancestor scroll container boundaries. When omitted, the overlay panel is checked against the viewport instead.

scrollThrottleoptionalCopy link to scrollThrottlenumber

Scroll event throttle in ms. Defaults to 20.

KbqAutoHideScrollStrategyHooks

interfaceCopy link to KbqAutoHideScrollStrategyHooks

Lifecycle hooks for KbqAutoHideScrollStrategy, passed via kbqAutoHideScrollStrategyFactory.

interface KbqAutoHideScrollStrategyHooks {
    onHide?: () => void;
}
onHideoptionalCopy link to onHide() => void

Called (inside Angular zone) when the tracked element scrolls outside its scroll container boundary.

KbqBaseFileUploadLocaleConfiguration

interfaceCopy link to KbqBaseFileUploadLocaleConfiguration
interface KbqBaseFileUploadLocaleConfiguration {
    captionText: string;
    captionTextOnlyFolder: string;
    captionTextWithFolder: string;
    browseLink: string;
    browseLinkFolder: string;
    browseLinkFolderMixed?: string;
}

KbqCaretRect

interfaceCopy link to KbqCaretRect

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;
}
xCopy link to xnumber

Distance from the left edge of the viewport, in pixels.

yCopy link to ynumber

Distance from the top edge of the viewport, in pixels.

widthCopy link to widthnumber

Width of the selection, or 0 for a collapsed caret.

heightCopy link to heightnumber

Height of one line of text in the field.

KbqCheckableClickAction

typeCopy link to KbqCheckableClickAction

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;

KbqCheckableClickResult

interfaceCopy link to KbqCheckableClickResult

Result of resolving a click on a checkable control's native input. See KbqCheckable.resolveClick.

interface KbqCheckableClickResult {
    readonly shouldToggle: boolean;
    readonly shouldClearIndeterminate: boolean;
}
shouldToggleCopy link to shouldToggleboolean

Whether checked should be toggled and a change event emitted.

shouldClearIndeterminateCopy link to shouldClearIndeterminateboolean

Whether indeterminate should be cleared and an indeterminateChange event emitted.

KbqCheckedState

typeCopy link to KbqCheckedState

Tri-state checkbox values, as in aria-checked.

type KbqCheckedState = 'true' | 'false' | 'mixed';

KbqClampedTextLocaleConfiguration

typeCopy link to KbqClampedTextLocaleConfiguration

Locale configuration for KbqClampedText

type KbqClampedTextLocaleConfiguration = {
    openText: string;
    closeText: string;
    showMoreText: string;
    moreText: string;
};

KbqCodeBlockLocaleConfiguration

typeCopy link to KbqCodeBlockLocaleConfiguration

Locale configuration for KbqCodeBlockModule.

type KbqCodeBlockLocaleConfiguration = {
    softWrapOnTooltip: string;
    softWrapOffTooltip: string;
    downloadTooltip: string;
    copiedTooltip: string;
    copyTooltip: string;
    viewAllText: string;
    viewLessText: string;
    openExternalSystemTooltip: string;
};

KbqConnectedOverlayOriginProvider

interfaceCopy link to KbqConnectedOverlayOriginProvider

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()Copy link to 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.

KbqDateFormats

typeCopy link to KbqDateFormats
type KbqDateFormats = DateFormats;

KbqDatepickerLocaleConfiguration

typeCopy link to KbqDatepickerLocaleConfiguration

Locale configuration for KbqDatepickerModule.

Only placeholder reaches the rendered output — see dateInput.

type KbqDatepickerLocaleConfiguration = {
    placeholder: string;
    /** @deprecated */
    dateInput?: string;
};
placeholderCopy link to placeholderstring

Placeholder of the date input, in the locale's own notation (e.g. дд.мм.гггг).

dateInputoptionalDeprecatedCopy link to 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.

KbqDeepPartial

typeCopy link to KbqDeepPartial

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;

KbqDefaultSizes

typeCopy link to KbqDefaultSizes

Defines the available size options for Koobiq components.

type KbqDefaultSizes = 'compact' | 'normal' | 'big';

KbqDelayLoadingIndicatorOptions

typeCopy link to KbqDelayLoadingIndicatorOptions

Timing options of kbqDelayLoadingIndicator.

type KbqDelayLoadingIndicatorOptions = {
    delay?: number;
    minDuration?: number;
};
delayoptionalCopy link to delaynumber

How long, in milliseconds, an operation has to run before the indicator appears. Defaults to 500.

minDurationoptionalCopy link to minDurationnumber

How long, in milliseconds, the indicator stays visible once it has appeared. Defaults to 300.

KbqEnumValues

typeCopy link to KbqEnumValues

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}`;

KbqFileTypeSpecifier

typeCopy link to KbqFileTypeSpecifier

Type helper describing accepted file types, referring to unique file type specifiers.

type KbqFileTypeSpecifier = Parameters<typeof FileValidators.isCorrectExtension>[0];

KbqFileUploadA11yLocaleConfiguration

typeCopy link to KbqFileUploadA11yLocaleConfiguration

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;
};
fileAddedCopy link to fileAddedstring

Announced after a file is added; {{ fileName }} is replaced with its name.

fileRemovedCopy link to fileRemovedstring

Announced after a file is removed; {{ fileName }} is replaced with its name.

filesNotAddedCopy link to filesNotAddedstring

Announced when part of a selection is discarded — a duplicate, or everything past the first file.

KbqFileUploadLocaleConfiguration

typeCopy link to KbqFileUploadLocaleConfiguration

Labels of both upload flavours, and the announcements neither of them renders.

type KbqFileUploadLocaleConfiguration = {
    a11y: KbqFileUploadA11yLocaleConfiguration;
    single: KbqBaseFileUploadLocaleConfiguration;
    multiple: KbqMultipleFileUploadLocaleConfiguration;
};
a11yCopy link to a11yKbqFileUploadA11yLocaleConfiguration

Announcements of file list changes, read out rather than rendered.

singleCopy link to singleKbqBaseFileUploadLocaleConfiguration

Labels of the uploader that holds one file.

multipleCopy link to multipleKbqMultipleFileUploadLocaleConfiguration

Labels of the uploader that holds a list, including its title and compact caption.

KbqFilterBarLocaleConfiguration

typeCopy link to KbqFilterBarLocaleConfiguration

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.saveChangesHeaderCopy link to filters.saveChangesHeaderstring

Header of the rename popover; it also names the popover's name field.

filters.saveChangesButtonCopy link to filters.saveChangesButtonstring

Label of the filter-actions item that saves the pending changes.

filters.saveAsNewHeaderCopy link to filters.saveAsNewHeaderstring

Header of the popover that saves a new filter; it also names the popover's name field.

filters.saveAsNewButtonCopy link to filters.saveAsNewButtonstring

Label of the filter-actions item that saves the current filter as a new one.

add.addedAnnouncementCopy link to add.addedAnnouncementstring

Announced after a filter is added. Supports the {{ name }} placeholder.

pipe.noOptionsCopy link to pipe.noOptionsstring

Shown in the dropdown of an option pipe whose template has no values.

datePipe.customPeriodMinIntervalErrorHintCopy link to datePipe.customPeriodMinIntervalErrorHintstring

Supports the {{ value }} placeholder.

datePipe.customPeriodMaxIntervalErrorHintCopy link to datePipe.customPeriodMaxIntervalErrorHintstring

Supports the {{ value }} placeholder.

KbqFlexDirection

typeCopy link to KbqFlexDirection

Controls the direction of flex items: horizontal ('row') or vertical ('column').

type KbqFlexDirection = 'row' | 'column';

KbqFlexWrap

typeCopy link to KbqFlexWrap

Controls flex item wrapping: single-line ('nowrap') or multi-line ('wrap').

type KbqFlexWrap = 'nowrap' | 'wrap';

KbqFormattersLocaleConfiguration

typeCopy link to KbqFormattersLocaleConfiguration

Locale configuration for the number formatter pipes.

type KbqFormattersLocaleConfiguration = {
    number: {
        rounding: KbqNumberRoundingLocaleConfiguration;
        decimal?: KbqNumberFormatOptions;
    };
};
number.decimaloptionalCopy link to number.decimalKbqNumberFormatOptions

Present only for the locales that override the group separator of the decimal pipe.

KbqInputLocaleConfiguration

typeCopy link to KbqInputLocaleConfiguration

Locale configuration for the library's inputs.

type KbqInputLocaleConfiguration = {
    number: KbqInputNumberLocaleConfiguration;
};

KbqInputNumberLocaleConfiguration

typeCopy link to KbqInputNumberLocaleConfiguration

Locale configuration for KbqNumberInput.

type KbqInputNumberLocaleConfiguration = {
    groupSeparator: string[];
    fractionSeparator: string;
    startFormattingFrom?: number;
} & KbqNumberFormatOptions;
groupSeparatorCopy link to groupSeparatorstring[]

Characters recognized as group (thousands) separators.

fractionSeparatorCopy link to fractionSeparatorstring

Character used for the decimal separator

startFormattingFromoptionalCopy link to startFormattingFromnumber

Number of digits before applying group separators

KbqLocaleData

interfaceCopy link to KbqLocaleData

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;
}
usernameCopy link to usernameKbqUsernameLocaleConfiguration

Strings of kbq-username, none of which it renders visibly.

KbqLocaleDataInput

interfaceCopy link to KbqLocaleDataInput

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[];
}

KbqLocaleDataMap

typeCopy link to KbqLocaleDataMap

The resolved locale registry: every known locale keyed by id, plus the list used by locale pickers.

type KbqLocaleDataMap = Record<string, KbqLocaleData> & {
    items: KbqLocaleItem[];
};

KbqLocaleFormattersData

interfaceCopy link to KbqLocaleFormattersData

The number and size formatting rules of a locale — the shape of ruRUFormattersData and its siblings.

interface KbqLocaleFormattersData {
    formatters: KbqFormattersLocaleConfiguration;
    input: KbqInputLocaleConfiguration;
    sizeUnits: KbqSizeUnitsLocaleConfiguration;
}

KbqLocaleId

typeCopy link to KbqLocaleId

Identifiers of the locales shipped with the library.

type KbqLocaleId = 'en-US' | 'es-LA' | 'pt-BR' | 'ru-RU' | 'tk-TM';

KbqLocaleIdLike

typeCopy link to KbqLocaleIdLike

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 & {});

KbqLocaleItem

typeCopy link to KbqLocaleItem

An entry of the locale registry, used to render locale pickers.

type KbqLocaleItem = {
    id: KbqLocaleIdLike;
    name: string;
};
nameCopy link to namestring

Name of the locale in that locale's own language.

KbqLocaleSection

typeCopy link to KbqLocaleSection

Name of a section of KbqLocaleData, as accepted by KbqLocaleService.getParams().

type KbqLocaleSection = keyof KbqLocaleData;

KbqLocaleStringsData

interfaceCopy link to KbqLocaleStringsData

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;
}
usernameCopy link to usernameKbqUsernameLocaleConfiguration

Strings of kbq-username, none of which it renders visibly.

KbqMeasurementSystemType

typeCopy link to KbqMeasurementSystemType

Unit systems as union type

type KbqMeasurementSystemType = keyof typeof KbqMeasurementSystem;

KbqMultipleFileUploadLocaleConfiguration

interfaceCopy link to KbqMultipleFileUploadLocaleConfiguration
interface KbqMultipleFileUploadLocaleConfiguration extends KbqBaseFileUploadLocaleConfiguration {
    captionTextWhenSelected: string;
    captionTextForCompactSize: string;
    title: string;
    captionText: string;
    captionTextOnlyFolder: string;
    captionTextWithFolder: string;
    browseLink: string;
    browseLinkFolder: string;
    browseLinkFolderMixed?: string;
}

KbqMultipleInput

typeCopy link to KbqMultipleInput

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;

KbqNavbarLocaleConfiguration

typeCopy link to KbqNavbarLocaleConfiguration

Locale configuration for the kbq-vertical-navbar collapse toggle.

type KbqNavbarLocaleConfiguration = {
    toggle: {
        expand: string;
        collapse: string;
    };
};
toggle.expandCopy link to toggle.expandstring

Accessible name of the toggle while the navbar is collapsed.

toggle.collapseCopy link to toggle.collapsestring

Accessible name of the toggle while the navbar is expanded.

KbqNotificationCenterLocaleConfiguration

typeCopy link to KbqNotificationCenterLocaleConfiguration

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;
};
notificationsCopy link to notificationsstring

Heading of the notification center.

removeCopy link to removestring

Accessible name of a single notification's remove button.

removeAllCopy link to removeAllstring

Label of the action clearing every notification at once.

doNotDisturbCopy link to doNotDisturbstring

Label of the "do not disturb" switch.

showPopUpNotificationsCopy link to showPopUpNotificationsstring

Label of the "show pop-up notifications" switch.

noNotificationsCopy link to noNotificationsstring

Message shown when there is nothing to display.

failedToLoadNotificationsCopy link to failedToLoadNotificationsstring

Message shown when loading the notifications failed.

repeatCopy link to repeatstring

Label of the button retrying a failed load.

loadingMoreCopy link to loadingMorestring

Announced while the next page of notifications is loading.

unreadCopy link to unreadstring

Accessible name of the unread marker, which is otherwise conveyed by a dot alone.

KbqNumberFormatOptions

typeCopy link to KbqNumberFormatOptions

Options for overriding locale-based number formatting

type KbqNumberFormatOptions = {
    viewGroupSeparator?: string;
};
viewGroupSeparatoroptionalCopy link to viewGroupSeparatorstring

Overrides the default group separator in the formatted output

KbqNumericPipe

interfaceCopy link to KbqNumericPipe

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;
}

KbqOptionActionParent

interfaceCopy link to KbqOptionActionParent

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;
}

KbqOrientation

typeCopy link to KbqOrientation

Defines component orientation.

type KbqOrientation = 'horizontal' | 'vertical';

KbqOverflowShadowSource

interfaceCopy link to KbqOverflowShadowSource

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;
}
onScrollCopy link to onScrollObservable<unknown>

Emits whenever the wrapped element scrolls.

getScrollElement()Copy link to getScrollElement()HTMLElement | null

The element whose scrollTop/clientHeight/scrollHeight drive the shadows, or null if not ready yet.

KbqOverflowShadowState

interfaceCopy link to KbqOverflowShadowState

Shadow visibility state — which of the two shadows should be rendered.

interface KbqOverflowShadowState {
    top: boolean;
    bottom: boolean;
}
topCopy link to topboolean

Whether the top (header) shadow should be visible — content is scrolled past the top.

bottomCopy link to bottomboolean

Whether the bottom (footer) shadow should be visible — more content remains below the fold.

KbqOverlayLayerOrigin

typeCopy link to KbqOverlayLayerOrigin

Element an overlay is anchored to, or a getter read again on every attach of the overlay.

type KbqOverlayLayerOrigin = Element | (() => Element | null | undefined);

KbqOverlayLayers

interfaceCopy link to KbqOverlayLayers

Places overlays into the layer of the KbqOverlayLayer element their origin is in.

interface KbqOverlayLayers {
    adopt(overlayRef: OverlayRef, origin: KbqOverlayLayerOrigin): void;
}
adopt()Copy link to 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.

KbqOverlayOrigin

typeCopy link to KbqOverlayOrigin

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;

KbqPanelMaxHeight

typeCopy link to KbqPanelMaxHeight

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;

KbqPanelMaxWidth

typeCopy link to KbqPanelMaxWidth

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;

KbqPanelMinWidth

typeCopy link to KbqPanelMinWidth

Minimum width of an overlay panel, in pixels. null applies no additional minimum.

type KbqPanelMinWidth = number | null;

KbqPanelWidth

typeCopy link to KbqPanelWidth

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 | '';

KbqParentPopup

interfaceCopy link to KbqParentPopup
interface KbqParentPopup {
    closedStream: Observable<boolean>;
}

KbqPartialLocaleData

typeCopy link to KbqPartialLocaleData

Locale data with every section — and every key within a section — optional.

type KbqPartialLocaleData = KbqDeepPartial<KbqLocaleData>;

KbqPopoverConfirmLocaleConfiguration

typeCopy link to KbqPopoverConfirmLocaleConfiguration

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;
};
confirmTextCopy link to confirmTextstring

Question rendered in the body of the confirmation popover.

confirmButtonTextCopy link to confirmButtonTextstring

Caption of the button that confirms the action.

KbqPopUpPlacementValues

typeCopy link to KbqPopUpPlacementValues
type KbqPopUpPlacementValues = KbqEnumValues<PopUpPlacements>;

KbqPopUpSizeValues

typeCopy link to KbqPopUpSizeValues
type KbqPopUpSizeValues = KbqEnumValues<PopUpSizes>;

KbqPseudoCheckboxState

typeCopy link to KbqPseudoCheckboxState
type KbqPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate' | boolean;

KbqScrollAxis

typeCopy link to KbqScrollAxis

Axis a scroll-overflow check applies to.

type KbqScrollAxis = 'horizontal' | 'vertical';

KbqSearchExpandableLocaleConfiguration

typeCopy link to KbqSearchExpandableLocaleConfiguration

Locale configuration for KbqSearchExpandableModule.

type KbqSearchExpandableLocaleConfiguration = {
    tooltip: string;
    placeholder: string;
};
tooltipCopy link to tooltipstring

Accessible name and tooltip of the collapsed search trigger.

placeholderCopy link to placeholderstring

Placeholder of the expanded search field.

KbqSelectAllAdapter

interfaceCopy link to KbqSelectAllAdapter

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;
}
itemsCopy link to itemsreadonly T[]

All candidate items, in render/model order.

isSelectableCopy link to isSelectable(item: T) => boolean

Whether the item may participate (e.g. not disabled, and — for tree — selectable()).

isSelectedCopy link to isSelected(item: T) => boolean

Current selected state of the item.

setSelectedCopy link to 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.

KbqSelectLocaleConfiguration

typeCopy link to KbqSelectLocaleConfiguration

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;
};
hiddenItemsTextCopy link to hiddenItemsTextstring

Counter of the selected values that did not fit into the trigger. Supports the {{ number }} placeholder.

selectAllCopy link to selectAllstring

Label of the "select all" master checkbox rendered by the selectAll input.

KbqShadowDomOverlayHost

typeCopy link to KbqShadowDomOverlayHost

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);

KbqSiblingPopup

interfaceCopy link to KbqSiblingPopup

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>;
}
isAttachedCopy link to 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.

openedChangeCopy link to openedChangeObservable<boolean>

Emits true when the pop-up opens and false when it closes.

KbqSizeUnitsConfig

typeDeprecatedCopy link to KbqSizeUnitsConfig

Use KbqSizeUnitsLocaleConfiguration. Will be removed in 22.0.0.

type KbqSizeUnitsConfig = KbqSizeUnitsLocaleConfiguration;

KbqSizeUnitsLocaleConfiguration

interfaceCopy link to 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; };
}
defaultUnitSystemCopy link to defaultUnitSystemKbqMeasurementSystemType

Default unit system to use, one of KbqMeasurementSystem (e.g., 'SI' or 'IEC').

defaultPrecisionCopy link to defaultPrecisionnumber

Default number of decimal places to display in formatted output: with 2, "1.23 KB".

unitSystemsCopy link to unitSystems{ [KbqMeasurementSystem.SI]: KbqUnitSystem; [KbqMeasurementSystem.IEC]: KbqUnitSystem; }

Unit systems by KbqMeasurementSystem.

KbqStateSavingKeyResolver

typeCopy link to KbqStateSavingKeyResolver

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;

KbqStateSavingRef

interfaceCopy link to KbqStateSavingRef

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;
}
nameCopy link to namestring

How the owner is named in dev-mode warnings — a tag name for a component.

keyCopy link to keystring

The key the state is persisted under. Empty until the component has read, and for a host no key could be derived from.

enabledCopy link to enabledboolean

Whether this component persists — its own useStateSaving, not the service-wide switch.

stateCopy link to stateunknown

The state it last read or wrote, or null. Raw, in the shape the component persists.

hostCopy link to hostElement | null

The host element, for locating the component on the page.

clear()Copy link to clear()void

Removes this component's persisted state, through its own store.

KbqStateStore

interfaceCopy link to KbqStateStore

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[];
}
changesoptionalCopy link to 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()Copy link to getState()unknown

Returns the raw persisted payload for the key, or null when nothing is stored/available.

setState()Copy link to setState()void

Persists the payload under the key. It has to be JSON-serializable.

removeState()Copy link to removeState()void

Removes the payload persisted under the key.

keys()optionalCopy link to 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.

KbqStickToWindowPlacementValues

typeCopy link to KbqStickToWindowPlacementValues
type KbqStickToWindowPlacementValues = KbqEnumValues<
    PopUpPlacements.Top | PopUpPlacements.Right | PopUpPlacements.Bottom | PopUpPlacements.Left
>;

KbqTextAnchor

typeCopy link to KbqTextAnchor

Anything the caret helpers can measure: a text field, or an element the user edits directly.

type KbqTextAnchor = HTMLInputElement | HTMLTextAreaElement | HTMLElement;

KbqTextMirror

interfaceCopy link to KbqTextMirror

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()Copy link to 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()Copy link to hide()void

Hides the layer until the next update.

destroy()Copy link to destroy()void

Removes the layer.

KbqTextQuery

interfaceCopy link to KbqTextQuery

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;
}
startCopy link to startnumber

Index the query starts at, including its trigger character. Replacing the query starts here.

endCopy link to endnumber

Index the query ends at — the caret.

textCopy link to textstring

Text to match the options against, without the trigger character.

triggerCopy link to triggerstring | null

Trigger the query starts with, or null when the query is the word before the caret.

KbqTextQueryOptions

interfaceCopy link to KbqTextQueryOptions

Options of kbqGetTextQuery.

interface KbqTextQueryOptions {
    triggers?: readonly string[];
    minLength?: number;
}
triggersoptionalCopy link to triggersreadonly string[]

Strings that start a query, such as / for commands or @ for mentions. When empty, the word before the caret is the query.

minLengthoptionalCopy link to minLengthnumber

Shortest query that counts. Defaults to 1 for a word and to 0 after a trigger.

KbqThemeColorScheme

typeCopy link to KbqThemeColorScheme

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';

KbqThemeConfig

interfaceCopy link to KbqThemeConfig

A theme registered with KbqThemeService, resolved by mode() via its required colorScheme.

interface KbqThemeConfig {
    name: string;
    className: string;
    colorScheme: KbqThemeColorScheme;
}
classNameCopy link to classNamestring

CSS class applied to the document body when this theme is active.

KbqThemeMode

typeCopy link to KbqThemeMode

Selection understood by KbqThemeService. The only way to select a theme — see setMode().

type KbqThemeMode = 'auto' | KbqThemeColorScheme;

KbqThemeSettings

interfaceCopy link to KbqThemeSettings

Settings accepted by KBQ_THEME_CONFIG / kbqThemeProvider().

interface KbqThemeSettings<T extends KbqThemeConfig = KbqThemeConfig> {
    themes: T[];
    mode: KbqThemeMode;
    theme: string | null;
    storageKey: string;
}
themesCopy link to themesT[]

Themes available to the service. Defaults to KBQ_DEFAULT_THEMES.

modeCopy link to modeKbqThemeMode

Initial mode, used only when nothing is persisted yet in the KBQ_THEME_STORE. Defaults to 'auto'.

themeCopy link to 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.

storageKeyCopy link to storageKeystring

Key used to persist the selection — a localStorage key or cookie name, depending on KBQ_THEME_STORE. Defaults to 'kbq-theme-mode'.

KbqThemeStore

interfaceCopy link to KbqThemeStore

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;
}
changesoptionalCopy link to 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()Copy link to 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()Copy link to setMode()void

Persists the mode.

getStaticTheme()Copy link to 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()Copy link to setStaticTheme()void

Persists the static theme name, or clears it when null.

KbqTimepickerLocaleConfiguration

typeCopy link to KbqTimepickerLocaleConfiguration

Locale configuration for KbqTimepickerModule.

type KbqTimepickerLocaleConfiguration = {
    placeholder: {
        full: string;
        short: string;
    };
};
placeholderCopy link to placeholder{ full: string; short: string; }

Placeholders keyed by the time format rendered by the input.

placeholder.fullCopy link to placeholder.fullstring

Placeholder for the HH:mm:ss format.

placeholder.shortCopy link to placeholder.shortstring

Placeholder for the HH:mm format.

KbqTimeRangeLocaleConfiguration

typeCopy link to KbqTimeRangeLocaleConfiguration

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.outOfBoundsErrorCopy link to editor.outOfBoundsErrorstring

Reported when both ends of the range leave minDate/maxDate. Supports the {{ value }} placeholder.

editor.allTimeOptionoptionalCopy link to editor.allTimeOptionstring

Label for the allTime option in the presets list, as opposed to the trigger label in allTime

editor.currentQuarterOptionoptionalCopy link to editor.currentQuarterOptionstring

Label for the currentQuarter option in the presets list, as opposed to the trigger label in currentQuarter

editor.currentYearOptionoptionalCopy link to editor.currentYearOptionstring

Label for the currentYear option in the presets list, as opposed to the trigger label in currentYear

KbqTimezoneLike

typeCopy link to KbqTimezoneLike

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 & {});

KbqTimezoneLocaleConfiguration

typeCopy link to KbqTimezoneLocaleConfiguration

Locale configuration for KbqTimezoneModule.

type KbqTimezoneLocaleConfiguration = {
    searchPlaceholder: string;
    otherCountriesLabel: string;
};
searchPlaceholderCopy link to searchPlaceholderstring

Placeholder of the search field inside the timezone select.

otherCountriesLabelCopy link to otherCountriesLabelstring

Label of the group that holds every country other than the promoted one.

KbqTitleTextRef

interfaceCopy link to KbqTitleTextRef
interface KbqTitleTextRef {
    textElement?: ElementRef;
    parentTextElement?: ElementRef;
}

KbqToggleSelectAllOptions

interfaceCopy link to KbqToggleSelectAllOptions

Options for toggleSelectAll.

interface KbqToggleSelectAllOptions {
    allowDeselect?: boolean;
}
allowDeselectoptionalCopy link to allowDeselectboolean

When true, a repeated toggle deselects everything once all selectable items are already selected. When false (default), the toggle only ever selects.

KbqUnitSystem

interfaceCopy link to KbqUnitSystem
interface KbqUnitSystem {
    abbreviations: string[];
    base: number;
    power: number;
}

KbqUsernameLocaleConfiguration

typeCopy link to KbqUsernameLocaleConfiguration

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;
};
siteLabelCopy link to siteLabelstring

Word naming the site hint, e.g. site. Never displayed.

KeyboardNavigationHandler

interfaceCopy link to KeyboardNavigationHandler

Handler that will update scroll position of elements inside overlay

interface KeyboardNavigationHandler {
    scrollActiveOptionIntoView(): void;
}
scrollActiveOptionIntoView()Copy link to scrollActiveOptionIntoView()void

Scrolls the active option into view.

ListKeyManagerModifierKey

typeCopy link to ListKeyManagerModifierKey

Modifier keys handled by the ListKeyManager.

type ListKeyManagerModifierKey = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';

ListKeyManagerOption

interfaceCopy link to ListKeyManagerOption
interface ListKeyManagerOption {
    disabled?: boolean | Signal<boolean>;
    getLabel?(): string;
}
disabledoptionalCopy link to disabledboolean | Signal<boolean>

Whether the option is disabled. A signal lets an option expose disabled as an input().

KbqComponentColors

enumCopy link to KbqComponentColors
enum KbqComponentColors {
    Theme = 'theme',
    ThemeFade = 'theme-fade',
    Contrast = 'contrast',
    ContrastFade = 'contrast-fade',
    Error = 'error',
    Warning = 'warning',
    Success = 'success',
    Default = 'contrast',
    Empty = 'empty'
}

KbqMeasurementSystem

enumCopy link to KbqMeasurementSystem

Available unit systems for file size formatting.

  • SI (Metric): 1 KB = 1000 bytes
  • IEC (Binary): 1 KiB = 1024 bytes
enum KbqMeasurementSystem {
    SI = 'SI',
    IEC = 'IEC'
}

KbqThemeNames

enumCopy link to KbqThemeNames

Theme names for KBQ_DEFAULT_THEMES, the built-in light/dark theme set.

enum KbqThemeNames {
    Light = 'light',
    Dark = 'dark'
}
LightCopy link to Light'light'

Name for the built-in light theme.

DarkCopy link to Dark'dark'

Name for the built-in dark theme.

KbqThemeSelector

enumCopy link to KbqThemeSelector

CSS class names for KBQ_DEFAULT_THEMES, the built-in light/dark theme set.

enum KbqThemeSelector {
    Light = 'kbq-light',
    Dark = 'kbq-dark'
}
LightCopy link to Light'kbq-light'

Class for the built-in light theme.

DarkCopy link to Dark'kbq-dark'

Class for the built-in dark theme.

MultipleMode

enumCopy link to MultipleMode
enum MultipleMode {
    CHECKBOX = 'checkbox',
    KEYBOARD = 'keyboard'
}

PopUpPlacements

enumCopy link to PopUpPlacements
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'
}

PopUpSizes

enumCopy link to PopUpSizes
enum PopUpSizes {
    Small = 'small',
    Medium = 'medium',
    Large = 'large',
    Custom = 'custom'
}

PopUpTriggers

enumCopy link to PopUpTriggers
enum PopUpTriggers {
    Click = 'click',
    Focus = 'focus',
    Hover = 'hover',
    Keydown = 'keydown',
    Program = 'program'
}

PopUpVisibility

enumCopy link to PopUpVisibility
enum PopUpVisibility {
    Initial = 'initial',
    Visible = 'visible',
    Hidden = 'hidden'
}

applyPopupMargins

constCopy link to applyPopupMargins
const applyPopupMargins: (renderer: Renderer2, element: HTMLElement, name: string, value: string) => void;

defaultOffsetY

constCopy link to defaultOffsetY

Default value when configuring overlay in popups (Autocomplete, Datepicker, Dropdown, Select, Tags Autocomplete, Tags Input, Timezone, TreeSelect).

const defaultOffsetY: number;

enUSFormattersData

constCopy link to enUSFormattersData
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;
            };
        };
    };
};

enUSLocaleData

constCopy link to enUSLocaleData
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;
    };
};

esLAFormattersData

constCopy link to esLAFormattersData
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;
            };
        };
    };
};

esLALocaleData

constCopy link to esLALocaleData
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;
    };
};

getContentNodes

constCopy link to getContentNodes

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[];

getHumanizedBytes

constCopy link to getHumanizedBytes

Converts bytes to Kb, Mb, Gb

const getHumanizedBytes: (
    value: number,
    system: KbqUnitSystem,
    threshold?: number
) => { result: number; unit: string };

getNodesWithoutComments

constCopy link to getNodesWithoutComments
const getNodesWithoutComments: (nodes: NodeList) => Node[];

isElement

constCopy link to isElement

Whether the value is Element.

const isElement: (value: unknown) => value is Element;

isHtmlElement

constCopy link to isHtmlElement

Whether the value is HTMLElement.

const isHtmlElement: (value: unknown) => value is HTMLElement;

isHtmlElementOrNull

constCopy link to isHtmlElementOrNull

Whether the value is HTMLElement or null.

const isHtmlElementOrNull: (
    value: unknown
) => value is HTMLElement | null;

isNull

constCopy link to isNull

Whether the value is null.

const isNull: (value: unknown) => value is null;

isUndefined

constCopy link to isUndefined

Whether the value is undefined.

const isUndefined: (value: unknown) => value is undefined;

KBQ_A11Y_LOCALE_CONFIGURATION

constCopy link to KBQ_A11Y_LOCALE_CONFIGURATION

Localization configuration provider for the accessible names of built-in icon-only buttons.

const KBQ_A11Y_LOCALE_CONFIGURATION: InjectionToken<KbqA11yLocaleConfiguration>;

KBQ_ANIMATIONS_CONFIG

constCopy link to KBQ_ANIMATIONS_CONFIG

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>;

KBQ_CHECKABLE_CLICK_ACTION

constCopy link to KBQ_CHECKABLE_CLICK_ACTION

Injection token that can be used to specify the default click behavior for checkable controls.

const KBQ_CHECKABLE_CLICK_ACTION: InjectionToken<KbqCheckableClickAction>;

KBQ_CONNECTED_OVERLAY_ABOVE_CLASS

constCopy link to KBQ_CONNECTED_OVERLAY_ABOVE_CLASS

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;

KBQ_CONNECTED_OVERLAY_BELOW_CLASS

constCopy link to KBQ_CONNECTED_OVERLAY_BELOW_CLASS

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;

KBQ_CONNECTED_OVERLAY_ORIGIN

constCopy link to KBQ_CONNECTED_OVERLAY_ORIGIN

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>;

KBQ_CONNECTED_OVERLAY_OVERLAP_CLASS

constCopy link to KBQ_CONNECTED_OVERLAY_OVERLAP_CLASS

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;

KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER

constCopy link to KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER
const KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER: <T>(token: InjectionToken<T>, factory: (overlay: Overlay) => () => ScrollStrategy) => { provide: InjectionToken<T>; deps: (typeof Overlay)[]; useFactory: (overlay: Overlay) => () => ScrollStrategy; };

KBQ_DATE_FORMATS

constCopy link to KBQ_DATE_FORMATS
const KBQ_DATE_FORMATS: InjectionToken<DateFormats>;

KBQ_DATE_LOCALE

constCopy link to KBQ_DATE_LOCALE

InjectionToken for datepicker that can be used to override default locale code.

const KBQ_DATE_LOCALE: InjectionToken<string>;

KBQ_DATE_TIMEZONE

constCopy link to KBQ_DATE_TIMEZONE

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>;

KBQ_DEFAULT_LOCALE_ID

constCopy link to KBQ_DEFAULT_LOCALE_ID
const KBQ_DEFAULT_LOCALE_ID: string;

KBQ_DEFAULT_THEMES

constCopy link to KBQ_DEFAULT_THEMES

The built-in light/dark theme set — KBQ_THEME_CONFIG's default themes.

const KBQ_DEFAULT_THEMES: KbqThemeConfig[];

KBQ_FORMATTERS_LOCALE_CONFIGURATION

constCopy link to KBQ_FORMATTERS_LOCALE_CONFIGURATION

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>;

KBQ_INVALID_VALUE_ERROR

constCopy link to KBQ_INVALID_VALUE_ERROR
const KBQ_INVALID_VALUE_ERROR: string;

KBQ_LOCALE_DATA

constCopy link to KBQ_LOCALE_DATA
const KBQ_LOCALE_DATA: InjectionToken<KbqLocaleDataInput>;

KBQ_LOCALE_ID

constCopy link to KBQ_LOCALE_ID
const KBQ_LOCALE_ID: InjectionToken<KbqLocaleIdLike>;

KBQ_LOCALE_SERVICE

constCopy link to KBQ_LOCALE_SERVICE
const KBQ_LOCALE_SERVICE: InjectionToken<KbqLocaleService>;

KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS

constCopy link to KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS
const KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS: ParsedDigitsInfo;

KBQ_NUMBER_FORMATTER_OPTIONS

constCopy link to KBQ_NUMBER_FORMATTER_OPTIONS
const KBQ_NUMBER_FORMATTER_OPTIONS: InjectionToken<ParsedDigitsInfo>;

KBQ_OPTION_ACTION_PARENT

constCopy link to KBQ_OPTION_ACTION_PARENT
const KBQ_OPTION_ACTION_PARENT: InjectionToken<KbqOptionActionParent>;

KBQ_OPTION_PARENT_COMPONENT

constCopy link to KBQ_OPTION_PARENT_COMPONENT

Injection token used to provide the parent component to options.

const KBQ_OPTION_PARENT_COMPONENT: InjectionToken<KbqOptionParentComponent>;

KBQ_OVERFLOW_SHADOW_SOURCE

constCopy link to KBQ_OVERFLOW_SHADOW_SOURCE

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>;

KBQ_OVERLAY_LAYERS

constCopy link to KBQ_OVERLAY_LAYERS

Places overlays into the layer of the KbqOverlayLayer element their origin is in.

const KBQ_OVERLAY_LAYERS: InjectionToken<KbqOverlayLayers>;

KBQ_PANEL_DEFAULT_MIN_WIDTH

constCopy link to KBQ_PANEL_DEFAULT_MIN_WIDTH

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;

KBQ_PARENT_POPUP

constCopy link to KBQ_PARENT_POPUP

InjectionToken for providing component with popup. Used in select and tree-select for tooltip.

const KBQ_PARENT_POPUP: InjectionToken<KbqParentPopup>;

KBQ_POPOVER_CONFIRM_LOCALE_CONFIGURATION

constCopy link to KBQ_POPOVER_CONFIRM_LOCALE_CONFIGURATION

Localization configuration provider for the default strings of a confirmation popover.

const KBQ_POPOVER_CONFIRM_LOCALE_CONFIGURATION: InjectionToken<KbqPopoverConfirmLocaleConfiguration>;

KBQ_SELECT_DEFAULT_LOCALE_CONFIGURATION

constCopy link to KBQ_SELECT_DEFAULT_LOCALE_CONFIGURATION

Default localized strings shared by the select-like components.

const KBQ_SELECT_DEFAULT_LOCALE_CONFIGURATION: KbqSelectLocaleConfiguration;

KBQ_SELECT_LOCALE_CONFIGURATION

constCopy link to KBQ_SELECT_LOCALE_CONFIGURATION

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>;

KBQ_SELECT_SCROLL_STRATEGY

constCopy link to KBQ_SELECT_SCROLL_STRATEGY

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>;

KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD

constCopy link to KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD

Minimum option count threshold for displaying select search. Search is hidden when fewer options are available.

const KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD: number;

KBQ_SHADOW_DOM_OVERLAY_HOST

constCopy link to KBQ_SHADOW_DOM_OVERLAY_HOST

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>;

KBQ_SIBLING_POPUP

constCopy link to KBQ_SIBLING_POPUP

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[]>;

KBQ_SIZE_UNITS_CONFIG

constDeprecatedCopy link to KBQ_SIZE_UNITS_CONFIG

Use KBQ_SIZE_UNITS_LOCALE_CONFIGURATION. Will be removed in 22.0.0.

const KBQ_SIZE_UNITS_CONFIG: InjectionToken<KbqSizeUnitsLocaleConfiguration>;

KBQ_SIZE_UNITS_DEFAULT_CONFIG

constDeprecatedCopy link to KBQ_SIZE_UNITS_DEFAULT_CONFIG

Use KBQ_SIZE_UNITS_DEFAULT_LOCALE_CONFIGURATION. Will be removed in 22.0.0.

const KBQ_SIZE_UNITS_DEFAULT_CONFIG: KbqSizeUnitsLocaleConfiguration;

KBQ_SIZE_UNITS_DEFAULT_LOCALE_CONFIGURATION

constCopy link to KBQ_SIZE_UNITS_DEFAULT_LOCALE_CONFIGURATION
const KBQ_SIZE_UNITS_DEFAULT_LOCALE_CONFIGURATION: KbqSizeUnitsLocaleConfiguration;

KBQ_SIZE_UNITS_LOCALE_CONFIGURATION

constCopy link to KBQ_SIZE_UNITS_LOCALE_CONFIGURATION

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>;

KBQ_STATE_SAVING_ENABLED

constCopy link to KBQ_STATE_SAVING_ENABLED

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>;

KBQ_STATE_SAVING_KEY_RESOLVER

constCopy link to KBQ_STATE_SAVING_KEY_RESOLVER

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.

Example
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>;

KBQ_STATE_SAVING_TTL

constCopy link to KBQ_STATE_SAVING_TTL

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>;

KBQ_STATE_STORE

constCopy link to KBQ_STATE_STORE

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>;

KBQ_THEME_CONFIG

constCopy link to KBQ_THEME_CONFIG

Injection token for KbqThemeService's settings. Configure via kbqThemeProvider(), not this directly.

const KBQ_THEME_CONFIG: InjectionToken<KbqThemeSettings>;

KBQ_THEME_STORE

constCopy link to KBQ_THEME_STORE

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>;

KBQ_TITLE_TEXT_REF

constCopy link to KBQ_TITLE_TEXT_REF
const KBQ_TITLE_TEXT_REF: InjectionToken<KbqTitleTextRef>;

KBQ_WINDOW

constCopy link to KBQ_WINDOW

An abstraction over the global window object.

const KBQ_WINDOW: InjectionToken<Window>;

kbqA11yLocaleConfigurationProvider

constCopy link to kbqA11yLocaleConfigurationProvider

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;

kbqCreateCaretOrigin

constCopy link to kbqCreateCaretOrigin

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>;

kbqDateTimezoneProvider

constCopy link to kbqDateTimezoneProvider

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[];

kbqDeepMerge

constCopy link to kbqDeepMerge

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;

kbqErrorStateMatcherProvider

constCopy link to kbqErrorStateMatcherProvider

Utility provider for ErrorStateMatcher.

const kbqErrorStateMatcherProvider: (
    errorStateMatcher: Type<ErrorStateMatcher> | ErrorStateMatcher
) => Provider;

kbqFilesizeFormatterConfigurationProvider

constDeprecatedCopy link to kbqFilesizeFormatterConfigurationProvider

Use kbqSizeUnitsLocaleConfigurationProvider. Will be removed in 22.0.0.

const kbqFilesizeFormatterConfigurationProvider: (
    configuration: KbqDeepPartial<KbqSizeUnitsLocaleConfiguration>
) => Provider;

kbqFocusAndReveal

constCopy link to kbqFocusAndReveal

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;

kbqFormattersLocaleConfigurationProvider

constCopy link to kbqFormattersLocaleConfigurationProvider

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;

kbqGetCaretRect

constCopy link to kbqGetCaretRect

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;

kbqGetElementHeight

constCopy link to kbqGetElementHeight

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;

kbqGetOverlayOriginSize

constCopy link to kbqGetOverlayOriginSize

Rectangle of an overlay origin in viewport coordinates, for measurements and arrow alignment.

const kbqGetOverlayOriginSize: (
    origin: KbqOverlayOrigin | FlexibleConnectedPositionStrategyOrigin
) => Pick<KbqCaretRect, 'x' | 'y' | 'width' | 'height'>;

kbqGetScrollOverflowTolerance

constCopy link to kbqGetScrollOverflowTolerance

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;

kbqGetSelectionRect

constCopy link to kbqGetSelectionRect

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;

kbqGetTextQuery

constCopy link to kbqGetTextQuery

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;

kbqHasScrollOverflow

constCopy link to kbqHasScrollOverflow

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;

kbqInjectAutofilled

constCopy link to kbqInjectAutofilled

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>;

kbqInjectNativeElement

constCopy link to kbqInjectNativeElement

Injects the native element for the current component.

const kbqInjectNativeElement: <T extends Element = HTMLElement>() => T;

kbqIsElementOrigin

constCopy link to kbqIsElementOrigin

Whether the origin is an element with a box of its own, rather than a rectangle in viewport coordinates.

const kbqIsElementOrigin: (origin: KbqOverlayOrigin) => boolean;

kbqListenForCaretMoves

constCopy link to kbqListenForCaretMoves

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);

kbqLocaleConfigurationOverrideProvider

constCopy link to kbqLocaleConfigurationOverrideProvider

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;

kbqLocaleIDProvider

constCopy link to kbqLocaleIDProvider

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;

kbqLocaleServiceProvider

constCopy link to kbqLocaleServiceProvider

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;

kbqOptionalNumberAttribute

constCopy link to kbqOptionalNumberAttribute

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;

kbqPopoverConfirmLocaleConfigurationProvider

constCopy link to kbqPopoverConfirmLocaleConfigurationProvider

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;

kbqResolveOverlayOrigin

constCopy link to kbqResolveOverlayOrigin

Resolves a Koobiq origin into the value a connected position strategy accepts.

const kbqResolveOverlayOrigin: (
    origin: KbqOverlayOrigin | FlexibleConnectedPositionStrategyOrigin
) => FlexibleConnectedPositionStrategyOrigin;

kbqResolveTimezoneOffset

constCopy link to kbqResolveTimezoneOffset

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;

kbqRevealSelection

constCopy link to kbqRevealSelection

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;

kbqSelectLocaleConfigurationProvider

constCopy link to kbqSelectLocaleConfigurationProvider

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;

kbqSetSelectionRange

constCopy link to kbqSetSelectionRange

Selects the [start, end] range of a text field and keeps it visible with kbqRevealSelection.

const kbqSetSelectionRange: (
    element: HTMLInputElement,
    start: number,
    end: number
) => void;

kbqShadowDomOverlayProvider

constCopy link to kbqShadowDomOverlayProvider

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[];

kbqSiblingPopupProvider

constCopy link to kbqSiblingPopupProvider

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;

kbqSizeUnitsLocaleConfigurationProvider

constCopy link to kbqSizeUnitsLocaleConfigurationProvider

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;

kbqStructuralStateSavingKey

constCopy link to kbqStructuralStateSavingKey

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
#faq
const kbqStructuralStateSavingKey: KbqStateSavingKeyResolver;

kbqThemeProvider

constCopy link to kbqThemeProvider

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;

POSITION_TO_CSS_MAP

constCopy link to POSITION_TO_CSS_MAP
const POSITION_TO_CSS_MAP: { [key: string]: string };

ptBRFormattersData

constCopy link to ptBRFormattersData
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;
            };
        };
    };
};

ptBRLocaleData

constCopy link to ptBRLocaleData
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;
    };
};

ruRUFormattersData

constCopy link to ruRUFormattersData
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;
            };
        };
    };
};

ruRULocaleData

constCopy link to ruRULocaleData
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;
    };
};

supportsNativeDisabled

constCopy link to supportsNativeDisabled

Whether the element supports the native disabled attribute; on any other host it is invalid HTML.

const supportsNativeDisabled: (element: Element) => boolean;

tkTMFormattersData

constCopy link to tkTMFormattersData
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;
            };
        };
    };
};

tkTMLocaleData

constCopy link to tkTMLocaleData
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;
    };
};

VERSION

constCopy link to VERSION
const VERSION: Version;
Suggestions for improvement
If you found a mistake or want to improve the article, create an issue on GitHub.