@4sh/ui-kit 0.15.0 → 0.17.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/README.fr.md +18 -10
- package/README.md +18 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -953
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2039
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -130
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -246
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -291
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -194
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -131
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +723 -596
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +313 -2
- package/mcp/data/text-search-docs.json +177 -17
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/styles/utils/_mixins.scss +11 -0
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +291 -186
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import { BaseFormField } from "@4sh/ui-kit/forms";
|
|
7
|
+
import { UiIconSize } from "@4sh/ui-kit/base/ui-icon";
|
|
7
8
|
/** Model value: the selected suggestion (or its `optionValue`), free text, an array (`multiple`), or `null`. */
|
|
8
|
-
type AutocompleteValue<T = unknown> = T | string | T[] | null;
|
|
9
|
+
export type AutocompleteValue<T = unknown> = T | string | T[] | null;
|
|
9
10
|
/** How the dropdown trigger builds its query. */
|
|
10
|
-
type AutocompleteDropdownMode = 'blank' | 'current';
|
|
11
|
+
export type AutocompleteDropdownMode = 'blank' | 'current';
|
|
11
12
|
/** Payload of the `completeMethod` output — the parent fills `suggestions` from it. */
|
|
12
|
-
interface AutocompleteCompleteEvent {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
export interface AutocompleteCompleteEvent {
|
|
14
|
+
/** Originating DOM event (keystroke, dropdown click, focus). */
|
|
15
|
+
originalEvent: Event;
|
|
16
|
+
/** Current query text (empty string is valid — e.g. a `blank` dropdown). */
|
|
17
|
+
query: string;
|
|
17
18
|
}
|
|
18
19
|
/** Context handed to the `#item` template. */
|
|
19
|
-
interface AutocompleteItemContext<T = unknown> {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
export interface AutocompleteItemContext<T = unknown> {
|
|
21
|
+
/** The original suggestion (default `$implicit`). */
|
|
22
|
+
$implicit: T;
|
|
23
|
+
/** Same as `$implicit`, named for readability. */
|
|
24
|
+
option: T;
|
|
25
|
+
/** Whether this suggestion is the current value. */
|
|
26
|
+
selected: boolean;
|
|
27
|
+
/** Index of the suggestion in the visible list. */
|
|
28
|
+
index: number;
|
|
28
29
|
}
|
|
29
30
|
/** Context handed to the `#selectedItem` template (once per selected value, `multiple`). */
|
|
30
|
-
interface AutocompleteSelectedItemContext<T = unknown> {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
export interface AutocompleteSelectedItemContext<T = unknown> {
|
|
32
|
+
/** The original selected suggestion (default `$implicit`). */
|
|
33
|
+
$implicit: T;
|
|
34
|
+
/** Same as `$implicit`, named for readability. */
|
|
35
|
+
option: T;
|
|
36
|
+
/** Index among the selected values. */
|
|
37
|
+
index: number;
|
|
38
|
+
/** Removes this value (e.g. wire it to a removable chip). */
|
|
39
|
+
remove: () => void;
|
|
39
40
|
}
|
|
40
41
|
/** Context handed to the `#group` template. */
|
|
41
|
-
interface AutocompleteGroupContext<G = unknown> {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
export interface AutocompleteGroupContext<G = unknown> {
|
|
43
|
+
/** The original group object (default `$implicit`). */
|
|
44
|
+
$implicit: G;
|
|
45
|
+
/** Same as `$implicit`, named for readability. */
|
|
46
|
+
group: G;
|
|
46
47
|
}
|
|
47
48
|
/** Payload of the `lazyLoad` output (rendered range of the virtual viewport). */
|
|
48
|
-
interface AutocompleteLazyLoadEvent {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
export interface AutocompleteLazyLoadEvent {
|
|
50
|
+
/** Index of the first rendered row. */
|
|
51
|
+
first: number;
|
|
52
|
+
/** Index after the last rendered row (exclusive). */
|
|
53
|
+
last: number;
|
|
53
54
|
}
|
|
54
55
|
/** @ignore Flat view of one suggestion (logic source). */
|
|
55
56
|
interface AcEntry {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
value: unknown;
|
|
58
|
+
label: string;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
original: unknown;
|
|
60
61
|
}
|
|
61
62
|
/** @ignore Rendered row: a group header or a suggestion. */
|
|
62
63
|
type AcRow = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
kind: 'group';
|
|
65
|
+
key: string;
|
|
66
|
+
label: string;
|
|
67
|
+
original: unknown;
|
|
67
68
|
} | {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
kind: 'option';
|
|
70
|
+
key: string;
|
|
71
|
+
id: string;
|
|
72
|
+
index: number;
|
|
73
|
+
entry: AcEntry;
|
|
74
|
+
selected: boolean;
|
|
74
75
|
};
|
|
75
76
|
/**
|
|
76
77
|
* ui-autocomplete — headless suggestion field built on the `ui-field` shell
|
|
@@ -91,6 +92,10 @@ type AcRow = {
|
|
|
91
92
|
* (`role="combobox"` + `aria-activedescendant`: focus never leaves the input,
|
|
92
93
|
* suggestions are only visually focused).
|
|
93
94
|
*
|
|
95
|
+
* A value the browser writes into the input without focus (autofill) updates
|
|
96
|
+
* the model and emits `completeMethod` without opening the panel; with
|
|
97
|
+
* `forceSelection`, the suggestion carrying that exact label is then selected.
|
|
98
|
+
*
|
|
94
99
|
* Customisation: the `#item`, `#selectedItem`, `#group`, `#header`, `#footer`
|
|
95
100
|
* and `#empty` templates, `panelStyleClass`, and the local SCSS variables.
|
|
96
101
|
*
|
|
@@ -101,316 +106,521 @@ type AcRow = {
|
|
|
101
106
|
* (completeMethod)="search($event)" />
|
|
102
107
|
* ```
|
|
103
108
|
*/
|
|
104
|
-
declare class UiAutocomplete<T = unknown> extends BaseFormField<AutocompleteValue<T>> {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
109
|
+
export declare class UiAutocomplete<T = unknown> extends BaseFormField<AutocompleteValue<T>> {
|
|
110
|
+
/** Suggestions to display — set by the parent in response to `completeMethod`. */
|
|
111
|
+
suggestions: import("@angular/core").InputSignal<readonly unknown[]>;
|
|
112
|
+
/** Field name (dot-path) to read a label from, when suggestions are objects. */
|
|
113
|
+
optionLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
114
|
+
/** Field name (dot-path) to read the value from, when suggestions are objects. */
|
|
115
|
+
optionValue: import("@angular/core").InputSignal<string | undefined>;
|
|
116
|
+
/** Field name (dot-path) to read the disabled flag from, when suggestions are objects. */
|
|
117
|
+
optionDisabled: import("@angular/core").InputSignal<string | undefined>;
|
|
118
|
+
/** Property used to compare object values for equality (highlighting the current value). */
|
|
119
|
+
dataKey: import("@angular/core").InputSignal<string | undefined>;
|
|
120
|
+
/** Treat `suggestions` as groups (`optionGroupLabel` + `optionGroupChildren`). */
|
|
121
|
+
group: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
122
|
+
/** Field name of a group's label. */
|
|
123
|
+
optionGroupLabel: import("@angular/core").InputSignal<string>;
|
|
124
|
+
/** Field name of a group's children array. */
|
|
125
|
+
optionGroupChildren: import("@angular/core").InputSignal<string>;
|
|
126
|
+
/** Native placeholder shown when the input is empty. */
|
|
127
|
+
placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
128
|
+
/** Minimum number of characters before `completeMethod` is emitted while typing. */
|
|
129
|
+
minLength: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
130
|
+
/** Debounce (ms) between the last keystroke and `completeMethod`. */
|
|
131
|
+
delay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
132
|
+
/** Emit a query as soon as the input is focused (before any typing). */
|
|
133
|
+
completeOnFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
134
|
+
/** Show a trigger button that queries suggestions on click. */
|
|
135
|
+
dropdown: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
136
|
+
/** `blank` queries with an empty string, `current` with the input's current text. */
|
|
137
|
+
dropdownMode: import("@angular/core").InputSignal<AutocompleteDropdownMode>;
|
|
138
|
+
/** Accessible name of the dropdown trigger. */
|
|
139
|
+
dropdownAriaLabel: import("@angular/core").InputSignal<string>;
|
|
140
|
+
/** FontAwesome icon of the dropdown trigger. */
|
|
141
|
+
dropdownIcon: import("@angular/core").InputSignal<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Validate the typed text against the suggestions on blur: if it matches
|
|
144
|
+
* none, the input is cleared so the model always holds a real suggestion.
|
|
145
|
+
*/
|
|
146
|
+
forceSelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
147
|
+
/** Ripple Effect */
|
|
148
|
+
ripple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
149
|
+
/** Multi-selection: the model is an array, each pick renders as a removable chip in the field. */
|
|
150
|
+
multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
151
|
+
/** With `multiple`: ignore picks whose value is already selected (no duplicates). */
|
|
152
|
+
unique: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
153
|
+
/** With `multiple`: max number of chips rendered; the rest collapses behind `overflowLabel`. */
|
|
154
|
+
maxSelectedLabels: import("@angular/core").InputSignal<number | undefined>;
|
|
155
|
+
/** With `multiple`: format of the collapsed-count chip (`{0}` = hidden count). */
|
|
156
|
+
overflowLabel: import("@angular/core").InputSignal<string>;
|
|
157
|
+
/** With `multiple`: accessible label of each chip's remove action — `{0}` is the chip label. */
|
|
158
|
+
removeTagLabel: import("@angular/core").InputSignal<string>;
|
|
159
|
+
/** Show a clear (×) action when the input holds text. */
|
|
160
|
+
showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
161
|
+
/** Accessible name of the clear action. */
|
|
162
|
+
clearAriaLabel: import("@angular/core").InputSignal<string>;
|
|
163
|
+
/** Loading state: a spinner replaces the dropdown trigger while a query runs. */
|
|
164
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
165
|
+
/** Message shown when a query returns no suggestion. */
|
|
166
|
+
emptyMessage: import("@angular/core").InputSignal<string>;
|
|
167
|
+
/** Render the empty-state row when there is no suggestion. */
|
|
168
|
+
showEmptyMessage: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
169
|
+
/** Visually focus the first suggestion when the panel opens. */
|
|
170
|
+
autoOptionFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
171
|
+
/** Set the value as soon as a suggestion is visually focused with the keyboard. */
|
|
172
|
+
selectOnFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
173
|
+
/** Visually focus the suggestion under the mouse pointer. */
|
|
174
|
+
focusOnHover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
175
|
+
/** Render the suggestions through a CDK virtual-scroll viewport. */
|
|
176
|
+
virtualScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
177
|
+
/** Fixed height (px) of one row — required by the virtual scroller. */
|
|
178
|
+
virtualScrollItemSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
179
|
+
/** With `virtualScroll`: emit `lazyLoad` with the rendered range (lazy loading). */
|
|
180
|
+
lazy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
181
|
+
/** Max height of the suggestions list (CSS size, e.g. `'320px'`). Defaults from the SCSS. */
|
|
182
|
+
scrollHeight: import("@angular/core").InputSignal<string | undefined>;
|
|
183
|
+
/**
|
|
184
|
+
* Auto-flip the panel above the input when there isn't enough room below
|
|
185
|
+
* (default). Set `false` to lock it below the input regardless of space.
|
|
186
|
+
*/
|
|
187
|
+
autoFlip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
188
|
+
/** Extra class(es) applied to the panel (scoped custom styling). */
|
|
189
|
+
panelStyleClass: import("@angular/core").InputSignal<string | undefined>;
|
|
190
|
+
/** Emitted (debounced) when a query should be run — fill `suggestions` from it. */
|
|
191
|
+
completeMethod: import("@angular/core").OutputEmitterRef<AutocompleteCompleteEvent>;
|
|
192
|
+
/** Emitted whenever the value changes (selection, typing, clear). */
|
|
193
|
+
valueChange: import("@angular/core").OutputEmitterRef<AutocompleteValue<T>>;
|
|
194
|
+
/** Emitted when a suggestion is picked (payload is the original suggestion). */
|
|
195
|
+
optionSelect: import("@angular/core").OutputEmitterRef<T>;
|
|
196
|
+
/** With `multiple`: emitted when a selected value is removed (payload is the removed suggestion). */
|
|
197
|
+
optionUnselect: import("@angular/core").OutputEmitterRef<T>;
|
|
198
|
+
/** Emitted when the panel opens. */
|
|
199
|
+
opened: import("@angular/core").OutputEmitterRef<void>;
|
|
200
|
+
/** Emitted when the panel closes. */
|
|
201
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
202
|
+
/** Emitted when the value is cleared. */
|
|
203
|
+
cleared: import("@angular/core").OutputEmitterRef<void>;
|
|
204
|
+
/** Emitted when the dropdown trigger is clicked. */
|
|
205
|
+
dropdownClick: import("@angular/core").OutputEmitterRef<AutocompleteCompleteEvent>;
|
|
206
|
+
/** Emitted when the virtual viewport's rendered range changes (`virtualScroll` + `lazy`). */
|
|
207
|
+
lazyLoad: import("@angular/core").OutputEmitterRef<AutocompleteLazyLoadEvent>;
|
|
208
|
+
/** Emitted when the input receives focus. */
|
|
209
|
+
inputFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
210
|
+
/** Emitted when the input loses focus. */
|
|
211
|
+
inputBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
212
|
+
/** Custom suggestion template: `<ng-template #item let-option let-selected="selected">`. */
|
|
213
|
+
protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<AutocompleteItemContext<T>> | undefined>;
|
|
214
|
+
/** Custom selected-value template (per selected value, `multiple`): `<ng-template #selectedItem let-option let-remove="remove">`. */
|
|
215
|
+
protected readonly selectedItemTemplate: import("@angular/core").Signal<TemplateRef<AutocompleteSelectedItemContext<T>> | undefined>;
|
|
216
|
+
/** Custom group-header template: `<ng-template #group let-group>`. */
|
|
217
|
+
protected readonly groupTemplate: import("@angular/core").Signal<TemplateRef<AutocompleteGroupContext<unknown>> | undefined>;
|
|
218
|
+
/** Free content pinned above the list. */
|
|
219
|
+
protected readonly headerTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
220
|
+
/** Free content pinned under the list. */
|
|
221
|
+
protected readonly footerTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
222
|
+
/** Custom empty-state template. */
|
|
223
|
+
protected readonly emptyTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
224
|
+
/** @ignore Component root (overlay origin + outside-focus detection). */
|
|
225
|
+
private readonly containerEl;
|
|
226
|
+
/** @ignore Focusable input (combobox). */
|
|
227
|
+
private readonly inputEl;
|
|
228
|
+
/** @ignore Panel root element (for scrolling the focused option into view). */
|
|
229
|
+
private readonly panelEl;
|
|
230
|
+
/** @ignore Virtual-scroll viewport (lazy range + scrollToIndex). */
|
|
231
|
+
private readonly viewport;
|
|
232
|
+
/** @ignore Rendered chips (`multiple` mode, roving focus). */
|
|
233
|
+
private readonly tagEls;
|
|
234
|
+
/** @ignore */
|
|
235
|
+
protected readonly panelOpen: import("@angular/core").WritableSignal<boolean>;
|
|
236
|
+
/** @ignore Element the overlay is anchored to (the field box). */
|
|
237
|
+
protected readonly overlayOrigin: import("@angular/core").WritableSignal<Element | null>;
|
|
238
|
+
/** @ignore Panel width, locked to the field box width on open. */
|
|
239
|
+
protected readonly overlayWidth: import("@angular/core").WritableSignal<number | null>;
|
|
240
|
+
/** @ignore Text currently shown in the `<input>`. */
|
|
241
|
+
protected readonly inputText: import("@angular/core").WritableSignal<string>;
|
|
242
|
+
/** @ignore Index of the visually focused option among the visible options (-1 = none). */
|
|
243
|
+
protected readonly focusedIndex: import("@angular/core").WritableSignal<number>;
|
|
244
|
+
/** @ignore Index of the chip holding the roving focus (-1 = the input, `multiple` mode). */
|
|
245
|
+
protected readonly focusedTag: import("@angular/core").WritableSignal<number>;
|
|
246
|
+
/** @ignore Entries recorded at pick time so chip labels survive suggestion churn (`multiple`). */
|
|
247
|
+
private readonly selectionCache;
|
|
248
|
+
/** @ignore A query has been emitted and is awaiting fresh suggestions (feeds `completeOnFocus`). */
|
|
249
|
+
private queryDirty;
|
|
250
|
+
/** @ignore Debounce handle for `completeMethod`. */
|
|
251
|
+
private searchTimeout;
|
|
252
|
+
/** @ignore A written value whose label could not be resolved yet (see `writeValue`). */
|
|
253
|
+
private readonly pendingLabelSync;
|
|
254
|
+
/** @ignore `forceSelection`: a text written by the browser, awaiting the suggestion it names. */
|
|
255
|
+
private readonly pendingFill;
|
|
256
|
+
constructor();
|
|
257
|
+
/** @ignore */
|
|
258
|
+
protected readonly listboxId: import("@angular/core").Signal<string>;
|
|
259
|
+
/** @ignore Icon size aligned with the field size. */
|
|
260
|
+
protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
|
|
261
|
+
/** @ignore Flat entries (no groups). */
|
|
262
|
+
private readonly flatEntries;
|
|
263
|
+
/** @ignore Groups of entries (when `group` is enabled). */
|
|
264
|
+
private readonly groupEntries;
|
|
265
|
+
/** @ignore Rendered rows: suggestions + their group headers, with stable ids. */
|
|
266
|
+
protected readonly visibleRows: import("@angular/core").Signal<AcRow[]>;
|
|
267
|
+
/** @ignore Visible option rows only (visual-focus space). */
|
|
268
|
+
protected readonly visibleOptions: import("@angular/core").Signal<{
|
|
269
|
+
kind: "option";
|
|
270
|
+
key: string;
|
|
271
|
+
id: string;
|
|
272
|
+
index: number;
|
|
273
|
+
entry: AcEntry;
|
|
274
|
+
selected: boolean;
|
|
275
|
+
}[]>;
|
|
276
|
+
/** @ignore aria-setsize of the visible listbox. */
|
|
277
|
+
protected readonly optionCount: import("@angular/core").Signal<number>;
|
|
278
|
+
/** @ignore trackBy of the virtual list. */
|
|
279
|
+
protected readonly trackRow: (_: number, row: AcRow) => string;
|
|
280
|
+
/** @ignore The input holds text. */
|
|
281
|
+
protected readonly hasText: import("@angular/core").Signal<boolean>;
|
|
282
|
+
/** @ignore The clear action is shown. */
|
|
283
|
+
protected readonly showClearButton: import("@angular/core").Signal<boolean>;
|
|
284
|
+
/** @ignore Selected values in `multiple` mode (always an array). */
|
|
285
|
+
protected readonly selectedValues: import("@angular/core").Signal<unknown[]>;
|
|
286
|
+
/** @ignore One row per selected value (label resolved from the pick-time cache first). */
|
|
287
|
+
protected readonly tagRows: import("@angular/core").Signal<{
|
|
288
|
+
value: unknown;
|
|
289
|
+
index: number;
|
|
290
|
+
label: string;
|
|
291
|
+
removeAriaLabel: string;
|
|
292
|
+
}[]>;
|
|
293
|
+
/** @ignore Rows actually rendered as chips (`maxSelectedLabels` cap). */
|
|
294
|
+
protected readonly visibleTagRows: import("@angular/core").Signal<{
|
|
295
|
+
value: unknown;
|
|
296
|
+
index: number;
|
|
297
|
+
label: string;
|
|
298
|
+
removeAriaLabel: string;
|
|
299
|
+
}[]>;
|
|
300
|
+
/** @ignore Number of selected values collapsed behind the overflow chip. */
|
|
301
|
+
protected readonly overflowCount: import("@angular/core").Signal<number>;
|
|
302
|
+
/** @ignore Rendered overflow chip label (e.g. `(+2 autres)`). */
|
|
303
|
+
protected readonly overflowText: import("@angular/core").Signal<string>;
|
|
304
|
+
/** @ignore Contexts handed to the `#selectedItem` template (one per displayed value). */
|
|
305
|
+
protected readonly selectedItemContexts: import("@angular/core").Signal<AutocompleteSelectedItemContext<T>[]>;
|
|
306
|
+
/** @ignore Placeholder hidden as soon as values are selected (`multiple`), and
|
|
307
|
+
* while a floating label is at rest: it already holds that spot. */
|
|
308
|
+
protected readonly effectivePlaceholder: import("@angular/core").Signal<string>;
|
|
309
|
+
/** @ignore Keeps a floating label raised once focus leaves. */
|
|
310
|
+
protected readonly isFilled: import("@angular/core").Signal<boolean>;
|
|
311
|
+
/** @ignore Chips are removable unless the field is disabled/readonly. */
|
|
312
|
+
protected readonly canRemove: import("@angular/core").Signal<boolean>;
|
|
313
|
+
/** @ignore The empty-state row is rendered. */
|
|
314
|
+
protected readonly showEmpty: import("@angular/core").Signal<boolean>;
|
|
315
|
+
/** @ignore id of the visually focused option (for aria-activedescendant). */
|
|
316
|
+
protected readonly activeDescendant: import("@angular/core").Signal<string | null>;
|
|
317
|
+
/** @ignore Below the input, flipping above when `autoFlip` and space is lacking. */
|
|
318
|
+
protected readonly overlayPositions: import("@angular/core").Signal<import("@angular/cdk/overlay").ConnectedPosition[]>;
|
|
319
|
+
/** @ignore Concrete viewport height (px) for the virtual scroller. */
|
|
320
|
+
protected readonly viewportHeight: import("@angular/core").Signal<string>;
|
|
321
|
+
/** @ignore `scrollHeight` parsed to px, with size-based defaults (matches the SCSS). */
|
|
322
|
+
private readonly scrollHeightPx;
|
|
323
|
+
writeValue(value: AutocompleteValue<T>): void;
|
|
324
|
+
/** @ignore Best-effort label seed for values written from the form, from the current suggestions. */
|
|
325
|
+
private seedSelectionCache;
|
|
326
|
+
/** Moves focus to the input. */
|
|
327
|
+
focus(options?: FocusOptions): void;
|
|
328
|
+
/** Native `<input>` element (the combobox). */
|
|
329
|
+
nativeInputElement(): HTMLInputElement;
|
|
330
|
+
/** @ignore */
|
|
331
|
+
private open;
|
|
332
|
+
/** Closes the suggestions panel; `focusInput` moves the focus back to the input. */
|
|
333
|
+
close(focusInput?: boolean): void;
|
|
334
|
+
/** @ignore First visually focused option when the panel opens. */
|
|
335
|
+
private initialFocusIndex;
|
|
336
|
+
/** @ignore Typing: view → form (free text unless `forceSelection`) + debounced query.
|
|
337
|
+
* A value written by the browser without focus queries at once, panel closed. */
|
|
338
|
+
protected onInput(event: Event): void;
|
|
339
|
+
/** @ignore Value written by the browser without an `input` event. */
|
|
340
|
+
protected onBrowserFill(event: Event): void;
|
|
341
|
+
/** @ignore Emit a query and open the panel. */
|
|
342
|
+
private runSearch;
|
|
343
|
+
/** @ignore */
|
|
344
|
+
protected onDropdownClick(event: MouseEvent): void;
|
|
345
|
+
/** @ignore */
|
|
346
|
+
protected onInputFocus(event: FocusEvent): void;
|
|
347
|
+
/** @ignore Mark touched + `forceSelection` validation when focus leaves the component. */
|
|
348
|
+
protected onInputBlur(event: FocusEvent): void;
|
|
349
|
+
/**
|
|
350
|
+
* @ignore `forceSelection`: keep the model in sync with a real suggestion.
|
|
351
|
+
* The text is matched (case/diacritics-insensitive) against a known label;
|
|
352
|
+
* on no match the field is reset so the model never holds free text.
|
|
353
|
+
*/
|
|
354
|
+
private validateForceSelection;
|
|
355
|
+
/** @ignore Clear action (does not bubble to the input). */
|
|
356
|
+
protected onClearClick(event: MouseEvent): void;
|
|
357
|
+
/** Clears the value. */
|
|
358
|
+
clear(): void;
|
|
359
|
+
/** @ignore Keyboard on the input (combobox pattern). */
|
|
360
|
+
protected onInputKeydown(event: KeyboardEvent): void;
|
|
361
|
+
/** @ignore Re-open the panel with the current suggestions (no re-query). */
|
|
362
|
+
private reopen;
|
|
363
|
+
/** @ignore */
|
|
364
|
+
protected onOptionClick(row: Extract<AcRow, {
|
|
365
|
+
kind: 'option';
|
|
366
|
+
}>, event: Event): void;
|
|
367
|
+
/** @ignore Keep the focus on the input when clicking an option. */
|
|
368
|
+
protected onOptionMousedown(event: MouseEvent): void;
|
|
369
|
+
/** @ignore */
|
|
370
|
+
protected onOptionMouseEnter(row: Extract<AcRow, {
|
|
371
|
+
kind: 'option';
|
|
372
|
+
}>): void;
|
|
373
|
+
/** @ignore Pick a suggestion: set the value + display its label. */
|
|
374
|
+
private selectEntry;
|
|
375
|
+
/** @ignore */
|
|
376
|
+
private selectFocused;
|
|
377
|
+
/** @ignore Propagate a user-driven value change (view → form). */
|
|
378
|
+
private commit;
|
|
379
|
+
/** @ignore Move the visual focus, skipping disabled options (no wrap). */
|
|
380
|
+
private moveFocus;
|
|
381
|
+
/** @ignore Focus the first (`1`) or last (`-1`) enabled option. */
|
|
382
|
+
private focusEdge;
|
|
383
|
+
/** @ignore Apply a visual-focus move (+ select-on-focus, + scroll into view). */
|
|
384
|
+
private setFocusedIndex;
|
|
385
|
+
/** @ignore Keep the visually focused option visible ('auto' — smooth is unreliable in throttled tabs). */
|
|
386
|
+
private scrollFocusedIntoView;
|
|
387
|
+
/** @ignore Label displayed for a model value (best-effort against the suggestions). */
|
|
388
|
+
/** Remove the selected value at `index` (`multiple` mode). */
|
|
389
|
+
removeAt(index: number): void;
|
|
390
|
+
/** @ignore Roving keyboard on a chip (`multiple` mode). */
|
|
391
|
+
protected onTagKeydown(event: KeyboardEvent, index: number): void;
|
|
392
|
+
/** @ignore Clicking the box's empty area focuses the input. */
|
|
393
|
+
protected onBoxMousedown(event: MouseEvent): void;
|
|
394
|
+
/** @ignore Move the roving focus onto a chip. */
|
|
395
|
+
private focusTag;
|
|
396
|
+
/** @ignore Return the roving focus to the input. */
|
|
397
|
+
private focusInput;
|
|
398
|
+
/** @ignore Label of a selected value: pick-time cache first, then the current suggestions. */
|
|
399
|
+
private labelOfSelected;
|
|
400
|
+
/** @ignore Original suggestion of a selected value (pick-time cache first, else the raw value). */
|
|
401
|
+
private originalOfSelected;
|
|
402
|
+
private labelOfValue;
|
|
403
|
+
/** @ignore Suggestion entry matching a model value, if currently known. */
|
|
404
|
+
private entryOfValue;
|
|
405
|
+
/** @ignore Shared option resolution (see `option-resolver.ts`). */
|
|
406
|
+
private readonly resolver;
|
|
407
|
+
/** @ignore */
|
|
408
|
+
private toEntry;
|
|
409
|
+
/** @ignore Read a (dot-path) field from an object. */
|
|
410
|
+
private getField;
|
|
411
|
+
/** @ignore */
|
|
412
|
+
private resolveValue;
|
|
413
|
+
/** @ignore */
|
|
414
|
+
private resolveLabel;
|
|
415
|
+
/** @ignore */
|
|
416
|
+
private asText;
|
|
417
|
+
/** @ignore Whether a resolved value is the current model value. */
|
|
418
|
+
private isValueSelected;
|
|
419
|
+
/** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
|
|
420
|
+
private equals;
|
|
421
|
+
/** @ignore Enabled suggestion whose label matches `text` (case/diacritics-insensitive). */
|
|
422
|
+
private entryLabelled;
|
|
423
|
+
/** @ignore Case- and diacritics-insensitive comparison text. */
|
|
424
|
+
private normalize;
|
|
425
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiAutocomplete<any>, never>;
|
|
426
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiAutocomplete<any>, "ui-autocomplete", never, {
|
|
427
|
+
"suggestions": {
|
|
428
|
+
"alias": "suggestions";
|
|
429
|
+
"required": false;
|
|
430
|
+
"isSignal": true;
|
|
431
|
+
};
|
|
432
|
+
"optionLabel": {
|
|
433
|
+
"alias": "optionLabel";
|
|
434
|
+
"required": false;
|
|
435
|
+
"isSignal": true;
|
|
436
|
+
};
|
|
437
|
+
"optionValue": {
|
|
438
|
+
"alias": "optionValue";
|
|
439
|
+
"required": false;
|
|
440
|
+
"isSignal": true;
|
|
441
|
+
};
|
|
442
|
+
"optionDisabled": {
|
|
443
|
+
"alias": "optionDisabled";
|
|
444
|
+
"required": false;
|
|
445
|
+
"isSignal": true;
|
|
446
|
+
};
|
|
447
|
+
"dataKey": {
|
|
448
|
+
"alias": "dataKey";
|
|
449
|
+
"required": false;
|
|
450
|
+
"isSignal": true;
|
|
451
|
+
};
|
|
452
|
+
"group": {
|
|
453
|
+
"alias": "group";
|
|
454
|
+
"required": false;
|
|
455
|
+
"isSignal": true;
|
|
456
|
+
};
|
|
457
|
+
"optionGroupLabel": {
|
|
458
|
+
"alias": "optionGroupLabel";
|
|
459
|
+
"required": false;
|
|
460
|
+
"isSignal": true;
|
|
461
|
+
};
|
|
462
|
+
"optionGroupChildren": {
|
|
463
|
+
"alias": "optionGroupChildren";
|
|
464
|
+
"required": false;
|
|
465
|
+
"isSignal": true;
|
|
466
|
+
};
|
|
467
|
+
"placeholder": {
|
|
468
|
+
"alias": "placeholder";
|
|
469
|
+
"required": false;
|
|
470
|
+
"isSignal": true;
|
|
471
|
+
};
|
|
472
|
+
"minLength": {
|
|
473
|
+
"alias": "minLength";
|
|
474
|
+
"required": false;
|
|
475
|
+
"isSignal": true;
|
|
476
|
+
};
|
|
477
|
+
"delay": {
|
|
478
|
+
"alias": "delay";
|
|
479
|
+
"required": false;
|
|
480
|
+
"isSignal": true;
|
|
481
|
+
};
|
|
482
|
+
"completeOnFocus": {
|
|
483
|
+
"alias": "completeOnFocus";
|
|
484
|
+
"required": false;
|
|
485
|
+
"isSignal": true;
|
|
486
|
+
};
|
|
487
|
+
"dropdown": {
|
|
488
|
+
"alias": "dropdown";
|
|
489
|
+
"required": false;
|
|
490
|
+
"isSignal": true;
|
|
491
|
+
};
|
|
492
|
+
"dropdownMode": {
|
|
493
|
+
"alias": "dropdownMode";
|
|
494
|
+
"required": false;
|
|
495
|
+
"isSignal": true;
|
|
496
|
+
};
|
|
497
|
+
"dropdownAriaLabel": {
|
|
498
|
+
"alias": "dropdownAriaLabel";
|
|
499
|
+
"required": false;
|
|
500
|
+
"isSignal": true;
|
|
501
|
+
};
|
|
502
|
+
"dropdownIcon": {
|
|
503
|
+
"alias": "dropdownIcon";
|
|
504
|
+
"required": false;
|
|
505
|
+
"isSignal": true;
|
|
506
|
+
};
|
|
507
|
+
"forceSelection": {
|
|
508
|
+
"alias": "forceSelection";
|
|
509
|
+
"required": false;
|
|
510
|
+
"isSignal": true;
|
|
511
|
+
};
|
|
512
|
+
"ripple": {
|
|
513
|
+
"alias": "ripple";
|
|
514
|
+
"required": false;
|
|
515
|
+
"isSignal": true;
|
|
516
|
+
};
|
|
517
|
+
"multiple": {
|
|
518
|
+
"alias": "multiple";
|
|
519
|
+
"required": false;
|
|
520
|
+
"isSignal": true;
|
|
521
|
+
};
|
|
522
|
+
"unique": {
|
|
523
|
+
"alias": "unique";
|
|
524
|
+
"required": false;
|
|
525
|
+
"isSignal": true;
|
|
526
|
+
};
|
|
527
|
+
"maxSelectedLabels": {
|
|
528
|
+
"alias": "maxSelectedLabels";
|
|
529
|
+
"required": false;
|
|
530
|
+
"isSignal": true;
|
|
531
|
+
};
|
|
532
|
+
"overflowLabel": {
|
|
533
|
+
"alias": "overflowLabel";
|
|
534
|
+
"required": false;
|
|
535
|
+
"isSignal": true;
|
|
536
|
+
};
|
|
537
|
+
"removeTagLabel": {
|
|
538
|
+
"alias": "removeTagLabel";
|
|
539
|
+
"required": false;
|
|
540
|
+
"isSignal": true;
|
|
541
|
+
};
|
|
542
|
+
"showClear": {
|
|
543
|
+
"alias": "showClear";
|
|
544
|
+
"required": false;
|
|
545
|
+
"isSignal": true;
|
|
546
|
+
};
|
|
547
|
+
"clearAriaLabel": {
|
|
548
|
+
"alias": "clearAriaLabel";
|
|
549
|
+
"required": false;
|
|
550
|
+
"isSignal": true;
|
|
551
|
+
};
|
|
552
|
+
"loading": {
|
|
553
|
+
"alias": "loading";
|
|
554
|
+
"required": false;
|
|
555
|
+
"isSignal": true;
|
|
556
|
+
};
|
|
557
|
+
"emptyMessage": {
|
|
558
|
+
"alias": "emptyMessage";
|
|
559
|
+
"required": false;
|
|
560
|
+
"isSignal": true;
|
|
561
|
+
};
|
|
562
|
+
"showEmptyMessage": {
|
|
563
|
+
"alias": "showEmptyMessage";
|
|
564
|
+
"required": false;
|
|
565
|
+
"isSignal": true;
|
|
566
|
+
};
|
|
567
|
+
"autoOptionFocus": {
|
|
568
|
+
"alias": "autoOptionFocus";
|
|
569
|
+
"required": false;
|
|
570
|
+
"isSignal": true;
|
|
571
|
+
};
|
|
572
|
+
"selectOnFocus": {
|
|
573
|
+
"alias": "selectOnFocus";
|
|
574
|
+
"required": false;
|
|
575
|
+
"isSignal": true;
|
|
576
|
+
};
|
|
577
|
+
"focusOnHover": {
|
|
578
|
+
"alias": "focusOnHover";
|
|
579
|
+
"required": false;
|
|
580
|
+
"isSignal": true;
|
|
581
|
+
};
|
|
582
|
+
"virtualScroll": {
|
|
583
|
+
"alias": "virtualScroll";
|
|
584
|
+
"required": false;
|
|
585
|
+
"isSignal": true;
|
|
586
|
+
};
|
|
587
|
+
"virtualScrollItemSize": {
|
|
588
|
+
"alias": "virtualScrollItemSize";
|
|
589
|
+
"required": false;
|
|
590
|
+
"isSignal": true;
|
|
591
|
+
};
|
|
592
|
+
"lazy": {
|
|
593
|
+
"alias": "lazy";
|
|
594
|
+
"required": false;
|
|
595
|
+
"isSignal": true;
|
|
596
|
+
};
|
|
597
|
+
"scrollHeight": {
|
|
598
|
+
"alias": "scrollHeight";
|
|
599
|
+
"required": false;
|
|
600
|
+
"isSignal": true;
|
|
601
|
+
};
|
|
602
|
+
"autoFlip": {
|
|
603
|
+
"alias": "autoFlip";
|
|
604
|
+
"required": false;
|
|
605
|
+
"isSignal": true;
|
|
606
|
+
};
|
|
607
|
+
"panelStyleClass": {
|
|
608
|
+
"alias": "panelStyleClass";
|
|
609
|
+
"required": false;
|
|
610
|
+
"isSignal": true;
|
|
611
|
+
};
|
|
612
|
+
}, {
|
|
613
|
+
"completeMethod": "completeMethod";
|
|
614
|
+
"valueChange": "valueChange";
|
|
615
|
+
"optionSelect": "optionSelect";
|
|
616
|
+
"optionUnselect": "optionUnselect";
|
|
617
|
+
"opened": "opened";
|
|
618
|
+
"closed": "closed";
|
|
619
|
+
"cleared": "cleared";
|
|
620
|
+
"dropdownClick": "dropdownClick";
|
|
621
|
+
"lazyLoad": "lazyLoad";
|
|
622
|
+
"inputFocus": "inputFocus";
|
|
623
|
+
"inputBlur": "inputBlur";
|
|
624
|
+
}, ["itemTemplate", "selectedItemTemplate", "groupTemplate", "headerTemplate", "footerTemplate", "emptyTemplate"], never, true, never>;
|
|
413
625
|
}
|
|
414
|
-
|
|
415
|
-
export { UiAutocomplete };
|
|
416
|
-
export type { AutocompleteCompleteEvent, AutocompleteDropdownMode, AutocompleteGroupContext, AutocompleteItemContext, AutocompleteLazyLoadEvent, AutocompleteSelectedItemContext, AutocompleteValue };
|
|
626
|
+
export {};
|