@koobiq/components 20.0.0 → 20.2.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/accordion/_accordion-theme.scss +1 -1
- package/accordion/accordion-tokens.scss +1 -0
- package/accordion/{accordion-trigger.component.scss → accordion-trigger.scss} +4 -18
- package/accordion/{accordion.component.scss → accordion.scss} +12 -5
- package/accordion/index.d.ts +215 -119
- package/actions-panel/index.d.ts +1 -0
- package/alert/_alert-theme.scss +14 -4
- package/alert/alert-tokens.scss +4 -4
- package/alert/alert.component.scss +24 -13
- package/alert/index.d.ts +63 -29
- package/app-switcher/app-switcher-dropdown-app.scss +2 -0
- package/autocomplete/autocomplete.scss +2 -1
- package/autocomplete/index.d.ts +35 -29
- package/badge/index.d.ts +2 -3
- package/breadcrumbs/breadcrumbs.scss +4 -0
- package/breadcrumbs/index.d.ts +2 -1
- package/button/button-group.scss +42 -2
- package/button-toggle/button-toggle.scss +23 -0
- package/button-toggle/index.d.ts +3 -1
- package/checkbox/checkbox.scss +5 -4
- package/clamped-text/index.d.ts +4 -2
- package/core/index.d.ts +515 -21
- package/core/styles/_core.scss +2 -0
- package/core/styles/common/_animation.scss +35 -24
- package/core/styles/common/_connected-overlay.scss +36 -0
- package/core/styles/common/_select.scss +7 -2
- package/core/styles/theming/_components-theming.scss +1 -1
- package/core/styles/theming/_scrollbar-theme.scss +4 -0
- package/datepicker/_datepicker-theme.scss +1 -1
- package/datepicker/datepicker-toggle.scss +3 -3
- package/dl/index.d.ts +1 -0
- package/dropdown/dropdown-item.scss +16 -0
- package/dropdown/dropdown-tokens.scss +2 -1
- package/dropdown/dropdown.scss +11 -2
- package/dropdown/index.d.ts +73 -6
- package/fesm2022/koobiq-components-accordion.mjs +406 -303
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +15 -6
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-alert.mjs +88 -48
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-app-switcher.mjs +7 -7
- package/fesm2022/koobiq-components-app-switcher.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +37 -23
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +5 -4
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +6 -4
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +9 -6
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +4 -4
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-clamped-text.mjs +9 -0
- package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +5 -1
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +544 -113
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +13 -10
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +3 -2
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +105 -31
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +33 -22
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +1169 -782
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-flag.mjs +66 -0
- package/fesm2022/koobiq-components-flag.mjs.map +1 -0
- package/fesm2022/koobiq-components-form-field.mjs +6 -6
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +16 -7
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-inline-edit.mjs +30 -7
- package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +39 -20
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +9 -5
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +123 -27
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +193 -19
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +12 -4
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +9 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +2 -2
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +3 -7
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-search-expandable.mjs +43 -8
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +72 -59
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +4 -0
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +3 -3
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-skeleton.mjs +2 -2
- package/fesm2022/koobiq-components-skeleton.mjs.map +1 -1
- package/fesm2022/koobiq-components-split-button.mjs +5 -12
- package/fesm2022/koobiq-components-split-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +6 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +8 -6
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +42 -18
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +8 -1
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +7 -14
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +4 -4
- package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +3 -4
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +9 -5
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +132 -14
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +1 -1
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +168 -8
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +79 -38
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +67 -41
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/fesm2022/koobiq-components-username.mjs +16 -3
- package/fesm2022/koobiq-components-username.mjs.map +1 -1
- package/file-upload/file-upload-tokens.scss +1 -0
- package/file-upload/index.d.ts +10 -7
- package/filter-bar/_filter-bar-theme.scss +82 -0
- package/filter-bar/filter-bar-tokens.scss +9 -0
- package/filter-bar/filter-bar.scss +10 -4
- package/filter-bar/filter-refresher.scss +1 -1
- package/filter-bar/filters.scss +25 -20
- package/filter-bar/index.d.ts +764 -336
- package/filter-bar/pipes/base-pipe.scss +12 -44
- package/filter-bar/pipes/pipe-date.scss +20 -14
- package/filter-bar/pipes/pipe-input.scss +10 -0
- package/filter-bar/pipes/pipe-multi-tree-select.scss +5 -3
- package/filter-bar/pipes/pipe-multiselect.scss +5 -3
- package/filter-bar/pipes/pipe-readonly.scss +4 -13
- package/filter-bar/pipes/pipe-select.scss +3 -1
- package/filter-bar/pipes/pipe-tree-select.scss +3 -1
- package/flag/flag.scss +53 -0
- package/flag/index.d.ts +44 -0
- package/icon/icon-button.scss +3 -1
- package/icon/icon-item-tokens.scss +1 -1
- package/icon/index.d.ts +15 -2
- package/inline-edit/index.d.ts +5 -0
- package/inline-edit/inline-edit.scss +7 -7
- package/link/link-tokens.scss +2 -2
- package/list/index.d.ts +11 -2
- package/loader-overlay/loader-overlay-tokens.scss +1 -1
- package/modal/_modal-animation.scss +6 -6
- package/modal/_modal-theme.scss +5 -0
- package/modal/index.d.ts +3 -1
- package/modal/modal.scss +15 -0
- package/navbar/_navbar-item_vertical.scss +7 -5
- package/navbar/index.d.ts +39 -4
- package/navbar/navbar-brand.scss +17 -7
- package/navbar/navbar-item.scss +9 -0
- package/notification-center/_notification-center-theme.scss +2 -1
- package/notification-center/index.d.ts +89 -3
- package/notification-center/notification-center.scss +42 -4
- package/notification-center/notification-item.scss +3 -2
- package/overflow-items/index.d.ts +1 -0
- package/package.json +7 -3
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/progress-bar.scss +4 -0
- package/progress-spinner/progress-spinner.scss +5 -1
- package/radio/index.d.ts +1 -5
- package/radio/radio.scss +18 -4
- package/schematics/collection.json +15 -0
- package/schematics/migrations/alert-signals/README.md +64 -0
- package/schematics/migrations/alert-signals/data.js +70 -0
- package/schematics/migrations/alert-signals/index.js +350 -0
- package/schematics/migrations/alert-signals/schema.json +20 -0
- package/schematics/migrations/autocomplete-panel-width-auto/README.md +68 -0
- package/schematics/migrations/autocomplete-panel-width-auto/index.js +70 -0
- package/schematics/migrations/autocomplete-panel-width-auto/schema.json +15 -0
- package/schematics/migrations/filter-bar-signals/README.md +66 -0
- package/schematics/migrations/filter-bar-signals/data.js +72 -0
- package/schematics/migrations/filter-bar-signals/index.js +316 -0
- package/schematics/migrations/filter-bar-signals/schema.json +20 -0
- package/schematics/migrations.json +15 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/utils/angular-parsing.js +11 -2
- package/search-expandable/index.d.ts +3 -0
- package/select/index.d.ts +59 -24
- package/sidebar/index.d.ts +1 -0
- package/skeleton/skeleton.scss +4 -0
- package/split-button/_split-button-theme.scss +2 -2
- package/splitter/_splitter-theme.scss +2 -2
- package/splitter/index.d.ts +1 -0
- package/table/_table-theme.scss +4 -0
- package/table/index.d.ts +3 -2
- package/tabs/_tabs-common.scss +60 -31
- package/tabs/_tabs-theme.scss +12 -0
- package/tabs/index.d.ts +4 -2
- package/tabs/tab-header.scss +15 -0
- package/tabs/tab-nav-bar.scss +4 -0
- package/tabs/tabs-tokens.scss +2 -1
- package/textarea/index.d.ts +0 -1
- package/time-range/time-range.scss +0 -8
- package/timepicker/timepicker.scss +2 -2
- package/timezone/index.d.ts +2 -3
- package/title/index.d.ts +92 -2
- package/tooltip/index.d.ts +124 -7
- package/tree/_tree-theme.scss +2 -7
- package/tree/index.d.ts +19 -4
- package/tree/toggle.scss +5 -0
- package/tree/tree-option.scss +0 -4
- package/tree-select/_tree-select-theme.scss +1 -1
- package/tree-select/index.d.ts +53 -22
- package/username/index.d.ts +20 -2
package/tree-select/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as i1 from '@angular/cdk/overlay';
|
|
|
6
6
|
import { ConnectedPosition, CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
7
7
|
import { ControlValueAccessor, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
|
|
8
8
|
import * as i5 from '@koobiq/components/core';
|
|
9
|
-
import { KbqAbstractSelect, CanUpdateErrorState, ErrorStateMatcher, KbqSelectTrigger, KbqSelectMatcher, KbqSelectSearch, KbqComponentColors } from '@koobiq/components/core';
|
|
9
|
+
import { KbqPanelWidth, KbqPanelMinWidth, KbqPanelMaxWidth, KbqAbstractSelect, CanUpdateErrorState, ErrorStateMatcher, KbqSelectTrigger, KbqSelectMatcher, KbqSelectSearch, KbqSelectAllEvent, KbqComponentColors } from '@koobiq/components/core';
|
|
10
10
|
import * as i9 from '@koobiq/components/form-field';
|
|
11
11
|
import { KbqFormFieldControl, KbqCleaner } from '@koobiq/components/form-field';
|
|
12
12
|
import * as i4 from '@koobiq/components/tags';
|
|
@@ -24,19 +24,27 @@ type KbqTreeSelectTriggerValue = {
|
|
|
24
24
|
value: string;
|
|
25
25
|
viewValue: string;
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Tree select panel width type.
|
|
29
|
+
* @deprecated Use `KbqPanelWidth` from `@koobiq/components/core` instead.
|
|
30
|
+
*/
|
|
31
|
+
type KbqTreeSelectPanelWidth = KbqPanelWidth;
|
|
29
32
|
/** Options for the `kbq-tree-select` that can be configured using the `KBQ_TREE_SELECT_OPTIONS` injection token. */
|
|
30
33
|
type KbqTreeSelectOptions = Partial<{
|
|
31
34
|
/**
|
|
32
35
|
* Width of the panel. If set to `auto`, the panel will match the trigger width.
|
|
33
36
|
* If set to null or an empty string, the panel will grow to match the longest option's text.
|
|
34
37
|
*/
|
|
35
|
-
panelWidth:
|
|
38
|
+
panelWidth: KbqPanelWidth;
|
|
36
39
|
/**
|
|
37
40
|
* Minimum width of the panel. If minWidth is larger than window width or property set to null, it will be ignored.
|
|
38
41
|
*/
|
|
39
|
-
panelMinWidth:
|
|
42
|
+
panelMinWidth: KbqPanelMinWidth;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum width of the panel. Caps growth by content only — it never overrides the trigger width or an
|
|
45
|
+
* explicit `panelWidth`. If null, the `--kbq-panel-size-width-max` token applies.
|
|
46
|
+
*/
|
|
47
|
+
panelMaxWidth: KbqPanelMaxWidth;
|
|
40
48
|
/**
|
|
41
49
|
* Whether to enable hiding search by default if options is less than minimum.
|
|
42
50
|
*
|
|
@@ -52,11 +60,16 @@ declare const KBQ_TREE_SELECT_OPTIONS: InjectionToken<Partial<{
|
|
|
52
60
|
* Width of the panel. If set to `auto`, the panel will match the trigger width.
|
|
53
61
|
* If set to null or an empty string, the panel will grow to match the longest option's text.
|
|
54
62
|
*/
|
|
55
|
-
panelWidth:
|
|
63
|
+
panelWidth: KbqPanelWidth;
|
|
56
64
|
/**
|
|
57
65
|
* Minimum width of the panel. If minWidth is larger than window width or property set to null, it will be ignored.
|
|
58
66
|
*/
|
|
59
|
-
panelMinWidth:
|
|
67
|
+
panelMinWidth: KbqPanelMinWidth;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum width of the panel. Caps growth by content only — it never overrides the trigger width or an
|
|
70
|
+
* explicit `panelWidth`. If null, the `--kbq-panel-size-width-max` token applies.
|
|
71
|
+
*/
|
|
72
|
+
panelMaxWidth: KbqPanelMaxWidth;
|
|
60
73
|
/**
|
|
61
74
|
* Whether to enable hiding search by default if options is less than minimum.
|
|
62
75
|
*
|
|
@@ -115,11 +128,20 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
115
128
|
/** Strategy that will be used to handle scrolling while the select panel is open. */
|
|
116
129
|
scrollStrategy: _angular_cdk_overlay_module_d.ScrollStrategy;
|
|
117
130
|
/**
|
|
118
|
-
* The y-offset of the overlay panel in relation to the trigger
|
|
119
|
-
*
|
|
120
|
-
*
|
|
131
|
+
* The y-offset of the overlay panel in relation to the trigger.
|
|
132
|
+
*
|
|
133
|
+
* @deprecated noop. The trigger↔panel gap is now controlled by the `--kbq-connected-overlay-gap` CSS
|
|
134
|
+
* variable (transparent padding inside the pane via the `kbq-connected-overlay_below/_above` panel
|
|
135
|
+
* classes), not by a physical overlay offset — so setting this has no effect. Will be removed in 21.0.0.
|
|
121
136
|
*/
|
|
122
137
|
offsetY: number;
|
|
138
|
+
/**
|
|
139
|
+
* Minimum space to keep between the overlay and the viewport edge.
|
|
140
|
+
* At least `defaultOffsetY` so CDK's fit check — which runs before the `kbq-connected-overlay_below/_above`
|
|
141
|
+
* gap padding is applied to the pane — stays conservative enough to absorb that padding instead of
|
|
142
|
+
* letting the panel overflow the viewport by the size of the gap.
|
|
143
|
+
*/
|
|
144
|
+
protected readonly viewportMargin: number;
|
|
123
145
|
/**
|
|
124
146
|
* This position config ensures that the top "start" corner of the overlay
|
|
125
147
|
* is aligned with with the top "start" of the origin by default (overlapping
|
|
@@ -132,7 +154,8 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
132
154
|
* Trigger - is a clickable field to open select dropdown panel
|
|
133
155
|
*/
|
|
134
156
|
readonly trigger: _angular_core.Signal<ElementRef<any>>;
|
|
135
|
-
|
|
157
|
+
/** Reference to the overlay panel element. */
|
|
158
|
+
readonly panel: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
136
159
|
overlayDir: CdkConnectedOverlay;
|
|
137
160
|
tags: QueryList<KbqTag>;
|
|
138
161
|
readonly cleaner: _angular_core.Signal<KbqCleaner | undefined>;
|
|
@@ -151,6 +174,11 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
151
174
|
readonly closedStream: Observable<void>;
|
|
152
175
|
/** Event emitted when the selected value has been changed by the user. */
|
|
153
176
|
readonly selectionChange: _angular_core.OutputEmitterRef<KbqTreeSelectChange>;
|
|
177
|
+
/**
|
|
178
|
+
* Event emitted when all options are selected or deselected via the Ctrl/Cmd + A shortcut.
|
|
179
|
+
* Not emitted when a custom `selectAllHandler` is supplied — the handler owns the behaviour then.
|
|
180
|
+
*/
|
|
181
|
+
readonly onSelectAll: _angular_core.OutputEmitterRef<KbqSelectAllEvent<KbqTreeOption, KbqTreeSelect>>;
|
|
154
182
|
/**
|
|
155
183
|
* Event that emits whenever the raw value of the select changes. This is here primarily
|
|
156
184
|
* to facilitate the two-way binding for the `value` input.
|
|
@@ -189,6 +217,8 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
189
217
|
get autoSelect(): boolean;
|
|
190
218
|
set autoSelect(value: boolean);
|
|
191
219
|
private _autoSelect;
|
|
220
|
+
/** When `true`, a repeated Ctrl/Cmd+A deselects all options. Off by default (Ctrl+A only selects). */
|
|
221
|
+
readonly selectAllToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
192
222
|
get value(): any;
|
|
193
223
|
get id(): string;
|
|
194
224
|
set id(value: string);
|
|
@@ -215,22 +245,25 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
215
245
|
/** Whether multiple choice is enabled or not. True if multiple or multiline */
|
|
216
246
|
get multiSelection(): boolean;
|
|
217
247
|
private _focused;
|
|
218
|
-
/** Width of the overlay panel. */
|
|
219
|
-
protected overlayWidth: string | number;
|
|
220
|
-
/** Min width of the overlay panel. */
|
|
221
|
-
protected overlayMinWidth: string | number;
|
|
222
248
|
/**
|
|
223
249
|
* Minimum width of the panel.
|
|
224
250
|
* If minWidth is larger than window width, it will be ignored.
|
|
225
251
|
*/
|
|
226
|
-
readonly panelMinWidth: _angular_core.InputSignalWithTransform<
|
|
252
|
+
readonly panelMinWidth: _angular_core.InputSignalWithTransform<KbqPanelMinWidth, unknown>;
|
|
227
253
|
/** Origin for the overlay panel. */
|
|
228
254
|
protected overlayOrigin?: CdkOverlayOrigin | ElementRef;
|
|
229
255
|
/**
|
|
230
|
-
* Width of the panel. If set to `auto`, the panel will match the trigger width
|
|
231
|
-
* If set to null or an empty string, the panel will grow to match the
|
|
256
|
+
* Width of the panel. If set to `auto`, the panel will match the trigger width, but will never be
|
|
257
|
+
* narrower than `panelMinWidth`. If set to null or an empty string, the panel will grow to match the
|
|
258
|
+
* longest option's text. Any other value is used as an exact width, and `panelMinWidth` is not applied.
|
|
259
|
+
*/
|
|
260
|
+
readonly panelWidth: _angular_core.InputSignal<KbqPanelWidth>;
|
|
261
|
+
/**
|
|
262
|
+
* Maximum width of the panel in pixels. Caps how far the panel grows with its content — it never makes
|
|
263
|
+
* the panel narrower than the trigger, and never clamps an explicit `panelWidth`.
|
|
264
|
+
* When null, the `--kbq-panel-size-width-max` token applies.
|
|
232
265
|
*/
|
|
233
|
-
readonly
|
|
266
|
+
readonly panelMaxWidth: _angular_core.InputSignalWithTransform<KbqPanelMaxWidth, unknown>;
|
|
234
267
|
/**
|
|
235
268
|
* Controls when the search functionality is displayed based on the number of available options.
|
|
236
269
|
*
|
|
@@ -340,8 +373,6 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
340
373
|
private closingActions;
|
|
341
374
|
private getTotalItemsWidthInMatcher;
|
|
342
375
|
private getTotalVisibleItems;
|
|
343
|
-
/** Gets how wide the overlay panel should be. */
|
|
344
|
-
private getOverlayWidth;
|
|
345
376
|
private buildTriggerClone;
|
|
346
377
|
private getItemWidth;
|
|
347
378
|
private refreshTriggerValues;
|
|
@@ -362,7 +393,7 @@ declare class KbqTreeSelect extends KbqAbstractSelect implements AfterContentIni
|
|
|
362
393
|
private scrollActiveOptionIntoView;
|
|
363
394
|
private subscribeOnSearchChanges;
|
|
364
395
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqTreeSelect, never>;
|
|
365
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KbqTreeSelect, "kbq-tree-select", ["kbqTreeSelect"], { "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; "isSignal": true; }; "multiline": { "alias": "multiline"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectAllHandler": { "alias": "selectAllHandler"; "required": false; }; "panelMinWidth": { "alias": "panelMinWidth"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "searchMinOptionsThreshold": { "alias": "searchMinOptionsThreshold"; "required": false; }; "hiddenItemsTextFormatter": { "alias": "hiddenItemsTextFormatter"; "required": false; }; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["cleaner", "customTrigger", "customMatcher", "customTagTemplateRef", "tree", "search"], ["kbq-select-matcher, [kbq-select-matcher]", "kbq-select-trigger, [kbq-select-trigger]", "kbq-cleaner", "[kbqSelectSearch]", "[kbq-select-search-empty-result]", "kbq-tree-selection", "kbq-select-footer,[kbq-tree-select-footer]"], true, never>;
|
|
396
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KbqTreeSelect, "kbq-tree-select", ["kbqTreeSelect"], { "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; "isSignal": true; }; "multiline": { "alias": "multiline"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "selectAllToggle": { "alias": "selectAllToggle"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectAllHandler": { "alias": "selectAllHandler"; "required": false; }; "panelMinWidth": { "alias": "panelMinWidth"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "panelMaxWidth": { "alias": "panelMaxWidth"; "required": false; "isSignal": true; }; "searchMinOptionsThreshold": { "alias": "searchMinOptionsThreshold"; "required": false; }; "hiddenItemsTextFormatter": { "alias": "hiddenItemsTextFormatter"; "required": false; }; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "onSelectAll": "onSelectAll"; "valueChange": "valueChange"; }, ["cleaner", "customTrigger", "customMatcher", "customTagTemplateRef", "tree", "search"], ["kbq-select-matcher, [kbq-select-matcher]", "kbq-select-trigger, [kbq-select-trigger]", "kbq-cleaner", "[kbqSelectSearch]", "[kbq-select-search-empty-result]", "kbq-tree-selection", "kbq-select-footer,[kbq-tree-select-footer]"], true, never>;
|
|
366
397
|
static ngAcceptInputType_multiple: unknown;
|
|
367
398
|
static ngAcceptInputType_disabled: unknown;
|
|
368
399
|
}
|
package/username/index.d.ts
CHANGED
|
@@ -165,6 +165,24 @@ declare class KbqUsernameCustomPipe<T = unknown> implements PipeTransform {
|
|
|
165
165
|
static ɵpipe: i0.ɵɵPipeDeclaration<KbqUsernameCustomPipe<any>, "kbqUsernameCustom", true>;
|
|
166
166
|
static ɵprov: i0.ɵɵInjectableDeclaration<KbqUsernameCustomPipe<any>>;
|
|
167
167
|
}
|
|
168
|
+
interface KbqUsernameTextOptions {
|
|
169
|
+
/** Formats the login segment. Defaults to identity. */
|
|
170
|
+
formatLogin?: (login: string) => string;
|
|
171
|
+
/**
|
|
172
|
+
* Formats the site segment.
|
|
173
|
+
* Defaults to wrapping in parentheses, matching kbq-username display.
|
|
174
|
+
*/
|
|
175
|
+
formatSite?: (site: string) => string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Builds a full username string from a pre-formatted name plus optional login and site,
|
|
179
|
+
* mirroring the text rendered by `kbq-username`.
|
|
180
|
+
*
|
|
181
|
+
* Provide custom `formatLogin` / `formatSite` to tailor the output.
|
|
182
|
+
*/
|
|
183
|
+
declare function kbqBuildUsernameText(data: {
|
|
184
|
+
name: string;
|
|
185
|
+
} & Partial<Pick<KbqUserInfo, 'login' | 'site'>>, options?: KbqUsernameTextOptions): string;
|
|
168
186
|
|
|
169
187
|
declare class KbqUsernameModule {
|
|
170
188
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqUsernameModule, never>;
|
|
@@ -172,5 +190,5 @@ declare class KbqUsernameModule {
|
|
|
172
190
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqUsernameModule>;
|
|
173
191
|
}
|
|
174
192
|
|
|
175
|
-
export { KBQ_PROFILE_MAPPING, KbqMappingMissingError, KbqUsername, KbqUsernameCustomPipe, KbqUsernameCustomView, KbqUsernameFormatKey, KbqUsernameModule, KbqUsernamePipe, KbqUsernamePrimary, KbqUsernameSecondary, KbqUsernameSecondaryHint, kbqDefaultFullNameFormat, kbqDefaultFullNameFormatCustom };
|
|
176
|
-
export type { KbqFormatKeyToProfileMapping, KbqFormatKeyToProfileMappingExtended, KbqUserInfo, KbqUsernameMode, KbqUsernameStyle };
|
|
193
|
+
export { KBQ_PROFILE_MAPPING, KbqMappingMissingError, KbqUsername, KbqUsernameCustomPipe, KbqUsernameCustomView, KbqUsernameFormatKey, KbqUsernameModule, KbqUsernamePipe, KbqUsernamePrimary, KbqUsernameSecondary, KbqUsernameSecondaryHint, kbqBuildUsernameText, kbqDefaultFullNameFormat, kbqDefaultFullNameFormatCustom };
|
|
194
|
+
export type { KbqFormatKeyToProfileMapping, KbqFormatKeyToProfileMappingExtended, KbqUserInfo, KbqUsernameMode, KbqUsernameStyle, KbqUsernameTextOptions };
|