@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.
Files changed (220) hide show
  1. package/README.fr.md +18 -10
  2. package/README.md +18 -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 -953
  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 -2039
  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 -130
  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 -246
  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 -291
  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 -194
  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 -131
  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 +723 -596
  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 +313 -2
  143. package/mcp/data/text-search-docs.json +177 -17
  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/styles/utils/_mixins.scss +11 -0
  150. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  151. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  152. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  153. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  154. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  155. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  156. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
  157. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  158. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  159. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  160. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  161. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  162. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  163. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  164. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  165. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
  166. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
  167. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
  168. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  169. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
  170. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  171. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  172. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  173. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  174. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  175. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  176. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  177. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  178. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  179. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
  180. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  181. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  182. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  183. package/types/4sh-ui-kit-forms.d.ts +291 -186
  184. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  185. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  186. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  187. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  188. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  189. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  190. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  191. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  192. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  193. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  194. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  195. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  196. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  197. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  198. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  199. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  200. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  201. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  202. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  203. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  204. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  205. package/types/4sh-ui-kit-motion.d.ts +117 -67
  206. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  207. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  208. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  209. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  210. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  211. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  212. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  213. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  214. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  215. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  216. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  217. package/types/4sh-ui-kit-theming.d.ts +27 -29
  218. package/types/4sh-ui-kit-types.d.ts +6 -5
  219. package/types/4sh-ui-kit.d.ts +4 -3
  220. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,91 +1,92 @@
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
- import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';
7
-
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";
8
+ import { UiFeedbackLevel, UiSubLevel } from "@4sh/ui-kit/types";
8
9
  /** Delimiter used to split the typed text (and pasted text) into several tags. */
9
- type TagDelimiter = string | RegExp;
10
+ export type TagDelimiter = string | RegExp;
10
11
  /** Payload of the `tagAdd` output. */
11
- interface InputTagsAddEvent {
12
- /** Originating DOM event. */
13
- originalEvent: Event;
14
- /** Added value. */
15
- value: unknown;
12
+ export interface InputTagsAddEvent {
13
+ /** Originating DOM event. */
14
+ originalEvent: Event;
15
+ /** Added value. */
16
+ value: unknown;
16
17
  }
17
18
  /** Payload of the `tagRemove` output. */
18
- interface InputTagsRemoveEvent {
19
- /** Originating DOM event. */
20
- originalEvent: Event;
21
- /** Removed value. */
22
- value: unknown;
23
- /** Index of the removed value. */
24
- index: number;
19
+ export interface InputTagsRemoveEvent {
20
+ /** Originating DOM event. */
21
+ originalEvent: Event;
22
+ /** Removed value. */
23
+ value: unknown;
24
+ /** Index of the removed value. */
25
+ index: number;
25
26
  }
26
27
  /** Payload of the `completeMethod` output (typeahead). */
27
- interface InputTagsCompleteEvent {
28
- /** Originating DOM event. */
29
- originalEvent: Event;
30
- /** Search query. */
31
- query: string;
28
+ export interface InputTagsCompleteEvent {
29
+ /** Originating DOM event. */
30
+ originalEvent: Event;
31
+ /** Search query. */
32
+ query: string;
32
33
  }
33
34
  /** Payload of the `optionSelect` output (typeahead). */
34
- interface InputTagsSelectEvent {
35
- /** Originating DOM event. */
36
- originalEvent: Event;
37
- /** Selected suggestion (original object/primitive). */
38
- value: unknown;
35
+ export interface InputTagsSelectEvent {
36
+ /** Originating DOM event. */
37
+ originalEvent: Event;
38
+ /** Selected suggestion (original object/primitive). */
39
+ value: unknown;
39
40
  }
40
41
  /** Context handed to the `#item` template (per tag). */
41
- interface InputTagsItemContext<T = unknown> {
42
- /** The tag value (default `$implicit`). */
43
- $implicit: T;
44
- /** Same as `$implicit`, named for readability. */
45
- value: T;
46
- /** Resolved display label of the tag. */
47
- label: string;
48
- /** Index of the tag. */
49
- index: number;
50
- /** Removes this tag. */
51
- onRemove: (event: Event) => void;
42
+ export interface InputTagsItemContext<T = unknown> {
43
+ /** The tag value (default `$implicit`). */
44
+ $implicit: T;
45
+ /** Same as `$implicit`, named for readability. */
46
+ value: T;
47
+ /** Resolved display label of the tag. */
48
+ label: string;
49
+ /** Index of the tag. */
50
+ index: number;
51
+ /** Removes this tag. */
52
+ onRemove: (event: Event) => void;
52
53
  }
53
54
  /** Context handed to the `#option` template (per suggestion). */
54
- interface InputTagsOptionContext<T = unknown> {
55
- /** The suggestion (default `$implicit`). */
56
- $implicit: T;
57
- /** Same as `$implicit`, named for readability. */
58
- option: T;
59
- /** Index of the suggestion in the visible list. */
60
- index: number;
55
+ export interface InputTagsOptionContext<T = unknown> {
56
+ /** The suggestion (default `$implicit`). */
57
+ $implicit: T;
58
+ /** Same as `$implicit`, named for readability. */
59
+ option: T;
60
+ /** Index of the suggestion in the visible list. */
61
+ index: number;
61
62
  }
62
63
  /** Context handed to the `#group` template. */
63
- interface InputTagsGroupContext<G = unknown> {
64
- /** The group object (default `$implicit`). */
65
- $implicit: G;
66
- /** Same as `$implicit`, named for readability. */
67
- group: G;
64
+ export interface InputTagsGroupContext<G = unknown> {
65
+ /** The group object (default `$implicit`). */
66
+ $implicit: G;
67
+ /** Same as `$implicit`, named for readability. */
68
+ group: G;
68
69
  }
69
70
  /** @ignore Flat view of one suggestion. */
70
71
  interface TagEntry {
71
- value: unknown;
72
- label: string;
73
- disabled: boolean;
74
- original: unknown;
72
+ value: unknown;
73
+ label: string;
74
+ disabled: boolean;
75
+ original: unknown;
75
76
  }
76
77
  /** @ignore Rendered suggestion row. */
77
78
  type TagRow = {
78
- kind: 'group';
79
- key: string;
80
- label: string;
81
- original: unknown;
79
+ kind: 'group';
80
+ key: string;
81
+ label: string;
82
+ original: unknown;
82
83
  } | {
83
- kind: 'option';
84
- key: string;
85
- id: string;
86
- index: number;
87
- entry: TagEntry;
88
- present: boolean;
84
+ kind: 'option';
85
+ key: string;
86
+ id: string;
87
+ index: number;
88
+ entry: TagEntry;
89
+ present: boolean;
89
90
  };
90
91
  /**
91
92
  * ui-input-tags — headless multi-value tag entry built on the `ui-field` shell
@@ -108,246 +109,405 @@ type TagRow = {
108
109
  * <ui-input-tags label="Mots-clés" [(ngModel)]="keywords" placeholder="Ajouter…" />
109
110
  * ```
110
111
  */
111
- declare class UiInputTags<T = unknown> extends BaseFormField<T[]> {
112
- /** Native placeholder shown when the input is empty (and no tag exists). */
113
- placeholder: _angular_core.InputSignal<string | undefined>;
114
- /** Maximum number of tags allowed (`undefined` = unlimited). */
115
- max: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
116
- /** Delimiter that splits typed/pasted text into several tags (in addition to `Enter`). */
117
- delimiter: _angular_core.InputSignal<TagDelimiter | undefined>;
118
- /** Allow the same value to be added several times. */
119
- allowDuplicate: _angular_core.InputSignalWithTransform<boolean, unknown>;
120
- /** Add the current input as a tag when the field loses focus. */
121
- addOnBlur: _angular_core.InputSignalWithTransform<boolean, unknown>;
122
- /** Add the current input as a tag on `Tab`. */
123
- addOnTab: _angular_core.InputSignalWithTransform<boolean, unknown>;
124
- /** Split pasted text with the `delimiter` (or whitespace/newlines) and add each part. */
125
- addOnPaste: _angular_core.InputSignalWithTransform<boolean, unknown>;
126
- /** Max character length of a single typed tag. */
127
- maxLength: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
128
- /** Color family of the default `ui-chip` tags (ignored when an `#item` template is used). */
129
- chipLevel: _angular_core.InputSignal<UiFeedbackLevel>;
130
- /** Intensity of the default `ui-chip` tags: `low` (subtle, default) or `high` (solid). */
131
- chipSubLevel: _angular_core.InputSignal<UiSubLevel>;
132
- /** Pill shape (default) vs rounded-rectangle for the default `ui-chip` tags. */
133
- chipRounded: _angular_core.InputSignalWithTransform<boolean, unknown>;
134
- /** Show a suggestions dropdown as the user types (fed via `completeMethod`). */
135
- typeahead: _angular_core.InputSignalWithTransform<boolean, unknown>;
136
- /** Suggestions to display — set by the parent in response to `completeMethod`. */
137
- suggestions: _angular_core.InputSignal<readonly unknown[]>;
138
- /** Field name (dot-path) read as a suggestion label. */
139
- optionLabel: _angular_core.InputSignal<string | undefined>;
140
- /** Field name (dot-path) read as the value added to the model. */
141
- optionValue: _angular_core.InputSignal<string | undefined>;
142
- /** Field name (dot-path) read as a suggestion's disabled flag. */
143
- optionDisabled: _angular_core.InputSignal<string | undefined>;
144
- /** Property compared for value equality (duplicate detection on objects). */
145
- dataKey: _angular_core.InputSignal<string | undefined>;
146
- /** Treat `suggestions` as groups. */
147
- group: _angular_core.InputSignalWithTransform<boolean, unknown>;
148
- /** Field name of a group's label. */
149
- optionGroupLabel: _angular_core.InputSignal<string>;
150
- /** Field name of a group's children array. */
151
- optionGroupChildren: _angular_core.InputSignal<string>;
152
- /** Minimum number of characters before `completeMethod` is emitted. */
153
- minLength: _angular_core.InputSignalWithTransform<number, unknown>;
154
- /** Debounce (ms) between the last keystroke and `completeMethod`. */
155
- delay: _angular_core.InputSignalWithTransform<number, unknown>;
156
- /** Emit a query as soon as the input is focused (before any typing). */
157
- completeOnFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
158
- /** Max height of the suggestions list (CSS size). Defaults from the SCSS. */
159
- scrollHeight: _angular_core.InputSignal<string | undefined>;
160
- /** Visually focus the first suggestion when the panel opens. */
161
- autoOptionFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
162
- /** Visually focus the suggestion under the mouse pointer. */
163
- focusOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
164
- /** Auto-flip the panel above the input when space is lacking below. */
165
- autoFlip: _angular_core.InputSignalWithTransform<boolean, unknown>;
166
- /** Extra class(es) applied to the suggestions panel. */
167
- panelStyleClass: _angular_core.InputSignal<string | undefined>;
168
- /** Message shown when a query returns no suggestion. */
169
- emptyMessage: _angular_core.InputSignal<string>;
170
- /** Accessible label of each tag's remove action — `{0}` is the tag label. */
171
- removeTagLabel: _angular_core.InputSignal<string>;
172
- /** Emitted when a tag is added. */
173
- tagAdd: _angular_core.OutputEmitterRef<InputTagsAddEvent>;
174
- /** Emitted when a tag is removed. */
175
- tagRemove: _angular_core.OutputEmitterRef<InputTagsRemoveEvent>;
176
- /** Emitted whenever the model changes. */
177
- valueChange: _angular_core.OutputEmitterRef<T[]>;
178
- /** Emitted (debounced) when a typeahead query should run. */
179
- completeMethod: _angular_core.OutputEmitterRef<InputTagsCompleteEvent>;
180
- /** Emitted when a suggestion is selected. */
181
- optionSelect: _angular_core.OutputEmitterRef<InputTagsSelectEvent>;
182
- /** Emitted when the suggestions panel opens. */
183
- opened: _angular_core.OutputEmitterRef<void>;
184
- /** Emitted when the suggestions panel closes. */
185
- closed: _angular_core.OutputEmitterRef<void>;
186
- /** Emitted when the input receives focus. */
187
- inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
188
- /** Emitted when the input loses focus. */
189
- inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
190
- /** Custom tag template: `<ng-template #item let-value let-remove="onRemove">`. */
191
- protected readonly itemTemplate: _angular_core.Signal<TemplateRef<InputTagsItemContext<T>> | undefined>;
192
- /** Custom suggestion template: `<ng-template #option let-option>`. */
193
- protected readonly optionTemplate: _angular_core.Signal<TemplateRef<InputTagsOptionContext<T>> | undefined>;
194
- /** Custom group-header template: `<ng-template #group let-group>`. */
195
- protected readonly groupTemplate: _angular_core.Signal<TemplateRef<InputTagsGroupContext<unknown>> | undefined>;
196
- /** @ignore Component root (overlay origin). */
197
- private readonly containerEl;
198
- /** @ignore Editable input. */
199
- private readonly inputEl;
200
- /** @ignore Panel root element. */
201
- private readonly panelEl;
202
- /** @ignore Tag option elements (roving focus). `read: ElementRef` covers both the
203
- * plain `<span>` (template mode) and the `<ui-chip>` host (default mode). */
204
- private readonly tagEls;
205
- /** @ignore */
206
- protected readonly panelOpen: _angular_core.WritableSignal<boolean>;
207
- /** @ignore */
208
- protected readonly overlayOrigin: _angular_core.WritableSignal<Element | null>;
209
- /** @ignore */
210
- protected readonly overlayWidth: _angular_core.WritableSignal<number | null>;
211
- /** @ignore Text currently typed in the input. */
212
- protected readonly inputText: _angular_core.WritableSignal<string>;
213
- /** @ignore Index of the roving-focused tag (-1 = the input holds focus). */
214
- protected readonly focusedTag: _angular_core.WritableSignal<number>;
215
- /** @ignore Index of the visually focused suggestion (-1 = none). */
216
- protected readonly focusedOption: _angular_core.WritableSignal<number>;
217
- /** @ignore A query has been emitted and is awaiting fresh suggestions. */
218
- private queryDirty;
219
- /** @ignore Debounce handle for `completeMethod`. */
220
- private searchTimeout;
221
- constructor();
222
- /** @ignore Current tags. */
223
- protected readonly tagValues: _angular_core.Signal<T[]>;
224
- /** @ignore Tags as display rows (value + resolved label). */
225
- protected readonly tagRows: _angular_core.Signal<{
226
- value: T;
227
- index: number;
228
- label: string;
229
- removeAriaLabel: string;
230
- }[]>;
231
- /** @ignore */
232
- protected readonly listboxId: _angular_core.Signal<string>;
233
- /** @ignore */
234
- protected readonly panelListId: _angular_core.Signal<string>;
235
- /** @ignore Icon size aligned with the field size. */
236
- protected readonly iconSize: _angular_core.Signal<UiIconSize>;
237
- /** @ignore Tags can be removed (not disabled / read-only). */
238
- protected readonly canRemove: _angular_core.Signal<boolean>;
239
- /** @ignore The tag cap has been reached. */
240
- protected readonly isFull: _angular_core.Signal<boolean>;
241
- /** @ignore The input accepts typing. */
242
- protected readonly canType: _angular_core.Signal<boolean>;
243
- /** @ignore The placeholder is shown only while there is no tag, and never
244
- * under a floating label at rest: it already holds that spot. */
245
- protected readonly effectivePlaceholder: _angular_core.Signal<string>;
246
- /** @ignore Keeps a floating label raised once focus leaves. */
247
- protected readonly isFilled: _angular_core.Signal<boolean>;
248
- /** @ignore Flat entries (no groups). */
249
- private readonly flatEntries;
250
- /** @ignore Groups of entries. */
251
- private readonly groupEntries;
252
- /** @ignore Rendered suggestion rows (already-added values are marked present/disabled). */
253
- protected readonly visibleRows: _angular_core.Signal<TagRow[]>;
254
- /** @ignore Visible option rows only (visual-focus space). */
255
- protected readonly visibleOptions: _angular_core.Signal<{
256
- kind: "option";
257
- key: string;
258
- id: string;
259
- index: number;
260
- entry: TagEntry;
261
- present: boolean;
262
- }[]>;
263
- /** @ignore */
264
- protected readonly optionCount: _angular_core.Signal<number>;
265
- /** @ignore */
266
- protected readonly showEmpty: _angular_core.Signal<boolean>;
267
- /** @ignore id of the visually focused suggestion (aria-activedescendant). */
268
- protected readonly activeDescendant: _angular_core.Signal<string | null>;
269
- /** @ignore */
270
- protected readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
271
- writeValue(value: T[]): void;
272
- /** Moves focus to the input. */
273
- focus(options?: FocusOptions): void;
274
- /** @ignore Add one value as a tag (respects `max` and `allowDuplicate`). Returns true if added. */
275
- private addValue;
276
- /** @ignore Add the typed text (or its delimiter-split parts) as tag(s). */
277
- private addFromInput;
278
- /** Removes the tag at `index`. */
279
- removeAt(index: number, event: Event): void;
280
- /** @ignore Propagate a user-driven value change (view → form). */
281
- private commit;
282
- /** @ignore */
283
- protected onInput(event: Event): void;
284
- /** @ignore Split the text, add every completed part, keep the trailing remainder in the input. */
285
- private flushDelimited;
286
- /** @ignore */
287
- protected onKeydown(event: KeyboardEvent): void;
288
- /** @ignore */
289
- protected onPaste(event: ClipboardEvent): void;
290
- /** @ignore */
291
- protected onInputFocus(event: FocusEvent): void;
292
- /** @ignore */
293
- protected onInputBlur(event: FocusEvent): void;
294
- /** @ignore Focus / clicks on the field box (but not a tag / button) land on the input. */
295
- protected onBoxMousedown(event: MouseEvent): void;
296
- /** @ignore */
297
- protected onTagKeydown(event: KeyboardEvent, index: number): void;
298
- /** @ignore */
299
- private focusTag;
300
- /** @ignore */
301
- private focusInput;
302
- /** @ignore */
303
- private runSearch;
304
- /** @ignore */
305
- private open;
306
- /** @ignore */
307
- protected close(focusInput?: boolean): void;
308
- /** @ignore */
309
- private reopen;
310
- /** @ignore */
311
- protected onOptionClick(row: Extract<TagRow, {
312
- kind: 'option';
313
- }>, event: Event): void;
314
- /** @ignore Keep focus on the input when clicking an option. */
315
- protected onOptionMousedown(event: MouseEvent): void;
316
- /** @ignore */
317
- protected onOptionMouseEnter(row: Extract<TagRow, {
318
- kind: 'option';
319
- }>): void;
320
- /** @ignore */
321
- private selectRow;
322
- /** @ignore */
323
- private selectFocusedOption;
324
- /** @ignore Move the visual focus, skipping disabled options (no wrap). */
325
- private moveOption;
326
- /** @ignore */
327
- private scrollOptionIntoView;
328
- /** @ignore Display label for a tag value. */
329
- private labelOfValue;
330
- /** @ignore Shared option resolution (see `option-resolver.ts`). */
331
- private readonly resolver;
332
- /** @ignore */
333
- private toEntry;
334
- /** @ignore Read a (dot-path) field from an object. */
335
- private getField;
336
- /** @ignore */
337
- private resolveValue;
338
- /** @ignore */
339
- private resolveLabel;
340
- /** @ignore */
341
- private asText;
342
- /** @ignore Whether a value is already a tag. */
343
- private isPresent;
344
- /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
345
- private equals;
346
- /** @ignore Split text by the delimiter (string or regex); whole text when none. */
347
- private split;
348
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputTags<any>, never>;
349
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputTags<any>, "ui-input-tags", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "delimiter": { "alias": "delimiter"; "required": false; "isSignal": true; }; "allowDuplicate": { "alias": "allowDuplicate"; "required": false; "isSignal": true; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; "isSignal": true; }; "addOnTab": { "alias": "addOnTab"; "required": false; "isSignal": true; }; "addOnPaste": { "alias": "addOnPaste"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "chipLevel": { "alias": "chipLevel"; "required": false; "isSignal": true; }; "chipSubLevel": { "alias": "chipSubLevel"; "required": false; "isSignal": true; }; "chipRounded": { "alias": "chipRounded"; "required": false; "isSignal": true; }; "typeahead": { "alias": "typeahead"; "required": false; "isSignal": true; }; "suggestions": { "alias": "suggestions"; "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; }; "dataKey": { "alias": "dataKey"; "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; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "completeOnFocus": { "alias": "completeOnFocus"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; "isSignal": true; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "removeTagLabel": { "alias": "removeTagLabel"; "required": false; "isSignal": true; }; }, { "tagAdd": "tagAdd"; "tagRemove": "tagRemove"; "valueChange": "valueChange"; "completeMethod": "completeMethod"; "optionSelect": "optionSelect"; "opened": "opened"; "closed": "closed"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["itemTemplate", "optionTemplate", "groupTemplate"], never, true, never>;
112
+ export declare class UiInputTags<T = unknown> extends BaseFormField<T[]> {
113
+ /** Native placeholder shown when the input is empty (and no tag exists). */
114
+ placeholder: import("@angular/core").InputSignal<string | undefined>;
115
+ /** Maximum number of tags allowed (`undefined` = unlimited). */
116
+ max: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
117
+ /** Delimiter that splits typed/pasted text into several tags (in addition to `Enter`). */
118
+ delimiter: import("@angular/core").InputSignal<TagDelimiter | undefined>;
119
+ /** Allow the same value to be added several times. */
120
+ allowDuplicate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
121
+ /** Add the current input as a tag when the field loses focus. */
122
+ addOnBlur: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
123
+ /** Add the current input as a tag on `Tab`. */
124
+ addOnTab: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
125
+ /** Split pasted text with the `delimiter` (or whitespace/newlines) and add each part. */
126
+ addOnPaste: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
127
+ /** Max character length of a single typed tag. */
128
+ maxLength: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
129
+ /** Color family of the default `ui-chip` tags (ignored when an `#item` template is used). */
130
+ chipLevel: import("@angular/core").InputSignal<UiFeedbackLevel>;
131
+ /** Intensity of the default `ui-chip` tags: `low` (subtle, default) or `high` (solid). */
132
+ chipSubLevel: import("@angular/core").InputSignal<UiSubLevel>;
133
+ /** Pill shape (default) vs rounded-rectangle for the default `ui-chip` tags. */
134
+ chipRounded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
135
+ /** Show a suggestions dropdown as the user types (fed via `completeMethod`). */
136
+ typeahead: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
137
+ /** Suggestions to display — set by the parent in response to `completeMethod`. */
138
+ suggestions: import("@angular/core").InputSignal<readonly unknown[]>;
139
+ /** Field name (dot-path) read as a suggestion label. */
140
+ optionLabel: import("@angular/core").InputSignal<string | undefined>;
141
+ /** Field name (dot-path) read as the value added to the model. */
142
+ optionValue: import("@angular/core").InputSignal<string | undefined>;
143
+ /** Field name (dot-path) read as a suggestion's disabled flag. */
144
+ optionDisabled: import("@angular/core").InputSignal<string | undefined>;
145
+ /** Property compared for value equality (duplicate detection on objects). */
146
+ dataKey: import("@angular/core").InputSignal<string | undefined>;
147
+ /** Treat `suggestions` as groups. */
148
+ group: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
149
+ /** Field name of a group's label. */
150
+ optionGroupLabel: import("@angular/core").InputSignal<string>;
151
+ /** Field name of a group's children array. */
152
+ optionGroupChildren: import("@angular/core").InputSignal<string>;
153
+ /** Minimum number of characters before `completeMethod` is emitted. */
154
+ minLength: import("@angular/core").InputSignalWithTransform<number, unknown>;
155
+ /** Debounce (ms) between the last keystroke and `completeMethod`. */
156
+ delay: import("@angular/core").InputSignalWithTransform<number, unknown>;
157
+ /** Emit a query as soon as the input is focused (before any typing). */
158
+ completeOnFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
159
+ /** Max height of the suggestions list (CSS size). Defaults from the SCSS. */
160
+ scrollHeight: import("@angular/core").InputSignal<string | undefined>;
161
+ /** Visually focus the first suggestion when the panel opens. */
162
+ autoOptionFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
163
+ /** Visually focus the suggestion under the mouse pointer. */
164
+ focusOnHover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
165
+ /** Auto-flip the panel above the input when space is lacking below. */
166
+ autoFlip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
167
+ /** Extra class(es) applied to the suggestions panel. */
168
+ panelStyleClass: import("@angular/core").InputSignal<string | undefined>;
169
+ /** Message shown when a query returns no suggestion. */
170
+ emptyMessage: import("@angular/core").InputSignal<string>;
171
+ /** Accessible label of each tag's remove action — `{0}` is the tag label. */
172
+ removeTagLabel: import("@angular/core").InputSignal<string>;
173
+ /** Emitted when a tag is added. */
174
+ tagAdd: import("@angular/core").OutputEmitterRef<InputTagsAddEvent>;
175
+ /** Emitted when a tag is removed. */
176
+ tagRemove: import("@angular/core").OutputEmitterRef<InputTagsRemoveEvent>;
177
+ /** Emitted whenever the model changes. */
178
+ valueChange: import("@angular/core").OutputEmitterRef<T[]>;
179
+ /** Emitted (debounced) when a typeahead query should run. */
180
+ completeMethod: import("@angular/core").OutputEmitterRef<InputTagsCompleteEvent>;
181
+ /** Emitted when a suggestion is selected. */
182
+ optionSelect: import("@angular/core").OutputEmitterRef<InputTagsSelectEvent>;
183
+ /** Emitted when the suggestions panel opens. */
184
+ opened: import("@angular/core").OutputEmitterRef<void>;
185
+ /** Emitted when the suggestions panel closes. */
186
+ closed: import("@angular/core").OutputEmitterRef<void>;
187
+ /** Emitted when the input receives focus. */
188
+ inputFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
189
+ /** Emitted when the input loses focus. */
190
+ inputBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
191
+ /** Custom tag template: `<ng-template #item let-value let-remove="onRemove">`. */
192
+ protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<InputTagsItemContext<T>> | undefined>;
193
+ /** Custom suggestion template: `<ng-template #option let-option>`. */
194
+ protected readonly optionTemplate: import("@angular/core").Signal<TemplateRef<InputTagsOptionContext<T>> | undefined>;
195
+ /** Custom group-header template: `<ng-template #group let-group>`. */
196
+ protected readonly groupTemplate: import("@angular/core").Signal<TemplateRef<InputTagsGroupContext<unknown>> | undefined>;
197
+ /** @ignore Component root (overlay origin). */
198
+ private readonly containerEl;
199
+ /** @ignore Editable input. */
200
+ private readonly inputEl;
201
+ /** @ignore Panel root element. */
202
+ private readonly panelEl;
203
+ /** @ignore Tag option elements (roving focus). `read: ElementRef` covers both the
204
+ * plain `<span>` (template mode) and the `<ui-chip>` host (default mode). */
205
+ private readonly tagEls;
206
+ /** @ignore */
207
+ protected readonly panelOpen: import("@angular/core").WritableSignal<boolean>;
208
+ /** @ignore */
209
+ protected readonly overlayOrigin: import("@angular/core").WritableSignal<Element | null>;
210
+ /** @ignore */
211
+ protected readonly overlayWidth: import("@angular/core").WritableSignal<number | null>;
212
+ /** @ignore Text currently typed in the input. */
213
+ protected readonly inputText: import("@angular/core").WritableSignal<string>;
214
+ /** @ignore Index of the roving-focused tag (-1 = the input holds focus). */
215
+ protected readonly focusedTag: import("@angular/core").WritableSignal<number>;
216
+ /** @ignore Index of the visually focused suggestion (-1 = none). */
217
+ protected readonly focusedOption: import("@angular/core").WritableSignal<number>;
218
+ /** @ignore A query has been emitted and is awaiting fresh suggestions. */
219
+ private queryDirty;
220
+ /** @ignore Debounce handle for `completeMethod`. */
221
+ private searchTimeout;
222
+ constructor();
223
+ /** @ignore Current tags. */
224
+ protected readonly tagValues: import("@angular/core").Signal<T[]>;
225
+ /** @ignore Tags as display rows (value + resolved label). */
226
+ protected readonly tagRows: import("@angular/core").Signal<{
227
+ value: T;
228
+ index: number;
229
+ label: string;
230
+ removeAriaLabel: string;
231
+ }[]>;
232
+ /** @ignore */
233
+ protected readonly listboxId: import("@angular/core").Signal<string>;
234
+ /** @ignore */
235
+ protected readonly panelListId: import("@angular/core").Signal<string>;
236
+ /** @ignore Icon size aligned with the field size. */
237
+ protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
238
+ /** @ignore Tags can be removed (not disabled / read-only). */
239
+ protected readonly canRemove: import("@angular/core").Signal<boolean>;
240
+ /** @ignore The tag cap has been reached. */
241
+ protected readonly isFull: import("@angular/core").Signal<boolean>;
242
+ /** @ignore The input accepts typing. */
243
+ protected readonly canType: import("@angular/core").Signal<boolean>;
244
+ /** @ignore The placeholder is shown only while there is no tag, and never
245
+ * under a floating label at rest: it already holds that spot. */
246
+ protected readonly effectivePlaceholder: import("@angular/core").Signal<string>;
247
+ /** @ignore Keeps a floating label raised once focus leaves. */
248
+ protected readonly isFilled: import("@angular/core").Signal<boolean>;
249
+ /** @ignore Flat entries (no groups). */
250
+ private readonly flatEntries;
251
+ /** @ignore Groups of entries. */
252
+ private readonly groupEntries;
253
+ /** @ignore Rendered suggestion rows (already-added values are marked present/disabled). */
254
+ protected readonly visibleRows: import("@angular/core").Signal<TagRow[]>;
255
+ /** @ignore Visible option rows only (visual-focus space). */
256
+ protected readonly visibleOptions: import("@angular/core").Signal<{
257
+ kind: "option";
258
+ key: string;
259
+ id: string;
260
+ index: number;
261
+ entry: TagEntry;
262
+ present: boolean;
263
+ }[]>;
264
+ /** @ignore */
265
+ protected readonly optionCount: import("@angular/core").Signal<number>;
266
+ /** @ignore */
267
+ protected readonly showEmpty: import("@angular/core").Signal<boolean>;
268
+ /** @ignore id of the visually focused suggestion (aria-activedescendant). */
269
+ protected readonly activeDescendant: import("@angular/core").Signal<string | null>;
270
+ /** @ignore */
271
+ protected readonly overlayPositions: import("@angular/core").Signal<import("@angular/cdk/overlay").ConnectedPosition[]>;
272
+ writeValue(value: T[]): void;
273
+ /** Moves focus to the input. */
274
+ focus(options?: FocusOptions): void;
275
+ /** @ignore Add one value as a tag (respects `max` and `allowDuplicate`). Returns true if added. */
276
+ private addValue;
277
+ /** @ignore Add the typed text (or its delimiter-split parts) as tag(s). */
278
+ private addFromInput;
279
+ /** Removes the tag at `index`. */
280
+ removeAt(index: number, event: Event): void;
281
+ /** @ignore Propagate a user-driven value change (view → form). */
282
+ private commit;
283
+ /** @ignore */
284
+ protected onInput(event: Event): void;
285
+ /** @ignore Split the text, add every completed part, keep the trailing remainder in the input. */
286
+ private flushDelimited;
287
+ /** @ignore */
288
+ protected onKeydown(event: KeyboardEvent): void;
289
+ /** @ignore */
290
+ protected onPaste(event: ClipboardEvent): void;
291
+ /** @ignore */
292
+ protected onInputFocus(event: FocusEvent): void;
293
+ /** @ignore */
294
+ protected onInputBlur(event: FocusEvent): void;
295
+ /** @ignore Focus / clicks on the field box (but not a tag / button) land on the input. */
296
+ protected onBoxMousedown(event: MouseEvent): void;
297
+ /** @ignore */
298
+ protected onTagKeydown(event: KeyboardEvent, index: number): void;
299
+ /** @ignore */
300
+ private focusTag;
301
+ /** @ignore */
302
+ private focusInput;
303
+ /** @ignore */
304
+ private runSearch;
305
+ /** @ignore */
306
+ private open;
307
+ /** @ignore */
308
+ protected close(focusInput?: boolean): void;
309
+ /** @ignore */
310
+ private reopen;
311
+ /** @ignore */
312
+ protected onOptionClick(row: Extract<TagRow, {
313
+ kind: 'option';
314
+ }>, event: Event): void;
315
+ /** @ignore Keep focus on the input when clicking an option. */
316
+ protected onOptionMousedown(event: MouseEvent): void;
317
+ /** @ignore */
318
+ protected onOptionMouseEnter(row: Extract<TagRow, {
319
+ kind: 'option';
320
+ }>): void;
321
+ /** @ignore */
322
+ private selectRow;
323
+ /** @ignore */
324
+ private selectFocusedOption;
325
+ /** @ignore Move the visual focus, skipping disabled options (no wrap). */
326
+ private moveOption;
327
+ /** @ignore */
328
+ private scrollOptionIntoView;
329
+ /** @ignore Display label for a tag value. */
330
+ private labelOfValue;
331
+ /** @ignore Shared option resolution (see `option-resolver.ts`). */
332
+ private readonly resolver;
333
+ /** @ignore */
334
+ private toEntry;
335
+ /** @ignore Read a (dot-path) field from an object. */
336
+ private getField;
337
+ /** @ignore */
338
+ private resolveValue;
339
+ /** @ignore */
340
+ private resolveLabel;
341
+ /** @ignore */
342
+ private asText;
343
+ /** @ignore Whether a value is already a tag. */
344
+ private isPresent;
345
+ /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */
346
+ private equals;
347
+ /** @ignore Split text by the delimiter (string or regex); whole text when none. */
348
+ private split;
349
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiInputTags<any>, never>;
350
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiInputTags<any>, "ui-input-tags", never, {
351
+ "placeholder": {
352
+ "alias": "placeholder";
353
+ "required": false;
354
+ "isSignal": true;
355
+ };
356
+ "max": {
357
+ "alias": "max";
358
+ "required": false;
359
+ "isSignal": true;
360
+ };
361
+ "delimiter": {
362
+ "alias": "delimiter";
363
+ "required": false;
364
+ "isSignal": true;
365
+ };
366
+ "allowDuplicate": {
367
+ "alias": "allowDuplicate";
368
+ "required": false;
369
+ "isSignal": true;
370
+ };
371
+ "addOnBlur": {
372
+ "alias": "addOnBlur";
373
+ "required": false;
374
+ "isSignal": true;
375
+ };
376
+ "addOnTab": {
377
+ "alias": "addOnTab";
378
+ "required": false;
379
+ "isSignal": true;
380
+ };
381
+ "addOnPaste": {
382
+ "alias": "addOnPaste";
383
+ "required": false;
384
+ "isSignal": true;
385
+ };
386
+ "maxLength": {
387
+ "alias": "maxLength";
388
+ "required": false;
389
+ "isSignal": true;
390
+ };
391
+ "chipLevel": {
392
+ "alias": "chipLevel";
393
+ "required": false;
394
+ "isSignal": true;
395
+ };
396
+ "chipSubLevel": {
397
+ "alias": "chipSubLevel";
398
+ "required": false;
399
+ "isSignal": true;
400
+ };
401
+ "chipRounded": {
402
+ "alias": "chipRounded";
403
+ "required": false;
404
+ "isSignal": true;
405
+ };
406
+ "typeahead": {
407
+ "alias": "typeahead";
408
+ "required": false;
409
+ "isSignal": true;
410
+ };
411
+ "suggestions": {
412
+ "alias": "suggestions";
413
+ "required": false;
414
+ "isSignal": true;
415
+ };
416
+ "optionLabel": {
417
+ "alias": "optionLabel";
418
+ "required": false;
419
+ "isSignal": true;
420
+ };
421
+ "optionValue": {
422
+ "alias": "optionValue";
423
+ "required": false;
424
+ "isSignal": true;
425
+ };
426
+ "optionDisabled": {
427
+ "alias": "optionDisabled";
428
+ "required": false;
429
+ "isSignal": true;
430
+ };
431
+ "dataKey": {
432
+ "alias": "dataKey";
433
+ "required": false;
434
+ "isSignal": true;
435
+ };
436
+ "group": {
437
+ "alias": "group";
438
+ "required": false;
439
+ "isSignal": true;
440
+ };
441
+ "optionGroupLabel": {
442
+ "alias": "optionGroupLabel";
443
+ "required": false;
444
+ "isSignal": true;
445
+ };
446
+ "optionGroupChildren": {
447
+ "alias": "optionGroupChildren";
448
+ "required": false;
449
+ "isSignal": true;
450
+ };
451
+ "minLength": {
452
+ "alias": "minLength";
453
+ "required": false;
454
+ "isSignal": true;
455
+ };
456
+ "delay": {
457
+ "alias": "delay";
458
+ "required": false;
459
+ "isSignal": true;
460
+ };
461
+ "completeOnFocus": {
462
+ "alias": "completeOnFocus";
463
+ "required": false;
464
+ "isSignal": true;
465
+ };
466
+ "scrollHeight": {
467
+ "alias": "scrollHeight";
468
+ "required": false;
469
+ "isSignal": true;
470
+ };
471
+ "autoOptionFocus": {
472
+ "alias": "autoOptionFocus";
473
+ "required": false;
474
+ "isSignal": true;
475
+ };
476
+ "focusOnHover": {
477
+ "alias": "focusOnHover";
478
+ "required": false;
479
+ "isSignal": true;
480
+ };
481
+ "autoFlip": {
482
+ "alias": "autoFlip";
483
+ "required": false;
484
+ "isSignal": true;
485
+ };
486
+ "panelStyleClass": {
487
+ "alias": "panelStyleClass";
488
+ "required": false;
489
+ "isSignal": true;
490
+ };
491
+ "emptyMessage": {
492
+ "alias": "emptyMessage";
493
+ "required": false;
494
+ "isSignal": true;
495
+ };
496
+ "removeTagLabel": {
497
+ "alias": "removeTagLabel";
498
+ "required": false;
499
+ "isSignal": true;
500
+ };
501
+ }, {
502
+ "tagAdd": "tagAdd";
503
+ "tagRemove": "tagRemove";
504
+ "valueChange": "valueChange";
505
+ "completeMethod": "completeMethod";
506
+ "optionSelect": "optionSelect";
507
+ "opened": "opened";
508
+ "closed": "closed";
509
+ "inputFocus": "inputFocus";
510
+ "inputBlur": "inputBlur";
511
+ }, ["itemTemplate", "optionTemplate", "groupTemplate"], never, true, never>;
350
512
  }
351
-
352
- export { UiInputTags };
353
- export type { InputTagsAddEvent, InputTagsCompleteEvent, InputTagsGroupContext, InputTagsItemContext, InputTagsOptionContext, InputTagsRemoveEvent, InputTagsSelectEvent, TagDelimiter };
513
+ export {};