@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,8 +1,10 @@
1
- import * as _angular_core from '@angular/core';
2
- import { BaseFormField } from '@4sh/ui-kit/forms';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { BaseFormField } from "@4sh/ui-kit/forms";
5
+ import * as i0 from "@angular/core";
4
6
  /** Which axes the user can manually resize (ignored when `autoResize` is on). */
5
- type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
7
+ export type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
6
8
  /**
7
9
  * ui-textarea — headless multiline text field, built on the `ui-field` shell
8
10
  * (label + box + helper) in **multiline** mode + a native `<textarea>`.
@@ -13,53 +15,87 @@ type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
13
15
  *
14
16
  * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).
15
17
  */
16
- declare class UiTextarea extends BaseFormField<string> {
17
- /** Native placeholder. */
18
- placeholder: _angular_core.InputSignal<string | undefined>;
19
- /** Initial number of visible text rows. */
20
- rows: _angular_core.InputSignal<number>;
21
- /** Native maxlength (caps the character count). */
22
- maxlength: _angular_core.InputSignal<number | undefined>;
23
- /** Grows the box height with the content (disables the manual resize grip). */
24
- autoResize: _angular_core.InputSignalWithTransform<boolean, unknown>;
25
- /** Manual resize axis (`vertical` by default; ignored when `autoResize`). */
26
- resize: _angular_core.InputSignal<TextareaResize>;
27
- /** Shows a character counter under the field (`count` or `count / maxlength`). */
28
- showCount: _angular_core.InputSignalWithTransform<boolean, unknown>;
29
- /** Emitted on each input with the new value. */
30
- valueChange: _angular_core.OutputEmitterRef<string>;
31
- /** Emitted when the textarea receives focus. */
32
- textareaFocus: _angular_core.OutputEmitterRef<FocusEvent>;
33
- /** Emitted when the textarea loses focus. */
34
- textareaBlur: _angular_core.OutputEmitterRef<FocusEvent>;
35
- /** @ignore */
36
- private readonly textareaEl;
37
- /** @ignore Effective resize axis (`none` while auto-resizing). */
38
- protected readonly effectiveResize: _angular_core.Signal<TextareaResize>;
39
- /** @ignore Current character count. */
40
- protected readonly charCount: _angular_core.Signal<number>;
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 Over the maxlength (only reachable programmatically). */
46
- protected readonly overLimit: _angular_core.Signal<boolean>;
47
- /** @ignore id of the character counter (for `aria-describedby`). */
48
- protected readonly countId: _angular_core.Signal<string>;
49
- /** @ignore `aria-describedby` combines the message and the counter, whichever are shown. */
50
- protected readonly describedByIds: _angular_core.Signal<string | null>;
51
- constructor();
52
- /** Focuses the textarea. */
53
- focus(options?: FocusOptions): void;
54
- /** @ignore Input: single source of the value (view → form). */
55
- protected onInput(): void;
56
- /** @ignore */
57
- protected onBlur(event: FocusEvent): void;
58
- /** @ignore Recomputes the height to fit the content. */
59
- private resizeToContent;
60
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiTextarea, never>;
61
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiTextarea, "ui-textarea", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "autoResize": { "alias": "autoResize"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "showCount": { "alias": "showCount"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "textareaFocus": "textareaFocus"; "textareaBlur": "textareaBlur"; }, never, never, true, never>;
62
- }
63
-
64
- export { UiTextarea };
65
- export type { TextareaResize };
18
+ export declare class UiTextarea extends BaseFormField<string> {
19
+ /** Native placeholder. */
20
+ placeholder: import("@angular/core").InputSignal<string | undefined>;
21
+ /** Initial number of visible text rows. */
22
+ rows: import("@angular/core").InputSignal<number>;
23
+ /** Native maxlength (caps the character count). */
24
+ maxlength: import("@angular/core").InputSignal<number | undefined>;
25
+ /** Grows the box height with the content (disables the manual resize grip). */
26
+ autoResize: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
27
+ /** Manual resize axis (`vertical` by default; ignored when `autoResize`). */
28
+ resize: import("@angular/core").InputSignal<TextareaResize>;
29
+ /** Shows a character counter under the field (`count` or `count / maxlength`). */
30
+ showCount: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
31
+ /** Emitted on each input with the new value. */
32
+ valueChange: import("@angular/core").OutputEmitterRef<string>;
33
+ /** Emitted when the textarea receives focus. */
34
+ textareaFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
35
+ /** Emitted when the textarea loses focus. */
36
+ textareaBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
37
+ /** @ignore */
38
+ private readonly textareaEl;
39
+ /** @ignore Effective resize axis (`none` while auto-resizing). */
40
+ protected readonly effectiveResize: import("@angular/core").Signal<TextareaResize>;
41
+ /** @ignore Current character count. */
42
+ protected readonly charCount: import("@angular/core").Signal<number>;
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 Over the maxlength (only reachable programmatically). */
48
+ protected readonly overLimit: import("@angular/core").Signal<boolean>;
49
+ /** @ignore id of the character counter (for `aria-describedby`). */
50
+ protected readonly countId: import("@angular/core").Signal<string>;
51
+ /** @ignore `aria-describedby` combines the message and the counter, whichever are shown. */
52
+ protected readonly describedByIds: import("@angular/core").Signal<string | null>;
53
+ constructor();
54
+ /** Focuses the textarea. */
55
+ focus(options?: FocusOptions): void;
56
+ /** @ignore Input: single source of the value (view → form). */
57
+ protected onInput(): void;
58
+ /** @ignore Value written by the browser without an `input` event. */
59
+ protected onBrowserFill(): void;
60
+ /** @ignore */
61
+ protected onBlur(event: FocusEvent): void;
62
+ /** @ignore Recomputes the height to fit the content. */
63
+ private resizeToContent;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiTextarea, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiTextarea, "ui-textarea", never, {
66
+ "placeholder": {
67
+ "alias": "placeholder";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ "rows": {
72
+ "alias": "rows";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
76
+ "maxlength": {
77
+ "alias": "maxlength";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ "autoResize": {
82
+ "alias": "autoResize";
83
+ "required": false;
84
+ "isSignal": true;
85
+ };
86
+ "resize": {
87
+ "alias": "resize";
88
+ "required": false;
89
+ "isSignal": true;
90
+ };
91
+ "showCount": {
92
+ "alias": "showCount";
93
+ "required": false;
94
+ "isSignal": true;
95
+ };
96
+ }, {
97
+ "valueChange": "valueChange";
98
+ "textareaFocus": "textareaFocus";
99
+ "textareaBlur": "textareaBlur";
100
+ }, never, never, true, never>;
101
+ }
@@ -1,12 +1,14 @@
1
- import * as _angular_core from '@angular/core';
2
- import { BaseFieldControl } from '@4sh/ui-kit/forms';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { BaseFieldControl } from "@4sh/ui-kit/forms";
5
+ import * as i0 from "@angular/core";
4
6
  /** Selection control embedded in the block. */
5
- type ToggleBlockIndicator = 'checkbox' | 'radio' | 'toggle';
6
- type ToggleBlockSize = 'default' | 'small' | 'large';
7
- type ToggleBlockIndicatorPosition = 'start' | 'end';
7
+ export type ToggleBlockIndicator = 'checkbox' | 'radio' | 'toggle';
8
+ export type ToggleBlockSize = 'default' | 'small' | 'large';
9
+ export type ToggleBlockIndicatorPosition = 'start' | 'end';
8
10
  /** Vertical alignment of the indicator against the block content. */
9
- type ToggleBlockAlign = 'center' | 'start';
11
+ export type ToggleBlockAlign = 'center' | 'start';
10
12
  /**
11
13
  * ui-toggle-block: selectable block wrapping a checkbox, a radio or a switch.
12
14
  *
@@ -25,90 +27,152 @@ type ToggleBlockAlign = 'center' | 'start';
25
27
  * (ControlValueAccessor). Blocks form a group the native way: same `name`, same
26
28
  * bound model.
27
29
  */
28
- declare class UiToggleBlock<T = boolean> extends BaseFieldControl<T> {
29
- /** Selection control embedded in the block. */
30
- indicator: _angular_core.InputSignal<ToggleBlockIndicator>;
31
- /** Side of the block the indicator sits on. */
32
- indicatorPosition: _angular_core.InputSignal<ToggleBlockIndicatorPosition>;
33
- /** Vertical alignment of the indicator against the content. */
34
- align: _angular_core.InputSignal<ToggleBlockAlign>;
35
- /** Keeps the control operable but removes the indicator from view (selection card). */
36
- hideIndicator: _angular_core.InputSignalWithTransform<boolean, unknown>;
37
- /** Size. */
38
- size: _angular_core.InputSignal<ToggleBlockSize>;
39
- /** Main line of the block. */
40
- label: _angular_core.InputSignal<string | undefined>;
41
- /** Secondary line under the label. */
42
- description: _angular_core.InputSignal<string | undefined>;
43
- /** Span the full width of the parent (a flex/grid parent otherwise sizes the block to its content). */
44
- fluid: _angular_core.InputSignalWithTransform<boolean, unknown>;
45
- /** Ripple Effect */
46
- ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
- /** Value carried by this block in `radio` mode (the model takes it when selected). */
48
- value: _angular_core.InputSignal<T | undefined>;
49
- /** Model value emitted when selected, in `checkbox` / `toggle` mode. */
50
- trueValue: _angular_core.InputSignal<T>;
51
- /** Model value emitted when cleared, in `checkbox` / `toggle` mode. */
52
- falseValue: _angular_core.InputSignal<T>;
53
- /** Emitted on user selection with the new model value (never when disabled/readonly). */
54
- blockChange: _angular_core.OutputEmitterRef<T>;
55
- /** Emitted when the embedded control receives focus. */
56
- blockFocus: _angular_core.OutputEmitterRef<FocusEvent>;
57
- /** Emitted when the embedded control loses focus. */
58
- blockBlur: _angular_core.OutputEmitterRef<FocusEvent>;
59
- /** @ignore */
60
- private readonly checkboxRef;
61
- /** @ignore */
62
- private readonly radioRef;
63
- /** @ignore */
64
- private readonly toggleRef;
65
- /** @ignore */
66
- private readonly bodyEl;
67
- /** @ignore Keyboard focus only: a pointer press must not ring the block. */
68
- private readonly focusVisible;
69
- constructor();
70
- /** @ignore The embedded control, whichever indicator is rendered. */
71
- private readonly control;
72
- /** @ignore Value this block selects (radio carries its own, the others the `trueValue`). */
73
- protected readonly selectedValue: _angular_core.Signal<T>;
74
- /** @ignore */
75
- protected readonly checked: _angular_core.Signal<boolean>;
76
- /** @ignore Id of the region naming the control. */
77
- protected readonly bodyId: _angular_core.Signal<string>;
78
- /**
79
- * @ignore The block content names the control, unless an explicit name is given
80
- * (`aria-labelledby` outranks `aria-label`, so the two are mutually exclusive).
81
- */
82
- protected readonly controlLabelledBy: _angular_core.Signal<string | undefined>;
83
- /** @ignore The switch follows the block density; the box controls keep the form-wide size. */
84
- protected readonly toggleSize: _angular_core.Signal<"default" | "small">;
85
- /**
86
- * @ignore The wave is carried by the block, not by a native control, so the
87
- * engine's own `disabled` guard never sees it: fold the inert states in here.
88
- */
89
- protected readonly rippleEnabled: _angular_core.Signal<boolean>;
90
- /** @ignore */
91
- protected readonly classes: _angular_core.Signal<string>;
92
- /** @ignore */
93
- protected uidPrefix(): string;
94
- /** Focus the embedded control programmatically. */
95
- focus(options?: FocusOptions): void;
96
- /** @ignore A name reaches assistive tech (explicit, or rendered in the body). */
97
- private hasAccessibleName;
98
- /** @ignore User selection, relayed by whichever indicator is rendered. */
99
- protected onControlChange(value: T): void;
100
- /** @ignore */
101
- protected onControlFocus(event: FocusEvent): void;
102
- /** @ignore */
103
- protected onControlBlur(event: FocusEvent): void;
104
- /**
105
- * @ignore Read-only blocks stay focusable but must not change value. Pointer
106
- * activation is already cut off in CSS; this covers the keyboard.
107
- */
108
- protected onKeydown(event: KeyboardEvent): void;
109
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiToggleBlock<any>, never>;
110
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiToggleBlock<any>, "ui-toggle-block", never, { "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "indicatorPosition": { "alias": "indicatorPosition"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "hideIndicator": { "alias": "hideIndicator"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "trueValue": { "alias": "trueValue"; "required": false; "isSignal": true; }; "falseValue": { "alias": "falseValue"; "required": false; "isSignal": true; }; }, { "blockChange": "blockChange"; "blockFocus": "blockFocus"; "blockBlur": "blockBlur"; }, never, ["*"], true, never>;
111
- }
112
-
113
- export { UiToggleBlock };
114
- export type { ToggleBlockAlign, ToggleBlockIndicator, ToggleBlockIndicatorPosition, ToggleBlockSize };
30
+ export declare class UiToggleBlock<T = boolean> extends BaseFieldControl<T> {
31
+ /** Selection control embedded in the block. */
32
+ indicator: import("@angular/core").InputSignal<ToggleBlockIndicator>;
33
+ /** Side of the block the indicator sits on. */
34
+ indicatorPosition: import("@angular/core").InputSignal<ToggleBlockIndicatorPosition>;
35
+ /** Vertical alignment of the indicator against the content. */
36
+ align: import("@angular/core").InputSignal<ToggleBlockAlign>;
37
+ /** Keeps the control operable but removes the indicator from view (selection card). */
38
+ hideIndicator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
39
+ /** Size. */
40
+ size: import("@angular/core").InputSignal<ToggleBlockSize>;
41
+ /** Main line of the block. */
42
+ label: import("@angular/core").InputSignal<string | undefined>;
43
+ /** Secondary line under the label. */
44
+ description: import("@angular/core").InputSignal<string | undefined>;
45
+ /** Span the full width of the parent (a flex/grid parent otherwise sizes the block to its content). */
46
+ fluid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
47
+ /** Ripple Effect */
48
+ ripple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
49
+ /** Value carried by this block in `radio` mode (the model takes it when selected). */
50
+ value: import("@angular/core").InputSignal<T | undefined>;
51
+ /** Model value emitted when selected, in `checkbox` / `toggle` mode. */
52
+ trueValue: import("@angular/core").InputSignal<T>;
53
+ /** Model value emitted when cleared, in `checkbox` / `toggle` mode. */
54
+ falseValue: import("@angular/core").InputSignal<T>;
55
+ /** Emitted on user selection with the new model value (never when disabled/readonly). */
56
+ blockChange: import("@angular/core").OutputEmitterRef<T>;
57
+ /** Emitted when the embedded control receives focus. */
58
+ blockFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
59
+ /** Emitted when the embedded control loses focus. */
60
+ blockBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
61
+ /** @ignore */
62
+ private readonly checkboxRef;
63
+ /** @ignore */
64
+ private readonly radioRef;
65
+ /** @ignore */
66
+ private readonly toggleRef;
67
+ /** @ignore */
68
+ private readonly bodyEl;
69
+ /** @ignore Keyboard focus only: a pointer press must not ring the block. */
70
+ private readonly focusVisible;
71
+ constructor();
72
+ /** @ignore The embedded control, whichever indicator is rendered. */
73
+ private readonly control;
74
+ /** @ignore Value this block selects (radio carries its own, the others the `trueValue`). */
75
+ protected readonly selectedValue: import("@angular/core").Signal<T>;
76
+ /** @ignore */
77
+ protected readonly checked: import("@angular/core").Signal<boolean>;
78
+ /** @ignore Id of the region naming the control. */
79
+ protected readonly bodyId: import("@angular/core").Signal<string>;
80
+ /**
81
+ * @ignore The block content names the control, unless an explicit name is given
82
+ * (`aria-labelledby` outranks `aria-label`, so the two are mutually exclusive).
83
+ */
84
+ protected readonly controlLabelledBy: import("@angular/core").Signal<string | undefined>;
85
+ /** @ignore The switch follows the block density; the box controls keep the form-wide size. */
86
+ protected readonly toggleSize: import("@angular/core").Signal<"default" | "small">;
87
+ /**
88
+ * @ignore The wave is carried by the block, not by a native control, so the
89
+ * engine's own `disabled` guard never sees it: fold the inert states in here.
90
+ */
91
+ protected readonly rippleEnabled: import("@angular/core").Signal<boolean>;
92
+ /** @ignore */
93
+ protected readonly classes: import("@angular/core").Signal<string>;
94
+ /** @ignore */
95
+ protected uidPrefix(): string;
96
+ /** Focus the embedded control programmatically. */
97
+ focus(options?: FocusOptions): void;
98
+ /** @ignore A name reaches assistive tech (explicit, or rendered in the body). */
99
+ private hasAccessibleName;
100
+ /** @ignore User selection, relayed by whichever indicator is rendered. */
101
+ protected onControlChange(value: T): void;
102
+ /** @ignore */
103
+ protected onControlFocus(event: FocusEvent): void;
104
+ /** @ignore */
105
+ protected onControlBlur(event: FocusEvent): void;
106
+ /**
107
+ * @ignore Read-only blocks stay focusable but must not change value. Pointer
108
+ * activation is already cut off in CSS; this covers the keyboard.
109
+ */
110
+ protected onKeydown(event: KeyboardEvent): void;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiToggleBlock<any>, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiToggleBlock<any>, "ui-toggle-block", never, {
113
+ "indicator": {
114
+ "alias": "indicator";
115
+ "required": false;
116
+ "isSignal": true;
117
+ };
118
+ "indicatorPosition": {
119
+ "alias": "indicatorPosition";
120
+ "required": false;
121
+ "isSignal": true;
122
+ };
123
+ "align": {
124
+ "alias": "align";
125
+ "required": false;
126
+ "isSignal": true;
127
+ };
128
+ "hideIndicator": {
129
+ "alias": "hideIndicator";
130
+ "required": false;
131
+ "isSignal": true;
132
+ };
133
+ "size": {
134
+ "alias": "size";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "label": {
139
+ "alias": "label";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ "description": {
144
+ "alias": "description";
145
+ "required": false;
146
+ "isSignal": true;
147
+ };
148
+ "fluid": {
149
+ "alias": "fluid";
150
+ "required": false;
151
+ "isSignal": true;
152
+ };
153
+ "ripple": {
154
+ "alias": "ripple";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "value": {
159
+ "alias": "value";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ "trueValue": {
164
+ "alias": "trueValue";
165
+ "required": false;
166
+ "isSignal": true;
167
+ };
168
+ "falseValue": {
169
+ "alias": "falseValue";
170
+ "required": false;
171
+ "isSignal": true;
172
+ };
173
+ }, {
174
+ "blockChange": "blockChange";
175
+ "blockFocus": "blockFocus";
176
+ "blockBlur": "blockBlur";
177
+ }, never, ["*"], true, never>;
178
+ }