@sixbell-telco/sdk 4.2.0 → 4.4.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 (268) hide show
  1. package/CHANGELOG.md +108 -1
  2. package/README.md +98 -66
  3. package/_index.css +2 -1586
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  5. package/components/alert/README.md +27 -0
  6. package/components/alert/index.d.ts +5 -0
  7. package/components/alert/public-api.d.ts +1 -0
  8. package/components/alert/src/alert.component.d.ts +85 -0
  9. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
  10. package/components/audio-player/button-play/button-play.component.d.ts +7 -7
  11. package/components/audio-player/src/audio-player.component.d.ts +2 -2
  12. package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
  13. package/components/avatar/README.md +1 -0
  14. package/components/avatar/src/avatar.component.d.ts +2 -2
  15. package/components/badge/src/badge.component.d.ts +4 -4
  16. package/components/button/README.md +5 -4
  17. package/components/button/src/button.component.d.ts +38 -16
  18. package/components/card/README.md +2 -0
  19. package/components/card/card-footer/card-footer.component.d.ts +37 -2
  20. package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
  21. package/components/card/src/card.component.d.ts +6 -6
  22. package/components/countdown/src/countdown.component.d.ts +4 -4
  23. package/components/data-table/README.md +26 -0
  24. package/components/data-table/expandable/expandable.component.d.ts +4 -4
  25. package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
  26. package/components/data-table/src/data-table.component.d.ts +15 -8
  27. package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
  28. package/components/description-list/README.md +27 -0
  29. package/components/description-list/index.d.ts +5 -0
  30. package/components/description-list/public-api.d.ts +1 -0
  31. package/components/description-list/src/description-list.component.d.ts +90 -0
  32. package/components/dialog/README.md +10 -6
  33. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
  34. package/components/dialog/src/dialog.component.d.ts +27 -6
  35. package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
  36. package/components/divider/src/divider.component.d.ts +1 -1
  37. package/components/dropdown/README.md +2 -2
  38. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +1 -1
  39. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
  40. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
  41. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
  42. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
  43. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +11 -14
  44. package/components/dropdown-menu/README.md +2 -2
  45. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
  46. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +6 -2
  47. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
  48. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
  49. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
  50. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +3 -1
  51. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +3 -1
  52. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +2 -1
  53. package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
  54. package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -0
  55. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
  56. package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -0
  57. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +2 -1
  58. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +1 -0
  59. package/components/empty-state/README.md +40 -0
  60. package/components/empty-state/index.d.ts +5 -0
  61. package/components/empty-state/public-api.d.ts +1 -0
  62. package/components/empty-state/src/empty-state.component.d.ts +73 -0
  63. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
  64. package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
  65. package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
  66. package/components/forms/combobox/README.md +2 -1
  67. package/components/forms/combobox/src/combobox.component.d.ts +31 -18
  68. package/components/forms/date-picker/src/date-picker.component.d.ts +16 -9
  69. package/components/forms/form-hint/README.md +29 -0
  70. package/components/forms/form-hint/index.d.ts +5 -0
  71. package/components/forms/form-hint/public-api.d.ts +1 -0
  72. package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
  73. package/components/forms/form-item/src/form-item.component.d.ts +45 -1
  74. package/components/forms/input/src/input.component.d.ts +15 -8
  75. package/components/forms/radio/src/radio.component.d.ts +1 -1
  76. package/components/forms/range/src/range.component.d.ts +18 -4
  77. package/components/forms/select/README.md +2 -1
  78. package/components/forms/select/src/select.component.d.ts +30 -16
  79. package/components/forms/switch/src/switch.component.d.ts +1 -1
  80. package/components/forms/textarea/src/textarea.component.d.ts +12 -5
  81. package/components/forms/toggle/src/toggle.component.d.ts +1 -1
  82. package/components/notification/src/notification.component.d.ts +1 -1
  83. package/components/overlay/README.md +7 -2
  84. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
  85. package/components/overlay/src/overlay.component.d.ts +10 -9
  86. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
  87. package/components/progress/src/progress.component.d.ts +1 -1
  88. package/components/segmented-button/README.md +57 -0
  89. package/components/segmented-button/index.d.ts +5 -0
  90. package/components/segmented-button/public-api.d.ts +1 -0
  91. package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
  92. package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
  93. package/components/tab/src/tab.component.d.ts +2 -2
  94. package/components/table/README.md +51 -3
  95. package/components/table/public-api.d.ts +1 -0
  96. package/components/table/src/table.component.d.ts +20 -13
  97. package/components/table/table-action/table-action.component.d.ts +14 -3
  98. package/components/table/table-actions/table-actions.component.d.ts +12 -1
  99. package/components/table/tokens/README.md +7 -0
  100. package/components/table/tokens/index.d.ts +5 -0
  101. package/components/table/tokens/public-api.d.ts +1 -0
  102. package/components/table/tokens/table-empty-state.d.ts +6 -0
  103. package/components/tooltip/README.md +25 -7
  104. package/components/tooltip/src/tooltip.component.d.ts +44 -12
  105. package/components/tree/README.md +73 -0
  106. package/components/tree/index.d.ts +5 -0
  107. package/components/tree/public-api.d.ts +1 -0
  108. package/components/tree/src/tree.component.d.ts +180 -0
  109. package/components/wizard/README.md +9 -0
  110. package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
  111. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
  112. package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
  113. package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
  114. package/directives/truncate/README.md +49 -0
  115. package/directives/truncate/index.d.ts +5 -0
  116. package/directives/truncate/public-api.d.ts +1 -0
  117. package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
  118. package/directives/truncate/src/truncate.directive.d.ts +96 -0
  119. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
  120. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
  122. package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
  123. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
  124. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
  126. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
  128. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
  130. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
  132. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
  134. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
  136. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
  138. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
  140. package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
  141. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
  142. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
  144. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
  145. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +33 -24
  146. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +7 -3
  148. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  149. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +25 -14
  150. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +43 -72
  152. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  154. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  155. package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
  156. package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
  157. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
  158. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  159. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
  160. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  161. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +104 -72
  162. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  163. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +23 -12
  164. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  165. package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
  166. package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
  167. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
  168. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
  169. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +27 -13
  170. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  171. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
  172. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  173. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +29 -7
  174. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  175. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +84 -56
  176. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  177. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  178. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  179. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +27 -22
  180. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  181. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
  182. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  183. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
  184. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  185. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +41 -79
  186. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  187. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
  188. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  189. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
  190. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  191. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
  192. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
  193. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
  194. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  195. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
  196. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  197. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
  198. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  199. package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
  200. package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
  201. package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
  202. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  203. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +187 -75
  204. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  205. package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
  206. package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
  207. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
  208. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  209. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
  210. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  211. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
  212. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  213. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
  214. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
  215. package/fesm2022/sixbell-telco-sdk-layouts.mjs +69 -41
  216. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  217. package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
  218. package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
  219. package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
  220. package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
  221. package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs +186 -0
  222. package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs.map +1 -0
  223. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +234 -4
  224. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  225. package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
  226. package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
  227. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +129 -14
  228. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  229. package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
  230. package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
  231. package/i18n/sdk/en.json +224 -0
  232. package/i18n/sdk/es.json +224 -0
  233. package/i18n/sdk/pt.json +224 -0
  234. package/layouts/README.md +18 -11
  235. package/layouts/public-api.d.ts +1 -1
  236. package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
  237. package/layouts/src/layout.config.d.ts +1 -1
  238. package/layouts/src/menu/menu-active.d.ts +2 -1
  239. package/layouts/src/menu/menu-url.d.ts +2 -0
  240. package/layouts/src/navbar/navbar.component.d.ts +5 -5
  241. package/layouts/src/page-banner/page-banner.component.d.ts +19 -2
  242. package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
  243. package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
  244. package/package.json +64 -20
  245. package/src/_index.css +1701 -0
  246. package/utils/mfe/README.md +1 -0
  247. package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
  248. package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
  249. package/utils/popover-motion/README.md +38 -0
  250. package/utils/popover-motion/index.d.ts +5 -0
  251. package/utils/popover-motion/public-api.d.ts +2 -0
  252. package/utils/popover-motion/src/popover-menu-motion.d.ts +37 -0
  253. package/utils/popover-motion/src/popover-motion.d.ts +31 -0
  254. package/utils/theme/README.md +94 -1
  255. package/utils/theme/public-api.d.ts +2 -1
  256. package/utils/theme/src/models/theme.d.ts +32 -0
  257. package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
  258. package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
  259. package/utils/translation/README.md +63 -0
  260. package/utils/translation/src/translation.service.d.ts +24 -0
  261. package/utils/translation/testing/index.d.ts +5 -0
  262. package/utils/translation/testing/public-api.d.ts +2 -0
  263. package/utils/translation/testing/src/translation-testing.d.ts +96 -0
  264. package/utils/unsaved-changes/README.md +33 -0
  265. package/utils/unsaved-changes/index.d.ts +5 -0
  266. package/utils/unsaved-changes/public-api.d.ts +1 -0
  267. package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
  268. package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
@@ -0,0 +1,14 @@
1
+ import { InjectionToken } from '@angular/core';
2
+
3
+ /**
4
+ * Marker an empty-state component provides so `st-table` can project it in place of its built-in
5
+ * "no data" / "no results" blocks without importing that component.
6
+ */
7
+ const TABLE_EMPTY_STATE = new InjectionToken('TABLE_EMPTY_STATE');
8
+
9
+ /**
10
+ * Generated bundle index. Do not edit.
11
+ */
12
+
13
+ export { TABLE_EMPTY_STATE };
14
+ //# sourceMappingURL=sixbell-telco-sdk-components-table-tokens.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-table-tokens.mjs","sources":["../../../projects/sdk/components/table/tokens/table-empty-state.ts","../../../projects/sdk/components/table/tokens/sixbell-telco-sdk-components-table-tokens.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * Marker an empty-state component provides so `st-table` can project it in place of its built-in\n * \"no data\" / \"no results\" blocks without importing that component.\n */\nexport const TABLE_EMPTY_STATE = new InjectionToken<unknown>('TABLE_EMPTY_STATE');\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAEA;;;AAGG;MACU,iBAAiB,GAAG,IAAI,cAAc,CAAU,mBAAmB;;ACNhF;;AAEG;;;;"}
@@ -1,5 +1,7 @@
1
+ import { TABLE_EMPTY_STATE } from '@sixbell-telco/sdk/components/table/tokens';
2
+ export { TABLE_EMPTY_STATE } from '@sixbell-telco/sdk/components/table/tokens';
1
3
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, signal, afterRenderEffect, computed, input, ChangeDetectionStrategy, Component, output, contentChild, contentChildren } from '@angular/core';
4
+ import { inject, ElementRef, signal, afterRenderEffect, computed, input, ChangeDetectionStrategy, Component, booleanAttribute, output, contentChild, contentChildren } from '@angular/core';
3
5
  import { cn } from '@sixbell-telco/sdk/utils/cn';
4
6
  import * as i1 from '@angular/common';
5
7
  import { CommonModule } from '@angular/common';
@@ -8,7 +10,7 @@ import { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';
8
10
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
9
11
  import { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';
10
12
  import { TextDirective } from '@sixbell-telco/sdk/directives/text';
11
- import { TranslateService, TranslatePipe } from '@sixbell-telco/sdk/utils/translation';
13
+ import { TranslateService, injectLabelTranslator, TranslatePipe } from '@sixbell-telco/sdk/utils/translation';
12
14
  import { cva } from 'class-variance-authority';
13
15
  import { CheckboxComponent } from '@sixbell-telco/sdk/components/forms/checkbox';
14
16
  import { TranslatePipe as TranslatePipe$1 } from '@ngx-translate/core';
@@ -619,35 +621,35 @@ class TableComponent {
619
621
  * Enable sticky header row
620
622
  * @defaultValue false
621
623
  */
622
- pinRows = input(false);
624
+ pinRows = input(false, { transform: booleanAttribute });
623
625
  /**
624
626
  * Enable sticky first column
625
627
  * @defaultValue false
626
628
  */
627
- pinColumns = input(false);
629
+ pinColumns = input(false, { transform: booleanAttribute });
628
630
  /**
629
631
  * Apply zebra-striping to rows
630
632
  * @defaultValue false
631
633
  */
632
- zebra = input(false);
634
+ zebra = input(false, { transform: booleanAttribute });
633
635
  /**
634
636
  * Show row dividers (borders) between rows
635
637
  * @defaultValue false
636
638
  */
637
- bordered = input(false);
639
+ bordered = input(false, { transform: booleanAttribute });
638
640
  /**
639
641
  * Highlight body rows on hover with the `--color-table-row-hover` tint (12% `base-content` by default)
640
642
  * layered over each cell's own background, so zebra rows and pinned first-column cells follow it
641
643
  * @defaultValue true
642
644
  */
643
- rowHover = input(true);
645
+ rowHover = input(true, { transform: booleanAttribute });
644
646
  /**
645
647
  * Show a loading state: the projected header and the table frame stay in place and the body
646
648
  * shows skeleton rows. The table is marked `aria-busy` and a status message is announced.
647
649
  * The empty states are not shown while loading.
648
650
  * @defaultValue false
649
651
  */
650
- loading = input(false);
652
+ loading = input(false, { transform: booleanAttribute });
651
653
  /**
652
654
  * Number of skeleton rows shown while loading. Defaults to the page size (`pagination.itemsPerPage`).
653
655
  * @defaultValue null
@@ -698,36 +700,31 @@ class TableComponent {
698
700
  /** Event emitted when page size changes */
699
701
  pageSizeChanged = output();
700
702
  ENTRIES = [5, 10, 20, 50, 100];
701
- entriesPerPageOptions = computed(() => {
702
- return this.ENTRIES.map((n) => {
703
- const translatedText = this.translationService.instant('sdk.table.perPage', { count: n });
704
- const fallbackText = `${n} / page`;
705
- return {
706
- value: n,
707
- text: translatedText && translatedText !== 'sdk.table.perPage' ? translatedText : fallbackText,
708
- };
709
- });
710
- });
703
+ translateLabel = injectLabelTranslator();
704
+ entriesPerPageOptions = computed(() => this.ENTRIES.map((n) => ({
705
+ value: n,
706
+ text: this.translateLabel({ key: 'sdk.table.perPage', fallback: '{{count}} / page', params: { count: n } }),
707
+ })));
711
708
  /**
712
709
  * Show items per page selector
713
710
  * @defaultValue true
714
711
  */
715
- showItemsPerPage = input(true);
712
+ showItemsPerPage = input(true, { transform: booleanAttribute });
716
713
  /**
717
714
  * Show entries count display
718
715
  * @defaultValue true
719
716
  */
720
- showEntries = input(true);
717
+ showEntries = input(true, { transform: booleanAttribute });
721
718
  /**
722
719
  * Show pagination controls
723
720
  * @defaultValue true
724
721
  */
725
- showPagination = input(true);
722
+ showPagination = input(true, { transform: booleanAttribute });
726
723
  /**
727
724
  * Show footer with additional information
728
725
  * @defaultValue true
729
726
  */
730
- showFooter = input(true);
727
+ showFooter = input(true, { transform: booleanAttribute });
731
728
  /**
732
729
  * Function to determine if any filters are currently active
733
730
  * This allows the parent component to define what constitutes an "active filter"
@@ -738,7 +735,7 @@ class TableComponent {
738
735
  * or wrap text normally (false)
739
736
  * @defaultValue false
740
737
  */
741
- allowHeaderOverflow = input(false);
738
+ allowHeaderOverflow = input(false, { transform: booleanAttribute });
742
739
  /**
743
740
  * Computed total number of pages for the internal paginator.
744
741
  * Calculated from totalItems and itemsPerPage.
@@ -795,7 +792,7 @@ class TableComponent {
795
792
  paginationRange = computed(() => {
796
793
  const start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;
797
794
  const end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());
798
- return `${start}-${end}`;
795
+ return this.totalItems() === 0 ? '0-0' : `${start}-${end}`;
799
796
  });
800
797
  /**
801
798
  * Handles page navigation events
@@ -873,6 +870,12 @@ class TableComponent {
873
870
  footerWrapperClass = computed(() => cn('@container flex w-full flex-col overflow-x-auto', this.footerLayoutTokens().wrapper));
874
871
  footerDividerClass = computed(() => cn('divider divider-neutral my-0 h-[0.0625rem] before:h-[0.0625rem] after:h-[0.0625rem]', this.footerLayoutTokens().divider));
875
872
  footerContentClass = computed(() => cn('flex flex-col items-center @2xl:flex-row @2xl:justify-between @4xl:grid @4xl:grid-cols-[auto_1fr_auto] @4xl:items-center', this.footerLayoutTokens().content));
873
+ /**
874
+ * @internal
875
+ * A projected `st-empty-state` replaces the built-in "no data" and "no results" blocks.
876
+ * Only a direct child counts, the same nodes `<ng-content select="st-empty-state">` projects.
877
+ */
878
+ customEmptyState = contentChild(TABLE_EMPTY_STATE, { descendants: false });
876
879
  /** @internal Reference to header checkbox component */
877
880
  header = contentChild(TableHeaderCheckboxComponent, { descendants: true });
878
881
  /** @internal List of row checkbox components */
@@ -924,11 +927,11 @@ class TableComponent {
924
927
  this.header()?.checked.set(false);
925
928
  }
926
929
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
927
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", 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 }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", 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 }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", 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 containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\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 showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t<div [class]=\"tableContainerClassVar\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\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</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<span class=\"sr-only\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
930
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", 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 }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", 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 }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", 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: "customEmptyState", first: true, predicate: TABLE_EMPTY_STATE, isSignal: true }, { 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 containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\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 showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t<div [class]=\"tableContainerClassVar\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\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</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<span class=\"sr-only\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "required", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
928
931
  }
929
932
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableComponent, decorators: [{
930
933
  type: Component,
931
- args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\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 showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t<div [class]=\"tableContainerClassVar\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\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</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<span class=\"sr-only\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n" }]
934
+ args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\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 showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t<div [class]=\"tableContainerClassVar\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\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</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<span class=\"sr-only\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n" }]
932
935
  }] });
933
936
 
934
937
  /**
@@ -955,6 +958,12 @@ class TableActionComponent {
955
958
  * Tooltip text (optional).
956
959
  */
957
960
  tooltip = input();
961
+ /**
962
+ * What the action applies to, such as the row's name ("producto ABC"). When set with `tooltip`, the
963
+ * accessible name becomes "<tooltip> <contextLabel>" ("Editar producto ABC") while the tooltip still
964
+ * shows only "Editar", so the name starts with the visible label (WCAG 2.5.3).
965
+ */
966
+ contextLabel = input();
958
967
  /**
959
968
  * Tooltip color variant.
960
969
  * @defaultValue 'base'
@@ -973,12 +982,12 @@ class TableActionComponent {
973
982
  * Disabled state forwarded to the inner button.
974
983
  * @defaultValue false
975
984
  */
976
- disabled = input(false);
985
+ disabled = input(false, { transform: booleanAttribute });
977
986
  /**
978
987
  * Stop event propagation for activation events.
979
988
  * @defaultValue false
980
989
  */
981
- stopPropagation = input(false);
990
+ stopPropagation = input(false, { transform: booleanAttribute });
982
991
  /**
983
992
  * Event emitted on click of the inner button.
984
993
  */
@@ -1015,6 +1024,14 @@ class TableActionComponent {
1015
1024
  return '8';
1016
1025
  }
1017
1026
  });
1027
+ /**
1028
+ * @internal
1029
+ * The visible tooltip text, followed by the context when one is set.
1030
+ */
1031
+ accessibleName(label) {
1032
+ const context = this.contextLabel()?.trim();
1033
+ return context ? `${label} ${context}` : label;
1034
+ }
1018
1035
  /**
1019
1036
  * @internal
1020
1037
  * Forward inner button click as SDK activation outputs.
@@ -1024,11 +1041,11 @@ class TableActionComponent {
1024
1041
  this.triggered.emit();
1025
1042
  }
1026
1043
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1027
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", 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 }, tooltipVariant: { classPropertyName: "tooltipVariant", publicName: "tooltipVariant", 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 }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", triggered: "triggered" }, ngImport: i0, template: "@let tooltipVar = tooltip();\n@let variantVar = variant();\n@let iconVar = icon();\n@let sizeVar = size();\n@let textPresetVar = textPreset();\n@let disabledVar = disabled();\n@let stopPropagationVar = stopPropagation();\n\n<!-- Define the button template with content projection -->\n<ng-template #buttonTemplate>\n\t<st-button\n\t\t[class]=\"tableActionClass()\"\n\t\t[variant]=\"variantVar\"\n\t\t[icon]=\"iconVar\"\n\t\t[link]=\"true\"\n\t\t[size]=\"sizeVar\"\n\t\t[disabled]=\"disabledVar\"\n\t\t[stopPropagation]=\"stopPropagationVar\"\n\t\t[ariaLabel]=\"tooltipVar ? (tooltipVar | translate) : null\"\n\t\t(clicked)=\"onClicked($event)\"\n\t>\n\t\t<span [stText]=\"textPresetVar\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</st-button>\n</ng-template>\n\n<!-- Conditional rendering -->\n@if (tooltipVar) {\n\t<st-tooltip [variant]=\"tooltipVariant()\" [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", "icon", "iconPosition"] }, { 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", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "pipe", type: TranslatePipe$1, name: "translate" }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1044
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", 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 }, contextLabel: { classPropertyName: "contextLabel", publicName: "contextLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltipVariant: { classPropertyName: "tooltipVariant", publicName: "tooltipVariant", 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 }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", triggered: "triggered" }, ngImport: i0, template: "@let tooltipVar = tooltip();\n@let variantVar = variant();\n@let iconVar = icon();\n@let sizeVar = size();\n@let textPresetVar = textPreset();\n@let disabledVar = disabled();\n@let stopPropagationVar = stopPropagation();\n\n<!-- Define the button template with content projection -->\n<ng-template #buttonTemplate>\n\t<st-button\n\t\t[class]=\"tableActionClass()\"\n\t\t[variant]=\"variantVar\"\n\t\t[icon]=\"iconVar\"\n\t\t[link]=\"true\"\n\t\t[size]=\"sizeVar\"\n\t\t[disabled]=\"disabledVar\"\n\t\t[stopPropagation]=\"stopPropagationVar\"\n\t\t[ariaLabel]=\"tooltipVar ? accessibleName(tooltipVar | translate) : null\"\n\t\t(clicked)=\"onClicked($event)\"\n\t>\n\t\t<span [stText]=\"textPresetVar\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</st-button>\n</ng-template>\n\n<!-- Conditional rendering -->\n@if (tooltipVar) {\n\t<st-tooltip [variant]=\"tooltipVariant()\" [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", "icon", "iconPosition", "closeDelay"] }, { 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", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "pipe", type: TranslatePipe$1, name: "translate" }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1028
1045
  }
1029
1046
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableActionComponent, decorators: [{
1030
1047
  type: Component,
1031
- args: [{ selector: 'st-table-action', imports: [CommonModule, TooltipComponent, ButtonComponent, TranslatePipe$1, TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let tooltipVar = tooltip();\n@let variantVar = variant();\n@let iconVar = icon();\n@let sizeVar = size();\n@let textPresetVar = textPreset();\n@let disabledVar = disabled();\n@let stopPropagationVar = stopPropagation();\n\n<!-- Define the button template with content projection -->\n<ng-template #buttonTemplate>\n\t<st-button\n\t\t[class]=\"tableActionClass()\"\n\t\t[variant]=\"variantVar\"\n\t\t[icon]=\"iconVar\"\n\t\t[link]=\"true\"\n\t\t[size]=\"sizeVar\"\n\t\t[disabled]=\"disabledVar\"\n\t\t[stopPropagation]=\"stopPropagationVar\"\n\t\t[ariaLabel]=\"tooltipVar ? (tooltipVar | translate) : null\"\n\t\t(clicked)=\"onClicked($event)\"\n\t>\n\t\t<span [stText]=\"textPresetVar\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</st-button>\n</ng-template>\n\n<!-- Conditional rendering -->\n@if (tooltipVar) {\n\t<st-tooltip [variant]=\"tooltipVariant()\" [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" }]
1048
+ args: [{ selector: 'st-table-action', imports: [CommonModule, TooltipComponent, ButtonComponent, TranslatePipe$1, TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let tooltipVar = tooltip();\n@let variantVar = variant();\n@let iconVar = icon();\n@let sizeVar = size();\n@let textPresetVar = textPreset();\n@let disabledVar = disabled();\n@let stopPropagationVar = stopPropagation();\n\n<!-- Define the button template with content projection -->\n<ng-template #buttonTemplate>\n\t<st-button\n\t\t[class]=\"tableActionClass()\"\n\t\t[variant]=\"variantVar\"\n\t\t[icon]=\"iconVar\"\n\t\t[link]=\"true\"\n\t\t[size]=\"sizeVar\"\n\t\t[disabled]=\"disabledVar\"\n\t\t[stopPropagation]=\"stopPropagationVar\"\n\t\t[ariaLabel]=\"tooltipVar ? accessibleName(tooltipVar | translate) : null\"\n\t\t(clicked)=\"onClicked($event)\"\n\t>\n\t\t<span [stText]=\"textPresetVar\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</st-button>\n</ng-template>\n\n<!-- Conditional rendering -->\n@if (tooltipVar) {\n\t<st-tooltip [variant]=\"tooltipVariant()\" [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" }]
1032
1049
  }] });
1033
1050
 
1034
1051
  /**
@@ -1077,11 +1094,25 @@ class TableActionsComponent {
1077
1094
  * @defaultValue matMoreVert (Material vertical dots icon)
1078
1095
  */
1079
1096
  triggerIcon = input(matMoreVert);
1097
+ /**
1098
+ * What the actions apply to, such as the row's name ("producto ABC"). Inline buttons are named
1099
+ * "<tooltip> <contextLabel>" and the dropdown trigger "<actions label> <contextLabel>"; the visible
1100
+ * tooltips and item labels stay unchanged.
1101
+ */
1102
+ contextLabel = input();
1080
1103
  /**
1081
1104
  * Emitted when a data-driven action is triggered/clicked.
1082
1105
  * Emits the full `TableActionConfig` of the triggered action.
1083
1106
  */
1084
1107
  actionTriggered = output();
1108
+ /**
1109
+ * @internal
1110
+ * The trigger's own name, followed by the context when one is set.
1111
+ */
1112
+ triggerName(label) {
1113
+ const context = this.contextLabel()?.trim();
1114
+ return context ? `${label} ${context}` : label;
1115
+ }
1085
1116
  /**
1086
1117
  * @internal
1087
1118
  * Computed class string for the table actions container (inline mode and ng-content fallback).
@@ -1102,7 +1133,7 @@ class TableActionsComponent {
1102
1133
  }
1103
1134
  }
1104
1135
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1105
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TableActionsComponent, isStandalone: true, selector: "st-table-actions", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, triggerIcon: { classPropertyName: "triggerIcon", publicName: "triggerIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionTriggered: "actionTriggered" }, ngImport: i0, template: "@if (hasActions()) {\n\t@if (mode() === 'inline') {\n\t\t<div [class]=\"componentClass()\">\n\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t<st-table-action\n\t\t\t\t\t[variant]=\"action.variant ?? 'primary'\"\n\t\t\t\t\t[icon]=\"action.icon\"\n\t\t\t\t\t[tooltip]=\"action.tooltip\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\t[disabled]=\"action.disabled ?? false\"\n\t\t\t\t\t(clicked)=\"onActionClick(action)\"\n\t\t\t\t/>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<st-dropdown-menu>\n\t\t\t<st-dropdown-menu-trigger [menuTriggerFor]=\"content.template\">\n\t\t\t\t<st-button [icon]=\"triggerIcon()\" [ghost]=\"true\" [size]=\"size()\" variant=\"base\" [ariaLabel]=\"'sdk.table.actions' | translate\" />\n\t\t\t</st-dropdown-menu-trigger>\n\t\t\t<st-dropdown-menu-content #content [size]=\"size()\">\n\t\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t\t<st-dropdown-menu-item [disabled]=\"action.disabled ?? false\" (triggered)=\"onActionClick(action)\">\n\t\t\t\t\t\t<span class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t@if (action.icon) {\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"action.icon\" size=\"auto\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@if (action.label) {\n\t\t\t\t\t\t\t\t{{ action.label | translate }}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</st-dropdown-menu-item>\n\t\t\t\t}\n\t\t\t</st-dropdown-menu-content>\n\t\t</st-dropdown-menu>\n\t}\n} @else {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TranslatePipe$1, name: "translate" }, { kind: "component", type: TableActionComponent, selector: "st-table-action", inputs: ["variant", "tooltip", "tooltipVariant", "icon", "size", "disabled", "stopPropagation"], outputs: ["clicked", "triggered"] }, { 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", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "component", type: DropdownMenuComponent, selector: "st-dropdown-menu" }, { kind: "component", type: DropdownMenuTriggerComponent, selector: "st-dropdown-menu-trigger" }, { kind: "component", type: DropdownMenuContentComponent, selector: "st-dropdown-menu-content", inputs: ["class", "size"], outputs: ["closed"], exportAs: ["menuContent"] }, { kind: "component", type: DropdownMenuItemComponent, selector: "st-dropdown-menu-item", inputs: ["disabled", "active", "shortcut", "class", "stopPropagation"], outputs: ["triggered", "clicked", "keyDownEnter", "keyDownSpace"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1136
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TableActionsComponent, isStandalone: true, selector: "st-table-actions", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, triggerIcon: { classPropertyName: "triggerIcon", publicName: "triggerIcon", isSignal: true, isRequired: false, transformFunction: null }, contextLabel: { classPropertyName: "contextLabel", publicName: "contextLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionTriggered: "actionTriggered" }, ngImport: i0, template: "@if (hasActions()) {\n\t@if (mode() === 'inline') {\n\t\t<div [class]=\"componentClass()\">\n\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t<st-table-action\n\t\t\t\t\t[variant]=\"action.variant ?? 'primary'\"\n\t\t\t\t\t[icon]=\"action.icon\"\n\t\t\t\t\t[tooltip]=\"action.tooltip\"\n\t\t\t\t\t[contextLabel]=\"contextLabel()\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\t[disabled]=\"action.disabled ?? false\"\n\t\t\t\t\t(clicked)=\"onActionClick(action)\"\n\t\t\t\t/>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<st-dropdown-menu>\n\t\t\t<st-dropdown-menu-trigger [menuTriggerFor]=\"content.template\">\n\t\t\t\t<st-button [icon]=\"triggerIcon()\" [ghost]=\"true\" [size]=\"size()\" variant=\"base\" [ariaLabel]=\"triggerName('sdk.table.actions' | translate)\" />\n\t\t\t</st-dropdown-menu-trigger>\n\t\t\t<st-dropdown-menu-content #content [size]=\"size()\">\n\t\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t\t<st-dropdown-menu-item [disabled]=\"action.disabled ?? false\" (triggered)=\"onActionClick(action)\">\n\t\t\t\t\t\t<span class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t@if (action.icon) {\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"action.icon\" size=\"auto\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@if (action.label) {\n\t\t\t\t\t\t\t\t{{ action.label | translate }}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</st-dropdown-menu-item>\n\t\t\t\t}\n\t\t\t</st-dropdown-menu-content>\n\t\t</st-dropdown-menu>\n\t}\n} @else {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TranslatePipe$1, name: "translate" }, { kind: "component", type: TableActionComponent, selector: "st-table-action", inputs: ["variant", "tooltip", "contextLabel", "tooltipVariant", "icon", "size", "disabled", "stopPropagation"], outputs: ["clicked", "triggered"] }, { 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", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "component", type: DropdownMenuComponent, selector: "st-dropdown-menu" }, { kind: "component", type: DropdownMenuTriggerComponent, selector: "st-dropdown-menu-trigger" }, { kind: "component", type: DropdownMenuContentComponent, selector: "st-dropdown-menu-content", inputs: ["class", "size"], outputs: ["closed"], exportAs: ["menuContent"] }, { kind: "component", type: DropdownMenuItemComponent, selector: "st-dropdown-menu-item", inputs: ["disabled", "active", "shortcut", "class", "stopPropagation"], outputs: ["triggered", "clicked", "keyDownEnter", "keyDownSpace"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1106
1137
  }
1107
1138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableActionsComponent, decorators: [{
1108
1139
  type: Component,
@@ -1116,7 +1147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1116
1147
  DropdownMenuTriggerComponent,
1117
1148
  DropdownMenuContentComponent,
1118
1149
  DropdownMenuItemComponent,
1119
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (hasActions()) {\n\t@if (mode() === 'inline') {\n\t\t<div [class]=\"componentClass()\">\n\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t<st-table-action\n\t\t\t\t\t[variant]=\"action.variant ?? 'primary'\"\n\t\t\t\t\t[icon]=\"action.icon\"\n\t\t\t\t\t[tooltip]=\"action.tooltip\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\t[disabled]=\"action.disabled ?? false\"\n\t\t\t\t\t(clicked)=\"onActionClick(action)\"\n\t\t\t\t/>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<st-dropdown-menu>\n\t\t\t<st-dropdown-menu-trigger [menuTriggerFor]=\"content.template\">\n\t\t\t\t<st-button [icon]=\"triggerIcon()\" [ghost]=\"true\" [size]=\"size()\" variant=\"base\" [ariaLabel]=\"'sdk.table.actions' | translate\" />\n\t\t\t</st-dropdown-menu-trigger>\n\t\t\t<st-dropdown-menu-content #content [size]=\"size()\">\n\t\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t\t<st-dropdown-menu-item [disabled]=\"action.disabled ?? false\" (triggered)=\"onActionClick(action)\">\n\t\t\t\t\t\t<span class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t@if (action.icon) {\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"action.icon\" size=\"auto\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@if (action.label) {\n\t\t\t\t\t\t\t\t{{ action.label | translate }}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</st-dropdown-menu-item>\n\t\t\t\t}\n\t\t\t</st-dropdown-menu-content>\n\t\t</st-dropdown-menu>\n\t}\n} @else {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" }]
1150
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (hasActions()) {\n\t@if (mode() === 'inline') {\n\t\t<div [class]=\"componentClass()\">\n\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t<st-table-action\n\t\t\t\t\t[variant]=\"action.variant ?? 'primary'\"\n\t\t\t\t\t[icon]=\"action.icon\"\n\t\t\t\t\t[tooltip]=\"action.tooltip\"\n\t\t\t\t\t[contextLabel]=\"contextLabel()\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\t[disabled]=\"action.disabled ?? false\"\n\t\t\t\t\t(clicked)=\"onActionClick(action)\"\n\t\t\t\t/>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<st-dropdown-menu>\n\t\t\t<st-dropdown-menu-trigger [menuTriggerFor]=\"content.template\">\n\t\t\t\t<st-button [icon]=\"triggerIcon()\" [ghost]=\"true\" [size]=\"size()\" variant=\"base\" [ariaLabel]=\"triggerName('sdk.table.actions' | translate)\" />\n\t\t\t</st-dropdown-menu-trigger>\n\t\t\t<st-dropdown-menu-content #content [size]=\"size()\">\n\t\t\t\t@for (action of actions(); track action.id) {\n\t\t\t\t\t<st-dropdown-menu-item [disabled]=\"action.disabled ?? false\" (triggered)=\"onActionClick(action)\">\n\t\t\t\t\t\t<span class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t@if (action.icon) {\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"action.icon\" size=\"auto\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@if (action.label) {\n\t\t\t\t\t\t\t\t{{ action.label | translate }}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</st-dropdown-menu-item>\n\t\t\t\t}\n\t\t\t</st-dropdown-menu-content>\n\t\t</st-dropdown-menu>\n\t}\n} @else {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" }]
1120
1151
  }] });
1121
1152
 
1122
1153
  class TableEmptyActionsComponent {