@4sh/ui-kit 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,18 +1,20 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef } from '@angular/core';
3
- import { BaseFormField } from '@4sh/ui-kit/forms';
4
- import { UiInputIconContext } from '@4sh/ui-kit/forms/ui-input';
5
- import { UiIconSize } from '@4sh/ui-kit/base/ui-icon';
6
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { TemplateRef } from "@angular/core";
6
+ import { BaseFormField } from "@4sh/ui-kit/forms";
7
+ import { UiInputIconContext } from "@4sh/ui-kit/forms/ui-input";
8
+ import { UiIconSize } from "@4sh/ui-kit/base/ui-icon";
7
9
  /** Granularity of the field — picks which native control the browser renders. */
8
- type InputDateMode = 'date' | 'time' | 'datetime';
10
+ export type InputDateMode = 'date' | 'time' | 'datetime';
9
11
  /**
10
12
  * Shape of the emitted value. **Identical to `ui-datepicker`'s**, so a host can swap one for
11
13
  * the other (native picker on mobile, overlay on desktop) without converting anything.
12
14
  */
13
- type InputDateValueType = 'date' | 'iso';
15
+ export type InputDateValueType = 'date' | 'iso';
14
16
  /** Value carried by the field, whichever `valueType` is in force. */
15
- type InputDateValue = Date | string | null;
17
+ export type InputDateValue = Date | string | null;
16
18
  /**
17
19
  * ui-input-date — **native** date/time field on the `ui-field` shell (label + box + helper).
18
20
  *
@@ -38,97 +40,144 @@ type InputDateValue = Date | string | null;
38
40
  *
39
41
  * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).
40
42
  */
41
- declare class UiInputDate extends BaseFormField<InputDateValue> {
42
- /** Granularity: a day, a time of day, or both. */
43
- mode: _angular_core.InputSignal<InputDateMode>;
44
- /**
45
- * Shape of the emitted value: `'date'` (a plain `Date`) or `'iso'` (`yyyy-MM-dd`, or
46
- * `yyyy-MM-ddTHH:mm` as soon as a time is part of it). Incoming values are accepted in
47
- * **either** shape whatever this says — only the emitted side commits.
48
- */
49
- valueType: _angular_core.InputSignal<InputDateValueType>;
50
- /** Earliest accepted value, as a `Date` or in the ISO shape of the current `mode`. */
51
- min: _angular_core.InputSignal<string | Date | undefined>;
52
- /** Latest accepted value, same two shapes as {@link min}. */
53
- max: _angular_core.InputSignal<string | Date | undefined>;
54
- /**
55
- * Native `step`: days on `date`, **seconds** on `time` / `datetime` (`900` = quarters of
56
- * an hour; the browser's own default is `60`, i.e. whole minutes).
57
- */
58
- step: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
59
- /** Icon of the button that opens the picker: `clock` by default in `mode="time"`. */
60
- icon: _angular_core.InputSignal<string | undefined>;
61
- /** Renders the button that opens the picker. */
62
- showIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
63
- /** Accessible name of the picker button. Defaults per {@link mode}. */
64
- iconAriaLabel: _angular_core.InputSignal<string | undefined>;
65
- /** Custom icon, as an input: same context as `ui-input`'s / `ui-datepicker`'s. */
66
- iconTemplate: _angular_core.InputSignal<TemplateRef<UiInputIconContext> | undefined>;
67
- /** Emitted when the browser commits a value — never mid-entry. */
68
- valueChange: _angular_core.OutputEmitterRef<InputDateValue>;
69
- /** Emitted when the field receives focus. */
70
- inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
71
- /** Emitted when the field loses focus. */
72
- inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
73
- /** Custom icon: `<ng-template #icon let-name let-size="size">`. */
74
- private readonly iconTemplateContent;
75
- /** @ignore */
76
- private readonly inputEl;
77
- /** @ignore Icon size aligned with the field size, same pairing as `ui-input`. */
78
- protected readonly iconSize: _angular_core.Signal<UiIconSize>;
79
- /** @ignore Calendar, or clock when the field only carries a time. */
80
- protected readonly resolvedIcon: _angular_core.Signal<string>;
81
- /** @ignore */
82
- protected readonly resolvedIconAriaLabel: _angular_core.Signal<string>;
83
- /** @ignore Input wins over the projected `#icon` template. */
84
- protected readonly resolvedIconTemplate: _angular_core.Signal<TemplateRef<UiInputIconContext> | undefined>;
85
- /** @ignore */
86
- protected readonly iconContext: _angular_core.Signal<UiInputIconContext>;
87
- /** @ignore The native `type` the OS picker hangs off. */
88
- protected readonly nativeType: _angular_core.Signal<string>;
89
- /** @ignore Whether the value carries a time — decides both serializers. */
90
- private readonly hasTimeComponent;
91
- /** @ignore Model → the string the native control reads, `''` when there is no value. */
92
- protected readonly nativeValue: _angular_core.Signal<string>;
93
- /** @ignore Bounds go through the same serializer as the value: a caller may hand a `Date`
94
- * or an already-native string, the attribute only ever sees the latter. */
95
- protected readonly nativeMin: _angular_core.Signal<string | null>;
96
- /** @ignore */
97
- protected readonly nativeMax: _angular_core.Signal<string | null>;
98
- /** @ignore Full `aria-describedby`: the message id, only when a message is rendered. */
99
- protected readonly resolvedAriaDescribedBy: _angular_core.Signal<string | null>;
100
- /** Focuses the field. */
101
- focus(options?: FocusOptions): void;
102
- openPicker(): void;
103
- /** Native `<input>` element, for a composite host that needs direct DOM access. */
104
- nativeInputElement(): HTMLInputElement;
105
- /** @ignore */
106
- protected uidPrefix(): string;
107
- /**
108
- * @ignore The browser committed a value — a complete one, or an empty one because the
109
- * field was cleared. This is the only place a value leaves the component: `input` fires
110
- * on every keystroke with the blanks in between, and is deliberately not listened to.
111
- */
112
- protected onNativeChange(): void;
113
- /** @ignore */
114
- protected onBlur(event: FocusEvent): void;
115
- /** @ignore Internal `Date` → the shape `valueType` commits to. Mirrors `ui-datepicker`'s
116
- * own `serializeValue`, down to the fresh instance: the caller never gets a reference it
117
- * could mutate behind our back. */
118
- private serializeValue;
119
- /** @ignore Incoming value, `Date` or ISO string, auto-detected — cloned when already a
120
- * `Date`, symmetric with {@link serializeValue}. */
121
- private parseValue;
122
- /** @ignore `Date` → the exact string the native control of this `mode` accepts. */
123
- private toNative;
124
- /** @ignore The reverse. `null` on anything malformed — a bad value degrades to "no value"
125
- * rather than throwing, the browser being the one that produced it. */
126
- private fromNative;
127
- /** @ignore A bound is optional, and a string one is already native. */
128
- private toNativeBound;
129
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputDate, never>;
130
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputDate, "ui-input-date", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "valueType": { "alias": "valueType"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconAriaLabel": { "alias": "iconAriaLabel"; "required": false; "isSignal": true; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["iconTemplateContent"], never, true, never>;
131
- }
132
-
133
- export { UiInputDate };
134
- export type { InputDateMode, InputDateValue, InputDateValueType };
43
+ export declare class UiInputDate extends BaseFormField<InputDateValue> {
44
+ /** Granularity: a day, a time of day, or both. */
45
+ mode: import("@angular/core").InputSignal<InputDateMode>;
46
+ /**
47
+ * Shape of the emitted value: `'date'` (a plain `Date`) or `'iso'` (`yyyy-MM-dd`, or
48
+ * `yyyy-MM-ddTHH:mm` as soon as a time is part of it). Incoming values are accepted in
49
+ * **either** shape whatever this says — only the emitted side commits.
50
+ */
51
+ valueType: import("@angular/core").InputSignal<InputDateValueType>;
52
+ /** Earliest accepted value, as a `Date` or in the ISO shape of the current `mode`. */
53
+ min: import("@angular/core").InputSignal<string | Date | undefined>;
54
+ /** Latest accepted value, same two shapes as {@link min}. */
55
+ max: import("@angular/core").InputSignal<string | Date | undefined>;
56
+ /**
57
+ * Native `step`: days on `date`, **seconds** on `time` / `datetime` (`900` = quarters of
58
+ * an hour; the browser's own default is `60`, i.e. whole minutes).
59
+ */
60
+ step: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
61
+ /** Icon of the button that opens the picker: `clock` by default in `mode="time"`. */
62
+ icon: import("@angular/core").InputSignal<string | undefined>;
63
+ /** Renders the button that opens the picker. */
64
+ showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
65
+ /** Accessible name of the picker button. Defaults per {@link mode}. */
66
+ iconAriaLabel: import("@angular/core").InputSignal<string | undefined>;
67
+ /** Custom icon, as an input: same context as `ui-input`'s / `ui-datepicker`'s. */
68
+ iconTemplate: import("@angular/core").InputSignal<TemplateRef<UiInputIconContext> | undefined>;
69
+ /** Emitted when the browser commits a value — never mid-entry. */
70
+ valueChange: import("@angular/core").OutputEmitterRef<InputDateValue>;
71
+ /** Emitted when the field receives focus. */
72
+ inputFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
73
+ /** Emitted when the field loses focus. */
74
+ inputBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
75
+ /** Custom icon: `<ng-template #icon let-name let-size="size">`. */
76
+ private readonly iconTemplateContent;
77
+ /** @ignore */
78
+ private readonly inputEl;
79
+ /** @ignore Icon size aligned with the field size, same pairing as `ui-input`. */
80
+ protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
81
+ /** @ignore Calendar, or clock when the field only carries a time. */
82
+ protected readonly resolvedIcon: import("@angular/core").Signal<string>;
83
+ /** @ignore */
84
+ protected readonly resolvedIconAriaLabel: import("@angular/core").Signal<string>;
85
+ /** @ignore Input wins over the projected `#icon` template. */
86
+ protected readonly resolvedIconTemplate: import("@angular/core").Signal<TemplateRef<UiInputIconContext> | undefined>;
87
+ /** @ignore */
88
+ protected readonly iconContext: import("@angular/core").Signal<UiInputIconContext>;
89
+ /** @ignore The native `type` the OS picker hangs off. */
90
+ protected readonly nativeType: import("@angular/core").Signal<string>;
91
+ /** @ignore Whether the value carries a time — decides both serializers. */
92
+ private readonly hasTimeComponent;
93
+ /** @ignore Model → the string the native control reads, `''` when there is no value. */
94
+ protected readonly nativeValue: import("@angular/core").Signal<string>;
95
+ /** @ignore Bounds go through the same serializer as the value: a caller may hand a `Date`
96
+ * or an already-native string, the attribute only ever sees the latter. */
97
+ protected readonly nativeMin: import("@angular/core").Signal<string | null>;
98
+ /** @ignore */
99
+ protected readonly nativeMax: import("@angular/core").Signal<string | null>;
100
+ /** @ignore Full `aria-describedby`: the message id, only when a message is rendered. */
101
+ protected readonly resolvedAriaDescribedBy: import("@angular/core").Signal<string | null>;
102
+ /** Focuses the field. */
103
+ focus(options?: FocusOptions): void;
104
+ openPicker(): void;
105
+ /** Native `<input>` element, for a composite host that needs direct DOM access. */
106
+ nativeInputElement(): HTMLInputElement;
107
+ /** @ignore */
108
+ protected uidPrefix(): string;
109
+ /**
110
+ * @ignore The browser committed a value — a complete one, or an empty one because the
111
+ * field was cleared. This is the only place a value leaves the component: `input` fires
112
+ * on every keystroke with the blanks in between, and is deliberately not listened to.
113
+ */
114
+ protected onNativeChange(): void;
115
+ /** @ignore */
116
+ protected onBlur(event: FocusEvent): void;
117
+ /** @ignore Internal `Date` → the shape `valueType` commits to. Mirrors `ui-datepicker`'s
118
+ * own `serializeValue`, down to the fresh instance: the caller never gets a reference it
119
+ * could mutate behind our back. */
120
+ private serializeValue;
121
+ /** @ignore Incoming value, `Date` or ISO string, auto-detected — cloned when already a
122
+ * `Date`, symmetric with {@link serializeValue}. */
123
+ private parseValue;
124
+ /** @ignore `Date` → the exact string the native control of this `mode` accepts. */
125
+ private toNative;
126
+ /** @ignore The reverse. `null` on anything malformed — a bad value degrades to "no value"
127
+ * rather than throwing, the browser being the one that produced it. */
128
+ private fromNative;
129
+ /** @ignore A bound is optional, and a string one is already native. */
130
+ private toNativeBound;
131
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiInputDate, never>;
132
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiInputDate, "ui-input-date", never, {
133
+ "mode": {
134
+ "alias": "mode";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "valueType": {
139
+ "alias": "valueType";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ "min": {
144
+ "alias": "min";
145
+ "required": false;
146
+ "isSignal": true;
147
+ };
148
+ "max": {
149
+ "alias": "max";
150
+ "required": false;
151
+ "isSignal": true;
152
+ };
153
+ "step": {
154
+ "alias": "step";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "icon": {
159
+ "alias": "icon";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ "showIcon": {
164
+ "alias": "showIcon";
165
+ "required": false;
166
+ "isSignal": true;
167
+ };
168
+ "iconAriaLabel": {
169
+ "alias": "iconAriaLabel";
170
+ "required": false;
171
+ "isSignal": true;
172
+ };
173
+ "iconTemplate": {
174
+ "alias": "iconTemplate";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
178
+ }, {
179
+ "valueChange": "valueChange";
180
+ "inputFocus": "inputFocus";
181
+ "inputBlur": "inputBlur";
182
+ }, ["iconTemplateContent"], never, true, never>;
183
+ }
@@ -1,6 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { FieldSize, FieldLevel } from '@4sh/ui-kit/forms';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { FieldLevel, FieldSize } from "@4sh/ui-kit/forms";
5
+ import * as i0 from "@angular/core";
4
6
  /**
5
7
  * ui-input-group-addon — non-interactive cell of a `ui-input-group`
6
8
  * (text, icon, checkbox, radio…).
@@ -8,17 +10,22 @@ import { FieldSize, FieldLevel } from '@4sh/ui-kit/forms';
8
10
  * Projects its content in a box aligned on the field height. `size` falls back
9
11
  * to the parent group's when it is not set.
10
12
  */
11
- declare class UiInputGroupAddon {
12
- /** Size (defaults to the parent `ui-input-group` size). */
13
- size: _angular_core.InputSignal<FieldSize | undefined>;
14
- /** @ignore */
15
- private readonly group;
16
- /** @ignore */
17
- protected readonly classes: _angular_core.Signal<string>;
18
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputGroupAddon, never>;
19
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputGroupAddon, "ui-input-group-addon", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
13
+ export declare class UiInputGroupAddon {
14
+ /** Size (defaults to the parent `ui-input-group` size). */
15
+ size: import("@angular/core").InputSignal<FieldSize | undefined>;
16
+ /** @ignore */
17
+ private readonly group;
18
+ /** @ignore */
19
+ protected readonly classes: import("@angular/core").Signal<string>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiInputGroupAddon, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiInputGroupAddon, "ui-input-group-addon", never, {
22
+ "size": {
23
+ "alias": "size";
24
+ "required": false;
25
+ "isSignal": true;
26
+ };
27
+ }, {}, never, ["*"], true, never>;
20
28
  }
21
-
22
29
  /**
23
30
  * ui-input-group — glues a control and its add-ons into a single visual field.
24
31
  *
@@ -34,53 +41,92 @@ declare class UiInputGroupAddon {
34
41
  * `role="group"`. `level` also tints the projected borders: the validity of a
35
42
  * composite value belongs to the group. `merged` draws one box around the row.
36
43
  */
37
- declare class UiInputGroup {
38
- /** Size shared with the label and the projected `ui-input-group-addon` (controls keep their own `size`). */
39
- size: _angular_core.InputSignal<FieldSize>;
40
- /** Label above the group (rendered via `ui-label`). Names the group, not its controls. */
41
- label: _angular_core.InputSignal<string | undefined>;
42
- /** Required marker (*) on the label. Visual only: the mandatory controls carry `required` themselves. */
43
- required: _angular_core.InputSignalWithTransform<boolean, unknown>;
44
- /** Message under the group (helper or error, rendered via `ui-helper`). */
45
- message: _angular_core.InputSignal<string | undefined>;
46
- /**
47
- * Validation status: tints the message and the borders of the projected
48
- * fields and add-ons. Prevails over a control's own level when set.
49
- */
50
- level: _angular_core.InputSignal<FieldLevel>;
51
- /** Prefixes the message with a decorative icon (off by default). */
52
- showMessageIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
53
- /** Overrides the glyph shown by `showMessageIcon`. Unset = the icon derived from the level. */
54
- messageIcon: _angular_core.InputSignal<string | undefined>;
55
- /** One box around the whole row: no border nor gap between the items, a single focus ring. */
56
- merged: _angular_core.InputSignalWithTransform<boolean, unknown>;
57
- /** @ignore */
58
- private readonly destroyRef;
59
- /** @ignore */
60
- private readonly row;
61
- /** @ignore */
62
- protected readonly uid: string;
63
- /** @ignore */
64
- protected readonly labelId: string;
65
- /** @ignore */
66
- protected readonly messageId: string;
67
- /** @ignore Without label nor message the group stays a plain layout wrapper, with no role. */
68
- protected readonly isField: _angular_core.Signal<boolean>;
69
- /** @ignore */
70
- protected readonly classes: _angular_core.Signal<string>;
71
- constructor();
72
- /** @ignore Direct items of the row. */
73
- private items;
74
- /** @ignore Only the edges keep a rounded corner, and shared borders overlap instead of doubling. */
75
- private shape;
76
- /** @ignore */
77
- private setInset;
78
- /** @ignore Raises the focused item so its focus ring is not covered by the overlap. */
79
- protected onFocusIn(event: FocusEvent): void;
80
- /** @ignore */
81
- protected onFocusOut(): void;
82
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputGroup, never>;
83
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputGroup, "ui-input-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "showMessageIcon": { "alias": "showMessageIcon"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; "merged": { "alias": "merged"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
84
- }
85
-
86
- export { UiInputGroup, UiInputGroupAddon };
44
+ export declare class UiInputGroup {
45
+ /** Size shared with the label and the projected `ui-input-group-addon` (controls keep their own `size`). */
46
+ size: import("@angular/core").InputSignal<FieldSize>;
47
+ /** Label above the group (rendered via `ui-label`). Names the group, not its controls. */
48
+ label: import("@angular/core").InputSignal<string | undefined>;
49
+ /** Required marker (*) on the label. Visual only: the mandatory controls carry `required` themselves. */
50
+ required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
51
+ /** Message under the group (helper or error, rendered via `ui-helper`). */
52
+ message: import("@angular/core").InputSignal<string | undefined>;
53
+ /**
54
+ * Validation status: tints the message and the borders of the projected
55
+ * fields and add-ons. Prevails over a control's own level when set.
56
+ */
57
+ level: import("@angular/core").InputSignal<FieldLevel>;
58
+ /** Prefixes the message with a decorative icon (off by default). */
59
+ showMessageIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
60
+ /** Overrides the glyph shown by `showMessageIcon`. Unset = the icon derived from the level. */
61
+ messageIcon: import("@angular/core").InputSignal<string | undefined>;
62
+ /** One box around the whole row: no border nor gap between the items, a single focus ring. */
63
+ merged: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
64
+ /** @ignore */
65
+ private readonly destroyRef;
66
+ /** @ignore */
67
+ private readonly row;
68
+ /** @ignore */
69
+ protected readonly uid: string;
70
+ /** @ignore */
71
+ protected readonly labelId: string;
72
+ /** @ignore */
73
+ protected readonly messageId: string;
74
+ /** @ignore Without label nor message the group stays a plain layout wrapper, with no role. */
75
+ protected readonly isField: import("@angular/core").Signal<boolean>;
76
+ /** @ignore */
77
+ protected readonly classes: import("@angular/core").Signal<string>;
78
+ constructor();
79
+ /** @ignore Direct items of the row. */
80
+ private items;
81
+ /** @ignore Only the edges keep a rounded corner, and shared borders overlap instead of doubling. */
82
+ private shape;
83
+ /** @ignore */
84
+ private setInset;
85
+ /** @ignore Raises the focused item so its focus ring is not covered by the overlap. */
86
+ protected onFocusIn(event: FocusEvent): void;
87
+ /** @ignore */
88
+ protected onFocusOut(): void;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiInputGroup, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiInputGroup, "ui-input-group", never, {
91
+ "size": {
92
+ "alias": "size";
93
+ "required": false;
94
+ "isSignal": true;
95
+ };
96
+ "label": {
97
+ "alias": "label";
98
+ "required": false;
99
+ "isSignal": true;
100
+ };
101
+ "required": {
102
+ "alias": "required";
103
+ "required": false;
104
+ "isSignal": true;
105
+ };
106
+ "message": {
107
+ "alias": "message";
108
+ "required": false;
109
+ "isSignal": true;
110
+ };
111
+ "level": {
112
+ "alias": "level";
113
+ "required": false;
114
+ "isSignal": true;
115
+ };
116
+ "showMessageIcon": {
117
+ "alias": "showMessageIcon";
118
+ "required": false;
119
+ "isSignal": true;
120
+ };
121
+ "messageIcon": {
122
+ "alias": "messageIcon";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "merged": {
127
+ "alias": "merged";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ }, {}, never, ["*"], true, never>;
132
+ }
@@ -1,7 +1,9 @@
1
- import * as _angular_core from '@angular/core';
2
- import { BaseFormField } from '@4sh/ui-kit/forms';
3
- import { UiIconSize } from '@4sh/ui-kit/base/ui-icon';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { BaseFormField } from "@4sh/ui-kit/forms";
5
+ import { UiIconSize } from "@4sh/ui-kit/base/ui-icon";
6
+ import * as i0 from "@angular/core";
5
7
  /**
6
8
  * ui-input-mask — headless masked field (`ui-field` shell).
7
9
  *
@@ -12,58 +14,90 @@ import { UiIconSize } from '@4sh/ui-kit/base/ui-icon';
12
14
  * Model value = string: masked (`12/09/2024`) by default, or raw (`12092024`)
13
15
  * when `unmask`. Standalone, `[(ngModel)]` or reactive forms.
14
16
  */
15
- declare class UiInputMask extends BaseFormField<string> {
16
- /** Mask template (9 digit · a letter · * alphanumeric · other = literal). */
17
- mask: _angular_core.InputSignal<string>;
18
- /**
19
- * Inclusive bounds of each numeric segment (run of consecutive `9` tokens),
20
- * in mask order and space-separated: `"0-23 0-59"` for `99:99`,
21
- * `"1-31 1-12 1900-2100"` for `99/99/9999`. `*` leaves a segment unbounded.
22
- * A character that could not lead to an in-range segment is rejected.
23
- */
24
- ranges: _angular_core.InputSignal<string>;
25
- /** Fill character for empty positions. */
26
- slotChar: _angular_core.InputSignal<string>;
27
- /** Emit the raw value (without literals) instead of the masked value. */
28
- unmask: _angular_core.InputSignalWithTransform<boolean, unknown>;
29
- /** Native placeholder (shown when the field is empty). */
30
- placeholder: _angular_core.InputSignal<string | undefined>;
31
- /** Left FontAwesome icon name (decorative). */
32
- iconLeft: _angular_core.InputSignal<string | undefined>;
33
- /** Emitted on each value change. */
34
- valueChange: _angular_core.OutputEmitterRef<string>;
35
- /** Emitted when the input loses focus. */
36
- inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
37
- /** @ignore */
38
- private readonly inputEl;
39
- /** @ignore Masked displayed text. */
40
- protected readonly text: _angular_core.WritableSignal<string>;
41
- /** @ignore Keeps a floating label raised once focus leaves. */
42
- protected readonly isFilled: _angular_core.Signal<boolean>;
43
- /** @ignore At rest the floating label already holds that spot. */
44
- protected readonly effectivePlaceholder: _angular_core.Signal<string>;
45
- /** @ignore */
46
- protected readonly iconSize: _angular_core.Signal<UiIconSize>;
47
- /** @ignore Bounds declared by `ranges`, one entry per numeric segment (`null` = unbounded). */
48
- private readonly parsedRanges;
49
- /**
50
- * @ignore The mask resolved once per template: literals, input slots, and the
51
- * `ranges` bounds attached to every slot of the numeric segment it belongs to.
52
- */
53
- private readonly slots;
54
- writeValue(value: string | null): void;
55
- /** Focuses the input. */
56
- focus(options?: FocusOptions): void;
57
- /** @ignore Input: apply the mask, update model + display + caret. */
58
- protected onInput(): void;
59
- /** @ignore Value written by the browser without an `input` event. */
60
- protected onBrowserFill(): void;
61
- /** @ignore */
62
- protected onBlur(event: FocusEvent): void;
63
- /** @ignore Emitted value depending on `unmask`. */
64
- private emitValue;
65
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputMask, never>;
66
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputMask, "ui-input-mask", never, { "mask": { "alias": "mask"; "required": true; "isSignal": true; }; "ranges": { "alias": "ranges"; "required": false; "isSignal": true; }; "slotChar": { "alias": "slotChar"; "required": false; "isSignal": true; }; "unmask": { "alias": "unmask"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "iconLeft": { "alias": "iconLeft"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "inputBlur": "inputBlur"; }, never, never, true, never>;
67
- }
68
-
69
- export { UiInputMask };
17
+ export declare class UiInputMask extends BaseFormField<string> {
18
+ /** Mask template (9 digit · a letter · * alphanumeric · other = literal). */
19
+ mask: import("@angular/core").InputSignal<string>;
20
+ /**
21
+ * Inclusive bounds of each numeric segment (run of consecutive `9` tokens),
22
+ * in mask order and space-separated: `"0-23 0-59"` for `99:99`,
23
+ * `"1-31 1-12 1900-2100"` for `99/99/9999`. `*` leaves a segment unbounded.
24
+ * A character that could not lead to an in-range segment is rejected.
25
+ */
26
+ ranges: import("@angular/core").InputSignal<string>;
27
+ /** Fill character for empty positions. */
28
+ slotChar: import("@angular/core").InputSignal<string>;
29
+ /** Emit the raw value (without literals) instead of the masked value. */
30
+ unmask: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
31
+ /** Native placeholder (shown when the field is empty). */
32
+ placeholder: import("@angular/core").InputSignal<string | undefined>;
33
+ /** Left FontAwesome icon name (decorative). */
34
+ iconLeft: import("@angular/core").InputSignal<string | undefined>;
35
+ /** Emitted on each value change. */
36
+ valueChange: import("@angular/core").OutputEmitterRef<string>;
37
+ /** Emitted when the input loses focus. */
38
+ inputBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
39
+ /** @ignore */
40
+ private readonly inputEl;
41
+ /** @ignore Masked displayed text. */
42
+ protected readonly text: import("@angular/core").WritableSignal<string>;
43
+ /** @ignore Keeps a floating label raised once focus leaves. */
44
+ protected readonly isFilled: import("@angular/core").Signal<boolean>;
45
+ /** @ignore At rest the floating label already holds that spot. */
46
+ protected readonly effectivePlaceholder: import("@angular/core").Signal<string>;
47
+ /** @ignore */
48
+ protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
49
+ /** @ignore Bounds declared by `ranges`, one entry per numeric segment (`null` = unbounded). */
50
+ private readonly parsedRanges;
51
+ /**
52
+ * @ignore The mask resolved once per template: literals, input slots, and the
53
+ * `ranges` bounds attached to every slot of the numeric segment it belongs to.
54
+ */
55
+ private readonly slots;
56
+ writeValue(value: string | null): void;
57
+ /** Focuses the input. */
58
+ focus(options?: FocusOptions): void;
59
+ /** @ignore Input: apply the mask, update model + display + caret. */
60
+ protected onInput(): void;
61
+ /** @ignore Value written by the browser without an `input` event. */
62
+ protected onBrowserFill(): void;
63
+ /** @ignore */
64
+ protected onBlur(event: FocusEvent): void;
65
+ /** @ignore Emitted value depending on `unmask`. */
66
+ private emitValue;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiInputMask, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiInputMask, "ui-input-mask", never, {
69
+ "mask": {
70
+ "alias": "mask";
71
+ "required": true;
72
+ "isSignal": true;
73
+ };
74
+ "ranges": {
75
+ "alias": "ranges";
76
+ "required": false;
77
+ "isSignal": true;
78
+ };
79
+ "slotChar": {
80
+ "alias": "slotChar";
81
+ "required": false;
82
+ "isSignal": true;
83
+ };
84
+ "unmask": {
85
+ "alias": "unmask";
86
+ "required": false;
87
+ "isSignal": true;
88
+ };
89
+ "placeholder": {
90
+ "alias": "placeholder";
91
+ "required": false;
92
+ "isSignal": true;
93
+ };
94
+ "iconLeft": {
95
+ "alias": "iconLeft";
96
+ "required": false;
97
+ "isSignal": true;
98
+ };
99
+ }, {
100
+ "valueChange": "valueChange";
101
+ "inputBlur": "inputBlur";
102
+ }, never, never, true, never>;
103
+ }