@sixbell-telco/sdk 0.71.0 → 1.0.2

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 (344) hide show
  1. package/CHANGELOG.md +317 -30
  2. package/README.md +357 -241
  3. package/_index.css +452 -0
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  5. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +2 -2
  6. package/components/audio-player/button-play/button-play.component.d.ts +6 -6
  7. package/components/audio-player/services/audio.service.d.ts +1 -0
  8. package/components/audio-player/src/audio-player.component.d.ts +14 -8
  9. package/components/audio-player/volume-control/volume-control.component.d.ts +2 -2
  10. package/components/avatar/src/avatar.component.d.ts +116 -8
  11. package/components/badge/src/badge.component.d.ts +69 -7
  12. package/components/button/src/button.component.d.ts +120 -8
  13. package/components/card/card-actions/card-actions.component.d.ts +29 -1
  14. package/components/card/card-content/card-content.component.d.ts +25 -0
  15. package/components/card/card-title/card-title.component.d.ts +22 -0
  16. package/components/card/src/card.component.d.ts +90 -5
  17. package/components/countdown/src/countdown.component.d.ts +2 -6
  18. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +35 -2
  19. package/components/dropdown/src/dropdown.component.d.ts +151 -9
  20. package/components/dual-list/src/dual-list.component.d.ts +7 -8
  21. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +254 -0
  22. package/components/file-upload/file-uploader/file-uploader.component.d.ts +209 -0
  23. package/components/file-upload/index.d.ts +5 -0
  24. package/components/file-upload/public-api.d.ts +4 -0
  25. package/components/file-upload/shared/types/file-upload.d.ts +8 -0
  26. package/components/forms/checkbox/src/checkbox.component.d.ts +68 -5
  27. package/components/forms/combobox/src/combobox.component.d.ts +476 -39
  28. package/components/forms/datepicker/src/datepicker.component.d.ts +2 -2
  29. package/components/forms/form-error/src/form-error.component.d.ts +2 -2
  30. package/components/forms/input/input-content/input-content.component.d.ts +8 -0
  31. package/components/forms/input/public-api.d.ts +1 -0
  32. package/components/forms/input/src/input.component.d.ts +148 -25
  33. package/components/forms/radio/src/radio.component.d.ts +83 -7
  34. package/components/forms/range/src/range.component.d.ts +101 -6
  35. package/components/forms/select/src/select.component.d.ts +316 -24
  36. package/components/forms/switch/src/switch.component.d.ts +74 -7
  37. package/components/forms/textarea/src/textarea.component.d.ts +172 -16
  38. package/components/forms/toggle/src/toggle.component.d.ts +3 -3
  39. package/components/icon/src/icon.component.d.ts +5 -5
  40. package/components/link/src/link.component.d.ts +1 -1
  41. package/components/modal/modal-actions/modal-actions.component.d.ts +1 -1
  42. package/components/modal/src/modal.component.d.ts +10 -10
  43. package/components/notification/src/notification.component.d.ts +2 -3
  44. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +64 -15
  45. package/components/paginator/src/paginator.component.d.ts +93 -2
  46. package/components/product-card/src/product-card.component.d.ts +7 -8
  47. package/components/progress/src/progress.component.d.ts +59 -4
  48. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  49. package/components/tab/directives/tab-header/tab-header.directive.d.ts +1 -1
  50. package/components/tab/src/tab.component.d.ts +3 -3
  51. package/components/table/public-api.d.ts +2 -0
  52. package/components/table/src/table.component.d.ts +160 -14
  53. package/components/table/table-action/table-action.component.d.ts +49 -0
  54. package/components/table/table-actions/table-actions.component.d.ts +25 -0
  55. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +42 -0
  56. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +46 -0
  57. package/components/toast/toast-message/toast-message.component.d.ts +3 -3
  58. package/components/tooltip/public-api.d.ts +1 -0
  59. package/components/tooltip/src/tooltip.component.d.ts +66 -5
  60. package/components/tooltip/tooltip-content/tooltip-content.component.d.ts +38 -0
  61. package/components/wizard/public-api.d.ts +2 -3
  62. package/components/wizard/services/wizard.service.d.ts +221 -0
  63. package/components/wizard/wizard-actions/wizard-actions.component.d.ts +8 -0
  64. package/components/wizard/wizard-content/wizard-content.component.d.ts +67 -13
  65. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +81 -6
  66. package/components/wizard/wizard-step/wizard-step.component.d.ts +76 -9
  67. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +91 -9
  68. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +152 -16
  69. package/directives/auto-focus/index.d.ts +5 -0
  70. package/directives/auto-focus/public-api.d.ts +1 -0
  71. package/directives/auto-focus/src/autofocus.directive.d.ts +93 -0
  72. package/directives/click-outside/src/click-outside.directive.d.ts +48 -3
  73. package/directives/only-numbers/index.d.ts +5 -0
  74. package/directives/only-numbers/public-api.d.ts +1 -0
  75. package/directives/only-numbers/src/just-numbers.directive.d.ts +9 -0
  76. package/directives/typography/src/typography.directive.d.ts +47 -1
  77. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +10 -12
  78. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +119 -69
  80. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +109 -19
  82. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +92 -46
  84. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-button.mjs +153 -34
  86. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-card.mjs +195 -33
  88. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +8 -11
  90. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +197 -26
  92. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +30 -18
  94. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +706 -0
  96. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -0
  97. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +85 -25
  98. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +996 -113
  100. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +11 -11
  102. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +13 -12
  104. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +221 -121
  106. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +98 -26
  108. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +117 -25
  110. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +671 -74
  112. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +95 -45
  114. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +236 -75
  116. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +74 -258
  118. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +23 -14
  120. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-link.mjs +16 -16
  122. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +39 -36
  124. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +16 -9
  126. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +189 -59
  128. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +35 -43
  130. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +60 -12
  132. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +33 -35
  134. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-table.mjs +403 -58
  136. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +28 -44
  138. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +112 -10
  140. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +897 -161
  142. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +206 -0
  144. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -0
  145. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +54 -11
  146. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +52 -0
  148. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -0
  149. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +66 -15
  150. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
  152. package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  154. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  155. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
  156. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
  157. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  158. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  159. package/package.json +55 -148
  160. package/sixbell-telco-sdk-1.0.2.tgz +0 -0
  161. package/_index.scss +0 -146
  162. package/assets/styles/combobox.scss +0 -454
  163. package/components/file-upload/file-dropzone/index.d.ts +0 -5
  164. package/components/file-upload/file-dropzone/public-api.d.ts +0 -1
  165. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +0 -68
  166. package/components/file-upload/file-uploader/index.d.ts +0 -5
  167. package/components/file-upload/file-uploader/public-api.d.ts +0 -1
  168. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +0 -46
  169. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +0 -43
  170. package/esm2022/components/accordion/public-api.mjs +0 -3
  171. package/esm2022/components/accordion/sixbell-telco-sdk-components-accordion.mjs +0 -5
  172. package/esm2022/components/accordion/src/accordion.component.mjs +0 -13
  173. package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +0 -76
  174. package/esm2022/components/audio-player/button-play/button-play.component.mjs +0 -71
  175. package/esm2022/components/audio-player/public-api.mjs +0 -4
  176. package/esm2022/components/audio-player/services/audio.service.mjs +0 -189
  177. package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +0 -5
  178. package/esm2022/components/audio-player/src/audio-player.component.mjs +0 -84
  179. package/esm2022/components/audio-player/track-info/track-info.component.mjs +0 -17
  180. package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +0 -83
  181. package/esm2022/components/avatar/public-api.mjs +0 -2
  182. package/esm2022/components/avatar/sixbell-telco-sdk-components-avatar.mjs +0 -5
  183. package/esm2022/components/avatar/src/avatar.component.mjs +0 -59
  184. package/esm2022/components/badge/public-api.mjs +0 -2
  185. package/esm2022/components/badge/sixbell-telco-sdk-components-badge.mjs +0 -5
  186. package/esm2022/components/badge/src/badge.component.mjs +0 -76
  187. package/esm2022/components/button/public-api.mjs +0 -2
  188. package/esm2022/components/button/sixbell-telco-sdk-components-button.mjs +0 -5
  189. package/esm2022/components/button/src/button.component.mjs +0 -84
  190. package/esm2022/components/card/card-actions/card-actions.component.mjs +0 -22
  191. package/esm2022/components/card/card-content/card-content.component.mjs +0 -12
  192. package/esm2022/components/card/card-title/card-title.component.mjs +0 -12
  193. package/esm2022/components/card/public-api.mjs +0 -5
  194. package/esm2022/components/card/sixbell-telco-sdk-components-card.mjs +0 -5
  195. package/esm2022/components/card/src/card.component.mjs +0 -32
  196. package/esm2022/components/countdown/public-api.mjs +0 -2
  197. package/esm2022/components/countdown/sixbell-telco-sdk-components-countdown.mjs +0 -5
  198. package/esm2022/components/countdown/src/countdown.component.mjs +0 -60
  199. package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +0 -24
  200. package/esm2022/components/dropdown/public-api.mjs +0 -3
  201. package/esm2022/components/dropdown/sixbell-telco-sdk-components-dropdown.mjs +0 -5
  202. package/esm2022/components/dropdown/src/dropdown.component.mjs +0 -127
  203. package/esm2022/components/dual-list/public-api.mjs +0 -2
  204. package/esm2022/components/dual-list/sixbell-telco-sdk-components-dual-list.mjs +0 -5
  205. package/esm2022/components/dual-list/src/dual-list.component.mjs +0 -174
  206. package/esm2022/components/file-upload/file-dropzone/public-api.mjs +0 -2
  207. package/esm2022/components/file-upload/file-dropzone/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -5
  208. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +0 -232
  209. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +0 -7
  210. package/esm2022/components/file-upload/file-uploader/public-api.mjs +0 -2
  211. package/esm2022/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -5
  212. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +0 -114
  213. package/esm2022/components/forms/checkbox/public-api.mjs +0 -2
  214. package/esm2022/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.mjs +0 -5
  215. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +0 -94
  216. package/esm2022/components/forms/combobox/public-api.mjs +0 -2
  217. package/esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs +0 -5
  218. package/esm2022/components/forms/combobox/src/combobox.component.mjs +0 -165
  219. package/esm2022/components/forms/datepicker/public-api.mjs +0 -3
  220. package/esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -5
  221. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +0 -20
  222. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +0 -190
  223. package/esm2022/components/forms/form-error/public-api.mjs +0 -2
  224. package/esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs +0 -5
  225. package/esm2022/components/forms/form-error/src/form-error.component.mjs +0 -32
  226. package/esm2022/components/forms/input/public-api.mjs +0 -2
  227. package/esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs +0 -5
  228. package/esm2022/components/forms/input/src/input.component.mjs +0 -201
  229. package/esm2022/components/forms/radio/public-api.mjs +0 -2
  230. package/esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs +0 -5
  231. package/esm2022/components/forms/radio/src/radio.component.mjs +0 -96
  232. package/esm2022/components/forms/range/public-api.mjs +0 -2
  233. package/esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs +0 -5
  234. package/esm2022/components/forms/range/src/range.component.mjs +0 -103
  235. package/esm2022/components/forms/select/public-api.mjs +0 -2
  236. package/esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs +0 -5
  237. package/esm2022/components/forms/select/src/select.component.mjs +0 -138
  238. package/esm2022/components/forms/switch/public-api.mjs +0 -2
  239. package/esm2022/components/forms/switch/sixbell-telco-sdk-components-forms-switch.mjs +0 -5
  240. package/esm2022/components/forms/switch/src/switch.component.mjs +0 -108
  241. package/esm2022/components/forms/textarea/public-api.mjs +0 -2
  242. package/esm2022/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.mjs +0 -5
  243. package/esm2022/components/forms/textarea/src/textarea.component.mjs +0 -167
  244. package/esm2022/components/forms/toggle/public-api.mjs +0 -2
  245. package/esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs +0 -5
  246. package/esm2022/components/forms/toggle/src/toggle.component.mjs +0 -404
  247. package/esm2022/components/icon/heroicons/mini/public-api.mjs +0 -2
  248. package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +0 -5
  249. package/esm2022/components/icon/heroicons/outline/public-api.mjs +0 -2
  250. package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +0 -5
  251. package/esm2022/components/icon/heroicons/solid/public-api.mjs +0 -2
  252. package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +0 -5
  253. package/esm2022/components/icon/ionicons/public-api.mjs +0 -2
  254. package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +0 -5
  255. package/esm2022/components/icon/material/baseline/public-api.mjs +0 -2
  256. package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +0 -5
  257. package/esm2022/components/icon/material/outline/public-api.mjs +0 -2
  258. package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +0 -5
  259. package/esm2022/components/icon/material/round/public-api.mjs +0 -2
  260. package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +0 -5
  261. package/esm2022/components/icon/material/sharp/public-api.mjs +0 -2
  262. package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +0 -5
  263. package/esm2022/components/icon/public-api.mjs +0 -2
  264. package/esm2022/components/icon/sixbell-telco-sdk-components-icon.mjs +0 -5
  265. package/esm2022/components/icon/src/icon.component.mjs +0 -41
  266. package/esm2022/components/link/public-api.mjs +0 -2
  267. package/esm2022/components/link/sixbell-telco-sdk-components-link.mjs +0 -5
  268. package/esm2022/components/link/src/link.component.mjs +0 -63
  269. package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +0 -22
  270. package/esm2022/components/modal/modal-content/modal-content.component.mjs +0 -12
  271. package/esm2022/components/modal/modal-title/modal-title.component.mjs +0 -13
  272. package/esm2022/components/modal/public-api.mjs +0 -5
  273. package/esm2022/components/modal/sixbell-telco-sdk-components-modal.mjs +0 -5
  274. package/esm2022/components/modal/src/modal.component.mjs +0 -154
  275. package/esm2022/components/notification/public-api.mjs +0 -2
  276. package/esm2022/components/notification/sixbell-telco-sdk-components-notification.mjs +0 -5
  277. package/esm2022/components/notification/src/notification.component.mjs +0 -55
  278. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +0 -113
  279. package/esm2022/components/paginator/public-api.mjs +0 -3
  280. package/esm2022/components/paginator/sixbell-telco-sdk-components-paginator.mjs +0 -5
  281. package/esm2022/components/paginator/src/paginator.component.mjs +0 -52
  282. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +0 -15
  283. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +0 -15
  284. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +0 -15
  285. package/esm2022/components/product-card/public-api.mjs +0 -5
  286. package/esm2022/components/product-card/sixbell-telco-sdk-components-product-card.mjs +0 -5
  287. package/esm2022/components/product-card/src/product-card.component.mjs +0 -140
  288. package/esm2022/components/progress/public-api.mjs +0 -2
  289. package/esm2022/components/progress/sixbell-telco-sdk-components-progress.mjs +0 -5
  290. package/esm2022/components/progress/src/progress.component.mjs +0 -43
  291. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +0 -51
  292. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +0 -56
  293. package/esm2022/components/tab/public-api.mjs +0 -4
  294. package/esm2022/components/tab/sixbell-telco-sdk-components-tab.mjs +0 -5
  295. package/esm2022/components/tab/src/tab.component.mjs +0 -42
  296. package/esm2022/components/table/public-api.mjs +0 -4
  297. package/esm2022/components/table/sixbell-telco-sdk-components-table.mjs +0 -5
  298. package/esm2022/components/table/src/table.component.mjs +0 -143
  299. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +0 -25
  300. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +0 -26
  301. package/esm2022/components/toast/public-api.mjs +0 -4
  302. package/esm2022/components/toast/services/toast.service.mjs +0 -67
  303. package/esm2022/components/toast/sixbell-telco-sdk-components-toast.mjs +0 -5
  304. package/esm2022/components/toast/toast-message/toast-message.component.mjs +0 -80
  305. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +0 -41
  306. package/esm2022/components/tooltip/public-api.mjs +0 -2
  307. package/esm2022/components/tooltip/sixbell-telco-sdk-components-tooltip.mjs +0 -5
  308. package/esm2022/components/tooltip/src/tooltip.component.mjs +0 -45
  309. package/esm2022/components/wizard/public-api.mjs +0 -6
  310. package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +0 -5
  311. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +0 -30
  312. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +0 -24
  313. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +0 -44
  314. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +0 -34
  315. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +0 -88
  316. package/esm2022/directives/click-outside/public-api.mjs +0 -2
  317. package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +0 -5
  318. package/esm2022/directives/click-outside/src/click-outside.directive.mjs +0 -30
  319. package/esm2022/directives/typography/public-api.mjs +0 -2
  320. package/esm2022/directives/typography/sixbell-telco-sdk-directives-typography.mjs +0 -5
  321. package/esm2022/directives/typography/src/typography.directive.mjs +0 -68
  322. package/esm2022/public_api.mjs +0 -2
  323. package/esm2022/sixbell-telco-sdk.mjs +0 -5
  324. package/esm2022/utils/cn/public-api.mjs +0 -2
  325. package/esm2022/utils/cn/sixbell-telco-sdk-utils-cn.mjs +0 -5
  326. package/esm2022/utils/cn/src/cn.mjs +0 -6
  327. package/esm2022/utils/generators/uuid/public-api.mjs +0 -2
  328. package/esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs +0 -5
  329. package/esm2022/utils/generators/uuid/src/uuid.mjs +0 -5
  330. package/esm2022/utils/pipes/extract-extension/public-api.mjs +0 -2
  331. package/esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +0 -5
  332. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +0 -30
  333. package/esm2022/utils/pipes/time/public-api.mjs +0 -2
  334. package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +0 -5
  335. package/esm2022/utils/pipes/time/src/time.pipe.mjs +0 -19
  336. package/esm2022/utils/pipes/to-bytes-extesion/public-api.mjs +0 -2
  337. package/esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +0 -5
  338. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +0 -29
  339. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -245
  340. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +0 -1
  341. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -121
  342. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +0 -1
  343. /package/assets/styles/{toast.scss → toast.css} +0 -0
  344. /package/components/file-upload/{file-dropzone/src/file-dropzone.constants.d.ts → shared/const/file-upload.constants.d.ts} +0 -0
@@ -1,207 +1,943 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, Component, ChangeDetectionStrategy, contentChildren, model, output, computed, Host } from '@angular/core';
2
+ import { signal, computed, Injectable, input, ChangeDetectionStrategy, Component, inject, contentChildren, output } from '@angular/core';
3
+ import { CommonModule, NgClass } from '@angular/common';
3
4
  import { cn } from '@sixbell-telco/sdk/utils/cn';
4
- import { NgClass } from '@angular/common';
5
+ import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
+ import { matChevronLeftOutline, matChevronRightOutline, matKeyboardReturnOutline, matSaveOutline } from '@ng-icons/material-icons/outline';
7
+ import { TranslateService, _, TranslatePipe } from '@ngx-translate/core';
5
8
  import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
6
- import { matCheckOutline, matKeyboardBackspaceOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
7
- import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
8
9
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
10
+ import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
11
+ import { matCheckOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
9
12
 
13
+ /**
14
+ * Enum-like object representing possible wizard step statuses
15
+ * @readonly
16
+ * @enum {string}
17
+ */
18
+ const WIZARD_STEP_STATUS = {
19
+ IN_PROGRESS: 'in progress',
20
+ PENDING: 'pending',
21
+ COMPLETED: 'completed',
22
+ };
23
+ /**
24
+ * Service for managing wizard state and navigation
25
+ * @Injectable
26
+ */
27
+ class WizardService {
28
+ // State signals
29
+ /** @private Internal signal for wizard steps */
30
+ _steps = signal([]);
31
+ /** @private Internal signal for current step index */
32
+ _currentStepIndex = signal(0);
33
+ /** @private Internal signal for first step index */
34
+ _fistStepIndex = signal(0);
35
+ /** @private Internal signal for last step index */
36
+ _lastStepIndex = signal(0);
37
+ /** @private Internal signal for transition state */
38
+ _isTransitioning = signal(false);
39
+ // Readonly signals
40
+ /** Readonly array of wizard steps */
41
+ steps = this._steps.asReadonly();
42
+ /**
43
+ * Current step index
44
+ * @readonly
45
+ */
46
+ currentStepIndex = this._currentStepIndex.asReadonly();
47
+ /**
48
+ * Currently active step
49
+ * @readonly
50
+ */
51
+ currentStep = computed(() => this.steps()[this.currentStepIndex()]);
52
+ /**
53
+ * Array of valid steps
54
+ * @readonly
55
+ */
56
+ validSteps = computed(() => this.steps().filter((step) => step.isValid));
57
+ /**
58
+ * Indicates if all steps are valid
59
+ * @readonly
60
+ */
61
+ areAllStepsValid = computed(() => this.validSteps().length === this.steps().length);
62
+ /**
63
+ * First step index
64
+ * @readonly
65
+ */
66
+ fistStepIndex = this._fistStepIndex.asReadonly();
67
+ /**
68
+ * First step in the wizard
69
+ * @readonly
70
+ */
71
+ firstStep = computed(() => this.steps()[this.fistStepIndex()]);
72
+ /**
73
+ * Last step index
74
+ * @readonly
75
+ */
76
+ lastStepIndex = this._lastStepIndex.asReadonly();
77
+ /**
78
+ * Last step in the wizard
79
+ * @readonly
80
+ */
81
+ lastStep = computed(() => this.steps()[this.lastStepIndex()]);
82
+ /**
83
+ * Completed steps
84
+ * @readonly
85
+ */
86
+ completedSteps = computed(() => this.steps().filter((step) => step.status === 'completed'));
87
+ /**
88
+ * Pending steps
89
+ * @readonly
90
+ */
91
+ pendingSteps = computed(() => this.steps().filter((step) => step.status === 'pending'));
92
+ /**
93
+ * In-progress steps
94
+ * @readonly
95
+ */
96
+ inProgressSteps = computed(() => this.steps().filter((step) => step.status === 'in progress'));
97
+ /**
98
+ * Indicates if all steps are completed
99
+ * @readonly
100
+ */
101
+ isCompleted = computed(() => this.completedSteps().length === this.steps().length);
102
+ /**
103
+ * Indicates if current step is the first step
104
+ * @readonly
105
+ */
106
+ isCurrentStepFirst = computed(() => this.currentStepIndex() === this.fistStepIndex());
107
+ /**
108
+ * Indicates if current step is the last step
109
+ * @readonly
110
+ */
111
+ isCurrentStepLast = computed(() => this.currentStepIndex() === this.lastStepIndex());
112
+ /**
113
+ * Indicates if wizard is transitioning between steps
114
+ * @readonly
115
+ */
116
+ isTransitioning = this._isTransitioning.asReadonly();
117
+ /**
118
+ * Initializes the wizard with given steps
119
+ * @param {WizardStep[]} steps - Array of step configurations
120
+ */
121
+ init(steps) {
122
+ this.setSteps(steps.map((step, index) => ({
123
+ ...step,
124
+ status: index === 0 ? 'in progress' : 'pending',
125
+ isValid: false,
126
+ })));
127
+ this.setFistStepIndex(0);
128
+ this.setLastStepIndex(steps.length - 1);
129
+ }
130
+ /**
131
+ * Replaces all steps with new configuration
132
+ * @param {WizardStepConfig[]} steps - New array of step configurations
133
+ */
134
+ setSteps(steps) {
135
+ this._steps.set(steps);
136
+ }
137
+ /**
138
+ * Adds a new step to the end of the wizard
139
+ * @param {WizardStepConfig} step - Step configuration to add
140
+ */
141
+ addStep(step) {
142
+ this.setSteps([...this.steps(), step]);
143
+ }
144
+ /**
145
+ * Inserts a step at specific index
146
+ * @param {number} index - Position to insert the step
147
+ * @param {WizardStepConfig} step - Step configuration to add
148
+ */
149
+ addStepAtIndex(index, step) {
150
+ const newSteps = this.steps().reduce((acc, s, i) => {
151
+ if (i === index) {
152
+ acc.push(step);
153
+ }
154
+ acc.push(s);
155
+ return acc;
156
+ }, []);
157
+ this.setSteps(newSteps);
158
+ }
159
+ /**
160
+ * Removes step at specified index
161
+ * @param {number} index - Index of step to remove
162
+ */
163
+ removeStep(index) {
164
+ const newSteps = this.steps().filter((_, i) => i !== index);
165
+ this.setSteps(newSteps);
166
+ }
167
+ /**
168
+ * Updates name of step at specified index
169
+ * @param {number} index - Index of step to update
170
+ * @param {string} name - New name for the step
171
+ */
172
+ updateStepName(index, name) {
173
+ const newSteps = this.steps().map((s, i) => (i === index ? { ...s, name } : s));
174
+ this.setSteps(newSteps);
175
+ }
176
+ /**
177
+ * Updates label of step at specified index
178
+ * @param {number} index - Index of step to update
179
+ * @param {string} label - New label for the step
180
+ */
181
+ updateStepLabel(index, label) {
182
+ const newSteps = this.steps().map((s, i) => (i === index ? { ...s, label } : s));
183
+ this.setSteps(newSteps);
184
+ }
185
+ /**
186
+ * Updates status of step at specified index
187
+ * @param {number} index - Index of step to update
188
+ * @param {WizardStepStatus} status - New status for the step
189
+ * @param {number} [stale] - Optional delay in milliseconds before applying changes
190
+ */
191
+ updateStepStatus(index, status, stale) {
192
+ const newSteps = this.steps().map((s, i) => (i === index ? { ...s, status } : s));
193
+ this._isTransitioning.set(true);
194
+ if (stale === undefined) {
195
+ this._isTransitioning.set(false);
196
+ this.setSteps(newSteps);
197
+ return;
198
+ }
199
+ setTimeout(() => {
200
+ this._isTransitioning.set(false);
201
+ this.setSteps(newSteps);
202
+ }, stale);
203
+ }
204
+ /**
205
+ * Updates validation status of step at specified index
206
+ * @param {number} index - Index of step to update
207
+ * @param {boolean} isValid - New validation status
208
+ */
209
+ updateStepIsValid(index, isValid) {
210
+ const newSteps = this.steps().map((s, i) => (i === index ? { ...s, isValid } : s));
211
+ this.setSteps(newSteps);
212
+ }
213
+ /**
214
+ * Replaces entire step configuration at specified index
215
+ * @param {number} index - Index of step to replace
216
+ * @param {WizardStepConfig} step - New step configuration
217
+ */
218
+ updateStep(index, step) {
219
+ const newSteps = this.steps().map((s, i) => (i === index ? step : s));
220
+ this.setSteps(newSteps);
221
+ }
222
+ /**
223
+ * Sets current active step index
224
+ * @param {number} index - New current step index
225
+ */
226
+ setCurrentStepIndex(index) {
227
+ this._currentStepIndex.set(index);
228
+ }
229
+ /**
230
+ * Sets index for first step in wizard
231
+ * @param {number} index - New first step index
232
+ */
233
+ setFistStepIndex(index) {
234
+ this._fistStepIndex.set(index);
235
+ }
236
+ /**
237
+ * Sets index for last step in wizard
238
+ * @param {number} index - New last step index
239
+ */
240
+ setLastStepIndex(index) {
241
+ this._lastStepIndex.set(index);
242
+ }
243
+ /**
244
+ * Navigates to next valid step
245
+ */
246
+ nextStep() {
247
+ if (!this.currentStep().isValid)
248
+ return;
249
+ const lastIndex = this._steps().length - 1;
250
+ const nextIndex = this.currentStepIndex() + 1;
251
+ if (nextIndex > lastIndex)
252
+ return;
253
+ const nextStepIndex = nextIndex;
254
+ this.updateStepStatus(this.currentStepIndex(), 'completed');
255
+ this._currentStepIndex.set(nextStepIndex);
256
+ this.updateStepStatus(nextStepIndex, 'in progress', 300);
257
+ }
258
+ /**
259
+ * Navigates to previous step
260
+ */
261
+ previousStep() {
262
+ if (this.currentStepIndex() <= 0)
263
+ return;
264
+ const previousStepIndex = this.currentStepIndex() - 1;
265
+ this.updateStepStatus(this.currentStepIndex(), 'pending');
266
+ this._currentStepIndex.set(previousStepIndex);
267
+ this.updateStepStatus(previousStepIndex, 'in progress', 300);
268
+ }
269
+ /**
270
+ * Jumps to specified step index
271
+ * @param {number} index - Target step index to navigate to
272
+ */
273
+ gotoStep(index) {
274
+ if (index < 0 || index >= this.steps().length)
275
+ return;
276
+ const newSteps = this.steps().map((step, i) => {
277
+ if (i === index) {
278
+ return { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };
279
+ }
280
+ if (index === this.fistStepIndex()) {
281
+ if (i === this.fistStepIndex()) {
282
+ return { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };
283
+ }
284
+ return { ...step, status: WIZARD_STEP_STATUS.PENDING };
285
+ }
286
+ if (index === this.lastStepIndex()) {
287
+ if (i === this.lastStepIndex()) {
288
+ return { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };
289
+ }
290
+ return { ...step, status: WIZARD_STEP_STATUS.COMPLETED };
291
+ }
292
+ if (i < index) {
293
+ return { ...step, status: WIZARD_STEP_STATUS.COMPLETED };
294
+ }
295
+ if (i > index) {
296
+ return { ...step, status: WIZARD_STEP_STATUS.PENDING };
297
+ }
298
+ return step;
299
+ });
300
+ this.setSteps(newSteps);
301
+ this._currentStepIndex.set(index);
302
+ }
303
+ /**
304
+ * Resets wizard to initial state
305
+ */
306
+ reset() {
307
+ this._steps.set([]);
308
+ this._currentStepIndex.set(0);
309
+ this._fistStepIndex.set(0);
310
+ this._lastStepIndex.set(0);
311
+ this._isTransitioning.set(false);
312
+ }
313
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
314
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardService, providedIn: 'root' });
315
+ }
316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardService, decorators: [{
317
+ type: Injectable,
318
+ args: [{
319
+ providedIn: 'root',
320
+ }]
321
+ }] });
322
+
323
+ class WizardActionsComponent {
324
+ // Base table properties
325
+ alignment = input('left');
326
+ componentClass = computed(() => {
327
+ return cn('flex flex-w items-center gap-2 text-pretty font-body leading-normal', {
328
+ 'justify-start': this.alignment() === 'left',
329
+ 'justify-end': this.alignment() === 'right',
330
+ 'justify-center': this.alignment() === 'center',
331
+ });
332
+ });
333
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
334
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: WizardActionsComponent, isStandalone: true, selector: "st-wizard-actions", inputs: { alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
335
+ }
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardActionsComponent, decorators: [{
337
+ type: Component,
338
+ args: [{ selector: 'st-wizard-actions', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n" }]
339
+ }] });
340
+
341
+ /**
342
+ * Component wrapper for individual wizard step content with validation integration.
343
+ *
344
+ * @remarks
345
+ * Manages content visibility and validation state synchronization with the wizard service.
346
+ * Automatically handles:
347
+ * - Step activation status
348
+ * - Validation state propagation
349
+ * - Fade animations
350
+ * - Destruction cleanup
351
+ *
352
+ * @example
353
+ * ```html
354
+ * <st-wizard-content
355
+ * [stepIndex]="0"
356
+ * [isValid]="form.valid"
357
+ * >
358
+ * <!-- Step content -->
359
+ * </st-wizard-content>
360
+ * ```
361
+ */
362
+ class WizardContentComponent {
363
+ /** @internal Injected wizard state service */
364
+ wizardService = inject(WizardService);
365
+ /**
366
+ * Position index in the wizard sequence (0-based)
367
+ * @default 0
368
+ */
369
+ stepIndex = input(0);
370
+ /**
371
+ * Current validation state of the step
372
+ * @default false
373
+ * @remarks Updates wizard service automatically when changed
374
+ */
375
+ isValid = input(false);
376
+ /**
377
+ * Computed status from wizard service
378
+ * @internal
379
+ */
380
+ status = computed(() => this.wizardService.steps()[this.stepIndex()].status);
381
+ /**
382
+ * Observable version of isValid input
383
+ * @internal
384
+ */
385
+ isValid$ = toObservable(this.isValid);
386
+ /**
387
+ * Current active step index from service
388
+ * @internal
389
+ */
390
+ currentStep = computed(() => this.wizardService.currentStepIndex());
391
+ /**
392
+ * Checks if this content's step is currently active
393
+ * @returns {boolean} True if stepIndex matches current active step
394
+ * @internal
395
+ */
396
+ isStepActive = computed(() => this.stepIndex() === this.wizardService.currentStepIndex());
397
+ /**
398
+ * Computed CSS classes for content container
399
+ * @returns {string} Animation classes
400
+ * @internal
401
+ */
402
+ componentClass = computed(() => cn('animate-fade-in animate-duration-300 text-pretty font-body leading-normal'));
403
+ /**
404
+ * Sets up validation state synchronization
405
+ * @remarks Uses takeUntilDestroyed for automatic cleanup
406
+ */
407
+ constructor() {
408
+ this.isValid$.pipe(takeUntilDestroyed()).subscribe((isValid) => {
409
+ this.wizardService.updateStepIsValid(this.stepIndex(), isValid);
410
+ });
411
+ }
412
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
413
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: WizardContentComponent, isStandalone: true, selector: "st-wizard-content", inputs: { stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: false, transformFunction: null }, isValid: { classPropertyName: "isValid", publicName: "isValid", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (this.isStepActive()) {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" });
414
+ }
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardContentComponent, decorators: [{
416
+ type: Component,
417
+ args: [{ selector: 'st-wizard-content', imports: [], template: "@if (this.isStepActive()) {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" }]
418
+ }], ctorParameters: () => [] });
419
+
420
+ /**
421
+ * Component that displays a status badge for wizard steps with translated labels.
422
+ *
423
+ * @remarks
424
+ * Shows visual indicators for different step states with automatic translations.
425
+ * Supports three status types with corresponding styling:
426
+ * - Completed (green background)
427
+ * - In progress (neutral border)
428
+ * - Pending (dimmed appearance)
429
+ *
430
+ * Uses NGX-Translate for localization of status labels.
431
+ *
432
+ * @example
433
+ * ```html
434
+ * <!-- Completed state -->
435
+ * <st-wizard-marker [status]="'completed'"></st-wizard-marker>
436
+ *
437
+ * <!-- In progress state -->
438
+ * <st-wizard-marker [status]="'in progress'"></st-wizard-marker>
439
+ * ```
440
+ */
10
441
  class WizardMarkerComponent {
11
- content = input.required();
12
- getStatusMarkerMessage(content) {
13
- return content.status() === 'completed' ? 'Completado' : content.status() === 'in progress' ? 'En progreso' : 'Pendiente';
14
- }
15
- getStepStatusMarkerClasses(content) {
16
- return cn('rounded-btn-xs', {
17
- 'transition-colors duration-300 ease-out delay-150 bg-primary bg-opacity-20 text-primary px-3 py-[5px]': content.status() === 'completed',
18
- 'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-secondary border-[2px] border-secondary px-[10px] py-[3px]': content.status() === 'in progress',
19
- 'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-tertiary border-[2px] border-tertiary px-[10px] py-[3px]': content.status() === 'pending',
442
+ /** @internal Translation service instance */
443
+ translateService = inject(TranslateService);
444
+ /** @internal Wizard state service */
445
+ wizardService = inject(WizardService);
446
+ /**
447
+ * Current status of the associated wizard step
448
+ * @remarks Determines badge styling and label
449
+ */
450
+ status = input.required();
451
+ /**
452
+ * Computed translated status message
453
+ * @internal
454
+ */
455
+ statusMarkerMessage = computed(() => this.getStatusMarkerMessage());
456
+ /**
457
+ * Computed CSS classes for the status badge
458
+ * @internal
459
+ */
460
+ statusMarkerClasses = computed(() => this.getStepStatusMarkerClasses());
461
+ /** @internal Signal holding translated "completed" text */
462
+ completed = signal('completed');
463
+ /** @internal Signal holding translated "in progress" text */
464
+ inProgress = signal('in progress');
465
+ /** @internal Signal holding translated "pending" text */
466
+ pending = signal('pending');
467
+ /** @internal Base CSS classes for the marker */
468
+ baseClasses = 'rounded-field transition-colors duration-300 ease-out delay-150 text-nowrap w-max';
469
+ /** @internal Status-to-class mapping */
470
+ statusClassMap = {
471
+ completed: 'bg-primary/20 text-primary px-3 py-[5px]',
472
+ 'in progress': 'bg-neutral text-neutral-content border-[2px] border-neutral px-[10px] py-[3px]',
473
+ pending: 'bg-neutral/20 text-neutral-content/20 border-[2px] border-neutral px-[10px] py-[3px]',
474
+ };
475
+ /**
476
+ * Initializes component translations
477
+ * @remarks Loads translated status labels using NGX-Translate
478
+ */
479
+ ngOnInit() {
480
+ this.initTranslatations();
481
+ }
482
+ /**
483
+ * Gets the appropriate translated status message
484
+ * @returns {string} Translated status label
485
+ * @internal
486
+ */
487
+ getStatusMarkerMessage() {
488
+ return this.status() === 'completed' ? this.completed() : this.status() === 'in progress' ? this.inProgress() : this.pending();
489
+ }
490
+ /**
491
+ * Computes CSS classes based on current status
492
+ * @returns {string} Combined Tailwind classes
493
+ * @internal
494
+ */
495
+ getStepStatusMarkerClasses() {
496
+ return cn(this.baseClasses, this.statusClassMap[this.status()]);
497
+ }
498
+ /**
499
+ * Initializes translations for status labels
500
+ * @remarks Uses translation keys:
501
+ * - 'sdk.wizard.wizardMarker.completed'
502
+ * - 'sdk.wizard.wizardMarker.inProgress'
503
+ * - 'sdk.wizard.wizardMarker.pending'
504
+ * @internal
505
+ */
506
+ initTranslatations() {
507
+ this.translateService.get(_('sdk.wizard.wizardMarker.completed')).subscribe((res) => {
508
+ this.completed.set(res);
509
+ });
510
+ this.translateService.get(_('sdk.wizard.wizardMarker.inProgress')).subscribe((res) => {
511
+ this.inProgress.set(res);
512
+ });
513
+ this.translateService.get(_('sdk.wizard.wizardMarker.pending')).subscribe((res) => {
514
+ this.pending.set(res);
20
515
  });
21
516
  }
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardMarkerComponent, isStandalone: true, selector: "st-wizard-marker", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let contentVar = content();\n<div [class]=\"getStepStatusMarkerClasses(contentVar)\">\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ getStatusMarkerMessage(contentVar) }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
517
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
518
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: WizardMarkerComponent, isStandalone: true, selector: "st-wizard-marker", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"statusMarkerClasses()\">\n\t<span typography [tyVariant]=\"'body-xxs'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'medium'\">{{ statusMarkerMessage() }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
24
519
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardMarkerComponent, decorators: [{
520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardMarkerComponent, decorators: [{
26
521
  type: Component,
27
- args: [{ selector: 'st-wizard-marker', standalone: true, imports: [TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let contentVar = content();\n<div [class]=\"getStepStatusMarkerClasses(contentVar)\">\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ getStatusMarkerMessage(contentVar) }}</span>\n</div>\n" }]
522
+ args: [{ selector: 'st-wizard-marker', imports: [TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"statusMarkerClasses()\">\n\t<span typography [tyVariant]=\"'body-xxs'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'medium'\">{{ statusMarkerMessage() }}</span>\n</div>\n" }]
28
523
  }] });
29
524
 
525
+ /**
526
+ * Visual indicator component for individual wizard steps with status-dependent styling and animations.
527
+ *
528
+ * @remarks
529
+ * Displays step progress through dynamic border and background colors. Supports three states:
530
+ * - Completed (checkmark icon)
531
+ * - In progress (highlighted border)
532
+ * - Pending (dimmed appearance)
533
+ *
534
+ * Uses Angular signals for optimized change detection and smooth transitions.
535
+ *
536
+ * @example
537
+ * ```html
538
+ * <!-- Completed step with custom icon -->
539
+ * <st-wizard-step
540
+ * [stepIndex]="1"
541
+ * [status]="'completed'"
542
+ * icon="user-profile"
543
+ * ></st-wizard-step>
544
+ *
545
+ * <!-- Current active step -->
546
+ * <st-wizard-step
547
+ * [stepIndex]="2"
548
+ * [status]="'in progress'"
549
+ * ></st-wizard-step>
550
+ * ```
551
+ */
30
552
  class WizardStepComponent {
553
+ /** @internal Injected wizard state service */
554
+ wizardService = inject(WizardService);
555
+ /**
556
+ * Optional custom icon name for completed state
557
+ * @default undefined (uses checkmark)
558
+ */
559
+ icon = input();
560
+ /**
561
+ * Current progress status of the step
562
+ * @remarks Determines visual state and transitions
563
+ */
31
564
  status = input.required();
32
- content = input.required();
33
- currentStep = input.required();
34
- icon = matCheckOutline;
35
- getStepClasses(currentStep, content) {
36
- const outerClasses = cn('flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border-[1px] border-solid p-[2px] font-medium text-neutral-content', {
37
- 'border-primary currentStep transition-colors duration-300 ease-out': currentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),
38
- 'border-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',
39
- 'border-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]': currentStep !== content.step() && content.status() === 'pending',
565
+ /**
566
+ * Position in wizard sequence (0-based index)
567
+ * @remarks Used for current step comparison
568
+ */
569
+ stepIndex = input.required();
570
+ /** @internal Predefined checkmark icon */
571
+ iconCheck = matCheckOutline;
572
+ /**
573
+ * Computed CSS classes for step containers
574
+ * @returns {Object} Classes for outer/inner elements
575
+ * @remarks Applies:
576
+ * - 300ms color transitions
577
+ * - 300ms delay for pending states
578
+ * - Primary colors for active/completed states
579
+ * @internal
580
+ */
581
+ stepClasses = computed(() => {
582
+ // Base classes
583
+ const baseOuterClasses = 'flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border-[1px] border-solid p-[2px] font-medium text-neutral-content';
584
+ const baseInnerClasses = 'flex h-full w-full items-center justify-center rounded-full bg-secondary';
585
+ // State variables
586
+ const isCurrentStep = this.wizardService.currentStepIndex() === this.stepIndex();
587
+ const currentStatus = this.status();
588
+ const isCompleted = currentStatus === 'completed';
589
+ const isInProgress = currentStatus === 'in progress';
590
+ // Conditions
591
+ const isCurrentActive = isCurrentStep && (isInProgress || isCompleted);
592
+ const isCompletedNotCurrent = !isCurrentStep && isCompleted;
593
+ const isPendingNotCurrent = !isCurrentStep && currentStatus === 'pending';
594
+ const outerClasses = cn(baseOuterClasses, {
595
+ 'border-primary currentStep transition-colors duration-300 ease-out': isCurrentActive,
596
+ 'border-primary notCurrentStep transition-colors duration-300 ease-out': isCompletedNotCurrent,
597
+ 'border-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]': isPendingNotCurrent,
40
598
  });
41
- const innerClasses = cn('flex h-full w-full items-center justify-center rounded-full', {
42
- 'bg-primary currentStep transition-colors duration-300 ease-out': currentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),
43
- 'bg-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',
44
- 'bg-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]': currentStep !== content.step() && content.status() === 'pending',
599
+ const innerClasses = cn(baseInnerClasses, {
600
+ 'bg-primary text-primary-content currentStep transition-colors duration-300 ease-out': isCurrentActive,
601
+ 'bg-primary text-primary-content notCurrentStep transition-colors duration-300 ease-out': isCompletedNotCurrent,
602
+ 'bg-secondary text-secondary-content notCurrentStep transition-colors duration-300 ease-out delay-[300ms]': isPendingNotCurrent,
45
603
  });
46
604
  return { outerClasses, innerClasses };
47
- }
48
- get stepNumberClasses() {
605
+ });
606
+ /**
607
+ * Step number visibility classes
608
+ * @returns {string} Tailwind classes with fade animation
609
+ * @remarks
610
+ * - Hidden when completed
611
+ * - 350ms fade-in delay for smooth transitions
612
+ * @internal
613
+ */
614
+ stepNumberClasses = computed(() => {
615
+ const isCompleted = this.status() === 'completed';
49
616
  return cn({
50
- 'hidden opacity-0': this.status() === 'completed',
51
- 'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'in progress' || this.status() === 'pending',
617
+ 'hidden opacity-0': isCompleted,
618
+ 'animate-fade-in animate-duration-300 delay-[350ms] opacity-100': !isCompleted,
52
619
  });
53
- }
54
- get stepIconClasses() {
620
+ });
621
+ /**
622
+ * Completion icon visibility classes
623
+ * @returns {string} Tailwind classes with fade animation
624
+ * @remarks
625
+ * - Only visible when completed
626
+ * - 350ms fade-in delay for smooth transition
627
+ * @internal
628
+ */
629
+ stepIconClasses = computed(() => {
630
+ const isCompleted = this.status() === 'completed';
55
631
  return cn({
56
- 'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'completed',
57
- 'hidden opacity-0': this.status() === 'in progress' || this.status() === 'pending',
632
+ 'animate-fade-in animate-duration-300 delay-[350ms] opacity-100': isCompleted,
633
+ 'hidden opacity-0': !isCompleted,
58
634
  });
59
- }
60
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let currentStepVar = currentStep();\n@let contentVar = content();\n\n<div [class]=\"getStepClasses(currentStepVar, contentVar).outerClasses\">\n\t<div [class]=\"getStepClasses(currentStepVar, contentVar).innerClasses\">\n\t\t<div [class]=\"stepNumberClasses\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t{{ contentVar.step() + 1 }}\n\t\t\t</span>\n\t\t</div>\n\t\t<st-icon [class]=\"stepIconClasses\" [icon]=\"icon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
635
+ });
636
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
637
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t@let iconVar = icon();\n\t\t\t@if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t} @else {\n\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t</div>\n\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
638
  }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardStepComponent, decorators: [{
639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardStepComponent, decorators: [{
64
640
  type: Component,
65
- args: [{ selector: 'st-wizard-step', standalone: true, imports: [TypographyDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let currentStepVar = currentStep();\n@let contentVar = content();\n\n<div [class]=\"getStepClasses(currentStepVar, contentVar).outerClasses\">\n\t<div [class]=\"getStepClasses(currentStepVar, contentVar).innerClasses\">\n\t\t<div [class]=\"stepNumberClasses\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t{{ contentVar.step() + 1 }}\n\t\t\t</span>\n\t\t</div>\n\t\t<st-icon [class]=\"stepIconClasses\" [icon]=\"icon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n" }]
641
+ args: [{ selector: 'st-wizard-step', imports: [TypographyDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t@let iconVar = icon();\n\t\t\t@if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t} @else {\n\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t</div>\n\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</div>\n\t</div>\n</div>\n" }]
66
642
  }] });
67
643
 
644
+ /**
645
+ * A component that visualizes the connection between wizard steps with animated progress indicators.
646
+ *
647
+ * @remarks
648
+ * Handles both horizontal and vertical layouts with status-dependent animations. Manages three segments:
649
+ * - Left connector (before the step)
650
+ * - Center indicator (current step marker)
651
+ * - Right connector (after the step)
652
+ *
653
+ * @example
654
+ * ```html
655
+ * <!-- Horizontal sub-step -->
656
+ * <st-wizard-sub-step
657
+ * [stepIndex]="1"
658
+ * [stepStatus]="'completed'"
659
+ * ></st-wizard-sub-step>
660
+ *
661
+ * <!-- Vertical sub-step -->
662
+ * <st-wizard-sub-step
663
+ * variant="vertical"
664
+ * [stepIndex]="2"
665
+ * [stepStatus]="'in progress'"
666
+ * ></st-wizard-sub-step>
667
+ * ```
668
+ */
68
669
  class WizardSubStepComponent {
69
- content = input.required();
70
- currentStep = input.required();
71
- getSubStepClasses(currentStep, content) {
72
- const leftClasses = cn('h-[2px] w-full', {
73
- 'bg-secondary currentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out': currentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),
74
- 'bg-secondary notCurrentSte relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out': currentStep !== content.step() && content.status() === 'completed',
75
- 'bg-secondary notCurrentStep relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]': currentStep !== content.step() && content.status() === 'pending',
76
- });
77
- const centerClasses = cn('h-3 min-h-3 w-3 min-w-3 rounded-full', {
78
- 'bg-primary currentStep transition-colors duration-300 ease-out delay-300': currentStep === content.step() && content.status() === 'in progress',
79
- 'bg-primary notCurrentStep transition-colors duration-300 ease-out delay-300': currentStep !== content.step() && content.status() === 'completed',
80
- 'bg-primary currentStep inProgress transition-colors duration-300 ease-out delay-300': currentStep === content.step() && content.status() === 'completed',
81
- 'bg-secondary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'pending',
82
- });
83
- const rightClasses = cn('h-[2px] w-full', {
84
- 'bg-secondary currentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]': currentStep === content.step() && content.status() === 'completed',
85
- 'bg-secondary notCurrentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]': currentStep !== content.step() && content.status() === 'completed',
86
- 'bg-secondary currentStep inProgress relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out': currentStep === content.step() && content.status() === 'in progress',
87
- 'bg-secondary notCurrentStep relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[" "] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out': currentStep !== content.step() && content.status() === 'pending',
88
- });
89
- return { leftClasses, centerClasses, rightClasses };
90
- }
91
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardSubStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
92
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardSubStepComponent, isStandalone: true, selector: "st-wizard-sub-step", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let currentStepVar = currentStep();\n@let contentVar = content();\n<div class=\"flex flex-1 -translate-y-3 items-center\">\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).leftClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).centerClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).rightClasses\"></div>\n</div>\n" });
670
+ /**
671
+ * Layout direction for the sub-step connectors
672
+ * @default 'horizontal'
673
+ */
674
+ variant = input('horizontal');
675
+ /** @internal Injected wizard state service */
676
+ wizardService = inject(WizardService);
677
+ /**
678
+ * Index of the parent step in the wizard sequence
679
+ * @remarks Required for position calculation
680
+ */
681
+ stepIndex = input.required();
682
+ /**
683
+ * Current status of the associated wizard step
684
+ * @remarks Determines visual state and animations
685
+ */
686
+ stepStatus = input.required();
687
+ /**
688
+ * Checks if this sub-step's index matches the current active step
689
+ * @returns {boolean} True if this is the active step
690
+ * @internal
691
+ */
692
+ isCurrentStep = computed(() => this.wizardService.currentStepIndex() === this.stepIndex());
693
+ /**
694
+ * Computed classes for horizontal left connector segment
695
+ * @returns {string} Tailwind classes with animated width transition
696
+ * @internal
697
+ */
698
+ horizontalLeftClasses = computed(() => {
699
+ const isCompleted = this.stepStatus() === 'completed';
700
+ const isInProgress = this.stepStatus() === 'in progress';
701
+ const afterWidthClass = isCompleted || (this.isCurrentStep() && isInProgress) ? 'after:w-full' : 'after:w-0';
702
+ return cn('h-[2px] w-full bg-secondary relative', 'after:absolute after:left-0 after:bottom-0 after:bg-primary after:h-[2px]', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
703
+ });
704
+ /**
705
+ * Computed classes for horizontal center indicator
706
+ * @returns {string} Tailwind classes with color transition delays
707
+ * @internal
708
+ */
709
+ horizontalCenterClasses = computed(() => {
710
+ const isPrimaryBg = (this.isCurrentStep() && this.stepStatus() !== 'pending') || (!this.isCurrentStep() && this.stepStatus() === 'completed');
711
+ return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
712
+ });
713
+ /**
714
+ * Computed classes for horizontal right connector segment
715
+ * @returns {string} Tailwind classes with completion-based width
716
+ * @internal
717
+ */
718
+ horizontalRightClasses = computed(() => {
719
+ const isCompleted = this.stepStatus() === 'completed';
720
+ const afterWidthClass = isCompleted ? 'after:w-full' : 'after:w-0';
721
+ return cn('h-[2px] w-full bg-secondary relative', 'after:absolute after:left-0 after:bottom-0 after:bg-primary after:h-[2px]', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
722
+ });
723
+ /**
724
+ * Computed classes for vertical left connector segment
725
+ * @returns {string} Tailwind classes with animated height transition
726
+ * @internal
727
+ */
728
+ verticalLeftClasses = computed(() => {
729
+ const isCompleted = this.stepStatus() === 'completed';
730
+ const isInProgress = this.stepStatus() === 'in progress';
731
+ const afterHeightClass = isCompleted || (this.isCurrentStep() && isInProgress) ? 'after:h-full' : 'after:h-0';
732
+ return cn('w-[2px] h-full bg-secondary relative rotate-180', 'after:absolute after:left-0 after:bottom-0 after:bg-primary after:w-[2px]', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
733
+ });
734
+ /**
735
+ * Computed classes for vertical center indicator
736
+ * @returns {string} Tailwind classes with color transition logic
737
+ * @internal
738
+ */
739
+ verticalCenterClasses = computed(() => {
740
+ const isPrimaryBg = (this.isCurrentStep() && this.stepStatus() !== 'pending') || (!this.isCurrentStep() && this.stepStatus() === 'completed');
741
+ return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
742
+ });
743
+ /**
744
+ * Computed classes for vertical right connector segment
745
+ * @returns {string} Tailwind classes with completion-based height
746
+ * @internal
747
+ */
748
+ verticalRightClasses = computed(() => {
749
+ const isCompleted = this.stepStatus() === 'completed';
750
+ const afterHeightClass = isCompleted ? 'after:h-full' : 'after:h-0';
751
+ return cn('w-[2px] h-full bg-secondary relative rotate-180', 'after:absolute after:left-0 after:bottom-0 after:bg-primary after:w-[2px]', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
752
+ });
753
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardSubStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
754
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: WizardSubStepComponent, isStandalone: true, selector: "st-wizard-sub-step", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null }, stepStatus: { classPropertyName: "stepStatus", publicName: "stepStatus", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (variant() === 'horizontal') {\n\t<div class=\"flex w-full min-w-full -translate-y-[18px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"flex h-20 min-h-20 w-fit translate-x-[18px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" });
93
755
  }
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardSubStepComponent, decorators: [{
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardSubStepComponent, decorators: [{
95
757
  type: Component,
96
- args: [{ selector: 'st-wizard-sub-step', standalone: true, imports: [], template: "@let currentStepVar = currentStep();\n@let contentVar = content();\n<div class=\"flex flex-1 -translate-y-3 items-center\">\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).leftClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).centerClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).rightClasses\"></div>\n</div>\n" }]
758
+ args: [{ selector: 'st-wizard-sub-step', imports: [], template: "@if (variant() === 'horizontal') {\n\t<div class=\"flex w-full min-w-full -translate-y-[18px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"flex h-20 min-h-20 w-fit translate-x-[18px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" }]
97
759
  }] });
98
760
 
761
+ /**
762
+ * A container component for multi-step workflows with navigation controls and layout management.
763
+ *
764
+ * @remarks
765
+ * Integrates with WizardService for state management and provides template structure for wizard steps.
766
+ * Supports both horizontal and vertical layouts with customizable navigation controls.
767
+ *
768
+ * @example
769
+ * ```html
770
+ * <!-- Basic horizontal wizard -->
771
+ * <st-wizard>
772
+ * <st-wizard-content [stepIndex]="0" name="Step 1" [isValid]="true">
773
+ * <!-- Step content -->
774
+ * </st-wizard-content>
775
+ * <st-wizard-content [stepIndex]="1" name="Step 2">
776
+ * <!-- Step content -->
777
+ * </st-wizard-content>
778
+ * </st-wizard>
779
+ *
780
+ * <!-- Vertical wizard with external controls -->
781
+ * <st-wizard variant="vertical" [showControls]="false">
782
+ * <!-- Step contents -->
783
+ * </st-wizard>
784
+ * <div class="controls">
785
+ * <st-button (click)="handlePrevious()">Previous</st-button>
786
+ * <st-button (click)="handleNext()">Next</st-button>
787
+ * </div>
788
+ * ```
789
+ */
99
790
  class WizardWrapperComponent {
791
+ /**
792
+ * Injected wizard state management service instance
793
+ * @internal
794
+ */
795
+ wizardService = inject(WizardService);
796
+ /**
797
+ * Controls the layout direction of the wizard steps
798
+ * @default 'horizontal'
799
+ * @example
800
+ * <st-wizard variant="vertical">...</st-wizard>
801
+ */
802
+ variant = input('horizontal');
803
+ /**
804
+ * Add a card style to the wizard
805
+ * @default false
806
+ * @example
807
+ * <st-wizard [card]="true">...</st-wizard>
808
+ */
809
+ card = input(false);
810
+ /**
811
+ * Query list of contained wizard content components
812
+ * @internal
813
+ */
100
814
  contents = contentChildren(WizardContentComponent);
101
- currentStep = model(0);
102
- onBack = output();
103
- oncompleted = output();
104
- isFirstStep = computed(() => this.currentStep() === 0);
105
- isLastStep = computed(() => this.currentStep() === this.contents().length - 1);
106
- allStepsAreValid = computed(() => this.contents().every((step) => step.isValid()));
107
- isCurrentStepValid = computed(() => this.contents()[this.currentStep()].isValid());
108
- icon = matKeyboardBackspaceOutline;
109
- handlePreviousStep() {
110
- if (this.currentStep() <= 0) {
111
- return;
112
- }
113
- this.currentStep.set(this.currentStep() - 1);
114
- this.handleStepStatusChange(this.contents()[this.currentStep()]);
115
- }
116
- handleNextStep() {
117
- if (this.currentStep() >= this.contents().length - 1) {
118
- return;
119
- }
120
- if (!this.isCurrentStepValid()) {
121
- return;
122
- }
123
- this.currentStep.set(this.currentStep() + 1);
124
- this.handleStepStatusChange(this.contents()[this.currentStep()]);
125
- }
815
+ /**
816
+ * Controls visibility of built-in navigation controls
817
+ * @default true
818
+ * @example
819
+ * <st-wizard [showControls]="false">...</st-wizard>
820
+ */
821
+ showControls = input(true);
822
+ /**
823
+ * Event emitted when the back button is clicked
824
+ * @example
825
+ * <st-wizard (back)="handleCancel()">...</st-wizard>
826
+ */
827
+ back = output();
828
+ /**
829
+ * Event emitted when navigating to the previous step
830
+ * @example
831
+ * <st-wizard (previous)="logStepChange('previous')">...</st-wizard>
832
+ */
833
+ previous = output();
834
+ /**
835
+ * Event emitted when navigating to the next valid step
836
+ * @example
837
+ * <st-wizard (next)="logStepChange('next')">...</st-wizard>
838
+ */
839
+ next = output();
840
+ /**
841
+ * Event emitted when all steps are completed
842
+ * @example
843
+ * <st-wizard (complete)="showCompletionModal()">...</st-wizard>
844
+ */
845
+ complete = output();
846
+ /**
847
+ * Controls visibility of the loading spinner for completition button
848
+ * @default false
849
+ * @example
850
+ * <st-wizard [loading]="true">...</st-wizard>
851
+ */
852
+ loading = input(false);
853
+ // Icon definitions
854
+ /** @internal Material design chevron left icon */
855
+ iconChevronLeft = matChevronLeftOutline;
856
+ /** @internal Material design chevron right icon */
857
+ iconChevronRight = matChevronRightOutline;
858
+ /** @internal Material design return arrow icon */
859
+ iconReturn = matKeyboardReturnOutline;
860
+ /** @internal Material design save/floppy disk icon */
861
+ iconSave = matSaveOutline;
862
+ /**
863
+ * Handles back navigation and emits onBack event
864
+ * @emits back
865
+ * @example
866
+ * // Template
867
+ * <button (click)="handleBack()">Cancel</button>
868
+ *
869
+ * // Component
870
+ * handleBack() {
871
+ * this.back.emit();
872
+ * }
873
+ */
126
874
  handleBack() {
127
- this.onBack.emit();
875
+ this.back.emit();
128
876
  }
129
- handleComplete() {
130
- if (!this.isCurrentStepValid()) {
131
- return;
132
- }
133
- this.oncompleted.emit();
877
+ /**
878
+ * Navigates to previous step and emits previous event
879
+ * @emits previous
880
+ * @example
881
+ * // Manually trigger previous step
882
+ * previousStep() {
883
+ * this.wizardService.previousStep();
884
+ * this.previous.emit();
885
+ * }
886
+ */
887
+ handlePrevious() {
888
+ this.wizardService.previousStep();
889
+ this.previous.emit();
134
890
  }
135
- handleStepStatusChange(step) {
136
- this.contents().forEach((s) => {
137
- if (s.step() < step.step()) {
138
- s.status.set('completed');
139
- return;
140
- }
141
- if (s.step() > step.step()) {
142
- s.status.set('pending');
143
- return;
144
- }
145
- if (s.step() === step.step() && !step.isValid()) {
146
- s.status.set('in progress');
147
- return;
148
- }
149
- if (s.step() === step.step() && step.isValid()) {
150
- s.status.set('completed');
151
- return;
152
- }
153
- });
891
+ /**
892
+ * Navigates to next valid step and emits next event
893
+ * @emits next
894
+ * @example
895
+ * // Custom next step handler
896
+ * handleNext() {
897
+ * if (form.valid) {
898
+ * this.wizardService.nextStep();
899
+ * this.next.emit();
900
+ * }
901
+ * }
902
+ */
903
+ handleNext() {
904
+ this.wizardService.nextStep();
905
+ this.next.emit();
154
906
  }
155
- getStepClasses(currentStep, step) {
156
- const outerClasses = cn({
157
- 'border-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),
158
- 'border-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',
159
- 'border-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',
160
- });
161
- const innerClasses = cn({
162
- 'bg-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),
163
- 'bg-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',
164
- 'bg-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',
165
- });
166
- return { outerClasses, innerClasses };
907
+ /**
908
+ * Completes wizard flow and emits complete event
909
+ * @emits complete
910
+ * @example
911
+ * // Final step handler
912
+ * handleComplete() {
913
+ * if (allStepsValid) {
914
+ * this.complete.emit();
915
+ * }
916
+ * }
917
+ */
918
+ handleComplete() {
919
+ this.complete.emit();
167
920
  }
168
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
169
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentStep: "currentStepChange", onBack: "onBack", oncompleted: "oncompleted" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let currentStepVar = currentStep();\n\n<div class=\"flex flex-col gap-5\">\n\t<ul class=\"flex gap-4 px-[20%] pt-6\">\n\t\t@for (content of contentsVar; track $index) {\n\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t<st-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></st-wizard-step>\n\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-marker [content]=\"content\"></st-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<st-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></st-wizard-sub-step>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"w-[50px]\">\n\t\t\t\t\t<div class=\"flex max-w-fit flex-col items-center text-secondary\">\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ content.name() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ content.label() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t}\n\t</ul>\n\n\t<div>\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<div class=\"flex items-center justify-center gap-5\">\n\t\t@if (isFirstStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button variant=\"secondary\" (click)=\"handleBack()\" [block]=\"true\">Volver</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [icon]=\"icon\" variant=\"secondary\" (click)=\"handlePreviousStep()\" [block]=\"true\">Anterior</st-button>\n\t\t\t</div>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!allStepsAreValid()\" variant=\"secondary\" (click)=\"handleComplete()\" [block]=\"true\">Finalizar</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!isCurrentStepValid()\" (click)=\"handleNextStep()\" [block]=\"true\">Siguiente</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["status", "content", "currentStep"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "shadow", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["content"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["content", "currentStep"] }] });
921
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
922
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", previous: "previous", next: "next", complete: "complete" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'medium'\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\">\n\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}</span\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'medium'\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}</span\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center justify-end gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{ 'sdk.wizard.wizardWrapper.back' | translate }}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronRight\" iconPosition=\"right\" [disabled]=\"!wizardService.currentStep().isValid\" (click)=\"handleNext()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.next' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["icon", "status", "stepIndex"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["status"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["variant", "stepIndex", "stepStatus"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
170
923
  }
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardWrapperComponent, decorators: [{
924
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WizardWrapperComponent, decorators: [{
172
925
  type: Component,
173
- args: [{ selector: 'st-wizard', standalone: true, imports: [WizardStepComponent, ButtonComponent, NgClass, TypographyDirective, WizardMarkerComponent, WizardSubStepComponent], template: "@let contentsVar = contents();\n@let currentStepVar = currentStep();\n\n<div class=\"flex flex-col gap-5\">\n\t<ul class=\"flex gap-4 px-[20%] pt-6\">\n\t\t@for (content of contentsVar; track $index) {\n\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t<st-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></st-wizard-step>\n\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-marker [content]=\"content\"></st-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<st-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></st-wizard-sub-step>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"w-[50px]\">\n\t\t\t\t\t<div class=\"flex max-w-fit flex-col items-center text-secondary\">\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ content.name() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ content.label() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t}\n\t</ul>\n\n\t<div>\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<div class=\"flex items-center justify-center gap-5\">\n\t\t@if (isFirstStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button variant=\"secondary\" (click)=\"handleBack()\" [block]=\"true\">Volver</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [icon]=\"icon\" variant=\"secondary\" (click)=\"handlePreviousStep()\" [block]=\"true\">Anterior</st-button>\n\t\t\t</div>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!allStepsAreValid()\" variant=\"secondary\" (click)=\"handleComplete()\" [block]=\"true\">Finalizar</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!isCurrentStepValid()\" (click)=\"handleNextStep()\" [block]=\"true\">Siguiente</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n" }]
926
+ args: [{ selector: 'st-wizard', imports: [
927
+ WizardStepComponent,
928
+ ButtonComponent,
929
+ NgClass,
930
+ TypographyDirective,
931
+ WizardMarkerComponent,
932
+ WizardSubStepComponent,
933
+ TranslatePipe,
934
+ IconComponent,
935
+ ], template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'medium'\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\">\n\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}</span\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'medium'\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}</span\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center justify-end gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{ 'sdk.wizard.wizardWrapper.back' | translate }}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronRight\" iconPosition=\"right\" [disabled]=\"!wizardService.currentStep().isValid\" (click)=\"handleNext()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.next' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n" }]
174
936
  }] });
175
937
 
176
- class WizardContentComponent {
177
- wizard;
178
- step = input(0);
179
- name = input('');
180
- status = model.required();
181
- isValid = model.required();
182
- label = input('');
183
- classes = input('');
184
- currentStep = computed(() => this.wizard.currentStep());
185
- isStepActive = computed(() => this.step() === this.currentStep());
186
- constructor(wizard) {
187
- this.wizard = wizard;
188
- }
189
- get componentClass() {
190
- return cn('animate-fade-in animate-duration-300', this.classes());
191
- }
192
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardContentComponent, deps: [{ token: WizardWrapperComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
193
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: WizardContentComponent, isStandalone: true, selector: "st-wizard-content", inputs: { step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, isValid: { classPropertyName: "isValid", publicName: "isValid", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { status: "statusChange", isValid: "isValidChange" }, ngImport: i0, template: "@if (this.isStepActive()) {\n\t<div [class]=\"componentClass\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" });
194
- }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardContentComponent, decorators: [{
196
- type: Component,
197
- args: [{ selector: 'st-wizard-content', standalone: true, imports: [], template: "@if (this.isStepActive()) {\n\t<div [class]=\"componentClass\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" }]
198
- }], ctorParameters: () => [{ type: WizardWrapperComponent, decorators: [{
199
- type: Host
200
- }] }] });
201
-
202
938
  /**
203
939
  * Generated bundle index. Do not edit.
204
940
  */
205
941
 
206
- export { WizardContentComponent, WizardMarkerComponent, WizardStepComponent, WizardSubStepComponent, WizardWrapperComponent };
942
+ export { WIZARD_STEP_STATUS, WizardActionsComponent, WizardContentComponent, WizardService, WizardWrapperComponent };
207
943
  //# sourceMappingURL=sixbell-telco-sdk-components-wizard.mjs.map