@4sh/ui-kit 0.16.0 → 0.17.1

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.
Files changed (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,74 +1,75 @@
1
- import * as _angular_cdk_overlay from '@angular/cdk/overlay';
2
- import * as _angular_core from '@angular/core';
3
- import { TemplateRef } from '@angular/core';
4
- import { BaseFormField } from '@4sh/ui-kit/forms';
5
- import { UiIconSize } from '@4sh/ui-kit/base/ui-icon';
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: a single value, an array (`multiple`), or `null` when cleared. */
8
- type SelectValue<T = unknown> = T | T[] | null;
9
+ export type SelectValue<T = unknown> = T | T[] | null;
9
10
  /** Context handed to the `#item` template. */
10
- interface SelectItemContext<T = unknown> {
11
- /** The original option (default `$implicit`). */
12
- $implicit: T;
13
- /** Same as `$implicit`, named for readability. */
14
- option: T;
15
- /** Whether this option is currently selected. */
16
- selected: boolean;
17
- /** Index of the option in the (filtered) list. */
18
- index: number;
11
+ export interface SelectItemContext<T = unknown> {
12
+ /** The original option (default `$implicit`). */
13
+ $implicit: T;
14
+ /** Same as `$implicit`, named for readability. */
15
+ option: T;
16
+ /** Whether this option is currently selected. */
17
+ selected: boolean;
18
+ /** Index of the option in the (filtered) list. */
19
+ index: number;
19
20
  }
20
21
  /** Context handed to the `#selectedItem` template (once per selected option). */
21
- interface SelectSelectedItemContext<T = unknown> {
22
- /** The selected option (default `$implicit`). */
23
- $implicit: T;
24
- /** Same as `$implicit`, named for readability. */
25
- option: T;
26
- /** Index among the selected options (0 in single mode). */
27
- index: number;
28
- /** Deselects this option (e.g. wire it to a removable chip). */
29
- remove: () => void;
22
+ export interface SelectSelectedItemContext<T = unknown> {
23
+ /** The selected option (default `$implicit`). */
24
+ $implicit: T;
25
+ /** Same as `$implicit`, named for readability. */
26
+ option: T;
27
+ /** Index among the selected options (0 in single mode). */
28
+ index: number;
29
+ /** Deselects this option (e.g. wire it to a removable chip). */
30
+ remove: () => void;
30
31
  }
31
32
  /** Context handed to the `#group` template. */
32
- interface SelectGroupContext<G = unknown> {
33
- /** The original group object (default `$implicit`). */
34
- $implicit: G;
35
- /** Same as `$implicit`, named for readability. */
36
- group: G;
33
+ export interface SelectGroupContext<G = unknown> {
34
+ /** The original group object (default `$implicit`). */
35
+ $implicit: G;
36
+ /** Same as `$implicit`, named for readability. */
37
+ group: G;
37
38
  }
38
39
  /** Payload of the `filterChange` output. */
39
- interface SelectFilterEvent {
40
- /** Originating DOM event. */
41
- originalEvent: Event;
42
- /** Current filter text. */
43
- filter: string;
40
+ export interface SelectFilterEvent {
41
+ /** Originating DOM event. */
42
+ originalEvent: Event;
43
+ /** Current filter text. */
44
+ filter: string;
44
45
  }
45
46
  /** Payload of the `lazyLoad` output (rendered range of the virtual viewport). */
46
- interface SelectLazyLoadEvent {
47
- /** Index of the first rendered row. */
48
- first: number;
49
- /** Index after the last rendered row (exclusive). */
50
- last: number;
47
+ export interface SelectLazyLoadEvent {
48
+ /** Index of the first rendered row. */
49
+ first: number;
50
+ /** Index after the last rendered row (exclusive). */
51
+ last: number;
51
52
  }
52
53
  /** @ignore Flat, unfiltered view of one option (logic source). */
53
54
  interface SelectEntry {
54
- value: unknown;
55
- label: string;
56
- disabled: boolean;
57
- original: unknown;
55
+ value: unknown;
56
+ label: string;
57
+ disabled: boolean;
58
+ original: unknown;
58
59
  }
59
60
  /** @ignore Rendered row: a group header or an option. */
60
61
  type SelectRow = {
61
- kind: 'group';
62
- key: string;
63
- label: string;
64
- original: unknown;
62
+ kind: 'group';
63
+ key: string;
64
+ label: string;
65
+ original: unknown;
65
66
  } | {
66
- kind: 'option';
67
- key: string;
68
- id: string;
69
- index: number;
70
- entry: SelectEntry;
71
- selected: boolean;
67
+ kind: 'option';
68
+ key: string;
69
+ id: string;
70
+ index: number;
71
+ entry: SelectEntry;
72
+ selected: boolean;
72
73
  };
73
74
  /**
74
75
  * ui-select — headless dropdown list built on the `ui-field` shell
@@ -92,307 +93,510 @@ type SelectRow = {
92
93
  * <ui-select label="Ville" [options]="cities" optionLabel="name" optionValue="code" [(ngModel)]="city" />
93
94
  * ```
94
95
  */
95
- declare class UiSelect<T = unknown> extends BaseFormField<SelectValue<T>> {
96
- /** Options to display. Primitives, objects, or groups (see `group`). */
97
- options: _angular_core.InputSignal<readonly unknown[]>;
98
- /** Field name (dot-path) to read a label from, when options are objects. */
99
- optionLabel: _angular_core.InputSignal<string | undefined>;
100
- /** Field name (dot-path) to read the value from, when options are objects. */
101
- optionValue: _angular_core.InputSignal<string | undefined>;
102
- /** Field name (dot-path) to read the disabled flag from, when options are objects. */
103
- optionDisabled: _angular_core.InputSignal<string | undefined>;
104
- /** Treat `options` as groups (`optionGroupLabel` + `optionGroupChildren`). */
105
- group: _angular_core.InputSignalWithTransform<boolean, unknown>;
106
- /** Field name of a group's label. */
107
- optionGroupLabel: _angular_core.InputSignal<string>;
108
- /** Field name of a group's children array. */
109
- optionGroupChildren: _angular_core.InputSignal<string>;
110
- /** Property used to compare object values for equality (selection matching). */
111
- dataKey: _angular_core.InputSignal<string | undefined>;
112
- /** Allow selecting several values (the model becomes an array, the panel stays open). */
113
- multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
114
- /** Display a check indicator on the selected option(s). */
115
- checkmark: _angular_core.InputSignalWithTransform<boolean, unknown>;
116
- /** Display a checkbox in front of each option (`multiple` mode). */
117
- checkbox: _angular_core.InputSignalWithTransform<boolean, unknown>;
118
- /** Max number of selected items rendered in the trigger (`multiple`); the rest collapses into `overflowLabel`. */
119
- maxSelectedLabels: _angular_core.InputSignal<number | undefined>;
120
- /** Collapsed-count indicator — `{0}` is replaced by the number of hidden items. */
121
- overflowLabel: _angular_core.InputSignal<string>;
122
- /** Placeholder shown in the trigger when nothing is selected. */
123
- placeholder: _angular_core.InputSignal<string | undefined>;
124
- /** Show a clear (×) action in the trigger when a value is set. */
125
- showClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
126
- /** Accessible name of the clear action. */
127
- clearAriaLabel: _angular_core.InputSignal<string>;
128
- /** FontAwesome icon of the dropdown chevron. */
129
- icon: _angular_core.InputSignal<string>;
130
- /** Show the dropdown chevron (the trigger stays a combobox without it). */
131
- showIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
132
- /** Show the built-in filter input inside the panel. */
133
- filter: _angular_core.InputSignalWithTransform<boolean, unknown>;
134
- /** Placeholder of the filter input. */
135
- filterPlaceholder: _angular_core.InputSignal<string | undefined>;
136
- /** Accessible name of the filter input. */
137
- filterAriaLabel: _angular_core.InputSignal<string>;
138
- /** Comma-separated field names (dot-paths) the filter matches against (defaults to the label). */
139
- filterBy: _angular_core.InputSignal<string | undefined>;
140
- /** Move the focus into the filter input when the panel opens. */
141
- autofocusFilter: _angular_core.InputSignalWithTransform<boolean, unknown>;
142
- /** Reset the filter text when the panel closes. */
143
- resetFilterOnHide: _angular_core.InputSignalWithTransform<boolean, unknown>;
144
- /** Ripple Effect */
145
- ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
146
- /** Message shown when there is no option. */
147
- emptyMessage: _angular_core.InputSignal<string>;
148
- /** Message shown when the filter matches nothing. */
149
- emptyFilterMessage: _angular_core.InputSignal<string>;
150
- /** Free-text mode: the trigger becomes a real `<input>`, typing sets the value directly. */
151
- editable: _angular_core.InputSignalWithTransform<boolean, unknown>;
152
- /** Loading state: a spinner replaces the chevron and the options are not interactive. */
153
- loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
154
- /** Visually focus the first option when the panel opens. */
155
- autoOptionFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
156
- /** Select an option as soon as it is visually focused with the keyboard (single mode). */
157
- selectOnFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
158
- /** Visually focus the option under the mouse pointer. */
159
- focusOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
160
- /** Render the options through a CDK virtual-scroll viewport. */
161
- virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
162
- /** Fixed height (px) of one row — required by the virtual scroller. */
163
- virtualScrollItemSize: _angular_core.InputSignalWithTransform<number, unknown>;
164
- /** With `virtualScroll`: emit `lazyLoad` with the rendered range (lazy loading). */
165
- lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
166
- /** Max height of the options list (CSS size, e.g. `'320px'`). Defaults from the SCSS. */
167
- scrollHeight: _angular_core.InputSignal<string | undefined>;
168
- /**
169
- * Auto-flip the panel above the trigger when there isn't enough room below
170
- * (default). Set `false` to lock it below the trigger regardless of space.
171
- */
172
- autoFlip: _angular_core.InputSignalWithTransform<boolean, unknown>;
173
- /** Extra class(es) applied to the panel (scoped custom styling). */
174
- panelStyleClass: _angular_core.InputSignal<string | undefined>;
175
- /**
176
- * Panel width. By default it matches the field, which is too narrow when the
177
- * field is compact (a phone dialling code in a `ui-input-group`, say) but the
178
- * options are not. `'auto'` sizes the panel to its content while keeping the
179
- * field width as a floor; any CSS size (`'260px'`) pins it.
180
- */
181
- panelWidth: _angular_core.InputSignal<string | undefined>;
182
- /** Emitted whenever the value changes (selection, typing, clear). */
183
- valueChange: _angular_core.OutputEmitterRef<SelectValue<T>>;
184
- /** Emitted when the panel opens. */
185
- opened: _angular_core.OutputEmitterRef<void>;
186
- /** Emitted when the panel closes. */
187
- closed: _angular_core.OutputEmitterRef<void>;
188
- /** Emitted when the value is cleared. */
189
- cleared: _angular_core.OutputEmitterRef<void>;
190
- /** Emitted on each filter keystroke. */
191
- filterChange: _angular_core.OutputEmitterRef<SelectFilterEvent>;
192
- /** Emitted when the virtual viewport's rendered range changes (`virtualScroll` + `lazy`). */
193
- lazyLoad: _angular_core.OutputEmitterRef<SelectLazyLoadEvent>;
194
- /** Emitted when the trigger receives focus. */
195
- inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
196
- /** Emitted when the trigger loses focus. */
197
- inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
198
- /** Custom option template: `<ng-template #item let-option let-selected="selected">`. */
199
- protected readonly itemTemplate: _angular_core.Signal<TemplateRef<SelectItemContext<T>> | undefined>;
200
- /** Custom selected-value template (per selected option): `<ng-template #selectedItem let-option>`. */
201
- protected readonly selectedItemTemplate: _angular_core.Signal<TemplateRef<SelectSelectedItemContext<T>> | undefined>;
202
- /** Custom group-header template: `<ng-template #group let-group>`. */
203
- protected readonly groupTemplate: _angular_core.Signal<TemplateRef<SelectGroupContext<unknown>> | undefined>;
204
- /** Free content pinned above the list (before the filter). */
205
- protected readonly headerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
206
- /** Free content pinned under the list. */
207
- protected readonly footerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
208
- /** Custom empty-state template. */
209
- protected readonly emptyTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
210
- /** @ignore Component root (overlay origin + outside-focus detection). */
211
- private readonly containerEl;
212
- /** @ignore Focusable trigger (combobox button or editable input). */
213
- private readonly triggerEl;
214
- /** @ignore Panel root element (for scrolling the focused option into view). */
215
- private readonly panelEl;
216
- /** @ignore Filter input (auto-focused on open). */
217
- private readonly filterInputEl;
218
- /** @ignore Virtual-scroll viewport (lazy range + scrollToIndex). */
219
- private readonly viewport;
220
- /** @ignore */
221
- protected readonly panelOpen: _angular_core.WritableSignal<boolean>;
222
- /** @ignore Element the overlay is anchored to (the field box). */
223
- protected readonly overlayOrigin: _angular_core.WritableSignal<Element | null>;
224
- /** @ignore Field box width, measured on open. */
225
- protected readonly overlayWidth: _angular_core.WritableSignal<number | null>;
226
- /** @ignore Current filter text. */
227
- protected readonly filterValue: _angular_core.WritableSignal<string>;
228
- /** @ignore Raw text typed in the editable trigger (`null` when not typing) — filters the list. */
229
- protected readonly editableQuery: _angular_core.WritableSignal<string | null>;
230
- /** @ignore Index of the visually focused option among the visible options (-1 = none). */
231
- protected readonly focusedIndex: _angular_core.WritableSignal<number>;
232
- /** @ignore Type-ahead buffer. */
233
- private searchBuffer;
234
- /** @ignore */
235
- private searchTimeout;
236
- constructor();
237
- /** @ignore Effective free-text mode (`multiple` wins over `editable`). */
238
- protected readonly isEditable: _angular_core.Signal<boolean>;
239
- /** @ignore */
240
- protected readonly listboxId: _angular_core.Signal<string>;
241
- /** @ignore Icon size aligned with the field size. */
242
- protected readonly iconSize: _angular_core.Signal<UiIconSize>;
243
- /** @ignore Flat, unfiltered entries (no groups). */
244
- private readonly flatEntries;
245
- /** @ignore Unfiltered groups (when `group` is enabled). */
246
- private readonly groupEntries;
247
- /** @ignore Normalized filter text ('' = no filtering). */
248
- private readonly normalizedFilter;
249
- /** @ignore Normalized editable-typing text ('' = no filtering). */
250
- private readonly normalizedEditableQuery;
251
- /** @ignore Rendered rows: filtered options + their group headers, with stable ids. */
252
- protected readonly visibleRows: _angular_core.Signal<SelectRow[]>;
253
- /** @ignore Visible option rows only (visual-focus / type-ahead space). */
254
- protected readonly visibleOptions: _angular_core.Signal<{
255
- kind: "option";
256
- key: string;
257
- id: string;
258
- index: number;
259
- entry: SelectEntry;
260
- selected: boolean;
261
- }[]>;
262
- /** @ignore aria-setsize of the visible listbox. */
263
- protected readonly optionCount: _angular_core.Signal<number>;
264
- /** @ignore trackBy of the virtual list. */
265
- protected readonly trackRow: (_: number, row: SelectRow) => string;
266
- /** @ignore Empty state: no option at all, or nothing matches the filter / typed text. */
267
- protected readonly emptyLabel: _angular_core.Signal<string>;
268
- /** @ignore Selected values as an array (whatever the mode). */
269
- private readonly selectedValues;
270
- /** @ignore Selected options resolved against the (unfiltered) entries. Falls back to the raw value. */
271
- protected readonly selectedEntries: _angular_core.Signal<SelectEntry[]>;
272
- /** @ignore A value is currently set. */
273
- protected readonly hasValue: _angular_core.Signal<boolean>;
274
- /** @ignore Selected entries actually rendered in the trigger (`maxSelectedLabels` cap). */
275
- protected readonly displayedSelectedEntries: _angular_core.Signal<SelectEntry[]>;
276
- /** @ignore Number of selected items collapsed behind the overflow indicator. */
277
- protected readonly overflowCount: _angular_core.Signal<number>;
278
- /** @ignore Rendered overflow indicator (e.g. `(+2 autres)`). */
279
- protected readonly overflowText: _angular_core.Signal<string>;
280
- /** @ignore Contexts handed to the `#selectedItem` template (one per displayed selection). */
281
- protected readonly selectedItemContexts: _angular_core.Signal<SelectSelectedItemContext<T>[]>;
282
- /** @ignore Text rendered in the trigger (and in the editable input). */
283
- protected readonly selectedLabel: _angular_core.Signal<string>;
284
- /** @ignore At rest the floating label already holds that spot. */
285
- protected readonly effectivePlaceholder: _angular_core.Signal<string>;
286
- /** @ignore The clear action is shown. */
287
- protected readonly showClearButton: _angular_core.Signal<boolean>;
288
- /** @ignore id of the visually focused option (for aria-activedescendant). */
289
- protected readonly activeDescendant: _angular_core.Signal<string | null>;
290
- /** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */
291
- protected readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
292
- /** @ignore Panel width: `panelWidth` when set, the field width otherwise. */
293
- protected readonly panelStyleWidth: _angular_core.Signal<string | null>;
294
- /** @ignore `panelWidth="auto"`: the field width becomes a floor, the content sets the rest. */
295
- protected readonly panelStyleMinWidth: _angular_core.Signal<string | null>;
296
- /** @ignore Concrete viewport height (px) for the virtual scroller. */
297
- protected readonly viewportHeight: _angular_core.Signal<string>;
298
- /** @ignore `scrollHeight` parsed to px, with size-based defaults (matches the SCSS). */
299
- private readonly scrollHeightPx;
300
- writeValue(value: SelectValue<T>): void;
301
- /** Moves focus to the trigger. */
302
- focus(options?: FocusOptions): void;
303
- open(): void;
304
- close(focusTrigger?: boolean): void;
305
- /** @ignore */
306
- protected toggle(): void;
307
- /** @ignore First visually focused option when the panel opens. */
308
- private initialFocusIndex;
309
- /**
310
- * @ignore Post-open work once the overlay is attached: focus the filter,
311
- * scroll the focused option into view (the virtual viewport is re-measured
312
- * by its own effect). `setTimeout` (not rAF) so it also runs in
313
- * throttled/background tabs.
314
- */
315
- private queueAfterOpen;
316
- /** @ignore Container click: open (button mode) or toggle from the chevron (editable mode). */
317
- protected onContainerClick(event: MouseEvent): void;
318
- /** @ignore Clear action (does not bubble to the container, which would re-open). */
319
- protected onClearClick(event: MouseEvent): void;
320
- /** Clears the value. */
321
- clear(): void;
322
- /**
323
- * @ignore Editable mode: typing sets the value directly (view → form) and
324
- * surfaces the matching options (the panel opens and filters as you type).
325
- */
326
- protected onEditableInput(event: Event): void;
327
- /** Deselects one value (`multiple`) or clears the value (single). */
328
- removeValue(value: unknown): void;
329
- /** @ignore */
330
- protected onTriggerFocus(event: FocusEvent): void;
331
- /** @ignore Mark touched when focus leaves the component (trigger → outside, not into the panel). */
332
- protected onTriggerBlur(event: FocusEvent): void;
333
- /** @ignore Keyboard on the trigger (combobox pattern). */
334
- protected onTriggerKeydown(event: KeyboardEvent): void;
335
- /** @ignore Keyboard inside the filter input (navigation delegated, typing kept native). */
336
- protected onFilterKeydown(event: KeyboardEvent): void;
337
- /**
338
- * @ignore Shared open/navigate/select/close keys. Returns true when handled.
339
- * Focus stays on the trigger / filter input; options are focused visually
340
- * through `aria-activedescendant`.
341
- */
342
- private handleNavigationKey;
343
- /** @ignore */
344
- protected onOptionClick(row: Extract<SelectRow, {
345
- kind: 'option';
346
- }>, event: Event): void;
347
- /** @ignore Keep the focus on the trigger / filter input when clicking an option. */
348
- protected onOptionMousedown(event: MouseEvent): void;
349
- /** @ignore */
350
- protected onOptionMouseEnter(row: Extract<SelectRow, {
351
- kind: 'option';
352
- }>): void;
353
- /** @ignore Select (single) or toggle (multiple) an option. */
354
- private selectRow;
355
- /** @ignore */
356
- private selectFocused;
357
- /** @ignore Propagate a user-driven value change (view → form). */
358
- private commit;
359
- /** @ignore Move the visual focus, skipping disabled options (no wrap). */
360
- private moveFocus;
361
- /** @ignore Focus the first (`1`) or last (`-1`) enabled option. */
362
- private focusEdge;
363
- /** @ignore Apply a visual-focus move (+ select-on-focus, + scroll into view). */
364
- private setFocusedIndex;
365
- /** @ignore Keep the visually focused option visible ('auto' — smooth is unreliable in throttled tabs). */
366
- private scrollFocusedIntoView;
367
- /** @ignore Accumulate printable characters and focus the first matching option. */
368
- private searchOption;
369
- /** @ignore */
370
- private clearSearchBuffer;
371
- /** @ignore */
372
- protected onFilterInput(event: Event): void;
373
- /** @ignore An entry passes the current filter(s): panel filter and/or editable typing. */
374
- private matchesFilter;
375
- /** @ignore Case- and diacritics-insensitive comparison text. */
376
- private normalize;
377
- /** @ignore Shared option resolution (see `option-resolver.ts`). */
378
- private readonly resolver;
379
- /** @ignore */
380
- private toEntry;
381
- /** @ignore Read a (dot-path) field from an object. */
382
- private getField;
383
- /** @ignore */
384
- private resolveValue;
385
- /** @ignore */
386
- private resolveLabel;
387
- /** @ignore */
388
- private asText;
389
- /** @ignore Whether a resolved value is part of the current model. */
390
- private isValueSelected;
391
- /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
392
- private equals;
393
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSelect<any>, never>;
394
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSelect<any>, "ui-select", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "optionGroupLabel": { "alias": "optionGroupLabel"; "required": false; "isSignal": true; }; "optionGroupChildren": { "alias": "optionGroupChildren"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "checkmark": { "alias": "checkmark"; "required": false; "isSignal": true; }; "checkbox": { "alias": "checkbox"; "required": false; "isSignal": true; }; "maxSelectedLabels": { "alias": "maxSelectedLabels"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filterAriaLabel": { "alias": "filterAriaLabel"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; "autofocusFilter": { "alias": "autofocusFilter"; "required": false; "isSignal": true; }; "resetFilterOnHide": { "alias": "resetFilterOnHide"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "emptyFilterMessage": { "alias": "emptyFilterMessage"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "opened": "opened"; "closed": "closed"; "cleared": "cleared"; "filterChange": "filterChange"; "lazyLoad": "lazyLoad"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["itemTemplate", "selectedItemTemplate", "groupTemplate", "headerTemplate", "footerTemplate", "emptyTemplate"], never, true, never>;
96
+ export declare class UiSelect<T = unknown> extends BaseFormField<SelectValue<T>> {
97
+ /** Options to display. Primitives, objects, or groups (see `group`). */
98
+ options: import("@angular/core").InputSignal<readonly unknown[]>;
99
+ /** Field name (dot-path) to read a label from, when options are objects. */
100
+ optionLabel: import("@angular/core").InputSignal<string | undefined>;
101
+ /** Field name (dot-path) to read the value from, when options are objects. */
102
+ optionValue: import("@angular/core").InputSignal<string | undefined>;
103
+ /** Field name (dot-path) to read the disabled flag from, when options are objects. */
104
+ optionDisabled: import("@angular/core").InputSignal<string | undefined>;
105
+ /** Treat `options` as groups (`optionGroupLabel` + `optionGroupChildren`). */
106
+ group: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
107
+ /** Field name of a group's label. */
108
+ optionGroupLabel: import("@angular/core").InputSignal<string>;
109
+ /** Field name of a group's children array. */
110
+ optionGroupChildren: import("@angular/core").InputSignal<string>;
111
+ /** Property used to compare object values for equality (selection matching). */
112
+ dataKey: import("@angular/core").InputSignal<string | undefined>;
113
+ /** Allow selecting several values (the model becomes an array, the panel stays open). */
114
+ multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
115
+ /** Display a check indicator on the selected option(s). */
116
+ checkmark: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
117
+ /** Display a checkbox in front of each option (`multiple` mode). */
118
+ checkbox: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
119
+ /** Max number of selected items rendered in the trigger (`multiple`); the rest collapses into `overflowLabel`. */
120
+ maxSelectedLabels: import("@angular/core").InputSignal<number | undefined>;
121
+ /** Collapsed-count indicator — `{0}` is replaced by the number of hidden items. */
122
+ overflowLabel: import("@angular/core").InputSignal<string>;
123
+ /** Placeholder shown in the trigger when nothing is selected. */
124
+ placeholder: import("@angular/core").InputSignal<string | undefined>;
125
+ /** Show a clear (×) action in the trigger when a value is set. */
126
+ showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
127
+ /** Accessible name of the clear action. */
128
+ clearAriaLabel: import("@angular/core").InputSignal<string>;
129
+ /** FontAwesome icon of the dropdown chevron. */
130
+ icon: import("@angular/core").InputSignal<string>;
131
+ /** Show the dropdown chevron (the trigger stays a combobox without it). */
132
+ showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
133
+ /** Show the built-in filter input inside the panel. */
134
+ filter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
135
+ /** Placeholder of the filter input. */
136
+ filterPlaceholder: import("@angular/core").InputSignal<string | undefined>;
137
+ /** Accessible name of the filter input. */
138
+ filterAriaLabel: import("@angular/core").InputSignal<string>;
139
+ /** Comma-separated field names (dot-paths) the filter matches against (defaults to the label). */
140
+ filterBy: import("@angular/core").InputSignal<string | undefined>;
141
+ /** Move the focus into the filter input when the panel opens. */
142
+ autofocusFilter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
143
+ /** Reset the filter text when the panel closes. */
144
+ resetFilterOnHide: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
145
+ /** Ripple Effect */
146
+ ripple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
147
+ /** Message shown when there is no option. */
148
+ emptyMessage: import("@angular/core").InputSignal<string>;
149
+ /** Message shown when the filter matches nothing. */
150
+ emptyFilterMessage: import("@angular/core").InputSignal<string>;
151
+ /** Free-text mode: the trigger becomes a real `<input>`, typing sets the value directly. */
152
+ editable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
153
+ /** Loading state: a spinner replaces the chevron and the options are not interactive. */
154
+ loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
155
+ /** Visually focus the first option when the panel opens. */
156
+ autoOptionFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
157
+ /** Select an option as soon as it is visually focused with the keyboard (single mode). */
158
+ selectOnFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
159
+ /** Visually focus the option under the mouse pointer. */
160
+ focusOnHover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
161
+ /** Render the options through a CDK virtual-scroll viewport. */
162
+ virtualScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
163
+ /** Fixed height (px) of one row — required by the virtual scroller. */
164
+ virtualScrollItemSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
165
+ /** With `virtualScroll`: emit `lazyLoad` with the rendered range (lazy loading). */
166
+ lazy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
167
+ /** Max height of the options list (CSS size, e.g. `'320px'`). Defaults from the SCSS. */
168
+ scrollHeight: import("@angular/core").InputSignal<string | undefined>;
169
+ /**
170
+ * Auto-flip the panel above the trigger when there isn't enough room below
171
+ * (default). Set `false` to lock it below the trigger regardless of space.
172
+ */
173
+ autoFlip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
174
+ /** Extra class(es) applied to the panel (scoped custom styling). */
175
+ panelStyleClass: import("@angular/core").InputSignal<string | undefined>;
176
+ /**
177
+ * Panel width. By default it matches the field, which is too narrow when the
178
+ * field is compact (a phone dialling code in a `ui-input-group`, say) but the
179
+ * options are not. `'auto'` sizes the panel to its content while keeping the
180
+ * field width as a floor; any CSS size (`'260px'`) pins it.
181
+ */
182
+ panelWidth: import("@angular/core").InputSignal<string | undefined>;
183
+ /** Emitted whenever the value changes (selection, typing, clear). */
184
+ valueChange: import("@angular/core").OutputEmitterRef<SelectValue<T>>;
185
+ /** Emitted when the panel opens. */
186
+ opened: import("@angular/core").OutputEmitterRef<void>;
187
+ /** Emitted when the panel closes. */
188
+ closed: import("@angular/core").OutputEmitterRef<void>;
189
+ /** Emitted when the value is cleared. */
190
+ cleared: import("@angular/core").OutputEmitterRef<void>;
191
+ /** Emitted on each filter keystroke. */
192
+ filterChange: import("@angular/core").OutputEmitterRef<SelectFilterEvent>;
193
+ /** Emitted when the virtual viewport's rendered range changes (`virtualScroll` + `lazy`). */
194
+ lazyLoad: import("@angular/core").OutputEmitterRef<SelectLazyLoadEvent>;
195
+ /** Emitted when the trigger receives focus. */
196
+ inputFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
197
+ /** Emitted when the trigger loses focus. */
198
+ inputBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
199
+ /** Custom option template: `<ng-template #item let-option let-selected="selected">`. */
200
+ protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<SelectItemContext<T>> | undefined>;
201
+ /** Custom selected-value template (per selected option): `<ng-template #selectedItem let-option>`. */
202
+ protected readonly selectedItemTemplate: import("@angular/core").Signal<TemplateRef<SelectSelectedItemContext<T>> | undefined>;
203
+ /** Custom group-header template: `<ng-template #group let-group>`. */
204
+ protected readonly groupTemplate: import("@angular/core").Signal<TemplateRef<SelectGroupContext<unknown>> | undefined>;
205
+ /** Free content pinned above the list (before the filter). */
206
+ protected readonly headerTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
207
+ /** Free content pinned under the list. */
208
+ protected readonly footerTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
209
+ /** Custom empty-state template. */
210
+ protected readonly emptyTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
211
+ /** @ignore Component root (overlay origin + outside-focus detection). */
212
+ private readonly containerEl;
213
+ /** @ignore Focusable trigger (combobox button or editable input). */
214
+ private readonly triggerEl;
215
+ /** @ignore Panel root element (for scrolling the focused option into view). */
216
+ private readonly panelEl;
217
+ /** @ignore Filter input (auto-focused on open). */
218
+ private readonly filterInputEl;
219
+ /** @ignore Virtual-scroll viewport (lazy range + scrollToIndex). */
220
+ private readonly viewport;
221
+ /** @ignore */
222
+ protected readonly panelOpen: import("@angular/core").WritableSignal<boolean>;
223
+ /** @ignore Element the overlay is anchored to (the field box). */
224
+ protected readonly overlayOrigin: import("@angular/core").WritableSignal<Element | null>;
225
+ /** @ignore Field box width, measured on open. */
226
+ protected readonly overlayWidth: import("@angular/core").WritableSignal<number | null>;
227
+ /** @ignore Current filter text. */
228
+ protected readonly filterValue: import("@angular/core").WritableSignal<string>;
229
+ /** @ignore Raw text typed in the editable trigger (`null` when not typing) — filters the list. */
230
+ protected readonly editableQuery: import("@angular/core").WritableSignal<string | null>;
231
+ /** @ignore Index of the visually focused option among the visible options (-1 = none). */
232
+ protected readonly focusedIndex: import("@angular/core").WritableSignal<number>;
233
+ /** @ignore Type-ahead buffer. */
234
+ private searchBuffer;
235
+ /** @ignore */
236
+ private searchTimeout;
237
+ constructor();
238
+ /** @ignore Effective free-text mode (`multiple` wins over `editable`). */
239
+ protected readonly isEditable: import("@angular/core").Signal<boolean>;
240
+ /** @ignore */
241
+ protected readonly listboxId: import("@angular/core").Signal<string>;
242
+ /** @ignore Icon size aligned with the field size. */
243
+ protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
244
+ /** @ignore Flat, unfiltered entries (no groups). */
245
+ private readonly flatEntries;
246
+ /** @ignore Unfiltered groups (when `group` is enabled). */
247
+ private readonly groupEntries;
248
+ /** @ignore Normalized filter text ('' = no filtering). */
249
+ private readonly normalizedFilter;
250
+ /** @ignore Normalized editable-typing text ('' = no filtering). */
251
+ private readonly normalizedEditableQuery;
252
+ /** @ignore Rendered rows: filtered options + their group headers, with stable ids. */
253
+ protected readonly visibleRows: import("@angular/core").Signal<SelectRow[]>;
254
+ /** @ignore Visible option rows only (visual-focus / type-ahead space). */
255
+ protected readonly visibleOptions: import("@angular/core").Signal<{
256
+ kind: "option";
257
+ key: string;
258
+ id: string;
259
+ index: number;
260
+ entry: SelectEntry;
261
+ selected: boolean;
262
+ }[]>;
263
+ /** @ignore aria-setsize of the visible listbox. */
264
+ protected readonly optionCount: import("@angular/core").Signal<number>;
265
+ /** @ignore trackBy of the virtual list. */
266
+ protected readonly trackRow: (_: number, row: SelectRow) => string;
267
+ /** @ignore Empty state: no option at all, or nothing matches the filter / typed text. */
268
+ protected readonly emptyLabel: import("@angular/core").Signal<string>;
269
+ /** @ignore Selected values as an array (whatever the mode). */
270
+ private readonly selectedValues;
271
+ /** @ignore Selected options resolved against the (unfiltered) entries. Falls back to the raw value. */
272
+ protected readonly selectedEntries: import("@angular/core").Signal<SelectEntry[]>;
273
+ /** @ignore A value is currently set. */
274
+ protected readonly hasValue: import("@angular/core").Signal<boolean>;
275
+ /** @ignore Selected entries actually rendered in the trigger (`maxSelectedLabels` cap). */
276
+ protected readonly displayedSelectedEntries: import("@angular/core").Signal<SelectEntry[]>;
277
+ /** @ignore Number of selected items collapsed behind the overflow indicator. */
278
+ protected readonly overflowCount: import("@angular/core").Signal<number>;
279
+ /** @ignore Rendered overflow indicator (e.g. `(+2 autres)`). */
280
+ protected readonly overflowText: import("@angular/core").Signal<string>;
281
+ /** @ignore Contexts handed to the `#selectedItem` template (one per displayed selection). */
282
+ protected readonly selectedItemContexts: import("@angular/core").Signal<SelectSelectedItemContext<T>[]>;
283
+ /** @ignore Text rendered in the trigger (and in the editable input). */
284
+ protected readonly selectedLabel: import("@angular/core").Signal<string>;
285
+ /** @ignore At rest the floating label already holds that spot. */
286
+ protected readonly effectivePlaceholder: import("@angular/core").Signal<string>;
287
+ /** @ignore The clear action is shown. */
288
+ protected readonly showClearButton: import("@angular/core").Signal<boolean>;
289
+ /** @ignore id of the visually focused option (for aria-activedescendant). */
290
+ protected readonly activeDescendant: import("@angular/core").Signal<string | null>;
291
+ /** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */
292
+ protected readonly overlayPositions: import("@angular/core").Signal<import("@angular/cdk/overlay").ConnectedPosition[]>;
293
+ /** @ignore Panel width: `panelWidth` when set, the field width otherwise. */
294
+ protected readonly panelStyleWidth: import("@angular/core").Signal<string | null>;
295
+ /** @ignore `panelWidth="auto"`: the field width becomes a floor, the content sets the rest. */
296
+ protected readonly panelStyleMinWidth: import("@angular/core").Signal<string | null>;
297
+ /** @ignore Concrete viewport height (px) for the virtual scroller. */
298
+ protected readonly viewportHeight: import("@angular/core").Signal<string>;
299
+ /** @ignore `scrollHeight` parsed to px, with size-based defaults (matches the SCSS). */
300
+ private readonly scrollHeightPx;
301
+ writeValue(value: SelectValue<T>): void;
302
+ /** Moves focus to the trigger. */
303
+ focus(options?: FocusOptions): void;
304
+ open(): void;
305
+ close(focusTrigger?: boolean): void;
306
+ /** @ignore */
307
+ protected toggle(): void;
308
+ /** @ignore First visually focused option when the panel opens. */
309
+ private initialFocusIndex;
310
+ /**
311
+ * @ignore Post-open work once the overlay is attached: focus the filter,
312
+ * scroll the focused option into view (the virtual viewport is re-measured
313
+ * by its own effect). `setTimeout` (not rAF) so it also runs in
314
+ * throttled/background tabs.
315
+ */
316
+ private queueAfterOpen;
317
+ /** @ignore Container click: open (button mode) or toggle from the chevron (editable mode). */
318
+ protected onContainerClick(event: MouseEvent): void;
319
+ /** @ignore Clear action (does not bubble to the container, which would re-open). */
320
+ protected onClearClick(event: MouseEvent): void;
321
+ /** Clears the value. */
322
+ clear(): void;
323
+ /**
324
+ * @ignore Editable mode: typing sets the value directly (view → form) and
325
+ * surfaces the matching options (the panel opens and filters as you type).
326
+ */
327
+ protected onEditableInput(event: Event): void;
328
+ /** Deselects one value (`multiple`) or clears the value (single). */
329
+ removeValue(value: unknown): void;
330
+ /** @ignore */
331
+ protected onTriggerFocus(event: FocusEvent): void;
332
+ /** @ignore Mark touched when focus leaves the component (trigger → outside, not into the panel). */
333
+ protected onTriggerBlur(event: FocusEvent): void;
334
+ /** @ignore Keyboard on the trigger (combobox pattern). */
335
+ protected onTriggerKeydown(event: KeyboardEvent): void;
336
+ /** @ignore Keyboard inside the filter input (navigation delegated, typing kept native). */
337
+ protected onFilterKeydown(event: KeyboardEvent): void;
338
+ /**
339
+ * @ignore Shared open/navigate/select/close keys. Returns true when handled.
340
+ * Focus stays on the trigger / filter input; options are focused visually
341
+ * through `aria-activedescendant`.
342
+ */
343
+ private handleNavigationKey;
344
+ /** @ignore */
345
+ protected onOptionClick(row: Extract<SelectRow, {
346
+ kind: 'option';
347
+ }>, event: Event): void;
348
+ /** @ignore Keep the focus on the trigger / filter input when clicking an option. */
349
+ protected onOptionMousedown(event: MouseEvent): void;
350
+ /** @ignore */
351
+ protected onOptionMouseEnter(row: Extract<SelectRow, {
352
+ kind: 'option';
353
+ }>): void;
354
+ /** @ignore Select (single) or toggle (multiple) an option. */
355
+ private selectRow;
356
+ /** @ignore */
357
+ private selectFocused;
358
+ /** @ignore Propagate a user-driven value change (view → form). */
359
+ private commit;
360
+ /** @ignore Move the visual focus, skipping disabled options (no wrap). */
361
+ private moveFocus;
362
+ /** @ignore Focus the first (`1`) or last (`-1`) enabled option. */
363
+ private focusEdge;
364
+ /** @ignore Apply a visual-focus move (+ select-on-focus, + scroll into view). */
365
+ private setFocusedIndex;
366
+ /** @ignore Keep the visually focused option visible ('auto' — smooth is unreliable in throttled tabs). */
367
+ private scrollFocusedIntoView;
368
+ /** @ignore Accumulate printable characters and focus the first matching option. */
369
+ private searchOption;
370
+ /** @ignore */
371
+ private clearSearchBuffer;
372
+ /** @ignore */
373
+ protected onFilterInput(event: Event): void;
374
+ /** @ignore An entry passes the current filter(s): panel filter and/or editable typing. */
375
+ private matchesFilter;
376
+ /** @ignore Case- and diacritics-insensitive comparison text. */
377
+ private normalize;
378
+ /** @ignore Shared option resolution (see `option-resolver.ts`). */
379
+ private readonly resolver;
380
+ /** @ignore */
381
+ private toEntry;
382
+ /** @ignore Read a (dot-path) field from an object. */
383
+ private getField;
384
+ /** @ignore */
385
+ private resolveValue;
386
+ /** @ignore */
387
+ private resolveLabel;
388
+ /** @ignore */
389
+ private asText;
390
+ /** @ignore Whether a resolved value is part of the current model. */
391
+ private isValueSelected;
392
+ /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
393
+ private equals;
394
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiSelect<any>, never>;
395
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiSelect<any>, "ui-select", never, {
396
+ "options": {
397
+ "alias": "options";
398
+ "required": false;
399
+ "isSignal": true;
400
+ };
401
+ "optionLabel": {
402
+ "alias": "optionLabel";
403
+ "required": false;
404
+ "isSignal": true;
405
+ };
406
+ "optionValue": {
407
+ "alias": "optionValue";
408
+ "required": false;
409
+ "isSignal": true;
410
+ };
411
+ "optionDisabled": {
412
+ "alias": "optionDisabled";
413
+ "required": false;
414
+ "isSignal": true;
415
+ };
416
+ "group": {
417
+ "alias": "group";
418
+ "required": false;
419
+ "isSignal": true;
420
+ };
421
+ "optionGroupLabel": {
422
+ "alias": "optionGroupLabel";
423
+ "required": false;
424
+ "isSignal": true;
425
+ };
426
+ "optionGroupChildren": {
427
+ "alias": "optionGroupChildren";
428
+ "required": false;
429
+ "isSignal": true;
430
+ };
431
+ "dataKey": {
432
+ "alias": "dataKey";
433
+ "required": false;
434
+ "isSignal": true;
435
+ };
436
+ "multiple": {
437
+ "alias": "multiple";
438
+ "required": false;
439
+ "isSignal": true;
440
+ };
441
+ "checkmark": {
442
+ "alias": "checkmark";
443
+ "required": false;
444
+ "isSignal": true;
445
+ };
446
+ "checkbox": {
447
+ "alias": "checkbox";
448
+ "required": false;
449
+ "isSignal": true;
450
+ };
451
+ "maxSelectedLabels": {
452
+ "alias": "maxSelectedLabels";
453
+ "required": false;
454
+ "isSignal": true;
455
+ };
456
+ "overflowLabel": {
457
+ "alias": "overflowLabel";
458
+ "required": false;
459
+ "isSignal": true;
460
+ };
461
+ "placeholder": {
462
+ "alias": "placeholder";
463
+ "required": false;
464
+ "isSignal": true;
465
+ };
466
+ "showClear": {
467
+ "alias": "showClear";
468
+ "required": false;
469
+ "isSignal": true;
470
+ };
471
+ "clearAriaLabel": {
472
+ "alias": "clearAriaLabel";
473
+ "required": false;
474
+ "isSignal": true;
475
+ };
476
+ "icon": {
477
+ "alias": "icon";
478
+ "required": false;
479
+ "isSignal": true;
480
+ };
481
+ "showIcon": {
482
+ "alias": "showIcon";
483
+ "required": false;
484
+ "isSignal": true;
485
+ };
486
+ "filter": {
487
+ "alias": "filter";
488
+ "required": false;
489
+ "isSignal": true;
490
+ };
491
+ "filterPlaceholder": {
492
+ "alias": "filterPlaceholder";
493
+ "required": false;
494
+ "isSignal": true;
495
+ };
496
+ "filterAriaLabel": {
497
+ "alias": "filterAriaLabel";
498
+ "required": false;
499
+ "isSignal": true;
500
+ };
501
+ "filterBy": {
502
+ "alias": "filterBy";
503
+ "required": false;
504
+ "isSignal": true;
505
+ };
506
+ "autofocusFilter": {
507
+ "alias": "autofocusFilter";
508
+ "required": false;
509
+ "isSignal": true;
510
+ };
511
+ "resetFilterOnHide": {
512
+ "alias": "resetFilterOnHide";
513
+ "required": false;
514
+ "isSignal": true;
515
+ };
516
+ "ripple": {
517
+ "alias": "ripple";
518
+ "required": false;
519
+ "isSignal": true;
520
+ };
521
+ "emptyMessage": {
522
+ "alias": "emptyMessage";
523
+ "required": false;
524
+ "isSignal": true;
525
+ };
526
+ "emptyFilterMessage": {
527
+ "alias": "emptyFilterMessage";
528
+ "required": false;
529
+ "isSignal": true;
530
+ };
531
+ "editable": {
532
+ "alias": "editable";
533
+ "required": false;
534
+ "isSignal": true;
535
+ };
536
+ "loading": {
537
+ "alias": "loading";
538
+ "required": false;
539
+ "isSignal": true;
540
+ };
541
+ "autoOptionFocus": {
542
+ "alias": "autoOptionFocus";
543
+ "required": false;
544
+ "isSignal": true;
545
+ };
546
+ "selectOnFocus": {
547
+ "alias": "selectOnFocus";
548
+ "required": false;
549
+ "isSignal": true;
550
+ };
551
+ "focusOnHover": {
552
+ "alias": "focusOnHover";
553
+ "required": false;
554
+ "isSignal": true;
555
+ };
556
+ "virtualScroll": {
557
+ "alias": "virtualScroll";
558
+ "required": false;
559
+ "isSignal": true;
560
+ };
561
+ "virtualScrollItemSize": {
562
+ "alias": "virtualScrollItemSize";
563
+ "required": false;
564
+ "isSignal": true;
565
+ };
566
+ "lazy": {
567
+ "alias": "lazy";
568
+ "required": false;
569
+ "isSignal": true;
570
+ };
571
+ "scrollHeight": {
572
+ "alias": "scrollHeight";
573
+ "required": false;
574
+ "isSignal": true;
575
+ };
576
+ "autoFlip": {
577
+ "alias": "autoFlip";
578
+ "required": false;
579
+ "isSignal": true;
580
+ };
581
+ "panelStyleClass": {
582
+ "alias": "panelStyleClass";
583
+ "required": false;
584
+ "isSignal": true;
585
+ };
586
+ "panelWidth": {
587
+ "alias": "panelWidth";
588
+ "required": false;
589
+ "isSignal": true;
590
+ };
591
+ }, {
592
+ "valueChange": "valueChange";
593
+ "opened": "opened";
594
+ "closed": "closed";
595
+ "cleared": "cleared";
596
+ "filterChange": "filterChange";
597
+ "lazyLoad": "lazyLoad";
598
+ "inputFocus": "inputFocus";
599
+ "inputBlur": "inputBlur";
600
+ }, ["itemTemplate", "selectedItemTemplate", "groupTemplate", "headerTemplate", "footerTemplate", "emptyTemplate"], never, true, never>;
395
601
  }
396
-
397
- export { UiSelect };
398
- export type { SelectFilterEvent, SelectGroupContext, SelectItemContext, SelectLazyLoadEvent, SelectSelectedItemContext, SelectValue };
602
+ export {};