@ids-group-ltd/ids-design-system 0.13.3 → 0.14.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 (312) hide show
  1. package/CHANGELOG.md +1104 -14
  2. package/components.md +567 -34
  3. package/design-system.md +9 -0
  4. package/docs/agent/INDEX.md +57 -15
  5. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +1 -1
  6. package/docs/agent/charts/column-series-component.md +8 -0
  7. package/docs/agent/charts/ds-bar-chart.md +6 -1
  8. package/docs/agent/charts/ds-chart-data-table.md +10 -0
  9. package/docs/agent/charts/ds-chart.md +10 -0
  10. package/docs/agent/charts/ds-column-chart.md +5 -1
  11. package/docs/agent/charts/ds-funnel-chart.md +5 -1
  12. package/docs/agent/charts/ds-heatmap-chart.md +20 -0
  13. package/docs/agent/charts/ds-line-chart.md +8 -4
  14. package/docs/agent/charts/{ds-donut-chart.md → ds-pie-chart.md} +10 -6
  15. package/docs/agent/charts/ds-scatter-chart.md +20 -0
  16. package/docs/agent/charts/ds-waterfall-chart.md +20 -0
  17. package/docs/agent/charts/line-series-component.md +8 -0
  18. package/docs/agent/charts/reference-label-component.md +8 -0
  19. package/docs/agent/charts/reference-line-component.md +8 -0
  20. package/docs/agent/charts/series-annotation-component.md +10 -0
  21. package/docs/agent/feedback/ds-alert.md +4 -0
  22. package/docs/agent/feedback/ds-avatar-group.md +4 -0
  23. package/docs/agent/feedback/ds-avatar.md +4 -0
  24. package/docs/agent/feedback/ds-badge.md +4 -0
  25. package/docs/agent/feedback/ds-banner.md +5 -1
  26. package/docs/agent/feedback/ds-bar.md +4 -0
  27. package/docs/agent/feedback/ds-description-item.md +8 -0
  28. package/docs/agent/feedback/ds-description-list.md +8 -0
  29. package/docs/agent/feedback/ds-empty-state.md +4 -0
  30. package/docs/agent/feedback/ds-list-item.md +8 -0
  31. package/docs/agent/feedback/ds-list.md +8 -0
  32. package/docs/agent/feedback/ds-loading-overlay.md +8 -0
  33. package/docs/agent/feedback/ds-skeleton.md +4 -0
  34. package/docs/agent/feedback/ds-spinner.md +4 -0
  35. package/docs/agent/feedback/ds-stat.md +4 -0
  36. package/docs/agent/feedback/ds-status-dot.md +4 -0
  37. package/docs/agent/feedback/ds-tag.md +4 -0
  38. package/docs/agent/feedback/ds-timeline-item.md +8 -0
  39. package/docs/agent/feedback/ds-toast-region.md +8 -0
  40. package/docs/agent/feedback/ds-toast.md +4 -0
  41. package/docs/agent/feedback/ds-tree.md +8 -0
  42. package/docs/agent/forms/ds-autocomplete.md +4 -0
  43. package/docs/agent/forms/ds-button-group.md +8 -0
  44. package/docs/agent/forms/ds-button.md +6 -2
  45. package/docs/agent/forms/ds-checkbox.md +4 -0
  46. package/docs/agent/forms/ds-color-picker.md +8 -0
  47. package/docs/agent/forms/ds-date-picker.md +5 -1
  48. package/docs/agent/forms/ds-dropzone.md +4 -0
  49. package/docs/agent/forms/ds-field-group.md +8 -0
  50. package/docs/agent/forms/ds-filter-bar.md +8 -0
  51. package/docs/agent/forms/ds-icon-button.md +4 -0
  52. package/docs/agent/forms/ds-input.md +13 -1
  53. package/docs/agent/forms/ds-multi-select.md +4 -0
  54. package/docs/agent/forms/ds-number-stepper.md +4 -0
  55. package/docs/agent/forms/ds-otp-input.md +8 -0
  56. package/docs/agent/forms/ds-password-rules.md +8 -0
  57. package/docs/agent/forms/ds-radio-group.md +8 -0
  58. package/docs/agent/forms/ds-radio.md +4 -0
  59. package/docs/agent/forms/ds-search.md +5 -1
  60. package/docs/agent/forms/ds-segmented.md +8 -0
  61. package/docs/agent/forms/ds-select.md +4 -0
  62. package/docs/agent/forms/ds-slider.md +8 -0
  63. package/docs/agent/forms/ds-split-button.md +8 -0
  64. package/docs/agent/forms/ds-switch.md +7 -1
  65. package/docs/agent/forms/ds-textarea.md +6 -1
  66. package/docs/agent/forms/ds-time-picker.md +8 -0
  67. package/docs/agent/forms/ds-toggle-button.md +8 -0
  68. package/docs/agent/forms/filter-item-directive.md +8 -0
  69. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +4 -0
  70. package/docs/agent/navigation/ds-app-layout.md +6 -2
  71. package/docs/agent/navigation/ds-auth-layout.md +5 -1
  72. package/docs/agent/navigation/ds-breadcrumbs.md +4 -0
  73. package/docs/agent/navigation/ds-container.md +8 -0
  74. package/docs/agent/navigation/ds-divider.md +4 -0
  75. package/docs/agent/navigation/ds-inline.md +8 -0
  76. package/docs/agent/navigation/ds-page-footer.md +4 -0
  77. package/docs/agent/navigation/ds-page-header.md +5 -1
  78. package/docs/agent/navigation/ds-pagination.md +5 -1
  79. package/docs/agent/navigation/ds-sidenav-footer.md +8 -0
  80. package/docs/agent/navigation/ds-sidenav-group.md +4 -0
  81. package/docs/agent/navigation/ds-sidenav-item.md +4 -0
  82. package/docs/agent/navigation/ds-sidenav.md +4 -0
  83. package/docs/agent/navigation/ds-stack.md +8 -0
  84. package/docs/agent/navigation/ds-stepper.md +4 -0
  85. package/docs/agent/navigation/ds-tab.md +8 -0
  86. package/docs/agent/navigation/ds-tabs.md +5 -1
  87. package/docs/agent/overlays/ds-bottom-sheet.md +4 -0
  88. package/docs/agent/overlays/ds-drawer.md +4 -0
  89. package/docs/agent/overlays/ds-menu.md +4 -0
  90. package/docs/agent/overlays/ds-modal-card.md +4 -0
  91. package/docs/agent/overlays/ds-modal.md +4 -0
  92. package/docs/agent/overlays/ds-popover.md +4 -0
  93. package/docs/agent/overlays/ds-tooltip-panel.md +8 -0
  94. package/docs/agent/overlays/ds-tooltip.md +4 -0
  95. package/docs/agent/platform/ds-config.md +2 -1
  96. package/docs/agent/surfaces/ds-accordion-item.md +8 -0
  97. package/docs/agent/surfaces/ds-accordion.md +4 -0
  98. package/docs/agent/surfaces/ds-card.md +6 -2
  99. package/docs/agent/tables/ds-cell-template.md +8 -0
  100. package/docs/agent/tables/ds-table-columns.md +8 -0
  101. package/docs/agent/tables/ds-table-export.md +8 -0
  102. package/docs/agent/tables/ds-table.md +12 -4
  103. package/docs/agent/tables/header-filter-directive.md +8 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +10 -8
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +19 -19
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +7 -6
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +9 -6
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +140 -43
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +3 -3
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +7 -3
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +42 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -0
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +39 -14
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +727 -93
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -6
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +29 -12
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +5 -3
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +23 -16
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +25 -24
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +217 -0
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -0
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +183 -501
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +44 -8
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +7 -5
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +22 -3
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +382 -0
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -0
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -3
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +322 -0
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -0
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +6 -2
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +9 -4
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +7 -5
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +2 -2
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +23 -4
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  207. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  208. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +20 -5
  209. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  210. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +6 -6
  211. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  212. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +4 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  214. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +36 -28
  215. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  216. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  217. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  218. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  219. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  220. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -2
  221. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  222. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +5 -3
  223. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  224. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  225. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  226. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +34 -21
  227. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  228. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  229. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  230. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +252 -0
  231. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -0
  232. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +361 -17
  233. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  234. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +2 -3
  235. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  236. package/fesm2022/ids-group-ltd-ids-design-system.mjs +7 -3
  237. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  238. package/migrations/0.10.0.json +2 -2
  239. package/migrations/0.10.1.json +3 -3
  240. package/migrations/0.10.2.json +8 -28
  241. package/migrations/0.11.0.json +3 -3
  242. package/migrations/0.11.1.json +15 -15
  243. package/migrations/0.11.2.json +9 -9
  244. package/migrations/0.11.3.json +1 -1
  245. package/migrations/0.11.4.json +8 -8
  246. package/migrations/0.12.1.json +1 -1
  247. package/migrations/0.12.2.json +5 -2
  248. package/migrations/0.12.3.json +3 -3
  249. package/migrations/0.13.0.json +24 -32
  250. package/migrations/0.13.1.json +5 -5
  251. package/migrations/0.13.3.json +32 -10
  252. package/migrations/0.13.4.json +2492 -0
  253. package/migrations/0.14.0.json +591 -0
  254. package/migrations/0.5.0.json +11 -5
  255. package/migrations/0.7.0.json +5 -2
  256. package/migrations/0.8.0.json +4 -3
  257. package/migrations/0.9.0.json +6 -3
  258. package/migrations/README.md +7 -2
  259. package/package.json +41 -9
  260. package/styles/_chart-frame.scss +19 -6
  261. package/styles/_chart-motion.scss +17 -10
  262. package/styles/_check-box.scss +12 -12
  263. package/styles/_dropdown-overlay.scss +14 -10
  264. package/styles/_field-box.scss +3 -3
  265. package/styles/_field-label.scss +7 -7
  266. package/styles/_overlay-motion.scss +15 -7
  267. package/styles/_skeleton-shimmer.scss +4 -1
  268. package/styles/_table-controls.scss +3 -3
  269. package/styles/_tokens-charts.scss +40 -7
  270. package/styles/_tokens.scss +3 -3
  271. package/styles/_typography.scss +101 -101
  272. package/themes/dark/_theme.scss +13 -0
  273. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
  274. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
  275. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
  276. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
  277. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
  278. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +40 -9
  279. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
  280. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +8 -4
  281. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +34 -0
  282. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +15 -3
  283. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +345 -60
  284. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
  285. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -2
  286. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
  287. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
  288. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +8 -7
  289. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
  290. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +88 -139
  291. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +4 -0
  292. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
  293. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +18 -1
  294. package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +25 -23
  295. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
  296. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +189 -0
  297. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +2 -0
  298. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
  299. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
  300. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +1 -0
  301. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +10 -1
  302. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
  303. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +44 -33
  304. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +13 -0
  305. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  306. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
  307. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
  308. package/types/ids-group-ltd-ids-design-system-components.d.ts +142 -6
  309. package/types/ids-group-ltd-ids-design-system-core.d.ts +42 -10
  310. package/types/ids-group-ltd-ids-design-system.d.ts +14 -10
  311. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -382
  312. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
@@ -1,11 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, booleanAttribute, numberAttribute, output, contentChild, computed, signal, viewChildren, inject, ElementRef, afterNextRender, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { defaultChartFormat, CHART_SERIES_COLORS, formatPercent, shareOfTotal, describeSeries } from '@ids-group-ltd/ids-design-system/components';
3
+ import { resolveChartDefaults, CHART_SERIES_COLORS, formatPercent, shareOfTotal, describeSeries } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
5
- import { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';
6
5
  import { chartViewHeight, ColumnSeriesComponent, stackOffsets, ChartComponent, ReferenceLabelComponent, ReferenceLineComponent } from '@ids-group-ltd/ids-design-system/components/chart';
7
6
  import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
8
- import { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
+ import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
9
8
 
10
9
  function isSeriesList(data) {
11
10
  return data.length > 0 && 'data' in data[0];
@@ -112,11 +111,12 @@ class ColumnChartComponent {
112
111
  * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale
113
112
  * grouping with a K/M/B suffix past four digits. */
114
113
  valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
115
- frameResolved = resolveWithConfig(this.frame, (config) => config.chart?.frame, 'auto');
116
- dataTableResolved = resolveWithConfig(this.dataTable, (config) => config.chart?.dataTable, 'none');
117
- emptyTextResolved = resolveWithConfig(this.emptyText, (config) => config.chart?.emptyText, 'No data');
118
- errorTextResolved = resolveWithConfig(this.errorText, (config) => config.chart?.errorText, 'Could not load the data');
119
- valueFormatResolved = resolveWithConfig(this.valueFormat, (config) => config.chart?.valueFormat, defaultChartFormat);
114
+ defaults = resolveChartDefaults(this);
115
+ frameResolved = this.defaults.frame;
116
+ dataTableResolved = this.defaults.dataTable;
117
+ emptyTextResolved = this.defaults.emptyText;
118
+ errorTextResolved = this.defaults.errorText;
119
+ valueFormatResolved = this.defaults.valueFormat;
120
120
  /** Turns on the click affordance — the pointer cursor and any hover tint.
121
121
  * The click output fires whether or not this is set, so a consumer that
122
122
  * binds the output and forgets the flag still receives every click. */
@@ -150,7 +150,7 @@ class ColumnChartComponent {
150
150
  /** The value is printed ABOVE the column, so a panel anchored to the column alone opens on top
151
151
  * of that number. One text line of clearance puts it above both. */
152
152
  valueClearance = computed(() => this.showValues() ? 18 : 0, ...(ngDevMode ? [{ debugName: "valueClearance" }] : /* istanbul ignore next */ []));
153
- tooltipLingerResolved = resolveWithConfig(this.tooltipLingerMs, (config) => config.chart?.tooltipLingerMs, 0);
153
+ tooltipLingerResolved = this.defaults.tooltipLingerMs;
154
154
  geometry = signal(COLUMN_GEOMETRY, ...(ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []));
155
155
  /** Every state occupies the box the plot would have, so nothing on the page moves when the data
156
156
  * lands or the request fails. */
@@ -190,6 +190,8 @@ class ColumnChartComponent {
190
190
  .reduce((longest, series) => series.points.length > longest.length ? series.points : longest, [])
191
191
  .map((point) => point.label), ...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
192
192
  multiSeries = computed(() => this.resolvedSeries().length > 1, ...(ngDevMode ? [{ debugName: "multiSeries" }] : /* istanbul ignore next */ []));
193
+ /** The series named in the legend under the pointer, which fades the rest. */
194
+ highlightedSeries = signal(null, ...(ngDevMode ? [{ debugName: "highlightedSeries" }] : /* istanbul ignore next */ []));
193
195
  legendItems = computed(() => this.resolvedSeries().map((series) => ({
194
196
  id: series.key,
195
197
  label: series.label,
@@ -200,6 +202,21 @@ class ColumnChartComponent {
200
202
  axisFormat = computed(() => this.stack() === 'normalized'
201
203
  ? (value) => formatPercent(value, 1)
202
204
  : this.valueFormat(), ...(ngDevMode ? [{ debugName: "axisFormat" }] : /* istanbul ignore next */ []));
205
+ dataTableColumns = computed(() => [
206
+ ...(this.multiSeries() ? ['Series'] : []),
207
+ 'Label',
208
+ 'Value',
209
+ ...(this.partOfWhole() ? ['Share of total'] : []),
210
+ ], ...(ngDevMode ? [{ debugName: "dataTableColumns" }] : /* istanbul ignore next */ []));
211
+ dataTableRows = computed(() => this.tableRows().map((row) => ({
212
+ key: row.key,
213
+ cells: [
214
+ ...(this.multiSeries() ? [row.series] : []),
215
+ row.label,
216
+ row.formattedValue,
217
+ ...(this.partOfWhole() ? [row.share] : []),
218
+ ],
219
+ })), ...(ngDevMode ? [{ debugName: "dataTableRows" }] : /* istanbul ignore next */ []));
203
220
  tableRows = computed(() => {
204
221
  const format = this.valueFormatResolved();
205
222
  return this.resolvedSeries().flatMap((series) => {
@@ -231,7 +248,7 @@ class ColumnChartComponent {
231
248
  afterNextRender(() => this.geometry.set(readColumnGeometry(host.nativeElement)));
232
249
  }
233
250
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
234
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnChartComponent, isStandalone: true, selector: "ds-column-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_column-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "seriesRefs", predicate: ColumnSeriesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"column-chart\">\n @if (pinnedSeries()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"pinnedSeries()?.activeMark?.release()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonColumns(); track $index) {\n <ds-skeleton [height]=\"skeletonHeightPx()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <ds-chart\n frame=\"none\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n #mark=\"dsColumnSeries\"\n dsColumnSeries\n [data]=\"series.points\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n [dsChartTooltip]=\"mark.tooltipContext()\"\n [dsChartTooltipExtraGap]=\"valueClearance()\"\n [dsChartTooltipPreferBelow]=\"mark.activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"mark.activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend [items]=\"legendItems()\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n @if (multiSeries()) {\n <th scope=\"col\">\n Series\n </th>\n }\n\n <th scope=\"col\">\n Label\n </th>\n\n <th scope=\"col\">\n Value\n </th>\n\n @if (partOfWhole()) {\n <th scope=\"col\">\n Share of total\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track row.key) {\n <tr>\n @if (multiSeries()) {\n <td>\n {{ row.series }}\n </td>\n }\n\n <td>\n {{ row.label }}\n </td>\n\n <td>\n {{ row.formattedValue }}\n </td>\n\n @if (partOfWhole()) {\n <td>\n {{ row.share }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\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{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table,figcaption{-webkit-user-select:text;user-select:text}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:600}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}.empty{display:grid;place-items:center;min-block-size:var(--_column-chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.skeleton{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;column-gap:var(--_column-chart-column-gap)}.empty.is-error{color:var(--error)}:host{position:relative}.pin-reset{position:absolute;inset-block-start:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "tickCount", "min", "max", "plotHeight", "axisGutter", "valueSpace", "caption", "interactive", "summary", "frame", "loading", "emptyText", "error", "errorText", "valueFormat", "secondaryAxisMode", "axisColor", "secondaryAxisColor"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "component", type: ColumnSeriesComponent, selector: "g[dsColumnSeries]", inputs: ["data", "showValues", "interactive", "pinOnClick", "dimOthers", "staggerMs", "partOfWhole", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat", "columnWidthRatio", "slot", "slotCount", "offsets", "seriesColor", "seriesFill", "seriesLabel"], outputs: ["pointClicked"], exportAs: ["dsColumnSeries"] }, { kind: "component", type: ReferenceLabelComponent, selector: "g[dsReferenceLabel]", inputs: ["thresholds"] }, { kind: "component", type: ReferenceLineComponent, selector: "g[dsReferenceLine]", inputs: ["thresholds"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPreferBelow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
251
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnChartComponent, isStandalone: true, selector: "ds-column-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_column-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "seriesRefs", predicate: ColumnSeriesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"column-chart\">\n @if (pinnedSeries()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"pinnedSeries()?.activeMark?.release()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonColumns(); track $index) {\n <ds-skeleton [height]=\"skeletonHeightPx()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <ds-chart\n frame=\"none\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"highlightedSeries()\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\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{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}.empty{display:grid;place-items:center;min-block-size:var(--_column-chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.skeleton{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;column-gap:var(--_column-chart-column-gap)}:host{position:relative}.pin-reset{position:absolute;inset-block-end:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "tickCount", "min", "max", "cursor", "cursorPin", "tooltipLingerMs", "maxSecondary", "plotHeight", "axisGutter", "valueSpace", "caption", "interactive", "summary", "frame", "loading", "emptyText", "error", "errorText", "valueFormat", "secondaryAxisMode", "axisColor", "secondaryAxisColor", "axisLabel", "secondaryAxisLabel", "tooltipTemplate", "tooltipExtraGap"], exportAs: ["dsChart"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "component", type: ColumnSeriesComponent, selector: "g[dsColumnSeries]", inputs: ["data", "showValues", "interactive", "pinOnClick", "dimOthers", "staggerMs", "partOfWhole", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat", "columnWidthRatio", "slot", "slotCount", "offsets", "seriesColor", "seriesFill", "seriesLabel", "seriesKey", "highlighted"], outputs: ["pointClicked"], exportAs: ["dsColumnSeries"] }, { kind: "component", type: ReferenceLabelComponent, selector: "g[dsReferenceLabel]", inputs: ["thresholds"] }, { kind: "component", type: ReferenceLineComponent, selector: "g[dsReferenceLine]", inputs: ["thresholds"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
235
252
  }
236
253
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnChartComponent, decorators: [{
237
254
  type: Component,
@@ -242,11 +259,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
242
259
  ColumnSeriesComponent,
243
260
  ReferenceLabelComponent,
244
261
  ReferenceLineComponent,
245
- ChartTooltipDirective,
262
+ ChartDataTableComponent,
246
263
  ], host: {
247
264
  '[class.framed]': "frameResolved() === 'auto'",
248
265
  '[style.--_column-chart-view-height]': 'viewHeightPx()',
249
- }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"column-chart\">\n @if (pinnedSeries()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"pinnedSeries()?.activeMark?.release()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonColumns(); track $index) {\n <ds-skeleton [height]=\"skeletonHeightPx()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <ds-chart\n frame=\"none\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n #mark=\"dsColumnSeries\"\n dsColumnSeries\n [data]=\"series.points\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n [dsChartTooltip]=\"mark.tooltipContext()\"\n [dsChartTooltipExtraGap]=\"valueClearance()\"\n [dsChartTooltipPreferBelow]=\"mark.activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"mark.activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend [items]=\"legendItems()\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n @if (multiSeries()) {\n <th scope=\"col\">\n Series\n </th>\n }\n\n <th scope=\"col\">\n Label\n </th>\n\n <th scope=\"col\">\n Value\n </th>\n\n @if (partOfWhole()) {\n <th scope=\"col\">\n Share of total\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track row.key) {\n <tr>\n @if (multiSeries()) {\n <td>\n {{ row.series }}\n </td>\n }\n\n <td>\n {{ row.label }}\n </td>\n\n <td>\n {{ row.formattedValue }}\n </td>\n\n @if (partOfWhole()) {\n <td>\n {{ row.share }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\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{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table,figcaption{-webkit-user-select:text;user-select:text}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:600}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}.empty{display:grid;place-items:center;min-block-size:var(--_column-chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.skeleton{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;column-gap:var(--_column-chart-column-gap)}.empty.is-error{color:var(--error)}:host{position:relative}.pin-reset{position:absolute;inset-block-start:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
266
+ }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"column-chart\">\n @if (pinnedSeries()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"pinnedSeries()?.activeMark?.release()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonColumns(); track $index) {\n <ds-skeleton [height]=\"skeletonHeightPx()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <ds-chart\n frame=\"none\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"highlightedSeries()\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\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{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_column-chart-plot-height: var(--ds-column-chart-plot-height, 200px);--_column-chart-axis-width: var(--ds-column-chart-axis-width, 40px);--_column-chart-value-space: var(--ds-column-chart-value-space, var(--space-5));--_column-chart-column-width: var(--ds-column-chart-column-width, 80%)}.column-chart{--_column-chart-grid-line-color: var(--ds-column-chart-grid-line-color, var(--ds-chart-grid-line-color, var(--chart-grid-line-color)));--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));margin:0}ds-chart{--ds-chart-grid-line-color: var(--_column-chart-grid-line-color)}.empty{display:grid;place-items:center;min-block-size:var(--_column-chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.skeleton{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;column-gap:var(--_column-chart-column-gap)}:host{position:relative}.pin-reset{position:absolute;inset-block-end:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
250
267
  }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], seriesRefs: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ColumnSeriesComponent), { isSignal: true }] }] } });
251
268
 
252
269
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-column-chart.mjs","sources":["../../../src/lib/components/column-chart/column-chart.component.ts","../../../src/lib/components/column-chart/column-chart.component.html","../../../src/lib/components/column-chart/ids-group-ltd-ids-design-system-components-column-chart.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n TemplateRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n defaultChartFormat,\n describeSeries,\n formatPercent,\n shareOfTotal,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartStackMode,\n ChartThreshold,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n chartViewHeight,\n stackOffsets,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type { ChartStackOffset } from '@ids-group-ltd/ids-design-system/components/chart';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartMarkFill,\n ColumnChartPoint,\n ColumnChartSeries,\n} from './column-chart.types';\n\n/** One series, ready to draw. `points` is the caller's own array, never a copy: the colour and the\n * fill reach the marks as series-wide defaults so a clicked point comes back as the object that\n * was handed in. */\ninterface ResolvedColumnSeries {\n readonly key: string;\n readonly label: string;\n /** Null leaves each mark on the categorical palette by its own position, which is what a chart\n * of one series has always drawn. */\n readonly color: string | null;\n readonly fill: ChartMarkFill | null;\n readonly points: readonly ColumnChartPoint[];\n}\n\nfunction isSeriesList(\n data: readonly ColumnChartPoint[] | readonly ColumnChartSeries[],\n): data is readonly ColumnChartSeries[] {\n return data.length > 0 && 'data' in data[0];\n}\n\n/** What the four geometry tokens resolve to when nothing has been set and while the host is not yet\n * in a document — under SSR, and for the frame before the first read. */\nconst COLUMN_GEOMETRY = {\n plotHeight: 200,\n axisGutter: 40,\n valueSpace: 20,\n columnWidthRatio: 0.8,\n};\n\n/** The plot is an SVG coordinate space, so `--ds-column-chart-plot-height` and its three siblings\n * cannot reach it as CSS: a length written into a `viewBox` is a number the component computes.\n * They are read back once, from the private resolvers on the host, which is what keeps them real\n * public hooks rather than names that parse and change nothing.\n *\n * Read once, on the first pass: a token re-pointed at a breakpoint is NOT picked up, because\n * `ds-chart`'s `ResizeObserver` answers the plot's width rather than a token's value. Set these\n * from a stylesheet, not from a media query. */\nfunction readColumnGeometry(host: HTMLElement): typeof COLUMN_GEOMETRY {\n const style = getComputedStyle(host);\n const length = (token: string, fallback: number): number => {\n const parsed = Number.parseFloat(style.getPropertyValue(token));\n\n // `>= 0`, so a token deliberately set to zero - no tick gutter, no label headroom - is kept\n // rather than silently replaced by the default.\n return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;\n };\n\n return {\n plotHeight: length(\n '--_column-chart-plot-height',\n COLUMN_GEOMETRY.plotHeight,\n ),\n axisGutter: length(\n '--_column-chart-axis-width',\n COLUMN_GEOMETRY.axisGutter,\n ),\n valueSpace: length(\n '--_column-chart-value-space',\n COLUMN_GEOMETRY.valueSpace,\n ),\n // A share of the category's own slot, written as a percentage and used as a ratio.\n columnWidthRatio:\n length(\n '--_column-chart-column-width',\n COLUMN_GEOMETRY.columnWidthRatio * 100,\n ) / 100,\n };\n}\n\n@Component({\n selector: 'ds-column-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartComponent,\n ChartLegendComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n ChartTooltipDirective,\n ],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_column-chart-view-height]': 'viewHeightPx()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ColumnChartComponent {\n /** One column per point, drawn in the order given - or one NAMED SERIES per entry, where every\n * category carries a column from each. The two forms are told apart by their shape, so a chart\n * handed a flat list behaves exactly as it always has. */\n readonly data = input.required<\n readonly ColumnChartPoint[] | readonly ColumnChartSeries[]\n >();\n\n /** How several series share one category's band. `'none'`, the default, and `'grouped'` draw\n * them side by side - a chart of one series takes the whole band either way, so the two differ\n * only in spelling. `'stacked'` puts each series on top of the one before it, and\n * `'normalized'` stacks then divides by the category's total, so every band is full and the\n * axis reads in shares.\n *\n * Unrelated to `ds-line-chart`'s `axisMode=\"stacked\"`, which is two PLOTS one above the\n * other. */\n readonly stack = input<ChartStackMode>('none');\n\n /** Reference lines and bands drawn across the plot, behind the columns: a target, a budget, an\n * SLA. Each one opens the value axis far enough to hold it, so a target above every column is\n * still on the plot, and each is named in the generated description - a line only the sighted\n * reader gets is an annotation half the audience never receives. */\n readonly thresholds = input<readonly ChartThreshold[]>([]);\n\n /** Prints each column's value above the column. */\n readonly showValues = input(true, { transform: booleanAttribute });\n\n /** How many value-axis ticks to aim for. A hint, not a count: ticks are\n * snapped to a round step, so the axis may carry one more or one fewer. */\n readonly tickCount = input(5, { transform: numberAttribute });\n\n /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;\n * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.\n * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards\n * is one decision per app rather than per plot. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the\n * default, takes it away at once: a panel that outlives the pointer sits over the plot the\n * reader has moved on to.\n *\n * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything\n * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so\n * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to\n * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */\n readonly tooltipLingerMs = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n /** Printed above the plot as the chart's visible title, and reused as the annex table's\n * caption. */\n readonly caption = input<string | null>(null);\n\n /** Accessible name. Generated from the data when omitted. */\n readonly summary = input<string | null>(null);\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so\n * `'none'` belongs only where the same data is already in a table on the page.\n * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares that the marks are parts of one whole, which is what makes a share of their total a\n * real quantity. Off by default: a chart of visitors per stage or revenue per month sums to a\n * number nobody can point at, and \"18.6% of total\" against it is arithmetic dressed as a fact.\n * On, each mark's share appears on the tooltip's second line and in the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize\n * when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Shown in place of the plot when `data` is empty. Unset falls back to\n * `DS_CONFIG.chart.emptyText`, then `'No data'`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,\n * because \"the request failed\" and \"there is nothing to show\" read the same to a reader and\n * mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** The message the error state prints. Unset falls back to `DS_CONFIG.chart.errorText`, then\n * `'Could not load the data'`. */\n readonly errorText = input<string | null>(null);\n /** Formats every value the chart prints, the annex table and the generated description\n * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale\n * grouping with a K/M/B suffix past four digits. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n readonly frameResolved = resolveWithConfig(\n this.frame,\n (config) => config.chart?.frame,\n 'auto' as ChartFrame,\n );\n readonly dataTableResolved = resolveWithConfig(\n this.dataTable,\n (config) => config.chart?.dataTable,\n 'none' as ChartDataTable,\n );\n readonly emptyTextResolved = resolveWithConfig(\n this.emptyText,\n (config) => config.chart?.emptyText,\n 'No data',\n );\n readonly errorTextResolved = resolveWithConfig(\n this.errorText,\n (config) => config.chart?.errorText,\n 'Could not load the data',\n );\n readonly valueFormatResolved = resolveWithConfig(\n this.valueFormat,\n (config) => config.chart?.valueFormat,\n defaultChartFormat,\n );\n\n /** Turns on the click affordance — the pointer cursor and any hover tint.\n * The click output fires whether or not this is set, so a consumer that\n * binds the output and forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The point that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly pointClicked = output<ColumnChartPoint>();\n\n /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a press\n * outside releases it. Off by default: a click is already the drill-down hook, and a mark left\n * lit after the pointer has gone needs a reader who knows why it is lit. `pointClicked` fires\n * either way — pinning is a state, not a handler. */\n readonly pinOnClick = input(false, { transform: booleanAttribute });\n\n /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the\n * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed\n * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full\n * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark\n * and pays for it with the rest of the chart. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one mark's entrance and the next. `0`, the default, is no stagger at\n * all; `40` is the documented non-zero step. The total is capped, so a long series does not\n * crawl in. */\n readonly staggerMs = input(0, { transform: numberAttribute });\n\n /** Whether a hovered or focused column opens a tooltip. `'axis'` is not offered — a\n * column chart's marks ARE its categories, so an axis tooltip would repeat the item one. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip is pinned. `'mark'`, the default, is the column itself — a panel over the\n * reading it describes. `'cell'` is the full-height category cell, which puts the panel at the\n * top of the plot whatever the column's value. */\n readonly tooltipAnchor = input<'mark' | 'cell'>('mark');\n\n /** The value is printed ABOVE the column, so a panel anchored to the column alone opens on top\n * of that number. One text line of clearance puts it above both. */\n protected readonly valueClearance = computed(() =>\n this.showValues() ? 18 : 0,\n );\n\n protected readonly tooltipLingerResolved = resolveWithConfig(\n this.tooltipLingerMs,\n (config) => config.chart?.tooltipLingerMs,\n 0,\n );\n\n protected readonly geometry = signal(COLUMN_GEOMETRY);\n\n /** Every state occupies the box the plot would have, so nothing on the page moves when the data\n * lands or the request fails. */\n protected readonly viewHeightPx = computed(\n () =>\n `${chartViewHeight(this.geometry().plotHeight, this.geometry().valueSpace)}px`,\n );\n\n protected readonly skeletonHeightPx = computed(\n () => `${this.geometry().plotHeight}px`,\n );\n\n protected readonly seriesRefs = viewChildren(ColumnSeriesComponent);\n\n protected readonly pinnedSeries = computed(\n () =>\n this.seriesRefs().find((series) => series.activeMark.pinned()) ?? null,\n );\n\n protected readonly resolvedSeries = computed<readonly ResolvedColumnSeries[]>(\n () => {\n const given = this.data();\n if (!isSeriesList(given)) {\n return [\n { key: 'series', label: '', color: null, fill: null, points: given },\n ];\n }\n\n return given.map((series, index) => ({\n key: series.id,\n label: series.label,\n color:\n series.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n fill: series.fill ?? null,\n points: series.data,\n }));\n },\n );\n\n /** Stacking collapses every series onto ONE slot, which is also why a stacked series is drawn\n * at slot 0 rather than at its own index - its segments sit on top of each other, not beside\n * them. */\n protected readonly slotCount = computed(() =>\n this.stack() === 'stacked' || this.stack() === 'normalized'\n ? 1\n : this.resolvedSeries().length,\n );\n\n private readonly offsets = computed(() =>\n stackOffsets(\n this.resolvedSeries().map((series) =>\n series.points.map((point) => point.value),\n ),\n this.stack(),\n ),\n );\n\n protected offsetsFor(index: number): readonly ChartStackOffset[] {\n return this.offsets()[index] ?? [];\n }\n\n /** The categories come from the LONGEST series: a series that stops early leaves the bands past\n * its end standing rather than taking them off the axis for every other series too. */\n protected readonly categories = computed(() =>\n this.resolvedSeries()\n .reduce<readonly ColumnChartPoint[]>(\n (longest, series) =>\n series.points.length > longest.length ? series.points : longest,\n [],\n )\n .map((point) => point.label),\n );\n\n protected readonly multiSeries = computed(\n () => this.resolvedSeries().length > 1,\n );\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((series) => ({\n id: series.key,\n label: series.label,\n color: series.color ?? '',\n })),\n );\n\n /** A normalized stack draws shares, not readings, so the axis has to say so - the value printed\n * beside each mark stays the reading, which is what `valueFormat` goes on formatting. */\n protected readonly axisFormat = computed<ChartValueFormat | null>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1)\n : this.valueFormat(),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.resolvedSeries().flatMap((series) => {\n const values = series.points.map((point) => point.value);\n\n return series.points.map((point, index) => ({\n key: `${series.key}:${point.id ?? index}`,\n series: series.label,\n label: point.label,\n formattedValue: format(point.value, 'tooltip'),\n share: this.partOfWhole() ? shareOfTotal(values, index) : '',\n }));\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n this.resolvedSeries()\n .map((series, index) =>\n describeSeries(\n series.label || this.caption() || 'Chart',\n series.points.map((point) => ({\n label: point.label,\n value: point.value,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.dataTableResolved() !== 'none',\n // The reference lines belong to the plot, not to a series, so they are named once.\n index === 0 ? this.thresholds() : [],\n ),\n )\n .join(' '),\n );\n\n protected readonly isEmpty = computed(() => this.categories().length === 0);\n\n /** Placeholder columns while loading. Follows the real point count so the chart does not resize\n * when the data lands; falls back to three when `data` is still empty. */\n protected readonly skeletonColumns = computed(() =>\n Array.from({ length: Math.max(this.categories().length, 3) }),\n );\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef);\n afterNextRender(() =>\n this.geometry.set(readColumnGeometry(host.nativeElement)),\n );\n }\n}\n","<figure class=\"column-chart\">\n @if (pinnedSeries()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"pinnedSeries()?.activeMark?.release()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonColumns(); track $index) {\n <ds-skeleton [height]=\"skeletonHeightPx()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <ds-chart\n frame=\"none\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n #mark=\"dsColumnSeries\"\n dsColumnSeries\n [data]=\"series.points\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n [dsChartTooltip]=\"mark.tooltipContext()\"\n [dsChartTooltipExtraGap]=\"valueClearance()\"\n [dsChartTooltipPreferBelow]=\"mark.activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"mark.activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend [items]=\"legendItems()\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n @if (multiSeries()) {\n <th scope=\"col\">\n Series\n </th>\n }\n\n <th scope=\"col\">\n Label\n </th>\n\n <th scope=\"col\">\n Value\n </th>\n\n @if (partOfWhole()) {\n <th scope=\"col\">\n Share of total\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track row.key) {\n <tr>\n @if (multiSeries()) {\n <td>\n {{ row.series }}\n </td>\n }\n\n <td>\n {{ row.label }}\n </td>\n\n <td>\n {{ row.formattedValue }}\n </td>\n\n @if (partOfWhole()) {\n <td>\n {{ row.share }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAoEA,SAAS,YAAY,CACnB,IAAgE,EAAA;AAEhE,IAAA,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC;AAC7C;AAEA;AAC0E;AAC1E,MAAM,eAAe,GAAG;AACtB,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,gBAAgB,EAAE,GAAG;CACtB;AAED;;;;;;;AAOiD;AACjD,SAAS,kBAAkB,CAAC,IAAiB,EAAA;AAC3C,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC;AACpC,IAAA,MAAM,MAAM,GAAG,CAAC,KAAa,EAAE,QAAgB,KA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,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,gBAAgB,qMAiCyB,qBAAqB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElUpE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-column-chart.mjs","sources":["../../../src/lib/components/column-chart/column-chart.component.ts","../../../src/lib/components/column-chart/column-chart.component.html","../../../src/lib/components/column-chart/ids-group-ltd-ids-design-system-components-column-chart.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n TemplateRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n formatPercent,\n shareOfTotal,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartStackMode,\n ChartThreshold,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n chartViewHeight,\n stackOffsets,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type { ChartStackOffset } from '@ids-group-ltd/ids-design-system/components/chart';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport { resolveChartDefaults } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartMarkFill,\n ColumnChartPoint,\n ColumnChartSeries,\n} from './column-chart.types';\n\n/** One series, ready to draw. `points` is the caller's own array, never a copy: the colour and the\n * fill reach the marks as series-wide defaults so a clicked point comes back as the object that\n * was handed in. */\ninterface ResolvedColumnSeries {\n readonly key: string;\n readonly label: string;\n /** Null leaves each mark on the categorical palette by its own position, which is what a chart\n * of one series has always drawn. */\n readonly color: string | null;\n readonly fill: ChartMarkFill | null;\n readonly points: readonly ColumnChartPoint[];\n}\n\nfunction isSeriesList(\n data: readonly ColumnChartPoint[] | readonly ColumnChartSeries[],\n): data is readonly ColumnChartSeries[] {\n return data.length > 0 && 'data' in data[0];\n}\n\n/** What the four geometry tokens resolve to when nothing has been set and while the host is not yet\n * in a document — under SSR, and for the frame before the first read. */\nconst COLUMN_GEOMETRY = {\n plotHeight: 200,\n axisGutter: 40,\n valueSpace: 20,\n columnWidthRatio: 0.8,\n};\n\n/** The plot is an SVG coordinate space, so `--ds-column-chart-plot-height` and its three siblings\n * cannot reach it as CSS: a length written into a `viewBox` is a number the component computes.\n * They are read back once, from the private resolvers on the host, which is what keeps them real\n * public hooks rather than names that parse and change nothing.\n *\n * Read once, on the first pass: a token re-pointed at a breakpoint is NOT picked up, because\n * `ds-chart`'s `ResizeObserver` answers the plot's width rather than a token's value. Set these\n * from a stylesheet, not from a media query. */\nfunction readColumnGeometry(host: HTMLElement): typeof COLUMN_GEOMETRY {\n const style = getComputedStyle(host);\n const length = (token: string, fallback: number): number => {\n const parsed = Number.parseFloat(style.getPropertyValue(token));\n\n // `>= 0`, so a token deliberately set to zero - no tick gutter, no label headroom - is kept\n // rather than silently replaced by the default.\n return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;\n };\n\n return {\n plotHeight: length(\n '--_column-chart-plot-height',\n COLUMN_GEOMETRY.plotHeight,\n ),\n axisGutter: length(\n '--_column-chart-axis-width',\n COLUMN_GEOMETRY.axisGutter,\n ),\n valueSpace: length(\n '--_column-chart-value-space',\n COLUMN_GEOMETRY.valueSpace,\n ),\n // A share of the category's own slot, written as a percentage and used as a ratio.\n columnWidthRatio:\n length(\n '--_column-chart-column-width',\n COLUMN_GEOMETRY.columnWidthRatio * 100,\n ) / 100,\n };\n}\n\n@Component({\n selector: 'ds-column-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartComponent,\n ChartLegendComponent,\n ColumnSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_column-chart-view-height]': 'viewHeightPx()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ColumnChartComponent {\n /** One column per point, drawn in the order given - or one NAMED SERIES per entry, where every\n * category carries a column from each. The two forms are told apart by their shape, so a chart\n * handed a flat list behaves exactly as it always has. */\n readonly data = input.required<\n readonly ColumnChartPoint[] | readonly ColumnChartSeries[]\n >();\n\n /** How several series share one category's band. `'none'`, the default, and `'grouped'` draw\n * them side by side - a chart of one series takes the whole band either way, so the two differ\n * only in spelling. `'stacked'` puts each series on top of the one before it, and\n * `'normalized'` stacks then divides by the category's total, so every band is full and the\n * axis reads in shares.\n *\n * Unrelated to `ds-line-chart`'s `axisMode=\"stacked\"`, which is two PLOTS one above the\n * other. */\n readonly stack = input<ChartStackMode>('none');\n\n /** Reference lines and bands drawn across the plot, behind the columns: a target, a budget, an\n * SLA. Each one opens the value axis far enough to hold it, so a target above every column is\n * still on the plot, and each is named in the generated description - a line only the sighted\n * reader gets is an annotation half the audience never receives. */\n readonly thresholds = input<readonly ChartThreshold[]>([]);\n\n /** Prints each column's value above the column. */\n readonly showValues = input(true, { transform: booleanAttribute });\n\n /** How many value-axis ticks to aim for. A hint, not a count: ticks are\n * snapped to a round step, so the axis may carry one more or one fewer. */\n readonly tickCount = input(5, { transform: numberAttribute });\n\n /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;\n * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.\n * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards\n * is one decision per app rather than per plot. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the\n * default, takes it away at once: a panel that outlives the pointer sits over the plot the\n * reader has moved on to.\n *\n * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything\n * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so\n * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to\n * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */\n readonly tooltipLingerMs = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n /** Printed above the plot as the chart's visible title, and reused as the annex table's\n * caption. */\n readonly caption = input<string | null>(null);\n\n /** Accessible name. Generated from the data when omitted. */\n readonly summary = input<string | null>(null);\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so\n * `'none'` belongs only where the same data is already in a table on the page.\n * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Declares that the marks are parts of one whole, which is what makes a share of their total a\n * real quantity. Off by default: a chart of visitors per stage or revenue per month sums to a\n * number nobody can point at, and \"18.6% of total\" against it is arithmetic dressed as a fact.\n * On, each mark's share appears on the tooltip's second line and in the data table. */\n readonly partOfWhole = input(false, { transform: booleanAttribute });\n\n /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize\n * when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Shown in place of the plot when `data` is empty. Unset falls back to\n * `DS_CONFIG.chart.emptyText`, then `'No data'`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,\n * because \"the request failed\" and \"there is nothing to show\" read the same to a reader and\n * mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** The message the error state prints. Unset falls back to `DS_CONFIG.chart.errorText`, then\n * `'Could not load the data'`. */\n readonly errorText = input<string | null>(null);\n /** Formats every value the chart prints, the annex table and the generated description\n * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale\n * grouping with a K/M/B suffix past four digits. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n private readonly defaults = resolveChartDefaults(this);\n readonly frameResolved = this.defaults.frame;\n readonly dataTableResolved = this.defaults.dataTable;\n readonly emptyTextResolved = this.defaults.emptyText;\n readonly errorTextResolved = this.defaults.errorText;\n readonly valueFormatResolved = this.defaults.valueFormat;\n\n /** Turns on the click affordance — the pointer cursor and any hover tint.\n * The click output fires whether or not this is set, so a consumer that\n * binds the output and forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The point that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly pointClicked = output<ColumnChartPoint>();\n\n /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a press\n * outside releases it. Off by default: a click is already the drill-down hook, and a mark left\n * lit after the pointer has gone needs a reader who knows why it is lit. `pointClicked` fires\n * either way — pinning is a state, not a handler. */\n readonly pinOnClick = input(false, { transform: booleanAttribute });\n\n /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the\n * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed\n * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full\n * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark\n * and pays for it with the rest of the chart. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one mark's entrance and the next. `0`, the default, is no stagger at\n * all; `40` is the documented non-zero step. The total is capped, so a long series does not\n * crawl in. */\n readonly staggerMs = input(0, { transform: numberAttribute });\n\n /** Whether a hovered or focused column opens a tooltip. `'axis'` is not offered — a\n * column chart's marks ARE its categories, so an axis tooltip would repeat the item one. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip is pinned. `'mark'`, the default, is the column itself — a panel over the\n * reading it describes. `'cell'` is the full-height category cell, which puts the panel at the\n * top of the plot whatever the column's value. */\n readonly tooltipAnchor = input<'mark' | 'cell'>('mark');\n\n /** The value is printed ABOVE the column, so a panel anchored to the column alone opens on top\n * of that number. One text line of clearance puts it above both. */\n protected readonly valueClearance = computed(() =>\n this.showValues() ? 18 : 0,\n );\n\n protected readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly geometry = signal(COLUMN_GEOMETRY);\n\n /** Every state occupies the box the plot would have, so nothing on the page moves when the data\n * lands or the request fails. */\n protected readonly viewHeightPx = computed(\n () =>\n `${chartViewHeight(this.geometry().plotHeight, this.geometry().valueSpace)}px`,\n );\n\n protected readonly skeletonHeightPx = computed(\n () => `${this.geometry().plotHeight}px`,\n );\n\n protected readonly seriesRefs = viewChildren(ColumnSeriesComponent);\n\n protected readonly pinnedSeries = computed(\n () =>\n this.seriesRefs().find((series) => series.activeMark.pinned()) ?? null,\n );\n\n protected readonly resolvedSeries = computed<readonly ResolvedColumnSeries[]>(\n () => {\n const given = this.data();\n if (!isSeriesList(given)) {\n return [\n { key: 'series', label: '', color: null, fill: null, points: given },\n ];\n }\n\n return given.map((series, index) => ({\n key: series.id,\n label: series.label,\n color:\n series.color ??\n CHART_SERIES_COLORS[index % CHART_SERIES_COLORS.length],\n fill: series.fill ?? null,\n points: series.data,\n }));\n },\n );\n\n /** Stacking collapses every series onto ONE slot, which is also why a stacked series is drawn\n * at slot 0 rather than at its own index - its segments sit on top of each other, not beside\n * them. */\n protected readonly slotCount = computed(() =>\n this.stack() === 'stacked' || this.stack() === 'normalized'\n ? 1\n : this.resolvedSeries().length,\n );\n\n private readonly offsets = computed(() =>\n stackOffsets(\n this.resolvedSeries().map((series) =>\n series.points.map((point) => point.value),\n ),\n this.stack(),\n ),\n );\n\n protected offsetsFor(index: number): readonly ChartStackOffset[] {\n return this.offsets()[index] ?? [];\n }\n\n /** The categories come from the LONGEST series: a series that stops early leaves the bands past\n * its end standing rather than taking them off the axis for every other series too. */\n protected readonly categories = computed(() =>\n this.resolvedSeries()\n .reduce<readonly ColumnChartPoint[]>(\n (longest, series) =>\n series.points.length > longest.length ? series.points : longest,\n [],\n )\n .map((point) => point.label),\n );\n\n protected readonly multiSeries = computed(\n () => this.resolvedSeries().length > 1,\n );\n\n /** The series named in the legend under the pointer, which fades the rest. */\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((series) => ({\n id: series.key,\n label: series.label,\n color: series.color ?? '',\n })),\n );\n\n /** A normalized stack draws shares, not readings, so the axis has to say so - the value printed\n * beside each mark stays the reading, which is what `valueFormat` goes on formatting. */\n protected readonly axisFormat = computed<ChartValueFormat | null>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1)\n : this.valueFormat(),\n );\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n ...(this.multiSeries() ? ['Series'] : []),\n 'Label',\n 'Value',\n ...(this.partOfWhole() ? ['Share of total'] : []),\n ]);\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableRows().map((row) => ({\n key: row.key,\n cells: [\n ...(this.multiSeries() ? [row.series] : []),\n row.label,\n row.formattedValue,\n ...(this.partOfWhole() ? [row.share] : []),\n ],\n })),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.resolvedSeries().flatMap((series) => {\n const values = series.points.map((point) => point.value);\n\n return series.points.map((point, index) => ({\n key: `${series.key}:${point.id ?? index}`,\n series: series.label,\n label: point.label,\n formattedValue: format(point.value, 'tooltip'),\n share: this.partOfWhole() ? shareOfTotal(values, index) : '',\n }));\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n this.resolvedSeries()\n .map((series, index) =>\n describeSeries(\n series.label || this.caption() || 'Chart',\n series.points.map((point) => ({\n label: point.label,\n value: point.value,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.dataTableResolved() !== 'none',\n // The reference lines belong to the plot, not to a series, so they are named once.\n index === 0 ? this.thresholds() : [],\n ),\n )\n .join(' '),\n );\n\n protected readonly isEmpty = computed(() => this.categories().length === 0);\n\n /** Placeholder columns while loading. Follows the real point count so the chart does not resize\n * when the data lands; falls back to three when `data` is still empty. */\n protected readonly skeletonColumns = computed(() =>\n Array.from({ length: Math.max(this.categories().length, 3) }),\n );\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef);\n afterNextRender(() =>\n this.geometry.set(readColumnGeometry(host.nativeElement)),\n );\n }\n}\n","<figure class=\"column-chart\">\n @if (pinnedSeries()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"pinnedSeries()?.activeMark?.release()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (placeholder of skeletonColumns(); track $index) {\n <ds-skeleton [height]=\"skeletonHeightPx()\" />\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <ds-chart\n frame=\"none\"\n [tooltipTemplate]=\"tooltipTemplate() ?? null\"\n [tooltipExtraGap]=\"valueClearance()\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [plotHeight]=\"geometry().plotHeight\"\n [axisGutter]=\"geometry().axisGutter\"\n [valueSpace]=\"geometry().valueSpace\">\n <svg:g\n dsReferenceLine\n [thresholds]=\"thresholds()\" />\n\n @for (\n series of resolvedSeries();\n track series.key;\n let seriesIndex = $index\n ) {\n <svg:g\n dsColumnSeries\n [data]=\"series.points\"\n [seriesKey]=\"series.key\"\n [highlighted]=\"highlightedSeries()\"\n [slot]=\"slotCount() > 1 ? seriesIndex : 0\"\n [slotCount]=\"slotCount()\"\n [offsets]=\"offsetsFor(seriesIndex)\"\n [seriesColor]=\"series.color\"\n [seriesFill]=\"series.fill\"\n [seriesLabel]=\"multiSeries() ? series.label : null\"\n [columnWidthRatio]=\"geometry().columnWidthRatio\"\n [showValues]=\"showValues()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [staggerMs]=\"staggerMs()\"\n [partOfWhole]=\"partOfWhole()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"tooltipAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n (pointClicked)=\"pointClicked.emit($event)\" />\n }\n\n <svg:g\n dsReferenceLabel\n [thresholds]=\"thresholds()\" />\n </ds-chart>\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAoEA,SAAS,YAAY,CACnB,IAAgE,EAAA;AAEhE,IAAA,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC;AAC7C;AAEA;AAC0E;AAC1E,MAAM,eAAe,GAAG;AACtB,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,gBAAgB,EAAE,GAAG;CACtB;AAED;;;;;;;AAOiD;AACjD,SAAS,kBAAkB,CAAC,IAAiB,EAAA;AAC3C,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC;AACpC,IAAA,MAAM,MAAM,GAAG,C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