KbqActionContainer

componentСкопировать ссылку на KbqActionContainer
@Component({ selector: 'kbq-action-container', exportAs: 'kbqActionContainer' })
class KbqActionContainer {}

KbqOptgroup

componentСкопировать ссылку на 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;
}
disabledinputСкопировать ссылку на disabledboolean

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

labelIdСкопировать ссылку на labelIdstring

Unique id for the underlying label.

KbqOption

componentСкопировать ссылку на 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;
}
valueinputСкопировать ссылку на valueany

The form value of the option.

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

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

viewValueinputСкопировать ссылку на 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.

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

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

textElementСкопировать ссылку на textElementElementRef<HTMLElement> | undefined

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

onSelectionChangeСкопировать ссылку на 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.

stateChangesСкопировать ссылку на stateChangesSubject<void>

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

multipleСкопировать ссылку на multipleboolean

Whether the wrapping component is in multiple selection mode.

activeСкопировать ссылку на 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()Скопировать ссылку на focus()void

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

setActiveStyles()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на getLabel()string

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

handleKeydown()Скопировать ссылку на handleKeydown()void

Ensures the option is selected when activated from the keyboard.

selectViaInteraction()Скопировать ссылку на 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

componentСкопировать ссылку на 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-labelinputСкопировать ссылку на 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.

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

Whether the action is disabled.

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

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

KbqCheckable

directiveСкопировать ссылку на 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;
}
effectiveTabIndexСкопировать ссылку на effectiveTabIndexSignal<number>

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

getAriaChecked()Скопировать ссылку на getAriaChecked()KbqCheckedState

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

toggle()Скопировать ссылку на toggle()void

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

resolveClick()Скопировать ссылку на 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()Скопировать ссылку на resetNativeInput()void

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

notifyFormValueChange()Скопировать ссылку на notifyFormValueChange()void

Notifies the registered ControlValueAccessor change handler.

KbqColorDirective

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

colorClassNameСкопировать ссылку на colorClassNamestring

current class name of color

setDefaultColor()Скопировать ссылку на setDefaultColor()void

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

KbqForm

directiveСкопировать ссылку на KbqForm
@Directive({
    selector: '.kbq-form-vertical, .kbq-form-horizontal',
    exportAs: 'kbqForm'
})
class KbqForm {
    readonly elements: Signal<readonly KbqFormElement[]>;
    handleElements(elements: readonly KbqFormElement[]): void;
}

KbqFormElement

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

directiveСкопировать ссылку на 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]>;
}
kbqLocaleOverridesinputСкопировать ссылку на kbqLocaleOverridesKbqPartialLocaleData | undefined

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

read()Скопировать ссылку на 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

directiveСкопировать ссылку на KbqNormalizeWhitespace
@Directive({ selector: '[kbqNormalizeWhitespace]' })
class KbqNormalizeWhitespace {
    onCopy($event: ClipboardEvent): void;
}
onCopy()Скопировать ссылку на onCopy()void

Replace thin-space with space on copy event

KbqOverflowShadowBottom

directiveСкопировать ссылку на 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)'
    );
}
kbqOverflowShadowBottominputСкопировать ссылку на kbqOverflowShadowBottomKbqOverflowShadowContainer | undefined

Reference to the container directive. See KbqOverflowShadowTop.ref.

shadowinputСкопировать ссылку на shadowstring

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

KbqOverflowShadowContainer

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

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

overflowСкопировать ссылку на overflowWritableSignal<KbqOverflowShadowState>

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

checkOverflow()Скопировать ссылку на 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

directiveСкопировать ссылку на 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)'
    );
}
kbqOverflowShadowTopinputСкопировать ссылку на 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).

shadowinputСкопировать ссылку на shadowstring

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

KbqOverlayLayer

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

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

directiveСкопировать ссылку на 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;
}
elementRefСкопировать ссылку на elementRefElementRef<HTMLElement>

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

hoveredСкопировать ссылку на hoveredSignal<boolean>

Whether the pointer is over the pop-up.

classMapСкопировать ссылку на classMap{}

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

arrowCenteredСкопировать ссылку на arrowCenteredboolean

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

arrowCenterInsetСкопировать ссылку на arrowCenterInsetnumber

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

visibilityСкопировать ссылку на visibilityPopUpVisibility

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

onHideSubjectСкопировать ссылку на onHideSubjectSubject<void>

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

hide()Скопировать ссылку на 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()Скопировать ссылку на afterHidden()Observable<void>

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

setHovered()Скопировать ссылку на setHovered()void

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

afterShowAnimation()Скопировать ссылку на 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()Скопировать ссылку на addEventListenerForHide()void

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

KbqPopUpTrigger

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

Whether the pop-up overlay is currently open.

isAttachedСкопировать ссылку на 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.

openedChangeСкопировать ссылку на openedChangeObservable<boolean>

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

arrowCenteredСкопировать ссылку на arrowCenteredboolean

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

setHovered()Скопировать ссылку на setHovered()void

Records whether the pointer is over the trigger.

updateOrigin()Скопировать ссылку на 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

directiveСкопировать ссылку на 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;
}
timestampСкопировать ссылку на timestampnumber | undefined

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

timeToReadСкопировать ссылку на timeToReadnumber

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

startDwell()Скопировать ссылку на startDwell()void

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

endDwell()Скопировать ссылку на 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

directiveСкопировать ссылку на KbqSelectFooter
@Directive({ selector: 'kbq-select-footer, [kbq-select-footer]' })
class KbqSelectFooter {}

KbqSelectFooterItem

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

directiveСкопировать ссылку на KbqSelectMatcher
@Directive({ selector: 'kbq-select-matcher, [kbq-select-matcher]' })
class KbqSelectMatcher {
    readonly useDefaultHandlers = input<boolean>(true);
}

KbqSelectSearch

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

directiveСкопировать ссылку на KbqSelectSearchEmptyResult
@Directive({
    selector: '[kbq-select-search-empty-result]',
    exportAs: 'kbqSelectSearchEmptyResult'
})
class KbqSelectSearchEmptyResult {}

KbqSelectTrigger

directiveСкопировать ссылку на KbqSelectTrigger
@Directive({ selector: 'kbq-select-trigger, [kbq-select-trigger]' })
class KbqSelectTrigger {}

KbqStateSaving

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

stateSavingKeyinputСкопировать ссылку на 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.

keyChangesoutputСкопировать ссылку на 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.

hostСкопировать ссылку на 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.

stateСкопировать ссылку на stateunknown

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

nameСкопировать ссылку на namestring

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

keyСкопировать ссылку на 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.

enabledСкопировать ссылку на enabledboolean

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

read()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на KbqDataSizePipe
@Pipe({ name: 'kbqDataSize', pure: false })
class KbqDataSizePipe implements PipeTransform {
    transform(
        source: number,
        precision?: number,
        unitSystemName?: KbqMeasurementSystemType,
        locale?: string
    ): string;
}
transform()Скопировать ссылку на transform()string

Transforms bytes into localized size string

KbqDecimalPipe

pipeСкопировать ссылку на KbqDecimalPipe
@Pipe({ name: 'kbqNumber', pure: false })
class KbqDecimalPipe implements KbqNumericPipe, PipeTransform {
    transform(
        value: any,
        digitsInfo?: string,
        locale?: string
    ): string | null;
}
transform()Скопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на KbqHighlightBackgroundPipe
@Pipe({ name: 'kbqHighlightBackground' })
class KbqHighlightBackgroundPipe implements PipeTransform {
    transform(
        value: unknown,
        keyword: unknown,
        foldDiacritics?: boolean
    ): string;
}

KbqHighlightBoldPipe

pipeСкопировать ссылку на 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()Скопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на 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

pipeСкопировать ссылку на KbqRoundDecimalPipe
@Pipe({ name: 'kbqRoundNumber', pure: false })
class KbqRoundDecimalPipe implements PipeTransform {
    transform(value: any, locale?: string): any;
}

KbqTableNumberPipe

pipeСкопировать ссылку на KbqTableNumberPipe
@Pipe({ name: 'kbqTableNumber', pure: false })
class KbqTableNumberPipe implements KbqNumericPipe, PipeTransform {
    transform(
        value: any,
        digitsInfo?: string,
        locale?: string
    ): string | null;
}
transform()Скопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

pipeDeprecatedСкопировать ссылку на 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

serviceСкопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на relativeShortDate()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in short format

relativeLongDate()Скопировать ссылку на relativeLongDate()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in long format

relativeShortDateTime()Скопировать ссылку на relativeShortDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in short format with time

relativeLongDateTime()Скопировать ссылку на relativeLongDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

relative date in long format with time

absoluteDate()Скопировать ссылку на 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()Скопировать ссылку на absoluteShortDate()string
Parameters
dateD

date

currYear?boolean

should the year be shown forced

Returns
string

absolute date in short format

absoluteShortDateTime()Скопировать ссылку на absoluteShortDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

absolute date in short format with time

absoluteLongDate()Скопировать ссылку на absoluteLongDate()string
Parameters
dateD

date

currYear?boolean

should the year be shown forced

Returns
string

absolute date in long format

absoluteLongDateTime()Скопировать ссылку на absoluteLongDateTime()string
Parameters
dateD

date

options?DateTimeOptions

DateTimeOptions

Returns
string

absolute date in long format with time

openedRangeDate()Скопировать ссылку на openedRangeDate()string
Parameters
startDateD | null

start date

endDateD | null

end date

templateFormatterRangeTemplate

template

Returns
string

opened date

openedRangeDateTime()Скопировать ссылку на 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()Скопировать ссылку на rangeDate()string
Parameters
startDateD

start date

endDateD

end date

templateFormatterRangeTemplate

template

Returns
string

range date in template format

rangeDateTime()Скопировать ссылку на 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()Скопировать ссылку на rangeShortDate()string
Parameters
startDateD | null

start date

endDate?D

end date

Returns
string

range date in short format

rangeShortDateTime()Скопировать ссылку на 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()Скопировать ссылку на rangeLongDate()string
Parameters
startDateD | null

start date

endDate?D | null

end date

Returns
string

range date in long format

rangeLongDateTime()Скопировать ссылку на rangeLongDateTime()string
Parameters
startDateD | null

start date

endDate?D

end date

options?DateTimeOptions

DateTimeOptions

Returns
string

range date in long format with time

rangeMiddleDateTime()Скопировать ссылку на rangeMiddleDateTime()string
Parameters
startDateD

start date

endDateD

end date

options?DateTimeOptions

DateTimeOptions

Returns
string

range middle date with time

durationShortest()Скопировать ссылку на 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()Скопировать ссылку на 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

serviceСкопировать ссылку на 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

serviceСкопировать ссылку на 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;
}
changesСкопировать ссылку на 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()Скопировать ссылку на setTimezone()void

Activates a time zone.

offsetAt()Скопировать ссылку на 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

serviceСкопировать ссылку на 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]>;
}
changesСкопировать ссылку на 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.

localesСкопировать ссылку на localesKbqLocaleDataMap

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

dataСкопировать ссылку на dataSignal<KbqLocaleData>

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

itemsСкопировать ссылку на itemsSignal<KbqLocaleItem[]>

Registered locales, for rendering a locale picker.

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

Use the localeId signal. Will be removed in 22.0.0.

currentDeprecatedСкопировать ссылку на currentKbqLocaleData

Use the data signal. Will be removed in 22.0.0.

addLocale()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на params()Signal<KbqLocaleData[K]>

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

KbqLocalStorageStateStore

serviceСкопировать ссылку на 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;
}
changesСкопировать ссылку на 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

serviceDeprecatedСкопировать ссылку на 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

serviceСкопировать ссылку на 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;
}
changesСкопировать ссылку на 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

serviceСкопировать ссылку на 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()Скопировать ссылку на 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

serviceСкопировать ссылку на 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;
}
changesСкопировать ссылку на 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()Скопировать ссылку на isEnabled()boolean

Whether components are allowed to persist.

setEnabled()Скопировать ссылку на 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()Скопировать ссылку на components()readonly KbqStateSavingRef[]

Every live component that persists state, in registration order.

keys()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на remove()void

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

clear()Скопировать ссылку на clear()void

Removes every entry, claimed and orphaned alike.

clearOrphans()Скопировать ссылку на clearOrphans()void

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

KbqThemeCookieStore

serviceСкопировать ссылку на 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

serviceСкопировать ссылку на 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;
}
changesСкопировать ссылку на 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

serviceСкопировать ссылку на 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;
}
themesСкопировать ссылку на themesSignal<T[]>

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

modeСкопировать ссылку на modeSignal<KbqThemeMode>

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

staticThemeСкопировать ссылку на 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.

currentThemeСкопировать ссылку на currentThemeSignal<T | null>

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

colorSchemeСкопировать ссылку на colorSchemeSignal<KbqThemeColorScheme>

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

setThemes()Скопировать ссылку на setThemes()void

Replaces the registered theme set with a fully custom one.

setMode()Скопировать ссылку на 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()Скопировать ссылку на selectTheme()void

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

toggle()Скопировать ссылку на toggle()void

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

KbqWebStorageStateStore

serviceСкопировать ссылку на 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;
}
changesСкопировать ссылку на 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()Скопировать ссылку на getStorage()Storage

The storage this store reads from and writes to.

ShowOnControlDirtyErrorStateMatcher

serviceСкопировать ссылку на 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

serviceСкопировать ссылку на 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

serviceСкопировать ссылку на 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

classСкопировать ссылку на 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;
}
tabOutСкопировать ссылку на tabOutSubject<void>

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

changeСкопировать ссылку на changeSubject<number>

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

setActiveItem()Скопировать ссылку на 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()Скопировать ссылку на isTyping()boolean

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

withAllowedModifierKeys()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на updateActiveItem()void

Allows setting the active without any other effects.

Parameters
indexnumber

Index of the item to be set as active.

BaseFormatterPipe

classDeprecatedСкопировать ссылку на BaseFormatterPipe

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

class BaseFormatterPipe<D> {}

DateAdapter

abstract classСкопировать ссылку на 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;
}
localeChangesСкопировать ссылку на localeChangesObservable<any>

A stream that emits when the locale changes.

localeСкопировать ссылку на localeany

The locale to use for all dates.

getYear()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на getMinutes()number

Gets the minutes component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The minutes component

getSeconds()Скопировать ссылку на getSeconds()number

Gets the seconds component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The seconds component

getMilliseconds()Скопировать ссылку на getMilliseconds()number

Gets the milliseconds component of the given date.

Parameters
dateD

The date to extract from.

Returns
number

The milliseconds component

getTime()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на getFirstDayOfWeek()number

Gets the first day of the week.

Returns
number

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

getNumDaysInMonth()Скопировать ссылку на 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()Скопировать ссылку на clone()D

Clones the given date.

Parameters
dateD

The date to clone

Returns
D

A new date equal to the given date.

createDate()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на today()D

Gets today's date.

Returns
D

Today's date.

parse()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на isValid()boolean

Checks whether the given date is valid.

Parameters
dateD

The date to check.

Returns
boolean

Whether the date is valid.

invalid()Скопировать ссылку на invalid()D

Gets date instance that is not valid.

Returns
D

An invalid date.

startOf()Скопировать ссылку на startOf()D

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

deserialize()Скопировать ссылку на 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()Скопировать ссылку на setLocale()void

Sets the locale used for all dates.

Parameters
localeany

The new locale.

compareDate()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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

classСкопировать ссылку на EmptyFocusTrapStrategy
class EmptyFocusTrapStrategy implements FocusTrapInertStrategy {
    preventFocus(): void;
    allowFocus(): void;
}

FileValidators

classСкопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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

classСкопировать ссылку на 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;
}
tabOutСкопировать ссылку на tabOutSubject<void>

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

changeСкопировать ссылку на changeSubject<number>

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

setActiveItem()Скопировать ссылку на 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()Скопировать ссылку на 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()DeprecatedСкопировать ссылку на getFocusOrigin()FocusOrigin

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

isTyping()Скопировать ссылку на isTyping()boolean

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

withAllowedModifierKeys()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на updateActiveItem()void

Allows setting the active without any other effects.

Parameters
indexnumber

Index of the item to be set as active.

KbqAutoHideScrollStrategy

classСкопировать ссылку на 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;
}
hideСкопировать ссылку на hideObservable<void>

Emits once when the tracked element scrolls outside its boundary.

enable()Скопировать ссылку на enable()void

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

disable()Скопировать ссылку на disable()void

Unsubscribes from scroll events.

detach()Скопировать ссылку на detach()void

Disables the strategy and completes hide.

KbqOptionBase

abstract classСкопировать ссылку на 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()Скопировать ссылку на emitSelectionChangeEvent()void

Emits the selection change event.

KbqOptionSelectionChange

classСкопировать ссылку на KbqOptionSelectionChange

Event object emitted by KbqOption when selected or deselected.

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

KbqSelectAllEvent

classСкопировать ссылку на 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);
}
sourceСкопировать ссылку на sourceS

Component that emitted the event.

optionsСкопировать ссылку на optionsT[]

The selectable options affected by the toggle.

selectedСкопировать ссылку на selectedboolean

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

constructor()Скопировать ссылку на 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

classСкопировать ссылку на 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()Скопировать ссылку на emitSelectionChangeEvent()void

Emits the selection change event.

ListKeyManager

classСкопировать ссылку на 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;
}
tabOutСкопировать ссылку на tabOutSubject<void>

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

changeСкопировать ссылку на changeSubject<number>

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

isTyping()Скопировать ссылку на isTyping()boolean

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

withAllowedModifierKeys()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на updateActiveItem()void

Allows setting the active without any other effects.

Parameters
indexnumber

Index of the item to be set as active.

PasswordValidators

classСкопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на 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

classСкопировать ссылку на 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()Скопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на createFakeEvent

Creates a fake event object with any desired event type.

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

createKeyboardEvent

functionСкопировать ссылку на createKeyboardEvent

Dispatches a keydown event from an element.

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

createMouseEvent

functionСкопировать ссылку на createMouseEvent

Creates a browser MouseEvent with the specified options.

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

createSearchPredicate

functionСкопировать ссылку на 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

functionСкопировать ссылку на createTouchEvent

Creates a browser TouchEvent with the specified pointer coordinates.

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

dispatchEvent

functionСкопировать ссылку на dispatchEvent

Utility to dispatch any event on a Node.

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

dispatchFakeEvent

functionСкопировать ссылку на dispatchFakeEvent

Shorthand to dispatch a fake event on a specified node.

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

dispatchKeyboardEvent

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на dispatchTouchEvent

Shorthand to dispatch a touch event on the specified coordinates.

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

escapeRegExp

functionСкопировать ссылку на escapeRegExp

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

function escapeRegExp(value: string): string;

findSearchMatchRanges

functionСкопировать ссылку на 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

functionСкопировать ссылку на formatNumberWithLocale

Formats a number value according to locale and formatting options

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

getFormattedSizeParts

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionDeprecatedСкопировать ссылку на isBoolean

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

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

isMac

functionСкопировать ссылку на isMac

Whether the current platform is a Mac.

function isMac(): boolean;

KBQ_DEFAULT_LOCALE_DATA_FACTORY

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на 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

functionСкопировать ссылку на wrappedErrorMessage
function wrappedErrorMessage(e: Error): RegExp;

CrossFieldErrorScope

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на 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;
}
disabledoptionalСкопировать ссылку на disabledboolean | Signal<boolean>

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

IFocusableOption

interfaceСкопировать ссылку на 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;
}
disabledoptionalСкопировать ссылку на disabledboolean | Signal<boolean>

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

KbqA11yLocaleConfiguration

typeСкопировать ссылку на 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;
};
closeСкопировать ссылку на 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.

saveСкопировать ссылку на savestring

Confirm button of an inline edit.

savingСкопировать ссылку на savingstring

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

saveFailedСкопировать ссылку на saveFailedstring

Announced when a background save of an inline edit fails.

cancelСкопировать ссылку на cancelstring

Discard button of an inline edit.

editСкопировать ссылку на editstring

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

removeAllСкопировать ссылку на removeAllstring

Button removing every notification at once.

removeСкопировать ссылку на removestring

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

breadcrumbsСкопировать ссылку на breadcrumbsstring

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

expandBreadcrumbsСкопировать ссылку на expandBreadcrumbsstring

Breadcrumbs button revealing the items hidden by overflow.

previousMonthСкопировать ссылку на previousMonthstring

Calendar button switching to the previous month.

currentDateСкопировать ссылку на currentDatestring

Calendar button switching back to the current date.

nextMonthСкопировать ссылку на nextMonthstring

Calendar button switching to the next month.

clearСкопировать ссылку на clearstring

Form field button that clears the control value.

showPasswordСкопировать ссылку на showPasswordstring

Password form field button that reveals the password.

hidePasswordСкопировать ссылку на hidePasswordstring

Password form field button that masks the password.

resizeColumnsСкопировать ссылку на resizeColumnsstring

Separator that resizes the columns of a description list.

resizePanelsСкопировать ссылку на resizePanelsstring

Separator that resizes the panels of a splitter.

toastRegionСкопировать ссылку на toastRegionstring

Region holding the stack of toast notifications.

optionActionsСкопировать ссылку на optionActionsstring

Trailing action button of a list or tree option.

progressBarСкопировать ссылку на progressBarstring

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

KbqActionsPanelLocaleConfiguration

typeСкопировать ссылку на KbqActionsPanelLocaleConfiguration

Locale configuration for KbqActionsPanelModule.

type KbqActionsPanelLocaleConfiguration = {
    closeTooltip: string;
};

KbqAnimationsConfig

interfaceСкопировать ссылку на KbqAnimationsConfig

Configuration of the motion of Koobiq components.

interface KbqAnimationsConfig {
    animationsDisabled?: boolean;
}
animationsDisabledoptionalСкопировать ссылку на animationsDisabledboolean

Whether components skip their enter, leave and state animations.

KbqAppSwitcherLocaleConfiguration

typeСкопировать ссылку на KbqAppSwitcherLocaleConfiguration

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

type KbqAppSwitcherLocaleConfiguration = {
    searchPlaceholder: string;
    searchEmptyResult: string;
    sitesHeader: string;
    clearSearch: string;
};
searchPlaceholderСкопировать ссылку на searchPlaceholderstring

Placeholder and accessible name of the search field.

searchEmptyResultСкопировать ссылку на searchEmptyResultstring

Message shown when no application matches the search query.

sitesHeaderСкопировать ссылку на sitesHeaderstring

Heading above the list of other sites.

clearSearchСкопировать ссылку на clearSearchstring

Accessible name of the button that clears the search field.

KbqAutoHideScrollStrategyConfig

interfaceСкопировать ссылку на KbqAutoHideScrollStrategyConfig

Configuration options for KbqAutoHideScrollStrategy.

interface KbqAutoHideScrollStrategyConfig {
    originElement?: HTMLElement;
    scrollThrottle?: number;
}
originElementoptionalСкопировать ссылку на originElementHTMLElement

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

scrollThrottleoptionalСкопировать ссылку на scrollThrottlenumber

Scroll event throttle in ms. Defaults to 20.

KbqAutoHideScrollStrategyHooks

interfaceСкопировать ссылку на KbqAutoHideScrollStrategyHooks

Lifecycle hooks for KbqAutoHideScrollStrategy, passed via kbqAutoHideScrollStrategyFactory.

interface KbqAutoHideScrollStrategyHooks {
    onHide?: () => void;
}
onHideoptionalСкопировать ссылку на onHide() => void

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

KbqBaseFileUploadLocaleConfiguration

interfaceСкопировать ссылку на KbqBaseFileUploadLocaleConfiguration
interface KbqBaseFileUploadLocaleConfiguration {
    captionText: string;
    captionTextOnlyFolder: string;
    captionTextWithFolder: string;
    browseLink: string;
    browseLinkFolder: string;
    browseLinkFolderMixed?: string;
}

KbqCaretRect

interfaceСкопировать ссылку на 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;
}
xСкопировать ссылку на xnumber

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

yСкопировать ссылку на ynumber

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

widthСкопировать ссылку на widthnumber

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

heightСкопировать ссылку на heightnumber

Height of one line of text in the field.

KbqCheckableClickAction

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на KbqCheckableClickResult

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

interface KbqCheckableClickResult {
    readonly shouldToggle: boolean;
    readonly shouldClearIndeterminate: boolean;
}
shouldToggleСкопировать ссылку на shouldToggleboolean

Whether checked should be toggled and a change event emitted.

shouldClearIndeterminateСкопировать ссылку на shouldClearIndeterminateboolean

Whether indeterminate should be cleared and an indeterminateChange event emitted.

KbqCheckedState

typeСкопировать ссылку на KbqCheckedState

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

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

KbqClampedTextLocaleConfiguration

typeСкопировать ссылку на KbqClampedTextLocaleConfiguration

Locale configuration for KbqClampedText

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

KbqCodeBlockLocaleConfiguration

typeСкопировать ссылку на KbqCodeBlockLocaleConfiguration

Locale configuration for KbqCodeBlockModule.

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

KbqConnectedOverlayOriginProvider

interfaceСкопировать ссылку на 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()Скопировать ссылку на 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

typeСкопировать ссылку на KbqDateFormats
type KbqDateFormats = DateFormats;

KbqDatepickerLocaleConfiguration

typeСкопировать ссылку на KbqDatepickerLocaleConfiguration

Locale configuration for KbqDatepickerModule.

Only placeholder reaches the rendered output — see dateInput.

type KbqDatepickerLocaleConfiguration = {
    placeholder: string;
    /** @deprecated */
    dateInput?: string;
};
placeholderСкопировать ссылку на placeholderstring

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

dateInputoptionalDeprecatedСкопировать ссылку на 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

typeСкопировать ссылку на 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

typeСкопировать ссылку на KbqDefaultSizes

Defines the available size options for Koobiq components.

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

KbqDelayLoadingIndicatorOptions

typeСкопировать ссылку на KbqDelayLoadingIndicatorOptions

Timing options of kbqDelayLoadingIndicator.

type KbqDelayLoadingIndicatorOptions = {
    delay?: number;
    minDuration?: number;
};
delayoptionalСкопировать ссылку на delaynumber

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

minDurationoptionalСкопировать ссылку на minDurationnumber

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

KbqEnumValues

typeСкопировать ссылку на 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

typeСкопировать ссылку на KbqFileTypeSpecifier

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

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

KbqFileUploadA11yLocaleConfiguration

typeСкопировать ссылку на 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;
};
fileAddedСкопировать ссылку на fileAddedstring

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

fileRemovedСкопировать ссылку на fileRemovedstring

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

filesNotAddedСкопировать ссылку на filesNotAddedstring

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

KbqFileUploadLocaleConfiguration

typeСкопировать ссылку на KbqFileUploadLocaleConfiguration

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

type KbqFileUploadLocaleConfiguration = {
    a11y: KbqFileUploadA11yLocaleConfiguration;
    single: KbqBaseFileUploadLocaleConfiguration;
    multiple: KbqMultipleFileUploadLocaleConfiguration;
};
a11yСкопировать ссылку на a11yKbqFileUploadA11yLocaleConfiguration

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

multipleСкопировать ссылку на multipleKbqMultipleFileUploadLocaleConfiguration

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

KbqFilterBarLocaleConfiguration

typeСкопировать ссылку на 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.saveChangesHeaderСкопировать ссылку на filters.saveChangesHeaderstring

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

filters.saveChangesButtonСкопировать ссылку на filters.saveChangesButtonstring

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

filters.saveAsNewHeaderСкопировать ссылку на filters.saveAsNewHeaderstring

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

filters.saveAsNewButtonСкопировать ссылку на filters.saveAsNewButtonstring

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

add.addedAnnouncementСкопировать ссылку на add.addedAnnouncementstring

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

pipe.noOptionsСкопировать ссылку на pipe.noOptionsstring

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

datePipe.customPeriodMinIntervalErrorHintСкопировать ссылку на datePipe.customPeriodMinIntervalErrorHintstring

Supports the {{ value }} placeholder.

datePipe.customPeriodMaxIntervalErrorHintСкопировать ссылку на datePipe.customPeriodMaxIntervalErrorHintstring

Supports the {{ value }} placeholder.

KbqFlexDirection

typeСкопировать ссылку на KbqFlexDirection

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

type KbqFlexDirection = 'row' | 'column';

KbqFlexWrap

typeСкопировать ссылку на KbqFlexWrap

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

type KbqFlexWrap = 'nowrap' | 'wrap';

KbqFormattersLocaleConfiguration

typeСкопировать ссылку на KbqFormattersLocaleConfiguration

Locale configuration for the number formatter pipes.

type KbqFormattersLocaleConfiguration = {
    number: {
        rounding: KbqNumberRoundingLocaleConfiguration;
        decimal?: KbqNumberFormatOptions;
    };
};
number.decimaloptionalСкопировать ссылку на number.decimalKbqNumberFormatOptions

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

KbqInputLocaleConfiguration

typeСкопировать ссылку на KbqInputLocaleConfiguration

Locale configuration for the library's inputs.

type KbqInputLocaleConfiguration = {
    number: KbqInputNumberLocaleConfiguration;
};

KbqInputNumberLocaleConfiguration

typeСкопировать ссылку на KbqInputNumberLocaleConfiguration

Locale configuration for KbqNumberInput.

type KbqInputNumberLocaleConfiguration = {
    groupSeparator: string[];
    fractionSeparator: string;
    startFormattingFrom?: number;
} & KbqNumberFormatOptions;
groupSeparatorСкопировать ссылку на groupSeparatorstring[]

Characters recognized as group (thousands) separators.

fractionSeparatorСкопировать ссылку на fractionSeparatorstring

Character used for the decimal separator

startFormattingFromoptionalСкопировать ссылку на startFormattingFromnumber

Number of digits before applying group separators

KbqLocaleData

interfaceСкопировать ссылку на 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;
}
usernameСкопировать ссылку на usernameKbqUsernameLocaleConfiguration

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

KbqLocaleDataInput

interfaceСкопировать ссылку на 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

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на 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

typeСкопировать ссылку на KbqLocaleId

Identifiers of the locales shipped with the library.

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

KbqLocaleIdLike

typeСкопировать ссылку на 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

typeСкопировать ссылку на KbqLocaleItem

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

type KbqLocaleItem = {
    id: KbqLocaleIdLike;
    name: string;
};
nameСкопировать ссылку на namestring

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

KbqLocaleSection

typeСкопировать ссылку на KbqLocaleSection

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

type KbqLocaleSection = keyof KbqLocaleData;

KbqLocaleStringsData

interfaceСкопировать ссылку на 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;
}
usernameСкопировать ссылку на usernameKbqUsernameLocaleConfiguration

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

KbqMeasurementSystemType

typeСкопировать ссылку на KbqMeasurementSystemType

Unit systems as union type

type KbqMeasurementSystemType = keyof typeof KbqMeasurementSystem;

KbqMultipleFileUploadLocaleConfiguration

interfaceСкопировать ссылку на KbqMultipleFileUploadLocaleConfiguration
interface KbqMultipleFileUploadLocaleConfiguration extends KbqBaseFileUploadLocaleConfiguration {
    captionTextWhenSelected: string;
    captionTextForCompactSize: string;
    title: string;
    captionText: string;
    captionTextOnlyFolder: string;
    captionTextWithFolder: string;
    browseLink: string;
    browseLinkFolder: string;
    browseLinkFolderMixed?: string;
}

KbqMultipleInput

typeСкопировать ссылку на 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

typeСкопировать ссылку на KbqNavbarLocaleConfiguration

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

type KbqNavbarLocaleConfiguration = {
    toggle: {
        expand: string;
        collapse: string;
    };
};
toggle.expandСкопировать ссылку на toggle.expandstring

Accessible name of the toggle while the navbar is collapsed.

toggle.collapseСкопировать ссылку на toggle.collapsestring

Accessible name of the toggle while the navbar is expanded.

KbqNotificationCenterLocaleConfiguration

typeСкопировать ссылку на 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;
};
notificationsСкопировать ссылку на notificationsstring

Heading of the notification center.

removeСкопировать ссылку на removestring

Accessible name of a single notification's remove button.

removeAllСкопировать ссылку на removeAllstring

Label of the action clearing every notification at once.

doNotDisturbСкопировать ссылку на doNotDisturbstring

Label of the "do not disturb" switch.

showPopUpNotificationsСкопировать ссылку на showPopUpNotificationsstring

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

noNotificationsСкопировать ссылку на noNotificationsstring

Message shown when there is nothing to display.

failedToLoadNotificationsСкопировать ссылку на failedToLoadNotificationsstring

Message shown when loading the notifications failed.

repeatСкопировать ссылку на repeatstring

Label of the button retrying a failed load.

loadingMoreСкопировать ссылку на loadingMorestring

Announced while the next page of notifications is loading.

unreadСкопировать ссылку на unreadstring

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

KbqNumberFormatOptions

typeСкопировать ссылку на KbqNumberFormatOptions

Options for overriding locale-based number formatting

type KbqNumberFormatOptions = {
    viewGroupSeparator?: string;
};
viewGroupSeparatoroptionalСкопировать ссылку на viewGroupSeparatorstring

Overrides the default group separator in the formatted output

KbqNumericPipe

interfaceСкопировать ссылку на 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

interfaceСкопировать ссылку на 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

typeСкопировать ссылку на KbqOrientation

Defines component orientation.

type KbqOrientation = 'horizontal' | 'vertical';

KbqOverflowShadowSource

interfaceСкопировать ссылку на 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;
}
onScrollСкопировать ссылку на onScrollObservable<unknown>

Emits whenever the wrapped element scrolls.

getScrollElement()Скопировать ссылку на getScrollElement()HTMLElement | null

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

KbqOverflowShadowState

interfaceСкопировать ссылку на KbqOverflowShadowState

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

interface KbqOverflowShadowState {
    top: boolean;
    bottom: boolean;
}
topСкопировать ссылку на topboolean

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

bottomСкопировать ссылку на bottomboolean

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

KbqOverlayLayerOrigin

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на KbqOverlayLayers

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

interface KbqOverlayLayers {
    adopt(overlayRef: OverlayRef, origin: KbqOverlayLayerOrigin): void;
}
adopt()Скопировать ссылку на 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

typeСкопировать ссылку на 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

typeСкопировать ссылку на 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

typeСкопировать ссылку на 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

typeСкопировать ссылку на KbqPanelMinWidth

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

type KbqPanelMinWidth = number | null;

KbqPanelWidth

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на KbqParentPopup
interface KbqParentPopup {
    closedStream: Observable<boolean>;
}

KbqPartialLocaleData

typeСкопировать ссылку на KbqPartialLocaleData

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

type KbqPartialLocaleData = KbqDeepPartial<KbqLocaleData>;

KbqPopoverConfirmLocaleConfiguration

typeСкопировать ссылку на 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;
};
confirmTextСкопировать ссылку на confirmTextstring

Question rendered in the body of the confirmation popover.

confirmButtonTextСкопировать ссылку на confirmButtonTextstring

Caption of the button that confirms the action.

KbqPopUpPlacementValues

typeСкопировать ссылку на KbqPopUpPlacementValues
type KbqPopUpPlacementValues = KbqEnumValues<PopUpPlacements>;

KbqPopUpSizeValues

typeСкопировать ссылку на KbqPopUpSizeValues
type KbqPopUpSizeValues = KbqEnumValues<PopUpSizes>;

KbqPseudoCheckboxState

typeСкопировать ссылку на KbqPseudoCheckboxState
type KbqPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate' | boolean;

KbqScrollAxis

typeСкопировать ссылку на KbqScrollAxis

Axis a scroll-overflow check applies to.

type KbqScrollAxis = 'horizontal' | 'vertical';

KbqSearchExpandableLocaleConfiguration

typeСкопировать ссылку на KbqSearchExpandableLocaleConfiguration

Locale configuration for KbqSearchExpandableModule.

type KbqSearchExpandableLocaleConfiguration = {
    tooltip: string;
    placeholder: string;
};
tooltipСкопировать ссылку на tooltipstring

Accessible name and tooltip of the collapsed search trigger.

placeholderСкопировать ссылку на placeholderstring

Placeholder of the expanded search field.

KbqSelectAllAdapter

interfaceСкопировать ссылку на 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;
}
itemsСкопировать ссылку на itemsreadonly T[]

All candidate items, in render/model order.

isSelectableСкопировать ссылку на isSelectable(item: T) => boolean

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

isSelectedСкопировать ссылку на isSelected(item: T) => boolean

Current selected state of the item.

setSelectedСкопировать ссылку на 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

typeСкопировать ссылку на 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;
};
hiddenItemsTextСкопировать ссылку на hiddenItemsTextstring

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

selectAllСкопировать ссылку на selectAllstring

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

KbqShadowDomOverlayHost

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на 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>;
}
isAttachedСкопировать ссылку на 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.

openedChangeСкопировать ссылку на openedChangeObservable<boolean>

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

KbqSizeUnitsConfig

typeDeprecatedСкопировать ссылку на KbqSizeUnitsConfig

Use KbqSizeUnitsLocaleConfiguration. Will be removed in 22.0.0.

type KbqSizeUnitsConfig = KbqSizeUnitsLocaleConfiguration;

KbqSizeUnitsLocaleConfiguration

interfaceСкопировать ссылку на 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; };
}
defaultUnitSystemСкопировать ссылку на defaultUnitSystemKbqMeasurementSystemType

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

defaultPrecisionСкопировать ссылку на defaultPrecisionnumber

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

KbqStateSavingKeyResolver

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на 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;
}
nameСкопировать ссылку на namestring

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

keyСкопировать ссылку на keystring

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

enabledСкопировать ссылку на enabledboolean

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

stateСкопировать ссылку на stateunknown

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

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

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

clear()Скопировать ссылку на clear()void

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

KbqStateStore

interfaceСкопировать ссылку на 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[];
}
changesoptionalСкопировать ссылку на 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()Скопировать ссылку на getState()unknown

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

setState()Скопировать ссылку на setState()void

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

removeState()Скопировать ссылку на removeState()void

Removes the payload persisted under the key.

keys()optionalСкопировать ссылку на 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

typeСкопировать ссылку на KbqStickToWindowPlacementValues
type KbqStickToWindowPlacementValues = KbqEnumValues<
    PopUpPlacements.Top | PopUpPlacements.Right | PopUpPlacements.Bottom | PopUpPlacements.Left
>;

KbqTextAnchor

typeСкопировать ссылку на KbqTextAnchor

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

type KbqTextAnchor = HTMLInputElement | HTMLTextAreaElement | HTMLElement;

KbqTextMirror

interfaceСкопировать ссылку на 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()Скопировать ссылку на 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()Скопировать ссылку на hide()void

Hides the layer until the next update.

KbqTextQuery

interfaceСкопировать ссылку на 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;
}
startСкопировать ссылку на startnumber

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

endСкопировать ссылку на endnumber

Index the query ends at — the caret.

textСкопировать ссылку на textstring

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

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

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

KbqTextQueryOptions

interfaceСкопировать ссылку на KbqTextQueryOptions

Options of kbqGetTextQuery.

interface KbqTextQueryOptions {
    triggers?: readonly string[];
    minLength?: number;
}
triggersoptionalСкопировать ссылку на triggersreadonly string[]

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

minLengthoptionalСкопировать ссылку на minLengthnumber

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

KbqThemeColorScheme

typeСкопировать ссылку на 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

interfaceСкопировать ссылку на KbqThemeConfig

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

interface KbqThemeConfig {
    name: string;
    className: string;
    colorScheme: KbqThemeColorScheme;
}
classNameСкопировать ссылку на classNamestring

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

KbqThemeMode

typeСкопировать ссылку на KbqThemeMode

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

type KbqThemeMode = 'auto' | KbqThemeColorScheme;

KbqThemeSettings

interfaceСкопировать ссылку на KbqThemeSettings

Settings accepted by KBQ_THEME_CONFIG / kbqThemeProvider().

interface KbqThemeSettings<T extends KbqThemeConfig = KbqThemeConfig> {
    themes: T[];
    mode: KbqThemeMode;
    theme: string | null;
    storageKey: string;
}
themesСкопировать ссылку на themesT[]

Themes available to the service. Defaults to KBQ_DEFAULT_THEMES.

modeСкопировать ссылку на modeKbqThemeMode

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

themeСкопировать ссылку на 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.

storageKeyСкопировать ссылку на storageKeystring

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

KbqThemeStore

interfaceСкопировать ссылку на 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;
}
changesoptionalСкопировать ссылку на 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()Скопировать ссылку на 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.

getStaticTheme()Скопировать ссылку на 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()Скопировать ссылку на setStaticTheme()void

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

KbqTimepickerLocaleConfiguration

typeСкопировать ссылку на KbqTimepickerLocaleConfiguration

Locale configuration for KbqTimepickerModule.

type KbqTimepickerLocaleConfiguration = {
    placeholder: {
        full: string;
        short: string;
    };
};
placeholderСкопировать ссылку на placeholder{ full: string; short: string; }

Placeholders keyed by the time format rendered by the input.

placeholder.fullСкопировать ссылку на placeholder.fullstring

Placeholder for the HH:mm:ss format.

placeholder.shortСкопировать ссылку на placeholder.shortstring

Placeholder for the HH:mm format.

KbqTimeRangeLocaleConfiguration

typeСкопировать ссылку на 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.outOfBoundsErrorСкопировать ссылку на editor.outOfBoundsErrorstring

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

editor.allTimeOptionoptionalСкопировать ссылку на editor.allTimeOptionstring

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

editor.currentQuarterOptionoptionalСкопировать ссылку на editor.currentQuarterOptionstring

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

editor.currentYearOptionoptionalСкопировать ссылку на editor.currentYearOptionstring

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

KbqTimezoneLike

typeСкопировать ссылку на 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

typeСкопировать ссылку на KbqTimezoneLocaleConfiguration

Locale configuration for KbqTimezoneModule.

type KbqTimezoneLocaleConfiguration = {
    searchPlaceholder: string;
    otherCountriesLabel: string;
};
searchPlaceholderСкопировать ссылку на searchPlaceholderstring

Placeholder of the search field inside the timezone select.

otherCountriesLabelСкопировать ссылку на otherCountriesLabelstring

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

KbqTitleTextRef

interfaceСкопировать ссылку на KbqTitleTextRef
interface KbqTitleTextRef {
    textElement?: ElementRef;
    parentTextElement?: ElementRef;
}

KbqToggleSelectAllOptions

interfaceСкопировать ссылку на KbqToggleSelectAllOptions

Options for toggleSelectAll.

interface KbqToggleSelectAllOptions {
    allowDeselect?: boolean;
}
allowDeselectoptionalСкопировать ссылку на allowDeselectboolean

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

KbqUnitSystem

interfaceСкопировать ссылку на KbqUnitSystem
interface KbqUnitSystem {
    abbreviations: string[];
    base: number;
    power: number;
}

KbqUsernameLocaleConfiguration

typeСкопировать ссылку на 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;
};
siteLabelСкопировать ссылку на siteLabelstring

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

KeyboardNavigationHandler

interfaceСкопировать ссылку на KeyboardNavigationHandler

Handler that will update scroll position of elements inside overlay

interface KeyboardNavigationHandler {
    scrollActiveOptionIntoView(): void;
}
scrollActiveOptionIntoView()Скопировать ссылку на scrollActiveOptionIntoView()void

Scrolls the active option into view.

ListKeyManagerModifierKey

typeСкопировать ссылку на ListKeyManagerModifierKey

Modifier keys handled by the ListKeyManager.

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

ListKeyManagerOption

interfaceСкопировать ссылку на ListKeyManagerOption
interface ListKeyManagerOption {
    disabled?: boolean | Signal<boolean>;
    getLabel?(): string;
}
disabledoptionalСкопировать ссылку на disabledboolean | Signal<boolean>

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

KbqComponentColors

enumСкопировать ссылку на KbqComponentColors
enum KbqComponentColors {
    Theme = 'theme',
    ThemeFade = 'theme-fade',
    Contrast = 'contrast',
    ContrastFade = 'contrast-fade',
    Error = 'error',
    Warning = 'warning',
    Success = 'success',
    Default = 'contrast',
    Empty = 'empty'
}

KbqMeasurementSystem

enumСкопировать ссылку на 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

enumСкопировать ссылку на KbqThemeNames

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

enum KbqThemeNames {
    Light = 'light',
    Dark = 'dark'
}
LightСкопировать ссылку на Light'light'

Name for the built-in light theme.

DarkСкопировать ссылку на Dark'dark'

Name for the built-in dark theme.

KbqThemeSelector

enumСкопировать ссылку на KbqThemeSelector

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

enum KbqThemeSelector {
    Light = 'kbq-light',
    Dark = 'kbq-dark'
}
LightСкопировать ссылку на Light'kbq-light'

Class for the built-in light theme.

DarkСкопировать ссылку на Dark'kbq-dark'

Class for the built-in dark theme.

MultipleMode

enumСкопировать ссылку на MultipleMode
enum MultipleMode {
    CHECKBOX = 'checkbox',
    KEYBOARD = 'keyboard'
}

PopUpPlacements

enumСкопировать ссылку на 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

enumСкопировать ссылку на PopUpSizes
enum PopUpSizes {
    Small = 'small',
    Medium = 'medium',
    Large = 'large',
    Custom = 'custom'
}

PopUpTriggers

enumСкопировать ссылку на PopUpTriggers
enum PopUpTriggers {
    Click = 'click',
    Focus = 'focus',
    Hover = 'hover',
    Keydown = 'keydown',
    Program = 'program'
}

PopUpVisibility

enumСкопировать ссылку на PopUpVisibility
enum PopUpVisibility {
    Initial = 'initial',
    Visible = 'visible',
    Hidden = 'hidden'
}

applyPopupMargins

constСкопировать ссылку на applyPopupMargins
const applyPopupMargins: (renderer: Renderer2, element: HTMLElement, name: string, value: string) => void;

defaultOffsetY

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

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

const defaultOffsetY: number;

enUSFormattersData

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

Converts bytes to Kb, Mb, Gb

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

getNodesWithoutComments

constСкопировать ссылку на getNodesWithoutComments
const getNodesWithoutComments: (nodes: NodeList) => Node[];

isElement

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

Whether the value is Element.

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

isHtmlElement

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

Whether the value is HTMLElement.

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

isHtmlElementOrNull

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

Whether the value is HTMLElement or null.

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

isNull

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

Whether the value is null.

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

isUndefined

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

Whether the value is undefined.

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

KBQ_A11Y_LOCALE_CONFIGURATION

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на KBQ_DATE_FORMATS
const KBQ_DATE_FORMATS: InjectionToken<DateFormats>;

KBQ_DATE_LOCALE

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

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

const KBQ_DATE_LOCALE: InjectionToken<string>;

KBQ_DATE_TIMEZONE

constСкопировать ссылку на 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

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

KBQ_DEFAULT_THEMES

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

KBQ_LOCALE_DATA

constСкопировать ссылку на KBQ_LOCALE_DATA
const KBQ_LOCALE_DATA: InjectionToken<KbqLocaleDataInput>;

KBQ_LOCALE_ID

constСкопировать ссылку на KBQ_LOCALE_ID
const KBQ_LOCALE_ID: InjectionToken<KbqLocaleIdLike>;

KBQ_LOCALE_SERVICE

constСкопировать ссылку на KBQ_LOCALE_SERVICE
const KBQ_LOCALE_SERVICE: InjectionToken<KbqLocaleService>;

KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS

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

KBQ_NUMBER_FORMATTER_OPTIONS

constСкопировать ссылку на KBQ_NUMBER_FORMATTER_OPTIONS
const KBQ_NUMBER_FORMATTER_OPTIONS: InjectionToken<ParsedDigitsInfo>;

KBQ_OPTION_ACTION_PARENT

constСкопировать ссылку на KBQ_OPTION_ACTION_PARENT
const KBQ_OPTION_ACTION_PARENT: InjectionToken<KbqOptionActionParent>;

KBQ_OPTION_PARENT_COMPONENT

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constDeprecatedСкопировать ссылку на 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

constDeprecatedСкопировать ссылку на 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

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

KBQ_SIZE_UNITS_LOCALE_CONFIGURATION

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

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

const KBQ_THEME_CONFIG: InjectionToken<KbqThemeSettings>;

KBQ_THEME_STORE

constСкопировать ссылку на 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

constСкопировать ссылку на KBQ_TITLE_TEXT_REF
const KBQ_TITLE_TEXT_REF: InjectionToken<KbqTitleTextRef>;

KBQ_WINDOW

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

An abstraction over the global window object.

const KBQ_WINDOW: InjectionToken<Window>;

kbqA11yLocaleConfigurationProvider

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

Utility provider for ErrorStateMatcher.

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

kbqFilesizeFormatterConfigurationProvider

constDeprecatedСкопировать ссылку на kbqFilesizeFormatterConfigurationProvider

Use kbqSizeUnitsLocaleConfigurationProvider. Will be removed in 22.0.0.

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

kbqFocusAndReveal

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

Injects the native element for the current component.

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

kbqIsElementOrigin

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

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

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

kbqResolveTimezoneOffset

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

ptBRFormattersData

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на 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

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

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

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

tkTMFormattersData

constСкопировать ссылку на 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

constСкопировать ссылку на 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

constСкопировать ссылку на VERSION
const VERSION: Version;
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.