@koobiq/components 18.31.0 → 18.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions-panel/actions-panel-config.d.ts +2 -0
- package/actions-panel/actions-panel.d.ts +3 -57
- package/autocomplete/autocomplete-trigger.directive.d.ts +3 -4
- package/autocomplete/autocomplete.component.d.ts +1 -0
- package/autocomplete/autocomplete.module.d.ts +1 -1
- package/button-toggle/button-toggle.module.d.ts +3 -4
- package/code-block/code-block-highlight.d.ts +1 -2
- package/code-block/code-block.d.ts +57 -10
- package/core/common-behaviors/color.d.ts +3 -0
- package/core/common-behaviors/common-module.d.ts +16 -3
- package/core/form-field/form-field-ref.d.ts +5 -3
- package/core/option/option.d.ts +2 -2
- package/core/public-api.d.ts +1 -0
- package/core/styles/common/_select.scss +10 -24
- package/core/styles/theming/_theming.scss +0 -4
- package/core/tokens/index.d.ts +1 -0
- package/core/tokens/window.d.ts +5 -0
- package/core/validation/validation.d.ts +23 -2
- package/datepicker/datepicker-input.scss +1 -5
- package/dropdown/dropdown-trigger.directive.d.ts +1 -0
- package/ellipsis-center/ellipsis-center.directive.d.ts +7 -1
- package/esm2022/actions-panel/actions-panel-config.mjs +1 -1
- package/esm2022/actions-panel/actions-panel.mjs +16 -113
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +9 -13
- package/esm2022/autocomplete/autocomplete.component.mjs +10 -2
- package/esm2022/autocomplete/autocomplete.module.mjs +5 -11
- package/esm2022/breadcrumbs/breadcrumbs.mjs +1 -1
- package/esm2022/button-toggle/button-toggle.module.mjs +5 -6
- package/esm2022/code-block/code-block-highlight.mjs +8 -12
- package/esm2022/code-block/code-block.mjs +60 -18
- package/esm2022/core/common-behaviors/color.mjs +4 -1
- package/esm2022/core/common-behaviors/common-module.mjs +19 -26
- package/esm2022/core/form-field/form-field-ref.mjs +3 -4
- package/esm2022/core/option/option.mjs +7 -5
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/tokens/index.mjs +2 -0
- package/esm2022/core/tokens/window.mjs +19 -0
- package/esm2022/core/utils/utils.mjs +2 -1
- package/esm2022/core/validation/validation.mjs +21 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +3 -3
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +8 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/filter-bar/filter-bar.mjs +17 -3
- package/esm2022/filter-bar/filter-search.mjs +2 -2
- package/esm2022/filter-bar/filters.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-date.mjs +5 -11
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +5 -11
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-multi-tree-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-text.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-tree-select.mjs +2 -2
- package/esm2022/form-field/cleaner.mjs +11 -6
- package/esm2022/form-field/error.mjs +20 -0
- package/esm2022/form-field/fieldset.mjs +84 -0
- package/esm2022/form-field/form-field-control.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +247 -74
- package/esm2022/form-field/form-field.module.mjs +59 -47
- package/esm2022/form-field/hint.mjs +10 -18
- package/esm2022/form-field/label.mjs +19 -0
- package/esm2022/form-field/password-hint.mjs +6 -5
- package/esm2022/form-field/password-toggle.mjs +52 -27
- package/esm2022/form-field/prefix.mjs +9 -3
- package/esm2022/form-field/public-api.mjs +5 -2
- package/esm2022/form-field/reactive-password-hint.mjs +65 -0
- package/esm2022/form-field/stepper.mjs +34 -16
- package/esm2022/form-field/suffix.mjs +8 -3
- package/esm2022/form-field/validate.directive.mjs +16 -19
- package/esm2022/input/input-number.mjs +7 -2
- package/esm2022/input/input.module.mjs +1 -5
- package/esm2022/modal/modal-util.mjs +2 -1
- package/esm2022/navbar/navbar-item.component.mjs +10 -11
- package/esm2022/overflow-items/overflow-items.mjs +27 -10
- package/esm2022/radio/radio.module.mjs +4 -5
- package/esm2022/scrollbar/scrollbar.component.mjs +14 -11
- package/esm2022/scrollbar/scrollbar.directive.mjs +2 -1
- package/esm2022/select/select.component.mjs +11 -8
- package/esm2022/sidepanel/sidepanel.module.mjs +1 -5
- package/esm2022/splitter/splitter.component.mjs +5 -3
- package/esm2022/tabs/paginated-tab-header.mjs +6 -2
- package/esm2022/tabs/tabs.module.mjs +1 -5
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/textarea/textarea.component.mjs +7 -6
- package/esm2022/textarea/textarea.module.mjs +4 -5
- package/esm2022/timezone/timezone-select.component.mjs +6 -4
- package/esm2022/toast/toast-animations.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/toggle/toggle.module.mjs +4 -5
- package/esm2022/top-bar/top-bar.mjs +2 -2
- package/esm2022/tree/padding.directive.mjs +8 -6
- package/esm2022/tree-select/tree-select.component.mjs +18 -13
- package/fesm2022/koobiq-components-actions-panel.mjs +16 -112
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +21 -24
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +5 -5
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +65 -28
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +68 -35
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +4 -4
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +3 -2
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +7 -0
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +30 -29
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +610 -219
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +7 -5
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +1 -0
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +9 -10
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +26 -9
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +4 -4
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +14 -10
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +11 -8
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +1 -4
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +4 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +5 -5
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +2 -2
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +9 -8
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +5 -3
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +3 -3
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +6 -6
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +2 -2
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +18 -13
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +7 -5
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +1 -1
- package/form-field/_fiedset-theme.scss +13 -0
- package/form-field/_form-field-theme.scss +29 -13
- package/form-field/_hint-theme.scss +21 -22
- package/form-field/cleaner.d.ts +5 -1
- package/form-field/cleaner.scss +1 -4
- package/form-field/error.d.ts +8 -0
- package/form-field/fieldset-tokens.scss +5 -0
- package/form-field/fieldset.d.ts +27 -0
- package/form-field/fieldset.scss +93 -0
- package/form-field/form-field-control.d.ts +1 -1
- package/form-field/form-field-tokens.scss +13 -3
- package/form-field/form-field.d.ts +210 -22
- package/form-field/form-field.module.d.ts +14 -12
- package/form-field/form-field.scss +58 -78
- package/form-field/hint.d.ts +5 -1
- package/form-field/hint.scss +3 -5
- package/form-field/label.d.ts +6 -0
- package/form-field/password-hint.d.ts +1 -1
- package/form-field/password-toggle.d.ts +25 -11
- package/form-field/password-toggle.scss +1 -2
- package/form-field/prefix.d.ts +2 -1
- package/form-field/public-api.d.ts +4 -1
- package/form-field/reactive-password-hint.d.ts +19 -0
- package/form-field/stepper.d.ts +20 -8
- package/form-field/stepper.scss +12 -11
- package/form-field/suffix.d.ts +2 -1
- package/form-field/validate.directive.d.ts +10 -12
- package/input/input-tokens.scss +2 -2
- package/input/input.module.d.ts +3 -4
- package/input/input.scss +1 -2
- package/navbar/navbar-item.component.d.ts +3 -1
- package/overflow-items/overflow-items.d.ts +12 -5
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/radio/radio.module.d.ts +1 -2
- package/schematics/ng-add/index.js +2 -2
- package/scrollbar/scrollbar.component.d.ts +1 -0
- package/select/select-tokens.scss +5 -4
- package/select/select.component.d.ts +4 -2
- package/sidepanel/sidepanel.module.d.ts +5 -6
- package/splitter/splitter.component.d.ts +1 -0
- package/tabs/paginated-tab-header.d.ts +1 -0
- package/tabs/tabs.module.d.ts +5 -6
- package/tags/tag-list.scss +8 -4
- package/textarea/textarea.component.d.ts +1 -0
- package/textarea/textarea.module.d.ts +2 -3
- package/timepicker/timepicker.scss +1 -1
- package/toast/toast.component.scss +2 -0
- package/toggle/_toggle-theme.scss +10 -2
- package/toggle/toggle-tokens.scss +7 -1
- package/toggle/toggle.module.d.ts +1 -2
- package/toggle/toggle.scss +6 -6
- package/top-bar/top-bar.scss +48 -32
- package/tree/padding.directive.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +2 -0
- package/esm2022/form-field/form-field-errors.mjs +0 -7
- package/form-field/form-field-errors.d.ts +0 -2
|
@@ -38,6 +38,8 @@ export declare class KbqActionsPanelConfig<D = unknown> {
|
|
|
38
38
|
closeOnNavigation?: boolean;
|
|
39
39
|
/**
|
|
40
40
|
* Overlay container element in which the actions panel are rendered.
|
|
41
|
+
*
|
|
42
|
+
* @default `document.body`
|
|
41
43
|
*/
|
|
42
44
|
overlayContainer?: ElementRef<HTMLElement>;
|
|
43
45
|
/**
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ComponentType, Overlay, OverlayContainer, OverlayKeyboardDispatcher, OverlayOutsideClickDispatcher, OverlayPositionBuilder, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
4
|
-
import { Location } from '@angular/common';
|
|
5
|
-
import { ComponentFactoryResolver, InjectionToken, Injector, NgZone, OnDestroy, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
|
+
import { InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
|
|
6
3
|
import { KbqActionsPanelConfig } from './actions-panel-config';
|
|
7
4
|
import { KbqActionsPanelRef } from './actions-panel-ref';
|
|
8
5
|
import * as i0 from "@angular/core";
|
|
@@ -57,64 +54,13 @@ export declare const KBQ_ACTIONS_PANEL_OVERLAY_SELECTOR = "kbq-actions-panel-ove
|
|
|
57
54
|
* @docs-private
|
|
58
55
|
*/
|
|
59
56
|
export declare const KBQ_ACTIONS_PANEL_OVERLAY_CONTAINER_SELECTOR = "kbq-actions-panel-overlay-container";
|
|
60
|
-
/**
|
|
61
|
-
* Actions panel overlay container.
|
|
62
|
-
*
|
|
63
|
-
* @docs-private
|
|
64
|
-
*/
|
|
65
|
-
export declare class KbqActionsPanelOverlayContainer extends OverlayContainer {
|
|
66
|
-
/**
|
|
67
|
-
* Set the overlay container element.
|
|
68
|
-
*
|
|
69
|
-
* @param containerElement The element into which the overlay will be rendered.
|
|
70
|
-
* @returns Current OverlayContainer instance.
|
|
71
|
-
*/
|
|
72
|
-
setContainerElement(containerElement?: HTMLElement): void;
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelOverlayContainer, never>;
|
|
74
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanelOverlayContainer>;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Actions panel overlay.
|
|
78
|
-
*
|
|
79
|
-
* @docs-private
|
|
80
|
-
*/
|
|
81
|
-
export declare class KbqActionsPanelOverlay extends Overlay {
|
|
82
|
-
private readonly overlayContainer;
|
|
83
|
-
constructor(scrollStrategies: ScrollStrategyOptions, overlayContainer: KbqActionsPanelOverlayContainer, componentFactoryResolver: ComponentFactoryResolver, positionBuilder: OverlayPositionBuilder, keyboardDispatcher: OverlayKeyboardDispatcher, injector: Injector, ngZone: NgZone, document: any, directionality: Directionality, location: Location, outsideClickDispatcher: OverlayOutsideClickDispatcher, animationsModuleType?: string);
|
|
84
|
-
/**
|
|
85
|
-
* Set the overlay container element.
|
|
86
|
-
*
|
|
87
|
-
* @param containerElement The element into which the overlay will be rendered.
|
|
88
|
-
* @returns Current Overlay instance.
|
|
89
|
-
*/
|
|
90
|
-
setOverlayContainerElement(containerElement?: HTMLElement): void;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelOverlay, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
92
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanelOverlay>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Actions panel dialog service.
|
|
96
|
-
*
|
|
97
|
-
* @docs-private
|
|
98
|
-
*/
|
|
99
|
-
export declare class KbqActionsPanelDialog extends Dialog {
|
|
100
|
-
private readonly overlay;
|
|
101
|
-
constructor(overlay: KbqActionsPanelOverlay, injector: Injector, defaultOptions: DialogConfig, parentDialog: Dialog, overlayContainer: KbqActionsPanelOverlayContainer, scrollStrategy: any);
|
|
102
|
-
/**
|
|
103
|
-
* Set the dialog overlay container element.
|
|
104
|
-
*
|
|
105
|
-
* @param containerElement The element into which the overlay will be rendered.
|
|
106
|
-
* @returns Current dialog instance.
|
|
107
|
-
*/
|
|
108
|
-
setOverlayContainerElement(containerElement?: HTMLElement): this;
|
|
109
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelDialog, [null, null, { optional: true; }, { optional: true; skipSelf: true; }, null, null]>;
|
|
110
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanelDialog>;
|
|
111
|
-
}
|
|
112
57
|
/**
|
|
113
58
|
* Service for opening actions panel.
|
|
114
59
|
*/
|
|
115
60
|
export declare class KbqActionsPanel implements OnDestroy {
|
|
116
61
|
private readonly injector;
|
|
117
62
|
private readonly overlay;
|
|
63
|
+
private readonly overlayContainer;
|
|
118
64
|
private readonly dialog;
|
|
119
65
|
private readonly defaultConfig;
|
|
120
66
|
/** The reference to the currently opened actions panel. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
3
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
4
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, Provider, ViewContainerRef } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { KbqOption, KbqOptionSelectionChange, KeyboardNavigationHandler } from '@koobiq/components/core';
|
|
7
7
|
import { KbqFormField } from '@koobiq/components/form-field';
|
|
@@ -28,7 +28,7 @@ export declare const KBQ_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
|
28
28
|
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
|
29
29
|
* @docs-private
|
|
30
30
|
*/
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const KBQ_AUTOCOMPLETE_VALUE_ACCESSOR: Provider;
|
|
32
32
|
/**
|
|
33
33
|
* Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
|
|
34
34
|
* @docs-private
|
|
@@ -94,6 +94,7 @@ export declare class KbqAutocompleteTrigger implements AfterViewInit, ControlVal
|
|
|
94
94
|
private canOpenOnNextFocus;
|
|
95
95
|
/** Stream of keyboard events that can close the panel. */
|
|
96
96
|
private readonly closeKeyEventStream;
|
|
97
|
+
private readonly window;
|
|
97
98
|
constructor(elementRef: ElementRef<HTMLInputElement>, viewContainerRef: ViewContainerRef, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, zone: NgZone, scrollStrategy: any, dir: Directionality, formField: KbqFormField, viewportRuler?: ViewportRuler | undefined);
|
|
98
99
|
ngAfterViewInit(): void;
|
|
99
100
|
ngOnDestroy(): void;
|
|
@@ -157,8 +158,6 @@ export declare class KbqAutocompleteTrigger implements AfterViewInit, ControlVal
|
|
|
157
158
|
*/
|
|
158
159
|
private resetActiveItem;
|
|
159
160
|
private canOpen;
|
|
160
|
-
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
161
|
-
private getWindow;
|
|
162
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAutocompleteTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, null]>;
|
|
163
162
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAutocompleteTrigger, "input[kbqAutocomplete], textarea[kbqAutocomplete]", ["kbqAutocompleteTrigger"], { "autocomplete": { "alias": "kbqAutocomplete"; "required": false; }; "connectedTo": { "alias": "kbqAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "kbqAutocompleteDisabled"; "required": false; }; "onInputBlur": { "alias": "kbqAutocompleteOnBlur"; "required": false; }; }, {}, never, never, false, never>;
|
|
164
163
|
}
|
|
@@ -20,6 +20,7 @@ export declare class KbqAutocomplete implements AfterContentInit {
|
|
|
20
20
|
private changeDetectorRef;
|
|
21
21
|
private elementRef;
|
|
22
22
|
private readonly parentFormField;
|
|
23
|
+
private readonly destroyRef;
|
|
23
24
|
/** Unique ID to be used by autocomplete trigger's "aria-owns" property. */
|
|
24
25
|
id: string;
|
|
25
26
|
/** Manages active item in option list based on key events. */
|
|
@@ -7,6 +7,6 @@ import * as i5 from "@angular/cdk/overlay";
|
|
|
7
7
|
import * as i6 from "@angular/common";
|
|
8
8
|
export declare class KbqAutocompleteModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAutocompleteModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqAutocompleteModule, [typeof i1.KbqAutocomplete, typeof i2.KbqAutocompleteTrigger, typeof i3.KbqAutocompleteOrigin], [typeof i4.KbqOptionModule, typeof i5.OverlayModule, typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqAutocompleteModule, [typeof i1.KbqAutocomplete, typeof i2.KbqAutocompleteTrigger, typeof i3.KbqAutocompleteOrigin], [typeof i4.KbqOptionModule, typeof i5.OverlayModule, typeof i6.NgClass], [typeof i1.KbqAutocomplete, typeof i4.KbqOptionModule, typeof i2.KbqAutocompleteTrigger, typeof i3.KbqAutocompleteOrigin]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqAutocompleteModule>;
|
|
12
12
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./button-toggle.component";
|
|
3
|
-
import * as i2 from "@koobiq/components/
|
|
4
|
-
import * as i3 from "@koobiq/components/
|
|
5
|
-
import * as i4 from "@koobiq/components/title";
|
|
3
|
+
import * as i2 from "@koobiq/components/button";
|
|
4
|
+
import * as i3 from "@koobiq/components/title";
|
|
6
5
|
export declare class KbqButtonToggleModule {
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqButtonToggleModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqButtonToggleModule, [typeof i1.KbqButtonToggleGroup, typeof i1.KbqButtonToggle], [typeof i2.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqButtonToggleModule, [typeof i1.KbqButtonToggleGroup, typeof i1.KbqButtonToggle], [typeof i2.KbqButtonModule, typeof i3.KbqTitleModule], [typeof i1.KbqButtonToggleGroup, typeof i1.KbqButtonToggle]>;
|
|
9
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqButtonToggleModule>;
|
|
10
9
|
}
|
|
@@ -17,6 +17,7 @@ export declare class KbqCodeBlockHighlight {
|
|
|
17
17
|
private readonly renderer;
|
|
18
18
|
private readonly domSanitizer;
|
|
19
19
|
private readonly fallbackFileLanguage;
|
|
20
|
+
private readonly window;
|
|
20
21
|
/** The code file. */
|
|
21
22
|
set file(file: KbqCodeBlockFile);
|
|
22
23
|
/** The starting line number. */
|
|
@@ -24,8 +25,6 @@ export declare class KbqCodeBlockHighlight {
|
|
|
24
25
|
/** Whether to display line numbers for single line code block. */
|
|
25
26
|
singleLine: boolean;
|
|
26
27
|
constructor();
|
|
27
|
-
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
28
|
-
private getWindow;
|
|
29
28
|
/**
|
|
30
29
|
* Initialize the HighlightJS line numbers plugin. This method is called once when
|
|
31
30
|
* the component is constructed.
|
|
@@ -17,6 +17,9 @@ export declare const kbqCodeBlockFallbackFileNameProvider: (fileName: string) =>
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class KbqCodeBlock implements AfterViewInit {
|
|
19
19
|
private readonly copyButtonTooltip?;
|
|
20
|
+
/**
|
|
21
|
+
* Reference to the scrollable code content.
|
|
22
|
+
*/
|
|
20
23
|
readonly scrollableCodeContent: CdkScrollable;
|
|
21
24
|
/** Whether to display line numbers. */
|
|
22
25
|
lineNumbers: boolean;
|
|
@@ -26,28 +29,41 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
26
29
|
canToggleSoftWrap: boolean;
|
|
27
30
|
/** Whether sequences of whitespace should be preserved. */
|
|
28
31
|
softWrap: boolean;
|
|
29
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Output to support two-way binding on `[(softWrap)]` property.
|
|
34
|
+
*/
|
|
30
35
|
readonly softWrapChange: EventEmitter<boolean>;
|
|
31
36
|
/**
|
|
32
37
|
* Allows to view all the code, otherwise it will be hidden.
|
|
33
38
|
* Works only with `maxHeight` property.
|
|
34
39
|
*/
|
|
35
40
|
viewAll: boolean;
|
|
36
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Output to support two-way binding on `[(viewAll)]` property.
|
|
43
|
+
*/
|
|
37
44
|
readonly viewAllChange: EventEmitter<boolean>;
|
|
38
45
|
/**
|
|
39
46
|
* Maximum height of the code block content, other parts will be hidden.
|
|
40
47
|
* Can be toggled by `viewAll` property.
|
|
41
48
|
*/
|
|
42
49
|
maxHeight: number;
|
|
50
|
+
/**
|
|
51
|
+
* @docs-private
|
|
52
|
+
*/
|
|
43
53
|
protected get calculatedMaxHeight(): number | null;
|
|
44
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Will be removed in next major release, use `canDownload` instead.
|
|
56
|
+
*
|
|
57
|
+
* @docs-private
|
|
58
|
+
*/
|
|
45
59
|
set canLoad(value: boolean);
|
|
46
60
|
/** Added download code button. */
|
|
47
61
|
canDownload: boolean;
|
|
48
62
|
/** Added copy code button. */
|
|
49
63
|
canCopy: boolean;
|
|
50
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Will be removed in next major release, use `files` instead.
|
|
66
|
+
*/
|
|
51
67
|
set codeFiles(files: KbqCodeBlockFile[]);
|
|
52
68
|
/**
|
|
53
69
|
* @TODO Mark as `required`, after removing `codeFiles`
|
|
@@ -59,6 +75,9 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
59
75
|
private _files;
|
|
60
76
|
/** Defines which file (index) is active. */
|
|
61
77
|
activeFileIndex: number;
|
|
78
|
+
/**
|
|
79
|
+
* Output to support two-way binding on `[(activeFileIndex)]` property.
|
|
80
|
+
*/
|
|
62
81
|
readonly activeFileIndexChange: EventEmitter<number>;
|
|
63
82
|
/** Whether to hide border. */
|
|
64
83
|
noBorder: boolean;
|
|
@@ -70,10 +89,18 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
70
89
|
get hideTabs(): boolean;
|
|
71
90
|
set hideTabs(value: boolean);
|
|
72
91
|
private _hideTabs;
|
|
73
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Component locale configuration.
|
|
94
|
+
*
|
|
95
|
+
* @docs-private
|
|
96
|
+
*/
|
|
74
97
|
protected get localeConfiguration(): KbqCodeBlockLocaleConfiguration;
|
|
75
98
|
private _localeConfiguration;
|
|
76
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Code content tab index.
|
|
101
|
+
*
|
|
102
|
+
* @docs-private
|
|
103
|
+
*/
|
|
77
104
|
protected get codeContentTabIndex(): number;
|
|
78
105
|
/**
|
|
79
106
|
* Determines whether the code content can be focused.
|
|
@@ -82,7 +109,13 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
82
109
|
* has a scroll, and the calculated maximum height is not set.
|
|
83
110
|
*/
|
|
84
111
|
private get canCodeContentBeFocused();
|
|
112
|
+
/**
|
|
113
|
+
* @docs-private
|
|
114
|
+
*/
|
|
85
115
|
protected readonly componentColor: typeof KbqComponentColors;
|
|
116
|
+
/**
|
|
117
|
+
* @docs-private
|
|
118
|
+
*/
|
|
86
119
|
protected readonly buttonStyle: typeof KbqButtonStyles;
|
|
87
120
|
private readonly elementRef;
|
|
88
121
|
private readonly changeDetectorRef;
|
|
@@ -94,7 +127,11 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
94
127
|
private readonly clipboard;
|
|
95
128
|
private readonly domSanitizer;
|
|
96
129
|
private readonly document;
|
|
130
|
+
/**
|
|
131
|
+
* @docs-private
|
|
132
|
+
*/
|
|
97
133
|
protected readonly fallbackFileName: string;
|
|
134
|
+
private readonly window;
|
|
98
135
|
constructor();
|
|
99
136
|
ngAfterViewInit(): void;
|
|
100
137
|
/**
|
|
@@ -120,6 +157,8 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
120
157
|
* and scrolling to the top of the scrollable content.
|
|
121
158
|
*
|
|
122
159
|
* @param index - The index of the newly selected tab.
|
|
160
|
+
*
|
|
161
|
+
* @docs-private
|
|
123
162
|
*/
|
|
124
163
|
protected onSelectedTabChange(index: number): void;
|
|
125
164
|
/**
|
|
@@ -147,18 +186,26 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
147
186
|
private setupActionbarDisplay;
|
|
148
187
|
/** Whether the element has scroll. */
|
|
149
188
|
private hasScroll;
|
|
150
|
-
/**
|
|
151
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Handles the enter keydown event on `viewAll` button.
|
|
191
|
+
*
|
|
192
|
+
* @docs-private
|
|
193
|
+
*/
|
|
194
|
+
protected onViewAllEnterKeydown(event: Event): void;
|
|
152
195
|
private updateLocaleParams;
|
|
153
196
|
/**
|
|
154
197
|
* Copies the file code to the clipboard.
|
|
155
198
|
*
|
|
156
199
|
* If the copy was successful, the copy button tooltip content is updated
|
|
157
200
|
* to show the "copied" message.
|
|
201
|
+
*
|
|
202
|
+
* @docs-private
|
|
158
203
|
*/
|
|
159
204
|
protected copyCode(): void;
|
|
160
205
|
/**
|
|
161
206
|
* Opens the file link in a new window.
|
|
207
|
+
*
|
|
208
|
+
* @docs-private
|
|
162
209
|
*/
|
|
163
210
|
protected openLink(): void;
|
|
164
211
|
/**
|
|
@@ -166,10 +213,10 @@ export declare class KbqCodeBlock implements AfterViewInit {
|
|
|
166
213
|
*
|
|
167
214
|
* Creates a link with a blob as href and the file name as download attribute.
|
|
168
215
|
* Then simulates a click event on the link to initiate the download.
|
|
216
|
+
*
|
|
217
|
+
* @docs-private
|
|
169
218
|
*/
|
|
170
219
|
protected downloadCode(): void;
|
|
171
|
-
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
172
|
-
private getWindow;
|
|
173
220
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCodeBlock, never>;
|
|
174
221
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCodeBlock, "kbq-code-block", ["kbqCodeBlock"], { "lineNumbers": { "alias": "lineNumbers"; "required": false; }; "filled": { "alias": "filled"; "required": false; }; "canToggleSoftWrap": { "alias": "canToggleSoftWrap"; "required": false; }; "softWrap": { "alias": "softWrap"; "required": false; }; "viewAll": { "alias": "viewAll"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "canLoad": { "alias": "canLoad"; "required": false; }; "canDownload": { "alias": "canDownload"; "required": false; }; "canCopy": { "alias": "canCopy"; "required": false; }; "codeFiles": { "alias": "codeFiles"; "required": false; }; "files": { "alias": "files"; "required": false; }; "activeFileIndex": { "alias": "activeFileIndex"; "required": false; }; "noBorder": { "alias": "noBorder"; "required": false; }; "hideTabs": { "alias": "hideTabs"; "required": false; }; }, { "softWrapChange": "softWrapChange"; "viewAllChange": "viewAllChange"; "activeFileIndexChange": "activeFileIndexChange"; }, never, never, true, never>;
|
|
175
222
|
static ngAcceptInputType_lineNumbers: unknown;
|
|
@@ -33,6 +33,9 @@ export declare enum KbqComponentColors {
|
|
|
33
33
|
/** Mixin to augment a directive with a `color` property. */
|
|
34
34
|
export declare function mixinColor<T extends AbstractConstructor<HasElementRef>>(base: T, defaultColor?: KbqComponentColors | ThemePalette): CanColorCtor & T;
|
|
35
35
|
export declare class KbqColorDirective {
|
|
36
|
+
/**
|
|
37
|
+
* @docs-private
|
|
38
|
+
*/
|
|
36
39
|
readonly elementRef: ElementRef<any>;
|
|
37
40
|
private defaultColor;
|
|
38
41
|
get colorClassName(): KbqComponentColors | ThemePalette | string;
|
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/cdk/bidi";
|
|
4
|
+
/**
|
|
5
|
+
* Injection token that configures whether the koobiq sanity checks are enabled.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated No longer used and will be removed in next major release.
|
|
8
|
+
*
|
|
9
|
+
* @docs-private
|
|
10
|
+
*/
|
|
4
11
|
export declare const KBQ_SANITY_CHECKS: InjectionToken<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated No longer used and will be removed in next major release.
|
|
14
|
+
*
|
|
15
|
+
* @docs-private
|
|
16
|
+
*/
|
|
5
17
|
export declare function mcSanityChecksFactory(): boolean;
|
|
6
18
|
/**
|
|
7
19
|
* Module that captures anything that should be loaded and/or run for *all* Koobiq
|
|
8
20
|
* components. This includes Bidi, etc.
|
|
9
21
|
*
|
|
10
|
-
*
|
|
22
|
+
* @deprecated No longer used and will be removed in next major release.
|
|
23
|
+
*
|
|
24
|
+
* @docs-private
|
|
11
25
|
*/
|
|
12
26
|
export declare class KbqCommonModule {
|
|
13
27
|
private _sanityChecksEnabled;
|
|
14
28
|
protected readonly document: Document;
|
|
29
|
+
private readonly window;
|
|
15
30
|
private hasDoneGlobalChecks;
|
|
16
31
|
constructor(_sanityChecksEnabled: boolean);
|
|
17
32
|
private areChecksEnabled;
|
|
18
33
|
private isTestEnv;
|
|
19
34
|
private checkDoctypeIsDefined;
|
|
20
|
-
private checkThemeIsPresent;
|
|
21
|
-
private getWindow;
|
|
22
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCommonModule, [{ optional: true; }]>;
|
|
23
36
|
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqCommonModule, never, [typeof i1.BidiModule], [typeof i1.BidiModule]>;
|
|
24
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqCommonModule>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Will be removed in next major release, use `KbqFormField` instead.
|
|
4
|
+
*/
|
|
2
5
|
export interface KbqFormFieldRef {
|
|
3
6
|
control: any;
|
|
4
7
|
canCleanerClearByEsc: boolean;
|
|
@@ -13,12 +16,11 @@ export interface KbqFormFieldRef {
|
|
|
13
16
|
*/
|
|
14
17
|
focusViaKeyboard(): void;
|
|
15
18
|
}
|
|
16
|
-
/**
|
|
17
|
-
* @TODO move into form-field.ts, add correct type for `InjectionToken<KbqFormField>` (#DS-2915)
|
|
18
|
-
*/
|
|
19
19
|
/**
|
|
20
20
|
* Injection token that can be used to inject an instances of `KbqFormField`. It serves
|
|
21
21
|
* as alternative token to the actual `KbqFormField` class which would cause unnecessary
|
|
22
22
|
* retention of the `KbqFormField` class and its component metadata.
|
|
23
|
+
*
|
|
24
|
+
* @TODO move into form-field.ts, add correct type for `InjectionToken<KbqFormField>` (#DS-2915)
|
|
23
25
|
*/
|
|
24
26
|
export declare const KBQ_FORM_FIELD_REF: InjectionToken<KbqFormFieldRef>;
|
package/core/option/option.d.ts
CHANGED
|
@@ -99,8 +99,8 @@ export declare class KbqOption extends KbqOptionBase implements AfterViewChecked
|
|
|
99
99
|
ngAfterViewChecked(): void;
|
|
100
100
|
ngOnDestroy(): void;
|
|
101
101
|
getHeight(): number;
|
|
102
|
-
select(): void;
|
|
103
|
-
deselect(): void;
|
|
102
|
+
select(emitEvent?: boolean): void;
|
|
103
|
+
deselect(emitEvent?: boolean): void;
|
|
104
104
|
focus(): void;
|
|
105
105
|
/**
|
|
106
106
|
* This method sets display styles on the option to make it appear
|
package/core/public-api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './selection/index';
|
|
|
16
16
|
export * from './services/measure-scrollbar.service';
|
|
17
17
|
export * from './services/theme.service';
|
|
18
18
|
export * from './title/index';
|
|
19
|
+
export * from './tokens/index';
|
|
19
20
|
export * from './utils/index';
|
|
20
21
|
export * from './validation/index';
|
|
21
22
|
export * from './version';
|
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
@include vendor-prefixes.user-select(none);
|
|
15
15
|
|
|
16
16
|
display: flex;
|
|
17
|
+
flex-grow: 1;
|
|
17
18
|
align-items: center;
|
|
18
19
|
|
|
19
|
-
width: 100%;
|
|
20
|
-
|
|
21
20
|
overflow: hidden;
|
|
22
21
|
|
|
23
22
|
white-space: nowrap;
|
|
@@ -36,31 +35,21 @@
|
|
|
36
35
|
|
|
37
36
|
cursor: pointer;
|
|
38
37
|
|
|
39
|
-
height: calc(var(--kbq-form-field-size-height
|
|
38
|
+
height: calc(var(--kbq-form-field-size-height) - calc(var(--kbq-size-border-width) * 2));
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.kbq-select__trigger.kbq-select__trigger_single,
|
|
43
42
|
.kbq-select__trigger.kbq-select__trigger_multiple.kbq-select__trigger_empty {
|
|
44
43
|
& .kbq-select__matcher {
|
|
45
|
-
padding:
|
|
46
|
-
|
|
47
|
-
)
|
|
48
|
-
calc(var(--kbq-select-size-single-padding-right, var(--kbq-size-xxs)) - var(--kbq-size-border-width))
|
|
49
|
-
calc(var(--kbq-select-size-single-padding-vertical, var(--kbq-size-xs)) - var(--kbq-size-border-width))
|
|
50
|
-
calc(var(--kbq-select-size-single-padding-left, var(--kbq-size-m)) - var(--kbq-size-border-width));
|
|
44
|
+
padding: var(--kbq-select-size-single-padding-vertical) var(--kbq-select-size-single-padding-right)
|
|
45
|
+
var(--kbq-select-size-single-padding-vertical) var(--kbq-select-size-single-padding-left);
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
|
|
54
49
|
.kbq-select__trigger.kbq-select__trigger_multiple:not(.kbq-select__trigger_empty) {
|
|
55
50
|
& .kbq-select__matcher {
|
|
56
|
-
padding:
|
|
57
|
-
|
|
58
|
-
)
|
|
59
|
-
calc(var(--kbq-select-size-multiple-padding-right, var(--kbq-size-xxs)) - var(--kbq-size-border-width))
|
|
60
|
-
calc(
|
|
61
|
-
var(--kbq-select-size-multiple-padding-vertical, var(--kbq-size-xxs)) - var(--kbq-size-border-width)
|
|
62
|
-
)
|
|
63
|
-
calc(var(--kbq-select-size-multiple-padding-left, var(--kbq-size-xxs)) - var(--kbq-size-border-width));
|
|
51
|
+
padding: var(--kbq-select-size-multiple-padding-vertical) var(--kbq-select-size-multiple-padding-right)
|
|
52
|
+
var(--kbq-select-size-multiple-padding-vertical) var(--kbq-select-size-multiple-padding-left);
|
|
64
53
|
|
|
65
54
|
.kbq-select__match-container {
|
|
66
55
|
display: flex;
|
|
@@ -72,15 +61,11 @@
|
|
|
72
61
|
overflow: hidden;
|
|
73
62
|
|
|
74
63
|
height: calc(
|
|
75
|
-
var(--kbq-form-field-size-height
|
|
76
|
-
var(--kbq-select-size-multiple-padding-vertical, var(--kbq-size-xxs)) * 2
|
|
77
|
-
)
|
|
64
|
+
var(--kbq-form-field-size-height) - calc(var(--kbq-select-size-multiple-padding-vertical) * 2)
|
|
78
65
|
);
|
|
79
66
|
|
|
80
67
|
max-height: calc(
|
|
81
|
-
var(--kbq-form-field-size-height
|
|
82
|
-
var(--kbq-select-size-multiple-padding-vertical, var(--kbq-size-xxs)) * 2
|
|
83
|
-
)
|
|
68
|
+
var(--kbq-form-field-size-height) - calc(var(--kbq-select-size-multiple-padding-vertical) * 2)
|
|
84
69
|
);
|
|
85
70
|
|
|
86
71
|
gap: var(--kbq-select-size-multiple-content-gap, var(--kbq-size-xxs));
|
|
@@ -109,8 +94,9 @@
|
|
|
109
94
|
.kbq-select__arrow-wrapper {
|
|
110
95
|
display: flex;
|
|
111
96
|
align-self: center;
|
|
97
|
+
justify-content: center;
|
|
112
98
|
|
|
113
|
-
|
|
99
|
+
width: var(--kbq-form-field-size-addon-width);
|
|
114
100
|
|
|
115
101
|
// When used in a box or standard appearance form-field the arrow should be shifted up 50%.
|
|
116
102
|
.kbq-form-field-appearance-fill &,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './window';
|
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @docs-private
|
|
4
|
+
*/
|
|
2
5
|
export declare const validationTooltipShowDelay = 10;
|
|
6
|
+
/**
|
|
7
|
+
* @docs-private
|
|
8
|
+
*/
|
|
3
9
|
export declare const validationTooltipHideDelay = 3000;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Will be removed in next major release.
|
|
12
|
+
*
|
|
13
|
+
* @docs-private
|
|
14
|
+
*/
|
|
4
15
|
export interface KbqValidationOptions {
|
|
5
16
|
useValidation: boolean;
|
|
6
17
|
}
|
|
7
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Will be removed in next major release.
|
|
20
|
+
*
|
|
21
|
+
* @docs-private
|
|
22
|
+
*/
|
|
8
23
|
export declare const KBQ_VALIDATION: InjectionToken<KbqValidationOptions>;
|
|
24
|
+
/**
|
|
25
|
+
* Utility provider which disables legacy validation directive.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated Will be removed in next major release.
|
|
28
|
+
*/
|
|
29
|
+
export declare const kbqDisableLegacyValidationDirectiveProvider: () => Provider;
|
|
@@ -34,6 +34,7 @@ export declare class KbqDropdownTrigger implements AfterContentInit, OnDestroy {
|
|
|
34
34
|
private changeDetectorRef;
|
|
35
35
|
private focusMonitor?;
|
|
36
36
|
protected readonly isBrowser: boolean;
|
|
37
|
+
private readonly window;
|
|
37
38
|
lastDestroyReason: DropdownCloseReason;
|
|
38
39
|
/** Data to be passed along to any lazily-rendered content. */
|
|
39
40
|
data: any;
|
|
@@ -13,13 +13,19 @@ export declare class KbqEllipsisCenterDirective extends KbqTooltipTrigger implem
|
|
|
13
13
|
* @default 50
|
|
14
14
|
*/
|
|
15
15
|
debounceInterval: number;
|
|
16
|
+
/** @docs-private */
|
|
16
17
|
readonly resizeStream: Subject<Event>;
|
|
17
18
|
private _kbqEllipsisCenter;
|
|
18
19
|
private resizeSubscription;
|
|
19
20
|
ngOnInit(): void;
|
|
20
21
|
ngAfterViewInit(): void;
|
|
21
22
|
ngOnDestroy(): void;
|
|
22
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Updates the displayed text with center ellipsis truncation based on container width.
|
|
25
|
+
* Recreates start/end span elements, measures available space, and adjusts text accordingly.
|
|
26
|
+
* @docs-private
|
|
27
|
+
*/
|
|
28
|
+
refresh(): void;
|
|
23
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqEllipsisCenterDirective, never>;
|
|
24
30
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqEllipsisCenterDirective, "[kbqEllipsisCenter]", never, { "kbqEllipsisCenter": { "alias": "kbqEllipsisCenter"; "required": false; }; "minVisibleLength": { "alias": "minVisibleLength"; "required": false; }; "charWidth": { "alias": "charWidth"; "required": false; }; "debounceInterval": { "alias": "debounceInterval"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
31
|
static ngAcceptInputType_debounceInterval: unknown;
|
|
@@ -52,4 +52,4 @@ export class KbqActionsPanelConfig {
|
|
|
52
52
|
this.disableClose = false;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy1wYW5lbC1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21wb25lbnRzL2FjdGlvbnMtcGFuZWwvYWN0aW9ucy1wYW5lbC1jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFjLGNBQWMsRUFBc0IsTUFBTSxlQUFlLENBQUM7QUFFL0UsZ0ZBQWdGO0FBQ2hGLE1BQU0sQ0FBQyxNQUFNLGdDQUFnQyxHQUFHLElBQUksY0FBYyxDQUM5RCxrQ0FBa0MsRUFDbEMsRUFBRSxPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUMsSUFBSSxxQkFBcUIsRUFBRSxFQUFFLENBQ2pELENBQUM7QUFFRjs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sb0NBQW9DLEdBQUcsQ0FBSSxNQUFnQyxFQUFZLEVBQUUsQ0FBQyxDQUFDO0lBQ3BHLE9BQU8sRUFBRSxnQ0FBZ0M7SUFDekMsUUFBUSxFQUFFLE1BQU07Q0FDbkIsQ0FBQyxDQUFDO0FBRUg7Ozs7OztHQU1HO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