@sixbell-telco/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/_index.scss +137 -0
  2. package/assets/fonts/Poppins-Black.ttf +0 -0
  3. package/assets/fonts/Poppins-BlackItalic.ttf +0 -0
  4. package/assets/fonts/Poppins-Bold.ttf +0 -0
  5. package/assets/fonts/Poppins-BoldItalic.ttf +0 -0
  6. package/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  7. package/assets/fonts/Poppins-ExtraBoldItalic.ttf +0 -0
  8. package/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  9. package/assets/fonts/Poppins-ExtraLightItalic.ttf +0 -0
  10. package/assets/fonts/Poppins-Italic.ttf +0 -0
  11. package/assets/fonts/Poppins-Light.ttf +0 -0
  12. package/assets/fonts/Poppins-LightItalic.ttf +0 -0
  13. package/assets/fonts/Poppins-Medium.ttf +0 -0
  14. package/assets/fonts/Poppins-MediumItalic.ttf +0 -0
  15. package/assets/fonts/Poppins-Regular.ttf +0 -0
  16. package/assets/fonts/Poppins-SemiBold.ttf +0 -0
  17. package/assets/fonts/Poppins-SemiBoldItalic.ttf +0 -0
  18. package/assets/fonts/Poppins-Thin.ttf +0 -0
  19. package/assets/fonts/Poppins-ThinItalic.ttf +0 -0
  20. package/assets/icons/icons.svg +1021 -0
  21. package/assets/styles/combobox.scss +449 -0
  22. package/assets/styles/fonts.scss +85 -0
  23. package/assets/styles/toast.scss +55 -0
  24. package/components/accordion/accordion-item/accordion-item.component.d.ts +19 -0
  25. package/components/accordion/index.d.ts +5 -0
  26. package/components/accordion/public-api.d.ts +2 -0
  27. package/components/accordion/src/accordion.component.d.ts +7 -0
  28. package/components/avatar/index.d.ts +5 -0
  29. package/components/avatar/public-api.d.ts +1 -0
  30. package/components/avatar/src/avatar.component.d.ts +30 -0
  31. package/components/button/index.d.ts +5 -0
  32. package/components/button/public-api.d.ts +1 -0
  33. package/components/button/src/button.component.d.ts +35 -0
  34. package/components/card/index.d.ts +5 -0
  35. package/components/card/public-api.d.ts +1 -0
  36. package/components/card/src/card.component.d.ts +16 -0
  37. package/components/countdown/index.d.ts +5 -0
  38. package/components/countdown/public-api.d.ts +1 -0
  39. package/components/countdown/src/countdown.component.d.ts +30 -0
  40. package/components/dropdown/index.d.ts +5 -0
  41. package/components/dropdown/public-api.d.ts +1 -0
  42. package/components/dropdown/src/dropdown.component.d.ts +39 -0
  43. package/components/dual-list/index.d.ts +5 -0
  44. package/components/dual-list/public-api.d.ts +1 -0
  45. package/components/dual-list/src/dual-list.component.d.ts +82 -0
  46. package/components/file-upload/file-dropzone/index.d.ts +5 -0
  47. package/components/file-upload/file-dropzone/public-api.d.ts +1 -0
  48. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +14 -0
  49. package/components/file-upload/file-uploader/index.d.ts +5 -0
  50. package/components/file-upload/file-uploader/public-api.d.ts +1 -0
  51. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +43 -0
  52. package/components/forms/checkbox/index.d.ts +5 -0
  53. package/components/forms/checkbox/public-api.d.ts +1 -0
  54. package/components/forms/checkbox/src/checkbox.component.d.ts +29 -0
  55. package/components/forms/combobox/index.d.ts +5 -0
  56. package/components/forms/combobox/public-api.d.ts +1 -0
  57. package/components/forms/combobox/src/combobox.component.d.ts +53 -0
  58. package/components/forms/datepicker/index.d.ts +5 -0
  59. package/components/forms/datepicker/public-api.d.ts +2 -0
  60. package/components/forms/datepicker/src/datepicker-format-month.pipe.d.ts +10 -0
  61. package/components/forms/datepicker/src/datepicker.component.d.ts +52 -0
  62. package/components/forms/form-error/index.d.ts +5 -0
  63. package/components/forms/form-error/public-api.d.ts +1 -0
  64. package/components/forms/form-error/src/form-error.component.d.ts +17 -0
  65. package/components/forms/input/index.d.ts +5 -0
  66. package/components/forms/input/public-api.d.ts +1 -0
  67. package/components/forms/input/src/input.component.d.ts +51 -0
  68. package/components/forms/radio/index.d.ts +5 -0
  69. package/components/forms/radio/public-api.d.ts +1 -0
  70. package/components/forms/radio/src/radio.component.d.ts +20 -0
  71. package/components/forms/range/index.d.ts +5 -0
  72. package/components/forms/range/public-api.d.ts +1 -0
  73. package/components/forms/range/src/range.component.d.ts +37 -0
  74. package/components/forms/select/index.d.ts +5 -0
  75. package/components/forms/select/public-api.d.ts +1 -0
  76. package/components/forms/select/src/select.component.d.ts +43 -0
  77. package/components/forms/switch/index.d.ts +5 -0
  78. package/components/forms/switch/public-api.d.ts +1 -0
  79. package/components/forms/switch/src/switch.component.d.ts +29 -0
  80. package/components/forms/textarea/index.d.ts +5 -0
  81. package/components/forms/textarea/public-api.d.ts +1 -0
  82. package/components/forms/textarea/src/textarea.component.d.ts +49 -0
  83. package/components/forms/toggle/index.d.ts +5 -0
  84. package/components/forms/toggle/public-api.d.ts +1 -0
  85. package/components/forms/toggle/src/toggle.component.d.ts +27 -0
  86. package/components/icon/index.d.ts +5 -0
  87. package/components/icon/public-api.d.ts +2 -0
  88. package/components/icon/src/icon.component.d.ts +17 -0
  89. package/components/icon/src/icon.d.ts +1 -0
  90. package/components/link/index.d.ts +5 -0
  91. package/components/link/public-api.d.ts +1 -0
  92. package/components/link/src/link.component.d.ts +49 -0
  93. package/components/modal/index.d.ts +5 -0
  94. package/components/modal/public-api.d.ts +1 -0
  95. package/components/modal/src/modal.component.d.ts +25 -0
  96. package/components/notification/index.d.ts +5 -0
  97. package/components/notification/public-api.d.ts +1 -0
  98. package/components/notification/src/notification.component.d.ts +20 -0
  99. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +20 -0
  100. package/components/paginator/index.d.ts +5 -0
  101. package/components/paginator/public-api.d.ts +2 -0
  102. package/components/paginator/src/paginator.component.d.ts +18 -0
  103. package/components/product-card/directives/product-card-actions.directive.d.ts +7 -0
  104. package/components/product-card/directives/product-card-content.directive.d.ts +7 -0
  105. package/components/product-card/directives/product-card-header.directive.d.ts +7 -0
  106. package/components/product-card/index.d.ts +5 -0
  107. package/components/product-card/public-api.d.ts +4 -0
  108. package/components/product-card/src/product-card.component.d.ts +46 -0
  109. package/components/progress/index.d.ts +5 -0
  110. package/components/progress/public-api.d.ts +1 -0
  111. package/components/progress/src/progress.component.d.ts +17 -0
  112. package/components/tab/directives/tab-content/tab-content.directive.d.ts +18 -0
  113. package/components/tab/directives/tab-header/tab-header.directive.d.ts +20 -0
  114. package/components/tab/index.d.ts +5 -0
  115. package/components/tab/public-api.d.ts +3 -0
  116. package/components/tab/src/tab.component.d.ts +22 -0
  117. package/components/table/index.d.ts +5 -0
  118. package/components/table/public-api.d.ts +3 -0
  119. package/components/table/src/table.component.d.ts +55 -0
  120. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +12 -0
  121. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +13 -0
  122. package/components/toast/index.d.ts +5 -0
  123. package/components/toast/public-api.d.ts +3 -0
  124. package/components/toast/services/toast.service.d.ts +33 -0
  125. package/components/toast/toast-message/toast-message.component.d.ts +22 -0
  126. package/components/toast/toasts-container/toasts-container.component.d.ts +19 -0
  127. package/components/tooltip/index.d.ts +5 -0
  128. package/components/tooltip/public-api.d.ts +1 -0
  129. package/components/tooltip/src/tooltip.component.d.ts +15 -0
  130. package/components/wizard/index.d.ts +5 -0
  131. package/components/wizard/public-api.d.ts +5 -0
  132. package/components/wizard/wizard-content/wizard-content.component.d.ts +18 -0
  133. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +9 -0
  134. package/components/wizard/wizard-step/wizard-step.component.d.ts +15 -0
  135. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +13 -0
  136. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +23 -0
  137. package/directives/typography/index.d.ts +5 -0
  138. package/directives/typography/public-api.d.ts +1 -0
  139. package/directives/typography/src/typography.directive.d.ts +19 -0
  140. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +44 -0
  141. package/esm2022/components/accordion/public-api.mjs +3 -0
  142. package/esm2022/components/accordion/sixbell-telco-sdk-components-accordion.mjs +5 -0
  143. package/esm2022/components/accordion/src/accordion.component.mjs +13 -0
  144. package/esm2022/components/avatar/public-api.mjs +2 -0
  145. package/esm2022/components/avatar/sixbell-telco-sdk-components-avatar.mjs +5 -0
  146. package/esm2022/components/avatar/src/avatar.component.mjs +73 -0
  147. package/esm2022/components/button/public-api.mjs +2 -0
  148. package/esm2022/components/button/sixbell-telco-sdk-components-button.mjs +5 -0
  149. package/esm2022/components/button/src/button.component.mjs +146 -0
  150. package/esm2022/components/card/public-api.mjs +2 -0
  151. package/esm2022/components/card/sixbell-telco-sdk-components-card.mjs +5 -0
  152. package/esm2022/components/card/src/card.component.mjs +54 -0
  153. package/esm2022/components/countdown/public-api.mjs +2 -0
  154. package/esm2022/components/countdown/sixbell-telco-sdk-components-countdown.mjs +5 -0
  155. package/esm2022/components/countdown/src/countdown.component.mjs +53 -0
  156. package/esm2022/components/dropdown/public-api.mjs +2 -0
  157. package/esm2022/components/dropdown/sixbell-telco-sdk-components-dropdown.mjs +5 -0
  158. package/esm2022/components/dropdown/src/dropdown.component.mjs +147 -0
  159. package/esm2022/components/dual-list/public-api.mjs +2 -0
  160. package/esm2022/components/dual-list/sixbell-telco-sdk-components-dual-list.mjs +5 -0
  161. package/esm2022/components/dual-list/src/dual-list.component.mjs +206 -0
  162. package/esm2022/components/file-upload/file-dropzone/public-api.mjs +2 -0
  163. package/esm2022/components/file-upload/file-dropzone/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +5 -0
  164. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +36 -0
  165. package/esm2022/components/file-upload/file-uploader/public-api.mjs +2 -0
  166. package/esm2022/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +5 -0
  167. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +116 -0
  168. package/esm2022/components/forms/checkbox/public-api.mjs +2 -0
  169. package/esm2022/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.mjs +5 -0
  170. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +91 -0
  171. package/esm2022/components/forms/combobox/public-api.mjs +2 -0
  172. package/esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs +5 -0
  173. package/esm2022/components/forms/combobox/src/combobox.component.mjs +164 -0
  174. package/esm2022/components/forms/datepicker/public-api.mjs +3 -0
  175. package/esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs +5 -0
  176. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +20 -0
  177. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +187 -0
  178. package/esm2022/components/forms/form-error/public-api.mjs +2 -0
  179. package/esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs +5 -0
  180. package/esm2022/components/forms/form-error/src/form-error.component.mjs +32 -0
  181. package/esm2022/components/forms/input/public-api.mjs +2 -0
  182. package/esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs +5 -0
  183. package/esm2022/components/forms/input/src/input.component.mjs +188 -0
  184. package/esm2022/components/forms/radio/public-api.mjs +2 -0
  185. package/esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs +5 -0
  186. package/esm2022/components/forms/radio/src/radio.component.mjs +60 -0
  187. package/esm2022/components/forms/range/public-api.mjs +2 -0
  188. package/esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs +5 -0
  189. package/esm2022/components/forms/range/src/range.component.mjs +102 -0
  190. package/esm2022/components/forms/select/public-api.mjs +2 -0
  191. package/esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs +5 -0
  192. package/esm2022/components/forms/select/src/select.component.mjs +147 -0
  193. package/esm2022/components/forms/switch/public-api.mjs +2 -0
  194. package/esm2022/components/forms/switch/sixbell-telco-sdk-components-forms-switch.mjs +5 -0
  195. package/esm2022/components/forms/switch/src/switch.component.mjs +107 -0
  196. package/esm2022/components/forms/textarea/public-api.mjs +2 -0
  197. package/esm2022/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.mjs +5 -0
  198. package/esm2022/components/forms/textarea/src/textarea.component.mjs +181 -0
  199. package/esm2022/components/forms/toggle/public-api.mjs +2 -0
  200. package/esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs +5 -0
  201. package/esm2022/components/forms/toggle/src/toggle.component.mjs +381 -0
  202. package/esm2022/components/icon/public-api.mjs +3 -0
  203. package/esm2022/components/icon/sixbell-telco-sdk-components-icon.mjs +5 -0
  204. package/esm2022/components/icon/src/icon.component.mjs +42 -0
  205. package/esm2022/components/icon/src/icon.mjs +2 -0
  206. package/esm2022/components/link/public-api.mjs +2 -0
  207. package/esm2022/components/link/sixbell-telco-sdk-components-link.mjs +5 -0
  208. package/esm2022/components/link/src/link.component.mjs +210 -0
  209. package/esm2022/components/modal/public-api.mjs +2 -0
  210. package/esm2022/components/modal/sixbell-telco-sdk-components-modal.mjs +5 -0
  211. package/esm2022/components/modal/src/modal.component.mjs +71 -0
  212. package/esm2022/components/notification/public-api.mjs +2 -0
  213. package/esm2022/components/notification/sixbell-telco-sdk-components-notification.mjs +5 -0
  214. package/esm2022/components/notification/src/notification.component.mjs +55 -0
  215. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +109 -0
  216. package/esm2022/components/paginator/public-api.mjs +3 -0
  217. package/esm2022/components/paginator/sixbell-telco-sdk-components-paginator.mjs +5 -0
  218. package/esm2022/components/paginator/src/paginator.component.mjs +47 -0
  219. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +15 -0
  220. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +15 -0
  221. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +15 -0
  222. package/esm2022/components/product-card/public-api.mjs +5 -0
  223. package/esm2022/components/product-card/sixbell-telco-sdk-components-product-card.mjs +5 -0
  224. package/esm2022/components/product-card/src/product-card.component.mjs +141 -0
  225. package/esm2022/components/progress/public-api.mjs +2 -0
  226. package/esm2022/components/progress/sixbell-telco-sdk-components-progress.mjs +5 -0
  227. package/esm2022/components/progress/src/progress.component.mjs +43 -0
  228. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +45 -0
  229. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +54 -0
  230. package/esm2022/components/tab/public-api.mjs +4 -0
  231. package/esm2022/components/tab/sixbell-telco-sdk-components-tab.mjs +5 -0
  232. package/esm2022/components/tab/src/tab.component.mjs +42 -0
  233. package/esm2022/components/table/public-api.mjs +4 -0
  234. package/esm2022/components/table/sixbell-telco-sdk-components-table.mjs +5 -0
  235. package/esm2022/components/table/src/table.component.mjs +141 -0
  236. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +24 -0
  237. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +25 -0
  238. package/esm2022/components/toast/public-api.mjs +4 -0
  239. package/esm2022/components/toast/services/toast.service.mjs +77 -0
  240. package/esm2022/components/toast/sixbell-telco-sdk-components-toast.mjs +5 -0
  241. package/esm2022/components/toast/toast-message/toast-message.component.mjs +71 -0
  242. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +49 -0
  243. package/esm2022/components/tooltip/public-api.mjs +2 -0
  244. package/esm2022/components/tooltip/sixbell-telco-sdk-components-tooltip.mjs +5 -0
  245. package/esm2022/components/tooltip/src/tooltip.component.mjs +45 -0
  246. package/esm2022/components/wizard/public-api.mjs +6 -0
  247. package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +5 -0
  248. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +30 -0
  249. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +24 -0
  250. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +43 -0
  251. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +34 -0
  252. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +94 -0
  253. package/esm2022/directives/typography/public-api.mjs +2 -0
  254. package/esm2022/directives/typography/sixbell-telco-sdk-directives-typography.mjs +5 -0
  255. package/esm2022/directives/typography/src/typography.directive.mjs +57 -0
  256. package/esm2022/public_api.mjs +2 -0
  257. package/esm2022/sixbell-telco-sdk.mjs +5 -0
  258. package/esm2022/utils/cn/public-api.mjs +2 -0
  259. package/esm2022/utils/cn/sixbell-telco-sdk-utils-cn.mjs +5 -0
  260. package/esm2022/utils/cn/src/cn.mjs +6 -0
  261. package/esm2022/utils/generators/uuid/public-api.mjs +2 -0
  262. package/esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs +5 -0
  263. package/esm2022/utils/generators/uuid/src/uuid.mjs +5 -0
  264. package/esm2022/utils/pipes/extract-extension/public-api.mjs +2 -0
  265. package/esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +5 -0
  266. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +30 -0
  267. package/esm2022/utils/pipes/to-bytes-extesion/public-api.mjs +2 -0
  268. package/esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +5 -0
  269. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +29 -0
  270. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +61 -0
  271. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -0
  272. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +79 -0
  273. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -0
  274. package/fesm2022/sixbell-telco-sdk-components-button.mjs +153 -0
  275. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -0
  276. package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -0
  277. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -0
  278. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +60 -0
  279. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -0
  280. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +154 -0
  281. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -0
  282. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +213 -0
  283. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -0
  284. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +43 -0
  285. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -0
  286. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +123 -0
  287. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -0
  288. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +98 -0
  289. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -0
  290. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +171 -0
  291. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -0
  292. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +209 -0
  293. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -0
  294. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +39 -0
  295. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -0
  296. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +195 -0
  297. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -0
  298. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +67 -0
  299. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -0
  300. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +109 -0
  301. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -0
  302. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +154 -0
  303. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -0
  304. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +114 -0
  305. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -0
  306. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +188 -0
  307. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -0
  308. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +388 -0
  309. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -0
  310. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +49 -0
  311. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -0
  312. package/fesm2022/sixbell-telco-sdk-components-link.mjs +217 -0
  313. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -0
  314. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +78 -0
  315. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -0
  316. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +62 -0
  317. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -0
  318. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +160 -0
  319. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -0
  320. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +184 -0
  321. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -0
  322. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +50 -0
  323. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -0
  324. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +140 -0
  325. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -0
  326. package/fesm2022/sixbell-telco-sdk-components-table.mjs +187 -0
  327. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -0
  328. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +196 -0
  329. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -0
  330. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +52 -0
  331. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -0
  332. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +212 -0
  333. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -0
  334. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +64 -0
  335. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -0
  336. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs +13 -0
  337. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -0
  338. package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs +12 -0
  339. package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs.map +1 -0
  340. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +37 -0
  341. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -0
  342. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +36 -0
  343. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -0
  344. package/fesm2022/sixbell-telco-sdk.mjs +8 -0
  345. package/fesm2022/sixbell-telco-sdk.mjs.map +1 -0
  346. package/index.d.ts +5 -0
  347. package/package.json +273 -0
  348. package/public_api.d.ts +1 -0
  349. package/utils/cn/index.d.ts +5 -0
  350. package/utils/cn/public-api.d.ts +1 -0
  351. package/utils/cn/src/cn.d.ts +2 -0
  352. package/utils/generators/uuid/index.d.ts +5 -0
  353. package/utils/generators/uuid/public-api.d.ts +1 -0
  354. package/utils/generators/uuid/src/uuid.d.ts +1 -0
  355. package/utils/pipes/extract-extension/index.d.ts +5 -0
  356. package/utils/pipes/extract-extension/public-api.d.ts +1 -0
  357. package/utils/pipes/extract-extension/src/extract-extension.d.ts +8 -0
  358. package/utils/pipes/to-bytes-extesion/index.d.ts +5 -0
  359. package/utils/pipes/to-bytes-extesion/public-api.d.ts +1 -0
  360. package/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.d.ts +8 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-toast.mjs","sources":["../../../projects/sdk/components/toast/services/toast.service.ts","../../../projects/sdk/components/toast/toast-message/toast-message.component.ts","../../../projects/sdk/components/toast/toast-message/toast-message.component.html","../../../projects/sdk/components/toast/toasts-container/toasts-container.component.ts","../../../projects/sdk/components/toast/toasts-container/toasts-container.component.html","../../../projects/sdk/components/toast/sixbell-telco-sdk-components-toast.ts"],"sourcesContent":["import { computed, effect, Injectable, signal } from '@angular/core';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\n\nexport enum ToastTypes {\n\tSUCCESS = 'toast-success',\n\tERROR = 'toast-error',\n\tINFO = 'toast-info',\n\tWARNING = 'toast-warning',\n}\n\nexport type Toast = {\n\tid: string;\n\ttype: ToastTypes;\n\tmessage: string;\n\ttitle: string;\n\tduration: number;\n\tanimate: 'enter' | 'leave';\n};\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class ToastService {\n\tprivate toastsSignal = signal<Toast[]>([]);\n\tprivate expandedSignal = signal(false);\n\n\t// Create computed signals for derived state\n\treadonly toasts = computed(() => this.toastsSignal());\n\treadonly expanded = computed(() => this.expandedSignal());\n\treadonly isEmpty = computed(() => this.toasts().length === 0);\n\n\tconstructor() {\n\t\t// Debug effect to monitor state changes\n\t\teffect(() => {\n\t\t\tconsole.log('Toast state changed:', {\n\t\t\t\ttoasts: this.toasts(),\n\t\t\t\texpanded: this.expanded(),\n\t\t\t\tisEmpty: this.isEmpty(),\n\t\t\t});\n\t\t});\n\t}\n\n\tnotify(type: ToastTypes, message: string, title: string = '', duration: number = 10000) {\n\t\tconst toast: Toast = {\n\t\t\tid: generateUniqueId(),\n\t\t\ttype,\n\t\t\tmessage,\n\t\t\ttitle,\n\t\t\tduration,\n\t\t\tanimate: 'enter',\n\t\t};\n\n\t\t// Create a new array reference to ensure change detection\n\t\tthis.toastsSignal.update((toasts) => [toast, ...toasts]);\n\n\t\tthis.scheduleDismiss(toast);\n\t}\n\n\tscheduleDismiss(toast: Toast) {\n\t\tsetTimeout(() => {\n\t\t\tthis.remove(toast);\n\t\t}, toast.duration);\n\t}\n\n\tanimateRemoval(toast: Toast) {\n\t\tthis.toastsSignal.update((toasts) => toasts.map((t) => (t.id === toast.id ? { ...t, animate: 'leave' } : t)));\n\t}\n\n\tremove(toast: Toast) {\n\t\tthis.toastsSignal.update((toasts) => toasts.filter((t) => t.id !== toast.id));\n\n\t\tif (this.isEmpty()) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tclear() {\n\t\tthis.toastsSignal.set([]);\n\t\tthis.collapse();\n\t}\n\n\ttoggle() {\n\t\tthis.expandedSignal.update((expanded) => !expanded);\n\t}\n\n\tcollapse() {\n\t\tthis.expandedSignal.set(false);\n\t}\n\n\texpand() {\n\t\tthis.expandedSignal.set(true);\n\t}\n}\n","import { NgClass } from '@angular/common';\nimport { Component, input, output, signal } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { VariantProps, cva } from 'class-variance-authority';\nimport { Toast, ToastTypes } from '../services/toast.service';\n\nexport const toastBase = cva(\n\t[\n\t\t'toast-message relative mb-2 flex min-h-20 h-20 w-[400px] cursor-pointer items-center rounded-lg border-2 bg-white p-2 transition-all duration-300 ease-ease-in-and-out-back',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tinfo: ['border-primary', 'text-primary'],\n\t\t\t\tsuccess: ['border-success', 'text-success'],\n\t\t\t\twarning: ['border-warning', 'text-warning'],\n\t\t\t\terror: ['border-error', 'text-error'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'info',\n\t\t},\n\t},\n);\n\nexport type ToastVariantProps = VariantProps<typeof toastBase>;\n\n@Component({\n\tselector: 'app-toast-message',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, NgClass],\n\ttemplateUrl: './toast-message.component.html',\n})\nexport class ToastMessageComponent {\n\tvariants = input<ToastVariantProps>();\n\tclass = input<string>('');\n\ttypes = ToastTypes;\n\ttoast = input.required<Toast>();\n\ttoastAmount = input.required<number>();\n\ttoastIndex = input.required<number>();\n\tonClick = output<Toast>();\n\ticonName = signal<IconName>('check-circle');\n\n\tget baseClasses() {\n\t\tif (this.toast().type === this.types.SUCCESS) {\n\t\t\treturn cn(\n\t\t\t\ttoastBase({\n\t\t\t\t\tvariant: 'success',\n\t\t\t\t}),\n\t\t\t\tthis.class(),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.ERROR) {\n\t\t\treturn cn(\n\t\t\t\ttoastBase({\n\t\t\t\t\tvariant: 'error',\n\t\t\t\t}),\n\t\t\t\tthis.class(),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.INFO) {\n\t\t\treturn cn(\n\t\t\t\ttoastBase({\n\t\t\t\t\tvariant: 'info',\n\t\t\t\t}),\n\t\t\t\tthis.class(),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.WARNING) {\n\t\t\treturn cn(\n\t\t\t\ttoastBase({\n\t\t\t\t\tvariant: 'warning',\n\t\t\t\t}),\n\t\t\t\tthis.class(),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttoastBase({\n\t\t\t\t\tvariant: 'info',\n\t\t\t\t}),\n\t\t\t\tthis.class(),\n\t\t\t);\n\t\t}\n\t}\n\n\thandleClose() {\n\t\tthis.onClick.emit(this.toast());\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"baseClasses\"\n\t[ngClass]=\"{\n\t\t'bottom-0 animate-toast-slide-out': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<app-icon [iconName]=\"'check-circle'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<app-icon [iconName]=\"'exclamation-diamond'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<app-icon [iconName]=\"'x-hexagonal'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<app-icon [iconName]=\"'info-circle'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-[4]\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<span class=\"block max-h-6 truncate\" [typography]=\"{ variant: 'body', color: 'black', fontWeight: 'semibold' }\">{{ toast().title }}</span>\n\t\t\t<span class=\"block max-h-8 overflow-y-auto\" [typography]=\"{ variant: 'body-xs', color: 'black', fontWeight: 'normal' }\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\n\t\t</div>\n\t</div>\n</li>\n","import { NgClass } from '@angular/common';\nimport { Component, computed, effect, inject } from '@angular/core';\nimport { Toast, ToastService } from '../services/toast.service';\nimport { ToastMessageComponent } from '../toast-message/toast-message.component';\n\n@Component({\n\tselector: 'app-toasts-container',\n\tstandalone: true,\n\timports: [ToastMessageComponent, NgClass],\n\ttemplateUrl: './toasts-container.component.html',\n})\nexport class ToastsContainerComponent {\n\ttoastService = inject(ToastService);\n\n\tprotected containerClasses = computed(() => {\n\t\tconst toastCount = this.toastService.toasts().length;\n\t\tconst isExpanded = this.toastService.expanded();\n\n\t\treturn {\n\t\t\t'min-h-64': toastCount === 3 && isExpanded,\n\t\t\t'min-h-48': toastCount === 2 && isExpanded,\n\t\t\t'h-24 min-h-24': toastCount === 1 && isExpanded,\n\t\t\t'h-28 min-h-28': toastCount > 0 && !isExpanded,\n\t\t\t'h-0 min-h-0': toastCount === 0 && !isExpanded,\n\t\t};\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconsole.log('Container state:', {\n\t\t\t\ttoastCount: this.toastService.toasts().length,\n\t\t\t\texpanded: this.toastService.expanded(),\n\t\t\t});\n\t\t});\n\t}\n\n\thandleExpand(): void {\n\t\tthis.toastService.expand();\n\t}\n\n\thandleCollapse(): void {\n\t\tthis.toastService.collapse();\n\t}\n\n\thandleRemove(toast: Toast): void {\n\t\tthis.toastService.animateRemoval(toast);\n\t\tsetTimeout(() => {\n\t\t\tthis.toastService.remove(toast);\n\t\t}, 500);\n\t}\n\n\tgetToastIndex(toast: Toast): number {\n\t\treturn this.toastService.toasts().findIndex((t) => t.id === toast.id);\n\t}\n}\n","<section class=\"fixed bottom-2 right-4 z-10\">\n\t<ol\n\t\tclass=\"toast-container group flex min-w-[400px] flex-col gap-2\"\n\t\t[ngClass]=\"containerClasses()\"\n\t\t[attr.aria-expanded]=\"toastService.expanded()\"\n\t\t(mouseenter)=\"handleExpand()\"\n\t\t(mouseleave)=\"handleCollapse()\"\n\t>\n\t\t@for (toast of toastService.toasts(); track toast.id) {\n\t\t\t<app-toast-message\n\t\t\t\t[toast]=\"toast\"\n\t\t\t\t[toastIndex]=\"getToastIndex(toast)\"\n\t\t\t\t[toastAmount]=\"toastService.toasts().length\"\n\t\t\t\t(onClick)=\"handleRemove($event)\"\n\t\t\t/>\n\t\t}\n\t</ol>\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;IAGY,WAKX;AALD,CAAA,UAAY,UAAU,EAAA;A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AAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,ECXrC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,ylBAkBA,EDVW,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,qBAAqB,yJAAE,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAG5B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,cACpB,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,ylBAAA,EAAA,CAAA;;;AER1C;;AAEG;;;;"}
@@ -0,0 +1,52 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Component } from '@angular/core';
3
+ import { cn } from '@sixbell-telco/sdk/utils/cn';
4
+ import { cva } from 'class-variance-authority';
5
+
6
+ const tooltipBase = cva(['tooltip'], {
7
+ variants: {
8
+ variant: {
9
+ primary: ['tooltip-primary'],
10
+ secondary: ['tooltip-secondary'],
11
+ success: ['tooltip-success'],
12
+ neutral: ['tooltip-neutral'],
13
+ warning: ['tooltip-warning'],
14
+ error: ['tooltip-error'],
15
+ info: ['tooltip-info'],
16
+ },
17
+ position: {
18
+ top: ['tooltip-top'],
19
+ bottom: ['tooltip-bottom'],
20
+ right: ['tooltip-right'],
21
+ left: ['tooltip-left'],
22
+ },
23
+ },
24
+ compoundVariants: [],
25
+ defaultVariants: {
26
+ variant: 'primary',
27
+ position: 'bottom',
28
+ },
29
+ });
30
+ class TooltipComponent {
31
+ variants = input();
32
+ class = input('');
33
+ label = input.required();
34
+ get baseClasses() {
35
+ return cn(tooltipBase({
36
+ variant: this.variants()?.variant,
37
+ }), this.class());
38
+ }
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
40
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.8", type: TooltipComponent, isStandalone: true, selector: "app-tooltip", inputs: { variants: { classPropertyName: "variants", publicName: "variants", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"baseClasses\" [attr.data-tip]=\"label()\">\n\t<ng-content></ng-content>\n</div>\n", styles: [""] });
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TooltipComponent, decorators: [{
43
+ type: Component,
44
+ args: [{ selector: 'app-tooltip', standalone: true, imports: [], template: "<div [class]=\"baseClasses\" [attr.data-tip]=\"label()\">\n\t<ng-content></ng-content>\n</div>\n" }]
45
+ }] });
46
+
47
+ /**
48
+ * Generated bundle index. Do not edit.
49
+ */
50
+
51
+ export { TooltipComponent, tooltipBase };
52
+ //# sourceMappingURL=sixbell-telco-sdk-components-tooltip.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-tooltip.mjs","sources":["../../../projects/sdk/components/tooltip/src/tooltip.component.ts","../../../projects/sdk/components/tooltip/src/tooltip.component.html","../../../projects/sdk/components/tooltip/sixbell-telco-sdk-components-tooltip.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { VariantProps, cva } from 'class-variance-authority';\n\nexport const tooltipBase = cva(['tooltip'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['tooltip-primary'],\n\t\t\tsecondary: ['tooltip-secondary'],\n\t\t\tsuccess: ['tooltip-success'],\n\t\t\tneutral: ['tooltip-neutral'],\n\t\t\twarning: ['tooltip-warning'],\n\t\t\terror: ['tooltip-error'],\n\t\t\tinfo: ['tooltip-info'],\n\t\t},\n\t\tposition: {\n\t\t\ttop: ['tooltip-top'],\n\t\t\tbottom: ['tooltip-bottom'],\n\t\t\tright: ['tooltip-right'],\n\t\t\tleft: ['tooltip-left'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tposition: 'bottom',\n\t},\n});\n\nexport type TooltipVariantProps = VariantProps<typeof tooltipBase>;\n\n@Component({\n\tselector: 'app-tooltip',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './tooltip.component.html',\n\tstyles: '',\n})\nexport class TooltipComponent {\n\tvariants = input<TooltipVariantProps>();\n\tclass = input<string>('');\n\tlabel = input.required<string>();\n\n\tget baseClasses() {\n\t\treturn cn(\n\t\t\ttooltipBase({\n\t\t\t\tvariant: this.variants()?.variant,\n\t\t\t}),\n\t\t\tthis.class(),\n\t\t);\n\t}\n}\n","<div [class]=\"baseClasses\" [attr.data-tip]=\"label()\">\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAIa,WAAW,GAAG,GAAG,CAAC,CAAC,SAAS,CAAC,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,SAAS,EAAE,CAAC,mBAAmB,CAAC;YAChC,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,KAAK,EAAE,CAAC,eAAe,CAAC;YACxB,IAAI,EAAE,CAAC,cAAc,CAAC;AACtB,SAAA;AACD,Q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, ChangeDetectionStrategy, contentChildren, model, output, computed, Host } from '@angular/core';
3
+ import { cn } from '@sixbell-telco/sdk/utils/cn';
4
+ import { NgClass } from '@angular/common';
5
+ import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
6
+ import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
7
+ import { IconComponent } from '@sixbell-telco/sdk/components/icon';
8
+
9
+ class WizardMarkerComponent {
10
+ content = input.required();
11
+ getStatusMarkerMessage(content) {
12
+ return content.status() === 'completed' ? 'Completado' : content.status() === 'in progress' ? 'En progreso' : 'Pendiente';
13
+ }
14
+ getStepStatusMarkerClasses(content) {
15
+ return cn('rounded-btn-xs', {
16
+ 'transition-colors duration-300 ease-out delay-150 bg-primary bg-opacity-20 text-primary px-3 py-[5px]': content.status() === 'completed',
17
+ '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',
18
+ 'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-secondary-muted border-[2px] border-secondary-muted px-[10px] py-[3px]': content.status() === 'pending',
19
+ });
20
+ }
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.8", type: WizardMarkerComponent, isStandalone: true, selector: "app-wizard-marker", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let contentVar = content();\n<span [class]=\"getStepStatusMarkerClasses(contentVar)\" [typography]=\"{ variant: 'body-sm', fontWeight: 'semibold', color: 'inherit' }\">{{\n\tgetStatusMarkerMessage(contentVar)\n}}</span>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typography", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardMarkerComponent, decorators: [{
25
+ type: Component,
26
+ args: [{ selector: 'app-wizard-marker', standalone: true, imports: [TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let contentVar = content();\n<span [class]=\"getStepStatusMarkerClasses(contentVar)\" [typography]=\"{ variant: 'body-sm', fontWeight: 'semibold', color: 'inherit' }\">{{\n\tgetStatusMarkerMessage(contentVar)\n}}</span>\n" }]
27
+ }] });
28
+
29
+ class WizardStepComponent {
30
+ status = input.required();
31
+ content = input.required();
32
+ currentStep = input.required();
33
+ getStepClasses(currentStep, content) {
34
+ 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', {
35
+ 'border-primary currentStep transition-colors duration-300 ease-out': currentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),
36
+ 'border-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',
37
+ 'border-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]': currentStep !== content.step() && content.status() === 'pending',
38
+ });
39
+ const innerClasses = cn('flex h-full w-full items-center justify-center rounded-full', {
40
+ 'bg-primary currentStep transition-colors duration-300 ease-out': currentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),
41
+ 'bg-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',
42
+ 'bg-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]': currentStep !== content.step() && content.status() === 'pending',
43
+ });
44
+ return { outerClasses, innerClasses };
45
+ }
46
+ get stepNumberClasses() {
47
+ return cn({
48
+ 'hidden opacity-0': this.status() === 'completed',
49
+ 'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'in progress' || this.status() === 'pending',
50
+ });
51
+ }
52
+ get stepIconClasses() {
53
+ return cn({
54
+ 'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'completed',
55
+ 'hidden opacity-0': this.status() === 'in progress' || this.status() === 'pending',
56
+ });
57
+ }
58
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
59
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.8", type: WizardStepComponent, isStandalone: true, selector: "app-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<span [class]=\"stepNumberClasses\" [typography]=\"{ variant: 'body', fontWeight: 'semibold', color: 'inherit' }\">\n\t\t\t{{ contentVar.step() + 1 }}\n\t\t</span>\n\t\t<app-icon [class]=\"stepIconClasses\" [iconName]=\"'check'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typography", "class"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["variants", "class", "iconName"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardStepComponent, decorators: [{
62
+ type: Component,
63
+ args: [{ selector: 'app-wizard-step', standalone: true, imports: [TypographyDirective, IconComponent, NgClass], 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<span [class]=\"stepNumberClasses\" [typography]=\"{ variant: 'body', fontWeight: 'semibold', color: 'inherit' }\">\n\t\t\t{{ contentVar.step() + 1 }}\n\t\t</span>\n\t\t<app-icon [class]=\"stepIconClasses\" [iconName]=\"'check'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t</div>\n</div>\n" }]
64
+ }] });
65
+
66
+ class WizardSubStepComponent {
67
+ content = input.required();
68
+ currentStep = input.required();
69
+ getSubStepClasses(currentStep, content) {
70
+ const leftClasses = cn('h-[2px] w-full', {
71
+ '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'),
72
+ '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',
73
+ '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',
74
+ });
75
+ const centerClasses = cn('h-3 min-h-3 w-3 min-w-3 rounded-full', {
76
+ 'bg-primary currentStep transition-colors duration-300 ease-out delay-300': currentStep === content.step() && content.status() === 'in progress',
77
+ 'bg-primary notCurrentStep transition-colors duration-300 ease-out delay-300': currentStep !== content.step() && content.status() === 'completed',
78
+ 'bg-primary currentStep inProgress transition-colors duration-300 ease-out delay-300': currentStep === content.step() && content.status() === 'completed',
79
+ 'bg-secondary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'pending',
80
+ });
81
+ const rightClasses = cn('h-[2px] w-full', {
82
+ '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',
83
+ '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',
84
+ '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',
85
+ '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',
86
+ });
87
+ return { leftClasses, centerClasses, rightClasses };
88
+ }
89
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardSubStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.8", type: WizardSubStepComponent, isStandalone: true, selector: "app-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" });
91
+ }
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardSubStepComponent, decorators: [{
93
+ type: Component,
94
+ args: [{ selector: 'app-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" }]
95
+ }] });
96
+
97
+ class WizardWrapperComponent {
98
+ contents = contentChildren(WizardContentComponent);
99
+ currentStep = model(0);
100
+ onBack = output();
101
+ oncompleted = output();
102
+ isFirstStep = computed(() => this.currentStep() === 0);
103
+ isLastStep = computed(() => this.currentStep() === this.contents().length - 1);
104
+ allStepsAreValid = computed(() => this.contents().every((step) => step.isValid()));
105
+ isCurrentStepValid = computed(() => this.contents()[this.currentStep()].isValid());
106
+ handlePreviousStep() {
107
+ if (this.currentStep() <= 0) {
108
+ return;
109
+ }
110
+ this.currentStep.set(this.currentStep() - 1);
111
+ this.handleStepStatusChange(this.contents()[this.currentStep()]);
112
+ }
113
+ handleNextStep() {
114
+ if (this.currentStep() >= this.contents().length - 1) {
115
+ return;
116
+ }
117
+ if (!this.isCurrentStepValid()) {
118
+ return;
119
+ }
120
+ this.currentStep.set(this.currentStep() + 1);
121
+ this.handleStepStatusChange(this.contents()[this.currentStep()]);
122
+ }
123
+ handleBack() {
124
+ this.onBack.emit();
125
+ }
126
+ handleComplete() {
127
+ if (!this.isCurrentStepValid()) {
128
+ return;
129
+ }
130
+ this.oncompleted.emit();
131
+ }
132
+ handleStepStatusChange(step) {
133
+ this.contents().forEach((s) => {
134
+ if (s.step() < step.step()) {
135
+ s.status.set('completed');
136
+ return;
137
+ }
138
+ if (s.step() > step.step()) {
139
+ s.status.set('pending');
140
+ return;
141
+ }
142
+ if (s.step() === step.step() && !step.isValid()) {
143
+ s.status.set('in progress');
144
+ return;
145
+ }
146
+ if (s.step() === step.step() && step.isValid()) {
147
+ s.status.set('completed');
148
+ return;
149
+ }
150
+ });
151
+ }
152
+ getStepClasses(currentStep, step) {
153
+ const outerClasses = cn({
154
+ 'border-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),
155
+ 'border-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',
156
+ 'border-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',
157
+ });
158
+ const innerClasses = cn({
159
+ 'bg-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),
160
+ 'bg-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',
161
+ 'bg-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',
162
+ });
163
+ return { outerClasses, innerClasses };
164
+ }
165
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
166
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: WizardWrapperComponent, isStandalone: true, selector: "app-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<app-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></app-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<app-wizard-marker [content]=\"content\"></app-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<app-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></app-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<span class=\"min-w-max\" [typography]=\"{ variant: 'body-sm', fontWeight: 'normal', color: 'inherit' }\">{{ content.name() }}</span>\n\t\t\t\t\t\t<span class=\"min-w-max\" [typography]=\"{ variant: 'body', fontWeight: 'normal', color: 'black' }\">{{ content.label() }}</span>\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<app-button\n\t\t\t\tlabel=\"Volver\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[variants]=\"{ variant: 'secondary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleBack()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\ticonName=\"arrow-left\"\n\t\t\t\t[variants]=\"{ variant: 'secondary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\t[variants]=\"{ variant: 'primary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\t[variants]=\"{ variant: 'primary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "app-wizard-step", inputs: ["status", "content", "currentStep"] }, { kind: "component", type: ButtonComponent, selector: "app-button", inputs: ["variants", "fontSize", "class", "label", "type", "iconName", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typography", "class"] }, { kind: "component", type: WizardMarkerComponent, selector: "app-wizard-marker", inputs: ["content"] }, { kind: "component", type: WizardSubStepComponent, selector: "app-wizard-sub-step", inputs: ["content", "currentStep"] }] });
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardWrapperComponent, decorators: [{
169
+ type: Component,
170
+ args: [{ selector: 'app-wizard', standalone: true, imports: [
171
+ WizardStepComponent,
172
+ ButtonComponent,
173
+ NgClass,
174
+ TypographyDirective,
175
+ WizardMarkerComponent,
176
+ WizardSubStepComponent,
177
+ WizardContentComponent,
178
+ ], 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<app-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></app-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<app-wizard-marker [content]=\"content\"></app-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<app-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></app-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<span class=\"min-w-max\" [typography]=\"{ variant: 'body-sm', fontWeight: 'normal', color: 'inherit' }\">{{ content.name() }}</span>\n\t\t\t\t\t\t<span class=\"min-w-max\" [typography]=\"{ variant: 'body', fontWeight: 'normal', color: 'black' }\">{{ content.label() }}</span>\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<app-button\n\t\t\t\tlabel=\"Volver\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[variants]=\"{ variant: 'secondary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleBack()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\ticonName=\"arrow-left\"\n\t\t\t\t[variants]=\"{ variant: 'secondary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\t[variants]=\"{ variant: 'primary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\t[variants]=\"{ variant: 'primary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\n\t\t}\n\t</div>\n</div>\n" }]
179
+ }] });
180
+
181
+ class WizardContentComponent {
182
+ wizard;
183
+ step = input(0);
184
+ name = input('');
185
+ status = model.required();
186
+ isValid = model.required();
187
+ label = input('');
188
+ baseClass = input('');
189
+ currentStep = computed(() => this.wizard.currentStep());
190
+ isStepActive = computed(() => this.step() === this.currentStep());
191
+ constructor(wizard) {
192
+ this.wizard = wizard;
193
+ }
194
+ get baseClasses() {
195
+ return cn('animate-fade-in animate-duration-300', this.baseClass());
196
+ }
197
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardContentComponent, deps: [{ token: WizardWrapperComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
198
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: WizardContentComponent, isStandalone: true, selector: "app-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 }, baseClass: { classPropertyName: "baseClass", publicName: "baseClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { status: "statusChange", isValid: "isValidChange" }, ngImport: i0, template: "@if (this.isStepActive()) {\n\t<div [class]=\"baseClasses\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" });
199
+ }
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WizardContentComponent, decorators: [{
201
+ type: Component,
202
+ args: [{ selector: 'app-wizard-content', standalone: true, imports: [], template: "@if (this.isStepActive()) {\n\t<div [class]=\"baseClasses\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" }]
203
+ }], ctorParameters: () => [{ type: WizardWrapperComponent, decorators: [{
204
+ type: Host
205
+ }] }] });
206
+
207
+ /**
208
+ * Generated bundle index. Do not edit.
209
+ */
210
+
211
+ export { WizardContentComponent, WizardMarkerComponent, WizardStepComponent, WizardSubStepComponent, WizardWrapperComponent };
212
+ //# sourceMappingURL=sixbell-telco-sdk-components-wizard.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-wizard.mjs","sources":["../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.ts","../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.html","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.ts","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.html","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.ts","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.html","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.ts","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.html","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.ts","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.html","../../../projects/sdk/components/wizard/sixbell-telco-sdk-components-wizard.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'app-wizard-marker',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './wizard-marker.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardMarkerComponent {\n\tcontent = input.required<WizardContentComponent>();\n\n\tgetStatusMarkerMessage(content: WizardContentComponent) {\n\t\treturn content.status() === 'completed' ? 'Completado' : content.status() === 'in progress' ? 'En progreso' : 'Pendiente';\n\t}\n\n\tgetStepStatusMarkerClasses(content: WizardContentComponent) {\n\t\treturn cn('rounded-btn-xs', {\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-primary bg-opacity-20 text-primary px-3 py-[5px]': content.status() === 'completed',\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-secondary border-[2px] border-secondary px-[10px] py-[3px]':\n\t\t\t\tcontent.status() === 'in progress',\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-secondary-muted border-[2px] border-secondary-muted px-[10px] py-[3px]':\n\t\t\t\tcontent.status() === 'pending',\n\t\t});\n\t}\n}\n","@let contentVar = content();\n<span [class]=\"getStepStatusMarkerClasses(contentVar)\" [typography]=\"{ variant: 'body-sm', fontWeight: 'semibold', color: 'inherit' }\">{{\n\tgetStatusMarkerMessage(contentVar)\n}}</span>\n","import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent, WizardStepStatus } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'app-wizard-step',\n\ttemplateUrl: './wizard-step.component.html',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, NgClass],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardStepComponent {\n\tstatus = input.required<WizardStepStatus>();\n\tcontent = input.required<WizardContentComponent>();\n\tcurrentStep = input.required<number>();\n\n\tgetStepClasses(currentStep: number, content: WizardContentComponent) {\n\t\tconst outerClasses = cn(\n\t\t\t'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',\n\t\t\t{\n\t\t\t\t'border-primary currentStep transition-colors duration-300 ease-out':\n\t\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t\t'border-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',\n\t\t\t\t'border-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]':\n\t\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t\t},\n\t\t);\n\t\tconst innerClasses = cn('flex h-full w-full items-center justify-center rounded-full', {\n\t\t\t'bg-primary currentStep transition-colors duration-300 ease-out':\n\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t'bg-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\t\treturn { outerClasses, innerClasses };\n\t}\n\n\tget stepNumberClasses() {\n\t\treturn cn({\n\t\t\t'hidden opacity-0': this.status() === 'completed',\n\t\t\t'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'in progress' || this.status() === 'pending',\n\t\t});\n\t}\n\n\tget stepIconClasses() {\n\t\treturn cn({\n\t\t\t'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'completed',\n\t\t\t'hidden opacity-0': this.status() === 'in progress' || this.status() === 'pending',\n\t\t});\n\t}\n}\n","@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<span [class]=\"stepNumberClasses\" [typography]=\"{ variant: 'body', fontWeight: 'semibold', color: 'inherit' }\">\n\t\t\t{{ contentVar.step() + 1 }}\n\t\t</span>\n\t\t<app-icon [class]=\"stepIconClasses\" [iconName]=\"'check'\" [variants]=\"{ color: 'inherit', size: 'md' }\"></app-icon>\n\t</div>\n</div>\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'app-wizard-sub-step',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './wizard-sub-step.component.html',\n})\nexport class WizardSubStepComponent {\n\tcontent = input.required<WizardContentComponent>();\n\tcurrentStep = input.required<number>();\n\n\tgetSubStepClasses(currentStep: number, content: WizardContentComponent) {\n\t\tconst leftClasses = cn('h-[2px] w-full', {\n\t\t\t'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':\n\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t'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':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'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]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\tconst centerClasses = cn('h-3 min-h-3 w-3 min-w-3 rounded-full', {\n\t\t\t'bg-primary currentStep transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'in progress',\n\t\t\t'bg-primary notCurrentStep transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-primary currentStep inProgress transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\tconst rightClasses = cn('h-[2px] w-full', {\n\t\t\t'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]':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'completed',\n\t\t\t'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]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'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':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'in progress',\n\t\t\t'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':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\treturn { leftClasses, centerClasses, rightClasses };\n\t}\n}\n","@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","import { NgClass } from '@angular/common';\nimport { Component, computed, contentChildren, model, output } from '@angular/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\nimport { WizardMarkerComponent } from '../wizard-marker/wizard-marker.component';\nimport { WizardStepComponent } from '../wizard-step/wizard-step.component';\nimport { WizardSubStepComponent } from '../wizard-sub-step/wizard-sub-step.component';\n\n@Component({\n\tselector: 'app-wizard',\n\ttemplateUrl: './wizard-wrapper.component.html',\n\tstandalone: true,\n\timports: [\n\t\tWizardStepComponent,\n\t\tButtonComponent,\n\t\tNgClass,\n\t\tTypographyDirective,\n\t\tWizardMarkerComponent,\n\t\tWizardSubStepComponent,\n\t\tWizardContentComponent,\n\t],\n})\nexport class WizardWrapperComponent {\n\tcontents = contentChildren(WizardContentComponent);\n\tcurrentStep = model(0);\n\n\tonBack = output();\n\toncompleted = output();\n\n\tisFirstStep = computed(() => this.currentStep() === 0);\n\tisLastStep = computed(() => this.currentStep() === this.contents().length - 1);\n\n\tallStepsAreValid = computed(() => this.contents().every((step) => step.isValid()));\n\tisCurrentStepValid = computed(() => this.contents()[this.currentStep()].isValid());\n\n\thandlePreviousStep() {\n\t\tif (this.currentStep() <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStep.set(this.currentStep() - 1);\n\n\t\tthis.handleStepStatusChange(this.contents()[this.currentStep()]);\n\t}\n\n\thandleNextStep() {\n\t\tif (this.currentStep() >= this.contents().length - 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.isCurrentStepValid()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStep.set(this.currentStep() + 1);\n\n\t\tthis.handleStepStatusChange(this.contents()[this.currentStep()]);\n\t}\n\n\thandleBack() {\n\t\tthis.onBack.emit();\n\t}\n\n\thandleComplete() {\n\t\tif (!this.isCurrentStepValid()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.oncompleted.emit();\n\t}\n\n\thandleStepStatusChange(step: WizardContentComponent) {\n\t\tthis.contents().forEach((s) => {\n\t\t\tif (s.step() < step.step()) {\n\t\t\t\ts.status.set('completed');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() > step.step()) {\n\t\t\t\ts.status.set('pending');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() === step.step() && !step.isValid()) {\n\t\t\t\ts.status.set('in progress');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() === step.step() && step.isValid()) {\n\t\t\t\ts.status.set('completed');\n\t\t\t\treturn;\n\t\t\t}\n\t\t});\n\t}\n\n\tgetStepClasses(currentStep: number, step: WizardContentComponent) {\n\t\tconst outerClasses = cn({\n\t\t\t'border-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),\n\t\t\t'border-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',\n\t\t\t'border-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',\n\t\t});\n\t\tconst innerClasses = cn({\n\t\t\t'bg-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),\n\t\t\t'bg-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',\n\t\t});\n\t\treturn { outerClasses, innerClasses };\n\t}\n}\n","@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<app-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></app-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<app-wizard-marker [content]=\"content\"></app-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<app-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></app-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<span class=\"min-w-max\" [typography]=\"{ variant: 'body-sm', fontWeight: 'normal', color: 'inherit' }\">{{ content.name() }}</span>\n\t\t\t\t\t\t<span class=\"min-w-max\" [typography]=\"{ variant: 'body', fontWeight: 'normal', color: 'black' }\">{{ content.label() }}</span>\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<app-button\n\t\t\t\tlabel=\"Volver\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[variants]=\"{ variant: 'secondary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleBack()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\ticonName=\"arrow-left\"\n\t\t\t\t[variants]=\"{ variant: 'secondary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\t[variants]=\"{ variant: 'primary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<app-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\t[variants]=\"{ variant: 'primary', shape: 'round-lg', padding: 'md' }\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\n\t\t}\n\t</div>\n</div>\n","import { Component, computed, Host, input, model } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardWrapperComponent } from '../wizard-wrapper/wizard-wrapper.component';\n\nexport type WizardStepStatus = 'in progress' | 'pending' | 'completed';\n\n@Component({\n\tselector: 'app-wizard-content',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './wizard-content.component.html',\n})\nexport class WizardContentComponent {\n\tstep = input(0);\n\tname = input('');\n\tstatus = model.required<WizardStepStatus>();\n\tisValid = model.required<boolean>();\n\tlabel = input('');\n\tbaseClass = input('');\n\n\tcurrentStep = computed(() => this.wizard.currentStep());\n\tisStepActive = computed(() => this.step() === this.currentStep());\n\n\tconstructor(@Host() private wizard: WizardWrapperComponent) {}\n\n\tget baseClasses() {\n\t\treturn cn('animate-fade-in animate-duration-300', this.baseClass());\n\t}\n}\n","@if (this.isStepActive()) {\n\t<div [class]=\"baseClasses\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.WizardWrapperComponent"],"mappings":";;;;;;;;MAYa,qBAAqB,CAAA;AACjC,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAA0B,CAAC;AAEnD,IAAA,sBAAsB,CAAC,OAA+B,EAAA;QACrD,OAAO,OAAO,CAAC,MAAM,EAAE,KAAK,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,aAAa,GAAG,aAAa,GAAG,WAAW,CAAC;KAC1H;AAED,IAAA,0BAA0B,CAAC,OAA+B,EAAA;QACzD,OAAO,EAAE,CAAC,gBAAgB,EAAE;AAC3B,YAAA,uGAAuG,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK,WAAW;AACzI,YAAA,sIAAsI,EACrI,OAAO,CAAC,MAAM,EAAE,KAAK,aAAa;AACnC,YAAA,kJAAkJ,EACjJ,OAAO,CAAC,MAAM,EAAE,KAAK,SAAS;AAC/B,SAAA,CAAC,CAAC;KACH;uGAfW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZlC,gOAIA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,OAAA,CAAA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AG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAElE,IAAA,WAAA,CAA4B,MAA8B,EAAA;QAA9B,IAAM,CAAA,MAAA,GAAN,MAAM,CAAwB;KAAI;AAE9D,IAAA,IAAI,WAAW,GAAA;QACd,OAAO,EAAE,CAAC,sCAAsC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;KACpE;uGAfW,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,sBAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,s3BCZnC,4GAKA,EAAA,CAAA,CAAA;;2FDOa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;+BACC,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,4GAAA,EAAA,CAAA;;0BAcE,IAAI;;;AEvBlB;;AAEG;;;;"}
@@ -0,0 +1,64 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, inject, ElementRef, Renderer2, effect, Directive } from '@angular/core';
3
+ import { cn } from '@sixbell-telco/sdk/utils/cn';
4
+ import { cva } from 'class-variance-authority';
5
+
6
+ const typography = cva([], {
7
+ variants: {
8
+ variant: {
9
+ 'h1-xl': ['2xl:text-5xl text-4xl', 'text-balance', 'font-heading'],
10
+ h1: ['text-3xl', 'text-balance', 'font-heading'],
11
+ h2: ['text-2xl', 'text-balance', 'font-heading'],
12
+ h3: ['text-xl', 'text-balance', 'font-heading'],
13
+ body: ['text-base', 'text-pretty', 'font-body'],
14
+ 'body-sm': ['text-sm', 'text-pretty', 'font-body'],
15
+ 'body-xs': ['text-xs', 'text-pretty', 'font-body'],
16
+ },
17
+ color: {
18
+ white: 'text-neutral-content',
19
+ black: 'text-neutral',
20
+ primary: 'text-primary',
21
+ inherit: 'text-inherit',
22
+ },
23
+ fontWeight: {
24
+ bold: 'font-bold',
25
+ semibold: 'font-semibold',
26
+ medium: 'font-medium',
27
+ normal: 'font-normal',
28
+ inherit: ['font-inherit', 'font-body'],
29
+ },
30
+ },
31
+ compoundVariants: [],
32
+ defaultVariants: {
33
+ variant: 'body',
34
+ color: 'black',
35
+ fontWeight: 'normal',
36
+ },
37
+ });
38
+ class TypographyDirective {
39
+ variants = input({ variant: 'body', color: 'black', fontWeight: 'normal' }, { alias: 'typography' });
40
+ class = input('');
41
+ element = inject(ElementRef);
42
+ renderer = inject(Renderer2);
43
+ classListEffect = effect(() => {
44
+ const classList = cn(typography({ variant: this.variants().variant, color: this.variants().color, fontWeight: this.variants().fontWeight, class: this.class() }));
45
+ this.renderer.setAttribute(this.element.nativeElement, 'class', classList);
46
+ });
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TypographyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
48
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.8", type: TypographyDirective, isStandalone: true, selector: "[typography]", inputs: { variants: { classPropertyName: "variants", publicName: "typography", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TypographyDirective, decorators: [{
51
+ type: Directive,
52
+ args: [{
53
+ // eslint-disable-next-line @angular-eslint/directive-selector
54
+ selector: '[typography]',
55
+ standalone: true,
56
+ }]
57
+ }] });
58
+
59
+ /**
60
+ * Generated bundle index. Do not edit.
61
+ */
62
+
63
+ export { TypographyDirective };
64
+ //# sourceMappingURL=sixbell-telco-sdk-directives-typography.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-directives-typography.mjs","sources":["../../../projects/sdk/directives/typography/src/typography.directive.ts","../../../projects/sdk/directives/typography/sixbell-telco-sdk-directives-typography.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, effect, inject, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { VariantProps, cva } from 'class-variance-authority';\n\nconst typography = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\t'h1-xl': ['2xl:text-5xl text-4xl', 'text-balance', 'font-heading'],\n\t\t\th1: ['text-3xl', 'text-balance', 'font-heading'],\n\t\t\th2: ['text-2xl', 'text-balance', 'font-heading'],\n\t\t\th3: ['text-xl', 'text-balance', 'font-heading'],\n\t\t\tbody: ['text-base', 'text-pretty', 'font-body'],\n\t\t\t'body-sm': ['text-sm', 'text-pretty', 'font-body'],\n\t\t\t'body-xs': ['text-xs', 'text-pretty', 'font-body'],\n\t\t},\n\t\tcolor: {\n\t\t\twhite: 'text-neutral-content',\n\t\t\tblack: 'text-neutral',\n\t\t\tprimary: 'text-primary',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tfontWeight: {\n\t\t\tbold: 'font-bold',\n\t\t\tsemibold: 'font-semibold',\n\t\t\tmedium: 'font-medium',\n\t\t\tnormal: 'font-normal',\n\t\t\tinherit: ['font-inherit', 'font-body'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'body',\n\t\tcolor: 'black',\n\t\tfontWeight: 'normal',\n\t},\n});\n\nexport type TypographyVariantProps = VariantProps<typeof typography>;\n\nexport type TypographyVariantOnlyProps = Pick<TypographyVariantProps, 'variant'>;\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: '[typography]',\n\tstandalone: true,\n})\nexport class TypographyDirective {\n\tvariants = input<TypographyVariantProps>({ variant: 'body', color: 'black', fontWeight: 'normal' }, { alias: 'typography' });\n\tclass = input<string>('');\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = cn(\n\t\t\ttypography({ variant: this.variants().variant, color: this.variants().color, fontWeight: this.variants().fontWeight, class: this.class() }),\n\t\t);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,UAAU,GAAG,GAAG,CAAC,EAAE,EAAE;AAC1B,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,cAAc,EAAE,cAAc,CAAC;AAClE,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;AAChD,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;AAChD,YAAA,EAAE,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;AAC/C,YAAA,IAAI,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC;AAC/C,YAAA,SAAS,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,CAAC;AAClD,YAAA,SAAS,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,CAAC;AAClD,SAAA;AACD,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,sBAAsB;AAC7B,YAAA,KAAK,EAAE,cAAc;AACrB,YAAA,OAAO,EAAE,cAAc;AACvB,YAAA,OAAO,EAAE,cAAc;AACvB,SAAA;AACD,QAAA,UAAU,EAAE;AACX,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,QAAQ,EAAE,eAAe;AACzB,YAAA,MAAM,EAAE,aAAa;A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YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAEV,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;AC7CD;;AAEG;;;;"}
@@ -0,0 +1,13 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ function cn(...classes) {
5
+ return twMerge(clsx(classes));
6
+ }
7
+
8
+ /**
9
+ * Generated bundle index. Do not edit.
10
+ */
11
+
12
+ export { cn };
13
+ //# sourceMappingURL=sixbell-telco-sdk-utils-cn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-utils-cn.mjs","sources":["../../../projects/sdk/utils/cn/src/cn.ts","../../../projects/sdk/utils/cn/sixbell-telco-sdk-utils-cn.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...classes: ClassValue[]) {\n\treturn twMerge(clsx(classes));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGgB,SAAA,EAAE,CAAC,GAAG,OAAqB,EAAA;AAC1C,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/B;;ACLA;;AAEG;;;;"}
@@ -0,0 +1,12 @@
1
+ import { v7 } from 'uuid';
2
+
3
+ function generateUniqueId() {
4
+ return v7();
5
+ }
6
+
7
+ /**
8
+ * Generated bundle index. Do not edit.
9
+ */
10
+
11
+ export { generateUniqueId };
12
+ //# sourceMappingURL=sixbell-telco-sdk-utils-generators-uuid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-utils-generators-uuid.mjs","sources":["../../../projects/sdk/utils/generators/uuid/src/uuid.ts","../../../projects/sdk/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.ts"],"sourcesContent":["import { v7 as uuidv7 } from 'uuid';\n\nexport function generateUniqueId(): string {\n\treturn uuidv7();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["uuidv7"],"mappings":";;SAEgB,gBAAgB,GAAA;IAC/B,OAAOA,EAAM,EAAE,CAAC;AACjB;;ACJA;;AAEG;;;;"}
@@ -0,0 +1,37 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe } from '@angular/core';
3
+
4
+ class ExtractExtensionPipe {
5
+ transform(filename) {
6
+ return this.extractExtension(filename);
7
+ }
8
+ extractExtension(filename) {
9
+ const lastDotIndex = filename.lastIndexOf('.');
10
+ if (lastDotIndex === -1) {
11
+ // No dot found, return the entire filename
12
+ return filename;
13
+ }
14
+ if (lastDotIndex === filename.length - 1) {
15
+ // Dot is the last character, return an empty string
16
+ return '';
17
+ }
18
+ // Return the substring after the last dot
19
+ return filename.substring(lastDotIndex + 1);
20
+ }
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ExtractExtensionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
22
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: ExtractExtensionPipe, isStandalone: true, name: "extractExtension" });
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ExtractExtensionPipe, decorators: [{
25
+ type: Pipe,
26
+ args: [{
27
+ name: 'extractExtension',
28
+ standalone: true,
29
+ }]
30
+ }] });
31
+
32
+ /**
33
+ * Generated bundle index. Do not edit.
34
+ */
35
+
36
+ export { ExtractExtensionPipe };
37
+ //# sourceMappingURL=sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-utils-pipes-extract-extension.mjs","sources":["../../../projects/sdk/utils/pipes/extract-extension/src/extract-extension.ts","../../../projects/sdk/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tname: 'extractExtension',\n\tstandalone: true,\n})\nexport class ExtractExtensionPipe implements PipeTransform {\n\ttransform(filename: string): string {\n\t\treturn this.extractExtension(filename);\n\t}\n\n\tprivate extractExtension(filename: string) {\n\t\tconst lastDotIndex = filename.lastIndexOf('.');\n\t\tif (lastDotIndex === -1) {\n\t\t\t// No dot found, return the entire filename\n\t\t\treturn filename;\n\t\t}\n\t\tif (lastDotIndex === filename.length - 1) {\n\t\t\t// Dot is the last character, return an empty string\n\t\t\treturn '';\n\t\t}\n\t\t// Return the substring after the last dot\n\t\treturn filename.substring(lastDotIndex + 1);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAMa,oBAAoB,CAAA;AAChC,IAAA,SAAS,CAAC,QAAgB,EAAA;AACzB,QAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KACvC;AAEO,IAAA,gBAAgB,CAAC,QAAgB,EAAA;QACxC,MAAM,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAC/C,QAAA,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE;;AAExB,YAAA,OAAO,QAAQ,CAAC;SAChB;QACD,IAAI,YAAY,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;;AAEzC,YAAA,OAAO,EAAE,CAAC;SACV;;QAED,OAAO,QAAQ,CAAC,SAAS,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;KAC5C;uGAjBW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;qGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,kBAAkB;AACxB,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}