@sixbell-telco/sdk 0.10.1 → 0.11.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 (316) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +30 -280
  3. package/_index.css +452 -0
  4. package/assets/styles/combobox.css +197 -0
  5. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +2 -2
  6. package/components/audio-player/button-play/button-play.component.d.ts +6 -6
  7. package/components/audio-player/services/audio.service.d.ts +1 -0
  8. package/components/audio-player/src/audio-player.component.d.ts +1 -0
  9. package/components/audio-player/volume-control/volume-control.component.d.ts +2 -2
  10. package/components/avatar/src/avatar.component.d.ts +1 -1
  11. package/components/badge/src/badge.component.d.ts +69 -7
  12. package/components/button/src/button.component.d.ts +23 -9
  13. package/components/card/card-actions/card-actions.component.d.ts +28 -0
  14. package/components/card/card-content/card-content.component.d.ts +25 -0
  15. package/components/card/card-title/card-title.component.d.ts +22 -0
  16. package/components/card/src/card.component.d.ts +90 -5
  17. package/components/countdown/src/countdown.component.d.ts +2 -2
  18. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +35 -2
  19. package/components/dropdown/src/dropdown.component.d.ts +151 -9
  20. package/components/dual-list/src/dual-list.component.d.ts +6 -6
  21. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +254 -0
  22. package/components/file-upload/file-uploader/file-uploader.component.d.ts +209 -0
  23. package/components/file-upload/index.d.ts +5 -0
  24. package/components/file-upload/public-api.d.ts +4 -0
  25. package/components/file-upload/shared/types/file-upload.d.ts +8 -0
  26. package/components/forms/checkbox/src/checkbox.component.d.ts +68 -5
  27. package/components/forms/combobox/src/combobox.component.d.ts +3 -3
  28. package/components/forms/datepicker/src/datepicker.component.d.ts +2 -2
  29. package/components/forms/form-error/src/form-error.component.d.ts +8 -1
  30. package/components/forms/input/input-content/input-content.component.d.ts +8 -0
  31. package/components/forms/input/public-api.d.ts +1 -0
  32. package/components/forms/input/src/input.component.d.ts +146 -25
  33. package/components/forms/radio/src/radio.component.d.ts +83 -7
  34. package/components/forms/range/src/range.component.d.ts +101 -6
  35. package/components/forms/select/src/select.component.d.ts +139 -13
  36. package/components/forms/switch/src/switch.component.d.ts +74 -7
  37. package/components/forms/textarea/src/textarea.component.d.ts +172 -16
  38. package/components/forms/toggle/src/toggle.component.d.ts +2 -2
  39. package/components/icon/src/icon.component.d.ts +2 -2
  40. package/components/modal/src/modal.component.d.ts +8 -8
  41. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +64 -15
  42. package/components/paginator/src/paginator.component.d.ts +93 -2
  43. package/components/product-card/src/product-card.component.d.ts +2 -2
  44. package/components/progress/src/progress.component.d.ts +59 -4
  45. package/components/tab/src/tab.component.d.ts +2 -2
  46. package/components/table/src/table.component.d.ts +15 -11
  47. package/components/toast/toast-message/toast-message.component.d.ts +2 -2
  48. package/components/tooltip/public-api.d.ts +1 -0
  49. package/components/tooltip/src/tooltip.component.d.ts +66 -5
  50. package/components/tooltip/tooltip-content/tooltip-content.component.d.ts +38 -0
  51. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +20 -20
  52. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +8 -8
  53. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +71 -50
  55. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +7 -7
  57. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +92 -47
  59. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-button.mjs +35 -28
  61. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-card.mjs +192 -30
  63. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +7 -7
  65. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +201 -30
  67. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +18 -16
  69. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +706 -0
  71. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -0
  72. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +85 -25
  73. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +20 -20
  75. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +11 -11
  77. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  78. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -4
  79. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +217 -122
  81. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +98 -26
  83. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +117 -25
  85. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +190 -65
  87. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +95 -45
  89. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +229 -80
  91. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +43 -38
  93. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +12 -11
  95. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  96. package/fesm2022/sixbell-telco-sdk-components-link.mjs +14 -14
  97. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  98. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +27 -25
  99. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  100. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +4 -4
  101. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  102. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +189 -59
  103. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  104. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +18 -15
  105. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  106. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +60 -12
  107. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  108. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +22 -22
  109. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  110. package/fesm2022/sixbell-telco-sdk-components-table.mjs +50 -48
  111. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  112. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +13 -13
  113. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  114. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +111 -9
  115. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  116. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +57 -57
  117. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  118. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +4 -4
  119. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  120. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +14 -13
  121. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  122. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs.map +1 -1
  124. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  125. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  126. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
  127. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
  128. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  129. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  130. package/package.json +64 -168
  131. package/_index.scss +0 -146
  132. package/assets/styles/combobox.scss +0 -454
  133. package/components/file-upload/file-dropzone/index.d.ts +0 -5
  134. package/components/file-upload/file-dropzone/public-api.d.ts +0 -1
  135. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +0 -68
  136. package/components/file-upload/file-uploader/index.d.ts +0 -5
  137. package/components/file-upload/file-uploader/public-api.d.ts +0 -1
  138. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +0 -46
  139. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +0 -43
  140. package/esm2022/components/accordion/public-api.mjs +0 -3
  141. package/esm2022/components/accordion/sixbell-telco-sdk-components-accordion.mjs +0 -5
  142. package/esm2022/components/accordion/src/accordion.component.mjs +0 -13
  143. package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +0 -76
  144. package/esm2022/components/audio-player/button-play/button-play.component.mjs +0 -71
  145. package/esm2022/components/audio-player/public-api.mjs +0 -4
  146. package/esm2022/components/audio-player/services/audio.service.mjs +0 -189
  147. package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +0 -5
  148. package/esm2022/components/audio-player/src/audio-player.component.mjs +0 -105
  149. package/esm2022/components/audio-player/track-info/track-info.component.mjs +0 -18
  150. package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +0 -83
  151. package/esm2022/components/avatar/public-api.mjs +0 -2
  152. package/esm2022/components/avatar/sixbell-telco-sdk-components-avatar.mjs +0 -5
  153. package/esm2022/components/avatar/src/avatar.component.mjs +0 -149
  154. package/esm2022/components/badge/public-api.mjs +0 -2
  155. package/esm2022/components/badge/sixbell-telco-sdk-components-badge.mjs +0 -5
  156. package/esm2022/components/badge/src/badge.component.mjs +0 -77
  157. package/esm2022/components/button/public-api.mjs +0 -2
  158. package/esm2022/components/button/sixbell-telco-sdk-components-button.mjs +0 -5
  159. package/esm2022/components/button/src/button.component.mjs +0 -182
  160. package/esm2022/components/card/card-actions/card-actions.component.mjs +0 -22
  161. package/esm2022/components/card/card-content/card-content.component.mjs +0 -12
  162. package/esm2022/components/card/card-title/card-title.component.mjs +0 -12
  163. package/esm2022/components/card/public-api.mjs +0 -5
  164. package/esm2022/components/card/sixbell-telco-sdk-components-card.mjs +0 -5
  165. package/esm2022/components/card/src/card.component.mjs +0 -32
  166. package/esm2022/components/countdown/public-api.mjs +0 -2
  167. package/esm2022/components/countdown/sixbell-telco-sdk-components-countdown.mjs +0 -5
  168. package/esm2022/components/countdown/src/countdown.component.mjs +0 -57
  169. package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +0 -24
  170. package/esm2022/components/dropdown/public-api.mjs +0 -3
  171. package/esm2022/components/dropdown/sixbell-telco-sdk-components-dropdown.mjs +0 -5
  172. package/esm2022/components/dropdown/src/dropdown.component.mjs +0 -127
  173. package/esm2022/components/dual-list/public-api.mjs +0 -2
  174. package/esm2022/components/dual-list/sixbell-telco-sdk-components-dual-list.mjs +0 -5
  175. package/esm2022/components/dual-list/src/dual-list.component.mjs +0 -184
  176. package/esm2022/components/file-upload/file-dropzone/public-api.mjs +0 -2
  177. package/esm2022/components/file-upload/file-dropzone/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -5
  178. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +0 -232
  179. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +0 -7
  180. package/esm2022/components/file-upload/file-uploader/public-api.mjs +0 -2
  181. package/esm2022/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -5
  182. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +0 -115
  183. package/esm2022/components/forms/checkbox/public-api.mjs +0 -2
  184. package/esm2022/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.mjs +0 -5
  185. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +0 -94
  186. package/esm2022/components/forms/combobox/public-api.mjs +0 -2
  187. package/esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs +0 -5
  188. package/esm2022/components/forms/combobox/src/combobox.component.mjs +0 -188
  189. package/esm2022/components/forms/datepicker/public-api.mjs +0 -3
  190. package/esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -5
  191. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +0 -20
  192. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +0 -190
  193. package/esm2022/components/forms/form-error/public-api.mjs +0 -2
  194. package/esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs +0 -5
  195. package/esm2022/components/forms/form-error/src/form-error.component.mjs +0 -25
  196. package/esm2022/components/forms/input/public-api.mjs +0 -2
  197. package/esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs +0 -5
  198. package/esm2022/components/forms/input/src/input.component.mjs +0 -202
  199. package/esm2022/components/forms/radio/public-api.mjs +0 -2
  200. package/esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs +0 -5
  201. package/esm2022/components/forms/radio/src/radio.component.mjs +0 -96
  202. package/esm2022/components/forms/range/public-api.mjs +0 -2
  203. package/esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs +0 -5
  204. package/esm2022/components/forms/range/src/range.component.mjs +0 -103
  205. package/esm2022/components/forms/select/public-api.mjs +0 -2
  206. package/esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs +0 -5
  207. package/esm2022/components/forms/select/src/select.component.mjs +0 -162
  208. package/esm2022/components/forms/switch/public-api.mjs +0 -2
  209. package/esm2022/components/forms/switch/sixbell-telco-sdk-components-forms-switch.mjs +0 -5
  210. package/esm2022/components/forms/switch/src/switch.component.mjs +0 -108
  211. package/esm2022/components/forms/textarea/public-api.mjs +0 -2
  212. package/esm2022/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.mjs +0 -5
  213. package/esm2022/components/forms/textarea/src/textarea.component.mjs +0 -168
  214. package/esm2022/components/forms/toggle/public-api.mjs +0 -2
  215. package/esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs +0 -5
  216. package/esm2022/components/forms/toggle/src/toggle.component.mjs +0 -404
  217. package/esm2022/components/icon/heroicons/mini/public-api.mjs +0 -2
  218. package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +0 -5
  219. package/esm2022/components/icon/heroicons/outline/public-api.mjs +0 -2
  220. package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +0 -5
  221. package/esm2022/components/icon/heroicons/solid/public-api.mjs +0 -2
  222. package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +0 -5
  223. package/esm2022/components/icon/ionicons/public-api.mjs +0 -2
  224. package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +0 -5
  225. package/esm2022/components/icon/material/baseline/public-api.mjs +0 -2
  226. package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +0 -5
  227. package/esm2022/components/icon/material/outline/public-api.mjs +0 -2
  228. package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +0 -5
  229. package/esm2022/components/icon/material/round/public-api.mjs +0 -2
  230. package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +0 -5
  231. package/esm2022/components/icon/material/sharp/public-api.mjs +0 -2
  232. package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +0 -5
  233. package/esm2022/components/icon/public-api.mjs +0 -2
  234. package/esm2022/components/icon/sixbell-telco-sdk-components-icon.mjs +0 -5
  235. package/esm2022/components/icon/src/icon.component.mjs +0 -42
  236. package/esm2022/components/link/public-api.mjs +0 -2
  237. package/esm2022/components/link/sixbell-telco-sdk-components-link.mjs +0 -5
  238. package/esm2022/components/link/src/link.component.mjs +0 -63
  239. package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +0 -22
  240. package/esm2022/components/modal/modal-content/modal-content.component.mjs +0 -12
  241. package/esm2022/components/modal/modal-title/modal-title.component.mjs +0 -13
  242. package/esm2022/components/modal/public-api.mjs +0 -5
  243. package/esm2022/components/modal/sixbell-telco-sdk-components-modal.mjs +0 -5
  244. package/esm2022/components/modal/src/modal.component.mjs +0 -154
  245. package/esm2022/components/notification/public-api.mjs +0 -2
  246. package/esm2022/components/notification/sixbell-telco-sdk-components-notification.mjs +0 -5
  247. package/esm2022/components/notification/src/notification.component.mjs +0 -55
  248. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +0 -113
  249. package/esm2022/components/paginator/public-api.mjs +0 -3
  250. package/esm2022/components/paginator/sixbell-telco-sdk-components-paginator.mjs +0 -5
  251. package/esm2022/components/paginator/src/paginator.component.mjs +0 -52
  252. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +0 -15
  253. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +0 -15
  254. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +0 -15
  255. package/esm2022/components/product-card/public-api.mjs +0 -5
  256. package/esm2022/components/product-card/sixbell-telco-sdk-components-product-card.mjs +0 -5
  257. package/esm2022/components/product-card/src/product-card.component.mjs +0 -137
  258. package/esm2022/components/progress/public-api.mjs +0 -2
  259. package/esm2022/components/progress/sixbell-telco-sdk-components-progress.mjs +0 -5
  260. package/esm2022/components/progress/src/progress.component.mjs +0 -43
  261. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +0 -51
  262. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +0 -56
  263. package/esm2022/components/tab/public-api.mjs +0 -4
  264. package/esm2022/components/tab/sixbell-telco-sdk-components-tab.mjs +0 -5
  265. package/esm2022/components/tab/src/tab.component.mjs +0 -42
  266. package/esm2022/components/table/public-api.mjs +0 -4
  267. package/esm2022/components/table/sixbell-telco-sdk-components-table.mjs +0 -5
  268. package/esm2022/components/table/src/table.component.mjs +0 -283
  269. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +0 -67
  270. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +0 -72
  271. package/esm2022/components/toast/public-api.mjs +0 -4
  272. package/esm2022/components/toast/services/toast.service.mjs +0 -67
  273. package/esm2022/components/toast/sixbell-telco-sdk-components-toast.mjs +0 -5
  274. package/esm2022/components/toast/toast-message/toast-message.component.mjs +0 -80
  275. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +0 -41
  276. package/esm2022/components/tooltip/public-api.mjs +0 -2
  277. package/esm2022/components/tooltip/sixbell-telco-sdk-components-tooltip.mjs +0 -5
  278. package/esm2022/components/tooltip/src/tooltip.component.mjs +0 -45
  279. package/esm2022/components/wizard/public-api.mjs +0 -5
  280. package/esm2022/components/wizard/services/wizard.service.mjs +0 -312
  281. package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +0 -5
  282. package/esm2022/components/wizard/wizard-actions/wizard-actions.component.mjs +0 -22
  283. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +0 -84
  284. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +0 -111
  285. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +0 -126
  286. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +0 -121
  287. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +0 -173
  288. package/esm2022/directives/click-outside/public-api.mjs +0 -2
  289. package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +0 -5
  290. package/esm2022/directives/click-outside/src/click-outside.directive.mjs +0 -30
  291. package/esm2022/directives/typography/public-api.mjs +0 -2
  292. package/esm2022/directives/typography/sixbell-telco-sdk-directives-typography.mjs +0 -5
  293. package/esm2022/directives/typography/src/typography.directive.mjs +0 -118
  294. package/esm2022/public_api.mjs +0 -2
  295. package/esm2022/sixbell-telco-sdk.mjs +0 -5
  296. package/esm2022/utils/cn/public-api.mjs +0 -2
  297. package/esm2022/utils/cn/sixbell-telco-sdk-utils-cn.mjs +0 -5
  298. package/esm2022/utils/cn/src/cn.mjs +0 -6
  299. package/esm2022/utils/generators/uuid/public-api.mjs +0 -2
  300. package/esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs +0 -5
  301. package/esm2022/utils/generators/uuid/src/uuid.mjs +0 -5
  302. package/esm2022/utils/pipes/extract-extension/public-api.mjs +0 -2
  303. package/esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +0 -5
  304. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +0 -30
  305. package/esm2022/utils/pipes/time/public-api.mjs +0 -2
  306. package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +0 -5
  307. package/esm2022/utils/pipes/time/src/time.pipe.mjs +0 -19
  308. package/esm2022/utils/pipes/to-bytes-extesion/public-api.mjs +0 -2
  309. package/esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +0 -5
  310. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +0 -29
  311. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -245
  312. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +0 -1
  313. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -122
  314. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +0 -1
  315. /package/assets/styles/{toast.scss → toast.css} +0 -0
  316. /package/components/file-upload/{file-dropzone/src/file-dropzone.constants.d.ts → shared/const/file-upload.constants.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-file-upload.mjs","sources":["../../../projects/sdk/components/file-upload/shared/const/file-upload.constants.ts","../../../projects/sdk/components/file-upload/file-dropzone/file-dropzone.component.ts","../../../projects/sdk/components/file-upload/file-dropzone/file-dropzone.component.html","../../../projects/sdk/components/file-upload/file-uploader/file-uploader.component.ts","../../../projects/sdk/components/file-upload/file-uploader/file-uploader.component.html","../../../projects/sdk/components/file-upload/sixbell-telco-sdk-components-file-upload.ts"],"sourcesContent":["export const AUDIO_EXTENSIONS = ['.mp3', '.wav', '.ogg', '.m4a', '.aac', '.wma'] as const;\nexport const VIDEO_EXTENSIONS = ['.mp4', '.avi', '.mov', '.wmv', '.mkv', '.flv', '.webm'] as const;\nexport const IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.svg', '.webp'] as const;\nexport const DOCUMENT_EXTENSIONS = ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.csv'] as const;\nexport const ARCHIVE_EXTENSIONS = ['.zip', '.rar', '.7z'] as const;\nexport const CODE_EXTENSIONS = ['.html', '.xml', '.json', '.js', '.ts', '.css'] as const;\n","import { NgClass } from '@angular/common';\nimport { Component, computed, ElementRef, forwardRef, inject, input, model, output, signal, viewChild } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { _, TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { AudioPlayerComponent, AudioPlayerService, ButtonPlayComponent, Track } from '@sixbell-telco/sdk/components/audio-player';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport {\n\tmatCloudUpload,\n\tmatDelete,\n\tmatDownload,\n\tmatError,\n\tmatInsertDriveFile,\n\tmatVisibility,\n\tmatVisibilityOff,\n} from '@sixbell-telco/sdk/components/icon/material/baseline';\nimport { TooltipComponent } from '@sixbell-telco/sdk/components/tooltip';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { ExtractExtensionPipe } from '@sixbell-telco/sdk/utils/pipes/extract-extension';\nimport { ToBytesPipe } from '@sixbell-telco/sdk/utils/pipes/to-bytes-extesion';\nimport { startWith, switchMap } from 'rxjs';\nimport { AUDIO_EXTENSIONS } from '../shared/const/file-upload.constants';\nimport { FileExtension } from '../shared/types/file-upload';\n\n/**\n * A customizable drag-and-drop file upload zone with audio playback capabilities\n *\n * @remarks\n * Supports file validation, multi-file uploads, and audio file preview/playback.\n * Implements ControlValueAccessor for Angular form integration.\n *\n * @example\n * ```html\n * <st-file-dropzone\n * [extensions]=\"['.mp3', '.wav']\"\n * [maxFiles]=\"3\"\n * (fileDropped)=\"handleUpload($event)\"\n * ></st-file-dropzone>\n * ```\n *\n * @example\n * ```html\n * <!-- Form integration -->\n * <st-file-dropzone\n * [parentForm]=\"mediaForm\"\n * formControlName=\"attachments\"\n * [multiple]=\"true\"\n * ></st-file-dropzone>\n * ```\n */\n@Component({\n\tselector: 'st-file-dropzone',\n\timports: [\n\t\tNgClass,\n\t\tButtonComponent,\n\t\tTypographyDirective,\n\t\tToBytesPipe,\n\t\tExtractExtensionPipe,\n\t\tIconComponent,\n\t\tButtonPlayComponent,\n\t\tAudioPlayerComponent,\n\t\tFormsModule,\n\t\tTranslatePipe,\n\t\tTooltipComponent,\n\t],\n\ttemplateUrl: './file-dropzone.component.html',\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => DropzoneComponent),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class DropzoneComponent implements ControlValueAccessor {\n\t/** @internal Translation service instance */\n\ttranslateService = inject(TranslateService);\n\n\t/** @internal Audio player service instance */\n\taudioService = inject(AudioPlayerService);\n\n\t// Input properties\n\t/**\n\t * Maximum number of allowed files\n\t * @defaultValue 1\n\t */\n\tmaxFiles = input<number>(1);\n\n\t/**\n\t * Maximum file size in bytes (0 for unlimited)\n\t * @defaultValue 0\n\t */\n\tmaxFileSize = input<number>(0);\n\n\t/**\n\t * Whether to display uploaded files list\n\t * @defaultValue true\n\t */\n\tshowFiles = input<boolean>(true);\n\n\t/**\n\t * Allowed file extensions (e.g., ['.pdf', '.mp3'])\n\t */\n\textensions = input.required<FileExtension[]>();\n\n\t/**\n\t * Whether upload is in progress\n\t * @defaultValue false\n\t */\n\tuploading = input<boolean>(false);\n\n\t/**\n\t * Whether the component is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Whether multiple files can be uploaded\n\t * @defaultValue false\n\t */\n\tmultiple = input<boolean>(false);\n\n\t/**\n\t * HTML name attribute for the input\n\t * @defaultValue 'file'\n\t */\n\tname = input<string>('file');\n\n\t/**\n\t * Computed accept attribute for file input\n\t * @internal\n\t */\n\taccept = computed(() => this.extensions().join(','));\n\n\t/** @internal Tracks audio player open state */\n\topened = signal<boolean>(false);\n\n\t/** @internal Tracks blur events for validation */\n\tprivate blurTrigger = signal(0);\n\n\t// Form integration\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t// Output events\n\t/**\n\t * Emitted when valid files are dropped/selected\n\t */\n\tfileDropped = output<File[]>();\n\n\t/**\n\t * Emitted when a file is removed\n\t */\n\tfileRemoved = output<File>();\n\n\t// Internal state\n\t/** @internal Current list of uploaded files */\n\tfiles = signal<File[]>([]);\n\n\t/** @internal Drag state tracker */\n\tisDragging = signal<boolean>(false);\n\n\t/** @internal Validation error message */\n\terrorMessage = signal<string>('');\n\n\t// ControlValueAccessor implementation\n\t/** @internal Change callback function */\n\tprivate onControlChange: (value: File[]) => void = () => {};\n\n\t/** @internal Touch callback function */\n\tprivate onControlTouch: () => void = () => {};\n\n\t/** @internal Reference to file input element */\n\tfileInput = viewChild<ElementRef>('fileInput');\n\n\t// Icon references\n\t/** @internal Material icon references */\n\ticonDelete = matDelete;\n\ticonDownload = matDownload;\n\ticonInsertDriveFile = matInsertDriveFile;\n\ticonCloudUpload = matCloudUpload;\n\ticonError = matError;\n\ticonVisibility = matVisibility;\n\ticonVisibilityOff = matVisibilityOff;\n\n\t/**\n\t * Computed audio tracks from uploaded files\n\t * @internal\n\t */\n\ttracks = computed<Track[]>(() => {\n\t\treturn this.files()\n\t\t\t.filter((audio) => this.checkIfIsAudioFile(audio))\n\t\t\t.map((audio) => ({\n\t\t\t\ttitle: audio.name,\n\t\t\t\tdescription: new ToBytesPipe().transform(audio.size),\n\t\t\t\turl: URL.createObjectURL(audio),\n\t\t\t}));\n\t});\n\n\t/**\n\t * Whether to show audio player controls\n\t * @internal\n\t */\n\taddAudioPlayer = computed(() => this.extensions().some((ext) => AUDIO_EXTENSIONS.includes(ext as (typeof AUDIO_EXTENSIONS)[number])));\n\n\t/**\n\t * Gets track index for audio files\n\t * @param file - File to check\n\t * @returns Index in audio tracks array\n\t * @internal\n\t */\n\tgetIndexForTracks(file: File) {\n\t\treturn this.files()\n\t\t\t.filter((audio) => this.checkIfIsAudioFile(audio))\n\t\t\t.indexOf(file);\n\t}\n\n\t// Drag and drop handlers\n\t/**\n\t * Handles drag over event\n\t * @param event - Drag event\n\t * @internal\n\t */\n\thandleDragOver(event: DragEvent) {\n\t\tevent.preventDefault();\n\t\tif (this.disabled()) return;\n\t\tthis.isDragging.set(true);\n\t}\n\n\t/**\n\t * Handles drag leave event\n\t * @param event - Drag event\n\t * @internal\n\t */\n\thandleDragLeave(event: DragEvent) {\n\t\tevent.preventDefault();\n\t\tthis.isDragging.set(false);\n\t}\n\n\t/**\n\t * Handles file drop event\n\t * @param event - Drag event\n\t * @internal\n\t */\n\thandleDrop(event: DragEvent) {\n\t\tevent.preventDefault();\n\t\tthis.isDragging.set(false);\n\t\tif (this.disabled()) return;\n\n\t\tconst files = Array.from(event.dataTransfer?.files || []);\n\t\tthis.processFiles(files);\n\t}\n\n\t/**\n\t * Handles file input selection\n\t * @param event - Input change event\n\t * @internal\n\t */\n\thandleFileSelect(event: Event) {\n\t\tconst input = event.target as HTMLInputElement;\n\t\tconst files = Array.from(input.files || []);\n\t\tthis.processFiles(files);\n\t\tinput.value = ''; // Reset input\n\t}\n\n\t/** @internal Processes and validates uploaded files */\n\tprivate processFiles(files: File[]) {\n\t\tthis.errorMessage.set('');\n\n\t\t// Validate max files\n\t\tconst totalFiles = this.files().length + files.length;\n\t\tif (this.maxFiles() > 0 && totalFiles > this.maxFiles()) {\n\t\t\tthis.translateService.get(_('sdk.fileUpload.dropzone.maxFilesExceeded'), { max: this.maxFiles() }).subscribe((res: string) => {\n\t\t\t\tthis.errorMessage.set(res);\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\n\t\t// File validation\n\t\tconst validFiles = files.filter((file) => {\n\t\t\tconst isValidSize = this.validateFileSize(file);\n\t\t\tconst isValidType = this.validateFileType(file);\n\n\t\t\tif (!isValidSize) {\n\t\t\t\tconsole.warn(`File ${file.name} exceeds size limit`);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!isValidType) {\n\t\t\t\tconsole.warn(`File ${file.name} has invalid type`);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\n\t\tif (validFiles.length > 0) {\n\t\t\tthis.files.update((current) => [...current, ...validFiles]);\n\t\t\tthis.onControlChange(this.files());\n\t\t\tthis.onControlTouch();\n\t\t\tthis.fileDropped.emit(validFiles);\n\t\t} else {\n\t\t\tthis.translateService.get(_('sdk.fileUpload.dropzone.noValidFiles')).subscribe((res: string) => {\n\t\t\t\tthis.errorMessage.set(res);\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Validates file size against maxFileSize\n\t * @param file - File to validate\n\t * @returns True if file size is valid\n\t * @internal\n\t */\n\tvalidateFileSize(file: File): boolean {\n\t\treturn this.maxFileSize() === 0 || file.size <= this.maxFileSize();\n\t}\n\n\t/**\n\t * Validates file type against allowed extensions\n\t * @param file - File to validate\n\t * @returns True if file type is valid\n\t * @internal\n\t */\n\tvalidateFileType(file: File): boolean {\n\t\tif (this.extensions().length === 0) return true;\n\t\tconst extension = file.name.match(/\\.([0-9a-z]+)$/i)?.[0]?.toLowerCase() || '';\n\t\treturn this.extensions().some((ext) => ext.toLowerCase() === extension);\n\t}\n\n\t/**\n\t * Handles file download\n\t * @param file - File to download\n\t * @internal\n\t */\n\thandlefileDownload(file: File) {\n\t\tconst url = URL.createObjectURL(file);\n\t\tconst a = document.createElement('a');\n\t\ta.href = url;\n\t\ta.download = file.name;\n\t\tdocument.body.appendChild(a);\n\t\ta.click();\n\t\tURL.revokeObjectURL(url);\n\t\tdocument.body.removeChild(a);\n\t}\n\n\t/**\n\t * Removes a file from the list\n\t * @param file - File to remove\n\t * @internal\n\t */\n\thandleRemove(file: File) {\n\t\tthis.files.update((current) => current.filter((f) => f !== file));\n\t\tthis.onControlChange(this.files());\n\t\tthis.onControlTouch();\n\t\tthis.fileRemoved.emit(file);\n\t}\n\n\t/**\n\t * Checks if a file is an audio file\n\t * @param file - File to check\n\t * @returns True if audio file\n\t * @internal\n\t */\n\tcheckIfIsAudioFile(file: File) {\n\t\treturn AUDIO_EXTENSIONS.some((ext) => file.name.endsWith(ext));\n\t}\n\n\t/**\n\t * Toggles audio player visibility\n\t * @internal\n\t */\n\thandleAudioPlayerOpen() {\n\t\tthis.opened.set(!this.opened());\n\t}\n\n\t/** @internal Cleans up object URLs */\n\tngDestroy() {\n\t\tthis.tracks().forEach((track) => URL.revokeObjectURL(track.url));\n\t}\n\n\t// ControlValueAccessor implementation\n\t/**\n\t * Writes form value to component\n\t * @param files - Array of files from form control\n\t */\n\twriteValue(files: File[]): void {\n\t\tthis.files.set(files || []);\n\t}\n\n\t/**\n\t * Registers change callback\n\t * @param fn - Callback function for value changes\n\t */\n\tregisterOnChange(fn: (value: File[]) => void): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\t/**\n\t * Registers touch callback\n\t * @param fn - Callback function for touch events\n\t */\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\t/**\n\t * Sets disabled state\n\t * @param isDisabled - Whether component is disabled\n\t */\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * Triggers file input dialog\n\t * @internal\n\t */\n\ttriggerFileInput() {\n\t\tif (!this.disabled()) {\n\t\t\tthis.fileInput()?.nativeElement.click();\n\t\t}\n\t}\n\n\t// Form control integration\n\t/** @internal Form control reference */\n\tprivate formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\n\t/** @internal Form control observable */\n\tprivate formControl$ = toObservable(this.formControl);\n\n\t/** @internal Status changes observable */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\n\t/** @internal Value changes observable */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\n\t/** @internal Status signal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\n\t/** @internal State signal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * Handles blur events for validation\n\t * @internal\n\t */\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/**\n\t * Computes CSS classes for dropzone based on state\n\t * @internal\n\t */\n\tdropzoneClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tconst baseClasses =\n\t\t\t'cursor-pointer rounded-lg border-2 border-dashed p-8 text-center transition-colors duration-300 border-secondary hover:bg-secondary/10';\n\n\t\tif (!control) return baseClasses;\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tconst isFormError = control.invalid && (control.touched || isTouched);\n\t\tconst isComponentError = !!this.errorMessage();\n\n\t\treturn cn(baseClasses, {\n\t\t\t'border-secondary bg-secondary/30': this.isDragging() && !this.disabled(),\n\t\t\t'cursor-not-allowed bg-base-100/40 text-base-content/40': this.disabled(),\n\t\t\t'border-error bg-error/15 hover:border-error hover:bg-error/10': isComponentError || isFormError,\n\t\t});\n\t});\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<div class=\"w-full\">\n\t<div\n\t\t[class]=\"dropzoneClass()\"\n\t\t(dragover)=\"handleDragOver($event)\"\n\t\t(dragleave)=\"handleDragLeave($event)\"\n\t\t(drop)=\"handleDrop($event)\"\n\t\t(click)=\"triggerFileInput()\"\n\t\t(blur)=\"handleBlur()\"\n\t\ttabindex=\"0\"\n\t>\n\t\t@if (parentForm()) {\n\t\t\t<input\n\t\t\t\t#fileInput\n\t\t\t\ttype=\"file\"\n\t\t\t\t[multiple]=\"multiple()\"\n\t\t\t\t[accept]=\"accept()\"\n\t\t\t\t(change)=\"handleFileSelect($event)\"\n\t\t\t\t[name]=\"name()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t\trequired\n\t\t\t\thidden\n\t\t\t/>\n\t\t} @else {\n\t\t\t<input #fileInput type=\"file\" [multiple]=\"multiple()\" [accept]=\"accept()\" (change)=\"handleFileSelect($event)\" [name]=\"name()\" required hidden />\n\t\t}\n\n\t\t<div class=\"grid h-48 place-content-center\">\n\t\t\t@let errorMessageVar = this.errorMessage();\n\t\t\t@if (errorMessageVar) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconError\" size=\"xl\" class=\"text-error\" />\n\t\t\t\t\t<div typography [tyVariant]=\"'body'\">\n\t\t\t\t\t\t{{ errorMessageVar }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (!uploading()) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconCloudUpload\" size=\"xl\" class=\"text-accent\" />\n\t\t\t\t\t<div typography [tyVariant]=\"'body'\">\n\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.selectPrompt' | translate }}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t@if (maxFileSize() > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" tyFontWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.maxSizeLabel' | translate }} <span class=\"text-accent\">{{ maxFileSize() | toBytes }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t@if (extensions().length > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" tyFontWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ extensions().join(', ') }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t@if (maxFiles() > 0) {\n\t\t<div class=\"mt-4 flex items-center justify-between\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<span typography [tyVariant]=\"'body-sm'\" [ngClass]=\"{ 'text-error': files().length > maxFiles() }\">\n\t\t\t\t{{ 'sdk.fileUpload.dropzone.fileCounter' | translate: { current: files().length, max: maxFiles() } }}\n\t\t\t</span>\n\t\t</div>\n\t}\n\n\t@if (showFiles() && files().length > 0) {\n\t\t<div class=\"mt-4 space-y-2\">\n\t\t\t@for (file of files(); track $index) {\n\t\t\t\t<div class=\"bg-neutral/30 flex items-center justify-between rounded-md py-3 pr-5 pl-3\">\n\t\t\t\t\t<div class=\"flex items-center justify-start\">\n\t\t\t\t\t\t<div class=\"text-primary relative\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconInsertDriveFile\" size=\"xl\" />\n\t\t\t\t\t\t\t<div class=\"text-primary-content absolute bottom-2 left-1/2 -translate-x-1/2\">\n\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xxs'\" tyFontWeight=\"medium\">\n\t\t\t\t\t\t\t\t\t{{ file.name | extractExtension }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex flex-col items-start justify-between\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\">\n\t\t\t\t\t\t\t\t{{ file.name }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<div class=\"text-tertiary\">\n\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\"> {{ file.size | toBytes }} </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"inline-flex items-center justify-end gap-1 align-top\">\n\t\t\t\t\t\t@if (checkIfIsAudioFile(file)) {\n\t\t\t\t\t\t\t<st-tooltip\n\t\t\t\t\t\t\t\t[label]=\"\n\t\t\t\t\t\t\t\t\t!this.audioService.isPlayingATrack()\n\t\t\t\t\t\t\t\t\t\t? ('sdk.fileUpload.dropzone.fileActions.play' | translate)\n\t\t\t\t\t\t\t\t\t\t: ('sdk.fileUpload.dropzone.fileActions.pause' | translate)\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<st-button-play\n\t\t\t\t\t\t\t\t\t[outline]=\"true\"\n\t\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t[asButton]=\"true\"\n\t\t\t\t\t\t\t\t\t[trackIndex]=\"getIndexForTracks(file)\"\n\t\t\t\t\t\t\t\t\t(togglePlay)=\"handleAudioPlayerOpen()\"\n\t\t\t\t\t\t\t\t></st-button-play>\n\t\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<div></div>\n\t\t\t\t\t\t<st-tooltip [label]=\"'sdk.fileUpload.dropzone.fileActions.download' | translate\" variant=\"secondary\">\n\t\t\t\t\t\t\t<st-button\n\t\t\t\t\t\t\t\tclass=\"text-lg\"\n\t\t\t\t\t\t\t\t[icon]=\"iconDownload\"\n\t\t\t\t\t\t\t\tvariant=\"info\"\n\t\t\t\t\t\t\t\t[outline]=\"true\"\n\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t(click)=\"handlefileDownload(file)\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t\t<st-tooltip [label]=\"'sdk.fileUpload.dropzone.fileActions.remove' | translate\" variant=\"secondary\">\n\t\t\t\t\t\t\t<st-button\n\t\t\t\t\t\t\t\tclass=\"text-lg\"\n\t\t\t\t\t\t\t\t[icon]=\"iconDelete\"\n\t\t\t\t\t\t\t\tvariant=\"error\"\n\t\t\t\t\t\t\t\t[outline]=\"true\"\n\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t(click)=\"handleRemove(file)\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t}\n</div>\n@if (addAudioPlayer()) {\n\t<st-audio-player [tracks]=\"tracks()\" [showTrackList]=\"false\" variant=\"fixed\" [(opened)]=\"opened\"></st-audio-player>\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, computed, ElementRef, forwardRef, input, model, output, signal, viewChild } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { InputComponent, InputSizeProps, InputVariantProps } from '@sixbell-telco/sdk/components/forms/input';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { startWith, switchMap } from 'rxjs';\nimport { FileExtension } from '../shared/types/file-upload';\n\n/** Possible style variants for the file uploader component */\nexport type FileUploaderVariantProps = InputVariantProps;\n\n/** Possible size variants for the file uploader component */\nexport type FileUploaderSizeProps = InputSizeProps;\n\n/** Configuration object for file uploader styling */\nexport type FileUploaderProps = {\n\tvariant?: FileUploaderVariantProps;\n\tsize?: FileUploaderSizeProps;\n};\n\n/**\n * A customizable file upload component with form integration and validation support\n *\n * @remarks\n * Supports file type restrictions, form control integration, and visual validation states.\n * Implements ControlValueAccessor for Angular form compatibility.\n *\n * @example\n * ```html\n * <!-- Basic file upload -->\n * <st-file-uploader\n * [extensions]=\"['.pdf', '.docx']\"\n * label=\"Upload Resume\"\n * ></st-file-uploader>\n * ```\n *\n * @example\n * ```html\n * <!-- Reactive form integration -->\n * <st-file-uploader\n * [parentForm]=\"documentForm\"\n * formControlName=\"attachment\"\n * variant=\"primary\"\n * ></st-file-uploader>\n * ```\n */\n@Component({\n\tselector: 'st-file-uploader',\n\timports: [FormsModule, InputComponent, TypographyDirective, TranslatePipe],\n\tproviders: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }],\n\ttemplateUrl: './file-uploader.component.html',\n\tchangeDetection: ChangeDetectionStrategy.Default,\n})\nexport class FileUploaderComponent implements ControlValueAccessor {\n\t/**\n\t * Visual style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<FileUploaderVariantProps>('secondary');\n\n\t/**\n\t * Component size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<FileUploaderSizeProps>('md');\n\n\t/**\n\t * Label displayed above the uploader\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Placeholder text when no file is selected\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether to show allowed file extensions\n\t * @defaultValue true\n\t */\n\tshowExtensions = input<boolean>(true);\n\n\t/**\n\t * Allowed file extensions (e.g., ['.pdf', '.docx'])\n\t */\n\textensions = input.required<FileExtension[]>();\n\n\t/**\n\t * Computed accept attribute for native file input\n\t * @internal\n\t */\n\taccept = computed(() => this.extensions().join(','));\n\n\t/**\n\t * Event emitted when a valid file is selected\n\t */\n\tfileUpdated = output<File>();\n\n\t/**\n\t * Current selected filename\n\t * @internal\n\t */\n\tfilename = '';\n\n\t/**\n\t * Current file value\n\t * @internal\n\t */\n\tfileValue: File | null = null;\n\n\t/**\n\t * Formatted extensions string for display\n\t * @internal\n\t */\n\tformattedExtensions = computed(() => this.extensions().join(', '));\n\n\t/**\n\t * Reference to the hidden file input\n\t * @internal\n\t */\n\tfileInput = viewChild<ElementRef>('uploader');\n\n\t/**\n\t * Event emitted on component blur\n\t */\n\tblurred = output<File | null>();\n\n\t/**\n\t * Whether the component is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/** @internal Track blur events for validation */\n\tprivate blurTrigger = signal(0);\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t/**\n\t * Two-way bindable file value\n\t */\n\tvalue = model<File | null>(null);\n\n\t// ControlValueAccessor implementation\n\t/** @internal */\n\tprivate onControlChange: any = () => {};\n\t/** @internal */\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Writes form value to component\n\t * @param obj - The incoming form value\n\t */\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\t/**\n\t * Registers change callback\n\t * @param fn - Callback function for value changes\n\t */\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\t/**\n\t * Registers touch callback\n\t * @param fn - Callback function for touch events\n\t */\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\t/**\n\t * Sets disabled state\n\t * @param isDisabled - Whether the component should be disabled\n\t */\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * Handles click event on the upload area\n\t * @internal\n\t */\n\thandleClick() {\n\t\tif (!this.fileInput()) return;\n\t\tthis.fileInput()?.nativeElement.click();\n\t\tthis.handleBlur();\n\t}\n\n\t/**\n\t * Notifies form control of value changes\n\t * @internal\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * Handles file selection from input\n\t * @param event - File input change event\n\t * @internal\n\t */\n\thandleFileChange(event: Event) {\n\t\tconst file: File | undefined = (event.target as HTMLInputElement).files?.[0];\n\t\tif (file instanceof File) {\n\t\t\tthis.filename = file.name;\n\t\t\tthis.value.set(file);\n\t\t\tthis.fileUpdated.emit(file);\n\t\t\tthis.handleChange();\n\t\t}\n\t}\n\n\t/**\n\t * Clears selected file\n\t * @internal\n\t */\n\tremoveFile() {\n\t\tthis.filename = '';\n\t\tthis.value.set(null);\n\t\tthis.handleChange();\n\t}\n\n\t/**\n\t * @internal\n\t * Returns base component classes\n\t */\n\tcomponentClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: this.variant(),\n\t\t\tsize: this.size(),\n\t\t};\n\t}\n\n\t/**\n\t * @internal\n\t * Returns error state classes\n\t */\n\terrorClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'error',\n\t\t\tsize: this.size(),\n\t\t};\n\t}\n\n\t/**\n\t * @internal\n\t * Returns success state classes\n\t */\n\tsuccessClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'success',\n\t\t\tsize: this.size(),\n\t\t};\n\t}\n\n\t/**\n\t * Handles blur events and validation\n\t * @internal\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t// Form control integration\n\t/** @internal */\n\tprivate formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * Computes validation classes based on form state\n\t * @internal\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n}\n","<st-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t(blur)=\"handleBlur()\"\n\t[disabled]=\"disabled()\"\n\t(valueChange)=\"handleChange()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" tyFontWeight=\"normal\">\n\t\t\t\t\t{{ 'sdk.fileUpload.fileUploader.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ formattedExtensions() }}</span>\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</st-input>\n\n<input type=\"file\" #uploader hidden (change)=\"handleFileChange($event)\" (blur)=\"handleBlur()\" [accept]=\"accept()\" required />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAa,MAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;AAClE,MAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO;AAC3E,MAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,OAA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AA,mBAAmB,wHAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,OAAA,EAAA,CAAA;;2FAK7D,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EACnB,OAAA,EAAA,CAAC,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAC/D,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAE7F,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,66BAAA,EAAA;;;AErDjD;;AAEG;;;;"}
@@ -1,13 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, model, output, Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { input, model, output, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
- import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
5
- import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
4
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
6
5
  import { cn } from '@sixbell-telco/sdk/utils/cn';
7
6
  import { cva } from 'class-variance-authority';
8
7
 
9
8
  /* eslint-disable @typescript-eslint/no-explicit-any */
10
- const checkboxComponent = cva(['checkbox'], {
9
+ /**
10
+ * @internal
11
+ * Generates base checkbox classes with style variants
12
+ */
13
+ const checkboxComponent = cva(['checkbox', 'font-body'], {
11
14
  variants: {
12
15
  variant: {
13
16
  primary: ['checkbox-primary'],
@@ -24,6 +27,7 @@ const checkboxComponent = cva(['checkbox'], {
24
27
  sm: ['checkbox-sm'],
25
28
  md: ['checkbox-md'],
26
29
  lg: ['checkbox-lg'],
30
+ xl: ['checkbox-xl'],
27
31
  },
28
32
  },
29
33
  compoundVariants: [],
@@ -32,17 +36,75 @@ const checkboxComponent = cva(['checkbox'], {
32
36
  size: 'md',
33
37
  },
34
38
  });
39
+ /**
40
+ * A customizable checkbox component with various styling options
41
+ *
42
+ * @remarks
43
+ * Implements ControlValueAccessor for seamless integration with Angular forms.
44
+ * Supports both standalone usage and form integration with reactive/template-driven forms.
45
+ *
46
+ * @example
47
+ * ```html
48
+ * <!-- Basic usage -->
49
+ * <st-checkbox [(value)]="isChecked"></st-checkbox>
50
+ * ```
51
+ *
52
+ * @example
53
+ * ```html
54
+ * <!-- With label and custom styling -->
55
+ * <st-checkbox
56
+ * variant="success"
57
+ * size="lg"
58
+ * label="Accept terms"
59
+ * [(value)]="termsAccepted"
60
+ * ></st-checkbox>
61
+ * ```
62
+ */
35
63
  class CheckboxComponent {
36
- // Base checkbox properties
37
- variant = input();
38
- size = input();
64
+ /**
65
+ * Checkbox color variant
66
+ * @defaultValue 'primary'
67
+ */
68
+ variant = input('primary');
69
+ /**
70
+ * Checkbox size variant
71
+ * @defaultValue 'md'
72
+ */
73
+ size = input('md');
74
+ /**
75
+ * Label text displayed next to the checkbox
76
+ */
39
77
  label = input('');
78
+ /**
79
+ * HTML name attribute for the checkbox
80
+ */
40
81
  name = input(null);
82
+ /**
83
+ * Two-way bindable checkbox state
84
+ */
41
85
  value = model(false);
42
- // ControlValueAccessor attributes
86
+ /**
87
+ * Event emitted when checkbox state changes
88
+ */
89
+ valueUpdated = output();
90
+ // ControlValueAccessor implementation
43
91
  onControlChange = () => { };
44
92
  onControlTouch = () => { };
93
+ /**
94
+ * Whether the checkbox is disabled
95
+ * @defaultValue false
96
+ */
45
97
  disabled = model(false);
98
+ /**
99
+ * @internal
100
+ * Computed class string for the checkbox
101
+ */
102
+ componentClass = computed(() => {
103
+ return cn(checkboxComponent({
104
+ variant: this.variant(),
105
+ size: this.size(),
106
+ }));
107
+ });
46
108
  // ControlValueAccessor methods
47
109
  writeValue(obj) {
48
110
  this.value.set(obj);
@@ -56,41 +118,39 @@ class CheckboxComponent {
56
118
  setDisabledState(isDisabled) {
57
119
  this.disabled.set(isDisabled);
58
120
  }
59
- // Change handler
60
- onChange = output();
121
+ /**
122
+ * @internal
123
+ * Handles checkbox state changes
124
+ */
61
125
  handleChange() {
62
126
  this.onControlChange(this.value());
63
- this.onChange.emit(this.value());
127
+ this.valueUpdated.emit(this.value());
64
128
  }
65
- // Blur handler
129
+ /**
130
+ * @internal
131
+ * Handles blur event
132
+ */
66
133
  handleBlur() {
67
134
  this.onControlTouch();
68
135
  }
69
- // classes
70
- get componentClass() {
71
- return cn(checkboxComponent({
72
- variant: this.variant(),
73
- size: this.size(),
74
- }));
75
- }
76
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
77
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: CheckboxComponent, isStandalone: true, selector: "st-checkbox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
136
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
137
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.1", type: CheckboxComponent, isStandalone: true, selector: "st-checkbox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueUpdated: "valueUpdated", disabled: "disabledChange" }, providers: [
78
138
  {
79
139
  provide: NG_VALUE_ACCESSOR,
80
140
  useExisting: CheckboxComponent,
81
141
  multi: true,
82
142
  },
83
- ], ngImport: i0, template: "<label class=\"flex cursor-pointer items-center justify-start gap-2\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\">{{ label() }}</span>\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
143
+ ], ngImport: i0, template: "<label class=\"fieldset-label text-base-content font-body\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
144
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CheckboxComponent, decorators: [{
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: CheckboxComponent, decorators: [{
86
146
  type: Component,
87
- args: [{ selector: 'st-checkbox', standalone: true, imports: [FormsModule, TypographyDirective], providers: [
147
+ args: [{ selector: 'st-checkbox', imports: [FormsModule], providers: [
88
148
  {
89
149
  provide: NG_VALUE_ACCESSOR,
90
150
  useExisting: CheckboxComponent,
91
151
  multi: true,
92
152
  },
93
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"flex cursor-pointer items-center justify-start gap-2\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\">{{ label() }}</span>\n</label>\n" }]
153
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"fieldset-label text-base-content font-body\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n" }]
94
154
  }] });
95
155
 
96
156
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-checkbox.mjs","sources":["../../../projects/sdk/components/forms/checkbox/src/checkbox.component.ts","../../../projects/sdk/components/forms/checkbox/src/checkbox.component.html","../../../projects/sdk/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst checkboxComponent = cva(['checkbox'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['checkbox-primary'],\n\t\t\tsecondary: ['checkbox-secondary'],\n\t\t\ttertiary: ['checkbox-tertiary'],\n\t\t\taccent: ['checkbox-accent'],\n\t\t\tsuccess: ['checkbox-success'],\n\t\t\twarning: ['checkbox-warning'],\n\t\t\tinfo: ['checkbox-info'],\n\t\t\terror: ['checkbox-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['checkbox-xs'],\n\t\t\tsm: ['checkbox-sm'],\n\t\t\tmd: ['checkbox-md'],\n\t\t\tlg: ['checkbox-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tsize: 'md',\n\t},\n});\n\nexport type CheckboxVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;\nexport type CheckboxSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type CheckboxProps = {\n\tvariant?: CheckboxVariantProps;\n\tsize?: CheckboxSizeProps;\n};\n\n@Component({\n\tselector: 'st-checkbox',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: CheckboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxComponent implements ControlValueAccessor {\n\t// Base checkbox properties\n\tvariant = input<CheckboxVariantProps>();\n\tsize = input<CheckboxSizeProps>();\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\n\tvalue = model<boolean>(false);\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Change handler\n\tonChange = output<boolean>();\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.onChange.emit(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// classes\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tcheckboxComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<label class=\"flex cursor-pointer items-center justify-start gap-2\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\">{{ label() }}</span>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAOA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,UAAU,CAAC,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;YAC/B,MAAM,EAAE,CAAC,iBAAiB,CAAC;YAC3B,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,KAAK,EAAE,CAAC,gBAAgB,CAAC;AACzB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,aAAa,CAAC;YACnB,EAAE,EAAE,CAAC,aAAa,CAAC;YACnB,EAAE,EAAE,CAAC,aAAa,CAAC;YACnB,EAAE,EAAE,CAAC,aAAa,CAAC;AACnB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,IAAI;AACV,KAAA;AACD,CAAA,CAAC,CAAC;MAwBU,iBAAiB,CAAA;;IAE7B,OAAO,GAAG,KAAK,EAAwB,CAAC;IACxC,IAAI,GAAG,KAAK,EAAqB,CAAC;AAClC,IAAA,KAAK,GA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EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oYAAA,EAAA,CAAA;;;AErDhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-checkbox.mjs","sources":["../../../projects/sdk/components/forms/checkbox/src/checkbox.component.ts","../../../projects/sdk/components/forms/checkbox/src/checkbox.component.html","../../../projects/sdk/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base checkbox classes with style variants\n */\nconst checkboxComponent = cva(['checkbox', 'font-body'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['checkbox-primary'],\n\t\t\tsecondary: ['checkbox-secondary'],\n\t\t\ttertiary: ['checkbox-tertiary'],\n\t\t\taccent: ['checkbox-accent'],\n\t\t\tsuccess: ['checkbox-success'],\n\t\t\twarning: ['checkbox-warning'],\n\t\t\tinfo: ['checkbox-info'],\n\t\t\terror: ['checkbox-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['checkbox-xs'],\n\t\t\tsm: ['checkbox-sm'],\n\t\t\tmd: ['checkbox-md'],\n\t\t\tlg: ['checkbox-lg'],\n\t\t\txl: ['checkbox-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible checkbox color variants */\nexport type CheckboxVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;\n\n/** Possible checkbox size variants */\nexport type CheckboxSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for checkbox styling */\nexport type CheckboxProps = {\n\tvariant?: CheckboxVariantProps;\n\tsize?: CheckboxSizeProps;\n};\n\n/**\n * A customizable checkbox component with various styling options\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both standalone usage and form integration with reactive/template-driven forms.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-checkbox [(value)]=\"isChecked\"></st-checkbox>\n * ```\n *\n * @example\n * ```html\n * <!-- With label and custom styling -->\n * <st-checkbox\n * variant=\"success\"\n * size=\"lg\"\n * label=\"Accept terms\"\n * [(value)]=\"termsAccepted\"\n * ></st-checkbox>\n * ```\n */\n@Component({\n\tselector: 'st-checkbox',\n\timports: [FormsModule],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: CheckboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxComponent implements ControlValueAccessor {\n\t/**\n\t * Checkbox color variant\n\t * @defaultValue 'primary'\n\t */\n\tvariant = input<CheckboxVariantProps>('primary');\n\n\t/**\n\t * Checkbox size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<CheckboxSizeProps>('md');\n\n\t/**\n\t * Label text displayed next to the checkbox\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML name attribute for the checkbox\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Two-way bindable checkbox state\n\t */\n\tvalue = model<boolean>(false);\n\n\t/**\n\t * Event emitted when checkbox state changes\n\t */\n\tvalueUpdated = output<boolean>();\n\n\t// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the checkbox is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * @internal\n\t * Computed class string for the checkbox\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tcheckboxComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles checkbox state changes\n\t */\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.valueUpdated.emit(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n}\n","<label class=\"fieldset-label text-base-content font-body\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAAA;AAMA;;;AAGG;AACH,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE;AACxD,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;YAC/B,MAAM,EAAE,CAAC,iBAAiB,CAAC;YAC3B,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC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,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAWT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAb7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EACd,OAAA,EAAA,CAAC,WAAW,CAAC,EACX,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAmB,iBAAA;AAC9B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wTAAA,EAAA;;;AEpFhD;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, model, output, computed, Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { input, model, output, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import * as i2 from '@angular/forms';
4
- import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
4
+ import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
5
5
  import * as i1 from '@ng-select/ng-select';
6
6
  import { NgSelectModule } from '@ng-select/ng-select';
7
7
  import { TranslatePipe } from '@ngx-translate/core';
@@ -11,7 +11,7 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
11
11
  import { cva } from 'class-variance-authority';
12
12
 
13
13
  /* eslint-disable @typescript-eslint/no-explicit-any */
14
- const comboboxComponent = cva(['[&>*]:w-full', 'font-body', 'custom-ng-select'], {
14
+ const comboboxComponent = cva(['*:w-full', 'font-body', 'custom-ng-select'], {
15
15
  variants: {
16
16
  variant: {
17
17
  primary: ['combobox-primary first:'],
@@ -21,15 +21,15 @@ const comboboxComponent = cva(['[&>*]:w-full', 'font-body', 'custom-ng-select'],
21
21
  warning: ['combobox-warning'],
22
22
  },
23
23
  shape: {
24
- 'round-none': ['[&>*]:rounded-[0px_!important]'],
25
- 'round-sm': ['[&>*]:rounded-[var(--rounded-btn-sm)_!important]'],
26
- 'round-md': ['[&>*]:rounded-[var(--rounded-btn-md)_!important]'],
27
- 'round-lg': ['[&>*]:rounded-[var(--rounded-btn-lg)_!important]'],
24
+ 'round-none': ['*:rounded-[0px_!important]'],
25
+ 'round-sm': ['*:rounded-[var(--rounded-btn-sm)_!important]'],
26
+ 'round-md': ['*:rounded-[var(--rounded-btn-md)_!important]'],
27
+ 'round-lg': ['*:rounded-[var(--rounded-btn-lg)_!important]'],
28
28
  },
29
29
  size: {
30
- sm: ['[&>*:first-child]:!px-2', '[&>*:first-child]:!py-1', '[&>*:first-child]:!h-auto', '[&>*:first-child]:!min-h-[auto]'],
31
- md: ['[&>*:first-child]:!px-3', '[&>*:first-child]:!py-2', '[&>*:first-child]:!h-auto', '[&>*:first-child]:!min-h-[auto]'],
32
- lg: ['[&>*:first-child]:!px-4', '[&>*:first-child]:!py-3', '[&>*:first-child]:!h-auto', '[&>*:first-child]:!min-h-[auto]'],
30
+ sm: ['[&>*:first-child]:px-2!', '[&>*:first-child]:py-1!', '[&>*:first-child]:h-auto!', '[&>*:first-child]:min-h-[auto]!'],
31
+ md: ['[&>*:first-child]:px-3!', '[&>*:first-child]:py-2!', '[&>*:first-child]:h-auto!', '[&>*:first-child]:min-h-[auto]!'],
32
+ lg: ['[&>*:first-child]:px-4!', '[&>*:first-child]:py-3!', '[&>*:first-child]:h-auto!', '[&>*:first-child]:min-h-[auto]!'],
33
33
  },
34
34
  },
35
35
  compoundVariants: [],
@@ -87,16 +87,16 @@ class ComboboxComponent {
87
87
  this.disabled.set(isDisabled);
88
88
  }
89
89
  // Select handler
90
- onChange = output();
90
+ valueUpdated = output();
91
91
  handleSelect() {
92
- this.onChange.emit(this.value());
92
+ this.valueUpdated.emit(this.value());
93
93
  this.onControlChange(this.value());
94
94
  this.handleSearch('');
95
95
  }
96
96
  // Search handler
97
- onSearch = output();
97
+ searchQuery = output();
98
98
  handleSearch(search) {
99
- this.onSearch.emit(search);
99
+ this.searchQuery.emit(search);
100
100
  this.search = search;
101
101
  }
102
102
  // Blur handler
@@ -167,24 +167,24 @@ class ComboboxComponent {
167
167
  const trackValues = opts.map((o) => o[trackProp]);
168
168
  return trackValues.length === new Set(trackValues).size;
169
169
  }
170
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
171
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ComboboxComponent, isStandalone: true, selector: "st-combobox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onChange: "onChange", onSearch: "onSearch" }, providers: [
170
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
171
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: ComboboxComponent, isStandalone: true, selector: "st-combobox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", valueUpdated: "valueUpdated", searchQuery: "searchQuery" }, providers: [
172
172
  {
173
173
  provide: NG_VALUE_ACCESSOR,
174
174
  useExisting: ComboboxComponent,
175
175
  multi: true,
176
176
  },
177
- ], ngImport: i0, template: "<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (onDebounceChange)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "deselectOnClick", "keyDownFn"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i1.NgOptionComponent, selector: "ng-option", inputs: ["value", "disabled"] }, { kind: "directive", type: i1.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "icon", "iconPosition", "readonly", "iconClickable", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["onIconClick", "valueChange", "disabledChange", "onEnter", "onBlur", "onDebounceChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
177
+ ], ngImport: i0, template: "<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (valueDebounced)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i1.NgSelectComponent, selector: "ng-select", inputs: ["ariaLabelDropdown", "bindLabel", "bindValue", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "deselectOnClick", "keyDownFn"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i1.NgOptionComponent, selector: "ng-option", inputs: ["value", "disabled"] }, { kind: "directive", type: i1.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ComboboxComponent, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ComboboxComponent, decorators: [{
180
180
  type: Component,
181
- args: [{ selector: 'st-combobox', standalone: true, imports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule, TranslatePipe], providers: [
181
+ args: [{ selector: 'st-combobox', imports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule, TranslatePipe], providers: [
182
182
  {
183
183
  provide: NG_VALUE_ACCESSOR,
184
184
  useExisting: ComboboxComponent,
185
185
  multi: true,
186
186
  },
187
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (onDebounceChange)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n" }]
187
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (valueDebounced)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n" }]
188
188
  }] });
189
189
 
190
190
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-combobox.mjs","sources":["../../../projects/sdk/components/forms/combobox/src/combobox.component.ts","../../../projects/sdk/components/forms/combobox/src/combobox.component.html","../../../projects/sdk/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';\nimport { NgSelectModule } from '@ng-select/ng-select';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { InputComponent } from '@sixbell-telco/sdk/components/forms/input';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst comboboxComponent = cva(['[&>*]:w-full', 'font-body', 'custom-ng-select'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['combobox-primary first:'],\n\t\t\tsecondary: ['combobox-secondary'],\n\t\t\tsuccess: ['combobox-success'],\n\t\t\terror: ['combobox-error'],\n\t\t\twarning: ['combobox-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['[&>*]:rounded-[0px_!important]'],\n\t\t\t'round-sm': ['[&>*]:rounded-[var(--rounded-btn-sm)_!important]'],\n\t\t\t'round-md': ['[&>*]:rounded-[var(--rounded-btn-md)_!important]'],\n\t\t\t'round-lg': ['[&>*]:rounded-[var(--rounded-btn-lg)_!important]'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['[&>*:first-child]:!px-2', '[&>*:first-child]:!py-1', '[&>*:first-child]:!h-auto', '[&>*:first-child]:!min-h-[auto]'],\n\t\t\tmd: ['[&>*:first-child]:!px-3', '[&>*:first-child]:!py-2', '[&>*:first-child]:!h-auto', '[&>*:first-child]:!min-h-[auto]'],\n\t\t\tlg: ['[&>*:first-child]:!px-4', '[&>*:first-child]:!py-3', '[&>*:first-child]:!h-auto', '[&>*:first-child]:!min-h-[auto]'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t},\n});\n\nexport type ComboboxVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type ComboboxShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ComboboxSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ComboboxProps = {\n\tvariant?: ComboboxVariantProps;\n\tshape?: ComboboxShapeProps;\n\tsize?: ComboboxSizeProps;\n};\n\n/**\n * Search input component\n * A search input component that allows the user to search for an option from a list of options\n * This component was implemented using the ng-select library\n * Docs: https://github.com/ng-select/ng-select\n */\n@Component({\n\tselector: 'st-combobox',\n\tstandalone: true,\n\timports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule, TranslatePipe],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: ComboboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './combobox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ComboboxComponent implements ControlValueAccessor {\n\t// Basic input properties\n\tvariant = input<ComboboxVariantProps>('secondary');\n\tshape = input<ComboboxShapeProps>('round-sm');\n\tsize = input<ComboboxSizeProps>('md');\n\tclasses = input<string>('');\n\tname = input<string | null>(null);\n\tlabel = input<string>('');\n\n\tvalue = model();\n\toptions = input<any[]>([]);\n\temptyOptionText = input<string>();\n\tloading = input<boolean>(false);\n\tsearch = '';\n\n\t// Options properties\n\ttrackBy = input<string>('id');\n\tkey = input<string>('name');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Select handler\n\tonChange = output<any>();\n\thandleSelect() {\n\t\tthis.onChange.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t\tthis.handleSearch('');\n\t}\n\n\t// Search handler\n\tonSearch = output<string>();\n\thandleSearch(search: string) {\n\t\tthis.onSearch.emit(search);\n\t\tthis.search = search;\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Checks if options are primitives or not\n\tsimpleOption = computed(() => {\n\t\treturn this.options().every((option) => typeof option !== 'object');\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n\n\tget isValidTrackAndKey(): boolean {\n\t\tconst opts = this.options();\n\t\tif (!opts || opts.length === 0) {\n\t\t\t// Nothing to validate – treat as valid.\n\t\t\treturn true;\n\t\t}\n\t\tconst trackProp = this.trackBy(); // e.g. 'id'\n\t\tconst keyProp = this.key(); // e.g. 'name'\n\n\t\t// Validate that each option has a non-empty value for both properties.\n\t\tconst allHaveValues = opts.every((o) => o && o[trackProp] != null && o[trackProp] !== '' && o[keyProp] != null && o[keyProp] !== '');\n\t\tif (!allHaveValues) {\n\t\t\tconsole.warn(\n\t\t\t\t'[st-combobox] Provided trackBy (\"' +\n\t\t\t\t\tthis.trackBy() +\n\t\t\t\t\t'\") and/or key (\"' +\n\t\t\t\t\tthis.key() +\n\t\t\t\t\t'\") property is missing or not unique in the options. ' +\n\t\t\t\t\t'Falling back to tracking by identity. For better performance, please ensure each option has a unique property for tracking and a valid property for display.',\n\t\t\t);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check that the tracking property values are unique.\n\t\tconst trackValues = opts.map((o) => o[trackProp]);\n\t\treturn trackValues.length === new Set(trackValues).size;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (onDebounceChange)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\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":";;;;;;;;;;;;AAAA;AAUA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,cAAc,EAAE,WAAW,EAAE,kBAAkB,CAAC,EAAE;AAChF,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,yBAAyB,CAAC;YACpC,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,gCAAgC,CAAC;YAChD,UAAU,EAAE,CAAC,kDAAkD,CAAC;YAChE,UAAU,EAAE,CAAC,kDAAkD,CAAC;YAChE,UAAU,EAAE,CAAC,kDAAkD,CAAC;AAChE,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,yBAAyB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,iCAAiC,CAAC;YAC1H,EAAE,EAAE,CAAC,yBAAyB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,iCAAiC,CAAC;YAC1H,E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AA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAWlG,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAd7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,cACX,IAAI,EAAA,OAAA,EACP,CAAC,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EACpG,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAmB,iBAAA;AAC9B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,29DAAA,EAAA,CAAA;;;AEnEhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-combobox.mjs","sources":["../../../projects/sdk/components/forms/combobox/src/combobox.component.ts","../../../projects/sdk/components/forms/combobox/src/combobox.component.html","../../../projects/sdk/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';\nimport { NgSelectModule } from '@ng-select/ng-select';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { InputComponent } from '@sixbell-telco/sdk/components/forms/input';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst comboboxComponent = cva(['*:w-full', 'font-body', 'custom-ng-select'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['combobox-primary first:'],\n\t\t\tsecondary: ['combobox-secondary'],\n\t\t\tsuccess: ['combobox-success'],\n\t\t\terror: ['combobox-error'],\n\t\t\twarning: ['combobox-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['*:rounded-[0px_!important]'],\n\t\t\t'round-sm': ['*:rounded-[var(--rounded-btn-sm)_!important]'],\n\t\t\t'round-md': ['*:rounded-[var(--rounded-btn-md)_!important]'],\n\t\t\t'round-lg': ['*:rounded-[var(--rounded-btn-lg)_!important]'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['[&>*:first-child]:px-2!', '[&>*:first-child]:py-1!', '[&>*:first-child]:h-auto!', '[&>*:first-child]:min-h-[auto]!'],\n\t\t\tmd: ['[&>*:first-child]:px-3!', '[&>*:first-child]:py-2!', '[&>*:first-child]:h-auto!', '[&>*:first-child]:min-h-[auto]!'],\n\t\t\tlg: ['[&>*:first-child]:px-4!', '[&>*:first-child]:py-3!', '[&>*:first-child]:h-auto!', '[&>*:first-child]:min-h-[auto]!'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t},\n});\n\nexport type ComboboxVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type ComboboxShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ComboboxSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ComboboxProps = {\n\tvariant?: ComboboxVariantProps;\n\tshape?: ComboboxShapeProps;\n\tsize?: ComboboxSizeProps;\n};\n\n/**\n * Search input component\n * A search input component that allows the user to search for an option from a list of options\n * This component was implemented using the ng-select library\n * Docs: https://github.com/ng-select/ng-select\n */\n@Component({\n\tselector: 'st-combobox',\n\timports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule, TranslatePipe],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: ComboboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './combobox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ComboboxComponent implements ControlValueAccessor {\n\t// Basic input properties\n\tvariant = input<ComboboxVariantProps>('secondary');\n\tshape = input<ComboboxShapeProps>('round-sm');\n\tsize = input<ComboboxSizeProps>('md');\n\tclasses = input<string>('');\n\tname = input<string | null>(null);\n\tlabel = input<string>('');\n\n\tvalue = model();\n\toptions = input<any[]>([]);\n\temptyOptionText = input<string>();\n\tloading = input<boolean>(false);\n\tsearch = '';\n\n\t// Options properties\n\ttrackBy = input<string>('id');\n\tkey = input<string>('name');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Select handler\n\tvalueUpdated = output<any>();\n\thandleSelect() {\n\t\tthis.valueUpdated.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t\tthis.handleSearch('');\n\t}\n\n\t// Search handler\n\tsearchQuery = output<string>();\n\thandleSearch(search: string) {\n\t\tthis.searchQuery.emit(search);\n\t\tthis.search = search;\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Checks if options are primitives or not\n\tsimpleOption = computed(() => {\n\t\treturn this.options().every((option) => typeof option !== 'object');\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n\n\tget isValidTrackAndKey(): boolean {\n\t\tconst opts = this.options();\n\t\tif (!opts || opts.length === 0) {\n\t\t\t// Nothing to validate – treat as valid.\n\t\t\treturn true;\n\t\t}\n\t\tconst trackProp = this.trackBy(); // e.g. 'id'\n\t\tconst keyProp = this.key(); // e.g. 'name'\n\n\t\t// Validate that each option has a non-empty value for both properties.\n\t\tconst allHaveValues = opts.every((o) => o && o[trackProp] != null && o[trackProp] !== '' && o[keyProp] != null && o[keyProp] !== '');\n\t\tif (!allHaveValues) {\n\t\t\tconsole.warn(\n\t\t\t\t'[st-combobox] Provided trackBy (\"' +\n\t\t\t\t\tthis.trackBy() +\n\t\t\t\t\t'\") and/or key (\"' +\n\t\t\t\t\tthis.key() +\n\t\t\t\t\t'\") property is missing or not unique in the options. ' +\n\t\t\t\t\t'Falling back to tracking by identity. For better performance, please ensure each option has a unique property for tracking and a valid property for display.',\n\t\t\t);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check that the tracking property values are unique.\n\t\tconst trackValues = opts.map((o) => o[trackProp]);\n\t\treturn trackValues.length === new Set(trackValues).size;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (valueDebounced)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\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":";;;;;;;;;;;;AAAA;AAUA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,kBAAkB,CAAC,EAAE;AAC5E,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,yBAAyB,CAAC;YACpC,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,4BAA4B,CAAC;YAC5C,UAAU,EAAE,CAAC,8CAA8C,CAAC;YAC5D,UAAU,EAAE,CAAC,8CAA8C,CAAC;YAC5D,UAAU,EAAE,CAAC,8CAA8C,CAAC;AAC5D,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,yBAAyB,EAAE,yBAAyB,EA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