@4sh/ui-kit 0.16.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 (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,8 +1,10 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ControlValueAccessor, ValidationErrors } from '@angular/forms';
3
- import { UiFeedbackLevel } from '@4sh/ui-kit/types';
4
- import { ConnectedPosition } from '@angular/cdk/overlay';
5
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { ControlValueAccessor, ValidationErrors } from "@angular/forms";
5
+ import { UiFeedbackLevel } from "@4sh/ui-kit/types";
6
+ import * as i0 from "@angular/core";
7
+ import { ConnectedPosition } from "@angular/cdk/overlay";
6
8
  /**
7
9
  * Base class for form components (`ui-checkbox`, `ui-radio`, `ui-input`…).
8
10
  *
@@ -26,47 +28,46 @@ import { ConnectedPosition } from '@angular/cdk/overlay';
26
28
  * Works with reactive forms, template-driven forms, or standalone (no form at
27
29
  * all — the signals simply keep their defaults).
28
30
  */
29
- declare abstract class BaseControlValueAccessor<T> implements ControlValueAccessor {
30
- private readonly injector;
31
- private readonly destroyRef;
32
- readonly dirty: _angular_core.WritableSignal<boolean>;
33
- readonly pristine: _angular_core.WritableSignal<boolean>;
34
- readonly touched: _angular_core.WritableSignal<boolean>;
35
- readonly untouched: _angular_core.WritableSignal<boolean>;
36
- /** Validation state of the attached control (false when no control). */
37
- readonly controlInvalid: _angular_core.WritableSignal<boolean>;
38
- /** Validation errors of the attached control (null when valid / no control). */
39
- readonly controlErrors: _angular_core.WritableSignal<ValidationErrors | null>;
40
- /** Disabled state driven by the forms API (`control.disable()`), not by the `disabled` input. */
41
- readonly controlDisabled: _angular_core.WritableSignal<boolean>;
42
- /** True when the error state should be surfaced to the user. */
43
- readonly showError: _angular_core.Signal<boolean>;
44
- protected onChange: (value: T) => void;
45
- protected onTouched: () => void;
46
- constructor();
47
- /** Write the form value into the component state (form → view). */
48
- abstract writeValue(value: T): void;
49
- registerOnChange(fn: (value: T) => void): void;
50
- registerOnTouched(fn: () => void): void;
51
- setDisabledState(isDisabled: boolean): void;
52
- /** Propagate a user-driven value change to the form (view → form). */
53
- protected emitChange(value: T): void;
54
- /** Mark the control as touched (call on blur). */
55
- protected emitTouch(): void;
56
- /** Mirror the NgControl state into the signals. Wired automatically; safe to call once manually if needed. */
57
- protected watchNgControlEvents(): void;
31
+ export declare abstract class BaseControlValueAccessor<T> implements ControlValueAccessor {
32
+ private readonly injector;
33
+ private readonly destroyRef;
34
+ readonly dirty: import("@angular/core").WritableSignal<boolean>;
35
+ readonly pristine: import("@angular/core").WritableSignal<boolean>;
36
+ readonly touched: import("@angular/core").WritableSignal<boolean>;
37
+ readonly untouched: import("@angular/core").WritableSignal<boolean>;
38
+ /** Validation state of the attached control (false when no control). */
39
+ readonly controlInvalid: import("@angular/core").WritableSignal<boolean>;
40
+ /** Validation errors of the attached control (null when valid / no control). */
41
+ readonly controlErrors: import("@angular/core").WritableSignal<ValidationErrors | null>;
42
+ /** Disabled state driven by the forms API (`control.disable()`), not by the `disabled` input. */
43
+ readonly controlDisabled: import("@angular/core").WritableSignal<boolean>;
44
+ /** True when the error state should be surfaced to the user. */
45
+ readonly showError: import("@angular/core").Signal<boolean>;
46
+ protected onChange: (value: T) => void;
47
+ protected onTouched: () => void;
48
+ constructor();
49
+ /** Write the form value into the component state (form → view). */
50
+ abstract writeValue(value: T): void;
51
+ registerOnChange(fn: (value: T) => void): void;
52
+ registerOnTouched(fn: () => void): void;
53
+ setDisabledState(isDisabled: boolean): void;
54
+ /** Propagate a user-driven value change to the form (view → form). */
55
+ protected emitChange(value: T): void;
56
+ /** Mark the control as touched (call on blur). */
57
+ protected emitTouch(): void;
58
+ /** Mirror the NgControl state into the signals. Wired automatically; safe to call once manually if needed. */
59
+ protected watchNgControlEvents(): void;
58
60
  }
59
-
60
- type FieldSize = 'default' | 'small';
61
+ export type FieldSize = 'default' | 'small';
61
62
  /** Visual validation status (subset of `UiFeedbackLevel`, shared with `ui-helper`). */
62
- type FieldLevel = Extract<UiFeedbackLevel, 'default' | 'success' | 'error'>;
63
+ export type FieldLevel = Extract<UiFeedbackLevel, 'default' | 'success' | 'error'>;
63
64
  /**
64
65
  * Placement of the floating label ("float label" mode):
65
66
  * - `over`: rises above the box, where a classic label sits,
66
67
  * - `in`: rises to a band reserved at the top **inside** the box,
67
68
  * - `on`: rises **onto** the top border, notching it.
68
69
  */
69
- type FieldFloatLabel = 'over' | 'in' | 'on';
70
+ export type FieldFloatLabel = 'over' | 'in' | 'on';
70
71
  /**
71
72
  * Base class for every standalone form control (`ui-checkbox`, `ui-toggle`,
72
73
  * `ui-slider`, `ui-nudger`…): the CVA plumbing shared by all of them, without
@@ -81,42 +82,88 @@ type FieldFloatLabel = 'over' | 'in' | 'on';
81
82
  * Decorated with `@Directive()` (no selector) so the signal inputs are inherited
82
83
  * correctly by the concrete components.
83
84
  */
84
- declare abstract class BaseFieldControl<T> extends BaseControlValueAccessor<T> {
85
- /** Accessible name when no visible label is provided. */
86
- ariaLabel: _angular_core.InputSignal<string | undefined>;
87
- /** id of an external element that labels this control. */
88
- ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
89
- /** id forwarded to the native input (auto-generated when omitted). */
90
- inputId: _angular_core.InputSignal<string | undefined>;
91
- /** name forwarded to the native input. */
92
- name: _angular_core.InputSignal<string | undefined>;
93
- /** Required marker (*) + native required attribute. */
94
- required: _angular_core.InputSignalWithTransform<boolean, unknown>;
95
- /** Disables the field (native attribute). */
96
- disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
97
- /** Read-only (native attribute). */
98
- readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
99
- /** Forces the error styling (automatic when the attached control is invalid and touched/dirty). */
100
- invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
101
- /** tabindex forwarded to the native input. */
102
- tabindex: _angular_core.InputSignal<number | undefined>;
103
- /** @ignore Auto-generated unique id (prefix branded via `uidPrefix`). */
104
- protected readonly uid: string;
105
- /** @ignore Current value (written by the form or by user input). */
106
- protected readonly modelValue: _angular_core.WritableSignal<T | undefined>;
107
- /** @ignore */
108
- protected readonly resolvedId: _angular_core.Signal<string>;
109
- /** @ignore id of the message (for aria-describedby). */
110
- protected readonly messageId: _angular_core.Signal<string>;
111
- /** @ignore Input disabled OR control disabled (form API). */
112
- protected readonly isDisabled: _angular_core.Signal<boolean>;
113
- /** @ignore Explicit error OR invalid control worth surfacing. */
114
- protected readonly isInvalid: _angular_core.Signal<boolean>;
115
- writeValue(value: T): void;
116
- /** @ignore Prefix of the auto-generated id — override to brand it per component. */
117
- protected uidPrefix(): string;
118
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFieldControl<any>, never>;
119
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFieldControl<any>, never, never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
85
+ export declare abstract class BaseFieldControl<T> extends BaseControlValueAccessor<T> {
86
+ /** Accessible name when no visible label is provided. */
87
+ ariaLabel: import("@angular/core").InputSignal<string | undefined>;
88
+ /** id of an external element that labels this control. */
89
+ ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
90
+ /** id forwarded to the native input (auto-generated when omitted). */
91
+ inputId: import("@angular/core").InputSignal<string | undefined>;
92
+ /** name forwarded to the native input. */
93
+ name: import("@angular/core").InputSignal<string | undefined>;
94
+ /** Required marker (*) + native required attribute. */
95
+ required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
96
+ /** Disables the field (native attribute). */
97
+ disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
98
+ /** Read-only (native attribute). */
99
+ readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
100
+ /** Forces the error styling (automatic when the attached control is invalid and touched/dirty). */
101
+ invalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
102
+ /** tabindex forwarded to the native input. */
103
+ tabindex: import("@angular/core").InputSignal<number | undefined>;
104
+ /** @ignore Auto-generated unique id (prefix branded via `uidPrefix`). */
105
+ protected readonly uid: string;
106
+ /** @ignore Current value (written by the form or by user input). */
107
+ protected readonly modelValue: import("@angular/core").WritableSignal<T | undefined>;
108
+ /** @ignore */
109
+ protected readonly resolvedId: import("@angular/core").Signal<string>;
110
+ /** @ignore id of the message (for aria-describedby). */
111
+ protected readonly messageId: import("@angular/core").Signal<string>;
112
+ /** @ignore Input disabled OR control disabled (form API). */
113
+ protected readonly isDisabled: import("@angular/core").Signal<boolean>;
114
+ /** @ignore Explicit error OR invalid control worth surfacing. */
115
+ protected readonly isInvalid: import("@angular/core").Signal<boolean>;
116
+ writeValue(value: T): void;
117
+ /** @ignore Prefix of the auto-generated id — override to brand it per component. */
118
+ protected uidPrefix(): string;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFieldControl<any>, never>;
120
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFieldControl<any>, never, never, {
121
+ "ariaLabel": {
122
+ "alias": "ariaLabel";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "ariaLabelledBy": {
127
+ "alias": "ariaLabelledBy";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ "inputId": {
132
+ "alias": "inputId";
133
+ "required": false;
134
+ "isSignal": true;
135
+ };
136
+ "name": {
137
+ "alias": "name";
138
+ "required": false;
139
+ "isSignal": true;
140
+ };
141
+ "required": {
142
+ "alias": "required";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "disabled": {
147
+ "alias": "disabled";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ "readonly": {
152
+ "alias": "readonly";
153
+ "required": false;
154
+ "isSignal": true;
155
+ };
156
+ "invalid": {
157
+ "alias": "invalid";
158
+ "required": false;
159
+ "isSignal": true;
160
+ };
161
+ "tabindex": {
162
+ "alias": "tabindex";
163
+ "required": false;
164
+ "isSignal": true;
165
+ };
166
+ }, {}, never, never, true, never>;
120
167
  }
121
168
  /**
122
169
  * Base class for "box" form fields (`ui-input`, `ui-input-number`,
@@ -127,48 +174,87 @@ declare abstract class BaseFieldControl<T> extends BaseControlValueAccessor<T> {
127
174
  * message/value). Subclasses only handle their own `<input>` (specific
128
175
  * parsing/formatting) and call `emitChange` / `emitTouch`.
129
176
  */
130
- declare abstract class BaseFormField<T> extends BaseFieldControl<T> {
131
- /** Label (rendered via `ui-label`). */
132
- label: _angular_core.InputSignal<string | undefined>;
133
- /** Helper text under the field (rendered via `ui-helper`). */
134
- helperText: _angular_core.InputSignal<string | undefined>;
135
- /** Error message shown in place of the helper when the field is in error. */
136
- errorText: _angular_core.InputSignal<string | undefined>;
137
- /** Prefixes the message under the field (helper or error) with a decorative icon. */
138
- showMessageIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
139
- /** Overrides the glyph shown by `showMessageIcon`. */
140
- messageIcon: _angular_core.InputSignal<string | undefined>;
141
- /** Size. */
142
- size: _angular_core.InputSignal<FieldSize>;
143
- /** Explicit validation status (`error` is forced when the control is invalid + touched). */
144
- level: _angular_core.InputSignal<FieldLevel>;
145
- /**
146
- * Floating label placement. Unset = classic label above the box.
147
- *
148
- * The label then plays the placeholder role while at rest, so the native
149
- * `placeholder` is neutralised (see `hasFloatLabel`).
150
- */
151
- floatLabel: _angular_core.InputSignal<FieldFloatLabel | undefined>;
152
- /** @ignore There is a label to float: a `floatLabel` alone has nothing to move. */
153
- protected readonly hasFloatLabel: _angular_core.Signal<boolean>;
154
- /** @ignore Effective level: error when invalid, otherwise the requested `level`. */
155
- protected readonly effectiveLevel: _angular_core.Signal<FieldLevel>;
156
- /** @ignore Displayed message: errorText when in error (if provided), otherwise helperText. */
157
- protected readonly displayMessage: _angular_core.Signal<string | undefined>;
158
- /** @ignore Value shown in the input (string). Override for specific formatting. */
159
- protected readonly displayValue: _angular_core.Signal<string>;
160
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormField<any>, never>;
161
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormField<any>, never, never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "showMessageIcon": { "alias": "showMessageIcon"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
177
+ export declare abstract class BaseFormField<T> extends BaseFieldControl<T> {
178
+ /** Label (rendered via `ui-label`). */
179
+ label: import("@angular/core").InputSignal<string | undefined>;
180
+ /** Helper text under the field (rendered via `ui-helper`). */
181
+ helperText: import("@angular/core").InputSignal<string | undefined>;
182
+ /** Error message shown in place of the helper when the field is in error. */
183
+ errorText: import("@angular/core").InputSignal<string | undefined>;
184
+ /** Prefixes the message under the field (helper or error) with a decorative icon. */
185
+ showMessageIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
186
+ /** Overrides the glyph shown by `showMessageIcon`. */
187
+ messageIcon: import("@angular/core").InputSignal<string | undefined>;
188
+ /** Size. */
189
+ size: import("@angular/core").InputSignal<FieldSize>;
190
+ /** Explicit validation status (`error` is forced when the control is invalid + touched). */
191
+ level: import("@angular/core").InputSignal<FieldLevel>;
192
+ /**
193
+ * Floating label placement. Unset = classic label above the box.
194
+ *
195
+ * The label then plays the placeholder role while at rest, so the native
196
+ * `placeholder` is neutralised (see `hasFloatLabel`).
197
+ */
198
+ floatLabel: import("@angular/core").InputSignal<FieldFloatLabel | undefined>;
199
+ /** @ignore There is a label to float: a `floatLabel` alone has nothing to move. */
200
+ protected readonly hasFloatLabel: import("@angular/core").Signal<boolean>;
201
+ /** @ignore Effective level: error when invalid, otherwise the requested `level`. */
202
+ protected readonly effectiveLevel: import("@angular/core").Signal<FieldLevel>;
203
+ /** @ignore Displayed message: errorText when in error (if provided), otherwise helperText. */
204
+ protected readonly displayMessage: import("@angular/core").Signal<string | undefined>;
205
+ /** @ignore Value shown in the input (string). Override for specific formatting. */
206
+ protected readonly displayValue: import("@angular/core").Signal<string>;
207
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormField<any>, never>;
208
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormField<any>, never, never, {
209
+ "label": {
210
+ "alias": "label";
211
+ "required": false;
212
+ "isSignal": true;
213
+ };
214
+ "helperText": {
215
+ "alias": "helperText";
216
+ "required": false;
217
+ "isSignal": true;
218
+ };
219
+ "errorText": {
220
+ "alias": "errorText";
221
+ "required": false;
222
+ "isSignal": true;
223
+ };
224
+ "showMessageIcon": {
225
+ "alias": "showMessageIcon";
226
+ "required": false;
227
+ "isSignal": true;
228
+ };
229
+ "messageIcon": {
230
+ "alias": "messageIcon";
231
+ "required": false;
232
+ "isSignal": true;
233
+ };
234
+ "size": {
235
+ "alias": "size";
236
+ "required": false;
237
+ "isSignal": true;
238
+ };
239
+ "level": {
240
+ "alias": "level";
241
+ "required": false;
242
+ "isSignal": true;
243
+ };
244
+ "floatLabel": {
245
+ "alias": "floatLabel";
246
+ "required": false;
247
+ "isSignal": true;
248
+ };
249
+ }, {}, never, never, true, never>;
162
250
  }
163
-
164
251
  /**
165
252
  * Standard dropdown-panel anchoring shared by the overlay form fields
166
253
  * (`ui-select`, `ui-autocomplete`, `ui-input-tags`, `ui-datepicker`):
167
254
  * below the field, flipped above when `autoFlip`, flipped horizontally
168
255
  * (right-aligned) whenever there isn't enough room on the right.
169
256
  */
170
- declare function dropdownOverlayPositions(autoFlip: boolean): ConnectedPosition[];
171
-
257
+ export declare function dropdownOverlayPositions(autoFlip: boolean): ConnectedPosition[];
172
258
  /**
173
259
  * Pure masking engine shared by `ui-input-mask` and `ui-datepicker` (auto-formatting the typed
174
260
  * date). Same precedent as `overlay-positions.ts` in this folder: framework-free functions, no
@@ -177,34 +263,34 @@ declare function dropdownOverlayPositions(autoFlip: boolean): ConnectedPosition[
177
263
  * /`this.ranges()`/`this.slotChar()` become explicit parameters.
178
264
  */
179
265
  /** Mask tokens → accepted character class. */
180
- declare const MASK_TOKENS: Record<string, RegExp>;
181
- interface MaskBounds {
182
- min: number;
183
- max: number;
266
+ export declare const MASK_TOKENS: Record<string, RegExp>;
267
+ export interface MaskBounds {
268
+ min: number;
269
+ max: number;
184
270
  }
185
- interface MaskSlot {
186
- char: string | null;
187
- rgx?: RegExp;
188
- bound?: MaskBounds & {
189
- pos: number;
190
- len: number;
191
- };
271
+ export interface MaskSlot {
272
+ char: string | null;
273
+ rgx?: RegExp;
274
+ bound?: MaskBounds & {
275
+ pos: number;
276
+ len: number;
277
+ };
192
278
  }
193
- interface MaskBuildResult {
194
- display: string;
195
- masked: string;
196
- data: string;
197
- tokenIndices: number[];
279
+ export interface MaskBuildResult {
280
+ display: string;
281
+ masked: string;
282
+ data: string;
283
+ tokenIndices: number[];
198
284
  }
199
285
  /** Parse the `ranges` input (`"1-31 1-12 1900-2100"`) into one bound per numeric segment. */
200
- declare function parseMaskRanges(ranges: string): (MaskBounds | null)[];
286
+ export declare function parseMaskRanges(ranges: string): (MaskBounds | null)[];
201
287
  /**
202
288
  * Resolve the mask template into slots: literals, input slots, and the `ranges` bounds attached
203
289
  * to every slot of the numeric segment (consecutive `9` tokens) it belongs to.
204
290
  */
205
- declare function buildMaskSlots(mask: string, bounds: (MaskBounds | null)[], tokens?: Record<string, RegExp>): MaskSlot[];
291
+ export declare function buildMaskSlots(mask: string, bounds: (MaskBounds | null)[], tokens?: Record<string, RegExp>): MaskSlot[];
206
292
  /** Keep only the data characters (alphanumeric) of a raw input string. */
207
- declare function extractMaskData(raw: string): string;
293
+ export declare function extractMaskData(raw: string): string;
208
294
  /**
209
295
  * Can `ch` fill this slot? It must match the token class and — when the segment is bounded
210
296
  * AND `enforceBounds` — the digits typed so far plus `ch` must still admit at least one in-range
@@ -218,11 +304,11 @@ declare function extractMaskData(raw: string): string;
218
304
  * over after a deletion, that same skip can discard a still-valid residual digit and misalign
219
305
  * every segment after it. See `autoFormatSegments`.
220
306
  */
221
- declare function acceptsMaskChar(slot: MaskSlot, segment: string, ch: string, enforceBounds?: boolean): boolean;
307
+ export declare function acceptsMaskChar(slot: MaskSlot, segment: string, ch: string, enforceBounds?: boolean): boolean;
222
308
  /** Apply the mask template to a sequence of data characters (fills empty positions with `slotChar`). */
223
- declare function applyMaskTemplate(slots: MaskSlot[], data: string, slotChar: string): MaskBuildResult;
309
+ export declare function applyMaskTemplate(slots: MaskSlot[], data: string, slotChar: string): MaskBuildResult;
224
310
  /** Caret position for `n` typed data characters (literals skipped, end-of-text once all filled). */
225
- declare function caretForMask(tokenIndices: number[], n: number, length: number): number;
311
+ export declare function caretForMask(tokenIndices: number[], n: number, length: number): number;
226
312
  /**
227
313
  * Auto-format-as-you-type variant of {@link applyMaskTemplate}: inserts a literal separator as
228
314
  * soon as the segment right before it is complete, without ever padding unfilled positions with
@@ -230,14 +316,13 @@ declare function caretForMask(tokenIndices: number[], n: number, length: number)
230
316
  * template at rest). Used by `ui-datepicker`'s typeable trigger to auto-insert "/" as digits are
231
317
  * typed, the same way a card-expiry field auto-inserts its "/".
232
318
  */
233
- declare function autoFormatSegments(slots: MaskSlot[], data: string, { enforceBounds }?: {
234
- enforceBounds?: boolean;
319
+ export declare function autoFormatSegments(slots: MaskSlot[], data: string, { enforceBounds }?: {
320
+ enforceBounds?: boolean;
235
321
  }): {
236
- text: string;
237
- tokenIndices: number[];
238
- dataEnd: number;
322
+ text: string;
323
+ tokenIndices: number[];
324
+ dataEnd: number;
239
325
  };
240
-
241
326
  /**
242
327
  * Pure date helpers (no framework dependency), shared by every field that has to cross
243
328
  * the `Date` ↔ ISO-string boundary — `ui-datepicker`, which parses what the user types,
@@ -249,24 +334,24 @@ declare function autoFormatSegments(slots: MaskSlot[], data: string, { enforceBo
249
334
  * helpers a field is built on. Serializing a `Date` from its LOCAL components rather than
250
335
  * through `toISOString()` is the subtle part, and it must not be re-derived twice.
251
336
  */
252
- declare function startOfDay(d: Date): Date;
253
- declare function firstOfMonth(d: Date): Date;
254
- declare function isSameDay(a: Date | null | undefined, b: Date | null | undefined): boolean;
255
- declare function addDays(d: Date, n: number): Date;
256
- declare function addMonths(d: Date, n: number): Date;
337
+ export declare function startOfDay(d: Date): Date;
338
+ export declare function firstOfMonth(d: Date): Date;
339
+ export declare function isSameDay(a: Date | null | undefined, b: Date | null | undefined): boolean;
340
+ export declare function addDays(d: Date, n: number): Date;
341
+ export declare function addMonths(d: Date, n: number): Date;
257
342
  /** Build a Date and reject overflowed components (e.g. 31 Feb). */
258
- declare function finalizeParsed(year: number, month: number, day: number, h: number, min: number): Date | null;
343
+ export declare function finalizeParsed(year: number, month: number, day: number, h: number, min: number): Date | null;
259
344
  /** Serialize a `Date` to `"yyyy-MM-dd"` from its LOCAL components — never `toISOString()`
260
345
  * (which converts to UTC and can shift the day by ±1 depending on the timezone). */
261
- declare function toIsoDate(d: Date): string;
346
+ export declare function toIsoDate(d: Date): string;
262
347
  /** `"HH:mm"` — the shape a native `<input type="time">` reads and writes. */
263
- declare function toIsoTime(d: Date): string;
348
+ export declare function toIsoTime(d: Date): string;
264
349
  /** `"yyyy-MM-ddTHH:mm"` — date part built the same local, never-UTC way as {@link toIsoDate}. */
265
- declare function toIsoDateTime(d: Date): string;
350
+ export declare function toIsoDateTime(d: Date): string;
266
351
  /** Strict `"yyyy-MM-dd"` parser (rejects anything else, incl. overflowed dates via `finalizeParsed`). */
267
- declare function parseIsoDate(s: string): Date | null;
352
+ export declare function parseIsoDate(s: string): Date | null;
268
353
  /** Strict `"yyyy-MM-ddTHH:mm"` parser (`showTime`/`timeOnly` round-trip). */
269
- declare function parseIsoDateTime(s: string): Date | null;
354
+ export declare function parseIsoDateTime(s: string): Date | null;
270
355
  /**
271
356
  * Strict `"HH:mm"` parser, anchored on `reference` (default: today).
272
357
  *
@@ -274,12 +359,11 @@ declare function parseIsoDateTime(s: string): Date | null;
274
359
  * what `ui-datepicker` does in `timeOnly` mode — it too carries a full `Date` — so both
275
360
  * components hand back the same shape.
276
361
  */
277
- declare function parseIsoTime(s: string, reference?: Date): Date | null;
362
+ export declare function parseIsoTime(s: string, reference?: Date): Date | null;
278
363
  /** Accepts a `Date` as-is, or parses a `"yyyy-MM-dd"` string — used to let config inputs
279
364
  * (`minDate`/`maxDate`/`disabledDates`) take either shape. Invalid strings degrade to `null`
280
365
  * (no constraint) rather than throwing: a malformed config shouldn't crash the picker. */
281
- declare function normalizeDateInput(v: Date | string | null | undefined): Date | null;
282
-
366
+ export declare function normalizeDateInput(v: Date | string | null | undefined): Date | null;
283
367
  /**
284
368
  * Shared option-resolution helpers for list-based form fields
285
369
  * (`ui-select`, `ui-autocomplete`, `ui-input-tags`).
@@ -290,45 +374,43 @@ declare function normalizeDateInput(v: Date | string | null | undefined): Date |
290
374
  * stays reactive when bound to signal inputs.
291
375
  */
292
376
  /** Normalized option: resolved value/label/disabled + the original option. */
293
- interface OptionEntry {
294
- value: unknown;
295
- label: string;
296
- disabled: boolean;
297
- original: unknown;
377
+ export interface OptionEntry {
378
+ value: unknown;
379
+ label: string;
380
+ disabled: boolean;
381
+ original: unknown;
298
382
  }
299
383
  /** Field accessors (typically the component's signal inputs). */
300
- interface OptionResolverFields {
301
- optionValue: () => string | undefined;
302
- optionLabel: () => string | undefined;
303
- optionDisabled: () => string | undefined;
304
- dataKey: () => string | undefined;
384
+ export interface OptionResolverFields {
385
+ optionValue: () => string | undefined;
386
+ optionLabel: () => string | undefined;
387
+ optionDisabled: () => string | undefined;
388
+ dataKey: () => string | undefined;
305
389
  }
306
- interface OptionResolver {
307
- /** Normalizes an option into an {@link OptionEntry}. */
308
- toEntry(option: unknown): OptionEntry;
309
- /** Reads a (dot-path) field from an object (`undefined` otherwise). */
310
- getField(target: unknown, path: string | undefined): unknown;
311
- /** Model value of an option (`optionValue` field, or the option itself). */
312
- resolveValue(option: unknown): unknown;
313
- /** Display label of an option (`optionLabel` field, `label` key, or text). */
314
- resolveLabel(option: unknown): string | null;
315
- /** Disabled flag of an option (`optionDisabled` field, or `disabled` key). */
316
- resolveDisabled(option: unknown): boolean;
317
- /** `String(value)`, or `null` for null/undefined. */
318
- asText(value: unknown): string | null;
319
- /** Value equality — by `dataKey` for objects, strict otherwise. */
320
- equals(a: unknown, b: unknown): boolean;
390
+ export interface OptionResolver {
391
+ /** Normalizes an option into an {@link OptionEntry}. */
392
+ toEntry(option: unknown): OptionEntry;
393
+ /** Reads a (dot-path) field from an object (`undefined` otherwise). */
394
+ getField(target: unknown, path: string | undefined): unknown;
395
+ /** Model value of an option (`optionValue` field, or the option itself). */
396
+ resolveValue(option: unknown): unknown;
397
+ /** Display label of an option (`optionLabel` field, `label` key, or text). */
398
+ resolveLabel(option: unknown): string | null;
399
+ /** Disabled flag of an option (`optionDisabled` field, or `disabled` key). */
400
+ resolveDisabled(option: unknown): boolean;
401
+ /** `String(value)`, or `null` for null/undefined. */
402
+ asText(value: unknown): string | null;
403
+ /** Value equality — by `dataKey` for objects, strict otherwise. */
404
+ equals(a: unknown, b: unknown): boolean;
321
405
  }
322
- declare function createOptionResolver(fields: OptionResolverFields): OptionResolver;
323
-
406
+ export declare function createOptionResolver(fields: OptionResolverFields): OptionResolver;
324
407
  /**
325
- * Substitutes the `{0}` token of a (possibly user-overridden) label with a value.
326
- * Plain split/join — never interprets `$` sequences in `value` (unlike `String.replace`).
408
+ * Substitutes the `{0}`, `{1}`… tokens of a (possibly user-overridden) label with the values, in
409
+ * one pass: a value never gets its own tokens substituted, and its `$` sequences are never
410
+ * interpreted. A token without a matching value is left as is.
327
411
  */
328
- declare function formatLabel(template: string, value: string | number): string;
329
-
330
- declare function warnMissingAccessibleName(componentTag: string, message: string): void;
331
-
412
+ export declare function formatLabel(template: string, ...values: (string | number)[]): string;
413
+ export declare function warnMissingAccessibleName(componentTag: string, message: string): void;
332
414
  /**
333
415
  * Reports the events through which the browser may write a value into a native
334
416
  * `<input>`/`<textarea>` without an `input` event:
@@ -343,15 +425,14 @@ declare function warnMissingAccessibleName(componentTag: string, message: string
343
425
  * focus already reaches the host's own `(input)` handler: `hasFocus()` tells
344
426
  * it apart from a keystroke.
345
427
  */
346
- declare class UiBrowserFill {
347
- /** Emitted with the change/animation event that may reveal a fill. */
348
- readonly browserFill: _angular_core.OutputEmitterRef<Event>;
349
- protected onAnimationStart(event: AnimationEvent): void;
350
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBrowserFill, never>;
351
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiBrowserFill, "[uiBrowserFill]", never, {}, { "browserFill": "browserFill"; }, never, never, true, never>;
428
+ export declare class UiBrowserFill {
429
+ /** Emitted with the change/animation event that may reveal a fill. */
430
+ readonly browserFill: import("@angular/core").OutputEmitterRef<Event>;
431
+ protected onAnimationStart(event: AnimationEvent): void;
432
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiBrowserFill, never>;
433
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiBrowserFill, "[uiBrowserFill]", never, {}, {
434
+ "browserFill": "browserFill";
435
+ }, never, never, true, never>;
352
436
  }
353
437
  /** Whether `element` holds the focus (works inside a shadow root). */
354
- declare function hasFocus(element: Element): boolean;
355
-
356
- export { BaseControlValueAccessor, BaseFieldControl, BaseFormField, MASK_TOKENS, UiBrowserFill, acceptsMaskChar, addDays, addMonths, applyMaskTemplate, autoFormatSegments, buildMaskSlots, caretForMask, createOptionResolver, dropdownOverlayPositions, extractMaskData, finalizeParsed, firstOfMonth, formatLabel, hasFocus, isSameDay, normalizeDateInput, parseIsoDate, parseIsoDateTime, parseIsoTime, parseMaskRanges, startOfDay, toIsoDate, toIsoDateTime, toIsoTime, warnMissingAccessibleName };
357
- export type { FieldFloatLabel, FieldLevel, FieldSize, MaskBounds, MaskBuildResult, MaskSlot, OptionEntry, OptionResolver, OptionResolverFields };
438
+ export declare function hasFocus(element: Element): boolean;