@sixbell-telco/sdk 0.71.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/CHANGELOG.md +317 -30
  2. package/README.md +357 -241
  3. package/_index.css +452 -0
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  5. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +2 -2
  6. package/components/audio-player/button-play/button-play.component.d.ts +6 -6
  7. package/components/audio-player/services/audio.service.d.ts +1 -0
  8. package/components/audio-player/src/audio-player.component.d.ts +14 -8
  9. package/components/audio-player/volume-control/volume-control.component.d.ts +2 -2
  10. package/components/avatar/src/avatar.component.d.ts +116 -8
  11. package/components/badge/src/badge.component.d.ts +69 -7
  12. package/components/button/src/button.component.d.ts +120 -8
  13. package/components/card/card-actions/card-actions.component.d.ts +29 -1
  14. package/components/card/card-content/card-content.component.d.ts +25 -0
  15. package/components/card/card-title/card-title.component.d.ts +22 -0
  16. package/components/card/src/card.component.d.ts +90 -5
  17. package/components/countdown/src/countdown.component.d.ts +2 -6
  18. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +35 -2
  19. package/components/dropdown/src/dropdown.component.d.ts +151 -9
  20. package/components/dual-list/src/dual-list.component.d.ts +7 -8
  21. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +254 -0
  22. package/components/file-upload/file-uploader/file-uploader.component.d.ts +209 -0
  23. package/components/file-upload/index.d.ts +5 -0
  24. package/components/file-upload/public-api.d.ts +4 -0
  25. package/components/file-upload/shared/types/file-upload.d.ts +8 -0
  26. package/components/forms/checkbox/src/checkbox.component.d.ts +68 -5
  27. package/components/forms/combobox/src/combobox.component.d.ts +476 -39
  28. package/components/forms/datepicker/src/datepicker.component.d.ts +2 -2
  29. package/components/forms/form-error/src/form-error.component.d.ts +2 -2
  30. package/components/forms/input/input-content/input-content.component.d.ts +8 -0
  31. package/components/forms/input/public-api.d.ts +1 -0
  32. package/components/forms/input/src/input.component.d.ts +148 -25
  33. package/components/forms/radio/src/radio.component.d.ts +83 -7
  34. package/components/forms/range/src/range.component.d.ts +101 -6
  35. package/components/forms/select/src/select.component.d.ts +316 -24
  36. package/components/forms/switch/src/switch.component.d.ts +74 -7
  37. package/components/forms/textarea/src/textarea.component.d.ts +172 -16
  38. package/components/forms/toggle/src/toggle.component.d.ts +3 -3
  39. package/components/icon/src/icon.component.d.ts +5 -5
  40. package/components/link/src/link.component.d.ts +1 -1
  41. package/components/modal/modal-actions/modal-actions.component.d.ts +1 -1
  42. package/components/modal/src/modal.component.d.ts +10 -10
  43. package/components/notification/src/notification.component.d.ts +2 -3
  44. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +64 -15
  45. package/components/paginator/src/paginator.component.d.ts +93 -2
  46. package/components/product-card/src/product-card.component.d.ts +7 -8
  47. package/components/progress/src/progress.component.d.ts +59 -4
  48. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  49. package/components/tab/directives/tab-header/tab-header.directive.d.ts +1 -1
  50. package/components/tab/src/tab.component.d.ts +3 -3
  51. package/components/table/public-api.d.ts +2 -0
  52. package/components/table/src/table.component.d.ts +160 -14
  53. package/components/table/table-action/table-action.component.d.ts +49 -0
  54. package/components/table/table-actions/table-actions.component.d.ts +25 -0
  55. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +42 -0
  56. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +46 -0
  57. package/components/toast/toast-message/toast-message.component.d.ts +3 -3
  58. package/components/tooltip/public-api.d.ts +1 -0
  59. package/components/tooltip/src/tooltip.component.d.ts +66 -5
  60. package/components/tooltip/tooltip-content/tooltip-content.component.d.ts +38 -0
  61. package/components/wizard/public-api.d.ts +2 -3
  62. package/components/wizard/services/wizard.service.d.ts +221 -0
  63. package/components/wizard/wizard-actions/wizard-actions.component.d.ts +8 -0
  64. package/components/wizard/wizard-content/wizard-content.component.d.ts +67 -13
  65. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +81 -6
  66. package/components/wizard/wizard-step/wizard-step.component.d.ts +76 -9
  67. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +91 -9
  68. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +152 -16
  69. package/directives/auto-focus/index.d.ts +5 -0
  70. package/directives/auto-focus/public-api.d.ts +1 -0
  71. package/directives/auto-focus/src/autofocus.directive.d.ts +93 -0
  72. package/directives/click-outside/src/click-outside.directive.d.ts +48 -3
  73. package/directives/only-numbers/index.d.ts +5 -0
  74. package/directives/only-numbers/public-api.d.ts +1 -0
  75. package/directives/only-numbers/src/just-numbers.directive.d.ts +9 -0
  76. package/directives/typography/src/typography.directive.d.ts +47 -1
  77. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +10 -12
  78. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +119 -69
  80. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +109 -19
  82. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +92 -46
  84. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-button.mjs +153 -34
  86. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-card.mjs +195 -33
  88. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +8 -11
  90. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +197 -26
  92. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +30 -18
  94. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +706 -0
  96. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -0
  97. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +85 -25
  98. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +996 -113
  100. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +11 -11
  102. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +13 -12
  104. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +221 -121
  106. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +98 -26
  108. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +117 -25
  110. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +671 -74
  112. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +95 -45
  114. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +236 -75
  116. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +74 -258
  118. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +23 -14
  120. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-link.mjs +16 -16
  122. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +39 -36
  124. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +16 -9
  126. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +189 -59
  128. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +35 -43
  130. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +60 -12
  132. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +33 -35
  134. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-table.mjs +403 -58
  136. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +28 -44
  138. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +112 -10
  140. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +897 -161
  142. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +206 -0
  144. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -0
  145. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +54 -11
  146. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +52 -0
  148. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -0
  149. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +66 -15
  150. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
  152. package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  154. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  155. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
  156. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
  157. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  158. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  159. package/package.json +55 -148
  160. package/sixbell-telco-sdk-1.0.2.tgz +0 -0
  161. package/_index.scss +0 -146
  162. package/assets/styles/combobox.scss +0 -454
  163. package/components/file-upload/file-dropzone/index.d.ts +0 -5
  164. package/components/file-upload/file-dropzone/public-api.d.ts +0 -1
  165. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +0 -68
  166. package/components/file-upload/file-uploader/index.d.ts +0 -5
  167. package/components/file-upload/file-uploader/public-api.d.ts +0 -1
  168. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +0 -46
  169. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +0 -43
  170. package/esm2022/components/accordion/public-api.mjs +0 -3
  171. package/esm2022/components/accordion/sixbell-telco-sdk-components-accordion.mjs +0 -5
  172. package/esm2022/components/accordion/src/accordion.component.mjs +0 -13
  173. package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +0 -76
  174. package/esm2022/components/audio-player/button-play/button-play.component.mjs +0 -71
  175. package/esm2022/components/audio-player/public-api.mjs +0 -4
  176. package/esm2022/components/audio-player/services/audio.service.mjs +0 -189
  177. package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +0 -5
  178. package/esm2022/components/audio-player/src/audio-player.component.mjs +0 -84
  179. package/esm2022/components/audio-player/track-info/track-info.component.mjs +0 -17
  180. package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +0 -83
  181. package/esm2022/components/avatar/public-api.mjs +0 -2
  182. package/esm2022/components/avatar/sixbell-telco-sdk-components-avatar.mjs +0 -5
  183. package/esm2022/components/avatar/src/avatar.component.mjs +0 -59
  184. package/esm2022/components/badge/public-api.mjs +0 -2
  185. package/esm2022/components/badge/sixbell-telco-sdk-components-badge.mjs +0 -5
  186. package/esm2022/components/badge/src/badge.component.mjs +0 -76
  187. package/esm2022/components/button/public-api.mjs +0 -2
  188. package/esm2022/components/button/sixbell-telco-sdk-components-button.mjs +0 -5
  189. package/esm2022/components/button/src/button.component.mjs +0 -84
  190. package/esm2022/components/card/card-actions/card-actions.component.mjs +0 -22
  191. package/esm2022/components/card/card-content/card-content.component.mjs +0 -12
  192. package/esm2022/components/card/card-title/card-title.component.mjs +0 -12
  193. package/esm2022/components/card/public-api.mjs +0 -5
  194. package/esm2022/components/card/sixbell-telco-sdk-components-card.mjs +0 -5
  195. package/esm2022/components/card/src/card.component.mjs +0 -32
  196. package/esm2022/components/countdown/public-api.mjs +0 -2
  197. package/esm2022/components/countdown/sixbell-telco-sdk-components-countdown.mjs +0 -5
  198. package/esm2022/components/countdown/src/countdown.component.mjs +0 -60
  199. package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +0 -24
  200. package/esm2022/components/dropdown/public-api.mjs +0 -3
  201. package/esm2022/components/dropdown/sixbell-telco-sdk-components-dropdown.mjs +0 -5
  202. package/esm2022/components/dropdown/src/dropdown.component.mjs +0 -127
  203. package/esm2022/components/dual-list/public-api.mjs +0 -2
  204. package/esm2022/components/dual-list/sixbell-telco-sdk-components-dual-list.mjs +0 -5
  205. package/esm2022/components/dual-list/src/dual-list.component.mjs +0 -174
  206. package/esm2022/components/file-upload/file-dropzone/public-api.mjs +0 -2
  207. package/esm2022/components/file-upload/file-dropzone/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -5
  208. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +0 -232
  209. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +0 -7
  210. package/esm2022/components/file-upload/file-uploader/public-api.mjs +0 -2
  211. package/esm2022/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -5
  212. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +0 -114
  213. package/esm2022/components/forms/checkbox/public-api.mjs +0 -2
  214. package/esm2022/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.mjs +0 -5
  215. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +0 -94
  216. package/esm2022/components/forms/combobox/public-api.mjs +0 -2
  217. package/esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs +0 -5
  218. package/esm2022/components/forms/combobox/src/combobox.component.mjs +0 -165
  219. package/esm2022/components/forms/datepicker/public-api.mjs +0 -3
  220. package/esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -5
  221. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +0 -20
  222. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +0 -190
  223. package/esm2022/components/forms/form-error/public-api.mjs +0 -2
  224. package/esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs +0 -5
  225. package/esm2022/components/forms/form-error/src/form-error.component.mjs +0 -32
  226. package/esm2022/components/forms/input/public-api.mjs +0 -2
  227. package/esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs +0 -5
  228. package/esm2022/components/forms/input/src/input.component.mjs +0 -201
  229. package/esm2022/components/forms/radio/public-api.mjs +0 -2
  230. package/esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs +0 -5
  231. package/esm2022/components/forms/radio/src/radio.component.mjs +0 -96
  232. package/esm2022/components/forms/range/public-api.mjs +0 -2
  233. package/esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs +0 -5
  234. package/esm2022/components/forms/range/src/range.component.mjs +0 -103
  235. package/esm2022/components/forms/select/public-api.mjs +0 -2
  236. package/esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs +0 -5
  237. package/esm2022/components/forms/select/src/select.component.mjs +0 -138
  238. package/esm2022/components/forms/switch/public-api.mjs +0 -2
  239. package/esm2022/components/forms/switch/sixbell-telco-sdk-components-forms-switch.mjs +0 -5
  240. package/esm2022/components/forms/switch/src/switch.component.mjs +0 -108
  241. package/esm2022/components/forms/textarea/public-api.mjs +0 -2
  242. package/esm2022/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.mjs +0 -5
  243. package/esm2022/components/forms/textarea/src/textarea.component.mjs +0 -167
  244. package/esm2022/components/forms/toggle/public-api.mjs +0 -2
  245. package/esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs +0 -5
  246. package/esm2022/components/forms/toggle/src/toggle.component.mjs +0 -404
  247. package/esm2022/components/icon/heroicons/mini/public-api.mjs +0 -2
  248. package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +0 -5
  249. package/esm2022/components/icon/heroicons/outline/public-api.mjs +0 -2
  250. package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +0 -5
  251. package/esm2022/components/icon/heroicons/solid/public-api.mjs +0 -2
  252. package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +0 -5
  253. package/esm2022/components/icon/ionicons/public-api.mjs +0 -2
  254. package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +0 -5
  255. package/esm2022/components/icon/material/baseline/public-api.mjs +0 -2
  256. package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +0 -5
  257. package/esm2022/components/icon/material/outline/public-api.mjs +0 -2
  258. package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +0 -5
  259. package/esm2022/components/icon/material/round/public-api.mjs +0 -2
  260. package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +0 -5
  261. package/esm2022/components/icon/material/sharp/public-api.mjs +0 -2
  262. package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +0 -5
  263. package/esm2022/components/icon/public-api.mjs +0 -2
  264. package/esm2022/components/icon/sixbell-telco-sdk-components-icon.mjs +0 -5
  265. package/esm2022/components/icon/src/icon.component.mjs +0 -41
  266. package/esm2022/components/link/public-api.mjs +0 -2
  267. package/esm2022/components/link/sixbell-telco-sdk-components-link.mjs +0 -5
  268. package/esm2022/components/link/src/link.component.mjs +0 -63
  269. package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +0 -22
  270. package/esm2022/components/modal/modal-content/modal-content.component.mjs +0 -12
  271. package/esm2022/components/modal/modal-title/modal-title.component.mjs +0 -13
  272. package/esm2022/components/modal/public-api.mjs +0 -5
  273. package/esm2022/components/modal/sixbell-telco-sdk-components-modal.mjs +0 -5
  274. package/esm2022/components/modal/src/modal.component.mjs +0 -154
  275. package/esm2022/components/notification/public-api.mjs +0 -2
  276. package/esm2022/components/notification/sixbell-telco-sdk-components-notification.mjs +0 -5
  277. package/esm2022/components/notification/src/notification.component.mjs +0 -55
  278. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +0 -113
  279. package/esm2022/components/paginator/public-api.mjs +0 -3
  280. package/esm2022/components/paginator/sixbell-telco-sdk-components-paginator.mjs +0 -5
  281. package/esm2022/components/paginator/src/paginator.component.mjs +0 -52
  282. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +0 -15
  283. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +0 -15
  284. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +0 -15
  285. package/esm2022/components/product-card/public-api.mjs +0 -5
  286. package/esm2022/components/product-card/sixbell-telco-sdk-components-product-card.mjs +0 -5
  287. package/esm2022/components/product-card/src/product-card.component.mjs +0 -140
  288. package/esm2022/components/progress/public-api.mjs +0 -2
  289. package/esm2022/components/progress/sixbell-telco-sdk-components-progress.mjs +0 -5
  290. package/esm2022/components/progress/src/progress.component.mjs +0 -43
  291. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +0 -51
  292. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +0 -56
  293. package/esm2022/components/tab/public-api.mjs +0 -4
  294. package/esm2022/components/tab/sixbell-telco-sdk-components-tab.mjs +0 -5
  295. package/esm2022/components/tab/src/tab.component.mjs +0 -42
  296. package/esm2022/components/table/public-api.mjs +0 -4
  297. package/esm2022/components/table/sixbell-telco-sdk-components-table.mjs +0 -5
  298. package/esm2022/components/table/src/table.component.mjs +0 -143
  299. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +0 -25
  300. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +0 -26
  301. package/esm2022/components/toast/public-api.mjs +0 -4
  302. package/esm2022/components/toast/services/toast.service.mjs +0 -67
  303. package/esm2022/components/toast/sixbell-telco-sdk-components-toast.mjs +0 -5
  304. package/esm2022/components/toast/toast-message/toast-message.component.mjs +0 -80
  305. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +0 -41
  306. package/esm2022/components/tooltip/public-api.mjs +0 -2
  307. package/esm2022/components/tooltip/sixbell-telco-sdk-components-tooltip.mjs +0 -5
  308. package/esm2022/components/tooltip/src/tooltip.component.mjs +0 -45
  309. package/esm2022/components/wizard/public-api.mjs +0 -6
  310. package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +0 -5
  311. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +0 -30
  312. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +0 -24
  313. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +0 -44
  314. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +0 -34
  315. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +0 -88
  316. package/esm2022/directives/click-outside/public-api.mjs +0 -2
  317. package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +0 -5
  318. package/esm2022/directives/click-outside/src/click-outside.directive.mjs +0 -30
  319. package/esm2022/directives/typography/public-api.mjs +0 -2
  320. package/esm2022/directives/typography/sixbell-telco-sdk-directives-typography.mjs +0 -5
  321. package/esm2022/directives/typography/src/typography.directive.mjs +0 -68
  322. package/esm2022/public_api.mjs +0 -2
  323. package/esm2022/sixbell-telco-sdk.mjs +0 -5
  324. package/esm2022/utils/cn/public-api.mjs +0 -2
  325. package/esm2022/utils/cn/sixbell-telco-sdk-utils-cn.mjs +0 -5
  326. package/esm2022/utils/cn/src/cn.mjs +0 -6
  327. package/esm2022/utils/generators/uuid/public-api.mjs +0 -2
  328. package/esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs +0 -5
  329. package/esm2022/utils/generators/uuid/src/uuid.mjs +0 -5
  330. package/esm2022/utils/pipes/extract-extension/public-api.mjs +0 -2
  331. package/esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +0 -5
  332. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +0 -30
  333. package/esm2022/utils/pipes/time/public-api.mjs +0 -2
  334. package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +0 -5
  335. package/esm2022/utils/pipes/time/src/time.pipe.mjs +0 -19
  336. package/esm2022/utils/pipes/to-bytes-extesion/public-api.mjs +0 -2
  337. package/esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +0 -5
  338. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +0 -29
  339. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -245
  340. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +0 -1
  341. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -121
  342. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +0 -1
  343. /package/assets/styles/{toast.scss → toast.css} +0 -0
  344. /package/components/file-upload/{file-dropzone/src/file-dropzone.constants.d.ts → shared/const/file-upload.constants.d.ts} +0 -0
@@ -1,6 +1,8 @@
1
+ import * as i1 from '@angular/common';
1
2
  import { CommonModule } from '@angular/common';
2
3
  import * as i0 from '@angular/core';
3
- import { input, signal, Component, ChangeDetectionStrategy, Host, output, computed, contentChild, contentChildren, effect } from '@angular/core';
4
+ import { input, signal, Host, ChangeDetectionStrategy, Component, output, computed, contentChild, contentChildren, effect } from '@angular/core';
5
+ import { TranslatePipe } from '@ngx-translate/core';
4
6
  import { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';
5
7
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
6
8
  import { matInfoOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
@@ -9,57 +11,166 @@ import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
9
11
  import { cn } from '@sixbell-telco/sdk/utils/cn';
10
12
  import { cva, cx } from 'class-variance-authority';
11
13
  import { CheckboxComponent } from '@sixbell-telco/sdk/components/forms/checkbox';
14
+ import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
15
+ import { TooltipComponent } from '@sixbell-telco/sdk/components/tooltip';
12
16
 
17
+ /**
18
+ * Header checkbox component for the table.
19
+ *
20
+ * This component renders a checkbox within a table header row,
21
+ * allowing users to select or deselect all rows in the table.
22
+ *
23
+ * @remarks
24
+ * Utilizes Angular's dependency injection to access the parent {@link TableComponent}
25
+ * and propagate the checkbox state changes.
26
+ *
27
+ * @example
28
+ * ```html
29
+ * <tr header-checkbox></tr>
30
+ * ```
31
+ */
13
32
  class TableHeaderCheckboxComponent {
14
33
  table;
34
+ /**
35
+ * Defines the variant styling of the checkbox.
36
+ *
37
+ * @defaultValue 'primary'
38
+ */
15
39
  checkboxVariant = input('primary');
16
- checkboxSize = input('md');
40
+ /**
41
+ * Defines the size of the checkbox.
42
+ *
43
+ * @defaultValue 'md'
44
+ */
45
+ checkboxSize = input('sm');
46
+ /**
47
+ * Signal that tracks the checked state of the header checkbox.
48
+ *
49
+ * @defaultValue false
50
+ */
17
51
  checked = signal(false);
52
+ /**
53
+ * Creates an instance of TableHeaderCheckboxComponent.
54
+ *
55
+ * @param table - Reference to the parent {@link TableComponent} to access table-level operations.
56
+ */
18
57
  constructor(table) {
19
58
  this.table = table;
20
59
  }
60
+ /**
61
+ * Handles the event when the header checkbox is toggled.
62
+ *
63
+ * This method notifies the parent table component to either select or deselect all rows.
64
+ *
65
+ * @param value - The new checked state (true to select all rows, false to deselect all).
66
+ */
21
67
  handleSelectAll(value) {
22
68
  this.table.handleToggleAll(value);
23
69
  }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableHeaderCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
25
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TableHeaderCheckboxComponent, isStandalone: true, selector: "tr[header-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
70
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableHeaderCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
71
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: TableHeaderCheckboxComponent, isStandalone: true, selector: "tr[header-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "valueUpdated", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
72
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableHeaderCheckboxComponent, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableHeaderCheckboxComponent, decorators: [{
28
74
  type: Component,
29
- args: [{ selector: 'tr[header-checkbox]', standalone: true, imports: [CheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n" }]
75
+ args: [{ selector: 'tr[header-checkbox]', imports: [CheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n" }]
30
76
  }], ctorParameters: () => [{ type: TableComponent, decorators: [{
31
77
  type: Host
32
78
  }] }] });
33
79
 
80
+ /**
81
+ * Row checkbox component for table row selection.
82
+ *
83
+ * This component renders a checkbox within a table row,
84
+ * enabling individual row selection. It interacts with the parent
85
+ * {@link TableComponent} to update the selection state.
86
+ *
87
+ * @example
88
+ * ```html
89
+ * <tr row-checkbox [identifier]="rowId"></tr>
90
+ * ```
91
+ */
34
92
  class TableRowCheckboxComponent {
35
93
  table;
94
+ /**
95
+ * Defines the variant styling of the checkbox.
96
+ *
97
+ * @defaultValue 'primary'
98
+ */
36
99
  checkboxVariant = input('primary');
100
+ /**
101
+ * Defines the size of the checkbox.
102
+ *
103
+ * @defaultValue 'md'
104
+ */
37
105
  checkboxSize = input('md');
106
+ /**
107
+ * Unique identifier for the table row.
108
+ *
109
+ * This input is required to track the specific row in the table.
110
+ */
38
111
  identifier = input.required();
112
+ /**
113
+ * Signal that tracks the checked state of the row checkbox.
114
+ *
115
+ * @defaultValue false
116
+ */
39
117
  checked = signal(false);
118
+ /**
119
+ * Creates an instance of TableRowCheckboxComponent.
120
+ *
121
+ * @param table - Reference to the parent {@link TableComponent} to access
122
+ * table-level operations for row selection.
123
+ */
40
124
  constructor(table) {
41
125
  this.table = table;
42
126
  }
127
+ /**
128
+ * Handles the selection event of the row checkbox.
129
+ *
130
+ * This method notifies the parent table component to update the selection state
131
+ * for the corresponding row, based on the checkbox's new value.
132
+ *
133
+ * @param value - The new checked state (true for selected, false for deselected).
134
+ */
43
135
  handleSelect(value) {
44
136
  this.table.handleToggleCheckbox(value, this.identifier());
45
137
  }
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableRowCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
47
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TableRowCheckboxComponent, isStandalone: true, selector: "tr[row-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null }, identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
138
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableRowCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
139
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: TableRowCheckboxComponent, isStandalone: true, selector: "tr[row-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null }, identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "valueUpdated", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
140
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableRowCheckboxComponent, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableRowCheckboxComponent, decorators: [{
50
142
  type: Component,
51
- args: [{ selector: 'tr[row-checkbox]', standalone: true, imports: [CheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n" }]
143
+ args: [{ selector: 'tr[row-checkbox]', imports: [CheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (valueUpdated)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n" }]
52
144
  }], ctorParameters: () => [{ type: TableComponent, decorators: [{
53
145
  type: Host
54
146
  }] }] });
55
147
 
56
- const tableContent = cva(['table', 'font-body', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content'], {
148
+ /**
149
+ * @internal
150
+ * Generates base table classes with size variants
151
+ */
152
+ const tableContent = cva([
153
+ 'table',
154
+ 'relative',
155
+ 'border-separate',
156
+ 'border-spacing-0',
157
+ 'text-pretty',
158
+ '[&_tbody]:font-body',
159
+ '[&_thead]:font-heading',
160
+ // '[&_thead]:whitespace-normal',
161
+ '[&_thead]:leading-normal',
162
+ '[&_tbody]:leading-tight',
163
+ '[&_th]:bg-neutral [&_th]:text-neutral-content',
164
+ '[&_th]:px-4',
165
+ '[&_td]:px-4',
166
+ ], {
57
167
  variants: {
58
168
  size: {
59
169
  xs: ['table-xs'],
60
170
  sm: ['table-sm'],
61
171
  md: ['table-md'],
62
172
  lg: ['table-lg'],
173
+ xl: ['table-xl'],
63
174
  },
64
175
  },
65
176
  compoundVariants: [],
@@ -67,15 +178,19 @@ const tableContent = cva(['table', 'font-body', 'relative border-separate border
67
178
  size: 'sm',
68
179
  },
69
180
  });
70
- const tableContainer = cva(['overflow-y-auto rounded-t-box overscroll-contain'], {
181
+ /**
182
+ * @internal
183
+ * Generates table container classes with height variants
184
+ */
185
+ const tableContainer = cva(['rounded-t-box', 'overflow-y-clip'], {
71
186
  variants: {
72
187
  containerHeight: {
73
188
  auto: ['h-auto'],
74
189
  full: ['h-full'],
75
- sm: ['max-h-72 h-full'],
76
- md: ['max-h-80 h-full'],
77
- lg: ['max-h-96 h-full'],
78
- xl: ['max-h-[36rem] h-full'],
190
+ sm: ['min-h-72 h-72 overscroll-contain overflow-y-auto'],
191
+ md: ['min-h-80 h-80 overscroll-contain overflow-y-auto'],
192
+ lg: ['min-h-96 h-lg overscroll-contain overflow-y-auto'],
193
+ xl: ['min-h-[36rem] h-[36rem] overscroll-contain overflow-y-auto'],
79
194
  },
80
195
  },
81
196
  compoundVariants: [],
@@ -83,72 +198,209 @@ const tableContainer = cva(['overflow-y-auto rounded-t-box overscroll-contain'],
83
198
  containerHeight: 'auto',
84
199
  },
85
200
  });
201
+ /**
202
+ * @internal
203
+ * Combines table content and container classes
204
+ */
86
205
  const tableComponent = ({ size, containerHeight } = {}) => cx(tableContent({ size }), tableContainer({ containerHeight }));
206
+ /**
207
+ * A feature-rich data table component with sorting, pagination, and row selection
208
+ *
209
+ * @remarks
210
+ * Integrates with Tailwind CSS for styling and supports responsive layouts.
211
+ * Includes built-in pagination controls and checkbox selection functionality.
212
+ *
213
+ * @example
214
+ * ```html
215
+ * <st-table
216
+ * [data]="users"
217
+ * [totalItems]="100"
218
+ * [pagination]="{ currentPage: 1, itemsPerPage: 10 }"
219
+ * (pageChanged)="handlePageChange($event)"
220
+ * size="md"
221
+ * height="lg"
222
+ * zebra
223
+ * >
224
+ * <!-- Table columns and content -->
225
+ * </st-table>
226
+ * ```
227
+ */
87
228
  class TableComponent {
88
- // Base table properties
229
+ /**
230
+ * Table size variant
231
+ * @defaultValue 'sm'
232
+ */
89
233
  size = input();
90
- height = input();
234
+ /**
235
+ * Table container height preset
236
+ * @defaultValue 'auto'
237
+ */
238
+ height = input('auto');
239
+ /**
240
+ * Enable sticky header row
241
+ * @defaultValue false
242
+ */
91
243
  pinRows = input(false);
244
+ /**
245
+ * Enable sticky first column
246
+ * @defaultValue false
247
+ */
92
248
  pinColumns = input(false);
249
+ /**
250
+ * Apply zebra-striping to rows
251
+ * @defaultValue false
252
+ */
93
253
  zebra = input(false);
254
+ /**
255
+ * Pagination control display variant
256
+ * @defaultValue 'default'
257
+ */
94
258
  paginatorType = input('default');
95
- labelEntriesByPage = input('entradas por página');
96
- labelShowEntriesOf = input('de');
97
- labelShowEntries = input('entradas');
259
+ /** @internal Info icon reference */
98
260
  infoIcon = matInfoOutline;
99
- // Table data
261
+ /**
262
+ * Array of data items to display
263
+ * @defaultValue []
264
+ */
100
265
  data = input([]);
266
+ /**
267
+ * Total number of items across all pages
268
+ * @defaultValue 0
269
+ */
101
270
  totalItems = input(0);
102
- error = input('No se encontraron resultados');
103
- // Paginator properties
104
- pagination = input({ id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' });
105
- maxSize = input(7);
106
- onPageChange = output();
107
- onPageSizeChange = output();
271
+ /**
272
+ * Pagination configuration
273
+ * @defaultValue { id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' }
274
+ */
275
+ pagination = input({
276
+ id: 'paginator',
277
+ currentPage: 1,
278
+ itemsPerPage: 10,
279
+ search: '',
280
+ });
281
+ /**
282
+ * Maximum number of pagination buttons to display
283
+ * @defaultValue 7
284
+ */
285
+ maxSize = input(4);
286
+ /** Event emitted when page changes */
287
+ pageChanged = output();
288
+ /** Event emitted when page size changes */
289
+ pageSizeChanged = output();
290
+ /**
291
+ * Show items per page selector
292
+ * @defaultValue true
293
+ */
108
294
  showItemsPerPage = input(true);
295
+ /**
296
+ * Show entries count display
297
+ * @defaultValue true
298
+ */
109
299
  showEntries = input(true);
300
+ /**
301
+ * Show pagination controls
302
+ * @defaultValue true
303
+ */
110
304
  showPagination = input(true);
305
+ /**
306
+ * Show footer with additional information
307
+ * @defaultValue true
308
+ */
309
+ showFooter = input(true);
310
+ /**
311
+ * Controls whether table headers should overflow with horizontal scrolling (true)
312
+ * or wrap text normally (false)
313
+ * @defaultValue false
314
+ */
315
+ allowHeaderOverflow = input(false);
316
+ /**
317
+ * Computed display range for current page entries
318
+ * @example "1-10" of 100 entries
319
+ */
111
320
  paginationRange = computed(() => {
112
321
  const start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;
113
322
  const end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());
114
323
  return `${start}-${end}`;
115
324
  });
325
+ /**
326
+ * Handles page navigation events
327
+ * @param page - New page number
328
+ */
116
329
  handlePageChange(page) {
117
330
  this.handleToggleAll(false);
118
- this.onPageChange.emit(page);
331
+ this.pageChanged.emit(page);
119
332
  }
333
+ /**
334
+ * Handles page size changes
335
+ * @param size - New items per page value
336
+ */
120
337
  handlePageSizeChange(size) {
121
338
  this.handleToggleAll(false);
122
- this.onPageSizeChange.emit(size);
339
+ this.pageSizeChanged.emit(size);
123
340
  }
124
- get tableClass() {
125
- return cn(tableContent({
126
- size: this.size(),
127
- }), {
128
- 'table-pin-rows': this.pinRows(),
129
- 'table-pin-cols': this.pinColumns(),
130
- 'table-zebra': this.zebra(),
131
- });
132
- }
133
- get tableContainerClass() {
134
- return cn(tableContainer({
135
- containerHeight: this.height(),
136
- }));
137
- }
138
- get containerClass() {
139
- return cn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {
140
- 'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',
141
- 'gap-4 pb-4': this.size() === 'lg',
142
- });
143
- }
144
- // For checkboxes on child components
341
+ /**
342
+ * @internal
343
+ * Computes table element classes based on current configuration
344
+ */
345
+ tableClass = computed(() => cn(tableContent({
346
+ size: this.size(),
347
+ }), {
348
+ 'table-pin-rows': this.pinRows(),
349
+ 'table-pin-cols': this.pinColumns(),
350
+ 'table-zebra': this.zebra(),
351
+ }));
352
+ /**
353
+ * @internal
354
+ * Computes table container classes based on height input
355
+ */
356
+ tableContainerClass = computed(() => cn(tableContainer({
357
+ containerHeight: this.height(),
358
+ }), { 'overflow-x-auto': this.allowHeaderOverflow(), '[&_thead]:whitespace-normal': !this.allowHeaderOverflow() }));
359
+ /**
360
+ * @internal
361
+ * Computes outer container classes based on size
362
+ */
363
+ containerClass = computed(() => cn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {
364
+ 'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',
365
+ 'gap-4 pb-4': this.size() === 'lg',
366
+ 'gap-5 pb-5': this.size() === 'xl',
367
+ }));
368
+ /**
369
+ * @internal
370
+ * Computes typography variant for paginator text based on table size
371
+ */
372
+ paginatorTextSize = computed(() => {
373
+ switch (this.size()) {
374
+ case 'xs':
375
+ return 'body-xxs';
376
+ case 'sm':
377
+ return 'body-xs';
378
+ case 'md':
379
+ return 'body-sm';
380
+ case 'lg':
381
+ return 'body';
382
+ case 'xl':
383
+ return 'body';
384
+ default:
385
+ return 'body-xs';
386
+ }
387
+ });
388
+ /** @internal Reference to header checkbox component */
145
389
  header = contentChild(TableHeaderCheckboxComponent, { descendants: true });
390
+ /** @internal List of row checkbox components */
146
391
  rows = contentChildren(TableRowCheckboxComponent, { descendants: true });
392
+ /** @internal Track selected row identifiers */
147
393
  identifiers = signal(new Set());
148
- onCheck = output();
394
+ /** Event emitted with array of selected item identifiers */
395
+ checkedItems = output();
396
+ /** @internal Sync checkbox state with output */
149
397
  checkEffect = effect(() => {
150
- this.onCheck.emit(Array.from(this.identifiers()));
398
+ this.checkedItems.emit(Array.from(this.identifiers()));
151
399
  });
400
+ /**
401
+ * Toggle all row checkboxes
402
+ * @param value - Whether to check or uncheck all rows
403
+ */
152
404
  handleToggleAll(value) {
153
405
  if (!value) {
154
406
  this.clearList();
@@ -160,6 +412,11 @@ class TableComponent {
160
412
  }
161
413
  });
162
414
  }
415
+ /**
416
+ * Handle individual checkbox toggle
417
+ * @param value - Checkbox state
418
+ * @param identifier - Unique row identifier
419
+ */
163
420
  handleToggleCheckbox(value, identifier) {
164
421
  if (value) {
165
422
  this.identifiers.update((items) => new Set(items).add(identifier));
@@ -172,21 +429,109 @@ class TableComponent {
172
429
  });
173
430
  }
174
431
  }
432
+ /** @internal Clear all selections */
175
433
  clearList() {
176
434
  this.identifiers.set(new Set());
177
435
  this.header()?.checked.set(false);
178
436
  }
179
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
180
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, labelEntriesByPage: { classPropertyName: "labelEntriesByPage", publicName: "labelEntriesByPage", isSignal: true, isRequired: false, transformFunction: null }, labelShowEntriesOf: { classPropertyName: "labelShowEntriesOf", publicName: "labelShowEntriesOf", isSignal: true, isRequired: false, transformFunction: null }, labelShowEntries: { classPropertyName: "labelShowEntries", publicName: "labelShowEntries", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange", onCheck: "onCheck" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ labelEntriesByPageVar }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@let labelShowEntriesOfVar = labelShowEntriesOf();\n\t\t\t\t\t\t@let labelShowEntriesVar = labelShowEntries();\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\"> {{ total }} {{ labelShowEntriesVar }} </span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ paginationRange() }} {{ labelShowEntriesOfVar }} {{ total }} {{ labelShowEntriesVar }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ error() }}</span>\n\t\t</div>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "currentPage"], outputs: ["onPageChange", "currentPageChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "ghost", "name", "placeholder", "label", "value", "options", "emptyOptionText", "trackBy", "key", "parentForm", "formControlName", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
437
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
438
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderOverflow: { classPropertyName: "allowHeaderOverflow", publicName: "allowHeaderOverflow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", checkedItems: "checkedItems" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let heightVar = height();\n@let showshowFooterVar = showFooter();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t@if (heightVar !== 'auto') {\n\t\t\t\t<!-- gradient -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"after:from-base-200 relative after:absolute after:inset-x-0 after:right-0 after:bottom-0 after:left-0 after:block after:h-6 after:bg-gradient-to-t after:to-transparent after:bg-top after:content-['']\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t<!-- Footer -->\n\t\t\t@if (showshowFooterVar) {\n\t\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t\t<!-- Divider -->\n\t\t\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\n\t\t\t\t\t<!-- Paginator -->\n\t\t\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t\t\t<!-- Pagination info -->\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "ghost", "name", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
439
+ }
440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableComponent, decorators: [{
441
+ type: Component,
442
+ args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let heightVar = height();\n@let showshowFooterVar = showFooter();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t@if (heightVar !== 'auto') {\n\t\t\t\t<!-- gradient -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"after:from-base-200 relative after:absolute after:inset-x-0 after:right-0 after:bottom-0 after:left-0 after:block after:h-6 after:bg-gradient-to-t after:to-transparent after:bg-top after:content-['']\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t<!-- Footer -->\n\t\t\t@if (showshowFooterVar) {\n\t\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t\t<!-- Divider -->\n\t\t\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\n\t\t\t\t\t<!-- Paginator -->\n\t\t\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t\t\t<!-- Pagination info -->\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n" }]
443
+ }] });
444
+
445
+ /**
446
+ * Component to render a table action, typically a button with optional tooltip.
447
+ *
448
+ * @remarks
449
+ * This component encapsulates a button within a table, allowing for consistent styling
450
+ * and easy integration with tooltips.
451
+ *
452
+ * @example
453
+ * ```html
454
+ * <st-table-action tooltip="Delete" icon="delete">
455
+ * Delete
456
+ * </st-table-action>
457
+ * ```
458
+ */
459
+ class TableActionComponent {
460
+ /**
461
+ * Button style variant.
462
+ * @defaultValue 'primary'
463
+ */
464
+ variant = input('primary');
465
+ /**
466
+ * Tooltip text (optional).
467
+ */
468
+ tooltip = input();
469
+ /**
470
+ * Icon name (optional).
471
+ */
472
+ icon = input();
473
+ /**
474
+ * Button size.
475
+ * @defaultValue 'md'
476
+ */
477
+ size = input('md');
478
+ /**
479
+ * Computes CSS classes for the table action text size based on the current size setting.
480
+ *
481
+ * @returns A string of CSS classes determined by the component's size:
482
+ * - 'xs' size: applies 'text-[0.6875rem]' class
483
+ * - 'sm' size: applies 'text-xs' class
484
+ * - 'md' size: applies 'text-sm' class
485
+ * - 'lg' or 'xl' size: applies 'text-lg' class
486
+ */
487
+ tableActionClass = computed(() => {
488
+ return cn({
489
+ 'text-[0.6875rem]': this.size() === 'xs',
490
+ 'text-xs': this.size() === 'sm',
491
+ 'text-sm': this.size() === 'md',
492
+ 'text-lg': this.size() === 'lg' || this.size() === 'xl',
493
+ });
494
+ });
495
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
496
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: TableActionComponent, isStandalone: true, selector: "st-table-action", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let tooltipVar = tooltip();\n@let variantVar = variant();\n@let iconVar = icon();\n@let sizeVar = size();\n\n<!-- Define the button template with content projection -->\n<ng-template #buttonTemplate>\n\t<st-button [class]=\"tableActionClass()\" [variant]=\"variantVar\" [icon]=\"iconVar\" [link]=\"true\" [size]=\"sizeVar\">\n\t\t<ng-content></ng-content>\n\t</st-button>\n</ng-template>\n\n<!-- Conditional rendering -->\n@if (tooltipVar) {\n\t<st-tooltip variant=\"secondary\" [label]=\"tooltipVar | translate\" position=\"top\">\n\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t</st-tooltip>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TooltipComponent, selector: "st-tooltip", inputs: ["variant", "position", "label"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
497
+ }
498
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableActionComponent, decorators: [{
499
+ type: Component,
500
+ args: [{ selector: 'st-table-action', imports: [CommonModule, TooltipComponent, ButtonComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let tooltipVar = tooltip();\n@let variantVar = variant();\n@let iconVar = icon();\n@let sizeVar = size();\n\n<!-- Define the button template with content projection -->\n<ng-template #buttonTemplate>\n\t<st-button [class]=\"tableActionClass()\" [variant]=\"variantVar\" [icon]=\"iconVar\" [link]=\"true\" [size]=\"sizeVar\">\n\t\t<ng-content></ng-content>\n\t</st-button>\n</ng-template>\n\n<!-- Conditional rendering -->\n@if (tooltipVar) {\n\t<st-tooltip variant=\"secondary\" [label]=\"tooltipVar | translate\" position=\"top\">\n\t\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n\t</st-tooltip>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n}\n" }]
501
+ }] });
502
+
503
+ /**
504
+ * Component to render a container for table actions.
505
+ *
506
+ * @remarks
507
+ * This component is a simple container for action buttons or other interactive elements
508
+ * within a table. It provides basic styling and layout.
509
+ *
510
+ * @example
511
+ * ```html
512
+ * <st-table-actions>
513
+ * <button>Action 1</button>
514
+ * <button>Action 2</button>
515
+ * </st-table-actions>
516
+ * ```
517
+ */
518
+ class TableActionsComponent {
519
+ /**
520
+ * @internal
521
+ * Computed class string for the table actions container.
522
+ */
523
+ componentClass = computed(() => cn('inline-flex items-center gap-2 grow-0 align-top justify-cente'));
524
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
525
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: TableActionsComponent, isStandalone: true, selector: "st-table-actions", ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
181
526
  }
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableComponent, decorators: [{
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableActionsComponent, decorators: [{
183
528
  type: Component,
184
- args: [{ selector: 'st-table', standalone: true, imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ labelEntriesByPageVar }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@let labelShowEntriesOfVar = labelShowEntriesOf();\n\t\t\t\t\t\t@let labelShowEntriesVar = labelShowEntries();\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\"> {{ total }} {{ labelShowEntriesVar }} </span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ paginationRange() }} {{ labelShowEntriesOfVar }} {{ total }} {{ labelShowEntriesVar }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ error() }}</span>\n\t\t</div>\n\t</div>\n}\n" }]
529
+ args: [{ selector: 'st-table-actions', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n" }]
185
530
  }] });
186
531
 
187
532
  /**
188
533
  * Generated bundle index. Do not edit.
189
534
  */
190
535
 
191
- export { TableComponent, TableHeaderCheckboxComponent, TableRowCheckboxComponent, tableComponent, tableContainer, tableContent };
536
+ export { TableActionComponent, TableActionsComponent, TableComponent, TableHeaderCheckboxComponent, TableRowCheckboxComponent, tableComponent, tableContainer, tableContent };
192
537
  //# sourceMappingURL=sixbell-telco-sdk-components-table.mjs.map