@4sh/ui-kit 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.fr.md +18 -10
  2. package/README.md +18 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -953
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2039
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -130
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -246
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -291
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -194
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -131
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +723 -596
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +313 -2
  143. package/mcp/data/text-search-docs.json +177 -17
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/styles/utils/_mixins.scss +11 -0
  150. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  151. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  152. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  153. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  154. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  155. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  156. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
  157. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  158. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  159. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  160. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  161. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  162. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  163. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  164. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  165. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
  166. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
  167. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
  168. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  169. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
  170. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  171. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  172. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  173. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  174. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  175. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  176. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  177. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  178. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  179. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
  180. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  181. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  182. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  183. package/types/4sh-ui-kit-forms.d.ts +291 -186
  184. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  185. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  186. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  187. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  188. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  189. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  190. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  191. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  192. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  193. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  194. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  195. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  196. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  197. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  198. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  199. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  200. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  201. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  202. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  203. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  204. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  205. package/types/4sh-ui-kit-motion.d.ts +117 -67
  206. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  207. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  208. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  209. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  210. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  211. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  212. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  213. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  214. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  215. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  216. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  217. package/types/4sh-ui-kit-theming.d.ts +27 -29
  218. package/types/4sh-ui-kit-types.d.ts +6 -5
  219. package/types/4sh-ui-kit.d.ts +4 -3
  220. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,142 +1,398 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, computed, Component } from '@angular/core';
3
- import { UiLabel } from '@4sh/ui-kit/forms/ui-label';
4
- import { UiHelper } from '@4sh/ui-kit/informative/ui-helper';
5
-
6
- /**
7
- * ui-field — shared presentational shell for "box" fields.
8
- *
9
- * Renders: `ui-label` (top) + a bordered box (states/levels via `form.*` tokens)
10
- * + `ui-helper` (bottom). The field content is **projected**:
11
- * - `[uiFieldPrefix]`: element(s) before the input (left icon…),
12
- * - default: the native `<input>`/`<textarea>`,
13
- * - `[uiFieldSuffix]`: element(s) after (unit, action, spinner…).
14
- *
15
- * Purely visual (no `ControlValueAccessor`): the concrete components
16
- * (`ui-input`, `ui-input-number`, `ui-input-mask`) own the value and provide the
17
- * computed `id`/`level`/`message` (via `BaseFormField`).
18
- *
19
- * `floatLabel` switches the label into the box, where it plays the placeholder
20
- * role and rises on focus or once `filled` is set. The raised state is CSS-only
21
- * for focus (`:focus-within`) and autofill; the "has a value" half cannot be
22
- * expressed in CSS for every control (a `<button>` trigger has no `value`), so
23
- * the concrete component reports it through `filled`.
24
- */
25
- class UiField {
26
- constructor() {
27
- /** Label (rendered via `ui-label`). */
28
- this.label = input(/* @ts-ignore */
29
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
30
- /** Label `for` = id of the projected input. */
31
- this.for = input(/* @ts-ignore */
32
- ...(ngDevMode ? [undefined, { debugName: "for" }] : /* istanbul ignore next */ []));
33
- /** Required marker (*). */
34
- this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
35
- /** Size. */
36
- this.size = input('default', /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
38
- /** Effective level (drives the border + message color). */
39
- this.level = input('default', /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
41
- /** Floating label placement (`over` | `in` | `on`). Unset = classic label above the box. */
42
- this.floatLabel = input(/* @ts-ignore */
43
- ...(ngDevMode ? [undefined, { debugName: "floatLabel" }] : /* istanbul ignore next */ []));
44
- /** The control holds a value: keeps the floating label raised once focus leaves. */
45
- this.filled = input(false, { ...(ngDevMode ? { debugName: "filled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
46
- /** Disabled state (visual). */
47
- this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
48
- /** Read-only state (visual). */
49
- this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
50
- /** Multiline box (top-aligned, auto-height with min-height) — used by `ui-textarea`. */
51
- this.multiline = input(false, { ...(ngDevMode ? { debugName: "multiline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
- /**
53
- * Auto-height box (grows with wrapping content, keeps padding + centering) —
54
- * used by `ui-select` in `multiple` mode so chips/values can wrap.
55
- */
56
- this.autoHeight = input(false, { ...(ngDevMode ? { debugName: "autoHeight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
- /** Message under the field (helper or error, already resolved by the component). */
58
- this.message = input(/* @ts-ignore */
59
- ...(ngDevMode ? [undefined, { debugName: "message" }] : /* istanbul ignore next */ []));
60
- /** id of the message (for `aria-describedby`, set by the component on the input). */
61
- this.messageId = input(/* @ts-ignore */
62
- ...(ngDevMode ? [undefined, { debugName: "messageId" }] : /* istanbul ignore next */ []));
63
- /**
64
- * Prefixes the message with an icon (rendered by `ui-helper`, decorative).
65
- *
66
- * Off by default: a field states its status through the border and the text.
67
- * `messageIcon` only picks *which* glyph — it never turns the icon on.
68
- */
69
- this.showMessageIcon = input(false, { ...(ngDevMode ? { debugName: "showMessageIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
70
- /**
71
- * Overrides the glyph shown by `showMessageIcon`. Unset = the icon
72
- * `ui-helper` derives from the level (question / check / times).
73
- */
74
- this.messageIcon = input(/* @ts-ignore */
75
- ...(ngDevMode ? [undefined, { debugName: "messageIcon" }] : /* istanbul ignore next */ []));
76
- /** Renders the footer row even without a message (e.g. to host a `[uiFieldFooter]` counter). */
77
- this.hasFooter = input(false, { ...(ngDevMode ? { debugName: "hasFooter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
78
- /**
79
- * An affix is projected into `[uiFieldPrefix]` (left icon…). Only read in
80
- * `floatLabel` mode, to indent the floating label past it: the prefix is
81
- * projected content, so no scoped selector here can see it.
82
- */
83
- this.hasPrefix = input(false, { ...(ngDevMode ? { debugName: "hasPrefix" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
84
- /** @ignore The label is rendered inside the box, as a floating label. */
85
- this.isFloating = computed(() => !!this.floatLabel() && !!this.label(), /* @ts-ignore */
86
- ...(ngDevMode ? [{ debugName: "isFloating" }] : /* istanbul ignore next */ []));
87
- /** @ignore */
88
- this.classes = computed(() => {
89
- const c = ['ui-field', `_${this.level()}`];
90
- if (this.size() !== 'default')
91
- c.push(`_${this.size()}`);
92
- if (this.disabled())
93
- c.push('_disabled');
94
- if (this.readonly())
95
- c.push('_readonly');
96
- if (this.multiline())
97
- c.push('_multiline');
98
- if (this.autoHeight())
99
- c.push('_auto-height');
100
- if (this.isFloating()) {
101
- c.push('_float', `_float-${this.floatLabel()}`);
102
- if (this.filled())
103
- c.push('_filled');
104
- if (this.hasPrefix())
105
- c.push('_has-prefix');
106
- }
107
- return c.join(' ');
108
- }, /* @ts-ignore */
109
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
110
- }
111
- /** @ignore */
112
- onBoxMouseDown(event) {
113
- if (this.disabled() || this.readonly())
114
- return;
115
- const target = event.target;
116
- if (target.closest('button, a[href], input, textarea, select, [contenteditable="true"]'))
117
- return;
118
- const box = event.currentTarget;
119
- const control = box.querySelector('input, textarea, select');
120
- if (!control || control.matches(':disabled'))
121
- return;
122
- event.preventDefault();
123
- control.focus();
124
- }
125
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
126
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiField, isStandalone: true, selector: "ui-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, filled: { classPropertyName: "filled", publicName: "filled", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, multiline: { classPropertyName: "multiline", publicName: "multiline", isSignal: true, isRequired: false, transformFunction: null }, autoHeight: { classPropertyName: "autoHeight", publicName: "autoHeight", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, messageId: { classPropertyName: "messageId", publicName: "messageId", isSignal: true, isRequired: false, transformFunction: null }, showMessageIcon: { classPropertyName: "showMessageIcon", publicName: "showMessageIcon", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null }, hasFooter: { classPropertyName: "hasFooter", publicName: "hasFooter", isSignal: true, isRequired: false, transformFunction: null }, hasPrefix: { classPropertyName: "hasPrefix", publicName: "hasPrefix", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n", styles: [".ui-field{--_surface: var(--ui-field-surface, var(--form-high-surface-default));display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-high-stroke-focused));display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));overflow:clip;background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, var(--form-high-stroke-disabled));cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-high-content-focused))}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled))}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),transform var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"], dependencies: [{ kind: "component", type: UiLabel, selector: "ui-label", inputs: ["label", "required", "size", "for", "disabled"] }, { kind: "component", type: UiHelper, selector: "ui-helper", inputs: ["message", "level", "size", "showIcon", "icon", "ariaLive"] }] }); }
127
- }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiField, decorators: [{
129
- type: Component,
130
- args: [{ selector: 'ui-field', imports: [UiLabel, UiHelper], template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n", styles: [".ui-field{--_surface: var(--ui-field-surface, var(--form-high-surface-default));display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-high-stroke-focused));display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));overflow:clip;background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, var(--form-high-stroke-disabled));cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-high-content-focused))}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled))}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),transform var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"] }]
131
- }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], filled: [{ type: i0.Input, args: [{ isSignal: true, alias: "filled", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], multiline: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiline", required: false }] }], autoHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHeight", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], messageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageId", required: false }] }], showMessageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessageIcon", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], hasFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasFooter", required: false }] }], hasPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPrefix", required: false }] }] } });
132
-
133
- /*
134
- * Public API Surface of ui-kit/ui-field
135
- */
136
-
137
- /**
138
- * Generated bundle index. Do not edit.
139
- */
140
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, booleanAttribute, computed, input } from "@angular/core";
3
+ import { UiLabel } from "@4sh/ui-kit/forms/ui-label";
4
+ import { UiHelper } from "@4sh/ui-kit/informative/ui-helper";
5
+ var UiField = class UiField {
6
+ constructor() {
7
+ this.label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
8
+ this.for = input(...ngDevMode ? [void 0, { debugName: "for" }] : /* istanbul ignore next */ []);
9
+ this.required = input(false, {
10
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
11
+ transform: booleanAttribute
12
+ });
13
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
14
+ this.level = input("default", ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
15
+ this.floatLabel = input(...ngDevMode ? [void 0, { debugName: "floatLabel" }] : /* istanbul ignore next */ []);
16
+ this.filled = input(false, {
17
+ ...ngDevMode ? { debugName: "filled" } : /* istanbul ignore next */ {},
18
+ transform: booleanAttribute
19
+ });
20
+ this.disabled = input(false, {
21
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
22
+ transform: booleanAttribute
23
+ });
24
+ this.readonly = input(false, {
25
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
26
+ transform: booleanAttribute
27
+ });
28
+ this.multiline = input(false, {
29
+ ...ngDevMode ? { debugName: "multiline" } : /* istanbul ignore next */ {},
30
+ transform: booleanAttribute
31
+ });
32
+ this.autoHeight = input(false, {
33
+ ...ngDevMode ? { debugName: "autoHeight" } : /* istanbul ignore next */ {},
34
+ transform: booleanAttribute
35
+ });
36
+ this.message = input(...ngDevMode ? [void 0, { debugName: "message" }] : /* istanbul ignore next */ []);
37
+ this.messageId = input(...ngDevMode ? [void 0, { debugName: "messageId" }] : /* istanbul ignore next */ []);
38
+ this.showMessageIcon = input(false, {
39
+ ...ngDevMode ? { debugName: "showMessageIcon" } : /* istanbul ignore next */ {},
40
+ transform: booleanAttribute
41
+ });
42
+ this.messageIcon = input(...ngDevMode ? [void 0, { debugName: "messageIcon" }] : /* istanbul ignore next */ []);
43
+ this.hasFooter = input(false, {
44
+ ...ngDevMode ? { debugName: "hasFooter" } : /* istanbul ignore next */ {},
45
+ transform: booleanAttribute
46
+ });
47
+ this.hasPrefix = input(false, {
48
+ ...ngDevMode ? { debugName: "hasPrefix" } : /* istanbul ignore next */ {},
49
+ transform: booleanAttribute
50
+ });
51
+ this.isFloating = computed(() => !!this.floatLabel() && !!this.label(), ...ngDevMode ? [{ debugName: "isFloating" }] : /* istanbul ignore next */ []);
52
+ this.classes = computed(() => {
53
+ const c = ["ui-field", `_${this.level()}`];
54
+ if (this.size() !== "default") c.push(`_${this.size()}`);
55
+ if (this.disabled()) c.push("_disabled");
56
+ if (this.readonly()) c.push("_readonly");
57
+ if (this.multiline()) c.push("_multiline");
58
+ if (this.autoHeight()) c.push("_auto-height");
59
+ if (this.isFloating()) {
60
+ c.push("_float", `_float-${this.floatLabel()}`);
61
+ if (this.filled()) c.push("_filled");
62
+ if (this.hasPrefix()) c.push("_has-prefix");
63
+ }
64
+ return c.join(" ");
65
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
66
+ }
67
+ onBoxMouseDown(event) {
68
+ if (this.disabled() || this.readonly()) return;
69
+ if (event.target.closest("button, a[href], input, textarea, select, [contenteditable=\"true\"]")) return;
70
+ const control = event.currentTarget.querySelector("input, textarea, select");
71
+ if (!control || control.matches(":disabled")) return;
72
+ event.preventDefault();
73
+ control.focus();
74
+ }
75
+ static {
76
+ this.ɵfac = i0.ɵɵngDeclareFactory({
77
+ minVersion: "12.0.0",
78
+ version: "22.3.0",
79
+ ngImport: i0,
80
+ type: UiField,
81
+ deps: [],
82
+ target: i0.ɵɵFactoryTarget.Component
83
+ });
84
+ }
85
+ static {
86
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
87
+ minVersion: "17.0.0",
88
+ version: "22.3.0",
89
+ type: UiField,
90
+ isStandalone: true,
91
+ selector: "ui-field",
92
+ inputs: {
93
+ label: {
94
+ classPropertyName: "label",
95
+ publicName: "label",
96
+ isSignal: true,
97
+ isRequired: false,
98
+ transformFunction: null
99
+ },
100
+ for: {
101
+ classPropertyName: "for",
102
+ publicName: "for",
103
+ isSignal: true,
104
+ isRequired: false,
105
+ transformFunction: null
106
+ },
107
+ required: {
108
+ classPropertyName: "required",
109
+ publicName: "required",
110
+ isSignal: true,
111
+ isRequired: false,
112
+ transformFunction: null
113
+ },
114
+ size: {
115
+ classPropertyName: "size",
116
+ publicName: "size",
117
+ isSignal: true,
118
+ isRequired: false,
119
+ transformFunction: null
120
+ },
121
+ level: {
122
+ classPropertyName: "level",
123
+ publicName: "level",
124
+ isSignal: true,
125
+ isRequired: false,
126
+ transformFunction: null
127
+ },
128
+ floatLabel: {
129
+ classPropertyName: "floatLabel",
130
+ publicName: "floatLabel",
131
+ isSignal: true,
132
+ isRequired: false,
133
+ transformFunction: null
134
+ },
135
+ filled: {
136
+ classPropertyName: "filled",
137
+ publicName: "filled",
138
+ isSignal: true,
139
+ isRequired: false,
140
+ transformFunction: null
141
+ },
142
+ disabled: {
143
+ classPropertyName: "disabled",
144
+ publicName: "disabled",
145
+ isSignal: true,
146
+ isRequired: false,
147
+ transformFunction: null
148
+ },
149
+ readonly: {
150
+ classPropertyName: "readonly",
151
+ publicName: "readonly",
152
+ isSignal: true,
153
+ isRequired: false,
154
+ transformFunction: null
155
+ },
156
+ multiline: {
157
+ classPropertyName: "multiline",
158
+ publicName: "multiline",
159
+ isSignal: true,
160
+ isRequired: false,
161
+ transformFunction: null
162
+ },
163
+ autoHeight: {
164
+ classPropertyName: "autoHeight",
165
+ publicName: "autoHeight",
166
+ isSignal: true,
167
+ isRequired: false,
168
+ transformFunction: null
169
+ },
170
+ message: {
171
+ classPropertyName: "message",
172
+ publicName: "message",
173
+ isSignal: true,
174
+ isRequired: false,
175
+ transformFunction: null
176
+ },
177
+ messageId: {
178
+ classPropertyName: "messageId",
179
+ publicName: "messageId",
180
+ isSignal: true,
181
+ isRequired: false,
182
+ transformFunction: null
183
+ },
184
+ showMessageIcon: {
185
+ classPropertyName: "showMessageIcon",
186
+ publicName: "showMessageIcon",
187
+ isSignal: true,
188
+ isRequired: false,
189
+ transformFunction: null
190
+ },
191
+ messageIcon: {
192
+ classPropertyName: "messageIcon",
193
+ publicName: "messageIcon",
194
+ isSignal: true,
195
+ isRequired: false,
196
+ transformFunction: null
197
+ },
198
+ hasFooter: {
199
+ classPropertyName: "hasFooter",
200
+ publicName: "hasFooter",
201
+ isSignal: true,
202
+ isRequired: false,
203
+ transformFunction: null
204
+ },
205
+ hasPrefix: {
206
+ classPropertyName: "hasPrefix",
207
+ publicName: "hasPrefix",
208
+ isSignal: true,
209
+ isRequired: false,
210
+ transformFunction: null
211
+ }
212
+ },
213
+ ngImport: i0,
214
+ template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n",
215
+ styles: [".ui-field{--_surface: var(--ui-field-surface, var(--form-high-surface-default));display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-high-stroke-focused));display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));overflow:clip;background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, var(--form-high-stroke-disabled));cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-high-content-focused))}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled))}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),transform var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"],
216
+ dependencies: [{
217
+ kind: "component",
218
+ type: UiLabel,
219
+ selector: "ui-label",
220
+ inputs: [
221
+ "label",
222
+ "required",
223
+ "size",
224
+ "for",
225
+ "disabled"
226
+ ]
227
+ }, {
228
+ kind: "component",
229
+ type: UiHelper,
230
+ selector: "ui-helper",
231
+ inputs: [
232
+ "message",
233
+ "level",
234
+ "size",
235
+ "showIcon",
236
+ "icon",
237
+ "ariaLive"
238
+ ]
239
+ }]
240
+ });
241
+ }
242
+ };
243
+ i0.ɵɵngDeclareClassMetadata({
244
+ minVersion: "12.0.0",
245
+ version: "22.3.0",
246
+ ngImport: i0,
247
+ type: UiField,
248
+ decorators: [{
249
+ type: Component,
250
+ args: [{
251
+ selector: "ui-field",
252
+ imports: [UiLabel, UiHelper],
253
+ template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n",
254
+ styles: [".ui-field{--_surface: var(--ui-field-surface, var(--form-high-surface-default));display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-high-stroke-focused));display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));overflow:clip;background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, var(--form-high-stroke-disabled));cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-high-content-focused))}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled))}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),transform var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"]
255
+ }]
256
+ }],
257
+ propDecorators: {
258
+ label: [{
259
+ type: i0.Input,
260
+ args: [{
261
+ isSignal: true,
262
+ alias: "label",
263
+ required: false
264
+ }]
265
+ }],
266
+ for: [{
267
+ type: i0.Input,
268
+ args: [{
269
+ isSignal: true,
270
+ alias: "for",
271
+ required: false
272
+ }]
273
+ }],
274
+ required: [{
275
+ type: i0.Input,
276
+ args: [{
277
+ isSignal: true,
278
+ alias: "required",
279
+ required: false
280
+ }]
281
+ }],
282
+ size: [{
283
+ type: i0.Input,
284
+ args: [{
285
+ isSignal: true,
286
+ alias: "size",
287
+ required: false
288
+ }]
289
+ }],
290
+ level: [{
291
+ type: i0.Input,
292
+ args: [{
293
+ isSignal: true,
294
+ alias: "level",
295
+ required: false
296
+ }]
297
+ }],
298
+ floatLabel: [{
299
+ type: i0.Input,
300
+ args: [{
301
+ isSignal: true,
302
+ alias: "floatLabel",
303
+ required: false
304
+ }]
305
+ }],
306
+ filled: [{
307
+ type: i0.Input,
308
+ args: [{
309
+ isSignal: true,
310
+ alias: "filled",
311
+ required: false
312
+ }]
313
+ }],
314
+ disabled: [{
315
+ type: i0.Input,
316
+ args: [{
317
+ isSignal: true,
318
+ alias: "disabled",
319
+ required: false
320
+ }]
321
+ }],
322
+ readonly: [{
323
+ type: i0.Input,
324
+ args: [{
325
+ isSignal: true,
326
+ alias: "readonly",
327
+ required: false
328
+ }]
329
+ }],
330
+ multiline: [{
331
+ type: i0.Input,
332
+ args: [{
333
+ isSignal: true,
334
+ alias: "multiline",
335
+ required: false
336
+ }]
337
+ }],
338
+ autoHeight: [{
339
+ type: i0.Input,
340
+ args: [{
341
+ isSignal: true,
342
+ alias: "autoHeight",
343
+ required: false
344
+ }]
345
+ }],
346
+ message: [{
347
+ type: i0.Input,
348
+ args: [{
349
+ isSignal: true,
350
+ alias: "message",
351
+ required: false
352
+ }]
353
+ }],
354
+ messageId: [{
355
+ type: i0.Input,
356
+ args: [{
357
+ isSignal: true,
358
+ alias: "messageId",
359
+ required: false
360
+ }]
361
+ }],
362
+ showMessageIcon: [{
363
+ type: i0.Input,
364
+ args: [{
365
+ isSignal: true,
366
+ alias: "showMessageIcon",
367
+ required: false
368
+ }]
369
+ }],
370
+ messageIcon: [{
371
+ type: i0.Input,
372
+ args: [{
373
+ isSignal: true,
374
+ alias: "messageIcon",
375
+ required: false
376
+ }]
377
+ }],
378
+ hasFooter: [{
379
+ type: i0.Input,
380
+ args: [{
381
+ isSignal: true,
382
+ alias: "hasFooter",
383
+ required: false
384
+ }]
385
+ }],
386
+ hasPrefix: [{
387
+ type: i0.Input,
388
+ args: [{
389
+ isSignal: true,
390
+ alias: "hasPrefix",
391
+ required: false
392
+ }]
393
+ }]
394
+ }
395
+ });
141
396
  export { UiField };
142
- //# sourceMappingURL=4sh-ui-kit-forms-ui-field.mjs.map
397
+
398
+ //# sourceMappingURL=4sh-ui-kit-forms-ui-field.mjs.map