@ids-group-ltd/ids-design-system 0.14.4 → 0.14.6-beta.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 (331) hide show
  1. package/CHANGELOG.md +176 -1
  2. package/components.md +15 -15
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/ds-bar-chart.md +1 -1
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +1 -1
  7. package/docs/agent/charts/ds-config.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  15. package/docs/agent/overlays/ds-tooltip.md +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -130
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +20 -13
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +58 -112
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +182 -432
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -123
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -163
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +27 -85
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +50 -166
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -120
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +29 -13
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -85
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  186. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -579
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  188. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +52 -85
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  190. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  192. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  194. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  196. package/migrations/0.14.5.json +311 -0
  197. package/migrations/0.14.6-beta.0.json +9 -0
  198. package/package.json +1 -1
  199. package/schematics/check-overrides/surface.json +20 -2
  200. package/styles/_breakpoints.scss +6 -23
  201. package/styles/_chart-data-table.scss +3 -11
  202. package/styles/_chart-frame.scss +14 -63
  203. package/styles/_chart-interactive.scss +8 -36
  204. package/styles/_chart-motion.scss +11 -39
  205. package/styles/_check-box.scss +7 -26
  206. package/styles/_check-mark.scss +7 -23
  207. package/styles/_chip-row.scss +3 -14
  208. package/styles/_clear-button.scss +2 -7
  209. package/styles/_control-label.scss +2 -13
  210. package/styles/_control-line.scss +2 -6
  211. package/styles/_dropdown-overlay.scss +8 -33
  212. package/styles/_ds-color.scss +9 -28
  213. package/styles/_field-box.scss +4 -16
  214. package/styles/_field-group-segment.scss +6 -6
  215. package/styles/_field-label.scss +3 -14
  216. package/styles/_field-state.scss +5 -10
  217. package/styles/_focus.scss +20 -60
  218. package/styles/_icon-base.scss +0 -2
  219. package/styles/_layout-utils.scss +0 -3
  220. package/styles/_link.scss +4 -18
  221. package/styles/_overlay-motion.scss +15 -38
  222. package/styles/_page-grid.scss +4 -29
  223. package/styles/_press.scss +5 -18
  224. package/styles/_reset.scss +1 -14
  225. package/styles/_scrollbar.scss +0 -2
  226. package/styles/_skeleton-shimmer.scss +3 -14
  227. package/styles/_status.scss +5 -13
  228. package/styles/_surface-motion.scss +7 -34
  229. package/styles/_table-controls.scss +3 -6
  230. package/styles/_text-clip.scss +2 -6
  231. package/styles/_theme-activation.scss +7 -20
  232. package/styles/_toast-overlay.scss +2 -6
  233. package/styles/_tokens-charts.scss +31 -90
  234. package/styles/_tokens.scss +111 -156
  235. package/styles/_typography.scss +6 -13
  236. package/styles/_visually-hidden.scss +2 -3
  237. package/styles/ds.scss +2 -10
  238. package/themes/_base-palette.scss +12 -35
  239. package/themes/_semantic.scss +29 -98
  240. package/themes/dark/_palette.scss +15 -29
  241. package/themes/dark/_theme.scss +14 -32
  242. package/themes/light/_palette.scss +2 -17
  243. package/themes/light/_theme.scss +1 -7
  244. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  245. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  246. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  247. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  248. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  249. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  250. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  251. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  252. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  253. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  254. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  255. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  256. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  257. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  258. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  259. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  260. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  261. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  262. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  263. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
  264. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
  265. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  266. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  267. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
  268. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  269. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  270. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  271. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  272. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  273. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  274. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  275. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  276. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  277. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  278. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
  279. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  280. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  281. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  282. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
  283. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  284. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  285. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  286. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  287. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  288. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  289. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  290. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  291. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  292. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  293. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  294. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  295. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  296. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  297. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
  298. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  299. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  300. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  301. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  302. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  303. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  304. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  305. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
  306. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  307. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  308. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  309. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  310. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  311. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  312. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  313. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  314. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  315. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  316. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  317. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  318. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  319. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  320. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  321. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  322. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  323. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  324. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  325. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  326. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
  327. package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
  328. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -260
  329. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  330. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  331. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
@@ -22,17 +22,13 @@ import { MenuComponent, MenuItemComponent, MenuDividerComponent } from '@ids-gro
22
22
  * </ds-table>
23
23
  * ```
24
24
  *
25
- * `[dsCellTemplateOf]` exists only to TYPE the template: bound to the same rows the
26
- * table gets, it makes `let-row` a `T` under strict templates, so a typo in a field
27
- * name is a compile error. Left off, `row` is `unknown` and a typed helper on the
28
- * host narrows it, as before.
25
+ * `[dsCellTemplateOf]` only types the template: bound to the table's rows, `let-row` is a `T`.
26
+ * Left off, `row` is `unknown`.
29
27
  */
30
28
  class CellTemplateDirective {
31
- /** The `key` of the column this template replaces, matched against the table's
32
- * `columns`. A key no column declares renders nothing and warns nowhere. */
29
+ /** The `key` of the column this template replaces. An undeclared key renders nothing, silently. */
33
30
  dsCellTemplate = input.required(...(ngDevMode ? [{ debugName: "dsCellTemplate" }] : /* istanbul ignore next */ []));
34
- /** The table's rows, bound to type `let-row`. Never read at runtime - the table
35
- * hands the row out itself. */
31
+ /** The table's rows, bound to type `let-row`; never read at runtime. */
36
32
  dsCellTemplateOf = input(null, ...(ngDevMode ? [{ debugName: "dsCellTemplateOf" }] : /* istanbul ignore next */ []));
37
33
  template = inject((TemplateRef));
38
34
  static ngTemplateContextGuard(_directive, _context) {
@@ -50,9 +46,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
50
46
  }], propDecorators: { dsCellTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsCellTemplate", required: true }] }], dsCellTemplateOf: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsCellTemplateOf", required: false }] }] } });
51
47
 
52
48
  /**
53
- * Projects a custom filter into a `ds-table` header popover, for a criterion the
54
- * built-in checklist cannot express: a date range, a numeric threshold, an async
55
- * option list.
49
+ * Projects a custom filter into a `ds-table` header popover, for a criterion the built-in
50
+ * checklist cannot express.
56
51
  *
57
52
  * ```html
58
53
  * <ds-table [data]="rows" [columns]="cols">
@@ -67,18 +62,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
67
62
  * </ds-table>
68
63
  * ```
69
64
  *
70
- * The table still owns the header button, the popover and the active-filter
71
- * styling — only the panel's contents change. It cannot know whether YOUR
72
- * criterion is set, though, so `active` is how the highlight gets told; without
73
- * it a custom filter renders but the header never marks itself filtered.
65
+ * The table cannot know whether YOUR criterion is set: without `active` the header never marks
66
+ * itself filtered.
74
67
  *
75
68
  * The column is typed `unknown`; narrow it with a typed helper on the host.
76
69
  */
77
70
  class HeaderFilterDirective {
78
71
  /** Key of the column this filter belongs to. */
79
72
  dsHeaderFilter = input.required(...(ngDevMode ? [{ debugName: "dsHeaderFilter" }] : /* istanbul ignore next */ []));
80
- /** Whether YOUR criterion is currently set, which drives the header's
81
- * active-filter styling. */
73
+ /** Whether YOUR criterion is set; drives the header's active-filter styling. */
82
74
  active = input(false, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
83
75
  template = inject((TemplateRef));
84
76
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HeaderFilterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -95,24 +87,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
95
87
  /**
96
88
  * The seam an opt-in table feature writes into, so the table never names the feature.
97
89
  *
98
- * The ablation that priced this split (`docs/basic-advanced-split-audit.md` §9) kept hitting the
99
- * same shape: the table owns a derived value and a feature wants to contribute to it —
100
- * `visibleColumns` is the chain the column picker writes to, `filteredData` folds the set filters
101
- * into the substring search, the live region folds in the export state. Moving methods out one at a
102
- * time cannot express that; a registry of contributions can.
103
- *
104
- * @internal Not API. Provided by `ds-table` on itself, so a directive on the same element injects
105
- * the instance it belongs to and two tables on one screen stay independent.
90
+ * @internal Not API. Provided by `ds-table` on itself, so two tables on one screen stay
91
+ * independent.
106
92
  */
107
93
  class DsTableLayout {
108
94
  columnStages = signal([], ...(ngDevMode ? [{ debugName: "columnStages" }] : /* istanbul ignore next */ []));
109
95
  rowStages = signal([], ...(ngDevMode ? [{ debugName: "rowStages" }] : /* istanbul ignore next */ []));
110
96
  statusFragments = signal([], ...(ngDevMode ? [{ debugName: "statusFragments" }] : /* istanbul ignore next */ []));
111
- /** Registered once, at the contributing directive's construction — never per change
112
- * detection. A stage may read signals of its own: the fold runs inside the table's
113
- * `computed`, so whatever the stage touches is tracked by that computed rather than by
114
- * this service, which is what lets a feature stay reactive without the table knowing it
115
- * exists. */
97
+ /** Register once, at construction. The fold runs in the table's `computed`, so signals a stage reads are tracked. */
116
98
  addColumnStage(stage) {
117
99
  this.columnStages.update((stages) => [...stages, stage]);
118
100
  }
@@ -120,9 +102,7 @@ class DsTableLayout {
120
102
  this.rowStages.update((stages) => [...stages, stage]);
121
103
  }
122
104
  utilityColumnWanted = signal(false, ...(ngDevMode ? [{ debugName: "utilityColumnWanted" }] : /* istanbul ignore next */ []));
123
- /** The utility column carries the row-action kebab and the picker trigger. The table knows
124
- * about the first and must be told about the second, or the cell it anchors into is never
125
- * rendered and the feature has nowhere to go. */
105
+ /** Without it the utility cell a picker trigger anchors into is never rendered. */
126
106
  requestUtilityColumn() {
127
107
  this.utilityColumnWanted.set(true);
128
108
  }
@@ -142,15 +122,12 @@ class DsTableLayout {
142
122
  }
143
123
  }
144
124
  rowTemplate = signal(null, ...(ngDevMode ? [{ debugName: "rowTemplate" }] : /* istanbul ignore next */ []));
145
- /** A per-column control in the column panel, for a feature the panel must not name - resize
146
- * puts its width buttons there. */
147
125
  registerPanelRowTemplate(template) {
148
126
  this.rowTemplate.set(template);
149
127
  }
150
128
  panelRowTemplate() {
151
129
  return this.rowTemplate();
152
130
  }
153
- /** A line for the live region, folded in ahead of the table's own events. */
154
131
  addStatusFragment(fragment) {
155
132
  this.statusFragments.update((fragments) => [...fragments, fragment]);
156
133
  }
@@ -160,7 +137,6 @@ class DsTableLayout {
160
137
  foldRows(rows) {
161
138
  return this.rowStages().reduce((carried, stage) => stage(carried), rows);
162
139
  }
163
- /** Empty when nothing contributes, so the table's own message is unchanged. */
164
140
  status() {
165
141
  return this.statusFragments()
166
142
  .map((fragment) => fragment())
@@ -169,8 +145,7 @@ class DsTableLayout {
169
145
  }
170
146
  published = null;
171
147
  exportContribution = signal(null, ...(ngDevMode ? [{ debugName: "exportContribution" }] : /* istanbul ignore next */ []));
172
- /** Called by the table itself, before any directive can ask for it: a directive on the same
173
- * element is constructed after the component that provides this service. */
148
+ /** Called by the table before any directive asks: a directive on the same element is constructed after the component. */
174
149
  publish(view) {
175
150
  this.published = view;
176
151
  }
@@ -180,17 +155,13 @@ class DsTableLayout {
180
155
  }
181
156
  return this.published;
182
157
  }
183
- /** The table keeps `runExport()` and `exporting()` as public API, because their docblocks
184
- * promise a button outside the table can drive them. The implementation is the feature's, so
185
- * the table asks here and can tell the difference between "no export directive" and "nothing
186
- * to export" — which is the one silent failure this whole shape is prone to. */
187
158
  setExport(contribution) {
188
159
  this.exportContribution.set(contribution);
189
160
  }
190
161
  runExport() {
191
162
  return this.exportContribution()?.run() ?? null;
192
163
  }
193
- /** True when it ran, so the caller can tell "no feature" from "nothing to export". */
164
+ /** False when no export feature is present. */
194
165
  exportCsv(filename, rows) {
195
166
  const contribution = this.exportContribution();
196
167
  contribution?.csv(filename, rows);
@@ -203,7 +174,6 @@ class DsTableLayout {
203
174
  setResize(contribution) {
204
175
  this.resizeContribution.set(contribution);
205
176
  }
206
- /** Null when no resize feature is present, which is what the header's `@if` reads. */
207
177
  resize() {
208
178
  return this.resizeContribution();
209
179
  }
@@ -215,18 +185,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
215
185
  }] });
216
186
 
217
187
  const NUMERIC = /^-?\d+(\.\d+)?$/;
218
- // Assumed viewport until the scroller has been measured. Tall enough to fill a
219
- // laptop screen, so the first paint is not visibly short, and nowhere near the
220
- // row count a virtualized table is reached for.
221
188
  const VIRTUAL_FALLBACK_HEIGHT = 720;
222
- // Extra rows each side of the viewport, so a flick shows no blank gap.
223
189
  const VIRTUAL_OVERSCAN = 6;
224
- // Documented on `TableColumn.truncate`, which is where a consumer reads it.
225
190
  const DEFAULT_CLIP_WIDTH_PX = 240;
226
- /** Rendered values that read as "no data", matched case-insensitively. */
227
191
  const BLANK_CELL = new Set(['', '—', '-', '–', 'n/a', 'never', 'none']);
228
- /** Normalises "no data" to a single `null`, so the comparator has one blank
229
- * case to test and TypeScript narrows the rest without a cast. */
230
192
  function sortableOf(value) {
231
193
  if (value === null || value === undefined) {
232
194
  return null;
@@ -236,8 +198,7 @@ function sortableOf(value) {
236
198
  }
237
199
  return value;
238
200
  }
239
- /** Both sides are known non-blank here. `numeric: true` keeps "item 10" after
240
- * "item 9" instead of before it. */
201
+ /** Both sides are known non-blank here. */
241
202
  function compareSortValues(first, second) {
242
203
  if (first instanceof Date && second instanceof Date) {
243
204
  return first.getTime() - second.getTime();
@@ -260,31 +221,21 @@ function compareSortValues(first, second) {
260
221
  class TableComponent {
261
222
  /** Rows to render. */
262
223
  data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
263
- /** Row identity used for tracking, selection, expansion and the active-row
264
- * highlight. Defaults to `row.id`; pass an accessor for display-only data
265
- * with no natural key (`[rowId]="row => row.channel + row.sentAt"`), which
266
- * beats mapping synthetic ids into the data just to satisfy the table. */
224
+ /** Row identity for tracking, selection, expansion and the active-row highlight. Defaults to
225
+ * `row.id`; pass an accessor (`[rowId]="row => row.channel + row.sentAt"`) for data with no key. */
267
226
  rowId = input(null, ...(ngDevMode ? [{ debugName: "rowId" }] : /* istanbul ignore next */ []));
268
227
  /** Column definitions driving headers, cells and sorting. */
269
228
  columns = input.required(...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
270
229
  /** Adds a checkbox column for row/select-all selection. */
271
230
  selectable = input(false, { ...(ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
272
- /** Opt-in outer border + radius. Off by default so tables flush inside a
273
- * `<ds-card padding="none">` don't double-border.
274
- * Unset falls back to `DS_CONFIG.table.bordered`, then `false`. */
231
+ /** Opt-in outer border + radius, off so tables flush in a `<ds-card padding="none">` don't
232
+ * double-border. Unset falls back to `DS_CONFIG.table.bordered`, then `false`. */
275
233
  bordered = input(null, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
276
- /** false — no loading state.
277
- * `true` — the table picks: skeleton rows while it has nothing to show, overlay
278
- * once rows are on screen. Prefer it; the right choice is a function of the row
279
- * count, which only the table holds.
280
- * 'skeleton' — first-load placeholder; rows are replaced with shimmer rows.
281
- * 'overlay' — re-fetch indicator; existing rows stay visible behind
282
- * a translucent overlay with a centred spinner. Pin either one only to
283
- * override the rule deliberately. */
234
+ /** `false`: no loading state.
235
+ * `true`: the table picks, skeleton rows while it has nothing to show, overlay once rows are
236
+ * on screen. Prefer it.
237
+ * `'skeleton'`: first-load shimmer rows. `'overlay'`: re-fetch spinner over the existing rows. */
284
238
  loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
285
- /** The mode actually rendered. Skeletons replace what the reader is looking at and
286
- * an overlay on an empty card says nothing, so `true` resolves per state rather
287
- * than picking a favourite. */
288
239
  loadingMode = computed(() => {
289
240
  const loading = this.loading();
290
241
  if (loading === false) {
@@ -297,97 +248,67 @@ class TableComponent {
297
248
  }, ...(ngDevMode ? [{ debugName: "loadingMode" }] : /* istanbul ignore next */ []));
298
249
  /** Keeps the header row pinned while the body scrolls. */
299
250
  stickyHeader = input(true, { ...(ngDevMode ? { debugName: "stickyHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
300
- /** Caps the scroll body height (any CSS length, e.g. `'320px'`) and scrolls it
301
- * vertically — pair with `stickyHeader` for a self-contained scroll region.
302
- * `null` (default) lets the table grow to its content. */
251
+ /** Caps the scroll body height (any CSS length) and scrolls it vertically; pair with
252
+ * `stickyHeader`. `null` (default) grows to content. */
303
253
  maxHeight = input(null, ...(ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []));
304
- /** Row density — `'compact'` tightens cell padding for spreadsheet-dense lists. */
254
+ /** `'compact'` tightens cell padding. */
305
255
  density = input('default', ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
306
- /** Tints odd rows for easier row-tracking across wide tables. */
256
+ /** Tints odd rows. */
307
257
  zebra = input(false, { ...(ngDevMode ? { debugName: "zebra" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
308
- /** Animate the body height when the row set changes (page/filter) instead of
309
- * snapping. Opt-in; instant under reduced-motion (the DS zeroes the token). */
258
+ /** Animate the body height when the row set changes. Instant under reduced motion. */
310
259
  animateHeight = input(false, { ...(ngDevMode ? { debugName: "animateHeight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
311
260
  /** Two-way set of currently selected row ids. */
312
261
  selectedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "selectedIds" }] : /* istanbul ignore next */ []));
313
- /** Column key currently sorted by; `null` when unsorted. Two-way bindable
314
- * (`[(sortKey)]`) or one-way from your own state with `(sortChange)`. */
262
+ /** Column key currently sorted by; `null` when unsorted. Bind `[(sortKey)]` or use `(sortChange)`. */
315
263
  sortKey = input(null, ...(ngDevMode ? [{ debugName: "sortKey" }] : /* istanbul ignore next */ []));
316
- /** Emitted for `[(sortKey)]`. `sortChange` carries the same click with both
317
- * halves at once, which is usually the one to listen to. */
264
+ /** Emitted for `[(sortKey)]`. `sortChange` carries both halves at once. */
318
265
  sortKeyChange = output();
319
266
  /** Sort direction for `sortKey`. */
320
267
  sortDirection = input(null, ...(ngDevMode ? [{ debugName: "sortDirection" }] : /* istanbul ignore next */ []));
321
268
  /** Emitted for `[(sortDirection)]`. */
322
269
  sortDirectionChange = output();
323
- /**
324
- * What the header marks, and what a client sort reads.
325
- *
326
- * `linkedSignal` over BOTH inputs, not a `model`: Angular writes an input only
327
- * when the bound expression changed, diffing against the value IT last wrote, and
328
- * an internal `.set()` never updates that slot. Seeding from both means a host
329
- * answering with its own default re-seeds the pair even when one half of that
330
- * default equals what it last bound. A host that binds neither never re-seeds, so
331
- * the optimistic state survives.
332
- */
270
+ // A `linkedSignal`, not a `model`: Angular diffs an input against the value IT last wrote and an
271
+ // internal `.set()` never updates that slot, so a host answering with its own default must
272
+ // re-seed the pair. A host that binds neither never re-seeds, so the optimistic state survives.
333
273
  sortState = linkedSignal(() => ({ key: this.sortKey(), dir: this.sortDirection() }), ...(ngDevMode ? [{ debugName: "sortState" }] : /* istanbul ignore next */ []));
334
274
  activeSortKey = computed(() => this.sortState().key, ...(ngDevMode ? [{ debugName: "activeSortKey" }] : /* istanbul ignore next */ []));
335
275
  activeSortDir = computed(() => this.sortState().dir, ...(ngDevMode ? [{ debugName: "activeSortDir" }] : /* istanbul ignore next */ []));
336
- /** Sort states a column cycles through on click. Default includes null
337
- * (unsorted); pass ['asc','desc'] to forbid the unsorted state (e.g.
338
- * server-paged lists). */
276
+ /** Sort states a column cycles through on click. Pass `['asc','desc']` to forbid unsorted. */
339
277
  sortingOrder = input(['asc', 'desc', null], ...(ngDevMode ? [{ debugName: "sortingOrder" }] : /* istanbul ignore next */ []));
340
- /**
341
- * Wording for the sort announcement, so it can be translated. Receives the
342
- * column's label and the new direction; return an empty string to say nothing.
343
- * Unset falls back to `DS_INTL.table.sorted`.
344
- */
278
+ /** Wording for the sort announcement: receives the column label and direction; return `''` to
279
+ * say nothing. Unset falls back to `DS_INTL.table.sorted`. */
345
280
  sortAnnouncement = input(null, ...(ngDevMode ? [{ debugName: "sortAnnouncement" }] : /* istanbul ignore next */ []));
346
281
  sortAnnouncementResolved = computed(() => this.sortAnnouncement() ?? this.intl().table.sorted, ...(ngDevMode ? [{ debugName: "sortAnnouncementResolved" }] : /* istanbul ignore next */ []));
347
- /**
348
- * Wording for the row-range announcement, so it can be translated. Receives
349
- * the 1-based first and last row on screen and the total. A paged table with
350
- * no rows announces its empty state's text instead, and calls this with
351
- * `(0, 0, 0)` only when that state has none; return an empty string to say
352
- * nothing. Unset falls back to `DS_INTL.pagination.range`.
353
- */
282
+ /** Wording for the row-range announcement: receives the 1-based first and last row on screen and
283
+ * the total; return `''` to say nothing. A paged table with no rows announces its empty state's
284
+ * text instead, calling this with `(0, 0, 0)` only when that state has none. Unset falls back
285
+ * to `DS_INTL.pagination.range`. */
354
286
  rangeAnnouncement = input(null, ...(ngDevMode ? [{ debugName: "rangeAnnouncement" }] : /* istanbul ignore next */ []));
355
287
  rangeAnnouncementResolved = computed(() => this.rangeAnnouncement() ?? this.intl().pagination.range, ...(ngDevMode ? [{ debugName: "rangeAnnouncementResolved" }] : /* istanbul ignore next */ []));
356
288
  /** Number of shimmer rows rendered while `loading` is `'skeleton'`. */
357
289
  skeletonRows = input(5, ...(ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []));
358
- /** Accessible name for the table (rendered as a visually-hidden caption).
359
- * Without it, screen-reader users get an unlabelled table. */
290
+ /** Accessible name, rendered as a visually-hidden caption. */
360
291
  caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
361
- /** When true, each row becomes a keyboard-operable control (tabindex,
362
- * Enter/Space → rowClicked) with an accessible name from the first
363
- * column. Off by default so non-navigating tables don't advertise a false
364
- * click affordance. Also the gate for the hover/pressed row tints. */
292
+ /** Each row becomes a keyboard-operable control (Enter/Space emit `rowClicked`) named from the
293
+ * first column. Also gates the hover/pressed row tints. */
365
294
  rowInteractive = input(false, { ...(ngDevMode ? { debugName: "rowInteractive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
366
- /** Id of the row rendered as current (highlight + `aria-current`) — e.g. the
367
- * row whose detail drawer or side panel is open. `null` — none. */
295
+ /** Id of the row rendered as current (highlight + `aria-current`), e.g. the one whose detail
296
+ * panel is open. `null`: none. */
368
297
  activeRowId = input(null, ...(ngDevMode ? [{ debugName: "activeRowId" }] : /* istanbul ignore next */ []));
369
- /** Client-side row filter — case-insensitive substring match against cell
370
- * text. Columns with `filterable: true` restrict the match set (none
371
- * marked — every column matches, hidden ones included). '' — no filtering. */
298
+ /** Client-side substring filter (case-insensitive) on cell text. `filterable` columns restrict
299
+ * the match; with none marked every column matches, hidden ones included. */
372
300
  filterQuery = input('', ...(ngDevMode ? [{ debugName: "filterQuery" }] : /* istanbul ignore next */ []));
373
- /** Two-way per-column set-filters: column key → the still-checked values.
374
- * A column absent from the map (or with every value checked) is unfiltered. */
301
+ /** Two-way per-column set-filters: column key to the still-checked values. Absent or full: unfiltered. */
375
302
  columnFilters = model(new Map(), ...(ngDevMode ? [{ debugName: "columnFilters" }] : /* istanbul ignore next */ []));
376
- /** Round-trip whatever the column features persist (order, widths, hidden keys) through
377
- * `localStorage`, so a reader's column layout survives a reload. Needs
378
- * `storageKey` — without one there is nothing to key a screen by, and two
379
- * tables would overwrite each other. Off by default. */
303
+ /** Persist the column layout (order, widths, hidden keys) in `localStorage`. Needs `storageKey`. */
380
304
  persistLayout = input(false, { ...(ngDevMode ? { debugName: "persistLayout" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
381
- /** Screen id the persisted layout is stored under. Pick something stable per
382
- * table, not per route instance. */
305
+ /** Stable per-table id the persisted layout is stored under. */
383
306
  storageKey = input('', ...(ngDevMode ? [{ debugName: "storageKey" }] : /* istanbul ignore next */ []));
384
- /** True while an export is in flight. Public so a button OUTSIDE the table can show the same
385
- * state as the built-in one. `false` when no export directive is present. */
307
+ /** True while an export is in flight; `false` without an export directive. Public for buttons outside the table. */
386
308
  exporting = computed(() => this.layout.exporting(), ...(ngDevMode ? [{ debugName: "exporting" }] : /* istanbul ignore next */ []));
387
- /** Keeps the horizontal scrollbar reachable on tall tables: the scroll
388
- * container's native bar is hidden and a proxy stuck to the bottom of the
389
- * nearest scroll ancestor mirrors it both ways. Off by default. Unset falls
390
- * back to `DS_CONFIG.table.stickyScrollbar`, then `false`. */
309
+ /** Keeps the horizontal scrollbar reachable on tall tables: the native bar is hidden and a proxy
310
+ * stuck to the bottom of the nearest scroll ancestor mirrors it. Unset falls back to
311
+ * `DS_CONFIG.table.stickyScrollbar`, then `false`. */
391
312
  stickyScrollbar = input(null, { ...(ngDevMode ? { debugName: "stickyScrollbar" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
392
313
  /** Rows per page. `null` (default) disables pagination — all rows render. */
393
314
  pageSize = model(null, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
@@ -395,131 +316,87 @@ class TableComponent {
395
316
  page = model(1, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
396
317
  /** Selectable page-size choices shown in the pagination control. */
397
318
  pageSizeOptions = input([10, 25, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
398
- /** Shows the page-size picker in the footer pager. Set false for a table whose
399
- * page size is fixed — the standalone `ds-pagination` has always taken this. */
319
+ /** Shows the page-size picker in the footer pager. */
400
320
  showPageSize = input(true, { ...(ngDevMode ? { debugName: "showPageSize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
401
321
  /** Shows the "N of M" range label in the footer pager. */
402
322
  showLabel = input(true, { ...(ngDevMode ? { debugName: "showLabel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
403
- /** Control height of the footer pager's buttons and picker. Unset falls back to
404
- * `DS_CONFIG.pagination.size`, then `DS_CONFIG.control.size`, then `'sm'`. */
323
+ /** Control height of the footer pager. Unset falls back to `DS_CONFIG.pagination.size`, then
324
+ * `DS_CONFIG.control.size`, then `'sm'`. */
405
325
  paginationSize = input(null, ...(ngDevMode ? [{ debugName: "paginationSize" }] : /* istanbul ignore next */ []));
406
- /** `'spread'` gives the footer pager the table's full width, label at one edge and controls
407
- * at the other. Unset falls back to `DS_CONFIG.pagination.layout`, then `'grouped'`. */
326
+ /** `'spread'` stretches the footer pager to the table's full width. Unset falls back to
327
+ * `DS_CONFIG.pagination.layout`, then `'grouped'`. */
408
328
  paginationLayout = input(null, ...(ngDevMode ? [{ debugName: "paginationLayout" }] : /* istanbul ignore next */ []));
409
- /** Server-side total row count. `null` (default) = client paging: the table
410
- * slices `data()` itself and the pager counts the rows in hand. When set, the
411
- * host has already sliced to one page — the pager uses this count and the
412
- * table renders `data()` as-is (no internal slice). */
329
+ /** Server-side total row count. `null` (default): client paging, the table slices `data()`.
330
+ * When set, the host has sliced to one page and `data()` renders as-is. */
413
331
  total = input(null, ...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
414
- /** Scroll the table into view on a page change (opt-in) — keeps a bottom
415
- * pager from leaving the viewport on the previous page's last rows. */
332
+ /** Scroll the table into view on a page change. */
416
333
  scrollToTopOnPageChange = input(false, { ...(ngDevMode ? { debugName: "scrollToTopOnPageChange" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
417
- /** Who sorts — see `TableSortMode`. Unset resolves to `'server'`: the table
418
- * emits `(sortChange)` and reorders nothing, which is what a paged table
419
- * needs. Declare `'client'` when the table holds every row, or `'none'` to
420
- * drop the affordance entirely. */
334
+ /** Who sorts, see `TableSortMode`. Unset resolves to `'server'`: the table emits `(sortChange)`
335
+ * and reorders nothing. */
421
336
  sortMode = input(null, ...(ngDevMode ? [{ debugName: "sortMode" }] : /* istanbul ignore next */ []));
422
- /** Who filters — see `TableFilterMode`. Unset resolves to `'server'`: the
423
- * table tracks the selection in `columnFilters` for the host to turn into a
424
- * request, and runs no local pass. Declare `'client'` when the table holds
425
- * every row and should filter them itself. */
337
+ /** Who filters, see `TableFilterMode`. Unset resolves to `'server'`: the table tracks
338
+ * `columnFilters` and runs no local pass. */
426
339
  filterMode = input(null, ...(ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []));
427
- /**
428
- * The full value domain per column key, for a header filter the table cannot
429
- * derive itself. Without it the checklist is built from the rows in hand,
430
- * which on a server-paged table offers only the values that happen to be on
431
- * the current page.
432
- */
340
+ /** Full value domain per column key for a header filter the table cannot derive; without it the
341
+ * checklist offers only the values on the current page. */
433
342
  columnFilterOptions = input(new Map(), ...(ngDevMode ? [{ debugName: "columnFilterOptions" }] : /* istanbul ignore next */ []));
434
343
  filterModeResolved = computed(() => this.filterMode() ?? 'server', ...(ngDevMode ? [{ debugName: "filterModeResolved" }] : /* istanbul ignore next */ []));
435
344
  sortModeResolved = computed(() => this.sortMode() ?? 'server', ...(ngDevMode ? [{ debugName: "sortModeResolved" }] : /* istanbul ignore next */ []));
436
345
  borderedResolved = resolveWithConfig(this.bordered, (config) => config.table?.bordered, false);
437
346
  stickyScrollbarResolved = resolveWithConfig(this.stickyScrollbar, (config) => config.table?.stickyScrollbar, false);
438
- /**
439
- * Where the sticky horizontal scrollbar comes to rest, as any CSS length.
440
- *
441
- * Unset, the table measures its scroll container's bottom padding and cancels it, so the bar
442
- * sits on the edge the reader can see. Set it for a scrollport whose reachable edge is not its
443
- * padding edge. Falls back to `DS_CONFIG.table.stickyScrollbarOffset`;
444
- * `--ds-table-sticky-scrollbar-offset` still wins over both, for a rule that has to reach one
445
- * table from a stylesheet.
446
- */
347
+ /** Where the sticky horizontal scrollbar rests, as a CSS length. Unset, the table cancels its
348
+ * scroll container's bottom padding. Falls back to `DS_CONFIG.table.stickyScrollbarOffset`;
349
+ * `--ds-table-sticky-scrollbar-offset` wins over both. */
447
350
  stickyScrollbarOffset = input(null, ...(ngDevMode ? [{ debugName: "stickyScrollbarOffset" }] : /* istanbul ignore next */ []));
448
351
  stickyScrollbarOffsetResolved = resolveWithConfig(this.stickyScrollbarOffset, (config) => config.table?.stickyScrollbarOffset, null);
449
352
  /** Pin the first data column (and the select column) on horizontal scroll. */
450
353
  stickyFirstColumn = input(false, { ...(ngDevMode ? { debugName: "stickyFirstColumn" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
451
- /**
452
- * Render only the rows in view, padding the rest with two spacer rows. Opt-in,
453
- * and it needs `maxHeight` — without a bounded scroller there is no viewport to
454
- * window against, so nothing is virtualized (dev-warned).
455
- *
456
- * Every row must be the same height, which is `virtualRowSize`: the arithmetic
457
- * that decides what is in view has no other way to know where a row starts. So
458
- * virtual mode forces `table-layout: fixed` and single-line cells, and the
459
- * expansion panel is suppressed — a row that can grow breaks the maths.
460
- */
354
+ /** Render only the rows in view, padding the rest with spacer rows. Needs `maxHeight` (dev-warned,
355
+ * nothing virtualizes without a bounded scroller). Every row must be `virtualRowSize` tall, so
356
+ * virtual mode forces `table-layout: fixed`, single-line cells and no expansion panel. */
461
357
  virtualScroll = input(false, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
462
- /** Row height in px in virtual mode. Must match what the rows actually
463
- * measure, so it drives the CSS height rather than merely describing it. */
358
+ /** Row height in px in virtual mode. Drives the CSS height, so it must match the rendered rows. */
464
359
  virtualRowSize = input(44, ...(ngDevMode ? [{ debugName: "virtualRowSize" }] : /* istanbul ignore next */ []));
465
- /**
466
- * Fetch rows as they scroll into view instead of receiving them all.
467
- *
468
- * `data` becomes a SPARSE array `total` long: put each fetched row at its
469
- * absolute index and leave the rest empty. Every gap inside the window
470
- * renders a skeleton row, and `(lazyLoad)` asks for the range covering it.
471
- *
472
- * Needs `virtualScroll` — without a window there is nothing to load
473
- * lazily AGAINST — and `total`, which is what the scrollbar is sized from.
474
- */
360
+ /** Fetch rows as they scroll into view. `data` becomes a SPARSE array `total` long: put each
361
+ * fetched row at its absolute index; every gap in the window renders a skeleton row and
362
+ * `(lazyLoad)` asks for its range. Needs `virtualScroll` and `total`. */
475
363
  lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
476
- /** The range now on screen that `data` has gaps in — fetch it and write the
477
- * rows back at their absolute indices. Re-emits only when the range moves. */
364
+ /** The on-screen range with gaps in `data`; write fetched rows back at their absolute indices.
365
+ * Re-emits only when the range moves. */
478
366
  lazyLoad = output();
479
367
  /** Fires with the row on click (or Enter/Space when `rowInteractive`). */
480
368
  rowClicked = output();
481
369
  /** Fires whenever sort key/direction changes, in every `sortMode` but `'none'`. */
482
370
  sortChange = output();
483
- /** Row-action menu items rendered as a trailing kebab (⋮) column.
484
- * Empty (default) — no column. Menu clicks never trigger `rowClicked`. */
371
+ /** Row-action items rendered as a trailing kebab column; empty: no column. Menu clicks never
372
+ * trigger `rowClicked`. */
485
373
  rowActions = input([], ...(ngDevMode ? [{ debugName: "rowActions" }] : /* istanbul ignore next */ []));
486
374
  /** Fires with the chosen action and its row when a kebab menu item is selected. */
487
375
  rowActionSelected = output();
488
376
  /** Fires when an `editable` cell is committed (Enter or blur) with the new value. */
489
377
  cellEdited = output();
490
- /** Cell templates supplied as an explicit map instead of (or in addition to)
491
- * projected `dsCellTemplate` directives. Lets a wrapper component collect
492
- * the directives itself and pass them down, since content projected through
493
- * a wrapper's `<ng-content>` is not seen by this component's content query.
494
- * Entries here override projected ones. */
378
+ /** Cell templates as an explicit map, for wrappers whose `<ng-content>` hides projected
379
+ * `dsCellTemplate` directives from this component's content query. Overrides projected ones. */
495
380
  cellTemplateMap = input({}, ...(ngDevMode ? [{ debugName: "cellTemplateMap" }] : /* istanbul ignore next */ []));
496
- /** Empty-state template, as an alternative to the `[empty]` content slot —
497
- * again for wrappers that can't rely on slot re-projection. */
381
+ /** Empty-state template, alternative to the `[empty]` slot for wrappers that cannot re-project. */
498
382
  emptyTemplate = input(null, ...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
499
- /** When true, each row renders a leading chevron button that toggles an
500
- * inline expansion panel below it. */
383
+ /** Each row renders a leading chevron that toggles an inline expansion panel. */
501
384
  expandableRows = input(false, { ...(ngDevMode ? { debugName: "expandableRows" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
502
385
  /** Two-way set of currently expanded row ids. */
503
386
  expandedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "expandedIds" }] : /* istanbul ignore next */ []));
504
- /** `'single'` collapses the open row when another expander is clicked.
505
- * Enforced on interaction only: a set seeded with several ids is left alone
506
- * (and warned about in dev) rather than silently rewritten under the host. */
387
+ /** `'single'` collapses the open row when another expands. Enforced on interaction only: a set
388
+ * seeded with several ids is left alone (dev-warned). */
507
389
  expandMode = input('multiple', ...(ngDevMode ? [{ debugName: "expandMode" }] : /* istanbul ignore next */ []));
508
- /** Renders an expand-all/collapse-all chevron in the expander column header,
509
- * page-scoped when paginating, like select-all. Suppressed under
510
- * `expandMode="single"`, which it would contradict. */
390
+ /** Expand-all/collapse-all chevron in the expander header, page-scoped when paginating. Suppressed
391
+ * under `expandMode="single"`. */
511
392
  expandAllToggle = input(false, { ...(ngDevMode ? { debugName: "expandAllToggle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
512
- /** Fires with the row when an expander opens it — including each row opened
513
- * by expand-all, so a host lazy-loading panel content sees every one. */
393
+ /** Fires with the row when an expander opens it, including each row opened by expand-all. */
514
394
  rowExpanded = output();
515
- /** Fires with the row when an expander closes it, the row auto-closed by
516
- * `expandMode="single"` included. It carries a row, so it cannot speak for an
517
- * id whose row is no longer in `data()` — under server-side paging that id is
518
- * cleared silently. `expandedIds` is the complete signal; this one is the
519
- * convenient one. */
395
+ /** Fires with the row when an expander closes it, including the row auto-closed by
396
+ * `expandMode="single"`. An id whose row left `data()` (server paging) is cleared silently, so
397
+ * `expandedIds` is the complete signal. */
520
398
  rowCollapsed = output();
521
- /** Template rendered inside an expanded row's panel.
522
- * Context: `$implicit` = row, `row` = row. */
399
+ /** Template rendered inside an expanded row's panel; `$implicit` and `row` are the row. */
523
400
  rowExpandTemplate = input(null, ...(ngDevMode ? [{ debugName: "rowExpandTemplate" }] : /* istanbul ignore next */ []));
524
401
  cellTemplateDirectives = contentChildren(CellTemplateDirective, ...(ngDevMode ? [{ debugName: "cellTemplateDirectives" }] : /* istanbul ignore next */ []));
525
402
  cellTemplates = computed(() => {
@@ -550,10 +427,8 @@ class TableComponent {
550
427
  }, ...(ngDevMode ? [{ debugName: "tableClasses" }] : /* istanbul ignore next */ []));
551
428
  isSkeletonLoading = computed(() => this.loadingMode() === 'skeleton', ...(ngDevMode ? [{ debugName: "isSkeletonLoading" }] : /* istanbul ignore next */ []));
552
429
  isOverlayLoading = computed(() => this.loadingMode() === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlayLoading" }] : /* istanbul ignore next */ []));
553
- /** The empty row is a CLAIM about the data — "there are none" — so it must not
554
- * appear while the table is still asking, in EITHER loading mode. `overlay` is
555
- * what a list uses on every read after the first, so suppressing only under
556
- * `skeleton` paints "No rows yet" under the spinner on a zero-row reload. */
430
+ /** Withheld in either loading mode: `overlay` is what a list uses on every read after the
431
+ * first, so suppressing only under `skeleton` paints "No rows yet" under the spinner. */
557
432
  showsEmptyRow = computed(() => this.loadingMode() === false && !this.filteredData().length, ...(ngDevMode ? [{ debugName: "showsEmptyRow" }] : /* istanbul ignore next */ []));
558
433
  showsLoadingSpace = computed(() => this.loadingMode() !== false &&
559
434
  this.loadingMode() !== 'skeleton' &&
@@ -561,14 +436,14 @@ class TableComponent {
561
436
  layout = inject(DsTableLayout);
562
437
  intl = inject(DS_INTL);
563
438
  emptyCell = viewChild('emptyCell', ...(ngDevMode ? [{ debugName: "emptyCell" }] : /* istanbul ignore next */ []));
564
- // null until the empty row has rendered, so the live region never speaks a fallback it is about to replace.
439
+ // null until the empty row has rendered, so the live region never speaks a fallback it replaces.
565
440
  emptyCellText = signal(null, ...(ngDevMode ? [{ debugName: "emptyCellText" }] : /* istanbul ignore next */ []));
566
441
  toolbarAnchor = viewChild('toolbarAnchor', { ...(ngDevMode ? { debugName: "toolbarAnchor" } : /* istanbul ignore next */ {}), read: ViewContainerRef });
567
442
  headerUtilityAnchor = viewChild('headerUtilityAnchor', { ...(ngDevMode ? { debugName: "headerUtilityAnchor" } : /* istanbul ignore next */ {}), read: ViewContainerRef });
568
443
  overlaysAnchor = viewChild('overlaysAnchor', { ...(ngDevMode ? { debugName: "overlaysAnchor" } : /* istanbul ignore next */ {}), read: ViewContainerRef });
569
444
  columnWidthControls = viewChild('columnWidthControls', ...(ngDevMode ? [{ debugName: "columnWidthControls" }] : /* istanbul ignore next */ []));
570
445
  visibleColumns = computed(() => this.layout.foldColumns(this.columns()), ...(ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []));
571
- /** `'content'` is not a pixel value — it is carried by a class instead, see `fitsContent`. */
446
+ /** `'content'` is not a pixel value; it is carried by a class, see `fitsContent`. */
572
447
  columnWidth(col) {
573
448
  const dragged = this.layout.resize()?.widthOverride(col.key);
574
449
  if (dragged !== undefined) {
@@ -584,9 +459,8 @@ class TableComponent {
584
459
  }
585
460
  hasUtilityColumn = computed(() => this.hasRowActions() || this.layout.wantsUtilityColumn(), ...(ngDevMode ? [{ debugName: "hasUtilityColumn" }] : /* istanbul ignore next */ []));
586
461
  columnFilterPopover = viewChild('columnFilterPopover', ...(ngDevMode ? [{ debugName: "columnFilterPopover" }] : /* istanbul ignore next */ []));
587
- // Gates the panel's EXISTENCE on configuration, never on the clicked column: a handler that
588
- // raises its own `@if` reads the viewChild back in the same synchronous line, before change
589
- // detection has created it, and loses the click that opened it.
462
+ // Gated on configuration, never on the clicked column: a handler that raises its own `@if`
463
+ // reads the viewChild back before change detection has created it and loses the click.
590
464
  hasAnyColumnFilter = computed(() => this.columns().some((col) => this.hasColumnFilter(col)), ...(ngDevMode ? [{ debugName: "hasAnyColumnFilter" }] : /* istanbul ignore next */ []));
591
465
  filterColumn = signal(null, ...(ngDevMode ? [{ debugName: "filterColumn" }] : /* istanbul ignore next */ []));
592
466
  filterSearch = signal('', ...(ngDevMode ? [{ debugName: "filterSearch" }] : /* istanbul ignore next */ []));
@@ -612,8 +486,7 @@ class TableComponent {
612
486
  (this.columnFilterPopover()?.opened() ?? false));
613
487
  }
614
488
  isColumnFiltered(col) {
615
- // A projected filter owns its own criterion, so only the host can say
616
- // whether it is set; the table still draws the highlight.
489
+ // A projected filter owns its criterion, so only the host can say whether it is set.
617
490
  const projected = this.headerFilterFor(col);
618
491
  if (projected) {
619
492
  return projected.active();
@@ -742,8 +615,6 @@ class TableComponent {
742
615
  cancelEdit() {
743
616
  this.editingCell.set(null);
744
617
  }
745
- /** Clip width for `truncate`. `'content'` has no clip width — the column is as
746
- * wide as its widest cell, so there is nothing to ellipsis against. */
747
618
  clipWidth(col) {
748
619
  return typeof col.width === 'number'
749
620
  ? col.width
@@ -753,9 +624,8 @@ class TableComponent {
753
624
  }
754
625
  filteredData = computed(() => {
755
626
  const query = this.filterQuery().trim().toLowerCase();
756
- // In 'server' mode the host has already filtered; running the set filters
757
- // again here would filter the filtered. `filterQuery` is deliberately left
758
- // alone — it is a separate input with its own client/server story.
627
+ // In 'server' mode the host has already filtered. `filterQuery` is a separate input and is
628
+ // deliberately left alone.
759
629
  const setFilters = this.filterModeResolved() === 'client'
760
630
  ? this.columnFilters()
761
631
  : new Map();
@@ -798,9 +668,7 @@ class TableComponent {
798
668
  return rows.slice().sort((a, b) => {
799
669
  const aValue = sortableOf(sortValue ? sortValue(a) : this.cellValue(a, column));
800
670
  const bValue = sortableOf(sortValue ? sortValue(b) : this.cellValue(b, column));
801
- // Blanks sink in BOTH directions, so `direction` is deliberately not
802
- // applied to this branch — a descending sort must not open with a screen
803
- // of empty rows.
671
+ // Blanks sink in both directions: `direction` is deliberately not applied here.
804
672
  if (aValue === null || bValue === null) {
805
673
  if (aValue === null && bValue === null) {
806
674
  return 0;
@@ -812,36 +680,27 @@ class TableComponent {
812
680
  }, ...(ngDevMode ? [{ debugName: "sortedData" }] : /* istanbul ignore next */ []));
813
681
  pagedData = computed(() => {
814
682
  const size = this.pageSize();
815
- // Server-side paging (`total` set): the host already sliced to one page.
816
683
  if (size === null || this.total() !== null) {
817
684
  return this.sortedData();
818
685
  }
819
686
  const start = (this.page() - 1) * size;
820
687
  return this.sortedData().slice(start, start + size);
821
688
  }, ...(ngDevMode ? [{ debugName: "pagedData" }] : /* istanbul ignore next */ []));
822
- /** Virtual mode windows this further; `rowSlots` is what the loop walks. */
823
689
  displayData = computed(() => this.pageSize() !== null ? this.pagedData() : this.sortedData(), ...(ngDevMode ? [{ debugName: "displayData" }] : /* istanbul ignore next */ []));
824
- /**
825
- * The single live-region line. Loading wins while it lasts — a sort
826
- * announcement over rows that are being replaced tells the reader about a
827
- * state they cannot inspect yet.
828
- *
829
- * `aria-live="polite"` does not announce a region's INITIAL content, so the
830
- * unsorted first render is silent; only real changes speak.
831
- */
690
+ // Loading wins while it lasts. `aria-live="polite"` does not announce a region's initial
691
+ // content, so the unsorted first render is silent; only real changes speak.
832
692
  statusMessage = computed(() => {
833
693
  if (this.loadingMode() !== false) {
834
694
  return this.intl().table.loading;
835
695
  }
836
- // A contributed line wins while it has one: an "Export failed" has to survive until the
837
- // reader moves on, and the feature that raised it is what clears it.
696
+ // A contributed line wins while it has one: "Export failed" must survive until the reader
697
+ // moves on.
838
698
  return this.layout.status() || this.eventMessages();
839
699
  }, ...(ngDevMode ? [{ debugName: "statusMessage" }] : /* istanbul ignore next */ []));
840
700
  eventMessages = computed(() => [this.sortMessage(), this.rangeMessage(), this.expansionMessage()]
841
701
  .filter(Boolean)
842
702
  .join('. '), ...(ngDevMode ? [{ debugName: "eventMessages" }] : /* istanbul ignore next */ []));
843
- /** Only from two rows up: a single expander announces itself through its own
844
- * `aria-expanded`, and repeating that here would say everything twice. */
703
+ /** Only from two rows up: a single expander announces itself through `aria-expanded`. */
845
704
  expansionMessage = computed(() => {
846
705
  const open = this.expandedIds();
847
706
  if (open.size < 2) {
@@ -878,9 +737,8 @@ class TableComponent {
878
737
  }, ...(ngDevMode ? [{ debugName: "rangeMessage" }] : /* istanbul ignore next */ []));
879
738
  virtualizing = computed(() => this.virtualScroll() && !!this.maxHeight(), ...(ngDevMode ? [{ debugName: "virtualizing" }] : /* istanbul ignore next */ []));
880
739
  virtualRowHeight = computed(() => `${this.virtualRowSize()}px`, ...(ngDevMode ? [{ debugName: "virtualRowHeight" }] : /* istanbul ignore next */ []));
881
- /** How many rows the scroller spans. Lazy counts the rows that EXIST, not the
882
- * ones that have arrived — otherwise the spacers shrink to the loaded slice
883
- * and the scrollbar lies about the length of the list. */
740
+ /** Lazy counts the rows that exist, not the ones that have arrived, or the scrollbar
741
+ * understates the list. */
884
742
  virtualCount = computed(() => this.lazy()
885
743
  ? (this.total() ?? this.displayData().length)
886
744
  : this.displayData().length, ...(ngDevMode ? [{ debugName: "virtualCount" }] : /* istanbul ignore next */ []));
@@ -901,14 +759,8 @@ class TableComponent {
901
759
  padBottom: Math.max(0, count - end) * rowSize,
902
760
  };
903
761
  }, ...(ngDevMode ? [{ debugName: "virtualWindow" }] : /* istanbul ignore next */ []));
904
- /**
905
- * What the row loop walks: each slot carries its ABSOLUTE index, and a `null`
906
- * row is a gap the host has not filled yet.
907
- *
908
- * Absolute rather than loop-relative because everything downstream needs it —
909
- * striping parity, the skeleton's width seed, and the range `(lazyLoad)` asks
910
- * for.
911
- */
762
+ /** What the row loop walks: a `null` row is a gap the host has not filled. The index is absolute
763
+ * because striping parity, the skeleton seed and the `(lazyLoad)` range need it. */
912
764
  rowSlots = computed(() => {
913
765
  const window = this.virtualWindow();
914
766
  const data = this.displayData();
@@ -920,9 +772,7 @@ class TableComponent {
920
772
  }
921
773
  return slots;
922
774
  }, ...(ngDevMode ? [{ debugName: "rowSlots" }] : /* istanbul ignore next */ []));
923
- /** Zebra striping cannot come from `:nth-child` while windowing — the parity
924
- * of a rendered row depends on its ABSOLUTE index, and the spacer rows are
925
- * children too. Matches `:nth-child(odd)`, which is 1-based. */
775
+ /** Parity from the absolute index; `:nth-child` cannot see past windowing. 1-based like `:nth-child(odd)`. */
926
776
  isStriped(absoluteIndex) {
927
777
  return !!this.virtualWindow() && absoluteIndex % 2 === 0;
928
778
  }
@@ -934,8 +784,7 @@ class TableComponent {
934
784
  const sel = this.selectedIds();
935
785
  return data.every((row) => sel.has(this.rowKey(row)));
936
786
  }, ...(ngDevMode ? [{ debugName: "allSelected" }] : /* istanbul ignore next */ []));
937
- // The header checkbox's indeterminate predicate: false when ALL of the page is selected.
938
- // Anything asking "is a selection live" wants `anySelected`.
787
+ // Header checkbox indeterminate predicate; `anySelected` answers "is a selection live".
939
788
  someSelected = computed(() => {
940
789
  const data = this.displayData();
941
790
  const sel = this.selectedIds();
@@ -985,7 +834,6 @@ class TableComponent {
985
834
  this.hostElement.nativeElement.style.setProperty('--_table-head-measured', `${head.getBoundingClientRect().height}px`);
986
835
  }
987
836
  hostElement = inject(ElementRef);
988
- // The scrollport a `position: sticky` offset inside this table resolves against.
989
837
  scrollAncestor() {
990
838
  for (let element = this.hostElement.nativeElement.parentElement; element; element = element.parentElement) {
991
839
  const overflowY = getComputedStyle(element).overflowY;
@@ -1001,19 +849,15 @@ class TableComponent {
1001
849
  viewportHeight = signal(0, ...(ngDevMode ? [{ debugName: "viewportHeight" }] : /* istanbul ignore next */ []));
1002
850
  lastLazyRequest = null;
1003
851
  constructor() {
1004
- // The width buttons the column panel renders are still declared in this template, because a
1005
- // directive has no view to declare an ng-template in — so the table hands the template over
1006
- // and the resize feature owns everything the buttons DO.
852
+ // A directive has no view for an ng-template, so the panel's width buttons are declared here.
1007
853
  effect(() => {
1008
854
  const template = this.columnWidthControls();
1009
855
  if (template) {
1010
856
  this.layout.registerPanelRowTemplate(template);
1011
857
  }
1012
858
  });
1013
- // Published here rather than from an init hook: a directive on the same element is
1014
- // constructed after this component, so by the time a feature asks, the view is here. The
1015
- // anchor goes over as a signal — a viewChild is undefined until the view exists, and a
1016
- // feature that renders a control of its own has to wait for it.
859
+ // Publishing here is early enough: a directive on the same element is constructed after this
860
+ // component. Anchors go over as signals: a viewChild is undefined until the view exists.
1017
861
  this.layout.publish({
1018
862
  visibleColumns: this.visibleColumns,
1019
863
  sortedRows: this.sortedData,
@@ -1026,15 +870,9 @@ class TableComponent {
1026
870
  ? this.headerUtilityAnchor
1027
871
  : this.overlaysAnchor,
1028
872
  });
1029
- // The scrim starts below the header, so it needs the header's height. Measured, not summed
1030
- // from padding and line-height: `vertical-align: middle` on the inline-flex label extends
1031
- // the line box past the strut by a font-metric amount no calc() can carry, and a sum is
1032
- // blind to a taller control in the header.
1033
- //
1034
- // After RENDER, or the read lands before layout and publishes 0px, which insets the scrim by
1035
- // nothing and covers the whole header. Twice: the observer catches a
1036
- // header that grows on a narrower column or a density change, and the second pass re-reads
1037
- // whenever the scrim is about to appear, so a load never depends on an observer having fired.
873
+ // The scrim starts below the header. Measured, not summed: `vertical-align: middle` on the inline-flex
874
+ // label adds a font-metric amount no calc() can carry. Read after render, or it publishes 0px; the
875
+ // second effect re-reads before the scrim appears, so a load never depends on the observer.
1038
876
  afterRenderEffect((onCleanup) => {
1039
877
  const head = this.tableHead()?.nativeElement;
1040
878
  if (!head || typeof ResizeObserver === 'undefined') {
@@ -1067,13 +905,10 @@ class TableComponent {
1067
905
  this.publishHeadHeight(head);
1068
906
  }
1069
907
  });
1070
- // One effect for both halves, because the restore CANNOT run in the
1071
- // constructor: input signals are not set yet there, so storageKey() is still
1072
- // '' and the restore silently no-ops. The first run with a usable key
1073
- // restores; every later run saves.
908
+ // Restore cannot run in the constructor: inputs are not set yet, so storageKey() is still ''
909
+ // and it would silently no-op. The first run with a usable key restores; later runs save.
1074
910
  effect(() => {
1075
911
  const key = this.layoutKey();
1076
- // Read every slice so the effect tracks them, whichever feature owns them.
1077
912
  const stored = Object.fromEntries(this.layout.persistedSlices().map((slice) => [slice.key, slice.read()]));
1078
913
  if (!key) {
1079
914
  return;
@@ -1114,9 +949,8 @@ class TableComponent {
1114
949
  resizeObserver.disconnect();
1115
950
  });
1116
951
  });
1117
- // Ask for the visible range whenever it has gaps. Keyed on the range itself,
1118
- // so scrolling within an already-requested window stays quiet and a request
1119
- // in flight is not repeated every frame — the host is free to answer slowly.
952
+ // Keyed on the range, so scrolling within an already-requested window stays quiet and a
953
+ // request in flight is not repeated while the host answers slowly.
1120
954
  effect(() => {
1121
955
  if (!this.lazy()) {
1122
956
  return;
@@ -1128,9 +962,8 @@ class TableComponent {
1128
962
  }
1129
963
  const first = gaps[0].index;
1130
964
  const rows = gaps[gaps.length - 1].index - first + 1;
1131
- // Contained, not equal: the viewport is measured after the first paint, so
1132
- // the window grows by an overscan or two right after opening and an
1133
- // exact-match guard would fetch the same rows twice.
965
+ // Contained, not equal: the viewport is measured after first paint, so the window grows
966
+ // by an overscan or two and an exact-match guard would fetch the same rows twice.
1134
967
  const covered = this.lastLazyRequest &&
1135
968
  first >= this.lastLazyRequest.first &&
1136
969
  first + rows <= this.lastLazyRequest.first + this.lastLazyRequest.rows;
@@ -1169,12 +1002,9 @@ class TableComponent {
1169
1002
  ? '[ds-table] virtualScroll with pageSize paginates a window of a page. Virtual scrolling is what pagination was for on a long list — pick one.'
1170
1003
  : null);
1171
1004
  }
1172
- // A sticky `bottom` resolves against the scrollport's CONTENT box, so anything this table
1173
- // sticks to the bottom comes to rest one padding-bottom above the edge the reader sees. Both
1174
- // the horizontal scrollbar proxy and the bulk-action bar subtract this; it is published on the
1175
- // HOST so every descendant inherits one measurement, and measured rather than taken from a
1176
- // token because the padding belongs to the consumer's scroll container and moves with a media
1177
- // query.
1005
+ // A sticky `bottom` resolves against the scrollport's content box, so anything stuck to the
1006
+ // bottom rests one padding-bottom above the visible edge; the scrollbar proxy and the bulk bar
1007
+ // subtract this. Measured, not a token: the padding can change with a media query.
1178
1008
  effect((onCleanup) => {
1179
1009
  const host = this.hostElement.nativeElement;
1180
1010
  const scroller = this.scrollAncestor();
@@ -1187,8 +1017,8 @@ class TableComponent {
1187
1017
  observer.observe(scroller);
1188
1018
  onCleanup(() => observer.disconnect());
1189
1019
  });
1190
- // Published as a custom property rather than bound on the proxy: the proxy is behind an
1191
- // `@if`, and the stylesheet must be able to out-rank it with --ds-table-sticky-scrollbar-offset.
1020
+ // A custom property, not a binding on the proxy: the proxy is behind an `@if`, and the
1021
+ // stylesheet must be able to out-rank it with --ds-table-sticky-scrollbar-offset.
1192
1022
  effect(() => {
1193
1023
  const host = this.hostElement.nativeElement;
1194
1024
  const resolved = this.stickyScrollbarOffsetResolved();
@@ -1198,8 +1028,7 @@ class TableComponent {
1198
1028
  }
1199
1029
  host.style.setProperty('--_table-sticky-scrollbar-offset', resolved);
1200
1030
  });
1201
- // Assigning an equal scrollLeft fires no scroll event, so the two mirrors
1202
- // can't loop.
1031
+ // Assigning an equal scrollLeft fires no scroll event, so the mirrors cannot loop.
1203
1032
  effect((onCleanup) => {
1204
1033
  const proxy = this.hscrollProxy()?.nativeElement;
1205
1034
  if (!proxy) {
@@ -1216,12 +1045,10 @@ class TableComponent {
1216
1045
  proxy.addEventListener('scroll', fromProxy, { passive: true });
1217
1046
  const measure = () => {
1218
1047
  this.hscrollContentWidth.set(wrap.scrollWidth);
1219
- // Both are rounded integers, so a fractional layout width makes an
1220
- // unscrollable wrap report one px more than it holds.
1048
+ // Both are rounded integers: a fractional width makes an unscrollable wrap report 1px more.
1221
1049
  this.hscrollNeeded.set(wrap.scrollWidth > wrap.clientWidth + 1);
1222
1050
  };
1223
- // The wrap's own box never changes with content — watch the table too
1224
- // (column toggles, data swaps change its width).
1051
+ // The wrap's own box never changes with content; watch the table too.
1225
1052
  const resizeObserver = new ResizeObserver(measure);
1226
1053
  resizeObserver.observe(wrap);
1227
1054
  const table = wrap.querySelector('table');
@@ -1235,9 +1062,9 @@ class TableComponent {
1235
1062
  resizeObserver.disconnect();
1236
1063
  });
1237
1064
  });
1238
- // Opt-in height tween. Observer fires pre-paint: freezing the old height
1239
- // here stops the jump being painted; disconnect during the anim so its own
1240
- // resizes don't re-trigger it; clip (not hidden) avoids a scroll container.
1065
+ // The observer fires pre-paint, so freezing the old height stops the jump being painted.
1066
+ // Disconnect during the animation so its own resizes do not re-trigger it; `clip`, not
1067
+ // `hidden`, avoids creating a scroll container.
1241
1068
  effect((onCleanup) => {
1242
1069
  if (!this.animateHeight()) {
1243
1070
  return;
@@ -1255,9 +1082,7 @@ class TableComponent {
1255
1082
  const widthChanged = nextWidth !== previousWidth;
1256
1083
  previousHeight = nextHeight;
1257
1084
  previousWidth = nextWidth;
1258
- // Only a height change at a stable width is a row-set swap; skip the
1259
- // first measure and width-driven reflows (window/column resize) so the
1260
- // tween doesn't chase a resize.
1085
+ // Only a height change at a stable width is a row-set swap, not a resize.
1261
1086
  if (fromHeight === null || widthChanged || nextHeight === fromHeight) {
1262
1087
  return;
1263
1088
  }
@@ -1293,9 +1118,7 @@ class TableComponent {
1293
1118
  observer.disconnect();
1294
1119
  });
1295
1120
  });
1296
- // Client-side paging only (with `total` set the host owns the clamp): when a
1297
- // filter shrinks the result set below the current page, pull `page` back to
1298
- // the last page that still has rows so the body never renders empty.
1121
+ // Client-side paging only (with `total` set the host owns the clamp).
1299
1122
  effect(() => {
1300
1123
  const size = this.pageSize();
1301
1124
  if (size === null || this.total() !== null) {
@@ -1338,8 +1161,8 @@ class TableComponent {
1338
1161
  const row = this.menuRow();
1339
1162
  return row !== null && !!action.disabled?.(row);
1340
1163
  }
1341
- /** Items that apply to `row`. Called from the trigger's own gate as well as the
1342
- * menu, so a row with nothing applicable shows no kebab instead of an empty one. */
1164
+ /** Called from the trigger's own gate as well as the menu, so a row with nothing applicable
1165
+ * shows no kebab. */
1343
1166
  actionsFor(row) {
1344
1167
  return this.rowActions().filter((action) => !action.hidden?.(row));
1345
1168
  }
@@ -1358,8 +1181,7 @@ class TableComponent {
1358
1181
  const row = this.menuRow();
1359
1182
  return row === null ? '' : label(row);
1360
1183
  }
1361
- /** Empty unless the item is actually disabled for this row: a reason on a live
1362
- * item would read as a caveat on something that works. */
1184
+ /** Empty unless the item is disabled for this row: a reason on a live item reads as a caveat. */
1363
1185
  actionReason(action) {
1364
1186
  const row = this.menuRow();
1365
1187
  if (row === null || !action.disabled?.(row)) {
@@ -1390,9 +1212,8 @@ class TableComponent {
1390
1212
  return;
1391
1213
  }
1392
1214
  if (this.expandMode() === 'single') {
1393
- // `data()` rather than `displayData()` so a row left open on another page
1394
- // is reported too — but an event carries a row, so an id whose row is not
1395
- // loaded at all is dropped without one. Documented on `rowCollapsed`.
1215
+ // `data()` rather than `displayData()` so a row left open on another page is reported too.
1216
+ // An id whose row is not loaded is dropped: see `rowCollapsed`.
1396
1217
  const closing = open.size > 0
1397
1218
  ? this.data().filter((other) => open.has(this.rowKey(other)))
1398
1219
  : [];
@@ -1460,8 +1281,8 @@ class TableComponent {
1460
1281
  if (event.target.closest('input')) {
1461
1282
  return;
1462
1283
  }
1463
- // Only a selection created by this gesture blocks the click — a stale one
1464
- // mousedown can't collapse (user-select:none content) must not wedge rows.
1284
+ // Only a selection created by this gesture blocks the click: a stale one that mousedown
1285
+ // cannot collapse (user-select:none content) must not wedge rows.
1465
1286
  const selection = window.getSelection()?.toString() ?? '';
1466
1287
  if (selection && selection !== this.selectionBeforeGesture) {
1467
1288
  return;
@@ -1469,8 +1290,7 @@ class TableComponent {
1469
1290
  this.rowClicked.emit(row);
1470
1291
  }
1471
1292
  onRowKey(row, event) {
1472
- // Only the row's own key opens the row: a key pressed on a control inside a
1473
- // cell belongs to that control (Space on the select box, Enter on a button).
1293
+ // A key pressed on a control inside a cell belongs to that control.
1474
1294
  if (!this.rowInteractive() || event.target !== event.currentTarget) {
1475
1295
  return;
1476
1296
  }
@@ -1481,8 +1301,7 @@ class TableComponent {
1481
1301
  const first = this.visibleColumns()[0];
1482
1302
  return first ? this.cellValue(row, first) : '';
1483
1303
  }
1484
- /** Row identity — the `rowId` accessor when given, else `row.id`. Public so a
1485
- * host reading `selectedIds`/`expandedIds` can compute the same keys. */
1304
+ /** Row identity: the `rowId` accessor when given, else `row.id`. Public so a host can compute the same keys. */
1486
1305
  rowKey(row) {
1487
1306
  const accessor = this.rowId();
1488
1307
  if (accessor) {
@@ -1516,8 +1335,8 @@ class TableComponent {
1516
1335
  const currentIndex = order.indexOf(this.activeSortDir());
1517
1336
  dir = order[(currentIndex + 1) % order.length] ?? null;
1518
1337
  }
1519
- // The key survives `dir === null`: nulling it too would send a host that maps off
1520
- // `sortKey` back to its own default sort.
1338
+ // The key survives `dir === null`: nulling it would send a host mapping off `sortKey` back
1339
+ // to its default sort.
1521
1340
  this.sortState.set({ key: col.key, dir });
1522
1341
  this.sortKeyChange.emit(col.key);
1523
1342
  this.sortDirectionChange.emit(dir);
@@ -1548,8 +1367,6 @@ class TableComponent {
1548
1367
  cellLink(row, col) {
1549
1368
  return col.link?.(row) ?? null;
1550
1369
  }
1551
- // localStorage, not session: a column layout the reader arranged should still
1552
- // be there tomorrow.
1553
1370
  layoutKey() {
1554
1371
  const key = this.storageKey().trim();
1555
1372
  return this.persistLayout() && key ? `ds-table:${key}` : null;
@@ -1562,9 +1379,8 @@ class TableComponent {
1562
1379
  return;
1563
1380
  }
1564
1381
  const saved = JSON.parse(raw);
1565
- // Only apply what was actually stored, and only what something owns: a table that has
1566
- // never been rearranged must keep its declaration order and `hidden` flags, and a layout
1567
- // saved when a feature was present must not be forced on a table that no longer has it.
1382
+ // Only what was stored and is owned: an unrearranged table keeps its declared order and
1383
+ // `hidden` flags, and a stale slice is not forced on a table that lost the feature.
1568
1384
  for (const slice of this.layout.persistedSlices()) {
1569
1385
  const value = saved[slice.key];
1570
1386
  if (value !== undefined && value !== null) {
@@ -1584,16 +1400,15 @@ class TableComponent {
1584
1400
  // Full or blocked: a lost column layout is not worth an error.
1585
1401
  }
1586
1402
  }
1587
- /** Serialises the visible columns as a CSV download, through whichever export feature is on the
1588
- * table. Pass `rows` to serialise a set you fetched yourself. Needs `dsTableExport`. */
1403
+ /** Serialises the visible columns as a CSV download via the export feature. Pass `rows` to export a
1404
+ * set you fetched yourself. Needs `dsTableExport`. */
1589
1405
  exportCsv(filename = 'table.csv', rows) {
1590
1406
  if (!this.layout.exportCsv(filename, rows)) {
1591
1407
  this.warnNoExport('exportCsv');
1592
1408
  }
1593
1409
  }
1594
- /** Runs the export: awaits the feature's `exportFetcher` when one is given, downloads the
1595
- * result, drives `exporting()` and emits its `exportFailed`. Public so the button can live
1596
- * anywhere: `<ds-button [loading]="table.exporting()" (pressed)="table.runExport()">`. */
1410
+ /** Runs the export: awaits `exportFetcher` when given, downloads, drives `exporting()`, emits
1411
+ * `exportFailed`. Public so a button can live anywhere. */
1597
1412
  async runExport() {
1598
1413
  const running = this.layout.runExport();
1599
1414
  if (!running) {
@@ -1602,11 +1417,12 @@ class TableComponent {
1602
1417
  }
1603
1418
  await running;
1604
1419
  }
1420
+ // A click handler is outside an injection context, where `devWarn`'s effect throws.
1605
1421
  warnNoExport(called) {
1606
- devWarn(() => `ds-table: ${called}() found no export feature. Add the dsTableExport directive to the table.`);
1422
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
1423
+ console.warn(`ds-table: ${called}() found no export feature. Add the dsTableExport directive to the table.`);
1424
+ }
1607
1425
  }
1608
- /** Deterministic per-cell width so skeleton rows look organic but stable
1609
- * across re-renders. */
1610
1426
  skeletonWidth(col, rowIndex) {
1611
1427
  const seed = `${col.key}-${rowIndex}`;
1612
1428
  let hash = 0;
@@ -1617,9 +1433,8 @@ class TableComponent {
1617
1433
  return widths[Math.abs(hash) % widths.length] ?? '70%';
1618
1434
  }
1619
1435
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1620
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TableComponent, isStandalone: true, selector: "ds-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, rowId: { classPropertyName: "rowId", publicName: "rowId", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, animateHeight: { classPropertyName: "animateHeight", publicName: "animateHeight", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, sortKey: { classPropertyName: "sortKey", publicName: "sortKey", isSignal: true, isRequired: false, transformFunction: null }, sortDirection: { classPropertyName: "sortDirection", publicName: "sortDirection", isSignal: true, isRequired: false, transformFunction: null }, sortingOrder: { classPropertyName: "sortingOrder", publicName: "sortingOrder", isSignal: true, isRequired: false, transformFunction: null }, sortAnnouncement: { classPropertyName: "sortAnnouncement", publicName: "sortAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, rangeAnnouncement: { classPropertyName: "rangeAnnouncement", publicName: "rangeAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, rowInteractive: { classPropertyName: "rowInteractive", publicName: "rowInteractive", isSignal: true, isRequired: false, transformFunction: null }, activeRowId: { classPropertyName: "activeRowId", publicName: "activeRowId", isSignal: true, isRequired: false, transformFunction: null }, filterQuery: { classPropertyName: "filterQuery", publicName: "filterQuery", isSignal: true, isRequired: false, transformFunction: null }, columnFilters: { classPropertyName: "columnFilters", publicName: "columnFilters", isSignal: true, isRequired: false, transformFunction: null }, persistLayout: { classPropertyName: "persistLayout", publicName: "persistLayout", isSignal: true, isRequired: false, transformFunction: null }, storageKey: { classPropertyName: "storageKey", publicName: "storageKey", isSignal: true, isRequired: false, transformFunction: null }, stickyScrollbar: { classPropertyName: "stickyScrollbar", publicName: "stickyScrollbar", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, showPageSize: { classPropertyName: "showPageSize", publicName: "showPageSize", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, paginationSize: { classPropertyName: "paginationSize", publicName: "paginationSize", isSignal: true, isRequired: false, transformFunction: null }, paginationLayout: { classPropertyName: "paginationLayout", publicName: "paginationLayout", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, scrollToTopOnPageChange: { classPropertyName: "scrollToTopOnPageChange", publicName: "scrollToTopOnPageChange", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, columnFilterOptions: { classPropertyName: "columnFilterOptions", publicName: "columnFilterOptions", isSignal: true, isRequired: false, transformFunction: null }, stickyScrollbarOffset: { classPropertyName: "stickyScrollbarOffset", publicName: "stickyScrollbarOffset", isSignal: true, isRequired: false, transformFunction: null }, stickyFirstColumn: { classPropertyName: "stickyFirstColumn", publicName: "stickyFirstColumn", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualRowSize: { classPropertyName: "virtualRowSize", publicName: "virtualRowSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, cellTemplateMap: { classPropertyName: "cellTemplateMap", publicName: "cellTemplateMap", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, expandableRows: { classPropertyName: "expandableRows", publicName: "expandableRows", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, expandMode: { classPropertyName: "expandMode", publicName: "expandMode", isSignal: true, isRequired: false, transformFunction: null }, expandAllToggle: { classPropertyName: "expandAllToggle", publicName: "expandAllToggle", isSignal: true, isRequired: false, transformFunction: null }, rowExpandTemplate: { classPropertyName: "rowExpandTemplate", publicName: "rowExpandTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIds: "selectedIdsChange", sortKeyChange: "sortKeyChange", sortDirectionChange: "sortDirectionChange", columnFilters: "columnFiltersChange", pageSize: "pageSizeChange", page: "pageChange", lazyLoad: "lazyLoad", rowClicked: "rowClicked", sortChange: "sortChange", rowActionSelected: "rowActionSelected", cellEdited: "cellEdited", expandedIds: "expandedIdsChange", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed" }, host: { properties: { "class.bordered": "borderedResolved()", "class.selectable": "selectable()", "class.pinned": "stickyFirstColumn()", "class.expandable": "expandableRows()", "class.sticky-scrollbar": "stickyScrollbarResolved()", "class.resizable": "layout.resize() !== null" } }, providers: [DsTableLayout], queries: [{ propertyName: "cellTemplateDirectives", predicate: CellTemplateDirective, isSignal: true }, { propertyName: "headerFilters", predicate: HeaderFilterDirective, isSignal: true }], viewQueries: [{ propertyName: "emptyCell", first: true, predicate: ["emptyCell"], descendants: true, isSignal: true }, { propertyName: "toolbarAnchor", first: true, predicate: ["toolbarAnchor"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "headerUtilityAnchor", first: true, predicate: ["headerUtilityAnchor"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "overlaysAnchor", first: true, predicate: ["overlaysAnchor"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "columnWidthControls", first: true, predicate: ["columnWidthControls"], descendants: true, isSignal: true }, { propertyName: "columnFilterPopover", first: true, predicate: ["columnFilterPopover"], descendants: true, isSignal: true }, { propertyName: "editInput", first: true, predicate: ["editInput"], descendants: true, isSignal: true }, { propertyName: "rowMenuPopover", first: true, predicate: ["rowMenuPopover"], descendants: true, isSignal: true }, { propertyName: "columnPickerPopover", first: true, predicate: ["columnPickerPopover"], descendants: true, isSignal: true }, { propertyName: "scrollWrap", first: true, predicate: ["scrollWrap"], descendants: true, isSignal: true }, { propertyName: "hscrollProxy", first: true, predicate: ["hscrollProxy"], descendants: true, isSignal: true }, { propertyName: "tableHead", first: true, predicate: ["tableHead"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"table-toolbar\">\n <div class=\"toolbar-slot\">\n <ng-content select=\"[toolbar]\"></ng-content>\n </div>\n\n <ng-container #toolbarAnchor />\n</div>\n\n<!-- Wraps the SCROLL CONTAINER, not the table inside it: the scrim is\n `position: absolute; inset: 0`, so from in there it is sized to one viewport of\n the table and scrolls away with the content. -->\n<ds-loading-overlay\n [loading]=\"isOverlayLoading()\"\n [blur]=\"true\"\n [insetTop]=\"'var(--_table-head-height)'\"\n [inertContent]=\"false\">\n <div\n #scrollWrap\n class=\"scroll-wrap\"\n [class.scroll-y]=\"maxHeight()\"\n [style.max-height]=\"maxHeight()\">\n <div\n class=\"visually-hidden\"\n role=\"status\"\n aria-live=\"polite\">\n {{ statusMessage() }}\n </div>\n\n <table\n [class]=\"tableClasses()\"\n [style.--_table-virtual-row-h]=\"virtualRowHeight()\"\n [attr.role]=\"rowInteractive() ? 'grid' : null\"\n [attr.aria-busy]=\"loading() !== false ? 'true' : null\">\n @if (caption()) {\n <caption class=\"visually-hidden\">\n {{\n caption()\n }}\n </caption>\n }\n\n <thead #tableHead>\n <tr>\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"selectAllLabel()\"\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (change)=\"onToggleAll($event)\" />\n </th>\n }\n\n @if (expandableRows()) {\n <th\n scope=\"col\"\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n @if (expandAllVisible()) {\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-label]=\"expandAllLabel()\"\n (click)=\"onToggleExpandAll()\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"allExpanded()\"\n [size]=\"16\" />\n </button>\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <th\n scope=\"col\"\n dsTooltipWhenClipped\n [class]=\"headerClasses(col)\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.fit-content]=\"fitsContent(col)\"\n [style.width.px]=\"columnWidth(col)\"\n [style.min-width.px]=\"columnWidth(col)\"\n [style.max-width.px]=\"columnWidth(col)\"\n [attr.aria-sort]=\"ariaSort(col)\"\n [attr.data-col-key]=\"col.key\"\n [dsTooltip]=\"col.label\">\n @if (sortableCol(col)) {\n <button\n type=\"button\"\n class=\"th-label\"\n (click)=\"onSort(col)\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n\n <ds-icon\n class=\"sort-icon\"\n [name]=\"sortIcon(col)\"\n [size]=\"12\">\n </ds-icon>\n </button>\n } @else {\n <span class=\"th-label\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n </span>\n }\n\n @if (hasColumnFilter(col)) {\n <button\n type=\"button\"\n class=\"col-filter-btn\"\n aria-haspopup=\"dialog\"\n [class.active]=\"isColumnFiltered(col)\"\n [attr.aria-expanded]=\"isFilterPanelOpen(col)\"\n [attr.aria-label]=\"intl().table.filterColumn(col.label)\"\n (click)=\"onColumnFilterClick(col, $event)\">\n <ds-icon\n name=\"filter\"\n [size]=\"12\" />\n </button>\n }\n\n @if (layout.resize(); as resize) {\n @let range = resize.range(col);\n\n <span\n class=\"col-resize\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"intl().table.resizeColumn(col.label)\"\n [attr.aria-valuenow]=\"range?.now ?? null\"\n [attr.aria-valuemin]=\"range?.min ?? null\"\n [attr.aria-valuemax]=\"range?.max ?? null\"\n (focus)=\"resize.onFocus(col, $event)\"\n (blur)=\"resize.onBlur()\"\n (pointerdown)=\"resize.onStart(col, $event)\"\n (pointermove)=\"resize.onMove($event)\"\n (pointerup)=\"resize.onEnd()\"\n (pointercancel)=\"resize.onEnd()\"\n (keydown)=\"resize.onKey(col, $event)\">\n </span>\n }\n </th>\n }\n\n @if (hasUtilityColumn()) {\n <th\n scope=\"col\"\n class=\"actions-col\">\n <ng-container #headerUtilityAnchor />\n\n @if (!layout.wantsUtilityColumn()) {\n <span class=\"visually-hidden\">\n {{ intl().table.actions }}\n </span>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Matches what the scrim covers, which is everything below the header:\n a row keeps its tabindex and its Enter handler otherwise, so a keyboard\n user could open a row whose data is mid-replacement while the pointer\n was stopped by the scrim. The header stays live on purpose \u2014 re-sorting\n is what puts the scrim up in the first place. -->\n <tbody [attr.inert]=\"isOverlayLoading() ? '' : null\">\n @if (isSkeletonLoading()) {\n @for (_ of skeletonArray(); track $index; let rowIndex = $index) {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: rowIndex }\">\n </ng-container>\n }\n } @else if (showsLoadingSpace()) {\n <!-- Height, not a message. The empty state is a claim about the data and stays withheld\n while the table is still asking; without this the tbody is empty, the table collapses\n onto its header and the overlay spinner floats over nothing. -->\n <tr aria-hidden=\"true\">\n <td\n class=\"loading-space\"\n [attr.colspan]=\"expandedColspan()\">\n </td>\n </tr>\n } @else if (showsEmptyRow()) {\n <tr>\n <td\n #emptyCell\n class=\"empty\"\n [attr.colspan]=\"expandedColspan()\">\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\">\n </ng-container>\n } @else {\n <ng-content select=\"[empty]\"></ng-content>\n }\n </td>\n </tr>\n } @else {\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padTop\">\n </tr>\n }\n\n @for (slot of rowSlots(); track slot.index) {\n @if (slot.row; as row) {\n <tr\n [class.selected]=\"isSelected(row)\"\n [class.expanded]=\"isExpanded(row)\"\n [class.clickable]=\"rowInteractive()\"\n [class.stripe]=\"isStriped(slot.index)\"\n [class.active]=\"rowKey(row) === activeRowId()\"\n [attr.aria-current]=\"\n rowKey(row) === activeRowId() ? 'true' : null\n \"\n [attr.tabindex]=\"rowInteractive() ? 0 : null\"\n [attr.aria-label]=\"rowInteractive() ? rowAriaLabel(row) : null\"\n (mousedown)=\"onRowMousedown()\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowKey(row, $event)\"\n (keydown.space)=\"onRowKey(row, $event)\">\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"\n intl().table.selectRow(rowAriaLabel(row))\n \"\n [checked]=\"isSelected(row)\"\n (change)=\"onToggleRow(row, $event)\"\n (click)=\"$event.stopPropagation()\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"\n isExpanded(row)\n ? intl().table.collapseRow\n : intl().table.expandRow\n \"\n (click)=\"onToggleExpand(row, $event)\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"isExpanded(row)\"\n [size]=\"16\" />\n </button>\n </td>\n }\n\n @for (\n col of visibleColumns();\n track col.key;\n let first = $first\n ) {\n <td\n dsTooltipTextSelector=\":scope > .cell-clip\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.editable-cell]=\"col.editable\"\n [class.interactive-cell]=\"col.interactive\"\n [class.fit-content]=\"fitsContent(col)\"\n [dsTooltipWhenClipped]=\"!!col.truncate\"\n [dsTooltip]=\"col.truncate ? cellValue(row, col) : ''\"\n (dblclick)=\"startEdit(row, col, $event)\">\n @if (isEditing(row, col)) {\n <input\n #editInput\n type=\"text\"\n class=\"cell-edit\"\n [value]=\"editDraft()\"\n (input)=\"onEditInput($event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.enter)=\"commitEdit(row, col)\"\n (keydown.escape)=\"cancelEdit()\"\n (blur)=\"commitEdit(row, col)\" />\n } @else if (cellTemplate(col); as tpl) {\n @if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n }\n } @else if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n @if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </span>\n } @else if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\">\n @if (hasRowActions() && hasActionsFor(row)) {\n <button\n type=\"button\"\n class=\"row-actions-btn\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isMenuOpenFor(row)\"\n [attr.aria-label]=\"\n intl().table.actionsFor(rowAriaLabel(row))\n \"\n (click)=\"onRowMenuClick(row, $event)\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\">\n <ds-icon\n name=\"moreV\"\n [size]=\"16\" />\n </button>\n }\n </td>\n }\n </tr>\n\n @if (\n expandableRows() &&\n isExpanded(row) &&\n rowExpandTemplate() &&\n !virtualizing()\n ) {\n <tr class=\"expand-panel-row\">\n <td\n class=\"expand-panel-cell\"\n [attr.colspan]=\"expandedColspan()\">\n <div class=\"expand-panel-inner\">\n <!-- The animation runs on the grid track, so the panel needs a child to be the\n track's content; `overflow: hidden` on it is what makes the reveal read as\n the accordion's rather than as a jump. -->\n <div class=\"expand-panel-content\">\n <ng-container\n [ngTemplateOutlet]=\"rowExpandTemplate()!\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n }\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index }\">\n </ng-container>\n }\n }\n\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padBottom\">\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n</ds-loading-overlay>\n\n@if (stickyScrollbarResolved()) {\n <div\n #hscrollProxy\n class=\"hscroll-proxy\"\n aria-hidden=\"true\"\n [class.hscroll-hidden]=\"!hscrollNeeded()\">\n <div\n class=\"hscroll-spacer\"\n [style.width.px]=\"hscrollContentWidth()\">\n </div>\n </div>\n}\n\n@if (pageSize(); as size) {\n <div class=\"pagination-footer\">\n <ds-pagination\n [total]=\"total() ?? filteredData().length\"\n [pageSize]=\"size\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [showPageSize]=\"showPageSize()\"\n [showLabel]=\"showLabel()\"\n [size]=\"paginationSize()\"\n [layout]=\"paginationLayout()\"\n [loading]=\"isSkeletonLoading()\"\n [(currentPage)]=\"page\"\n (pageSizeChange)=\"pageSize.set($event)\" />\n </div>\n}\n\n@if (hasAnyColumnFilter()) {\n <ds-popover\n #columnFilterPopover\n align=\"start\"\n panelRole=\"dialog\"\n [panelLabel]=\"intl().table.filterValues\">\n @if (filterColumn()) {\n @if (headerFilterFor(filterColumn()!); as projected) {\n <div class=\"col-filter col-filter-custom\">\n <ng-container\n [ngTemplateOutlet]=\"projected.template\"\n [ngTemplateOutletContext]=\"headerFilterContext(filterColumn()!)\" />\n </div>\n } @else {\n <div class=\"col-filter\">\n <input\n type=\"text\"\n class=\"col-filter-search\"\n [placeholder]=\"intl().table.filterSearch\"\n [value]=\"filterSearch()\"\n (input)=\"onFilterSearch($event)\"\n (click)=\"$event.stopPropagation()\" />\n\n <div class=\"col-filter-list\">\n @for (value of filterValues(); track value) {\n <label class=\"col-filter-option\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"isFilterValueChecked(value)\"\n (change)=\"toggleFilterValue(value)\" />\n {{ value || intl().table.emptyValue }}\n </label>\n } @empty {\n <div class=\"col-filter-empty\">\n {{ intl().table.noMatches }}\n </div>\n }\n </div>\n\n <div class=\"col-filter-footer\">\n <span class=\"col-filter-count\">\n {{ intl().table.selectedCount(filterSelectedCount()) }}\n </span>\n\n <button\n type=\"button\"\n class=\"col-reset\"\n (click)=\"clearColumnFilter()\">\n {{ intl().table.clear }}\n </button>\n </div>\n </div>\n }\n }\n </ds-popover>\n}\n\n<ng-container #overlaysAnchor />\n\n<ng-template\n #columnWidthControls\n let-col>\n @if (layout.resize(); as resize) {\n <span class=\"col-width\">\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.narrowColumn(col.label)\"\n (click)=\"resize.step(col, -16)\">\n <ds-icon\n name=\"minus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.widenColumn(col.label)\"\n (click)=\"resize.step(col, 16)\">\n <ds-icon\n name=\"plus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn col-width-auto\"\n [attr.aria-label]=\"intl().table.fitColumn(col.label)\"\n (click)=\"resize.step(col, 'auto')\">\n {{ intl().table.fit }}\n </button>\n </span>\n }\n</ng-template>\n\n@if (hasRowActions()) {\n <ds-popover\n #rowMenuPopover\n align=\"end\">\n <ds-menu>\n @for (\n action of visibleRowActions();\n track action.id;\n let first = $first\n ) {\n <!-- Not before the first item: a divider at the top of a menu separates the menu from its\n own edge, which is a line with nothing on one side of it. -->\n @if (action.divider && !first) {\n <ds-menu-divider />\n }\n\n <ds-menu-item\n [icon]=\"action.icon ?? null\"\n [error]=\"action.error ?? false\"\n [disabled]=\"isActionDisabled(action)\"\n [description]=\"actionReason(action)\"\n (pressed)=\"onRowAction(action)\">\n {{ actionLabel(action) }}\n </ds-menu-item>\n }\n </ds-menu>\n </ds-popover>\n}\n\n@if (selectable() && anySelected()) {\n <div class=\"bulk-bar\">\n <span class=\"count\">\n {{ intl().table.selectedCount(selectedIds().size) }}\n </span>\n\n <span class=\"sep\"></span>\n\n <ng-content select=\"[bulk-actions]\"></ng-content>\n </div>\n}\n\n<!-- One skeleton row, shared by loading=\"skeleton\" and the gaps a lazy\n window has not filled yet. `$implicit` is the row's index: skeletonWidth\n varies the bar lengths from it, so a block of them does not read as a grid. -->\n<ng-template\n #skeletonRow\n let-rowIndex>\n <tr>\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <ds-skeleton\n width=\"14px\"\n height=\"14px\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n </td>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <td\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\">\n <ds-skeleton\n height=\"14px\"\n [width]=\"skeletonWidth(col, rowIndex)\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\"></td>\n }\n </tr>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_checkbox-bg-color: var(--ds-checkbox-bg-color, var(--surface-default));--_checkbox-border-color: var(--ds-checkbox-border-color, var(--border-strong));--_checkbox-hover-border-color: var(--ds-checkbox-hover-border-color, var(--accent));--_checkbox-selected-bg-color: var(--ds-checkbox-selected-bg-color, var(--accent));--_checkbox-selected-border-color: var(--ds-checkbox-selected-border-color, var(--accent));--_checkbox-radius: var(--ds-checkbox-radius, var(--ds-radius-inner));--_checkbox-glyph: var(--check-size);--_table-head-height: var(--ds-table-head-height, var(--_table-head-measured, 40px));display:block;position:relative}.check{appearance:none;width:var(--_checkbox-glyph, var(--check-size));height:var(--_checkbox-glyph, var(--check-size));border:var(--check-bw) solid var(--_checkbox-border-color, var(--ds-checkbox-border-color, var(--border-strong)));background:var(--_checkbox-bg-color, var(--ds-checkbox-bg-color, var(--surface-default)));cursor:pointer;display:inline-grid;place-items:center;vertical-align:middle;flex-shrink:0;margin:0;border-radius:var(--_checkbox-radius, var(--ds-checkbox-radius, var(--ds-radius-inner)));transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.check:hover:not(:disabled){border-color:var(--_checkbox-hover-border-color, var(--ds-checkbox-hover-border-color, var(--accent)))}.check:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.check:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.check{color:var(--icon-on-primary)}.check:after{content:\"\";--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.check:after{background-color:CanvasText}}.check:after{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.check:checked{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:checked:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.check:indeterminate{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:indeterminate:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing);width:var(--check-indet-w);height:var(--check-indet-h);border-radius:var(--ds-radius-inner);-webkit-mask:none;mask:none}.check:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.loading-space{height:calc((var(--_table-cell-padding-y) * 2 + var(--line-height-base) * var(--font-size-s)) * 3)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(.bordered) .scroll-wrap{border:var(--border-width-default) solid var(--_table-border);border-radius:var(--_table-radius)}.scroll-wrap{--_table-border: var(--ds-table-border, var(--border-default));--_table-radius: var(--ds-table-radius, var(--ds-radius-control));--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));position:relative;width:100%;overflow:auto hidden;--focus-ring-offset: calc(-1 * var(--focus-ring-width));-webkit-overflow-scrolling:touch;background:var(--surface-default);box-sizing:border-box}.scroll-wrap.scroll-y{overflow-y:auto}:host(.sticky-scrollbar) .scroll-wrap{scrollbar-width:none}:host(.sticky-scrollbar) .scroll-wrap::-webkit-scrollbar{display:none}:host(.resizable) thead th{position:relative;overflow:hidden}@media(hover:none)and (pointer:coarse){.col-resize{display:none}}.col-resize{position:absolute;inset-block:0;right:0;width:var(--space-2);cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none}.col-resize:after{content:\"\";position:absolute;inset-block:var(--space-2);right:0;width:var(--border-width-default);background-color:transparent;transition:background-color var(--duration-fast) var(--ease-standard)}.col-resize:hover:after,.col-resize:active:after,.col-resize:focus-visible:after{background-color:var(--_table-sort-active-icon-color)}@media not (forced-colors:active){.col-resize:focus-visible{outline:none}}.col-resize:focus-visible:after{width:var(--border-width-strong)}.hscroll-proxy{position:sticky;bottom:var(--ds-table-sticky-scrollbar-offset, var(--_table-sticky-scrollbar-offset, calc(-1 * var(--_table-scroller-pad-bottom, 0px))));overflow:auto hidden}.hscroll-spacer{height:1px}.hscroll-hidden{display:none}.table{--_table-min-width: var(--ds-table-min-width, 0);--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));--_table-row-hover-bg-color: var(--ds-table-row-hover-bg-color, var(--surface-secondary));--_table-row-selected-bg-color: var(--ds-table-row-selected-bg-color, var(--accent-subtitle));--_table-row-pressed-bg-color: var(--ds-table-row-pressed-bg-color, var(--surface-muted));--_table-row-active-bg-color: var(--ds-table-row-active-bg-color, var(--accent-subtitle));--_table-row-stripe-bg-color: var(--ds-table-row-stripe-bg-color, var(--surface-secondary));--_table-cell-link-color: var(--ds-table-cell-link-color, var(--accent));--_table-cell-link-decoration: var(--ds-table-cell-link-decoration, underline);--_table-head-text-color: var(--ds-table-head-text-color, var(--text-secondary));--_table-head-bg-color: var(--ds-table-head-bg-color, var(--surface-secondary));--_table-head-font-size: var(--ds-table-head-font-size, var(--font-size-xs));--_table-divider: var(--ds-table-divider, var(--border-divider));--_table-sort-active-icon-color: var(--ds-table-sort-active-icon-color, var(--accent));--_table-icon-button-color: var(--ds-table-icon-button-color, var(--icon-default));--_table-icon-button-color-hover: var(--ds-table-icon-button-color-hover, var(--icon-strong));--_table-icon-button-focus-color: var(--ds-table-icon-button-focus-color, var(--accent));--_table-cell-padding-x: var(--ds-table-cell-padding-x, var(--table-cell-pad-x));--_table-cell-padding-y: var(--ds-table-cell-padding-y, var(--table-cell-pad-y));--_table-cell-padding-top: var(--ds-table-cell-padding-top, var(--_table-cell-padding-y));--_table-cell-padding-right: var(--ds-table-cell-padding-right, var(--_table-cell-padding-x));--_table-cell-padding-bottom: var(--ds-table-cell-padding-bottom, var(--_table-cell-padding-y));--_table-cell-padding-left: var(--ds-table-cell-padding-left, var(--_table-cell-padding-x));--_table-utility-column-width: var(--ds-table-utility-column-width, var(--space-6));--_table-utility-column-padding-left: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-left));--_table-utility-column-padding-right: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-right));--_table-head-padding-top: var(--ds-table-head-padding-top, var(--table-head-pad-y));--_table-head-padding-bottom: var(--ds-table-head-padding-bottom, var(--table-head-pad-y));--_table-head-border-color: var(--ds-table-head-border-color, var(--_table-divider));--_table-head-font-weight: var(--ds-table-head-font-weight, var(--font-weight-bold));--_table-head-letter-spacing: var(--ds-table-head-letter-spacing, var(--letter-spacing-wider));width:100%;border-collapse:collapse;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--_table-bg-color)}.table th.fit-content,.table td.fit-content{width:1%;white-space:nowrap}.table thead th{text-align:left;padding:var(--_table-head-padding-top) var(--_table-cell-padding-right) var(--_table-head-padding-bottom) var(--_table-cell-padding-left);font:var(--_table-head-font-weight) var(--_table-head-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_table-head-letter-spacing);text-transform:uppercase;color:var(--_table-head-text-color);background-color:var(--_table-head-bg-color);border-bottom:var(--border-width-default) solid var(--_table-head-border-color);white-space:nowrap}.table thead th .th-label{display:inline-flex;align-items:center;vertical-align:middle;appearance:none;background:none;border:0;margin:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;text-align:left}.table thead th button.th-label{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color var(--duration-fast) var(--ease-standard)}.table thead th button.th-label:hover{color:var(--text-secondary)}.table thead th button.th-label:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.table thead th .sort-icon{display:inline-block;width:var(--sort-ic-size);height:var(--sort-ic-size);margin-left:var(--sort-ic-gap);vertical-align:middle;transform:translateY(-1px);color:var(--icon-default);opacity:var(--sort-ic-opacity-idle);transition:opacity var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.table thead th .sort-icon .icon{width:var(--sort-ic-size);height:var(--sort-ic-size);display:block}.table thead th.sorted-asc .sort-icon,.table thead th.sorted-desc .sort-icon{opacity:1;color:var(--_table-sort-active-icon-color)}.table thead th.numeric{text-align:right}.table thead th.select-col,.table thead th.expand-col{width:var(--space-10)}.table thead th.actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table.sticky-header thead th{position:sticky;top:0}.table.sticky-header thead th:not(.pin-select,.pin-first,.pin-expand){z-index:var(--table-sticky-header-z)}.table tbody td{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left);line-height:var(--line-height-flat);transition:background-color var(--duration-fast) var(--ease-standard);box-shadow:inset 0 calc(-1 * var(--border-width-default)) 0 var(--_table-divider);vertical-align:middle}.table tbody td.numeric{text-align:right}.table tbody td.empty{text-align:center;color:var(--text-tertiary);padding:var(--space-4)}.table tbody tr:last-child td{box-shadow:none}.table tbody tr.clickable:not(.active):hover td{background-color:var(--_table-row-hover-bg-color)}.table tbody tr.clickable:hover td.interactive-cell,.table tbody tr td .cell-link{color:var(--_table-cell-link-color);text-decoration:var(--_table-cell-link-decoration)}.table tbody tr.selected td{background-color:var(--_table-row-selected-bg-color)}.table tbody tr.active td{background-color:var(--_table-row-active-bg-color)}.table tbody tr.clickable:active td{background-color:var(--_table-row-pressed-bg-color)}.table tbody tr.clickable{cursor:pointer}.table tbody tr.clickable{border-radius:var(--focus-ring-radius)}.table tbody tr.clickable:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table tbody .expand-col{width:var(--space-10)}.table tbody .actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table tbody .expand-panel-cell{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left)}.table tbody .expand-panel-inner{display:grid;grid-template-rows:1fr;animation:ds-table-expand var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table tbody .expand-panel-inner{animation:none}}.table tbody .expand-panel-content{overflow:hidden;min-height:0}@keyframes ds-table-expand{0%{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}.table tbody .cell-clip{display:block;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table .expand-chev{display:block;transition:transform var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table .expand-chev{transition:none}}.table .expand-chev.is-expanded{transform:rotate(90deg)}.table .expand-btn,.table .row-actions-btn{display:flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);padding:0;border:0;background:none;cursor:pointer;color:var(--_table-icon-button-color);border-radius:var(--ds-radius-inner);transition:color var(--duration-fast) var(--ease-standard)}.table .expand-btn:hover,.table .row-actions-btn:hover{color:var(--_table-icon-button-color-hover)}.table .expand-btn:focus-visible,.table .row-actions-btn:focus-visible{--focus-ring-color: var(--_table-icon-button-focus-color);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table.compact{--table-cell-pad-x: var(--space-3);--table-cell-pad-y: var(--space-2);--table-head-pad-y: var(--space-2)}.table{min-width:var(--_table-min-width)}.table.zebra:not(.virtual) tbody tr:nth-child(odd) td{background-color:var(--_table-row-stripe-bg-color)}.table.zebra.virtual tbody tr.stripe td{background-color:var(--_table-row-stripe-bg-color)}.table.virtual{table-layout:fixed}.table.virtual tbody tr:not(.spacer){height:var(--_table-virtual-row-h)}.table.virtual tbody td{overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table tbody tr.spacer{padding:0;border:0;background:none}.table tbody tr.spacer:hover td{background-color:transparent}.col-width{display:inline-flex;gap:var(--space-1);align-items:center;margin-left:auto}.col-width-auto{width:auto;padding-inline:var(--space-2);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}.col-width-btn{display:inline-flex;padding:0;border:0;background:none;color:var(--icon-default);cursor:pointer}.col-width-btn:hover:not(:disabled){color:var(--icon-strong)}.col-width-btn:disabled{color:var(--text-disabled);cursor:default}.col-reset{margin-top:var(--space-1);padding:0;border:0;background:none;color:var(--accent);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);cursor:pointer;text-align:left}.col-reset:hover{text-decoration:underline}.col-filter-btn{display:inline-flex;margin-left:var(--space-1);padding:0;border:0;background:none;color:var(--icon-default);opacity:.5;cursor:pointer;vertical-align:middle;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.col-filter-btn:hover{opacity:1;color:var(--icon-strong)}.col-filter-btn.active{opacity:1;color:var(--_table-sort-active-icon-color)}.col-filter{display:grid;gap:var(--space-2);min-width:180px}.col-filter-search{width:100%;box-sizing:border-box;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--border-default);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.col-filter-search:focus-visible{border-color:var(--accent);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.col-filter-list{display:grid;gap:var(--space-1);max-height:240px;overflow-y:auto}.col-filter-option{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);cursor:pointer}.col-filter-empty{color:var(--text-tertiary);font-size:var(--font-size-s);padding:var(--space-1) 0}.col-filter-footer{display:flex;align-items:center;justify-content:space-between;padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-divider)}.col-filter-count{color:var(--text-tertiary);font-size:var(--font-size-xs)}.col-filter-footer .col-reset{margin-top:0}.editable-cell{cursor:text}.cell-edit{width:100%;box-sizing:border-box;margin:calc(-1 * var(--space-1)) 0;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--accent);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.cell-edit:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.pinned){--_table-select-column-width: var(--ds-table-select-column-width, var(--space-10))}:host(.pinned) .table{border-collapse:separate;border-spacing:0}:host(.pinned) .table tbody td{box-shadow:none;border-bottom:var(--border-width-default) solid var(--_table-divider)}:host(.pinned) .table tbody tr:last-child td{border-bottom:0}:host(.pinned) .pin-select,:host(.pinned) .pin-first{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned) thead .pin-select,:host(.pinned) thead .pin-first{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned) tbody tr.clickable:not(.active):hover .pin-first,:host(.pinned) tbody tr.clickable:not(.active):hover .pin-select{background-color:var(--_table-row-hover-bg-color)}:host(.pinned) tbody tr.selected .pin-first,:host(.pinned) tbody tr.selected .pin-select{background-color:var(--_table-row-selected-bg-color)}:host(.pinned) tbody tr.active .pin-first,:host(.pinned) tbody tr.active .pin-select{background-color:var(--_table-row-active-bg-color)}:host(.pinned) tbody tr.clickable:active .pin-first,:host(.pinned) tbody tr.clickable:active .pin-select{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.selectable) .pin-first{left:var(--_table-select-column-width)}:host(.pinned.expandable){--_table-expand-column-width: var(--ds-table-expand-column-width, var(--space-10))}:host(.pinned.expandable) .pin-expand{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned.expandable) thead .pin-expand{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned.expandable) tbody tr.clickable:not(.active):hover .pin-expand{background-color:var(--_table-row-hover-bg-color)}:host(.pinned.expandable) tbody tr.selected .pin-expand{background-color:var(--_table-row-selected-bg-color)}:host(.pinned.expandable) tbody tr.active .pin-expand{background-color:var(--_table-row-active-bg-color)}:host(.pinned.expandable) tbody tr.clickable:active .pin-expand{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.expandable) .pin-first{left:var(--_table-expand-column-width)}:host(.pinned.selectable.expandable) .pin-expand{left:var(--_table-select-column-width)}:host(.pinned.selectable.expandable) .pin-first{left:calc(var(--_table-select-column-width) + var(--_table-expand-column-width))}.pagination-footer{--_table-footer-padding-y: var(--ds-table-footer-padding-y, var(--space-3));--_table-footer-padding-top: var(--ds-table-footer-padding-top, var(--_table-footer-padding-y));--_table-footer-padding-bottom: var(--ds-table-footer-padding-bottom, var(--_table-footer-padding-y));padding-block:var(--_table-footer-padding-top) var(--_table-footer-padding-bottom);padding-left:var(--ds-table-cell-padding-left, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));padding-right:var(--ds-table-cell-padding-right, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));border-top:var(--border-width-default) solid var(--ds-table-divider, var(--border-divider))}.bulk-bar{position:sticky;bottom:calc(var(--bulk-bar-offset) - var(--_table-scroller-pad-bottom, 0px));display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:var(--surface-inverted);color:var(--text-inverted);border-radius:var(--radius-lg);box-shadow:var(--shadow-toast);margin:var(--space-4) auto 0;width:fit-content}.bulk-bar .count{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans)}.bulk-bar .sep{width:var(--border-width-default);height:var(--space-4);background:var(--border-inverted)}.bulk-bar{--ds-button-label-color: var(--text-inverted);--ds-button-bg-color: transparent;--ds-button-bg-color-hover: var(--surface-inverted-hover);--ds-button-bg-color-active: var(--surface-inverted-hover)}.table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2)}.table-toolbar:not(:has(.toolbar-slot>*,>ds-button)){display:none}.toolbar-slot{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:var(--space-2);min-width:0}.toolbar-slot ::ng-deep>:only-child{flex:1 1 auto;min-width:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: PaginationComponent, selector: "ds-pagination", inputs: ["total", "pageSize", "currentPage", "pageSizeOptions", "showLabel", "showPageSize", "size", "layout", "loading"], outputs: ["pageSizeChange", "currentPageChange"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip]", inputs: ["dsTooltip", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipWhenClipped", "dsTooltipTextSelector"] }, { kind: "component", type: MenuComponent, selector: "ds-menu" }, { kind: "component", type: MenuItemComponent, selector: "ds-menu-item", inputs: ["icon", "disabled", "error", "quiet", "description", "submenu"], outputs: ["pressed"] }, { kind: "component", type: MenuDividerComponent, selector: "ds-menu-divider" }, { kind: "directive", type:
1621
- // Only instantiated when a column sets `link`, so a consumer app with no router
1622
- // provided still renders the table — the directive is never constructed.
1436
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TableComponent, isStandalone: true, selector: "ds-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, rowId: { classPropertyName: "rowId", publicName: "rowId", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, animateHeight: { classPropertyName: "animateHeight", publicName: "animateHeight", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, sortKey: { classPropertyName: "sortKey", publicName: "sortKey", isSignal: true, isRequired: false, transformFunction: null }, sortDirection: { classPropertyName: "sortDirection", publicName: "sortDirection", isSignal: true, isRequired: false, transformFunction: null }, sortingOrder: { classPropertyName: "sortingOrder", publicName: "sortingOrder", isSignal: true, isRequired: false, transformFunction: null }, sortAnnouncement: { classPropertyName: "sortAnnouncement", publicName: "sortAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, rangeAnnouncement: { classPropertyName: "rangeAnnouncement", publicName: "rangeAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, rowInteractive: { classPropertyName: "rowInteractive", publicName: "rowInteractive", isSignal: true, isRequired: false, transformFunction: null }, activeRowId: { classPropertyName: "activeRowId", publicName: "activeRowId", isSignal: true, isRequired: false, transformFunction: null }, filterQuery: { classPropertyName: "filterQuery", publicName: "filterQuery", isSignal: true, isRequired: false, transformFunction: null }, columnFilters: { classPropertyName: "columnFilters", publicName: "columnFilters", isSignal: true, isRequired: false, transformFunction: null }, persistLayout: { classPropertyName: "persistLayout", publicName: "persistLayout", isSignal: true, isRequired: false, transformFunction: null }, storageKey: { classPropertyName: "storageKey", publicName: "storageKey", isSignal: true, isRequired: false, transformFunction: null }, stickyScrollbar: { classPropertyName: "stickyScrollbar", publicName: "stickyScrollbar", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, showPageSize: { classPropertyName: "showPageSize", publicName: "showPageSize", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, paginationSize: { classPropertyName: "paginationSize", publicName: "paginationSize", isSignal: true, isRequired: false, transformFunction: null }, paginationLayout: { classPropertyName: "paginationLayout", publicName: "paginationLayout", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, scrollToTopOnPageChange: { classPropertyName: "scrollToTopOnPageChange", publicName: "scrollToTopOnPageChange", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, columnFilterOptions: { classPropertyName: "columnFilterOptions", publicName: "columnFilterOptions", isSignal: true, isRequired: false, transformFunction: null }, stickyScrollbarOffset: { classPropertyName: "stickyScrollbarOffset", publicName: "stickyScrollbarOffset", isSignal: true, isRequired: false, transformFunction: null }, stickyFirstColumn: { classPropertyName: "stickyFirstColumn", publicName: "stickyFirstColumn", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualRowSize: { classPropertyName: "virtualRowSize", publicName: "virtualRowSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, cellTemplateMap: { classPropertyName: "cellTemplateMap", publicName: "cellTemplateMap", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, expandableRows: { classPropertyName: "expandableRows", publicName: "expandableRows", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, expandMode: { classPropertyName: "expandMode", publicName: "expandMode", isSignal: true, isRequired: false, transformFunction: null }, expandAllToggle: { classPropertyName: "expandAllToggle", publicName: "expandAllToggle", isSignal: true, isRequired: false, transformFunction: null }, rowExpandTemplate: { classPropertyName: "rowExpandTemplate", publicName: "rowExpandTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIds: "selectedIdsChange", sortKeyChange: "sortKeyChange", sortDirectionChange: "sortDirectionChange", columnFilters: "columnFiltersChange", pageSize: "pageSizeChange", page: "pageChange", lazyLoad: "lazyLoad", rowClicked: "rowClicked", sortChange: "sortChange", rowActionSelected: "rowActionSelected", cellEdited: "cellEdited", expandedIds: "expandedIdsChange", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed" }, host: { properties: { "class.bordered": "borderedResolved()", "class.selectable": "selectable()", "class.pinned": "stickyFirstColumn()", "class.expandable": "expandableRows()", "class.sticky-scrollbar": "stickyScrollbarResolved()", "class.resizable": "layout.resize() !== null" } }, providers: [DsTableLayout], queries: [{ propertyName: "cellTemplateDirectives", predicate: CellTemplateDirective, isSignal: true }, { propertyName: "headerFilters", predicate: HeaderFilterDirective, isSignal: true }], viewQueries: [{ propertyName: "emptyCell", first: true, predicate: ["emptyCell"], descendants: true, isSignal: true }, { propertyName: "toolbarAnchor", first: true, predicate: ["toolbarAnchor"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "headerUtilityAnchor", first: true, predicate: ["headerUtilityAnchor"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "overlaysAnchor", first: true, predicate: ["overlaysAnchor"], descendants: true, read: ViewContainerRef, isSignal: true }, { propertyName: "columnWidthControls", first: true, predicate: ["columnWidthControls"], descendants: true, isSignal: true }, { propertyName: "columnFilterPopover", first: true, predicate: ["columnFilterPopover"], descendants: true, isSignal: true }, { propertyName: "editInput", first: true, predicate: ["editInput"], descendants: true, isSignal: true }, { propertyName: "rowMenuPopover", first: true, predicate: ["rowMenuPopover"], descendants: true, isSignal: true }, { propertyName: "columnPickerPopover", first: true, predicate: ["columnPickerPopover"], descendants: true, isSignal: true }, { propertyName: "scrollWrap", first: true, predicate: ["scrollWrap"], descendants: true, isSignal: true }, { propertyName: "hscrollProxy", first: true, predicate: ["hscrollProxy"], descendants: true, isSignal: true }, { propertyName: "tableHead", first: true, predicate: ["tableHead"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"table-toolbar\">\n <div class=\"toolbar-slot\">\n <ng-content select=\"[toolbar]\"></ng-content>\n </div>\n\n <ng-container #toolbarAnchor />\n</div>\n\n<!-- Wraps the scroll container, not the table: the scrim is `position: absolute; inset: 0`,\n so inside it would be one viewport tall and scroll away with the content. -->\n<ds-loading-overlay\n [loading]=\"isOverlayLoading()\"\n [blur]=\"true\"\n [insetTop]=\"'var(--_table-head-height)'\"\n [inertContent]=\"false\">\n <div\n #scrollWrap\n class=\"scroll-wrap\"\n [class.scroll-y]=\"maxHeight()\"\n [style.max-height]=\"maxHeight()\">\n <div\n class=\"visually-hidden\"\n role=\"status\"\n aria-live=\"polite\">\n {{ statusMessage() }}\n </div>\n\n <table\n [class]=\"tableClasses()\"\n [style.--_table-virtual-row-h]=\"virtualRowHeight()\"\n [attr.role]=\"rowInteractive() ? 'grid' : null\"\n [attr.aria-busy]=\"loading() !== false ? 'true' : null\">\n @if (caption()) {\n <caption class=\"visually-hidden\">\n {{\n caption()\n }}\n </caption>\n }\n\n <thead #tableHead>\n <tr>\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"selectAllLabel()\"\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (change)=\"onToggleAll($event)\" />\n </th>\n }\n\n @if (expandableRows()) {\n <th\n scope=\"col\"\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n @if (expandAllVisible()) {\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-label]=\"expandAllLabel()\"\n (click)=\"onToggleExpandAll()\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"allExpanded()\"\n [size]=\"16\" />\n </button>\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <th\n scope=\"col\"\n dsTooltipWhenClipped\n [class]=\"headerClasses(col)\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.fit-content]=\"fitsContent(col)\"\n [style.width.px]=\"columnWidth(col)\"\n [style.min-width.px]=\"columnWidth(col)\"\n [style.max-width.px]=\"columnWidth(col)\"\n [attr.aria-sort]=\"ariaSort(col)\"\n [attr.data-col-key]=\"col.key\"\n [dsTooltip]=\"col.label\">\n @if (sortableCol(col)) {\n <button\n type=\"button\"\n class=\"th-label\"\n (click)=\"onSort(col)\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n\n <ds-icon\n class=\"sort-icon\"\n [name]=\"sortIcon(col)\"\n [size]=\"12\">\n </ds-icon>\n </button>\n } @else {\n <span class=\"th-label\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n </span>\n }\n\n @if (hasColumnFilter(col)) {\n <button\n type=\"button\"\n class=\"col-filter-btn\"\n aria-haspopup=\"dialog\"\n [class.active]=\"isColumnFiltered(col)\"\n [attr.aria-expanded]=\"isFilterPanelOpen(col)\"\n [attr.aria-label]=\"intl().table.filterColumn(col.label)\"\n (click)=\"onColumnFilterClick(col, $event)\">\n <ds-icon\n name=\"filter\"\n [size]=\"12\" />\n </button>\n }\n\n @if (layout.resize(); as resize) {\n @let range = resize.range(col);\n\n <span\n class=\"col-resize\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"intl().table.resizeColumn(col.label)\"\n [attr.aria-valuenow]=\"range?.now ?? null\"\n [attr.aria-valuemin]=\"range?.min ?? null\"\n [attr.aria-valuemax]=\"range?.max ?? null\"\n (focus)=\"resize.onFocus(col, $event)\"\n (blur)=\"resize.onBlur()\"\n (pointerdown)=\"resize.onStart(col, $event)\"\n (pointermove)=\"resize.onMove($event)\"\n (pointerup)=\"resize.onEnd()\"\n (pointercancel)=\"resize.onEnd()\"\n (keydown)=\"resize.onKey(col, $event)\">\n </span>\n }\n </th>\n }\n\n @if (hasUtilityColumn()) {\n <th\n scope=\"col\"\n class=\"actions-col\">\n <ng-container #headerUtilityAnchor />\n\n @if (!layout.wantsUtilityColumn()) {\n <span class=\"visually-hidden\">\n {{ intl().table.actions }}\n </span>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Covers what the scrim covers, else a keyboard user could open a row that is\n mid-replacement. The header stays live: re-sorting puts the scrim up. -->\n <tbody [attr.inert]=\"isOverlayLoading() ? '' : null\">\n @if (isSkeletonLoading()) {\n @for (_ of skeletonArray(); track $index; let rowIndex = $index) {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: rowIndex }\">\n </ng-container>\n }\n } @else if (showsLoadingSpace()) {\n <!-- Height, not a message: without it the tbody is empty while loading, the table\n collapses onto its header and the overlay spinner floats over nothing. -->\n <tr aria-hidden=\"true\">\n <td\n class=\"loading-space\"\n [attr.colspan]=\"expandedColspan()\">\n </td>\n </tr>\n } @else if (showsEmptyRow()) {\n <tr>\n <td\n #emptyCell\n class=\"empty\"\n [attr.colspan]=\"expandedColspan()\">\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\">\n </ng-container>\n } @else {\n <ng-content select=\"[empty]\"></ng-content>\n }\n </td>\n </tr>\n } @else {\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padTop\">\n </tr>\n }\n\n @for (slot of rowSlots(); track slot.index) {\n @if (slot.row; as row) {\n <tr\n [class.selected]=\"isSelected(row)\"\n [class.expanded]=\"isExpanded(row)\"\n [class.clickable]=\"rowInteractive()\"\n [class.stripe]=\"isStriped(slot.index)\"\n [class.active]=\"rowKey(row) === activeRowId()\"\n [attr.aria-current]=\"\n rowKey(row) === activeRowId() ? 'true' : null\n \"\n [attr.tabindex]=\"rowInteractive() ? 0 : null\"\n [attr.aria-label]=\"rowInteractive() ? rowAriaLabel(row) : null\"\n (mousedown)=\"onRowMousedown()\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowKey(row, $event)\"\n (keydown.space)=\"onRowKey(row, $event)\">\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"\n intl().table.selectRow(rowAriaLabel(row))\n \"\n [checked]=\"isSelected(row)\"\n (change)=\"onToggleRow(row, $event)\"\n (click)=\"$event.stopPropagation()\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"\n isExpanded(row)\n ? intl().table.collapseRow\n : intl().table.expandRow\n \"\n (click)=\"onToggleExpand(row, $event)\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"isExpanded(row)\"\n [size]=\"16\" />\n </button>\n </td>\n }\n\n @for (\n col of visibleColumns();\n track col.key;\n let first = $first\n ) {\n <td\n dsTooltipTextSelector=\":scope > .cell-clip\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.editable-cell]=\"col.editable\"\n [class.interactive-cell]=\"col.interactive\"\n [class.fit-content]=\"fitsContent(col)\"\n [dsTooltipWhenClipped]=\"!!col.truncate\"\n [dsTooltip]=\"col.truncate ? cellValue(row, col) : ''\"\n (dblclick)=\"startEdit(row, col, $event)\">\n @if (isEditing(row, col)) {\n <input\n #editInput\n type=\"text\"\n class=\"cell-edit\"\n [value]=\"editDraft()\"\n (input)=\"onEditInput($event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.enter)=\"commitEdit(row, col)\"\n (keydown.escape)=\"cancelEdit()\"\n (blur)=\"commitEdit(row, col)\" />\n } @else if (cellTemplate(col); as tpl) {\n @if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n }\n } @else if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n @if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </span>\n } @else if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\">\n @if (hasRowActions() && hasActionsFor(row)) {\n <button\n type=\"button\"\n class=\"row-actions-btn\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isMenuOpenFor(row)\"\n [attr.aria-label]=\"\n intl().table.actionsFor(rowAriaLabel(row))\n \"\n (click)=\"onRowMenuClick(row, $event)\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\">\n <ds-icon\n name=\"moreV\"\n [size]=\"16\" />\n </button>\n }\n </td>\n }\n </tr>\n\n @if (\n expandableRows() &&\n isExpanded(row) &&\n rowExpandTemplate() &&\n !virtualizing()\n ) {\n <tr class=\"expand-panel-row\">\n <td\n class=\"expand-panel-cell\"\n [attr.colspan]=\"expandedColspan()\">\n <div class=\"expand-panel-inner\">\n <div class=\"expand-panel-content\">\n <ng-container\n [ngTemplateOutlet]=\"rowExpandTemplate()!\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n }\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index }\">\n </ng-container>\n }\n }\n\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padBottom\">\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n</ds-loading-overlay>\n\n@if (stickyScrollbarResolved()) {\n <div\n #hscrollProxy\n class=\"hscroll-proxy\"\n aria-hidden=\"true\"\n [class.hscroll-hidden]=\"!hscrollNeeded()\">\n <div\n class=\"hscroll-spacer\"\n [style.width.px]=\"hscrollContentWidth()\">\n </div>\n </div>\n}\n\n@if (pageSize(); as size) {\n <div class=\"pagination-footer\">\n <ds-pagination\n [total]=\"total() ?? filteredData().length\"\n [pageSize]=\"size\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [showPageSize]=\"showPageSize()\"\n [showLabel]=\"showLabel()\"\n [size]=\"paginationSize()\"\n [layout]=\"paginationLayout()\"\n [loading]=\"isSkeletonLoading()\"\n [(currentPage)]=\"page\"\n (pageSizeChange)=\"pageSize.set($event)\" />\n </div>\n}\n\n@if (hasAnyColumnFilter()) {\n <ds-popover\n #columnFilterPopover\n align=\"start\"\n panelRole=\"dialog\"\n [panelLabel]=\"intl().table.filterValues\">\n @if (filterColumn()) {\n @if (headerFilterFor(filterColumn()!); as projected) {\n <div class=\"col-filter col-filter-custom\">\n <ng-container\n [ngTemplateOutlet]=\"projected.template\"\n [ngTemplateOutletContext]=\"headerFilterContext(filterColumn()!)\" />\n </div>\n } @else {\n <div class=\"col-filter\">\n <input\n type=\"text\"\n class=\"col-filter-search\"\n [placeholder]=\"intl().table.filterSearch\"\n [value]=\"filterSearch()\"\n (input)=\"onFilterSearch($event)\"\n (click)=\"$event.stopPropagation()\" />\n\n <div class=\"col-filter-list\">\n @for (value of filterValues(); track value) {\n <label class=\"col-filter-option\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"isFilterValueChecked(value)\"\n (change)=\"toggleFilterValue(value)\" />\n {{ value || intl().table.emptyValue }}\n </label>\n } @empty {\n <div class=\"col-filter-empty\">\n {{ intl().table.noMatches }}\n </div>\n }\n </div>\n\n <div class=\"col-filter-footer\">\n <span class=\"col-filter-count\">\n {{ intl().table.selectedCount(filterSelectedCount()) }}\n </span>\n\n <button\n type=\"button\"\n class=\"col-reset\"\n (click)=\"clearColumnFilter()\">\n {{ intl().table.clear }}\n </button>\n </div>\n </div>\n }\n }\n </ds-popover>\n}\n\n<ng-container #overlaysAnchor />\n\n<ng-template\n #columnWidthControls\n let-col>\n @if (layout.resize(); as resize) {\n <span class=\"col-width\">\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.narrowColumn(col.label)\"\n (click)=\"resize.step(col, -16)\">\n <ds-icon\n name=\"minus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.widenColumn(col.label)\"\n (click)=\"resize.step(col, 16)\">\n <ds-icon\n name=\"plus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn col-width-auto\"\n [attr.aria-label]=\"intl().table.fitColumn(col.label)\"\n (click)=\"resize.step(col, 'auto')\">\n {{ intl().table.fit }}\n </button>\n </span>\n }\n</ng-template>\n\n@if (hasRowActions()) {\n <ds-popover\n #rowMenuPopover\n align=\"end\">\n <ds-menu>\n @for (\n action of visibleRowActions();\n track action.id;\n let first = $first\n ) {\n @if (action.divider && !first) {\n <ds-menu-divider />\n }\n\n <ds-menu-item\n [icon]=\"action.icon ?? null\"\n [error]=\"action.error ?? false\"\n [disabled]=\"isActionDisabled(action)\"\n [description]=\"actionReason(action)\"\n (pressed)=\"onRowAction(action)\">\n {{ actionLabel(action) }}\n </ds-menu-item>\n }\n </ds-menu>\n </ds-popover>\n}\n\n@if (selectable() && anySelected()) {\n <div class=\"bulk-bar\">\n <span class=\"count\">\n {{ intl().table.selectedCount(selectedIds().size) }}\n </span>\n\n <span class=\"sep\"></span>\n\n <ng-content select=\"[bulk-actions]\"></ng-content>\n </div>\n}\n\n<!-- One skeleton row for loading=\"skeleton\" and unfilled lazy-window gaps. `$implicit` is the\n row index, which skeletonWidth varies the bar lengths from. -->\n<ng-template\n #skeletonRow\n let-rowIndex>\n <tr>\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <ds-skeleton\n width=\"14px\"\n height=\"14px\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n </td>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <td\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\">\n <ds-skeleton\n height=\"14px\"\n [width]=\"skeletonWidth(col, rowIndex)\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\"></td>\n }\n </tr>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_checkbox-bg-color: var(--ds-checkbox-bg-color, var(--surface-default));--_checkbox-border-color: var(--ds-checkbox-border-color, var(--border-strong));--_checkbox-hover-border-color: var(--ds-checkbox-hover-border-color, var(--accent));--_checkbox-selected-bg-color: var(--ds-checkbox-selected-bg-color, var(--accent));--_checkbox-selected-border-color: var(--ds-checkbox-selected-border-color, var(--accent));--_checkbox-radius: var(--ds-checkbox-radius, var(--ds-radius-inner));--_checkbox-glyph: var(--check-size);--_table-head-height: var(--ds-table-head-height, var(--_table-head-measured, 40px));display:block;position:relative}.check{appearance:none;width:var(--_checkbox-glyph, var(--check-size));height:var(--_checkbox-glyph, var(--check-size));border:var(--check-bw) solid var(--_checkbox-border-color, var(--ds-checkbox-border-color, var(--border-strong)));background:var(--_checkbox-bg-color, var(--ds-checkbox-bg-color, var(--surface-default)));cursor:pointer;display:inline-grid;place-items:center;vertical-align:middle;flex-shrink:0;margin:0;border-radius:var(--_checkbox-radius, var(--ds-checkbox-radius, var(--ds-radius-inner)));transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.check:hover:not(:disabled){border-color:var(--_checkbox-hover-border-color, var(--ds-checkbox-hover-border-color, var(--accent)))}.check:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.check:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.check{color:var(--icon-on-primary)}.check:after{content:\"\";--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.check:after{background-color:CanvasText}}.check:after{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.check:checked{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:checked:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.check:indeterminate{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:indeterminate:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing);width:var(--check-indet-w);height:var(--check-indet-h);border-radius:var(--ds-radius-inner);-webkit-mask:none;mask:none}.check:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.loading-space{height:calc((var(--_table-cell-padding-y) * 2 + var(--line-height-base) * var(--font-size-s)) * 3)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(.bordered) .scroll-wrap{border:var(--border-width-default) solid var(--_table-border);border-radius:var(--_table-radius)}.scroll-wrap{--_table-border: var(--ds-table-border, var(--border-default));--_table-radius: var(--ds-table-radius, var(--ds-radius-control));--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));position:relative;width:100%;overflow:auto hidden;--focus-ring-offset: calc(-1 * var(--focus-ring-width));-webkit-overflow-scrolling:touch;background:var(--surface-default);box-sizing:border-box}.scroll-wrap.scroll-y{overflow-y:auto}:host(.sticky-scrollbar) .scroll-wrap{scrollbar-width:none}:host(.sticky-scrollbar) .scroll-wrap::-webkit-scrollbar{display:none}:host(.resizable) thead th{position:relative;overflow:hidden}@media(hover:none)and (pointer:coarse){.col-resize{display:none}}.col-resize{position:absolute;inset-block:0;right:0;width:var(--space-2);cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none}.col-resize:after{content:\"\";position:absolute;inset-block:var(--space-2);right:0;width:var(--border-width-default);background-color:transparent;transition:background-color var(--duration-fast) var(--ease-standard)}.col-resize:hover:after,.col-resize:active:after,.col-resize:focus-visible:after{background-color:var(--_table-sort-active-icon-color)}@media not (forced-colors:active){.col-resize:focus-visible{outline:none}}.col-resize:focus-visible:after{width:var(--border-width-strong)}.hscroll-proxy{position:sticky;bottom:var(--ds-table-sticky-scrollbar-offset, var(--_table-sticky-scrollbar-offset, calc(-1 * var(--_table-scroller-pad-bottom, 0px))));overflow:auto hidden}.hscroll-spacer{height:1px}.hscroll-hidden{display:none}.table{--_table-min-width: var(--ds-table-min-width, 0);--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));--_table-row-hover-bg-color: var(--ds-table-row-hover-bg-color, var(--surface-secondary));--_table-row-selected-bg-color: var(--ds-table-row-selected-bg-color, var(--accent-subtitle));--_table-row-pressed-bg-color: var(--ds-table-row-pressed-bg-color, var(--surface-muted));--_table-row-active-bg-color: var(--ds-table-row-active-bg-color, var(--accent-subtitle));--_table-row-stripe-bg-color: var(--ds-table-row-stripe-bg-color, var(--surface-secondary));--_table-cell-link-color: var(--ds-table-cell-link-color, var(--accent));--_table-cell-link-decoration: var(--ds-table-cell-link-decoration, underline);--_table-head-text-color: var(--ds-table-head-text-color, var(--text-secondary));--_table-head-bg-color: var(--ds-table-head-bg-color, var(--surface-secondary));--_table-head-font-size: var(--ds-table-head-font-size, var(--font-size-xs));--_table-divider: var(--ds-table-divider, var(--border-divider));--_table-sort-active-icon-color: var(--ds-table-sort-active-icon-color, var(--accent));--_table-icon-button-color: var(--ds-table-icon-button-color, var(--icon-default));--_table-icon-button-color-hover: var(--ds-table-icon-button-color-hover, var(--icon-strong));--_table-icon-button-focus-color: var(--ds-table-icon-button-focus-color, var(--accent));--_table-cell-padding-x: var(--ds-table-cell-padding-x, var(--table-cell-pad-x));--_table-cell-padding-y: var(--ds-table-cell-padding-y, var(--table-cell-pad-y));--_table-cell-padding-top: var(--ds-table-cell-padding-top, var(--_table-cell-padding-y));--_table-cell-padding-right: var(--ds-table-cell-padding-right, var(--_table-cell-padding-x));--_table-cell-padding-bottom: var(--ds-table-cell-padding-bottom, var(--_table-cell-padding-y));--_table-cell-padding-left: var(--ds-table-cell-padding-left, var(--_table-cell-padding-x));--_table-utility-column-width: var(--ds-table-utility-column-width, var(--space-6));--_table-utility-column-padding-left: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-left));--_table-utility-column-padding-right: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-right));--_table-head-padding-top: var(--ds-table-head-padding-top, var(--table-head-pad-y));--_table-head-padding-bottom: var(--ds-table-head-padding-bottom, var(--table-head-pad-y));--_table-head-border-color: var(--ds-table-head-border-color, var(--_table-divider));--_table-head-font-weight: var(--ds-table-head-font-weight, var(--font-weight-bold));--_table-head-letter-spacing: var(--ds-table-head-letter-spacing, var(--letter-spacing-wider));width:100%;border-collapse:collapse;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--_table-bg-color)}.table th.fit-content,.table td.fit-content{width:1%;white-space:nowrap}.table thead th{text-align:left;padding:var(--_table-head-padding-top) var(--_table-cell-padding-right) var(--_table-head-padding-bottom) var(--_table-cell-padding-left);font:var(--_table-head-font-weight) var(--_table-head-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_table-head-letter-spacing);text-transform:uppercase;color:var(--_table-head-text-color);background-color:var(--_table-head-bg-color);border-bottom:var(--border-width-default) solid var(--_table-head-border-color);white-space:nowrap}.table thead th .th-label{display:inline-flex;align-items:center;vertical-align:middle;appearance:none;background:none;border:0;margin:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;text-align:left}.table thead th button.th-label{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color var(--duration-fast) var(--ease-standard)}.table thead th button.th-label:hover{color:var(--text-secondary)}.table thead th button.th-label:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.table thead th .sort-icon{display:inline-block;width:var(--sort-ic-size);height:var(--sort-ic-size);margin-left:var(--sort-ic-gap);vertical-align:middle;transform:translateY(-1px);color:var(--icon-default);opacity:var(--sort-ic-opacity-idle);transition:opacity var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.table thead th .sort-icon .icon{width:var(--sort-ic-size);height:var(--sort-ic-size);display:block}.table thead th.sorted-asc .sort-icon,.table thead th.sorted-desc .sort-icon{opacity:1;color:var(--_table-sort-active-icon-color)}.table thead th.numeric{text-align:right}.table thead th.select-col,.table thead th.expand-col{width:var(--space-10)}.table thead th.actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table.sticky-header thead th{position:sticky;top:0}.table.sticky-header thead th:not(.pin-select,.pin-first,.pin-expand){z-index:var(--table-sticky-header-z)}.table tbody td{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left);line-height:var(--line-height-flat);transition:background-color var(--duration-fast) var(--ease-standard);box-shadow:inset 0 calc(-1 * var(--border-width-default)) 0 var(--_table-divider);vertical-align:middle}.table tbody td.numeric{text-align:right}.table tbody td.empty{text-align:center;color:var(--text-tertiary);padding:var(--space-4)}.table tbody tr:last-child td{box-shadow:none}.table tbody tr.clickable:not(.active):hover td{background-color:var(--_table-row-hover-bg-color)}.table tbody tr.clickable:hover td.interactive-cell,.table tbody tr td .cell-link{color:var(--_table-cell-link-color);text-decoration:var(--_table-cell-link-decoration)}.table tbody tr.selected td{background-color:var(--_table-row-selected-bg-color)}.table tbody tr.active td{background-color:var(--_table-row-active-bg-color)}.table tbody tr.clickable:active td{background-color:var(--_table-row-pressed-bg-color)}.table tbody tr.clickable{cursor:pointer}.table tbody tr.clickable{border-radius:var(--focus-ring-radius)}.table tbody tr.clickable:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table tbody .expand-col{width:var(--space-10)}.table tbody .actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table tbody .expand-panel-cell{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left)}.table tbody .expand-panel-inner{display:grid;grid-template-rows:1fr;animation:ds-table-expand var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table tbody .expand-panel-inner{animation:none}}.table tbody .expand-panel-content{overflow:hidden;min-height:0}@keyframes ds-table-expand{0%{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}.table tbody .cell-clip{display:block;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table .expand-chev{display:block;transition:transform var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table .expand-chev{transition:none}}.table .expand-chev.is-expanded{transform:rotate(90deg)}.table .expand-btn,.table .row-actions-btn{display:flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);padding:0;border:0;background:none;cursor:pointer;color:var(--_table-icon-button-color);border-radius:var(--ds-radius-inner);transition:color var(--duration-fast) var(--ease-standard)}.table .expand-btn:hover,.table .row-actions-btn:hover{color:var(--_table-icon-button-color-hover)}.table .expand-btn:focus-visible,.table .row-actions-btn:focus-visible{--focus-ring-color: var(--_table-icon-button-focus-color);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table.compact{--table-cell-pad-x: var(--space-3);--table-cell-pad-y: var(--space-2);--table-head-pad-y: var(--space-2)}.table{min-width:var(--_table-min-width)}.table.zebra:not(.virtual) tbody tr:nth-child(odd) td{background-color:var(--_table-row-stripe-bg-color)}.table.zebra.virtual tbody tr.stripe td{background-color:var(--_table-row-stripe-bg-color)}.table.virtual{table-layout:fixed}.table.virtual tbody tr:not(.spacer){height:var(--_table-virtual-row-h)}.table.virtual tbody td{overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table tbody tr.spacer{padding:0;border:0;background:none}.table tbody tr.spacer:hover td{background-color:transparent}.col-width{display:inline-flex;gap:var(--space-1);align-items:center;margin-left:auto}.col-width-auto{width:auto;padding-inline:var(--space-2);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}.col-width-btn{display:inline-flex;padding:0;border:0;background:none;color:var(--icon-default);cursor:pointer}.col-width-btn:hover:not(:disabled){color:var(--icon-strong)}.col-width-btn:disabled{color:var(--text-disabled);cursor:default}.col-reset{margin-top:var(--space-1);padding:0;border:0;background:none;color:var(--accent);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);cursor:pointer;text-align:left}.col-reset:hover{text-decoration:underline}.col-filter-btn{display:inline-flex;margin-left:var(--space-1);padding:0;border:0;background:none;color:var(--icon-default);opacity:.5;cursor:pointer;vertical-align:middle;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.col-filter-btn:hover{opacity:1;color:var(--icon-strong)}.col-filter-btn.active{opacity:1;color:var(--_table-sort-active-icon-color)}.col-filter{display:grid;gap:var(--space-2);min-width:180px}.col-filter-search{width:100%;box-sizing:border-box;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--border-default);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.col-filter-search:focus-visible{border-color:var(--accent);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.col-filter-list{display:grid;gap:var(--space-1);max-height:240px;overflow-y:auto}.col-filter-option{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);cursor:pointer}.col-filter-empty{color:var(--text-tertiary);font-size:var(--font-size-s);padding:var(--space-1) 0}.col-filter-footer{display:flex;align-items:center;justify-content:space-between;padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-divider)}.col-filter-count{color:var(--text-tertiary);font-size:var(--font-size-xs)}.col-filter-footer .col-reset{margin-top:0}.editable-cell{cursor:text}.cell-edit{width:100%;box-sizing:border-box;margin:calc(-1 * var(--space-1)) 0;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--accent);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.cell-edit:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.pinned){--_table-select-column-width: var(--ds-table-select-column-width, var(--space-10))}:host(.pinned) .table{border-collapse:separate;border-spacing:0}:host(.pinned) .table tbody td{box-shadow:none;border-bottom:var(--border-width-default) solid var(--_table-divider)}:host(.pinned) .table tbody tr:last-child td{border-bottom:0}:host(.pinned) .pin-select,:host(.pinned) .pin-first{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned) thead .pin-select,:host(.pinned) thead .pin-first{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned) tbody tr.clickable:not(.active):hover .pin-first,:host(.pinned) tbody tr.clickable:not(.active):hover .pin-select{background-color:var(--_table-row-hover-bg-color)}:host(.pinned) tbody tr.selected .pin-first,:host(.pinned) tbody tr.selected .pin-select{background-color:var(--_table-row-selected-bg-color)}:host(.pinned) tbody tr.active .pin-first,:host(.pinned) tbody tr.active .pin-select{background-color:var(--_table-row-active-bg-color)}:host(.pinned) tbody tr.clickable:active .pin-first,:host(.pinned) tbody tr.clickable:active .pin-select{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.selectable) .pin-first{left:var(--_table-select-column-width)}:host(.pinned.expandable){--_table-expand-column-width: var(--ds-table-expand-column-width, var(--space-10))}:host(.pinned.expandable) .pin-expand{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned.expandable) thead .pin-expand{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned.expandable) tbody tr.clickable:not(.active):hover .pin-expand{background-color:var(--_table-row-hover-bg-color)}:host(.pinned.expandable) tbody tr.selected .pin-expand{background-color:var(--_table-row-selected-bg-color)}:host(.pinned.expandable) tbody tr.active .pin-expand{background-color:var(--_table-row-active-bg-color)}:host(.pinned.expandable) tbody tr.clickable:active .pin-expand{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.expandable) .pin-first{left:var(--_table-expand-column-width)}:host(.pinned.selectable.expandable) .pin-expand{left:var(--_table-select-column-width)}:host(.pinned.selectable.expandable) .pin-first{left:calc(var(--_table-select-column-width) + var(--_table-expand-column-width))}.pagination-footer{--_table-footer-padding-y: var(--ds-table-footer-padding-y, var(--space-3));--_table-footer-padding-top: var(--ds-table-footer-padding-top, var(--_table-footer-padding-y));--_table-footer-padding-bottom: var(--ds-table-footer-padding-bottom, var(--_table-footer-padding-y));padding-block:var(--_table-footer-padding-top) var(--_table-footer-padding-bottom);padding-left:var(--ds-table-cell-padding-left, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));padding-right:var(--ds-table-cell-padding-right, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));border-top:var(--border-width-default) solid var(--ds-table-divider, var(--border-divider))}.bulk-bar{position:sticky;bottom:calc(var(--bulk-bar-offset) - var(--_table-scroller-pad-bottom, 0px));display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:var(--surface-inverted);color:var(--text-inverted);border-radius:var(--radius-lg);box-shadow:var(--shadow-toast);margin:var(--space-4) auto 0;width:fit-content}.bulk-bar .count{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans)}.bulk-bar .sep{width:var(--border-width-default);height:var(--space-4);background:var(--border-inverted)}.bulk-bar{--ds-button-label-color: var(--text-inverted);--ds-button-bg-color: transparent;--ds-button-bg-color-hover: var(--surface-inverted-hover);--ds-button-bg-color-active: var(--surface-inverted-hover)}.table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2)}.table-toolbar:not(:has(.toolbar-slot>*,>ds-button)){display:none}.toolbar-slot{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:var(--space-2);min-width:0}.toolbar-slot ::ng-deep>:only-child{flex:1 1 auto;min-width:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: PaginationComponent, selector: "ds-pagination", inputs: ["total", "pageSize", "currentPage", "pageSizeOptions", "showLabel", "showPageSize", "size", "layout", "loading"], outputs: ["pageSizeChange", "currentPageChange"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipWhenClipped", "dsTooltipTextSelector"] }, { kind: "component", type: MenuComponent, selector: "ds-menu" }, { kind: "component", type: MenuItemComponent, selector: "ds-menu-item", inputs: ["icon", "disabled", "error", "quiet", "description", "submenu"], outputs: ["pressed"] }, { kind: "component", type: MenuDividerComponent, selector: "ds-menu-divider" }, { kind: "directive", type:
1437
+ // Only instantiated when a column sets `link`, so an app without a router still renders.
1623
1438
  RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
1624
1439
  }
1625
1440
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TableComponent, decorators: [{
@@ -1635,8 +1450,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
1635
1450
  MenuComponent,
1636
1451
  MenuItemComponent,
1637
1452
  MenuDividerComponent,
1638
- // Only instantiated when a column sets `link`, so a consumer app with no router
1639
- // provided still renders the table — the directive is never constructed.
1453
+ // Only instantiated when a column sets `link`, so an app without a router still renders.
1640
1454
  RouterLink,
1641
1455
  ], encapsulation: ViewEncapsulation.Emulated, host: {
1642
1456
  '[class.bordered]': 'borderedResolved()',
@@ -1645,7 +1459,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
1645
1459
  '[class.expandable]': 'expandableRows()',
1646
1460
  '[class.sticky-scrollbar]': 'stickyScrollbarResolved()',
1647
1461
  '[class.resizable]': 'layout.resize() !== null',
1648
- }, providers: [DsTableLayout], template: "<div class=\"table-toolbar\">\n <div class=\"toolbar-slot\">\n <ng-content select=\"[toolbar]\"></ng-content>\n </div>\n\n <ng-container #toolbarAnchor />\n</div>\n\n<!-- Wraps the SCROLL CONTAINER, not the table inside it: the scrim is\n `position: absolute; inset: 0`, so from in there it is sized to one viewport of\n the table and scrolls away with the content. -->\n<ds-loading-overlay\n [loading]=\"isOverlayLoading()\"\n [blur]=\"true\"\n [insetTop]=\"'var(--_table-head-height)'\"\n [inertContent]=\"false\">\n <div\n #scrollWrap\n class=\"scroll-wrap\"\n [class.scroll-y]=\"maxHeight()\"\n [style.max-height]=\"maxHeight()\">\n <div\n class=\"visually-hidden\"\n role=\"status\"\n aria-live=\"polite\">\n {{ statusMessage() }}\n </div>\n\n <table\n [class]=\"tableClasses()\"\n [style.--_table-virtual-row-h]=\"virtualRowHeight()\"\n [attr.role]=\"rowInteractive() ? 'grid' : null\"\n [attr.aria-busy]=\"loading() !== false ? 'true' : null\">\n @if (caption()) {\n <caption class=\"visually-hidden\">\n {{\n caption()\n }}\n </caption>\n }\n\n <thead #tableHead>\n <tr>\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"selectAllLabel()\"\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (change)=\"onToggleAll($event)\" />\n </th>\n }\n\n @if (expandableRows()) {\n <th\n scope=\"col\"\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n @if (expandAllVisible()) {\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-label]=\"expandAllLabel()\"\n (click)=\"onToggleExpandAll()\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"allExpanded()\"\n [size]=\"16\" />\n </button>\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <th\n scope=\"col\"\n dsTooltipWhenClipped\n [class]=\"headerClasses(col)\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.fit-content]=\"fitsContent(col)\"\n [style.width.px]=\"columnWidth(col)\"\n [style.min-width.px]=\"columnWidth(col)\"\n [style.max-width.px]=\"columnWidth(col)\"\n [attr.aria-sort]=\"ariaSort(col)\"\n [attr.data-col-key]=\"col.key\"\n [dsTooltip]=\"col.label\">\n @if (sortableCol(col)) {\n <button\n type=\"button\"\n class=\"th-label\"\n (click)=\"onSort(col)\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n\n <ds-icon\n class=\"sort-icon\"\n [name]=\"sortIcon(col)\"\n [size]=\"12\">\n </ds-icon>\n </button>\n } @else {\n <span class=\"th-label\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n </span>\n }\n\n @if (hasColumnFilter(col)) {\n <button\n type=\"button\"\n class=\"col-filter-btn\"\n aria-haspopup=\"dialog\"\n [class.active]=\"isColumnFiltered(col)\"\n [attr.aria-expanded]=\"isFilterPanelOpen(col)\"\n [attr.aria-label]=\"intl().table.filterColumn(col.label)\"\n (click)=\"onColumnFilterClick(col, $event)\">\n <ds-icon\n name=\"filter\"\n [size]=\"12\" />\n </button>\n }\n\n @if (layout.resize(); as resize) {\n @let range = resize.range(col);\n\n <span\n class=\"col-resize\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"intl().table.resizeColumn(col.label)\"\n [attr.aria-valuenow]=\"range?.now ?? null\"\n [attr.aria-valuemin]=\"range?.min ?? null\"\n [attr.aria-valuemax]=\"range?.max ?? null\"\n (focus)=\"resize.onFocus(col, $event)\"\n (blur)=\"resize.onBlur()\"\n (pointerdown)=\"resize.onStart(col, $event)\"\n (pointermove)=\"resize.onMove($event)\"\n (pointerup)=\"resize.onEnd()\"\n (pointercancel)=\"resize.onEnd()\"\n (keydown)=\"resize.onKey(col, $event)\">\n </span>\n }\n </th>\n }\n\n @if (hasUtilityColumn()) {\n <th\n scope=\"col\"\n class=\"actions-col\">\n <ng-container #headerUtilityAnchor />\n\n @if (!layout.wantsUtilityColumn()) {\n <span class=\"visually-hidden\">\n {{ intl().table.actions }}\n </span>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Matches what the scrim covers, which is everything below the header:\n a row keeps its tabindex and its Enter handler otherwise, so a keyboard\n user could open a row whose data is mid-replacement while the pointer\n was stopped by the scrim. The header stays live on purpose \u2014 re-sorting\n is what puts the scrim up in the first place. -->\n <tbody [attr.inert]=\"isOverlayLoading() ? '' : null\">\n @if (isSkeletonLoading()) {\n @for (_ of skeletonArray(); track $index; let rowIndex = $index) {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: rowIndex }\">\n </ng-container>\n }\n } @else if (showsLoadingSpace()) {\n <!-- Height, not a message. The empty state is a claim about the data and stays withheld\n while the table is still asking; without this the tbody is empty, the table collapses\n onto its header and the overlay spinner floats over nothing. -->\n <tr aria-hidden=\"true\">\n <td\n class=\"loading-space\"\n [attr.colspan]=\"expandedColspan()\">\n </td>\n </tr>\n } @else if (showsEmptyRow()) {\n <tr>\n <td\n #emptyCell\n class=\"empty\"\n [attr.colspan]=\"expandedColspan()\">\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\">\n </ng-container>\n } @else {\n <ng-content select=\"[empty]\"></ng-content>\n }\n </td>\n </tr>\n } @else {\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padTop\">\n </tr>\n }\n\n @for (slot of rowSlots(); track slot.index) {\n @if (slot.row; as row) {\n <tr\n [class.selected]=\"isSelected(row)\"\n [class.expanded]=\"isExpanded(row)\"\n [class.clickable]=\"rowInteractive()\"\n [class.stripe]=\"isStriped(slot.index)\"\n [class.active]=\"rowKey(row) === activeRowId()\"\n [attr.aria-current]=\"\n rowKey(row) === activeRowId() ? 'true' : null\n \"\n [attr.tabindex]=\"rowInteractive() ? 0 : null\"\n [attr.aria-label]=\"rowInteractive() ? rowAriaLabel(row) : null\"\n (mousedown)=\"onRowMousedown()\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowKey(row, $event)\"\n (keydown.space)=\"onRowKey(row, $event)\">\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"\n intl().table.selectRow(rowAriaLabel(row))\n \"\n [checked]=\"isSelected(row)\"\n (change)=\"onToggleRow(row, $event)\"\n (click)=\"$event.stopPropagation()\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"\n isExpanded(row)\n ? intl().table.collapseRow\n : intl().table.expandRow\n \"\n (click)=\"onToggleExpand(row, $event)\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"isExpanded(row)\"\n [size]=\"16\" />\n </button>\n </td>\n }\n\n @for (\n col of visibleColumns();\n track col.key;\n let first = $first\n ) {\n <td\n dsTooltipTextSelector=\":scope > .cell-clip\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.editable-cell]=\"col.editable\"\n [class.interactive-cell]=\"col.interactive\"\n [class.fit-content]=\"fitsContent(col)\"\n [dsTooltipWhenClipped]=\"!!col.truncate\"\n [dsTooltip]=\"col.truncate ? cellValue(row, col) : ''\"\n (dblclick)=\"startEdit(row, col, $event)\">\n @if (isEditing(row, col)) {\n <input\n #editInput\n type=\"text\"\n class=\"cell-edit\"\n [value]=\"editDraft()\"\n (input)=\"onEditInput($event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.enter)=\"commitEdit(row, col)\"\n (keydown.escape)=\"cancelEdit()\"\n (blur)=\"commitEdit(row, col)\" />\n } @else if (cellTemplate(col); as tpl) {\n @if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n }\n } @else if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n @if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </span>\n } @else if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\">\n @if (hasRowActions() && hasActionsFor(row)) {\n <button\n type=\"button\"\n class=\"row-actions-btn\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isMenuOpenFor(row)\"\n [attr.aria-label]=\"\n intl().table.actionsFor(rowAriaLabel(row))\n \"\n (click)=\"onRowMenuClick(row, $event)\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\">\n <ds-icon\n name=\"moreV\"\n [size]=\"16\" />\n </button>\n }\n </td>\n }\n </tr>\n\n @if (\n expandableRows() &&\n isExpanded(row) &&\n rowExpandTemplate() &&\n !virtualizing()\n ) {\n <tr class=\"expand-panel-row\">\n <td\n class=\"expand-panel-cell\"\n [attr.colspan]=\"expandedColspan()\">\n <div class=\"expand-panel-inner\">\n <!-- The animation runs on the grid track, so the panel needs a child to be the\n track's content; `overflow: hidden` on it is what makes the reveal read as\n the accordion's rather than as a jump. -->\n <div class=\"expand-panel-content\">\n <ng-container\n [ngTemplateOutlet]=\"rowExpandTemplate()!\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n }\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index }\">\n </ng-container>\n }\n }\n\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padBottom\">\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n</ds-loading-overlay>\n\n@if (stickyScrollbarResolved()) {\n <div\n #hscrollProxy\n class=\"hscroll-proxy\"\n aria-hidden=\"true\"\n [class.hscroll-hidden]=\"!hscrollNeeded()\">\n <div\n class=\"hscroll-spacer\"\n [style.width.px]=\"hscrollContentWidth()\">\n </div>\n </div>\n}\n\n@if (pageSize(); as size) {\n <div class=\"pagination-footer\">\n <ds-pagination\n [total]=\"total() ?? filteredData().length\"\n [pageSize]=\"size\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [showPageSize]=\"showPageSize()\"\n [showLabel]=\"showLabel()\"\n [size]=\"paginationSize()\"\n [layout]=\"paginationLayout()\"\n [loading]=\"isSkeletonLoading()\"\n [(currentPage)]=\"page\"\n (pageSizeChange)=\"pageSize.set($event)\" />\n </div>\n}\n\n@if (hasAnyColumnFilter()) {\n <ds-popover\n #columnFilterPopover\n align=\"start\"\n panelRole=\"dialog\"\n [panelLabel]=\"intl().table.filterValues\">\n @if (filterColumn()) {\n @if (headerFilterFor(filterColumn()!); as projected) {\n <div class=\"col-filter col-filter-custom\">\n <ng-container\n [ngTemplateOutlet]=\"projected.template\"\n [ngTemplateOutletContext]=\"headerFilterContext(filterColumn()!)\" />\n </div>\n } @else {\n <div class=\"col-filter\">\n <input\n type=\"text\"\n class=\"col-filter-search\"\n [placeholder]=\"intl().table.filterSearch\"\n [value]=\"filterSearch()\"\n (input)=\"onFilterSearch($event)\"\n (click)=\"$event.stopPropagation()\" />\n\n <div class=\"col-filter-list\">\n @for (value of filterValues(); track value) {\n <label class=\"col-filter-option\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"isFilterValueChecked(value)\"\n (change)=\"toggleFilterValue(value)\" />\n {{ value || intl().table.emptyValue }}\n </label>\n } @empty {\n <div class=\"col-filter-empty\">\n {{ intl().table.noMatches }}\n </div>\n }\n </div>\n\n <div class=\"col-filter-footer\">\n <span class=\"col-filter-count\">\n {{ intl().table.selectedCount(filterSelectedCount()) }}\n </span>\n\n <button\n type=\"button\"\n class=\"col-reset\"\n (click)=\"clearColumnFilter()\">\n {{ intl().table.clear }}\n </button>\n </div>\n </div>\n }\n }\n </ds-popover>\n}\n\n<ng-container #overlaysAnchor />\n\n<ng-template\n #columnWidthControls\n let-col>\n @if (layout.resize(); as resize) {\n <span class=\"col-width\">\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.narrowColumn(col.label)\"\n (click)=\"resize.step(col, -16)\">\n <ds-icon\n name=\"minus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.widenColumn(col.label)\"\n (click)=\"resize.step(col, 16)\">\n <ds-icon\n name=\"plus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn col-width-auto\"\n [attr.aria-label]=\"intl().table.fitColumn(col.label)\"\n (click)=\"resize.step(col, 'auto')\">\n {{ intl().table.fit }}\n </button>\n </span>\n }\n</ng-template>\n\n@if (hasRowActions()) {\n <ds-popover\n #rowMenuPopover\n align=\"end\">\n <ds-menu>\n @for (\n action of visibleRowActions();\n track action.id;\n let first = $first\n ) {\n <!-- Not before the first item: a divider at the top of a menu separates the menu from its\n own edge, which is a line with nothing on one side of it. -->\n @if (action.divider && !first) {\n <ds-menu-divider />\n }\n\n <ds-menu-item\n [icon]=\"action.icon ?? null\"\n [error]=\"action.error ?? false\"\n [disabled]=\"isActionDisabled(action)\"\n [description]=\"actionReason(action)\"\n (pressed)=\"onRowAction(action)\">\n {{ actionLabel(action) }}\n </ds-menu-item>\n }\n </ds-menu>\n </ds-popover>\n}\n\n@if (selectable() && anySelected()) {\n <div class=\"bulk-bar\">\n <span class=\"count\">\n {{ intl().table.selectedCount(selectedIds().size) }}\n </span>\n\n <span class=\"sep\"></span>\n\n <ng-content select=\"[bulk-actions]\"></ng-content>\n </div>\n}\n\n<!-- One skeleton row, shared by loading=\"skeleton\" and the gaps a lazy\n window has not filled yet. `$implicit` is the row's index: skeletonWidth\n varies the bar lengths from it, so a block of them does not read as a grid. -->\n<ng-template\n #skeletonRow\n let-rowIndex>\n <tr>\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <ds-skeleton\n width=\"14px\"\n height=\"14px\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n </td>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <td\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\">\n <ds-skeleton\n height=\"14px\"\n [width]=\"skeletonWidth(col, rowIndex)\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\"></td>\n }\n </tr>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_checkbox-bg-color: var(--ds-checkbox-bg-color, var(--surface-default));--_checkbox-border-color: var(--ds-checkbox-border-color, var(--border-strong));--_checkbox-hover-border-color: var(--ds-checkbox-hover-border-color, var(--accent));--_checkbox-selected-bg-color: var(--ds-checkbox-selected-bg-color, var(--accent));--_checkbox-selected-border-color: var(--ds-checkbox-selected-border-color, var(--accent));--_checkbox-radius: var(--ds-checkbox-radius, var(--ds-radius-inner));--_checkbox-glyph: var(--check-size);--_table-head-height: var(--ds-table-head-height, var(--_table-head-measured, 40px));display:block;position:relative}.check{appearance:none;width:var(--_checkbox-glyph, var(--check-size));height:var(--_checkbox-glyph, var(--check-size));border:var(--check-bw) solid var(--_checkbox-border-color, var(--ds-checkbox-border-color, var(--border-strong)));background:var(--_checkbox-bg-color, var(--ds-checkbox-bg-color, var(--surface-default)));cursor:pointer;display:inline-grid;place-items:center;vertical-align:middle;flex-shrink:0;margin:0;border-radius:var(--_checkbox-radius, var(--ds-checkbox-radius, var(--ds-radius-inner)));transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.check:hover:not(:disabled){border-color:var(--_checkbox-hover-border-color, var(--ds-checkbox-hover-border-color, var(--accent)))}.check:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.check:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.check{color:var(--icon-on-primary)}.check:after{content:\"\";--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.check:after{background-color:CanvasText}}.check:after{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.check:checked{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:checked:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.check:indeterminate{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:indeterminate:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing);width:var(--check-indet-w);height:var(--check-indet-h);border-radius:var(--ds-radius-inner);-webkit-mask:none;mask:none}.check:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.loading-space{height:calc((var(--_table-cell-padding-y) * 2 + var(--line-height-base) * var(--font-size-s)) * 3)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(.bordered) .scroll-wrap{border:var(--border-width-default) solid var(--_table-border);border-radius:var(--_table-radius)}.scroll-wrap{--_table-border: var(--ds-table-border, var(--border-default));--_table-radius: var(--ds-table-radius, var(--ds-radius-control));--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));position:relative;width:100%;overflow:auto hidden;--focus-ring-offset: calc(-1 * var(--focus-ring-width));-webkit-overflow-scrolling:touch;background:var(--surface-default);box-sizing:border-box}.scroll-wrap.scroll-y{overflow-y:auto}:host(.sticky-scrollbar) .scroll-wrap{scrollbar-width:none}:host(.sticky-scrollbar) .scroll-wrap::-webkit-scrollbar{display:none}:host(.resizable) thead th{position:relative;overflow:hidden}@media(hover:none)and (pointer:coarse){.col-resize{display:none}}.col-resize{position:absolute;inset-block:0;right:0;width:var(--space-2);cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none}.col-resize:after{content:\"\";position:absolute;inset-block:var(--space-2);right:0;width:var(--border-width-default);background-color:transparent;transition:background-color var(--duration-fast) var(--ease-standard)}.col-resize:hover:after,.col-resize:active:after,.col-resize:focus-visible:after{background-color:var(--_table-sort-active-icon-color)}@media not (forced-colors:active){.col-resize:focus-visible{outline:none}}.col-resize:focus-visible:after{width:var(--border-width-strong)}.hscroll-proxy{position:sticky;bottom:var(--ds-table-sticky-scrollbar-offset, var(--_table-sticky-scrollbar-offset, calc(-1 * var(--_table-scroller-pad-bottom, 0px))));overflow:auto hidden}.hscroll-spacer{height:1px}.hscroll-hidden{display:none}.table{--_table-min-width: var(--ds-table-min-width, 0);--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));--_table-row-hover-bg-color: var(--ds-table-row-hover-bg-color, var(--surface-secondary));--_table-row-selected-bg-color: var(--ds-table-row-selected-bg-color, var(--accent-subtitle));--_table-row-pressed-bg-color: var(--ds-table-row-pressed-bg-color, var(--surface-muted));--_table-row-active-bg-color: var(--ds-table-row-active-bg-color, var(--accent-subtitle));--_table-row-stripe-bg-color: var(--ds-table-row-stripe-bg-color, var(--surface-secondary));--_table-cell-link-color: var(--ds-table-cell-link-color, var(--accent));--_table-cell-link-decoration: var(--ds-table-cell-link-decoration, underline);--_table-head-text-color: var(--ds-table-head-text-color, var(--text-secondary));--_table-head-bg-color: var(--ds-table-head-bg-color, var(--surface-secondary));--_table-head-font-size: var(--ds-table-head-font-size, var(--font-size-xs));--_table-divider: var(--ds-table-divider, var(--border-divider));--_table-sort-active-icon-color: var(--ds-table-sort-active-icon-color, var(--accent));--_table-icon-button-color: var(--ds-table-icon-button-color, var(--icon-default));--_table-icon-button-color-hover: var(--ds-table-icon-button-color-hover, var(--icon-strong));--_table-icon-button-focus-color: var(--ds-table-icon-button-focus-color, var(--accent));--_table-cell-padding-x: var(--ds-table-cell-padding-x, var(--table-cell-pad-x));--_table-cell-padding-y: var(--ds-table-cell-padding-y, var(--table-cell-pad-y));--_table-cell-padding-top: var(--ds-table-cell-padding-top, var(--_table-cell-padding-y));--_table-cell-padding-right: var(--ds-table-cell-padding-right, var(--_table-cell-padding-x));--_table-cell-padding-bottom: var(--ds-table-cell-padding-bottom, var(--_table-cell-padding-y));--_table-cell-padding-left: var(--ds-table-cell-padding-left, var(--_table-cell-padding-x));--_table-utility-column-width: var(--ds-table-utility-column-width, var(--space-6));--_table-utility-column-padding-left: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-left));--_table-utility-column-padding-right: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-right));--_table-head-padding-top: var(--ds-table-head-padding-top, var(--table-head-pad-y));--_table-head-padding-bottom: var(--ds-table-head-padding-bottom, var(--table-head-pad-y));--_table-head-border-color: var(--ds-table-head-border-color, var(--_table-divider));--_table-head-font-weight: var(--ds-table-head-font-weight, var(--font-weight-bold));--_table-head-letter-spacing: var(--ds-table-head-letter-spacing, var(--letter-spacing-wider));width:100%;border-collapse:collapse;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--_table-bg-color)}.table th.fit-content,.table td.fit-content{width:1%;white-space:nowrap}.table thead th{text-align:left;padding:var(--_table-head-padding-top) var(--_table-cell-padding-right) var(--_table-head-padding-bottom) var(--_table-cell-padding-left);font:var(--_table-head-font-weight) var(--_table-head-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_table-head-letter-spacing);text-transform:uppercase;color:var(--_table-head-text-color);background-color:var(--_table-head-bg-color);border-bottom:var(--border-width-default) solid var(--_table-head-border-color);white-space:nowrap}.table thead th .th-label{display:inline-flex;align-items:center;vertical-align:middle;appearance:none;background:none;border:0;margin:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;text-align:left}.table thead th button.th-label{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color var(--duration-fast) var(--ease-standard)}.table thead th button.th-label:hover{color:var(--text-secondary)}.table thead th button.th-label:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.table thead th .sort-icon{display:inline-block;width:var(--sort-ic-size);height:var(--sort-ic-size);margin-left:var(--sort-ic-gap);vertical-align:middle;transform:translateY(-1px);color:var(--icon-default);opacity:var(--sort-ic-opacity-idle);transition:opacity var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.table thead th .sort-icon .icon{width:var(--sort-ic-size);height:var(--sort-ic-size);display:block}.table thead th.sorted-asc .sort-icon,.table thead th.sorted-desc .sort-icon{opacity:1;color:var(--_table-sort-active-icon-color)}.table thead th.numeric{text-align:right}.table thead th.select-col,.table thead th.expand-col{width:var(--space-10)}.table thead th.actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table.sticky-header thead th{position:sticky;top:0}.table.sticky-header thead th:not(.pin-select,.pin-first,.pin-expand){z-index:var(--table-sticky-header-z)}.table tbody td{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left);line-height:var(--line-height-flat);transition:background-color var(--duration-fast) var(--ease-standard);box-shadow:inset 0 calc(-1 * var(--border-width-default)) 0 var(--_table-divider);vertical-align:middle}.table tbody td.numeric{text-align:right}.table tbody td.empty{text-align:center;color:var(--text-tertiary);padding:var(--space-4)}.table tbody tr:last-child td{box-shadow:none}.table tbody tr.clickable:not(.active):hover td{background-color:var(--_table-row-hover-bg-color)}.table tbody tr.clickable:hover td.interactive-cell,.table tbody tr td .cell-link{color:var(--_table-cell-link-color);text-decoration:var(--_table-cell-link-decoration)}.table tbody tr.selected td{background-color:var(--_table-row-selected-bg-color)}.table tbody tr.active td{background-color:var(--_table-row-active-bg-color)}.table tbody tr.clickable:active td{background-color:var(--_table-row-pressed-bg-color)}.table tbody tr.clickable{cursor:pointer}.table tbody tr.clickable{border-radius:var(--focus-ring-radius)}.table tbody tr.clickable:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table tbody .expand-col{width:var(--space-10)}.table tbody .actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table tbody .expand-panel-cell{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left)}.table tbody .expand-panel-inner{display:grid;grid-template-rows:1fr;animation:ds-table-expand var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table tbody .expand-panel-inner{animation:none}}.table tbody .expand-panel-content{overflow:hidden;min-height:0}@keyframes ds-table-expand{0%{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}.table tbody .cell-clip{display:block;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table .expand-chev{display:block;transition:transform var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table .expand-chev{transition:none}}.table .expand-chev.is-expanded{transform:rotate(90deg)}.table .expand-btn,.table .row-actions-btn{display:flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);padding:0;border:0;background:none;cursor:pointer;color:var(--_table-icon-button-color);border-radius:var(--ds-radius-inner);transition:color var(--duration-fast) var(--ease-standard)}.table .expand-btn:hover,.table .row-actions-btn:hover{color:var(--_table-icon-button-color-hover)}.table .expand-btn:focus-visible,.table .row-actions-btn:focus-visible{--focus-ring-color: var(--_table-icon-button-focus-color);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table.compact{--table-cell-pad-x: var(--space-3);--table-cell-pad-y: var(--space-2);--table-head-pad-y: var(--space-2)}.table{min-width:var(--_table-min-width)}.table.zebra:not(.virtual) tbody tr:nth-child(odd) td{background-color:var(--_table-row-stripe-bg-color)}.table.zebra.virtual tbody tr.stripe td{background-color:var(--_table-row-stripe-bg-color)}.table.virtual{table-layout:fixed}.table.virtual tbody tr:not(.spacer){height:var(--_table-virtual-row-h)}.table.virtual tbody td{overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table tbody tr.spacer{padding:0;border:0;background:none}.table tbody tr.spacer:hover td{background-color:transparent}.col-width{display:inline-flex;gap:var(--space-1);align-items:center;margin-left:auto}.col-width-auto{width:auto;padding-inline:var(--space-2);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}.col-width-btn{display:inline-flex;padding:0;border:0;background:none;color:var(--icon-default);cursor:pointer}.col-width-btn:hover:not(:disabled){color:var(--icon-strong)}.col-width-btn:disabled{color:var(--text-disabled);cursor:default}.col-reset{margin-top:var(--space-1);padding:0;border:0;background:none;color:var(--accent);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);cursor:pointer;text-align:left}.col-reset:hover{text-decoration:underline}.col-filter-btn{display:inline-flex;margin-left:var(--space-1);padding:0;border:0;background:none;color:var(--icon-default);opacity:.5;cursor:pointer;vertical-align:middle;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.col-filter-btn:hover{opacity:1;color:var(--icon-strong)}.col-filter-btn.active{opacity:1;color:var(--_table-sort-active-icon-color)}.col-filter{display:grid;gap:var(--space-2);min-width:180px}.col-filter-search{width:100%;box-sizing:border-box;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--border-default);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.col-filter-search:focus-visible{border-color:var(--accent);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.col-filter-list{display:grid;gap:var(--space-1);max-height:240px;overflow-y:auto}.col-filter-option{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);cursor:pointer}.col-filter-empty{color:var(--text-tertiary);font-size:var(--font-size-s);padding:var(--space-1) 0}.col-filter-footer{display:flex;align-items:center;justify-content:space-between;padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-divider)}.col-filter-count{color:var(--text-tertiary);font-size:var(--font-size-xs)}.col-filter-footer .col-reset{margin-top:0}.editable-cell{cursor:text}.cell-edit{width:100%;box-sizing:border-box;margin:calc(-1 * var(--space-1)) 0;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--accent);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.cell-edit:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.pinned){--_table-select-column-width: var(--ds-table-select-column-width, var(--space-10))}:host(.pinned) .table{border-collapse:separate;border-spacing:0}:host(.pinned) .table tbody td{box-shadow:none;border-bottom:var(--border-width-default) solid var(--_table-divider)}:host(.pinned) .table tbody tr:last-child td{border-bottom:0}:host(.pinned) .pin-select,:host(.pinned) .pin-first{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned) thead .pin-select,:host(.pinned) thead .pin-first{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned) tbody tr.clickable:not(.active):hover .pin-first,:host(.pinned) tbody tr.clickable:not(.active):hover .pin-select{background-color:var(--_table-row-hover-bg-color)}:host(.pinned) tbody tr.selected .pin-first,:host(.pinned) tbody tr.selected .pin-select{background-color:var(--_table-row-selected-bg-color)}:host(.pinned) tbody tr.active .pin-first,:host(.pinned) tbody tr.active .pin-select{background-color:var(--_table-row-active-bg-color)}:host(.pinned) tbody tr.clickable:active .pin-first,:host(.pinned) tbody tr.clickable:active .pin-select{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.selectable) .pin-first{left:var(--_table-select-column-width)}:host(.pinned.expandable){--_table-expand-column-width: var(--ds-table-expand-column-width, var(--space-10))}:host(.pinned.expandable) .pin-expand{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned.expandable) thead .pin-expand{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned.expandable) tbody tr.clickable:not(.active):hover .pin-expand{background-color:var(--_table-row-hover-bg-color)}:host(.pinned.expandable) tbody tr.selected .pin-expand{background-color:var(--_table-row-selected-bg-color)}:host(.pinned.expandable) tbody tr.active .pin-expand{background-color:var(--_table-row-active-bg-color)}:host(.pinned.expandable) tbody tr.clickable:active .pin-expand{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.expandable) .pin-first{left:var(--_table-expand-column-width)}:host(.pinned.selectable.expandable) .pin-expand{left:var(--_table-select-column-width)}:host(.pinned.selectable.expandable) .pin-first{left:calc(var(--_table-select-column-width) + var(--_table-expand-column-width))}.pagination-footer{--_table-footer-padding-y: var(--ds-table-footer-padding-y, var(--space-3));--_table-footer-padding-top: var(--ds-table-footer-padding-top, var(--_table-footer-padding-y));--_table-footer-padding-bottom: var(--ds-table-footer-padding-bottom, var(--_table-footer-padding-y));padding-block:var(--_table-footer-padding-top) var(--_table-footer-padding-bottom);padding-left:var(--ds-table-cell-padding-left, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));padding-right:var(--ds-table-cell-padding-right, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));border-top:var(--border-width-default) solid var(--ds-table-divider, var(--border-divider))}.bulk-bar{position:sticky;bottom:calc(var(--bulk-bar-offset) - var(--_table-scroller-pad-bottom, 0px));display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:var(--surface-inverted);color:var(--text-inverted);border-radius:var(--radius-lg);box-shadow:var(--shadow-toast);margin:var(--space-4) auto 0;width:fit-content}.bulk-bar .count{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans)}.bulk-bar .sep{width:var(--border-width-default);height:var(--space-4);background:var(--border-inverted)}.bulk-bar{--ds-button-label-color: var(--text-inverted);--ds-button-bg-color: transparent;--ds-button-bg-color-hover: var(--surface-inverted-hover);--ds-button-bg-color-active: var(--surface-inverted-hover)}.table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2)}.table-toolbar:not(:has(.toolbar-slot>*,>ds-button)){display:none}.toolbar-slot{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:var(--space-2);min-width:0}.toolbar-slot ::ng-deep>:only-child{flex:1 1 auto;min-width:0}\n"] }]
1462
+ }, providers: [DsTableLayout], template: "<div class=\"table-toolbar\">\n <div class=\"toolbar-slot\">\n <ng-content select=\"[toolbar]\"></ng-content>\n </div>\n\n <ng-container #toolbarAnchor />\n</div>\n\n<!-- Wraps the scroll container, not the table: the scrim is `position: absolute; inset: 0`,\n so inside it would be one viewport tall and scroll away with the content. -->\n<ds-loading-overlay\n [loading]=\"isOverlayLoading()\"\n [blur]=\"true\"\n [insetTop]=\"'var(--_table-head-height)'\"\n [inertContent]=\"false\">\n <div\n #scrollWrap\n class=\"scroll-wrap\"\n [class.scroll-y]=\"maxHeight()\"\n [style.max-height]=\"maxHeight()\">\n <div\n class=\"visually-hidden\"\n role=\"status\"\n aria-live=\"polite\">\n {{ statusMessage() }}\n </div>\n\n <table\n [class]=\"tableClasses()\"\n [style.--_table-virtual-row-h]=\"virtualRowHeight()\"\n [attr.role]=\"rowInteractive() ? 'grid' : null\"\n [attr.aria-busy]=\"loading() !== false ? 'true' : null\">\n @if (caption()) {\n <caption class=\"visually-hidden\">\n {{\n caption()\n }}\n </caption>\n }\n\n <thead #tableHead>\n <tr>\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"selectAllLabel()\"\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n (change)=\"onToggleAll($event)\" />\n </th>\n }\n\n @if (expandableRows()) {\n <th\n scope=\"col\"\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n @if (expandAllVisible()) {\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-label]=\"expandAllLabel()\"\n (click)=\"onToggleExpandAll()\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"allExpanded()\"\n [size]=\"16\" />\n </button>\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <th\n scope=\"col\"\n dsTooltipWhenClipped\n [class]=\"headerClasses(col)\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.fit-content]=\"fitsContent(col)\"\n [style.width.px]=\"columnWidth(col)\"\n [style.min-width.px]=\"columnWidth(col)\"\n [style.max-width.px]=\"columnWidth(col)\"\n [attr.aria-sort]=\"ariaSort(col)\"\n [attr.data-col-key]=\"col.key\"\n [dsTooltip]=\"col.label\">\n @if (sortableCol(col)) {\n <button\n type=\"button\"\n class=\"th-label\"\n (click)=\"onSort(col)\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n\n <ds-icon\n class=\"sort-icon\"\n [name]=\"sortIcon(col)\"\n [size]=\"12\">\n </ds-icon>\n </button>\n } @else {\n <span class=\"th-label\">\n @if (col.label) {\n {{ col.label }}\n } @else if (col.screenReaderLabel) {\n <span class=\"visually-hidden\">\n {{ col.screenReaderLabel }}\n </span>\n }\n </span>\n }\n\n @if (hasColumnFilter(col)) {\n <button\n type=\"button\"\n class=\"col-filter-btn\"\n aria-haspopup=\"dialog\"\n [class.active]=\"isColumnFiltered(col)\"\n [attr.aria-expanded]=\"isFilterPanelOpen(col)\"\n [attr.aria-label]=\"intl().table.filterColumn(col.label)\"\n (click)=\"onColumnFilterClick(col, $event)\">\n <ds-icon\n name=\"filter\"\n [size]=\"12\" />\n </button>\n }\n\n @if (layout.resize(); as resize) {\n @let range = resize.range(col);\n\n <span\n class=\"col-resize\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"intl().table.resizeColumn(col.label)\"\n [attr.aria-valuenow]=\"range?.now ?? null\"\n [attr.aria-valuemin]=\"range?.min ?? null\"\n [attr.aria-valuemax]=\"range?.max ?? null\"\n (focus)=\"resize.onFocus(col, $event)\"\n (blur)=\"resize.onBlur()\"\n (pointerdown)=\"resize.onStart(col, $event)\"\n (pointermove)=\"resize.onMove($event)\"\n (pointerup)=\"resize.onEnd()\"\n (pointercancel)=\"resize.onEnd()\"\n (keydown)=\"resize.onKey(col, $event)\">\n </span>\n }\n </th>\n }\n\n @if (hasUtilityColumn()) {\n <th\n scope=\"col\"\n class=\"actions-col\">\n <ng-container #headerUtilityAnchor />\n\n @if (!layout.wantsUtilityColumn()) {\n <span class=\"visually-hidden\">\n {{ intl().table.actions }}\n </span>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Covers what the scrim covers, else a keyboard user could open a row that is\n mid-replacement. The header stays live: re-sorting puts the scrim up. -->\n <tbody [attr.inert]=\"isOverlayLoading() ? '' : null\">\n @if (isSkeletonLoading()) {\n @for (_ of skeletonArray(); track $index; let rowIndex = $index) {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: rowIndex }\">\n </ng-container>\n }\n } @else if (showsLoadingSpace()) {\n <!-- Height, not a message: without it the tbody is empty while loading, the table\n collapses onto its header and the overlay spinner floats over nothing. -->\n <tr aria-hidden=\"true\">\n <td\n class=\"loading-space\"\n [attr.colspan]=\"expandedColspan()\">\n </td>\n </tr>\n } @else if (showsEmptyRow()) {\n <tr>\n <td\n #emptyCell\n class=\"empty\"\n [attr.colspan]=\"expandedColspan()\">\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\">\n </ng-container>\n } @else {\n <ng-content select=\"[empty]\"></ng-content>\n }\n </td>\n </tr>\n } @else {\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padTop\">\n </tr>\n }\n\n @for (slot of rowSlots(); track slot.index) {\n @if (slot.row; as row) {\n <tr\n [class.selected]=\"isSelected(row)\"\n [class.expanded]=\"isExpanded(row)\"\n [class.clickable]=\"rowInteractive()\"\n [class.stripe]=\"isStriped(slot.index)\"\n [class.active]=\"rowKey(row) === activeRowId()\"\n [attr.aria-current]=\"\n rowKey(row) === activeRowId() ? 'true' : null\n \"\n [attr.tabindex]=\"rowInteractive() ? 0 : null\"\n [attr.aria-label]=\"rowInteractive() ? rowAriaLabel(row) : null\"\n (mousedown)=\"onRowMousedown()\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowKey(row, $event)\"\n (keydown.space)=\"onRowKey(row, $event)\">\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [attr.aria-label]=\"\n intl().table.selectRow(rowAriaLabel(row))\n \"\n [checked]=\"isSelected(row)\"\n (change)=\"onToggleRow(row, $event)\"\n (click)=\"$event.stopPropagation()\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n <button\n type=\"button\"\n class=\"expand-btn\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"\n isExpanded(row)\n ? intl().table.collapseRow\n : intl().table.expandRow\n \"\n (click)=\"onToggleExpand(row, $event)\">\n <ds-icon\n class=\"expand-chev\"\n name=\"chevronRight\"\n [class.is-expanded]=\"isExpanded(row)\"\n [size]=\"16\" />\n </button>\n </td>\n }\n\n @for (\n col of visibleColumns();\n track col.key;\n let first = $first\n ) {\n <td\n dsTooltipTextSelector=\":scope > .cell-clip\"\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\"\n [class.editable-cell]=\"col.editable\"\n [class.interactive-cell]=\"col.interactive\"\n [class.fit-content]=\"fitsContent(col)\"\n [dsTooltipWhenClipped]=\"!!col.truncate\"\n [dsTooltip]=\"col.truncate ? cellValue(row, col) : ''\"\n (dblclick)=\"startEdit(row, col, $event)\">\n @if (isEditing(row, col)) {\n <input\n #editInput\n type=\"text\"\n class=\"cell-edit\"\n [value]=\"editDraft()\"\n (input)=\"onEditInput($event)\"\n (click)=\"$event.stopPropagation()\"\n (keydown.enter)=\"commitEdit(row, col)\"\n (keydown.escape)=\"cancelEdit()\"\n (blur)=\"commitEdit(row, col)\" />\n } @else if (cellTemplate(col); as tpl) {\n @if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n }\n } @else if (col.truncate) {\n <span\n class=\"cell-clip\"\n [style.max-width.px]=\"clipWidth(col)\">\n @if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </span>\n } @else if (cellLink(row, col); as target) {\n <a\n class=\"cell-link\"\n [routerLink]=\"target\"\n (click)=\"$event.stopPropagation()\">\n {{ cellValue(row, col) }}\n </a>\n } @else {\n {{ cellValue(row, col) }}\n }\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\">\n @if (hasRowActions() && hasActionsFor(row)) {\n <button\n type=\"button\"\n class=\"row-actions-btn\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isMenuOpenFor(row)\"\n [attr.aria-label]=\"\n intl().table.actionsFor(rowAriaLabel(row))\n \"\n (click)=\"onRowMenuClick(row, $event)\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\">\n <ds-icon\n name=\"moreV\"\n [size]=\"16\" />\n </button>\n }\n </td>\n }\n </tr>\n\n @if (\n expandableRows() &&\n isExpanded(row) &&\n rowExpandTemplate() &&\n !virtualizing()\n ) {\n <tr class=\"expand-panel-row\">\n <td\n class=\"expand-panel-cell\"\n [attr.colspan]=\"expandedColspan()\">\n <div class=\"expand-panel-inner\">\n <div class=\"expand-panel-content\">\n <ng-container\n [ngTemplateOutlet]=\"rowExpandTemplate()!\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n row: row,\n }\">\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n }\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"skeletonRow\"\n [ngTemplateOutletContext]=\"{ $implicit: slot.index }\">\n </ng-container>\n }\n }\n\n @if (virtualWindow(); as window) {\n <tr\n class=\"spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"window.padBottom\">\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n</ds-loading-overlay>\n\n@if (stickyScrollbarResolved()) {\n <div\n #hscrollProxy\n class=\"hscroll-proxy\"\n aria-hidden=\"true\"\n [class.hscroll-hidden]=\"!hscrollNeeded()\">\n <div\n class=\"hscroll-spacer\"\n [style.width.px]=\"hscrollContentWidth()\">\n </div>\n </div>\n}\n\n@if (pageSize(); as size) {\n <div class=\"pagination-footer\">\n <ds-pagination\n [total]=\"total() ?? filteredData().length\"\n [pageSize]=\"size\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [showPageSize]=\"showPageSize()\"\n [showLabel]=\"showLabel()\"\n [size]=\"paginationSize()\"\n [layout]=\"paginationLayout()\"\n [loading]=\"isSkeletonLoading()\"\n [(currentPage)]=\"page\"\n (pageSizeChange)=\"pageSize.set($event)\" />\n </div>\n}\n\n@if (hasAnyColumnFilter()) {\n <ds-popover\n #columnFilterPopover\n align=\"start\"\n panelRole=\"dialog\"\n [panelLabel]=\"intl().table.filterValues\">\n @if (filterColumn()) {\n @if (headerFilterFor(filterColumn()!); as projected) {\n <div class=\"col-filter col-filter-custom\">\n <ng-container\n [ngTemplateOutlet]=\"projected.template\"\n [ngTemplateOutletContext]=\"headerFilterContext(filterColumn()!)\" />\n </div>\n } @else {\n <div class=\"col-filter\">\n <input\n type=\"text\"\n class=\"col-filter-search\"\n [placeholder]=\"intl().table.filterSearch\"\n [value]=\"filterSearch()\"\n (input)=\"onFilterSearch($event)\"\n (click)=\"$event.stopPropagation()\" />\n\n <div class=\"col-filter-list\">\n @for (value of filterValues(); track value) {\n <label class=\"col-filter-option\">\n <input\n type=\"checkbox\"\n class=\"check\"\n [checked]=\"isFilterValueChecked(value)\"\n (change)=\"toggleFilterValue(value)\" />\n {{ value || intl().table.emptyValue }}\n </label>\n } @empty {\n <div class=\"col-filter-empty\">\n {{ intl().table.noMatches }}\n </div>\n }\n </div>\n\n <div class=\"col-filter-footer\">\n <span class=\"col-filter-count\">\n {{ intl().table.selectedCount(filterSelectedCount()) }}\n </span>\n\n <button\n type=\"button\"\n class=\"col-reset\"\n (click)=\"clearColumnFilter()\">\n {{ intl().table.clear }}\n </button>\n </div>\n </div>\n }\n }\n </ds-popover>\n}\n\n<ng-container #overlaysAnchor />\n\n<ng-template\n #columnWidthControls\n let-col>\n @if (layout.resize(); as resize) {\n <span class=\"col-width\">\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.narrowColumn(col.label)\"\n (click)=\"resize.step(col, -16)\">\n <ds-icon\n name=\"minus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn\"\n [attr.aria-label]=\"intl().table.widenColumn(col.label)\"\n (click)=\"resize.step(col, 16)\">\n <ds-icon\n name=\"plus\"\n [size]=\"14\" />\n </button>\n\n <button\n type=\"button\"\n class=\"col-width-btn col-width-auto\"\n [attr.aria-label]=\"intl().table.fitColumn(col.label)\"\n (click)=\"resize.step(col, 'auto')\">\n {{ intl().table.fit }}\n </button>\n </span>\n }\n</ng-template>\n\n@if (hasRowActions()) {\n <ds-popover\n #rowMenuPopover\n align=\"end\">\n <ds-menu>\n @for (\n action of visibleRowActions();\n track action.id;\n let first = $first\n ) {\n @if (action.divider && !first) {\n <ds-menu-divider />\n }\n\n <ds-menu-item\n [icon]=\"action.icon ?? null\"\n [error]=\"action.error ?? false\"\n [disabled]=\"isActionDisabled(action)\"\n [description]=\"actionReason(action)\"\n (pressed)=\"onRowAction(action)\">\n {{ actionLabel(action) }}\n </ds-menu-item>\n }\n </ds-menu>\n </ds-popover>\n}\n\n@if (selectable() && anySelected()) {\n <div class=\"bulk-bar\">\n <span class=\"count\">\n {{ intl().table.selectedCount(selectedIds().size) }}\n </span>\n\n <span class=\"sep\"></span>\n\n <ng-content select=\"[bulk-actions]\"></ng-content>\n </div>\n}\n\n<!-- One skeleton row for loading=\"skeleton\" and unfilled lazy-window gaps. `$implicit` is the\n row index, which skeletonWidth varies the bar lengths from. -->\n<ng-template\n #skeletonRow\n let-rowIndex>\n <tr>\n @if (selectable()) {\n <td class=\"select-col pin-select\">\n <ds-skeleton\n width=\"14px\"\n height=\"14px\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (expandableRows()) {\n <td\n class=\"expand-col\"\n [class.pin-expand]=\"stickyFirstColumn()\">\n </td>\n }\n\n @for (col of visibleColumns(); track col.key; let first = $first) {\n <td\n [class.numeric]=\"col.align === 'right'\"\n [class.pin-first]=\"first && stickyFirstColumn()\">\n <ds-skeleton\n height=\"14px\"\n [width]=\"skeletonWidth(col, rowIndex)\"\n [inline]=\"true\" />\n </td>\n }\n\n @if (hasUtilityColumn()) {\n <td class=\"actions-col\"></td>\n }\n </tr>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_checkbox-bg-color: var(--ds-checkbox-bg-color, var(--surface-default));--_checkbox-border-color: var(--ds-checkbox-border-color, var(--border-strong));--_checkbox-hover-border-color: var(--ds-checkbox-hover-border-color, var(--accent));--_checkbox-selected-bg-color: var(--ds-checkbox-selected-bg-color, var(--accent));--_checkbox-selected-border-color: var(--ds-checkbox-selected-border-color, var(--accent));--_checkbox-radius: var(--ds-checkbox-radius, var(--ds-radius-inner));--_checkbox-glyph: var(--check-size);--_table-head-height: var(--ds-table-head-height, var(--_table-head-measured, 40px));display:block;position:relative}.check{appearance:none;width:var(--_checkbox-glyph, var(--check-size));height:var(--_checkbox-glyph, var(--check-size));border:var(--check-bw) solid var(--_checkbox-border-color, var(--ds-checkbox-border-color, var(--border-strong)));background:var(--_checkbox-bg-color, var(--ds-checkbox-bg-color, var(--surface-default)));cursor:pointer;display:inline-grid;place-items:center;vertical-align:middle;flex-shrink:0;margin:0;border-radius:var(--_checkbox-radius, var(--ds-checkbox-radius, var(--ds-radius-inner)));transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.check:hover:not(:disabled){border-color:var(--_checkbox-hover-border-color, var(--ds-checkbox-hover-border-color, var(--accent)))}.check:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.check:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.check{color:var(--icon-on-primary)}.check:after{content:\"\";--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.check:after{background-color:CanvasText}}.check:after{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.check:checked{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:checked:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.check:indeterminate{background:var(--_checkbox-selected-bg-color, var(--ds-checkbox-selected-bg-color, var(--accent)));border-color:var(--_checkbox-selected-border-color, var(--ds-checkbox-selected-border-color, var(--accent)))}.check:indeterminate:after{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing);width:var(--check-indet-w);height:var(--check-indet-h);border-radius:var(--ds-radius-inner);-webkit-mask:none;mask:none}.check:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.loading-space{height:calc((var(--_table-cell-padding-y) * 2 + var(--line-height-base) * var(--font-size-s)) * 3)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(.bordered) .scroll-wrap{border:var(--border-width-default) solid var(--_table-border);border-radius:var(--_table-radius)}.scroll-wrap{--_table-border: var(--ds-table-border, var(--border-default));--_table-radius: var(--ds-table-radius, var(--ds-radius-control));--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));position:relative;width:100%;overflow:auto hidden;--focus-ring-offset: calc(-1 * var(--focus-ring-width));-webkit-overflow-scrolling:touch;background:var(--surface-default);box-sizing:border-box}.scroll-wrap.scroll-y{overflow-y:auto}:host(.sticky-scrollbar) .scroll-wrap{scrollbar-width:none}:host(.sticky-scrollbar) .scroll-wrap::-webkit-scrollbar{display:none}:host(.resizable) thead th{position:relative;overflow:hidden}@media(hover:none)and (pointer:coarse){.col-resize{display:none}}.col-resize{position:absolute;inset-block:0;right:0;width:var(--space-2);cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none}.col-resize:after{content:\"\";position:absolute;inset-block:var(--space-2);right:0;width:var(--border-width-default);background-color:transparent;transition:background-color var(--duration-fast) var(--ease-standard)}.col-resize:hover:after,.col-resize:active:after,.col-resize:focus-visible:after{background-color:var(--_table-sort-active-icon-color)}@media not (forced-colors:active){.col-resize:focus-visible{outline:none}}.col-resize:focus-visible:after{width:var(--border-width-strong)}.hscroll-proxy{position:sticky;bottom:var(--ds-table-sticky-scrollbar-offset, var(--_table-sticky-scrollbar-offset, calc(-1 * var(--_table-scroller-pad-bottom, 0px))));overflow:auto hidden}.hscroll-spacer{height:1px}.hscroll-hidden{display:none}.table{--_table-min-width: var(--ds-table-min-width, 0);--_table-bg-color: var(--ds-table-bg-color, var(--surface-default));--_table-row-hover-bg-color: var(--ds-table-row-hover-bg-color, var(--surface-secondary));--_table-row-selected-bg-color: var(--ds-table-row-selected-bg-color, var(--accent-subtitle));--_table-row-pressed-bg-color: var(--ds-table-row-pressed-bg-color, var(--surface-muted));--_table-row-active-bg-color: var(--ds-table-row-active-bg-color, var(--accent-subtitle));--_table-row-stripe-bg-color: var(--ds-table-row-stripe-bg-color, var(--surface-secondary));--_table-cell-link-color: var(--ds-table-cell-link-color, var(--accent));--_table-cell-link-decoration: var(--ds-table-cell-link-decoration, underline);--_table-head-text-color: var(--ds-table-head-text-color, var(--text-secondary));--_table-head-bg-color: var(--ds-table-head-bg-color, var(--surface-secondary));--_table-head-font-size: var(--ds-table-head-font-size, var(--font-size-xs));--_table-divider: var(--ds-table-divider, var(--border-divider));--_table-sort-active-icon-color: var(--ds-table-sort-active-icon-color, var(--accent));--_table-icon-button-color: var(--ds-table-icon-button-color, var(--icon-default));--_table-icon-button-color-hover: var(--ds-table-icon-button-color-hover, var(--icon-strong));--_table-icon-button-focus-color: var(--ds-table-icon-button-focus-color, var(--accent));--_table-cell-padding-x: var(--ds-table-cell-padding-x, var(--table-cell-pad-x));--_table-cell-padding-y: var(--ds-table-cell-padding-y, var(--table-cell-pad-y));--_table-cell-padding-top: var(--ds-table-cell-padding-top, var(--_table-cell-padding-y));--_table-cell-padding-right: var(--ds-table-cell-padding-right, var(--_table-cell-padding-x));--_table-cell-padding-bottom: var(--ds-table-cell-padding-bottom, var(--_table-cell-padding-y));--_table-cell-padding-left: var(--ds-table-cell-padding-left, var(--_table-cell-padding-x));--_table-utility-column-width: var(--ds-table-utility-column-width, var(--space-6));--_table-utility-column-padding-left: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-left));--_table-utility-column-padding-right: var(--ds-table-utility-column-padding-x, var(--_table-cell-padding-right));--_table-head-padding-top: var(--ds-table-head-padding-top, var(--table-head-pad-y));--_table-head-padding-bottom: var(--ds-table-head-padding-bottom, var(--table-head-pad-y));--_table-head-border-color: var(--ds-table-head-border-color, var(--_table-divider));--_table-head-font-weight: var(--ds-table-head-font-weight, var(--font-weight-bold));--_table-head-letter-spacing: var(--ds-table-head-letter-spacing, var(--letter-spacing-wider));width:100%;border-collapse:collapse;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--_table-bg-color)}.table th.fit-content,.table td.fit-content{width:1%;white-space:nowrap}.table thead th{text-align:left;padding:var(--_table-head-padding-top) var(--_table-cell-padding-right) var(--_table-head-padding-bottom) var(--_table-cell-padding-left);font:var(--_table-head-font-weight) var(--_table-head-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_table-head-letter-spacing);text-transform:uppercase;color:var(--_table-head-text-color);background-color:var(--_table-head-bg-color);border-bottom:var(--border-width-default) solid var(--_table-head-border-color);white-space:nowrap}.table thead th .th-label{display:inline-flex;align-items:center;vertical-align:middle;appearance:none;background:none;border:0;margin:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;text-align:left}.table thead th button.th-label{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color var(--duration-fast) var(--ease-standard)}.table thead th button.th-label:hover{color:var(--text-secondary)}.table thead th button.th-label:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.table thead th .sort-icon{display:inline-block;width:var(--sort-ic-size);height:var(--sort-ic-size);margin-left:var(--sort-ic-gap);vertical-align:middle;transform:translateY(-1px);color:var(--icon-default);opacity:var(--sort-ic-opacity-idle);transition:opacity var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.table thead th .sort-icon .icon{width:var(--sort-ic-size);height:var(--sort-ic-size);display:block}.table thead th.sorted-asc .sort-icon,.table thead th.sorted-desc .sort-icon{opacity:1;color:var(--_table-sort-active-icon-color)}.table thead th.numeric{text-align:right}.table thead th.select-col,.table thead th.expand-col{width:var(--space-10)}.table thead th.actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table.sticky-header thead th{position:sticky;top:0}.table.sticky-header thead th:not(.pin-select,.pin-first,.pin-expand){z-index:var(--table-sticky-header-z)}.table tbody td{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left);line-height:var(--line-height-flat);transition:background-color var(--duration-fast) var(--ease-standard);box-shadow:inset 0 calc(-1 * var(--border-width-default)) 0 var(--_table-divider);vertical-align:middle}.table tbody td.numeric{text-align:right}.table tbody td.empty{text-align:center;color:var(--text-tertiary);padding:var(--space-4)}.table tbody tr:last-child td{box-shadow:none}.table tbody tr.clickable:not(.active):hover td{background-color:var(--_table-row-hover-bg-color)}.table tbody tr.clickable:hover td.interactive-cell,.table tbody tr td .cell-link{color:var(--_table-cell-link-color);text-decoration:var(--_table-cell-link-decoration)}.table tbody tr.selected td{background-color:var(--_table-row-selected-bg-color)}.table tbody tr.active td{background-color:var(--_table-row-active-bg-color)}.table tbody tr.clickable:active td{background-color:var(--_table-row-pressed-bg-color)}.table tbody tr.clickable{cursor:pointer}.table tbody tr.clickable{border-radius:var(--focus-ring-radius)}.table tbody tr.clickable:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table tbody .expand-col{width:var(--space-10)}.table tbody .actions-col{width:var(--_table-utility-column-width);padding-left:var(--_table-utility-column-padding-left);padding-right:var(--_table-utility-column-padding-right)}.table tbody .expand-panel-cell{padding:var(--_table-cell-padding-top) var(--_table-cell-padding-right) var(--_table-cell-padding-bottom) var(--_table-cell-padding-left)}.table tbody .expand-panel-inner{display:grid;grid-template-rows:1fr;animation:ds-table-expand var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table tbody .expand-panel-inner{animation:none}}.table tbody .expand-panel-content{overflow:hidden;min-height:0}@keyframes ds-table-expand{0%{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}.table tbody .cell-clip{display:block;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table .expand-chev{display:block;transition:transform var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.table .expand-chev{transition:none}}.table .expand-chev.is-expanded{transform:rotate(90deg)}.table .expand-btn,.table .row-actions-btn{display:flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);padding:0;border:0;background:none;cursor:pointer;color:var(--_table-icon-button-color);border-radius:var(--ds-radius-inner);transition:color var(--duration-fast) var(--ease-standard)}.table .expand-btn:hover,.table .row-actions-btn:hover{color:var(--_table-icon-button-color-hover)}.table .expand-btn:focus-visible,.table .row-actions-btn:focus-visible{--focus-ring-color: var(--_table-icon-button-focus-color);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.table.compact{--table-cell-pad-x: var(--space-3);--table-cell-pad-y: var(--space-2);--table-head-pad-y: var(--space-2)}.table{min-width:var(--_table-min-width)}.table.zebra:not(.virtual) tbody tr:nth-child(odd) td{background-color:var(--_table-row-stripe-bg-color)}.table.zebra.virtual tbody tr.stripe td{background-color:var(--_table-row-stripe-bg-color)}.table.virtual{table-layout:fixed}.table.virtual tbody tr:not(.spacer){height:var(--_table-virtual-row-h)}.table.virtual tbody td{overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.table tbody tr.spacer{padding:0;border:0;background:none}.table tbody tr.spacer:hover td{background-color:transparent}.col-width{display:inline-flex;gap:var(--space-1);align-items:center;margin-left:auto}.col-width-auto{width:auto;padding-inline:var(--space-2);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}.col-width-btn{display:inline-flex;padding:0;border:0;background:none;color:var(--icon-default);cursor:pointer}.col-width-btn:hover:not(:disabled){color:var(--icon-strong)}.col-width-btn:disabled{color:var(--text-disabled);cursor:default}.col-reset{margin-top:var(--space-1);padding:0;border:0;background:none;color:var(--accent);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);cursor:pointer;text-align:left}.col-reset:hover{text-decoration:underline}.col-filter-btn{display:inline-flex;margin-left:var(--space-1);padding:0;border:0;background:none;color:var(--icon-default);opacity:.5;cursor:pointer;vertical-align:middle;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.col-filter-btn:hover{opacity:1;color:var(--icon-strong)}.col-filter-btn.active{opacity:1;color:var(--_table-sort-active-icon-color)}.col-filter{display:grid;gap:var(--space-2);min-width:180px}.col-filter-search{width:100%;box-sizing:border-box;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--border-default);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.col-filter-search:focus-visible{border-color:var(--accent);outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.col-filter-list{display:grid;gap:var(--space-1);max-height:240px;overflow-y:auto}.col-filter-option{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);cursor:pointer}.col-filter-empty{color:var(--text-tertiary);font-size:var(--font-size-s);padding:var(--space-1) 0}.col-filter-footer{display:flex;align-items:center;justify-content:space-between;padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-divider)}.col-filter-count{color:var(--text-tertiary);font-size:var(--font-size-xs)}.col-filter-footer .col-reset{margin-top:0}.editable-cell{cursor:text}.cell-edit{width:100%;box-sizing:border-box;margin:calc(-1 * var(--space-1)) 0;padding:var(--space-1) var(--space-2);border:var(--border-width-default) solid var(--accent);border-radius:var(--ds-radius-inner);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-primary);background-color:var(--surface-default)}.cell-edit:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.pinned){--_table-select-column-width: var(--ds-table-select-column-width, var(--space-10))}:host(.pinned) .table{border-collapse:separate;border-spacing:0}:host(.pinned) .table tbody td{box-shadow:none;border-bottom:var(--border-width-default) solid var(--_table-divider)}:host(.pinned) .table tbody tr:last-child td{border-bottom:0}:host(.pinned) .pin-select,:host(.pinned) .pin-first{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned) thead .pin-select,:host(.pinned) thead .pin-first{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned) tbody tr.clickable:not(.active):hover .pin-first,:host(.pinned) tbody tr.clickable:not(.active):hover .pin-select{background-color:var(--_table-row-hover-bg-color)}:host(.pinned) tbody tr.selected .pin-first,:host(.pinned) tbody tr.selected .pin-select{background-color:var(--_table-row-selected-bg-color)}:host(.pinned) tbody tr.active .pin-first,:host(.pinned) tbody tr.active .pin-select{background-color:var(--_table-row-active-bg-color)}:host(.pinned) tbody tr.clickable:active .pin-first,:host(.pinned) tbody tr.clickable:active .pin-select{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.selectable) .pin-first{left:var(--_table-select-column-width)}:host(.pinned.expandable){--_table-expand-column-width: var(--ds-table-expand-column-width, var(--space-10))}:host(.pinned.expandable) .pin-expand{position:sticky;left:0;z-index:var(--table-sticky-col-z);background-color:var(--_table-bg-color)}:host(.pinned.expandable) thead .pin-expand{z-index:var(--table-sticky-corner-z);background-color:var(--_table-head-bg-color)}:host(.pinned.expandable) tbody tr.clickable:not(.active):hover .pin-expand{background-color:var(--_table-row-hover-bg-color)}:host(.pinned.expandable) tbody tr.selected .pin-expand{background-color:var(--_table-row-selected-bg-color)}:host(.pinned.expandable) tbody tr.active .pin-expand{background-color:var(--_table-row-active-bg-color)}:host(.pinned.expandable) tbody tr.clickable:active .pin-expand{background-color:var(--_table-row-pressed-bg-color)}:host(.pinned.expandable) .pin-first{left:var(--_table-expand-column-width)}:host(.pinned.selectable.expandable) .pin-expand{left:var(--_table-select-column-width)}:host(.pinned.selectable.expandable) .pin-first{left:calc(var(--_table-select-column-width) + var(--_table-expand-column-width))}.pagination-footer{--_table-footer-padding-y: var(--ds-table-footer-padding-y, var(--space-3));--_table-footer-padding-top: var(--ds-table-footer-padding-top, var(--_table-footer-padding-y));--_table-footer-padding-bottom: var(--ds-table-footer-padding-bottom, var(--_table-footer-padding-y));padding-block:var(--_table-footer-padding-top) var(--_table-footer-padding-bottom);padding-left:var(--ds-table-cell-padding-left, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));padding-right:var(--ds-table-cell-padding-right, var(--ds-table-cell-padding-x, var(--table-cell-pad-x)));border-top:var(--border-width-default) solid var(--ds-table-divider, var(--border-divider))}.bulk-bar{position:sticky;bottom:calc(var(--bulk-bar-offset) - var(--_table-scroller-pad-bottom, 0px));display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:var(--surface-inverted);color:var(--text-inverted);border-radius:var(--radius-lg);box-shadow:var(--shadow-toast);margin:var(--space-4) auto 0;width:fit-content}.bulk-bar .count{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans)}.bulk-bar .sep{width:var(--border-width-default);height:var(--space-4);background:var(--border-inverted)}.bulk-bar{--ds-button-label-color: var(--text-inverted);--ds-button-bg-color: transparent;--ds-button-bg-color-hover: var(--surface-inverted-hover);--ds-button-bg-color-active: var(--surface-inverted-hover)}.table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2)}.table-toolbar:not(:has(.toolbar-slot>*,>ds-button)){display:none}.toolbar-slot{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:var(--space-2);min-width:0}.toolbar-slot ::ng-deep>:only-child{flex:1 1 auto;min-width:0}\n"] }]
1649
1463
  }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], rowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowId", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], stickyHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyHeader", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], zebra: [{ type: i0.Input, args: [{ isSignal: true, alias: "zebra", required: false }] }], animateHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "animateHeight", required: false }] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], sortKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortKey", required: false }] }], sortKeyChange: [{ type: i0.Output, args: ["sortKeyChange"] }], sortDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortDirection", required: false }] }], sortDirectionChange: [{ type: i0.Output, args: ["sortDirectionChange"] }], sortingOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortingOrder", required: false }] }], sortAnnouncement: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortAnnouncement", required: false }] }], rangeAnnouncement: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeAnnouncement", required: false }] }], skeletonRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonRows", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], rowInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowInteractive", required: false }] }], activeRowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRowId", required: false }] }], filterQuery: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterQuery", required: false }] }], columnFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnFilters", required: false }] }, { type: i0.Output, args: ["columnFiltersChange"] }], persistLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistLayout", required: false }] }], storageKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "storageKey", required: false }] }], stickyScrollbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyScrollbar", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }, { type: i0.Output, args: ["pageSizeChange"] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], showPageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageSize", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], paginationSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginationSize", required: false }] }], paginationLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginationLayout", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], scrollToTopOnPageChange: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollToTopOnPageChange", required: false }] }], sortMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortMode", required: false }] }], filterMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMode", required: false }] }], columnFilterOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnFilterOptions", required: false }] }], stickyScrollbarOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyScrollbarOffset", required: false }] }], stickyFirstColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyFirstColumn", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualRowSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualRowSize", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], rowActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowActions", required: false }] }], rowActionSelected: [{ type: i0.Output, args: ["rowActionSelected"] }], cellEdited: [{ type: i0.Output, args: ["cellEdited"] }], cellTemplateMap: [{ type: i0.Input, args: [{ isSignal: true, alias: "cellTemplateMap", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], expandableRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandableRows", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], expandMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandMode", required: false }] }], expandAllToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandAllToggle", required: false }] }], rowExpanded: [{ type: i0.Output, args: ["rowExpanded"] }], rowCollapsed: [{ type: i0.Output, args: ["rowCollapsed"] }], rowExpandTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowExpandTemplate", required: false }] }], cellTemplateDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CellTemplateDirective), { isSignal: true }] }], emptyCell: [{ type: i0.ViewChild, args: ['emptyCell', { isSignal: true }] }], toolbarAnchor: [{ type: i0.ViewChild, args: ['toolbarAnchor', { ...{
1650
1464
  read: ViewContainerRef,
1651
1465
  }, isSignal: true }] }], headerUtilityAnchor: [{ type: i0.ViewChild, args: ['headerUtilityAnchor', { ...{