@sixbell-telco/sdk 2.0.1 → 3.0.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 (222) hide show
  1. package/CHANGELOG.md +134 -1
  2. package/README.md +360 -87
  3. package/_index.css +0 -3
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +3 -4
  5. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +28 -1
  6. package/components/audio-player/src/audio-player.component.d.ts +7 -3
  7. package/components/audio-player/volume-control/volume-control.component.d.ts +28 -1
  8. package/components/button/src/button.component.d.ts +46 -1
  9. package/components/card/card-actions/card-actions.component.d.ts +4 -4
  10. package/components/card/card-body/card-body.component.d.ts +5 -0
  11. package/components/card/card-context.d.ts +8 -0
  12. package/components/card/card-footer/card-footer.component.d.ts +7 -0
  13. package/components/card/card-header/card-header.component.d.ts +5 -0
  14. package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
  15. package/components/card/card-section/card-section.component.d.ts +5 -0
  16. package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
  17. package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
  18. package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
  19. package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
  20. package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
  21. package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
  22. package/components/card/card-title/card-title.component.d.ts +23 -14
  23. package/components/card/public-api.d.ts +12 -1
  24. package/components/card/src/card.component.d.ts +5 -1
  25. package/components/data-table/actions/actions.component.d.ts +67 -0
  26. package/components/data-table/actions/actions.types.d.ts +38 -0
  27. package/components/data-table/data-table-empty-actions/data-table-empty-actions.component.d.ts +5 -0
  28. package/components/data-table/public-api.d.ts +3 -0
  29. package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
  30. package/components/data-table/src/data-table.component.d.ts +24 -7
  31. package/components/dialog/src/dialog.component.d.ts +51 -5
  32. package/{directives/typography → components/divider}/index.d.ts +1 -1
  33. package/components/divider/public-api.d.ts +1 -0
  34. package/components/divider/src/divider.component.d.ts +13 -0
  35. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +2 -1
  36. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +37 -1
  37. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +33 -1
  38. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +33 -1
  39. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +53 -2
  40. package/components/dropdown/src/dropdown.component.d.ts +2 -2
  41. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +2 -1
  42. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +33 -1
  43. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +33 -1
  44. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +33 -1
  45. package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +1 -3
  46. package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -1
  47. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +33 -1
  48. package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -1
  49. package/components/dual-list/src/dual-list.component.d.ts +3 -2
  50. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +46 -1
  51. package/components/file-upload/file-uploader/file-uploader.component.d.ts +33 -2
  52. package/components/forms/checkbox/src/checkbox.component.d.ts +46 -2
  53. package/components/forms/combobox/src/combobox.component.d.ts +40 -5
  54. package/components/forms/date-picker/src/date-picker.component.d.ts +14 -1
  55. package/components/forms/form-error/src/form-error.component.d.ts +8 -1
  56. package/components/forms/form-group/README.md +114 -0
  57. package/components/forms/form-group/index.d.ts +5 -0
  58. package/components/forms/form-group/public-api.d.ts +1 -0
  59. package/components/forms/form-group/src/form-group.component.d.ts +150 -0
  60. package/components/forms/form-item/README.md +17 -0
  61. package/components/forms/form-item/index.d.ts +5 -0
  62. package/components/forms/form-item/public-api.d.ts +1 -0
  63. package/components/forms/form-item/src/form-item.component.d.ts +5 -0
  64. package/components/forms/input/src/input.component.d.ts +32 -10
  65. package/components/forms/radio/src/radio.component.d.ts +46 -2
  66. package/components/forms/range/src/range.component.d.ts +38 -1
  67. package/components/forms/select/src/select.component.d.ts +40 -5
  68. package/components/forms/switch/src/switch.component.d.ts +46 -2
  69. package/components/forms/textarea/src/textarea.component.d.ts +49 -4
  70. package/components/forms/toggle/src/toggle.component.d.ts +46 -1
  71. package/components/overlay/overlay-content/overlay-content.component.d.ts +2 -1
  72. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +37 -5
  73. package/components/overlay/src/overlay.component.d.ts +4 -5
  74. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +46 -1
  75. package/components/paginator/src/paginator.component.d.ts +7 -1
  76. package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -4
  77. package/components/table/public-api.d.ts +2 -0
  78. package/components/table/src/table.component.d.ts +72 -7
  79. package/components/table/table-action/table-action.component.d.ts +2 -6
  80. package/components/table/table-actions/table-actions.component.d.ts +52 -6
  81. package/components/table/table-actions/table-actions.types.d.ts +28 -0
  82. package/components/table/table-empty-actions/table-empty-actions.component.d.ts +5 -0
  83. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +5 -11
  84. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +5 -11
  85. package/components/{toast → text}/index.d.ts +1 -1
  86. package/components/text/public-api.d.ts +2 -0
  87. package/components/text/src/text.component.d.ts +38 -0
  88. package/components/tooltip/src/tooltip.component.d.ts +10 -1
  89. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -3
  90. package/directives/auto-focus/src/auto-focus.directive.d.ts +5 -9
  91. package/directives/click-outside/src/click-outside.directive.d.ts +1 -3
  92. package/directives/only-numbers/public-api.d.ts +0 -5
  93. package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -14
  94. package/directives/text/index.d.ts +5 -0
  95. package/directives/text/public-api.d.ts +1 -0
  96. package/directives/text/src/text.directive.d.ts +87 -0
  97. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +9 -12
  98. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +130 -50
  100. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
  102. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
  104. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-button.mjs +79 -5
  106. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
  108. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +1 -1
  110. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +236 -59
  112. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +87 -17
  114. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
  116. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
  117. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +166 -13
  118. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +69 -21
  120. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +283 -16
  122. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +8 -6
  124. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +148 -9
  126. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +69 -3
  128. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +96 -19
  130. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +32 -6
  132. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
  134. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +159 -0
  136. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -0
  137. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +20 -0
  138. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -0
  139. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +48 -14
  140. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +69 -3
  142. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +57 -4
  144. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  145. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +89 -18
  146. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +80 -6
  148. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  149. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +112 -11
  150. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +71 -5
  152. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
  154. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  155. package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
  156. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  157. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +94 -42
  158. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  159. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +113 -24
  160. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  161. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
  162. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  163. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +5 -9
  164. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  165. package/fesm2022/sixbell-telco-sdk-components-table.mjs +565 -89
  166. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  167. package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
  168. package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
  169. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +15 -3
  170. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  171. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +15 -15
  172. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  173. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +16 -19
  174. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  175. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +7 -10
  176. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  177. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +11 -31
  178. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  179. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
  180. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
  181. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
  182. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
  183. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +7 -12
  184. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  185. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +55 -12
  186. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  187. package/package.json +90 -74
  188. package/utils/formatting/README.md +100 -0
  189. package/utils/formatting/index.d.ts +5 -0
  190. package/utils/formatting/public-api.d.ts +9 -0
  191. package/utils/formatting/src/constants/constants.d.ts +18 -0
  192. package/utils/formatting/src/models/formatting.d.ts +33 -0
  193. package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
  194. package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
  195. package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
  196. package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
  197. package/utils/formatting/src/service/formatting.service.d.ts +13 -0
  198. package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
  199. package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
  200. package/utils/logger/README.md +8 -19
  201. package/utils/runtime-config/README.md +1 -1
  202. package/utils/theme/README.md +21 -2
  203. package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -3
  204. package/utils/translation/README.md +40 -10
  205. package/utils/translation/public-api.d.ts +1 -1
  206. package/utils/translation/src/constants.d.ts +9 -2
  207. package/utils/translation/src/models/translation.d.ts +11 -0
  208. package/utils/translation/src/providers/translation.provider.d.ts +1 -1
  209. package/utils/translation/src/translation-dom/translation-dom.service.d.ts +2 -3
  210. package/utils/translation/src/translation.service.d.ts +6 -1
  211. package/assets/styles/toast.css +0 -63
  212. package/components/card/card-content/card-content.component.d.ts +0 -30
  213. package/components/toast/public-api.d.ts +0 -12
  214. package/components/toast/services/toast.service.d.ts +0 -35
  215. package/components/toast/toast-message/toast-message.component.d.ts +0 -29
  216. package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
  217. package/directives/typography/public-api.d.ts +0 -1
  218. package/directives/typography/src/typography.directive.d.ts +0 -68
  219. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -185
  220. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
  221. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
  222. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
@@ -0,0 +1,150 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * @internal
4
+ * Generates base form-group classes with gap variants using class-variance-authority
5
+ */
6
+ export declare const formGroupComponent: (props?: ({
7
+ gap?: "tight" | "normal" | "relaxed" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ /**
10
+ * Possible form-group gap spacing variants
11
+ *
12
+ * @description
13
+ * - `'tight'` - 6px spacing (gap-1.5). Best for compact forms or dense UI layouts. Default.
14
+ * - `'normal'` - 12px spacing (gap-3). Use for more breathing room in standard forms.
15
+ * - `'relaxed'` - 16px spacing (gap-4). Best for spacious forms, accessibility focus, or improved readability.
16
+ */
17
+ export type FormGroupGapProps = 'tight' | 'normal' | 'relaxed' | null | undefined;
18
+ /**
19
+ * Configuration object for form-group styling
20
+ *
21
+ * @property gap - Vertical spacing between form items
22
+ * @property class - Additional custom Tailwind CSS classes to merge
23
+ */
24
+ export type FormGroupProps = {
25
+ gap?: FormGroupGapProps;
26
+ class?: string;
27
+ };
28
+ /**
29
+ * A flexible layout wrapper for grouping form components with consistent vertical spacing.
30
+ *
31
+ * @remarks
32
+ * `st-form-group` is a layout utility that wraps form items or form sections with configurable
33
+ * vertical spacing. Built with Tailwind CSS v4 and class-variance-authority for efficient
34
+ * variant management. It uses modern Angular signals for reactive input/output handling.
35
+ *
36
+ * The component supports three gap variants that scale from compact to spacious layouts,
37
+ * making it ideal for diverse UI patterns:
38
+ * - **Tight (6px)**: Dense layouts, compact form sections (default)
39
+ * - **Normal (12px)**: Standard forms, roomier layout
40
+ * - **Relaxed (16px)**: Accessible forms, improved readability
41
+ *
42
+ * @example
43
+ * ```html
44
+ * <!-- Default tight spacing (6px) -->
45
+ * <st-form-group>
46
+ * <st-form-item>
47
+ * <st-input label="Email" [(value)]="email"></st-input>
48
+ * </st-form-item>
49
+ * <st-form-item>
50
+ * <st-input label="Password" type="password" [(value)]="password"></st-input>
51
+ * </st-form-item>
52
+ * </st-form-group>
53
+ * ```
54
+ *
55
+ * @example
56
+ * ```html
57
+ * <!-- Tight spacing for compact UI (6px) -->
58
+ * <st-form-group gap="tight">
59
+ * <st-form-item><st-input label="First" ...></st-input></st-form-item>
60
+ * <st-form-item><st-input label="Second" ...></st-input></st-form-item>
61
+ * </st-form-group>
62
+ * ```
63
+ *
64
+ * @example
65
+ * ```html
66
+ * <!-- Relaxed spacing for accessibility (16px) -->
67
+ * <st-form-group gap="relaxed">
68
+ * <st-form-item><st-input label="Email" ...></st-input></st-form-item>
69
+ * <st-form-item><st-input label="Phone" ...></st-input></st-form-item>
70
+ * </st-form-group>
71
+ * ```
72
+ *
73
+ * @example
74
+ * ```html
75
+ * <!-- Custom classes merged with variant -->
76
+ * <st-form-group gap="tight" class="p-4 border-2 border-primary rounded-lg">
77
+ * <!-- Form items with normal spacing + custom styling -->
78
+ * </st-form-group>
79
+ * ```
80
+ */
81
+ export declare class FormGroupComponent {
82
+ /**
83
+ * Gap variant for vertical spacing between form items.
84
+ *
85
+ * @defaultValue 'tight'
86
+ *
87
+ * @description
88
+ * Controls the vertical spacing (`gap-*` utility) between child form components.
89
+ * Choose based on your layout needs and accessibility requirements:
90
+ *
91
+ * @param 'tight' - 6px spacing (Tailwind `gap-1.5`)
92
+ * Use when designing compact, dense form layouts where space is limited.
93
+ * Examples: Modal dialogs, inline form sections, sidebar forms.
94
+ * Spacing: 6px (0.375rem)
95
+ *
96
+ * @param 'normal' - 12px spacing (Tailwind `gap-3`)
97
+ * Use when you need more breathing room between fields. Works well for
98
+ * standard web forms and layouts.
99
+ * Spacing: 12px (0.75rem)
100
+ *
101
+ * @param 'relaxed' - 16px spacing (Tailwind `gap-4`)
102
+ * Use for forms prioritizing accessibility and readability. Ideal for
103
+ * forms targeting users with visual or motor impairments. Also great
104
+ * for mobile-first or touch-friendly interfaces.
105
+ * Spacing: 16px (1rem)
106
+ *
107
+ * @example
108
+ * ```typescript
109
+ * // In component template:
110
+ * <st-form-group gap="tight">...</st-form-group> // 6px spacing (default)
111
+ * <st-form-group gap="normal">...</st-form-group> // 12px spacing
112
+ * <st-form-group gap="relaxed">...</st-form-group> // 16px spacing
113
+ * ```
114
+ */
115
+ gap: import("@angular/core").InputSignal<FormGroupGapProps>;
116
+ /**
117
+ * Additional custom CSS classes.
118
+ *
119
+ * @defaultValue ''
120
+ *
121
+ * @description
122
+ * Any valid Tailwind CSS or custom classes to apply alongside the gap variant.
123
+ * Classes are merged using the `cn()` utility, which handles proper class
124
+ * precedence and conflict resolution with Tailwind's merge logic.
125
+ *
126
+ * @example
127
+ * ```html
128
+ * <!-- Add custom padding and background -->
129
+ * <st-form-group class="p-6 bg-base-200 rounded-lg border border-primary">
130
+ * ...
131
+ * </st-form-group>
132
+ *
133
+ * <!-- Responsive modifications -->
134
+ * <st-form-group gap="normal" class="md:p-8 lg:gap-4">
135
+ * ...
136
+ * </st-form-group>
137
+ * ```
138
+ */
139
+ class: import("@angular/core").InputSignal<string>;
140
+ /**
141
+ * @internal
142
+ * Computed class string combining gap variant and custom classes.
143
+ *
144
+ * Uses CVA pattern to manage gap variants and `cn()` utility to merge
145
+ * with custom classes, handling Tailwind class conflicts properly.
146
+ */
147
+ containerClass: import("@angular/core").Signal<string>;
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "st-form-group", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
150
+ }
@@ -0,0 +1,17 @@
1
+ # Form Item
2
+
3
+ `st-form-item` is a layout wrapper for form fields. It ensures labels, controls, and error messages have consistent spacing and that `st-form-errors` can span the full available width of the form row.
4
+
5
+ ## Usage
6
+
7
+ ```html
8
+ <st-form-item>
9
+ <st-input formControlName="controlInput" label="Input" name="name" placeholder="placeholder" [parentForm]="inputForm"></st-input>
10
+ <st-form-errors [parentForm]="inputForm" formField="controlInput" />
11
+ </st-form-item>
12
+ ```
13
+
14
+ ## Notes
15
+
16
+ - Place `st-form-errors` as a sibling (not inside) the input/field component.
17
+ - `st-form-item` provides a consistent vertical gap and full-width error line.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/forms/form-item" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/form-item.component';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormItemComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "st-form-item", never, {}, {}, never, [":not(st-form-errors)", "st-form-errors"], true, never>;
5
+ }
@@ -52,6 +52,16 @@ export declare class InputComponent implements ControlValueAccessor {
52
52
  * Label text displayed above the input
53
53
  */
54
54
  label: import("@angular/core").InputSignal<string>;
55
+ /**
56
+ * Whether to show optional indicator
57
+ * @defaultValue false
58
+ */
59
+ showOptional: import("@angular/core").InputSignal<boolean>;
60
+ /**
61
+ * Optional indicator text (translation key or literal)
62
+ * @defaultValue 'sdk.formFields.optional'
63
+ */
64
+ optionalText: import("@angular/core").InputSignal<string>;
55
65
  /**
56
66
  * HTML input type
57
67
  * @defaultValue 'text'
@@ -71,12 +81,6 @@ export declare class InputComponent implements ControlValueAccessor {
71
81
  */
72
82
  readonly: import("@angular/core").InputSignal<boolean>;
73
83
  focus: import("@angular/core").InputSignal<boolean>;
74
- /**
75
- * Whether to restrict input to numeric characters only
76
- * @defaultValue false
77
- * @deprecated Use `onlyNumbers` instead. This input is maintained for backward compatibility.
78
- */
79
- justNumbers: import("@angular/core").InputSignal<boolean>;
80
84
  /**
81
85
  * Whether to restrict input to numeric characters only
82
86
  * @defaultValue false
@@ -107,9 +111,22 @@ export declare class InputComponent implements ControlValueAccessor {
107
111
  */
108
112
  disabled: import("@angular/core").ModelSignal<boolean>;
109
113
  /**
110
- * Event emitted when Enter key is pressed
114
+ * Stop event propagation for activation events
115
+ * @defaultValue false
111
116
  */
112
- enterPressed: import("@angular/core").OutputEmitterRef<string>;
117
+ stopPropagation: import("@angular/core").InputSignal<boolean>;
118
+ /**
119
+ * Event emitted on Enter keydown
120
+ */
121
+ keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
122
+ /**
123
+ * Event emitted on activation (Enter)
124
+ */
125
+ triggered: import("@angular/core").OutputEmitterRef<void>;
126
+ /**
127
+ * Event emitted on click
128
+ */
129
+ clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
113
130
  /**
114
131
  * Event emitted when input loses focus
115
132
  */
@@ -152,11 +169,16 @@ export declare class InputComponent implements ControlValueAccessor {
152
169
  * Handles input value changes
153
170
  */
154
171
  handleChange(): void;
172
+ /**
173
+ * @internal
174
+ * Handles click activation
175
+ */
176
+ handleClick(event: MouseEvent): void;
155
177
  /**
156
178
  * @internal
157
179
  * Handles Enter key press
158
180
  */
159
- handleEnter(): void;
181
+ handleEnter(event: Event): void;
160
182
  /**
161
183
  * @internal
162
184
  * Handles blur event
@@ -185,6 +207,6 @@ export declare class InputComponent implements ControlValueAccessor {
185
207
  */
186
208
  private setupDebounce;
187
209
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
188
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
210
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "clicked": "clicked"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
189
211
  }
190
212
  export {};
@@ -1,4 +1,4 @@
1
- import { ControlValueAccessor } from '@angular/forms';
1
+ import { ControlValueAccessor, FormGroup } from '@angular/forms';
2
2
  import * as i0 from "@angular/core";
3
3
  /** Possible radio button color variants */
4
4
  export type RadioVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;
@@ -70,10 +70,39 @@ export declare class RadioComponent implements ControlValueAccessor {
70
70
  * Two-way bindable selected value for radio group
71
71
  */
72
72
  selected: import("@angular/core").ModelSignal<any>;
73
+ /**
74
+ * Parent form group for reactive forms
75
+ */
76
+ parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
77
+ /**
78
+ * Form control name for reactive forms
79
+ */
80
+ formControlName: import("@angular/core").InputSignal<string>;
73
81
  /**
74
82
  * Event emitted when radio button is selected
75
83
  */
76
84
  valueUpdated: import("@angular/core").OutputEmitterRef<any>;
85
+ /**
86
+ * Stop event propagation for activation events
87
+ * @defaultValue false
88
+ */
89
+ stopPropagation: import("@angular/core").InputSignal<boolean>;
90
+ /**
91
+ * Event emitted on click
92
+ */
93
+ clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
94
+ /**
95
+ * Event emitted on Enter keydown
96
+ */
97
+ keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
98
+ /**
99
+ * Event emitted on Space keydown
100
+ */
101
+ keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
102
+ /**
103
+ * Event emitted on activation (click or keyboard)
104
+ */
105
+ triggered: import("@angular/core").OutputEmitterRef<void>;
77
106
  private onControlChange;
78
107
  private onControlTouch;
79
108
  /**
@@ -100,6 +129,21 @@ export declare class RadioComponent implements ControlValueAccessor {
100
129
  * Handles blur event
101
130
  */
102
131
  handleBlur(): void;
132
+ /**
133
+ * @internal
134
+ * Handles click activation
135
+ */
136
+ handleClick(event: MouseEvent): void;
137
+ /**
138
+ * @internal
139
+ * Handles Enter keydown activation
140
+ */
141
+ handleKeyDownEnter(event: Event): void;
142
+ /**
143
+ * @internal
144
+ * Handles Space keydown activation
145
+ */
146
+ handleKeyDownSpace(event: Event): void;
103
147
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
104
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "st-radio", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "valueUpdated": "valueUpdated"; "disabled": "disabledChange"; }, never, never, true, never>;
148
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "st-radio", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "disabled": "disabledChange"; }, never, never, true, never>;
105
149
  }
@@ -51,6 +51,16 @@ export declare class RangeComponent implements ControlValueAccessor {
51
51
  * Label text displayed with the range slider
52
52
  */
53
53
  label: import("@angular/core").InputSignal<string>;
54
+ /**
55
+ * Whether to show optional indicator
56
+ * @defaultValue false
57
+ */
58
+ showOptional: import("@angular/core").InputSignal<boolean>;
59
+ /**
60
+ * Optional indicator text (translation key or literal)
61
+ * @defaultValue 'sdk.formFields.optional'
62
+ */
63
+ optionalText: import("@angular/core").InputSignal<string>;
54
64
  /**
55
65
  * HTML name attribute for the range slider
56
66
  */
@@ -113,6 +123,23 @@ export declare class RangeComponent implements ControlValueAccessor {
113
123
  * Event emitted when range value changes
114
124
  */
115
125
  valueUpdated: import("@angular/core").OutputEmitterRef<number>;
126
+ /**
127
+ * Stop event propagation for activation events
128
+ * @defaultValue false
129
+ */
130
+ stopPropagation: import("@angular/core").InputSignal<boolean>;
131
+ /**
132
+ * Event emitted on click
133
+ */
134
+ clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
135
+ /**
136
+ * Event emitted on pointer down
137
+ */
138
+ pointerDown: import("@angular/core").OutputEmitterRef<PointerEvent>;
139
+ /**
140
+ * Event emitted on activation (click or keyboard)
141
+ */
142
+ triggered: import("@angular/core").OutputEmitterRef<void>;
116
143
  /**
117
144
  * @internal
118
145
  * Computed class string for the range slider
@@ -127,6 +154,16 @@ export declare class RangeComponent implements ControlValueAccessor {
127
154
  * Handles range value changes
128
155
  */
129
156
  handleChange(): void;
157
+ /**
158
+ * @internal
159
+ * Handles click activation
160
+ */
161
+ handleClick(event: MouseEvent): void;
162
+ /**
163
+ * @internal
164
+ * Handles pointer down activation
165
+ */
166
+ handlePointerDown(event: PointerEvent): void;
130
167
  static ɵfac: i0.ɵɵFactoryDeclaration<RangeComponent, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<RangeComponent, "st-range", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; }, never, never, true, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<RangeComponent, "st-range", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "pointerDown": "pointerDown"; "triggered": "triggered"; }, never, never, true, never>;
132
169
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
1
+ import { ElementRef } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroup } from '@angular/forms';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { CdkListbox } from '@angular/cdk/listbox';
@@ -45,7 +45,7 @@ type AnimationState = 'closed' | 'opening' | 'open' | 'closing';
45
45
  * ></st-select>
46
46
  * ```
47
47
  */
48
- export declare class SelectComponent implements AfterViewInit, ControlValueAccessor {
48
+ export declare class SelectComponent implements ControlValueAccessor {
49
49
  /** @internal Translation service instance */
50
50
  translateService: TranslateService;
51
51
  /**
@@ -58,6 +58,16 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
58
58
  * @defaultValue 'md'
59
59
  */
60
60
  size: import("@angular/core").InputSignal<SelectSizeProps>;
61
+ /**
62
+ * Whether to show optional indicator
63
+ * @defaultValue false
64
+ */
65
+ showOptional: import("@angular/core").InputSignal<boolean>;
66
+ /**
67
+ * Optional indicator text (translation key or literal)
68
+ * @defaultValue 'sdk.formFields.optional'
69
+ */
70
+ optionalText: import("@angular/core").InputSignal<string>;
61
71
  /**
62
72
  * Whether to use ghost (transparent) styling
63
73
  * @defaultValue false
@@ -119,6 +129,27 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
119
129
  * Event emitted when selection changes
120
130
  */
121
131
  valueUpdated: import("@angular/core").OutputEmitterRef<any>;
132
+ /**
133
+ * Stop event propagation for activation events
134
+ * @defaultValue false
135
+ */
136
+ stopPropagation: import("@angular/core").InputSignal<boolean>;
137
+ /**
138
+ * Event emitted on click
139
+ */
140
+ clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
141
+ /**
142
+ * Event emitted on Enter keydown
143
+ */
144
+ keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
145
+ /**
146
+ * Event emitted on Space keydown
147
+ */
148
+ keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
149
+ /**
150
+ * Event emitted on activation (click or keyboard)
151
+ */
152
+ triggered: import("@angular/core").OutputEmitterRef<void>;
122
153
  /** Dropdown chevron icon */
123
154
  iconChevronDown: string;
124
155
  /** Check icon for selected options */
@@ -229,10 +260,9 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
229
260
  */
230
261
  menuClass: import("@angular/core").Signal<string>;
231
262
  /**
232
- * Angular lifecycle hook called after view initialization
233
263
  * Updates the trigger width for proper overlay positioning
234
264
  */
235
- ngAfterViewInit(): void;
265
+ private readonly triggerWidthEffect;
236
266
  /**
237
267
  * Writes a new value to the component
238
268
  * @param value - The new value to set
@@ -258,6 +288,11 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
258
288
  * Handles focus management and animation state transitions
259
289
  */
260
290
  toggleOverlay(): void;
291
+ /**
292
+ * @internal
293
+ * Handle click activation on trigger
294
+ */
295
+ handleClick(event: MouseEvent): void;
261
296
  /**
262
297
  * Handles animation end events to update state
263
298
  * @param event - The animation event
@@ -353,6 +388,6 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
353
388
  */
354
389
  private updateActiveOptionVisually;
355
390
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
356
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "st-select", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; }, never, ["*"], true, never>;
391
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "st-select", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
357
392
  }
358
393
  export {};
@@ -1,4 +1,4 @@
1
- import { ControlValueAccessor } from '@angular/forms';
1
+ import { ControlValueAccessor, FormGroup } from '@angular/forms';
2
2
  import * as i0 from "@angular/core";
3
3
  /** Possible switch style variants */
4
4
  export type SwitchVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;
@@ -55,10 +55,39 @@ export declare class SwitchComponent implements ControlValueAccessor {
55
55
  * Two-way bindable switch state
56
56
  */
57
57
  value: import("@angular/core").ModelSignal<boolean>;
58
+ /**
59
+ * Parent form group for reactive forms
60
+ */
61
+ parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
62
+ /**
63
+ * Form control name for reactive forms
64
+ */
65
+ formControlName: import("@angular/core").InputSignal<string>;
58
66
  /**
59
67
  * Event emitted when switch loses focus
60
68
  */
61
69
  blurred: import("@angular/core").OutputEmitterRef<boolean>;
70
+ /**
71
+ * Stop event propagation for activation events
72
+ * @defaultValue false
73
+ */
74
+ stopPropagation: import("@angular/core").InputSignal<boolean>;
75
+ /**
76
+ * Event emitted on click
77
+ */
78
+ clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
79
+ /**
80
+ * Event emitted on Enter keydown
81
+ */
82
+ keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
83
+ /**
84
+ * Event emitted on Space keydown
85
+ */
86
+ keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
87
+ /**
88
+ * Event emitted on activation (click or keyboard)
89
+ */
90
+ triggered: import("@angular/core").OutputEmitterRef<void>;
62
91
  /** @internal */
63
92
  private onControlChange;
64
93
  /** @internal */
@@ -91,6 +120,21 @@ export declare class SwitchComponent implements ControlValueAccessor {
91
120
  * Handles blur event
92
121
  */
93
122
  handleBlur(): void;
123
+ /**
124
+ * @internal
125
+ * Handle click activation
126
+ */
127
+ handleClick(event: MouseEvent): void;
128
+ /**
129
+ * @internal
130
+ * Handle Enter key activation
131
+ */
132
+ handleKeyDownEnter(event: Event): void;
133
+ /**
134
+ * @internal
135
+ * Handle Space key activation
136
+ */
137
+ handleKeyDownSpace(event: Event): void;
94
138
  static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "st-switch", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "blurred": "blurred"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; }, never, never, true, never>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "st-switch", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "blurred": "blurred"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; }, never, never, true, never>;
96
140
  }