@ids-group-ltd/ids-design-system 0.14.3 → 0.14.5

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 (335) hide show
  1. package/CHANGELOG.md +279 -0
  2. package/components.md +16 -16
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +1 -1
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/charts/line-series-component.md +1 -1
  15. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  16. package/docs/agent/overlays/ds-tooltip.md +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -131
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +16 -13
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +109 -105
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +190 -439
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -124
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -164
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +29 -84
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +55 -169
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -121
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +64 -96
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +163 -0
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -0
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -82
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -571
  188. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
  190. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  192. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  194. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  198. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  199. package/migrations/0.14.4.json +231 -0
  200. package/migrations/0.14.5.json +311 -0
  201. package/package.json +9 -1
  202. package/schematics/check-overrides/surface.json +30 -2
  203. package/styles/_breakpoints.scss +6 -23
  204. package/styles/_chart-data-table.scss +3 -11
  205. package/styles/_chart-frame.scss +14 -65
  206. package/styles/_chart-interactive.scss +8 -36
  207. package/styles/_chart-motion.scss +11 -39
  208. package/styles/_check-box.scss +7 -26
  209. package/styles/_check-mark.scss +7 -23
  210. package/styles/_chip-row.scss +3 -14
  211. package/styles/_clear-button.scss +2 -7
  212. package/styles/_control-label.scss +2 -13
  213. package/styles/_control-line.scss +2 -6
  214. package/styles/_dropdown-overlay.scss +8 -33
  215. package/styles/_ds-color.scss +9 -28
  216. package/styles/_field-box.scss +4 -16
  217. package/styles/_field-group-segment.scss +6 -6
  218. package/styles/_field-label.scss +3 -14
  219. package/styles/_field-state.scss +5 -10
  220. package/styles/_focus.scss +20 -60
  221. package/styles/_icon-base.scss +0 -2
  222. package/styles/_layout-utils.scss +0 -3
  223. package/styles/_link.scss +4 -18
  224. package/styles/_overlay-motion.scss +15 -38
  225. package/styles/_page-grid.scss +4 -29
  226. package/styles/_press.scss +5 -18
  227. package/styles/_reset.scss +1 -14
  228. package/styles/_scrollbar.scss +0 -2
  229. package/styles/_skeleton-shimmer.scss +3 -14
  230. package/styles/_status.scss +5 -13
  231. package/styles/_surface-motion.scss +7 -34
  232. package/styles/_table-controls.scss +3 -6
  233. package/styles/_text-clip.scss +2 -6
  234. package/styles/_theme-activation.scss +7 -20
  235. package/styles/_toast-overlay.scss +8 -3
  236. package/styles/_tokens-charts.scss +31 -90
  237. package/styles/_tokens.scss +115 -154
  238. package/styles/_typography.scss +6 -13
  239. package/styles/_visually-hidden.scss +2 -3
  240. package/styles/ds.scss +2 -10
  241. package/themes/_base-palette.scss +12 -35
  242. package/themes/_semantic.scss +29 -98
  243. package/themes/dark/_palette.scss +15 -29
  244. package/themes/dark/_theme.scss +14 -32
  245. package/themes/light/_palette.scss +2 -17
  246. package/themes/light/_theme.scss +1 -7
  247. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  248. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  249. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  250. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  251. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  252. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  253. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  254. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  255. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  256. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  257. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  258. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  259. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  260. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  261. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  262. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  263. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  264. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  265. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  266. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +31 -49
  267. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +165 -382
  268. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  269. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  270. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -125
  271. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  272. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  273. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  274. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  276. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  277. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  278. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  279. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  280. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  281. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +19 -83
  282. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  283. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  284. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  285. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +54 -163
  286. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  287. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  288. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  289. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  290. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  291. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  292. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  293. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  294. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  295. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  296. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  297. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  298. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  299. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  300. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +25 -94
  301. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  302. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  303. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  304. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  305. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  306. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  307. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  308. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +58 -0
  309. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  310. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  311. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  312. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  313. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  314. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  315. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  316. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  317. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  318. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  319. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  320. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  321. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  322. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  323. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  324. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  325. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  326. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  327. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  328. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  329. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -67
  330. package/types/ids-group-ltd-ids-design-system-components.d.ts +266 -410
  331. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -259
  332. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  333. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  334. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
  335. package/types/ids-group-ltd-ids-design-system.d.ts +1 -0
@@ -1,24 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, input, numberAttribute, booleanAttribute, inject, ElementRef, NgZone, PLATFORM_ID, computed, signal, effect, afterRenderEffect, viewChild, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, Component, output, untracked, viewChildren } from '@angular/core';
3
- import { domainMinOf, niceDomain, linearScale, tickValues, roundStepAtLeast, chartRenderGate, resolveChartDefaults, elementWidth, bandScale, rotationWouldFit, labelInterval, leaveMark, chartValueFormat, listenForMarkFocus, CHART_SERIES_COLORS, staggerDelay, markOf, rovingMarks, describeShare, lineSegments, linePath, areaPath, bandPath, nextRovingIndex, focusMark } from '@ids-group-ltd/ids-design-system/components';
2
+ import { InjectionToken, input, numberAttribute, inject, ElementRef, NgZone, PLATFORM_ID, computed, signal, effect, afterRenderEffect, viewChild, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, Component, booleanAttribute, output, untracked, viewChildren } from '@angular/core';
3
+ import { domainMinOf, niceDomain, linearScale, tickValues, roundStepAtLeast, DsChartBase, chartRenderGate, elementWidth, bandScale, rotationWouldFit, labelInterval, leaveMark, CHART_TOOLTIP_LINGER_MS, chartValueFormat, listenForMarkFocus, CHART_SERIES_COLORS, staggerDelay, markOf, rovingMarks, describeShare, lineSegments, linePath, areaPath, bandPath, nextRovingIndex, focusMark } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { isPlatformBrowser } from '@angular/common';
5
5
  import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
6
6
  import { chartActiveMark, CHART_PIN_RADIUS, CHART_PIN_GAP, ChartTooltipDirective, ChartPinMarkerComponent } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
- import { resolveWithConfig, DS_INTL, injectDsLocale } from '@ids-group-ltd/ids-design-system/core';
7
+ import { resolveWithConfig, injectDsLocale, DS_INTL } from '@ids-group-ltd/ids-design-system/core';
8
8
 
9
9
  const CHART_DEFAULT_TICK_COUNT = 5;
10
10
  const CHART_AXIS_LABEL_GAP = 8;
11
- /** Room a rotated axis title needs across the gutter: its line box, turned on its side. */
11
+ /** Room a rotated axis title needs across the gutter. */
12
12
  const CHART_AXIS_TITLE_BAND = 20;
13
13
  const CHART_CATEGORY_LABEL_OFFSET = 18;
14
14
  const CHART_BAND_PADDING = 0.3;
15
- /** What the chart lays out at while it measures zero: under SSR, while the host is
16
- * `display: none`, and for the frame before the first `ResizeObserver` callback. Without it the
17
- * plot is `0 - axisGutter - EDGE_GUTTER` wide, which clamps to zero and stacks every category on
18
- * one x rather than leaving a blank space that the measurement then fills.
19
- *
20
- * The client cost is one frame drawn at this width and scaled to fit - measured at a 400px card
21
- * in Chrome 153: `viewBox="0 0 640 310"` at t=242ms, `"0 0 358 310"` at t=260ms.
15
+ /** The width the chart lays out at while it measures zero (SSR, `display: none`, before the first
16
+ * `ResizeObserver` callback); without it every category stacks on one x.
22
17
  *
23
18
  * @internal */
24
19
  const CHART_FALLBACK_WIDTH = 640;
@@ -27,16 +22,10 @@ const CHART_DEFAULT_AXIS_GUTTER = 46;
27
22
  const CHART_DEFAULT_VALUE_SPACE = 20;
28
23
  /** Room past the last band, so a mark centred on it is not cut by the viewBox edge. */
29
24
  const CHART_EDGE_GUTTER = 12;
30
- /** Blank between two stacked plots: enough for the lower plot's top tick label to clear the upper
31
- * plot's category-free bottom edge. */
25
+ /** Blank between two stacked plots, so the lower plot's top tick label clears the upper plot. */
32
26
  const CHART_STACKED_PLOT_GAP = 34;
33
- /** Height of the category-label row under the plot: one line plus its descenders. */
34
27
  const CATEGORY_GUTTER = 30;
35
- /** The drawable rectangle, in the same CSS pixels the container was measured in.
36
- *
37
- * `measuredWidth` is the `<svg>`'s own rendered width, which is what makes every coordinate
38
- * derived from this an exact CSS pixel: the viewBox is sized to match, so one user unit is one
39
- * pixel and a mark capped at 48 is 48 pixels wide at every card width.
28
+ /** The drawable rectangle, in CSS pixels; the viewBox matches `measuredWidth`, so one user unit is one pixel.
40
29
  *
41
30
  * @internal */
42
31
  function chartPlot(measuredWidth, plotHeight, axisGutter, valueSpace, rightGutter = CHART_EDGE_GUTTER) {
@@ -47,25 +36,18 @@ function chartPlot(measuredWidth, plotHeight, axisGutter, valueSpace, rightGutte
47
36
  height: Math.max(0, plotHeight),
48
37
  };
49
38
  }
50
- /** The viewBox's height, and the `<svg>`'s rendered height in pixels - the two are the same
51
- * number, which is what holds the 1:1 scale on the vertical axis too.
39
+ /** The viewBox's height, equal to the `<svg>`'s rendered height in pixels.
52
40
  *
53
- * `valueSpace` is always budgeted above the plot, for a value label over the tallest mark. It is
54
- * budgeted a SECOND time below the baseline only when the domain reaches under zero, where a
55
- * negative mark's label would otherwise print into the category labels: reserving it for every
56
- * chart costs the all-positive ones - the common case - that much height for nothing.
41
+ * `valueSpace` is budgeted above the plot, and below the baseline only when the domain reaches
42
+ * under zero (a negative mark's label would print into the category labels).
57
43
  *
58
44
  * @internal */
59
45
  function chartViewHeight(plotHeight, valueSpace, reservesBelowBaseline = false) {
60
46
  const below = reservesBelowBaseline ? valueSpace : 0;
61
47
  return valueSpace + Math.max(0, plotHeight) + below + CATEGORY_GUTTER;
62
48
  }
63
- /** The domain the value axis draws: the union of every reported set, always reaching zero,
64
- * widened by the pins and snapped to a round tick step.
65
- *
66
- * Zero is always in it because a bar measured against a floating floor misstates its own size,
67
- * and a pin only ever widens because a maximum under the data would push readings off the plot
68
- * rather than rescale them.
49
+ /** The domain the value axis draws: the union of every reported set, always reaching zero (a bar
50
+ * against a floating floor misstates its size), widened by the pins and snapped to a round tick step.
69
51
  *
70
52
  * @internal */
71
53
  function axisDomain(reported, tickCount, pinnedMinimum = null, pinnedMaximum = null) {
@@ -89,8 +71,7 @@ function axisDomain(reported, tickCount, pinnedMinimum = null, pinnedMaximum = n
89
71
  return niceDomain(minimum, maximum, tickCount);
90
72
  }
91
73
  /** Where a value sits vertically, clamped inside the plot. An unplottable value lands on the
92
- * baseline rather than becoming a `NaN`, which would void the whole coordinate attribute it was
93
- * written into and take the mark off screen with nothing logged.
74
+ * baseline: a `NaN` would void the coordinate attribute and hide the mark silently.
94
75
  *
95
76
  * @internal */
96
77
  function valueScale(domain, top, height) {
@@ -103,14 +84,10 @@ function valueScale(domain, top, height) {
103
84
  }
104
85
  /** Distance from a reference line, or a band's upper edge, to its label's baseline. */
105
86
  const THRESHOLD_LABEL_GAP = 5;
106
- /** Inset from the plot's LEFT edge. The label sits at the start of the line rather than its end
107
- * because a value label is centred on its column, and the last column's is the one nearest the
108
- * edge the line stops at - measured on the docs demo, a right-anchored "Escalation" printed over
109
- * the last column's own value. */
87
+ /** Inset from the plot's left edge; a right-anchored label collides with the last column's value label. */
110
88
  const THRESHOLD_LABEL_INSET = 4;
111
- /** Every drawable coordinate of a chart's reference lines and bands, so the strokes and the labels
112
- * - which paint in different layers, under the marks and over them - are laid out by one
113
- * calculation rather than by two that can disagree.
89
+ /** Every drawable coordinate of a chart's reference lines and bands; strokes and labels paint in
90
+ * different layers and share one calculation.
114
91
  *
115
92
  * @internal */
116
93
  function thresholdMarks(thresholds, plot, toY) {
@@ -135,11 +112,8 @@ function thresholdMarks(thresholds, plot, toY) {
135
112
  };
136
113
  });
137
114
  }
138
- /** A tick row's index for the value zero, or `null` when the rows do not carry one.
139
- *
140
- * Two axes share gridlines only if they also share a zero: a second scale hung on the first's
141
- * rows has to put its own zero on the same row, or a reading above the line on one axis sits
142
- * below it on the other. */
115
+ /** A tick row's index for the value zero, or `null` when the rows do not carry one. Two axes share
116
+ * gridlines only if they share a zero row, or a reading above the line on one axis sits below it on the other. */
143
117
  function zeroRow(ticks) {
144
118
  if (ticks.length < 2) {
145
119
  return null;
@@ -158,13 +132,12 @@ function zeroRow(ticks) {
158
132
  }
159
133
  /** The second value axis, as the four modes define it.
160
134
  *
161
- * `'aligned'` and `'exact'` hang the second scale on the first's tick rows and differ only in the
162
- * step: `'aligned'` snaps it up to a round number and overshoots the data, `'exact'` takes the
163
- * step the data needs and lands on it. `'dual-grid'` and `'split'` nice the second domain on
164
- * its own - stacked plots sit one above the other, so there is nothing to align.
135
+ * `'aligned'` and `'exact'` hang the second scale on the first's tick rows; `'aligned'` snaps the
136
+ * step to a round number, `'exact'` takes the step the data needs. `'dual-grid'` and `'split'`
137
+ * nice the second domain on its own.
165
138
  *
166
- * Falls back to an independent scale wherever alignment is not available: fewer than two rows, no
167
- * shared zero row, or a domain whose sign has no rows on its side of that zero.
139
+ * Falls back to an independent scale when alignment is unavailable: fewer than two rows, no shared
140
+ * zero row, or a domain whose sign has no rows on its side of zero.
168
141
  *
169
142
  * @internal */
170
143
  function secondaryAxis(primaryTicks, reported, tickCount, mode, pinnedMax = null) {
@@ -210,20 +183,17 @@ function secondaryAxis(primaryTicks, reported, tickCount, mode, pinnedMax = null
210
183
  aligned: true,
211
184
  };
212
185
  }
213
- /** A step multiplied back out rarely lands on itself, and an axis label that prints
214
- * `149.99999999999997` is the visible form of that. */
186
+ /** A step multiplied back out rarely lands on itself (`149.99999999999997`). */
215
187
  function roundTick(value) {
216
188
  return Number(value.toFixed(6));
217
189
  }
218
190
  /** Every segment's span on the value axis, series-major: `offsets[series][category]`.
219
191
  *
220
- * `'none'` and `'grouped'` give every series the same span it would have alone - the two differ in
221
- * where the band puts them, which is geometry rather than value. The stacking modes run a
222
- * POSITIVE and a NEGATIVE pile per category, so a negative segment hangs below the baseline
223
- * instead of being subtracted from the positive pile it sits in.
192
+ * `'none'` and `'grouped'` give every series the span it would have alone. The stacking modes run a
193
+ * positive and a negative pile per category.
224
194
  *
225
- * `'normalized'` divides a running SUM rather than each share in turn: adding 20/60 to 40/60
226
- * lands on 0.9999999999999999, which draws a category that visibly falls short of full.
195
+ * `'normalized'` divides a running sum, not each share in turn: 20/60 + 40/60 is
196
+ * 0.9999999999999999 and draws a category visibly short of full.
227
197
  */
228
198
  function stackOffsets(series, mode) {
229
199
  const reading = (value) => Number.isFinite(value) ? value : 0;
@@ -268,13 +238,11 @@ function annotationMarks(readings, plotWidth) {
268
238
  key: reading.key,
269
239
  label: reading.label,
270
240
  x: reading.x,
271
- // Above the reading, and below it where there is no room - a peak sits at the top of the
272
- // plot, which is exactly where a label clamped upward lands on its own marker.
241
+ // Below the reading where there is no room above, or a label at a peak lands on its own marker.
273
242
  y: reading.y - ANNOTATION_GAP >= ANNOTATION_GAP
274
243
  ? reading.y - ANNOTATION_GAP
275
244
  : reading.y + ANNOTATION_GAP,
276
- // Anchored away from the plot edges: a centred label at the first or last category hangs
277
- // half outside the viewBox and is clipped rather than merely tight.
245
+ // Anchored away from the plot edges: a centred first/last label hangs outside the viewBox.
278
246
  anchor: reading.x < ANNOTATION_EDGE_GUARD
279
247
  ? 'start'
280
248
  : reading.x > plotWidth - ANNOTATION_EDGE_GUARD
@@ -282,9 +250,8 @@ function annotationMarks(readings, plotWidth) {
282
250
  : 'middle',
283
251
  }));
284
252
  }
285
- /** Which category a pointer at `x` is over, or `-1` outside the plot. Bands are equal and abut,
286
- * so the reading is a division rather than a search - and the half band at each end belongs to
287
- * the first and last category, which is where a reader aiming at the edge means to be.
253
+ /** Which category a pointer at `x` is over, or `-1` outside the plot. The half band at each end
254
+ * belongs to the first and last category.
288
255
  *
289
256
  * @internal */
290
257
  function categoryAt(x, plotLeft, plotWidth, categoryCount) {
@@ -298,8 +265,7 @@ function categoryAt(x, plotLeft, plotWidth, categoryCount) {
298
265
  const band = plotWidth / categoryCount;
299
266
  return Math.min(categoryCount - 1, Math.floor(offset / band));
300
267
  }
301
- /** Readings in the order the reader sees their marks, top to bottom, with the height dropped. A
302
- * tie, or a reading with no height, keeps its given place. */
268
+ /** Readings ordered top to bottom with the height dropped; ties and readings with no height keep their place. */
303
269
  function topDown(entries) {
304
270
  return [...entries]
305
271
  .sort((above, below) => (above.y ?? Infinity) - (below.y ?? Infinity) || 0)
@@ -308,133 +274,62 @@ function topDown(entries) {
308
274
 
309
275
  const CHART_SCALES = new InjectionToken('CHART_SCALES');
310
276
 
311
- class ChartComponent {
277
+ class ChartComponent extends DsChartBase {
312
278
  renderReady = chartRenderGate();
313
- /** The category axis. Every projected mark is positioned against this list, so its length is
314
- * what decides how many bands the plot has. */
279
+ /** One band per category; every projected mark is positioned against them. */
315
280
  categories = input([], ...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
316
- /** How many value-axis ticks to aim for. A hint, not a count: ticks snap to a round step, so
317
- * the axis may carry one more or one fewer. */
281
+ /** How many value-axis ticks to aim for; ticks snap to a round step, so the count may differ by one. */
318
282
  tickCount = input(CHART_DEFAULT_TICK_COUNT, { ...(ngDevMode ? { debugName: "tickCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
319
- /** Pins the floor of the value axis instead of deriving it from the marks. It only ever opens
320
- * the axis further: a floor above the data would push readings off the plot. */
283
+ /** Pins the floor of the value axis. It only opens the axis further; a floor above the data is ignored. */
321
284
  min = input(null, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
322
- /** Pins the ceiling of the value axis. See `min`. Two charts drawn one subject at a time are
323
- * only comparable when both are pinned. */
285
+ /** Pins the ceiling of the value axis. See `min`. */
324
286
  max = input(null, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
325
- /** Draws a band and a crosshair down the category under the pointer, and reports that category
326
- * to every mark through `activeIndex`. On a plot of two or more marks that show a tooltip, the
327
- * panel then names every mark's reading at that category wherever in it the pointer is.
328
- * `'auto'`, the default, is `'category'` for such a composed plot and `'none'` for a plot of one
329
- * mark, whose marks already answer per mark: two affordances on one plot read as two different
330
- * questions. */
287
+ /** Draws a band and crosshair down the category under the pointer and reports it to every mark
288
+ * through `activeIndex`; the panel then names every reading at that category. `'auto'` (default)
289
+ * is `'category'` with two or more tooltip-showing marks or a mark with `tooltip="axis"`, else
290
+ * `'none'`. */
331
291
  cursor = input('auto', ...(ngDevMode ? [{ debugName: "cursor" }] : /* istanbul ignore next */ []));
332
- /** Whether a press holds the category cursor where it is, so the reader can look away from the
333
- * plot with the comparison still on screen. Released by pressing it again, by Escape, or by a
334
- * press outside the plot. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
335
- cursorPin = input(null, { ...(ngDevMode ? { debugName: "cursorPin" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
336
- cursorPinResolved = resolveWithConfig(this.cursorPin, (config) => config.chart?.pinOnClick, true);
337
- /** Milliseconds the cursor survives the pointer leaving the plot. The tooltip panel is portaled
338
- * out of the plot, so without a grace period it closes before the pointer can reach it. */
339
- tooltipLingerMs = input(null, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
340
- /** Pins the ceiling of the SECOND value axis, the way `max` pins the first. Two plots read
341
- * against each other need both pinned, or the second rescales under them. */
292
+ pinOnClickResolved = resolveWithConfig(this.pinOnClick, (config) => config.chart?.pinOnClick, true);
293
+ /** Pins the ceiling of the SECOND value axis, the way `max` pins the first. */
342
294
  maxSecondary = input(null, { ...(ngDevMode ? { debugName: "maxSecondary" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
343
- /** Height of the plot itself, in CSS pixels, axis labels and value headroom excluded. Real
344
- * pixels rather than a share of the width: one viewBox unit is one pixel, so a card that
345
- * widens spreads the categories further apart and leaves the plot exactly this tall. */
295
+ /** Plot height in CSS pixels, axis labels and headroom excluded; fixed across card widths. */
346
296
  plotHeight = input(CHART_DEFAULT_PLOT_HEIGHT, { ...(ngDevMode ? { debugName: "plotHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
347
- /** Width in CSS pixels of the gutter down the left that carries the value-axis labels. Widen it
348
- * for long tick labels; the plot takes whatever is left. */
297
+ /** Width in CSS pixels of the left gutter that carries the value-axis labels. */
349
298
  axisGutter = input(CHART_DEFAULT_AXIS_GUTTER, { ...(ngDevMode ? { debugName: "axisGutter" } : /* istanbul ignore next */ {}), transform: numberAttribute });
350
- /** Pixels reserved for a value label at each end of the plot: above the top tick for a mark at
351
- * the ceiling, and below the baseline for a negative mark, whose label would otherwise print
352
- * over the category labels. Reserved whether or not a mark draws one, because a chart that
353
- * gains a label on one value must not change height. */
299
+ /** Pixels reserved at each end of the plot for a value label, drawn or not. */
354
300
  valueSpace = input(CHART_DEFAULT_VALUE_SPACE, { ...(ngDevMode ? { debugName: "valueSpace" } : /* istanbul ignore next */ {}), transform: numberAttribute });
355
- /** Printed above the plot as the chart's visible title. */
356
- caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
357
- /** Whether the projected marks answer to the pointer and the keyboard. The container draws no
358
- * marks of its own and only reads this for the plot's role: a group of controls to step
359
- * through, against a single image to be described. */
360
- interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
361
- /** Accessible name for the plot. The container holds no readings of its own, so a chart that
362
- * needs its numbers described supplies the sentence here - `describeSeries` is what the five
363
- * presets build it with. It is the whole label in the static case, where nothing else is
364
- * reachable. */
365
- summary = input(null, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
366
- /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;
367
- * `'none'` leaves it bare, for one placed inside a card the page has already drawn. Unset
368
- * falls back to `DS_CONFIG.chart.frame`, then `'auto'`. */
369
- frame = input(null, ...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
370
- /** Draws a placeholder in place of the plot, at the plot's own height, so the page does not
371
- * resize when the data lands. */
372
- loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
373
- /** Shown in place of the plot when `categories` is empty. Unset falls back to
374
- * `DS_INTL.chart.empty`. */
375
- emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
376
- /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty
377
- * `categories`, because "the request failed" and "there is nothing to show" read the same to a
378
- * reader and mean opposite things. */
379
- error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
380
- /** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
381
- errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
382
- /** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
383
- * `DS_CONFIG.locale` / `LOCALE_ID`. */
384
- valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
385
- /** How the second value axis relates to the first, once a mark has reported against it. The
386
- * same four words `ds-line-chart` takes. */
301
+ /** How the second value axis relates to the first, once a mark has reported against it. */
387
302
  secondaryAxisMode = input('aligned', ...(ngDevMode ? [{ debugName: "secondaryAxisMode" }] : /* istanbul ignore next */ []));
388
- /** Paints the first axis's tick labels in the colour of the marks measured against it. A
389
- * two-scale plot is ambiguous without it - nothing on the canvas says which of two lines is
390
- * read against which set of numbers - and it is the author, not the container, who knows which
391
- * colour an axis belongs to, because several marks can share one. */
303
+ /** Colours the first axis's tick labels like the marks measured against it. */
392
304
  axisColor = input(null, ...(ngDevMode ? [{ debugName: "axisColor" }] : /* istanbul ignore next */ []));
393
305
  /** `axisColor` for the second axis. */
394
306
  secondaryAxisColor = input(null, ...(ngDevMode ? [{ debugName: "secondaryAxisColor" }] : /* istanbul ignore next */ []));
395
- /** Names the first axis's unit beside it. On a two-scale plot the colour says which line reads
396
- * which axis and this says what the numbers ARE - a reader who has neither is left comparing
397
- * two quantities that may not be comparable at all. */
307
+ /** Names the first axis's unit beside it. */
398
308
  axisLabel = input(null, ...(ngDevMode ? [{ debugName: "axisLabel" }] : /* istanbul ignore next */ []));
399
309
  /** `axisLabel` for the second axis. */
400
310
  secondaryAxisLabel = input(null, ...(ngDevMode ? [{ debugName: "secondaryAxisLabel" }] : /* istanbul ignore next */ []));
401
- defaults = resolveChartDefaults(this);
402
- intl = inject(DS_INTL);
403
- frameResolved = this.defaults.frame;
404
- emptyTextResolved = this.defaults.emptyText;
405
- errorTextResolved = this.defaults.errorText;
406
- valueFormatResolved = this.defaults.valueFormat;
311
+ tooltipSwatchesResolved = this.defaults.tooltipSwatches;
407
312
  hoverDelayMs = this.defaults.hoverDelayMs;
408
313
  host = inject(ElementRef);
409
314
  zone = inject(NgZone);
410
315
  isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
411
- /** The `<svg>`'s own rendered width: `:host(.framed)` carries the frame padding, so the host's
412
- * CONTENT box - which is what a `ResizeObserver` reports - is the box the canvas fills at
413
- * `inline-size: 100%`. Measuring the host is therefore measuring the canvas. */
316
+ /** The `<svg>`'s rendered width: the host's content box, since `:host(.framed)` carries the padding. */
414
317
  measuredWidth = elementWidth(this.host);
415
- /** Server-rendered output has no width to wait for, so it draws at the stand-in. */
318
+ /** True under SSR, which draws at the fallback width. */
416
319
  measured = computed(() => !this.isBrowser || this.measuredWidth() > 0, ...(ngDevMode ? [{ debugName: "measured" }] : /* istanbul ignore next */ []));
417
320
  viewWidth = computed(() => this.measuredWidth() || CHART_FALLBACK_WIDTH, ...(ngDevMode ? [{ debugName: "viewWidth" }] : /* istanbul ignore next */ []));
418
- /** Whether the marks may animate yet. The first frame draws at `CHART_FALLBACK_WIDTH` scaled to
419
- * fit, so the measurement that follows moves every mark - and a mark that transitions its
420
- * geometry would play that correction as an animated slide on every load, hydration included.
421
- *
422
- * Two frames, not one. A transition starts when the property changes in a style that also
423
- * enables it, so the enabling must not land in the same style recalculation as the correction.
424
- * One `requestAnimationFrame` is not enough: scheduled from the change detection that writes
425
- * the corrected geometry, it runs at the START of the next frame, still before that geometry
426
- * has been through a recalculation. Measured with one frame: `transitionrun` on `x` and
427
- * `width`, both marks, on the same tick the class cleared. */
321
+ /** Whether the marks may animate: the correction after measuring must not. Two frames, because
322
+ * after one the corrected geometry is unstyled and `transitionrun` fires on `x` and `width`. */
428
323
  settled = signal(false, ...(ngDevMode ? [{ debugName: "settled" }] : /* istanbul ignore next */ []));
429
324
  constructor() {
325
+ super();
430
326
  effect((onCleanup) => {
431
327
  if (this.settled() || this.measuredWidth() === 0) {
432
328
  return;
433
329
  }
434
330
  let first = 0;
435
331
  let second = 0;
436
- // Outside the zone: under zone.js each frame callback is a full application tick, two per
437
- // chart, and the signal write schedules the one render this needs by itself.
332
+ // Outside the zone: under zone.js each frame callback is a full application tick.
438
333
  this.zone.runOutsideAngular(() => {
439
334
  first = requestAnimationFrame(() => {
440
335
  second = requestAnimationFrame(() => this.settled.set(true));
@@ -451,9 +346,7 @@ class ChartComponent {
451
346
  onCleanup(this.listenForCursor(canvas));
452
347
  }
453
348
  });
454
- // The read phase, so every `getComputedTextLength` lands in one batch before any write:
455
- // interleaving them forces a synchronous layout per label. It re-measures when a label's text
456
- // changes, and only then - not when a resize merely moves the labels.
349
+ // Read phase: every `getComputedTextLength` before any write, or each label forces a layout.
457
350
  afterRenderEffect({
458
351
  read: () => {
459
352
  this.labelTexts();
@@ -471,51 +364,27 @@ class ChartComponent {
471
364
  }
472
365
  return Math.ceil(widest);
473
366
  }
474
- /** Two plots, one above the other, sharing the category axis: the only mode whose second axis
475
- * is a second PLOT rather than a second scale over the first. */
367
+ /** Two plots stacked on a shared category axis. */
476
368
  stacked = computed(() => this.secondaryAxisMode() === 'split' && this.hasSecondaryAxis(), ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
477
369
  viewHeight = computed(() => chartViewHeight(this.plotHeight(), this.valueSpace(), this.reachesBelowZero()) + (this.stacked() ? this.plotHeight() + CHART_STACKED_PLOT_GAP : 0), ...(ngDevMode ? [{ debugName: "viewHeight" }] : /* istanbul ignore next */ []));
478
- /** One viewBox unit is one CSS pixel, in both axes. That is the whole point of measuring: a
479
- * radius, a gutter or a width cap set anywhere inside the plot is then the length it says it
480
- * is, at every card width, instead of a share of one that a fixed viewBox stretches. */
370
+ /** One viewBox unit is one CSS pixel, so lengths inside the plot hold at every width. */
481
371
  viewBox = computed(() => `0 0 ${this.viewWidth()} ${this.viewHeight()}`, ...(ngDevMode ? [{ debugName: "viewBox" }] : /* istanbul ignore next */ []));
482
- /** Widest tick label actually rendered, in the CSS pixels the canvas is drawn in. Zero until the
483
- * first read, and zero under SSR, where `axisGutter` alone decides. */
372
+ /** Widest tick label as rendered, in CSS pixels. Zero until the first read and under SSR. */
484
373
  measuredLabelWidth = signal(0, ...(ngDevMode ? [{ debugName: "measuredLabelWidth" }] : /* istanbul ignore next */ []));
485
- /** The widest category label as drawn, which is what decides whether they all fit. */
486
374
  measuredCategoryLabelWidth = signal(0, ...(ngDevMode ? [{ debugName: "measuredCategoryLabelWidth" }] : /* istanbul ignore next */ []));
487
- /** `axisGutter` is the FLOOR, not the answer: a compact number is far wider in some locales than
488
- * in others - `3,5 тыс.` against `3.5k` - and an SVG canvas CLIPS what a DOM column merely
489
- * overflowed, so a fixed gutter silently eats the leading digit. The gutter takes whichever is
490
- * larger, so setting the token still guarantees at least that much room.
491
- *
492
- * This converges rather than oscillating: a tick's TEXT is decided by the domain and the tick
493
- * count, neither of which the gutter feeds, so widening it moves the labels without rewriting
494
- * them and the second measurement equals the first. */
375
+ /** `axisGutter` is the floor: compact numbers are wider in some locales and the SVG clips overflow. */
495
376
  effectiveAxisGutter = computed(() => Math.max(this.axisGutter(), this.measuredLabelWidth() + CHART_AXIS_LABEL_GAP + this.axisTitleGutter()), ...(ngDevMode ? [{ debugName: "effectiveAxisGutter" }] : /* istanbul ignore next */ []));
496
- /** A rotated axis title stands in the same gutter as the tick labels, so the gutter has to carry
497
- * both or the widest tick runs through the title. Its own width is its line height, because it
498
- * is turned on its side. */
377
+ /** A rotated axis title shares the tick gutter; its width is its line height. */
499
378
  axisTitleGutter = computed(() => this.axisLabel() ? CHART_AXIS_TITLE_BAND : 0, ...(ngDevMode ? [{ debugName: "axisTitleGutter" }] : /* istanbul ignore next */ []));
500
- /** Where a rotated axis title sits: hard against the outer edge, with the tick labels between it
501
- * and the plot. */
502
379
  axisTitleX = computed(() => CHART_AXIS_TITLE_BAND / 2, ...(ngDevMode ? [{ debugName: "axisTitleX" }] : /* istanbul ignore next */ []));
503
- /** Mirrors `axisTitleX` against the right edge, so the two titles stand the same distance from
504
- * their own ticks. */
505
380
  secondaryTitleX = computed(() => this.viewWidth() - CHART_AXIS_TITLE_BAND / 2, ...(ngDevMode ? [{ debugName: "secondaryTitleX" }] : /* istanbul ignore next */ []));
506
- /** Widest secondary tick label, measured the same way and for the same reason as the primary
507
- * one: those labels sit OUTSIDE the plot's right edge and an SVG canvas clips what a DOM
508
- * column merely overflowed. */
509
381
  measuredSecondaryLabelWidth = signal(0, ...(ngDevMode ? [{ debugName: "measuredSecondaryLabelWidth" }] : /* istanbul ignore next */ []));
510
- /** The plot gives the right-hand labels room only when they are drawn there - a stacked second
511
- * axis puts both label columns down the left, so the plot keeps the full width. */
382
+ /** Right-hand label room only when the second axis is drawn there; a stacked one is on the left. */
512
383
  rightGutter = computed(() => this.hasSecondaryAxis() && !this.stacked()
513
384
  ? Math.max(this.axisGutter(), this.measuredSecondaryLabelWidth() +
514
385
  CHART_AXIS_LABEL_GAP +
515
386
  this.secondaryTitleGutter())
516
387
  : CHART_EDGE_GUTTER, ...(ngDevMode ? [{ debugName: "rightGutter" }] : /* istanbul ignore next */ []));
517
- /** The second axis's title stands in the right gutter exactly as the first one's stands in the
518
- * left, so both sides reserve the same band and the plot sits centred between its two labels. */
519
388
  secondaryTitleGutter = computed(() => this.secondaryAxisLabel() && this.hasSecondaryAxis()
520
389
  ? CHART_AXIS_TITLE_BAND
521
390
  : 0, ...(ngDevMode ? [{ debugName: "secondaryTitleGutter" }] : /* istanbul ignore next */ []));
@@ -546,10 +415,9 @@ class ChartComponent {
546
415
  return next;
547
416
  });
548
417
  }
549
- /** A template that replaces the panel's body, for a preset that prints more than label+value. */
418
+ /** A template that replaces the panel's body. */
550
419
  tooltipTemplate = input(null, ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
551
- /** Extra clearance between the mark and the panel, for a chart that prints a value label in
552
- * the gap the panel would otherwise take. */
420
+ /** Extra clearance between the mark and the panel, for a value label printed in that gap. */
553
421
  tooltipExtraGap = input(0, { ...(ngDevMode ? { debugName: "tooltipExtraGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
554
422
  tooltipSources = signal(new Map(), ...(ngDevMode ? [{ debugName: "tooltipSources" }] : /* istanbul ignore next */ []));
555
423
  reportTooltip(id, source) {
@@ -562,20 +430,18 @@ class ChartComponent {
562
430
  return next;
563
431
  });
564
432
  }
565
- /** Two or more marks that show a tooltip: the plot reads as one comparison, so its panel is about
566
- * the category rather than about whichever mark the pointer happens to be over. */
433
+ /** Two or more marks that show a tooltip: the panel is about the category, not the mark under the pointer. */
567
434
  composed = computed(() => [...this.tooltipSources().values()].filter((source) => source.offersTooltip?.() ?? true).length > 1, ...(ngDevMode ? [{ debugName: "composed" }] : /* istanbul ignore next */ []));
568
435
  cursorResolved = computed(() => {
569
436
  const cursor = this.cursor();
570
437
  if (cursor !== 'auto') {
571
438
  return cursor;
572
439
  }
573
- return this.composed() ? 'category' : 'none';
440
+ const readsCategory = [...this.tooltipSources().values()].some((source) => source.readsCategory?.() ?? false);
441
+ return this.composed() || readsCategory ? 'category' : 'none';
574
442
  }, ...(ngDevMode ? [{ debugName: "cursorResolved" }] : /* istanbul ignore next */ []));
575
443
  cursorOn = computed(() => this.cursorResolved() === 'category', ...(ngDevMode ? [{ debugName: "cursorOn" }] : /* istanbul ignore next */ []));
576
- /** The offer to show, if any mark is making one. At most one mark has a context at a time: a
577
- * per-mark tooltip only fills it while that mark is hovered, and an axis tooltip only while the
578
- * category cursor is on. The container opening the panel is what stops two marks opening two. */
444
+ /** The tooltip context to show, if any; at most one mark has one at a time. */
579
445
  activeTooltip = computed(() => [...this.tooltipSources().values()].find((source) => source.context() !== null) ?? null, ...(ngDevMode ? [{ debugName: "activeTooltip" }] : /* istanbul ignore next */ []));
580
446
  tooltipContext = computed(() => {
581
447
  const base = this.activeTooltip()?.context() ?? null;
@@ -592,9 +458,7 @@ class ChartComponent {
592
458
  entries: topDown(readings),
593
459
  };
594
460
  }
595
- // A mark offers its own panel under the cursor only from focus or an axis tooltip, and that
596
- // panel is about the category, so every other mark's reading belongs in it too. Matched by
597
- // label: the mark that offered it keeps its own row, detail included, at its drawn height.
461
+ // The panel is about the category, so every other mark's reading joins it, matched by label; the offering mark keeps its own row and detail.
598
462
  const named = new Map(base.entries.map((entry) => [entry.label, entry]));
599
463
  if (readings.every((reading) => named.has(reading.label))) {
600
464
  return base;
@@ -610,15 +474,12 @@ class ChartComponent {
610
474
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
611
475
  tooltipOrigin = computed(() => {
612
476
  const own = this.activeTooltip()?.origin() ?? null;
613
- // A point rather than an element is a panel that follows the pointer, and stays with it.
614
477
  if (this.cursorResolved() !== 'category' ||
615
478
  (own !== null && !(own instanceof Element))) {
616
479
  return own;
617
480
  }
618
- // A category panel belongs over the TALLEST reading at that category, not over whichever mark
619
- // happened to open it: a line that dips under a column would otherwise put the panel low and
620
- // let the column stand over it. Every mark's reading counts whether or not the pointer is on
621
- // it, or the panel jumps between the two as the pointer crosses the column's edge.
481
+ // Anchor over the tallest reading at the category, pointer over it or not: the opening mark
482
+ // puts the panel low under a column, and pointer-only readings make it jump at the column's edge.
622
483
  const boxes = [...this.tooltipSources().values()]
623
484
  .map((source) => (source.axisOrigin ?? source.origin)())
624
485
  .filter((origin) => origin instanceof Element)
@@ -632,14 +493,9 @@ class ChartComponent {
632
493
  : boxes.reduce((highest, candidate) => candidate.top < highest.top ? candidate : highest).element;
633
494
  }, ...(ngDevMode ? [{ debugName: "tooltipOrigin" }] : /* istanbul ignore next */ []));
634
495
  tooltipPinned = computed(() => (this.activeTooltip()?.pinned?.() ?? false) || this.cursorPinned(), ...(ngDevMode ? [{ debugName: "tooltipPinned" }] : /* istanbul ignore next */ []));
635
- /** Compared by value, which is what stops a mark that reports AND reads `yPosition()` in one
636
- * effect from running forever: every report allocates a fresh `Map` and `niceDomain` a fresh
637
- * object, so identity always differs and the read would re-arm the write. Measured without it:
638
- * 97507 effect runs in 45 seconds, no Angular loop error, renderer unresponsive. */
496
+ /** Compared by value: a mark that reports and reads `yPosition()` in one effect would otherwise loop forever. */
639
497
  domain = computed(() => axisDomain(this.valuesOn('primary'), this.tickCount(), this.min(), this.max()), { ...(ngDevMode ? { debugName: "domain" } : /* istanbul ignore next */ {}), equal: (a, b) => a.min === b.min && a.max === b.max });
640
- // Counts VALUES, not reporters: `valuesOn` returns one entry per mark that registered, and a
641
- // line series registers both axes unconditionally, so an empty contribution would otherwise
642
- // raise a whole second axis on a plot that has one.
498
+ // Counts values, not reporters: a line series registers both axes, so an empty one would raise a second axis.
643
499
  hasSecondaryAxis = computed(() => this.valuesOn('secondary').some((values) => values.length > 0), ...(ngDevMode ? [{ debugName: "hasSecondaryAxis" }] : /* istanbul ignore next */ []));
644
500
  secondary = computed(() => secondaryAxis(this.ticks().map((tick) => tick.value), this.valuesOn('secondary'), this.tickCount(), this.secondaryAxisMode(), this.maxSecondary()), { ...(ngDevMode ? { debugName: "secondary" } : /* istanbul ignore next */ {}), equal: (a, b) => a.aligned === b.aligned &&
645
501
  a.domain.min === b.domain.min &&
@@ -665,8 +521,7 @@ class ChartComponent {
665
521
  label: format(value, 'tick'),
666
522
  }));
667
523
  }, ...(ngDevMode ? [{ debugName: "secondaryTicks" }] : /* istanbul ignore next */ []));
668
- /** A second set of gridlines only where the two scales do NOT share rows: drawn against an
669
- * aligned axis they would land on the primary's own lines and double every stroke. */
524
+ /** Second gridlines only where the scales do not share rows; an aligned axis would double every stroke. */
670
525
  showSecondaryGridlines = computed(() => this.hasSecondaryAxis() &&
671
526
  (this.stacked() || !this.secondary().aligned) &&
672
527
  this.secondaryTicks().length > 1, ...(ngDevMode ? [{ debugName: "showSecondaryGridlines" }] : /* istanbul ignore next */ []));
@@ -675,8 +530,7 @@ class ChartComponent {
675
530
  : this.plot().left + this.plot().width + CHART_AXIS_LABEL_GAP, ...(ngDevMode ? [{ debugName: "secondaryLabelX" }] : /* istanbul ignore next */ []));
676
531
  secondaryLabelAnchor = computed(() => this.stacked() ? 'end' : 'start', ...(ngDevMode ? [{ debugName: "secondaryLabelAnchor" }] : /* istanbul ignore next */ []));
677
532
  secondaryPlotBottom = computed(() => this.secondaryPlot().top + this.secondaryPlot().height, ...(ngDevMode ? [{ debugName: "secondaryPlotBottom" }] : /* istanbul ignore next */ []));
678
- /** No tint on a single-scale plot: one axis needs no telling apart, and colouring it would only
679
- * restate the marks' own colour in the furniture. */
533
+ /** No tint on a single-scale plot. */
680
534
  axisLabelFill = computed(() => this.hasSecondaryAxis() ? this.axisColor() : null, ...(ngDevMode ? [{ debugName: "axisLabelFill" }] : /* istanbul ignore next */ []));
681
535
  secondaryAxisLabelFill = computed(() => this.secondaryAxisColor(), ...(ngDevMode ? [{ debugName: "secondaryAxisLabelFill" }] : /* istanbul ignore next */ []));
682
536
  bands = computed(() => bandScale(this.categories().length, this.plot().width, CHART_BAND_PADDING), ...(ngDevMode ? [{ debugName: "bands" }] : /* istanbul ignore next */ []));
@@ -705,43 +559,34 @@ class ChartComponent {
705
559
  bottom: plot.top + plot.height,
706
560
  };
707
561
  }, ...(ngDevMode ? [{ debugName: "cursorBand" }] : /* istanbul ignore next */ []));
708
- /** The same state machine the element marks run on: pin, linger, the grace period that lets the
709
- * pointer reach a portaled panel, Escape and press-outside. A category cursor differs from a
710
- * mark only in what the index counts, so it takes the behaviour rather than restating it. */
562
+ /** The same state machine the element marks run on; here the index counts categories. */
711
563
  cursorState = chartActiveMark(() => this.defaults.tooltipLingerMs(), () => this.hoverDelayMs());
712
564
  activeIndex = this.cursorState.index;
713
565
  pointerAt = signal(null, ...(ngDevMode ? [{ debugName: "pointerAt" }] : /* istanbul ignore next */ []));
714
- // Set at once, not after the hover delay: the pointer cursor says what a press would do there.
566
+ // Set at once, not after the hover delay.
715
567
  pointerInBand = signal(false, ...(ngDevMode ? [{ debugName: "pointerInBand" }] : /* istanbul ignore next */ []));
716
568
  // At the band's foot: its head is where the panel opens, over the tallest reading.
717
569
  bandPinY(band) {
718
570
  return band.bottom - CHART_PIN_RADIUS - CHART_PIN_GAP;
719
571
  }
720
- bandPins = computed(() => this.cursorPinResolved() && this.pointerInBand(), ...(ngDevMode ? [{ debugName: "bandPins" }] : /* istanbul ignore next */ []));
572
+ bandPins = computed(() => this.pinOnClickResolved() && this.pointerInBand(), ...(ngDevMode ? [{ debugName: "bandPins" }] : /* istanbul ignore next */ []));
721
573
  cursorPointer = computed(() => this.activeIndex() < 0 ? null : this.pointerAt(), ...(ngDevMode ? [{ debugName: "cursorPointer" }] : /* istanbul ignore next */ []));
722
- /** Whether the cursor is held. A preset renders its own way out of the pin from this. */
574
+ /** Whether the cursor is held. */
723
575
  cursorPinned = this.cursorState.pinned;
724
576
  releaseCursor() {
725
577
  this.cursorState.release();
726
578
  }
727
579
  canvasElement = viewChild('canvasEl', ...(ngDevMode ? [{ debugName: "canvasElement" }] : /* istanbul ignore next */ []));
728
- // Read once per hover and dropped on any scroll, rather than on every move: a move that follows
729
- // the cursor band's own update would otherwise force a second layout in the same frame.
580
+ // Read once per hover and dropped on scroll: reading on every move forces a second layout after the band update.
730
581
  canvasRect = null;
731
582
  plotPointer(event, canvas) {
732
583
  this.canvasRect ??= canvas.getBoundingClientRect();
733
584
  const plot = this.plot();
734
- // The canvas is scaled to its box, so a client x has to come back through the viewBox before
735
- // it means anything to a plot measured in view units.
585
+ // Client x to view units: the canvas is scaled to its box.
736
586
  const viewX = ((event.clientX - this.canvasRect.left) / this.canvasRect.width) *
737
587
  this.viewWidth();
738
- const category = this.clampIndex(categoryAt(viewX, plot.left, plot.width, this.categories().length));
739
- // Only the drawn band answers, so the gap between two categories is empty ground rather than a
740
- // strip that belongs to one of them.
741
- const index = category >= 0 &&
742
- Math.abs(viewX - this.xPosition()(category)) <= this.bandWidth() / 2
743
- ? category
744
- : -1;
588
+ // Every point belongs to its nearest category, so the cursor never passes through "none".
589
+ const index = this.clampIndex(categoryAt(viewX, plot.left, plot.width, this.categories().length));
745
590
  this.pointerAt.set({ x: event.clientX, y: event.clientY });
746
591
  this.pointerInBand.set(index >= 0);
747
592
  if (index < 0) {
@@ -753,14 +598,13 @@ class ChartComponent {
753
598
  }
754
599
  return;
755
600
  }
756
- if (event.type === 'pointerdown' && this.cursorPinResolved()) {
601
+ if (event.type === 'pointerdown' && this.pinOnClickResolved()) {
757
602
  this.cursorState.pin(index, event);
758
603
  return;
759
604
  }
760
605
  this.cursorState.enter(index, event);
761
606
  }
762
- /** The plot listens to the pointer only when it draws a category cursor, and outside the zone:
763
- * the handler writes signals, which schedule the render they need. */
607
+ /** Listens only when a category cursor is drawn, outside the zone. */
764
608
  listenForCursor(canvas) {
765
609
  const forgetRect = () => {
766
610
  this.canvasRect = null;
@@ -805,8 +649,7 @@ class ChartComponent {
805
649
  plotRight = computed(() => this.plot().left + this.plot().width, ...(ngDevMode ? [{ debugName: "plotRight" }] : /* istanbul ignore next */ []));
806
650
  plotBottom = computed(() => this.plot().top + this.plot().height, ...(ngDevMode ? [{ debugName: "plotBottom" }] : /* istanbul ignore next */ []));
807
651
  axisLabelX = computed(() => this.plot().left - CHART_AXIS_LABEL_GAP, ...(ngDevMode ? [{ debugName: "axisLabelX" }] : /* istanbul ignore next */ []));
808
- /** Clears the same reservation the view height budgets, and only when it is there: adding it
809
- * unconditionally would drop the labels past a viewBox that no longer holds the space. */
652
+ /** Clears the reservation the view height budgets, only when it is there; otherwise the labels fall past the viewBox. */
810
653
  categoryLabelY = computed(() => this.secondaryPlotBottom() +
811
654
  (this.reachesBelowZero() ? this.valueSpace() : 0) +
812
655
  CHART_CATEGORY_LABEL_OFFSET, ...(ngDevMode ? [{ debugName: "categoryLabelY" }] : /* istanbul ignore next */ []));
@@ -825,13 +668,11 @@ class ChartComponent {
825
668
  ...this.secondaryTicks().map((tick) => tick.label),
826
669
  ...this.categories(),
827
670
  ].join('\n'), ...(ngDevMode ? [{ debugName: "labelTexts" }] : /* istanbul ignore next */ []));
828
- /** Rotation is spent before thinning: a tilt costs the reader a glance, dropping a label costs
829
- * them a reading. Both are decided from the widest label as it actually rendered. */
671
+ /** Rotation is tried before thinning; both use the widest label as rendered. */
830
672
  categoryLabelsRotated = computed(() => rotationWouldFit([this.measuredCategoryLabelWidth()], this.plot().width / Math.max(1, this.categories().length)), ...(ngDevMode ? [{ debugName: "categoryLabelsRotated" }] : /* istanbul ignore next */ []));
831
673
  categoryLabelInterval = computed(() => labelInterval([this.measuredCategoryLabelWidth()], this.plot().width / Math.max(1, this.categories().length), this.categoryLabelsRotated()), ...(ngDevMode ? [{ debugName: "categoryLabelInterval" }] : /* istanbul ignore next */ []));
832
674
  labelHovered = signal(null, ...(ngDevMode ? [{ debugName: "labelHovered" }] : /* istanbul ignore next */ []));
833
675
  categoryLabelHover = this.labelHovered.asReadonly();
834
- // Under the category cursor a label is already inside its band's hover area.
835
676
  onCategoryLabelEnter(index, event) {
836
677
  if (!this.cursorOn()) {
837
678
  this.labelHovered.set({ index, event });
@@ -843,25 +684,21 @@ class ChartComponent {
843
684
  categoryLabels = computed(() => {
844
685
  const toX = this.xPosition();
845
686
  const interval = this.categoryLabelInterval();
846
- return (this.categories()
687
+ return this.categories()
847
688
  .map((text, index) => ({ x: toX(index), text, index }))
848
- // The first is always drawn and the rest follow the interval, so the axis keeps an anchor
849
- // the reader can count from rather than an arbitrary offset into the categories.
850
- .filter((label) => label.index % interval === 0));
689
+ .filter((label) => label.index % interval === 0);
851
690
  }, ...(ngDevMode ? [{ debugName: "categoryLabels" }] : /* istanbul ignore next */ []));
852
691
  reachesBelowZero = computed(() => this.domain().min < 0, ...(ngDevMode ? [{ debugName: "reachesBelowZero" }] : /* istanbul ignore next */ []));
853
- /** Empty is read off `categories` alone, never off the reported domains: the marks are
854
- * projected INTO the branch that this decides, so a container that waited for a report before
855
- * rendering them would never receive one. */
692
+ /** Read off `categories` alone: the marks are projected into the branch this decides, so waiting for a report would deadlock. */
856
693
  isEmpty = computed(() => this.categories().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
857
694
  accessibleName = computed(() => this.summary() ?? this.caption() ?? this.intl().chart.title, ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
858
695
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
859
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartComponent, isStandalone: true, selector: "ds-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, cursor: { classPropertyName: "cursor", publicName: "cursor", isSignal: true, isRequired: false, transformFunction: null }, cursorPin: { classPropertyName: "cursorPin", publicName: "cursorPin", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", isSignal: true, isRequired: false, transformFunction: null }, plotHeight: { classPropertyName: "plotHeight", publicName: "plotHeight", isSignal: true, isRequired: false, transformFunction: null }, axisGutter: { classPropertyName: "axisGutter", publicName: "axisGutter", isSignal: true, isRequired: false, transformFunction: null }, valueSpace: { classPropertyName: "valueSpace", publicName: "valueSpace", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", 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 }, secondaryAxisMode: { classPropertyName: "secondaryAxisMode", publicName: "secondaryAxisMode", isSignal: true, isRequired: false, transformFunction: null }, axisColor: { classPropertyName: "axisColor", publicName: "axisColor", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisColor: { classPropertyName: "secondaryAxisColor", publicName: "secondaryAxisColor", isSignal: true, isRequired: false, transformFunction: null }, axisLabel: { classPropertyName: "axisLabel", publicName: "axisLabel", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisLabel: { classPropertyName: "secondaryAxisLabel", publicName: "secondaryAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltipTemplate: { classPropertyName: "tooltipTemplate", publicName: "tooltipTemplate", isSignal: true, isRequired: false, transformFunction: null }, tooltipExtraGap: { classPropertyName: "tooltipExtraGap", publicName: "tooltipExtraGap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "class.measuring": "!settled()", "style.--_chart-view-height": "viewHeight() + 'px'" } }, providers: [
696
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartComponent, isStandalone: true, selector: "ds-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, cursor: { classPropertyName: "cursor", publicName: "cursor", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", isSignal: true, isRequired: false, transformFunction: null }, plotHeight: { classPropertyName: "plotHeight", publicName: "plotHeight", isSignal: true, isRequired: false, transformFunction: null }, axisGutter: { classPropertyName: "axisGutter", publicName: "axisGutter", isSignal: true, isRequired: false, transformFunction: null }, valueSpace: { classPropertyName: "valueSpace", publicName: "valueSpace", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisMode: { classPropertyName: "secondaryAxisMode", publicName: "secondaryAxisMode", isSignal: true, isRequired: false, transformFunction: null }, axisColor: { classPropertyName: "axisColor", publicName: "axisColor", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisColor: { classPropertyName: "secondaryAxisColor", publicName: "secondaryAxisColor", isSignal: true, isRequired: false, transformFunction: null }, axisLabel: { classPropertyName: "axisLabel", publicName: "axisLabel", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisLabel: { classPropertyName: "secondaryAxisLabel", publicName: "secondaryAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltipTemplate: { classPropertyName: "tooltipTemplate", publicName: "tooltipTemplate", isSignal: true, isRequired: false, transformFunction: null }, tooltipExtraGap: { classPropertyName: "tooltipExtraGap", publicName: "tooltipExtraGap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "class.measuring": "!settled()", "style.--_chart-view-height": "viewHeight() + 'px'" } }, providers: [
860
697
  {
861
698
  provide: CHART_SCALES,
862
699
  useExisting: forwardRef(() => ChartComponent),
863
700
  },
864
- ], viewQueries: [{ propertyName: "canvasElement", first: true, predicate: ["canvasEl"], descendants: true, isSignal: true }, { propertyName: "bandElement", first: true, predicate: ["cursorBandEl"], descendants: true, isSignal: true }], exportAs: ["dsChart"], ngImport: i0, template: "<figure class=\"chart\">\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() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_chart-view-height)\"\n [shimmer]=\"loading()\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPinned]=\"tooltipPinned()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [class.pins]=\"bandPins()\"\n [style.block-size.px]=\"viewHeight()\"\n [attr.viewBox]=\"viewBox()\">\n @if (cursorBand(); as band) {\n <g\n class=\"cursor\"\n aria-hidden=\"true\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\">\n <rect\n #cursorBandEl\n class=\"category-band\"\n [attr.x]=\"band.x\"\n [attr.y]=\"band.top\"\n [attr.width]=\"band.width\"\n [attr.height]=\"band.bottom - band.top\" />\n\n <line\n class=\"cursor-line\"\n [attr.x1]=\"band.x + band.width / 2\"\n [attr.x2]=\"band.x + band.width / 2\"\n [attr.y1]=\"band.top\"\n [attr.y2]=\"band.bottom\" />\n </g>\n }\n\n <!-- Hidden as a group rather than on the svg: a projected mark may be focusable, and an\n aria-hidden ancestor would leave it reachable by Tab and invisible to a reader. -->\n <g\n class=\"axes\"\n aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"plotBottom()\"\n [attr.y2]=\"plotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"plot().top\"\n [attr.y2]=\"plotBottom()\" />\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track tick.value) {\n <line\n class=\"grid-line is-secondary\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n }\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryPlotBottom()\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"secondaryPlot().top\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n }\n\n @if (reachesBelowZero()) {\n <line\n class=\"zero-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"zeroOffset()\"\n [attr.y2]=\"zeroOffset()\" />\n }\n </g>\n\n <!-- Two slots, one group: a reference line has to paint UNDER the marks whatever order the\n consumer wrote it in, and a selected slot is what decides that instead of the author.\n Both stay inside `.marks`, which is what the boot transition guard is keyed on. -->\n <g class=\"marks\">\n <ng-content select=\"[dsReferenceLine]\" />\n\n <ng-content />\n </g>\n\n <g\n class=\"labels\"\n aria-hidden=\"true\">\n @if (axisLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"axisLabelFill()\"\n [attr.transform]=\"\n 'rotate(-90 ' +\n axisTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"axisTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ axisLabel() }}\n </text>\n }\n\n @if (secondaryAxisLabel() && hasSecondaryAxis()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.transform]=\"\n 'rotate(90 ' +\n secondaryTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"secondaryTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ secondaryAxisLabel() }}\n </text>\n }\n\n @for (tick of ticks(); track tick.value) {\n <text\n class=\"axis-label is-primary\"\n text-anchor=\"end\"\n [style.fill]=\"axisLabelFill()\"\n [attr.x]=\"axisLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track tick.value) {\n <text\n class=\"axis-label is-secondary\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track label.index) {\n <text\n class=\"category-label\"\n [class.is-rotated]=\"categoryLabelsRotated()\"\n [attr.text-anchor]=\"categoryLabelsRotated() ? 'end' : 'middle'\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\"\n [attr.transform]=\"\n categoryLabelsRotated()\n ? 'rotate(-45 ' + label.x + ' ' + categoryLabelY() + ')'\n : null\n \"\n (pointerenter)=\"onCategoryLabelEnter(label.index, $event)\"\n (pointerleave)=\"onCategoryLabelLeave()\">\n {{ label.text }}\n </text>\n }\n\n <!-- Over the marks, where `.marks` is under them: an annotation's LINE is furniture and\n belongs below the readings, its NAME has to survive a column drawn through it. -->\n <ng-content select=\"[dsReferenceLabel], [dsSeriesAnnotation]\" />\n </g>\n\n @if (cursorPinned() && cursorBand(); as band) {\n <g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n (band.x + band.width / 2) +\n ',' +\n bandPinY(band) +\n ')'\n \">\n </g>\n }\n </svg>\n </div>\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)}.chart{--_chart-grid-line-color: var(--ds-chart-grid-line-color, var(--chart-grid-line-color));--_chart-axis-line-color: var(--ds-chart-axis-line-color, var(--chart-axis-line-color));--_chart-axis-label-color: var(--ds-chart-axis-label-color, var(--chart-axis-label-color));--_chart-axis-font-size: var(--ds-chart-axis-font-size, var(--chart-axis-font-size));margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_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)}.canvas{display:block;inline-size:100%}.canvas.pins{cursor:pointer}:host(.measuring) .marks ::ng-deep *{transition-duration:0ms!important}.grid-line{stroke:var(--_chart-grid-line-color);stroke-width:1}.axis-line,.zero-line{stroke:var(--_chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size)}.category-label.is-rotated{dominant-baseline:middle}.axis-title{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size);font-weight:var(--font-weight-bold)}.axis-label{dominant-baseline:middle}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--ds-chart-hover-bg-color)}.cursor-line{stroke:var(--ds-chart-cursor-line-color);stroke-width:1}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
701
+ ], viewQueries: [{ propertyName: "canvasElement", first: true, predicate: ["canvasEl"], descendants: true, isSignal: true }, { propertyName: "bandElement", first: true, predicate: ["cursorBandEl"], descendants: true, isSignal: true }], exportAs: ["dsChart"], usesInheritance: true, ngImport: i0, template: "<figure class=\"chart\">\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() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_chart-view-height)\"\n [shimmer]=\"loading()\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"tooltipSwatchesResolved()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPinned]=\"tooltipPinned()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [class.pins]=\"bandPins()\"\n [style.block-size.px]=\"viewHeight()\"\n [attr.viewBox]=\"viewBox()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot().left\"\n [attr.y]=\"plot().top\"\n [attr.width]=\"plot().width\"\n [attr.height]=\"plot().height\" />\n\n @if (secondaryPlot().top !== plot().top) {\n <rect\n class=\"plot-bg\"\n [attr.x]=\"secondaryPlot().left\"\n [attr.y]=\"secondaryPlot().top\"\n [attr.width]=\"secondaryPlot().width\"\n [attr.height]=\"secondaryPlot().height\" />\n }\n\n @if (cursorBand(); as band) {\n <g\n class=\"cursor\"\n aria-hidden=\"true\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\">\n <rect\n #cursorBandEl\n class=\"category-band\"\n [attr.x]=\"band.x\"\n [attr.y]=\"band.top\"\n [attr.width]=\"band.width\"\n [attr.height]=\"band.bottom - band.top\" />\n\n <line\n class=\"cursor-line\"\n [attr.x1]=\"band.x + band.width / 2\"\n [attr.x2]=\"band.x + band.width / 2\"\n [attr.y1]=\"band.top\"\n [attr.y2]=\"band.bottom\" />\n </g>\n }\n\n <!-- Not on the svg: an aria-hidden ancestor leaves a focusable projected mark\n reachable by Tab yet invisible to a reader. -->\n <g\n class=\"axes\"\n aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"plotBottom()\"\n [attr.y2]=\"plotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"plot().top\"\n [attr.y2]=\"plotBottom()\" />\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track tick.value) {\n <line\n class=\"grid-line is-secondary\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n }\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryPlotBottom()\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"secondaryPlot().top\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n }\n\n @if (reachesBelowZero()) {\n <line\n class=\"zero-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"zeroOffset()\"\n [attr.y2]=\"zeroOffset()\" />\n }\n </g>\n\n <!-- Two slots so a reference line paints under the marks in any source order. Both stay\n inside `.marks`, which the boot transition guard is keyed on. -->\n <g class=\"marks\">\n <ng-content select=\"[dsReferenceLine]\" />\n\n <ng-content />\n </g>\n\n <g\n class=\"labels\"\n aria-hidden=\"true\">\n @if (axisLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"axisLabelFill()\"\n [attr.transform]=\"\n 'rotate(-90 ' +\n axisTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"axisTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ axisLabel() }}\n </text>\n }\n\n @if (secondaryAxisLabel() && hasSecondaryAxis()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.transform]=\"\n 'rotate(90 ' +\n secondaryTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"secondaryTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ secondaryAxisLabel() }}\n </text>\n }\n\n @for (tick of ticks(); track tick.value) {\n <text\n class=\"axis-label is-primary\"\n text-anchor=\"end\"\n [style.fill]=\"axisLabelFill()\"\n [attr.x]=\"axisLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track tick.value) {\n <text\n class=\"axis-label is-secondary\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track label.index) {\n <text\n class=\"category-label\"\n [class.is-rotated]=\"categoryLabelsRotated()\"\n [attr.text-anchor]=\"categoryLabelsRotated() ? 'end' : 'middle'\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\"\n [attr.transform]=\"\n categoryLabelsRotated()\n ? 'rotate(-45 ' + label.x + ' ' + categoryLabelY() + ')'\n : null\n \"\n (pointerenter)=\"onCategoryLabelEnter(label.index, $event)\"\n (pointerleave)=\"onCategoryLabelLeave()\">\n {{ label.text }}\n </text>\n }\n\n <!-- Over the marks so an annotation's name survives a column drawn through it. -->\n <ng-content select=\"[dsReferenceLabel], [dsSeriesAnnotation]\" />\n </g>\n\n @if (cursorPinned() && cursorBand(); as band) {\n <g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n (band.x + band.width / 2) +\n ',' +\n bandPinY(band) +\n ')'\n \">\n </g>\n }\n </svg>\n </div>\n }\n</figure>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-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)}.chart{--_chart-grid-line-color: var(--ds-chart-grid-line-color, var(--chart-grid-line-color));--_chart-axis-line-color: var(--ds-chart-axis-line-color, var(--chart-axis-line-color));--_chart-axis-label-color: var(--ds-chart-axis-label-color, var(--chart-axis-label-color));--_chart-axis-font-size: var(--ds-chart-axis-font-size, var(--chart-axis-font-size));margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_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)}.canvas{display:block;inline-size:100%}.canvas.pins{cursor:pointer}:host(.measuring) .marks ::ng-deep *{transition-duration:0ms!important}.grid-line{stroke:var(--_chart-grid-line-color);stroke-width:1}.axis-line,.zero-line{stroke:var(--_chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size)}.category-label.is-rotated{dominant-baseline:middle}.axis-title{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size);font-weight:var(--font-weight-bold)}.axis-label{dominant-baseline:middle}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--ds-chart-hover-bg-color)}.cursor-line{stroke:var(--ds-chart-cursor-line-color);stroke-width:1}.plot-bg{fill:var(--ds-chart-plot-bg-color, transparent);pointer-events:none}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }, { kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
865
702
  }
866
703
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartComponent, decorators: [{
867
704
  type: Component,
@@ -874,88 +711,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
874
711
  provide: CHART_SCALES,
875
712
  useExisting: forwardRef(() => ChartComponent),
876
713
  },
877
- ], template: "<figure class=\"chart\">\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() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_chart-view-height)\"\n [shimmer]=\"loading()\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPinned]=\"tooltipPinned()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [class.pins]=\"bandPins()\"\n [style.block-size.px]=\"viewHeight()\"\n [attr.viewBox]=\"viewBox()\">\n @if (cursorBand(); as band) {\n <g\n class=\"cursor\"\n aria-hidden=\"true\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\">\n <rect\n #cursorBandEl\n class=\"category-band\"\n [attr.x]=\"band.x\"\n [attr.y]=\"band.top\"\n [attr.width]=\"band.width\"\n [attr.height]=\"band.bottom - band.top\" />\n\n <line\n class=\"cursor-line\"\n [attr.x1]=\"band.x + band.width / 2\"\n [attr.x2]=\"band.x + band.width / 2\"\n [attr.y1]=\"band.top\"\n [attr.y2]=\"band.bottom\" />\n </g>\n }\n\n <!-- Hidden as a group rather than on the svg: a projected mark may be focusable, and an\n aria-hidden ancestor would leave it reachable by Tab and invisible to a reader. -->\n <g\n class=\"axes\"\n aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"plotBottom()\"\n [attr.y2]=\"plotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"plot().top\"\n [attr.y2]=\"plotBottom()\" />\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track tick.value) {\n <line\n class=\"grid-line is-secondary\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n }\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryPlotBottom()\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"secondaryPlot().top\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n }\n\n @if (reachesBelowZero()) {\n <line\n class=\"zero-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"zeroOffset()\"\n [attr.y2]=\"zeroOffset()\" />\n }\n </g>\n\n <!-- Two slots, one group: a reference line has to paint UNDER the marks whatever order the\n consumer wrote it in, and a selected slot is what decides that instead of the author.\n Both stay inside `.marks`, which is what the boot transition guard is keyed on. -->\n <g class=\"marks\">\n <ng-content select=\"[dsReferenceLine]\" />\n\n <ng-content />\n </g>\n\n <g\n class=\"labels\"\n aria-hidden=\"true\">\n @if (axisLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"axisLabelFill()\"\n [attr.transform]=\"\n 'rotate(-90 ' +\n axisTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"axisTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ axisLabel() }}\n </text>\n }\n\n @if (secondaryAxisLabel() && hasSecondaryAxis()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.transform]=\"\n 'rotate(90 ' +\n secondaryTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"secondaryTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ secondaryAxisLabel() }}\n </text>\n }\n\n @for (tick of ticks(); track tick.value) {\n <text\n class=\"axis-label is-primary\"\n text-anchor=\"end\"\n [style.fill]=\"axisLabelFill()\"\n [attr.x]=\"axisLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track tick.value) {\n <text\n class=\"axis-label is-secondary\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track label.index) {\n <text\n class=\"category-label\"\n [class.is-rotated]=\"categoryLabelsRotated()\"\n [attr.text-anchor]=\"categoryLabelsRotated() ? 'end' : 'middle'\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\"\n [attr.transform]=\"\n categoryLabelsRotated()\n ? 'rotate(-45 ' + label.x + ' ' + categoryLabelY() + ')'\n : null\n \"\n (pointerenter)=\"onCategoryLabelEnter(label.index, $event)\"\n (pointerleave)=\"onCategoryLabelLeave()\">\n {{ label.text }}\n </text>\n }\n\n <!-- Over the marks, where `.marks` is under them: an annotation's LINE is furniture and\n belongs below the readings, its NAME has to survive a column drawn through it. -->\n <ng-content select=\"[dsReferenceLabel], [dsSeriesAnnotation]\" />\n </g>\n\n @if (cursorPinned() && cursorBand(); as band) {\n <g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n (band.x + band.width / 2) +\n ',' +\n bandPinY(band) +\n ')'\n \">\n </g>\n }\n </svg>\n </div>\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)}.chart{--_chart-grid-line-color: var(--ds-chart-grid-line-color, var(--chart-grid-line-color));--_chart-axis-line-color: var(--ds-chart-axis-line-color, var(--chart-axis-line-color));--_chart-axis-label-color: var(--ds-chart-axis-label-color, var(--chart-axis-label-color));--_chart-axis-font-size: var(--ds-chart-axis-font-size, var(--chart-axis-font-size));margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_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)}.canvas{display:block;inline-size:100%}.canvas.pins{cursor:pointer}:host(.measuring) .marks ::ng-deep *{transition-duration:0ms!important}.grid-line{stroke:var(--_chart-grid-line-color);stroke-width:1}.axis-line,.zero-line{stroke:var(--_chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size)}.category-label.is-rotated{dominant-baseline:middle}.axis-title{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size);font-weight:var(--font-weight-bold)}.axis-label{dominant-baseline:middle}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--ds-chart-hover-bg-color)}.cursor-line{stroke:var(--ds-chart-cursor-line-color);stroke-width:1}\n"] }]
878
- }], ctorParameters: () => [], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], cursor: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursor", required: false }] }], cursorPin: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursorPin", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], maxSecondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSecondary", required: false }] }], plotHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "plotHeight", required: false }] }], axisGutter: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisGutter", required: false }] }], valueSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSpace", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", 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 }] }], secondaryAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisMode", required: false }] }], axisColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisColor", required: false }] }], secondaryAxisColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisColor", required: false }] }], axisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisLabel", required: false }] }], secondaryAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisLabel", required: false }] }], tooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTemplate", required: false }] }], tooltipExtraGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipExtraGap", required: false }] }], canvasElement: [{ type: i0.ViewChild, args: ['canvasEl', { isSignal: true }] }], bandElement: [{ type: i0.ViewChild, args: ['cursorBandEl', { isSignal: true }] }] } });
714
+ ], template: "<figure class=\"chart\">\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() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_chart-view-height)\"\n [shimmer]=\"loading()\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"tooltipSwatchesResolved()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPinned]=\"tooltipPinned()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [class.pins]=\"bandPins()\"\n [style.block-size.px]=\"viewHeight()\"\n [attr.viewBox]=\"viewBox()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot().left\"\n [attr.y]=\"plot().top\"\n [attr.width]=\"plot().width\"\n [attr.height]=\"plot().height\" />\n\n @if (secondaryPlot().top !== plot().top) {\n <rect\n class=\"plot-bg\"\n [attr.x]=\"secondaryPlot().left\"\n [attr.y]=\"secondaryPlot().top\"\n [attr.width]=\"secondaryPlot().width\"\n [attr.height]=\"secondaryPlot().height\" />\n }\n\n @if (cursorBand(); as band) {\n <g\n class=\"cursor\"\n aria-hidden=\"true\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\">\n <rect\n #cursorBandEl\n class=\"category-band\"\n [attr.x]=\"band.x\"\n [attr.y]=\"band.top\"\n [attr.width]=\"band.width\"\n [attr.height]=\"band.bottom - band.top\" />\n\n <line\n class=\"cursor-line\"\n [attr.x1]=\"band.x + band.width / 2\"\n [attr.x2]=\"band.x + band.width / 2\"\n [attr.y1]=\"band.top\"\n [attr.y2]=\"band.bottom\" />\n </g>\n }\n\n <!-- Not on the svg: an aria-hidden ancestor leaves a focusable projected mark\n reachable by Tab yet invisible to a reader. -->\n <g\n class=\"axes\"\n aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"plotBottom()\"\n [attr.y2]=\"plotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"plot().top\"\n [attr.y2]=\"plotBottom()\" />\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track tick.value) {\n <line\n class=\"grid-line is-secondary\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n }\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryPlotBottom()\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"secondaryPlot().top\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n }\n\n @if (reachesBelowZero()) {\n <line\n class=\"zero-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"zeroOffset()\"\n [attr.y2]=\"zeroOffset()\" />\n }\n </g>\n\n <!-- Two slots so a reference line paints under the marks in any source order. Both stay\n inside `.marks`, which the boot transition guard is keyed on. -->\n <g class=\"marks\">\n <ng-content select=\"[dsReferenceLine]\" />\n\n <ng-content />\n </g>\n\n <g\n class=\"labels\"\n aria-hidden=\"true\">\n @if (axisLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"axisLabelFill()\"\n [attr.transform]=\"\n 'rotate(-90 ' +\n axisTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"axisTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ axisLabel() }}\n </text>\n }\n\n @if (secondaryAxisLabel() && hasSecondaryAxis()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.transform]=\"\n 'rotate(90 ' +\n secondaryTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"secondaryTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ secondaryAxisLabel() }}\n </text>\n }\n\n @for (tick of ticks(); track tick.value) {\n <text\n class=\"axis-label is-primary\"\n text-anchor=\"end\"\n [style.fill]=\"axisLabelFill()\"\n [attr.x]=\"axisLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track tick.value) {\n <text\n class=\"axis-label is-secondary\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track label.index) {\n <text\n class=\"category-label\"\n [class.is-rotated]=\"categoryLabelsRotated()\"\n [attr.text-anchor]=\"categoryLabelsRotated() ? 'end' : 'middle'\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\"\n [attr.transform]=\"\n categoryLabelsRotated()\n ? 'rotate(-45 ' + label.x + ' ' + categoryLabelY() + ')'\n : null\n \"\n (pointerenter)=\"onCategoryLabelEnter(label.index, $event)\"\n (pointerleave)=\"onCategoryLabelLeave()\">\n {{ label.text }}\n </text>\n }\n\n <!-- Over the marks so an annotation's name survives a column drawn through it. -->\n <ng-content select=\"[dsReferenceLabel], [dsSeriesAnnotation]\" />\n </g>\n\n @if (cursorPinned() && cursorBand(); as band) {\n <g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n (band.x + band.width / 2) +\n ',' +\n bandPinY(band) +\n ')'\n \">\n </g>\n }\n </svg>\n </div>\n }\n</figure>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-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)}.chart{--_chart-grid-line-color: var(--ds-chart-grid-line-color, var(--chart-grid-line-color));--_chart-axis-line-color: var(--ds-chart-axis-line-color, var(--chart-axis-line-color));--_chart-axis-label-color: var(--ds-chart-axis-label-color, var(--chart-axis-label-color));--_chart-axis-font-size: var(--ds-chart-axis-font-size, var(--chart-axis-font-size));margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_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)}.canvas{display:block;inline-size:100%}.canvas.pins{cursor:pointer}:host(.measuring) .marks ::ng-deep *{transition-duration:0ms!important}.grid-line{stroke:var(--_chart-grid-line-color);stroke-width:1}.axis-line,.zero-line{stroke:var(--_chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size)}.category-label.is-rotated{dominant-baseline:middle}.axis-title{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size);font-weight:var(--font-weight-bold)}.axis-label{dominant-baseline:middle}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--ds-chart-hover-bg-color)}.cursor-line{stroke:var(--ds-chart-cursor-line-color);stroke-width:1}.plot-bg{fill:var(--ds-chart-plot-bg-color, transparent);pointer-events:none}\n"] }]
715
+ }], ctorParameters: () => [], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], cursor: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursor", required: false }] }], maxSecondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSecondary", required: false }] }], plotHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "plotHeight", required: false }] }], axisGutter: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisGutter", required: false }] }], valueSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSpace", required: false }] }], secondaryAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisMode", required: false }] }], axisColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisColor", required: false }] }], secondaryAxisColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisColor", required: false }] }], axisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisLabel", required: false }] }], secondaryAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisLabel", required: false }] }], tooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTemplate", required: false }] }], tooltipExtraGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipExtraGap", required: false }] }], canvasElement: [{ type: i0.ViewChild, args: ['canvasEl', { isSignal: true }] }], bandElement: [{ type: i0.ViewChild, args: ['cursorBandEl', { isSignal: true }] }] } });
879
716
 
880
- /** Distance from a mark's own tip to its value label's baseline. */
717
+ /** Distance from a mark's tip to its value label's baseline. */
881
718
  const VALUE_LABEL_GAP = 8;
882
- /** Blank left at a stacked segment's lower end, so the boundary between two segments is a gap in
883
- * the surface colour rather than a drawn rule. A rule is a third ink the palette has to stay
884
- * legible against and it vanishes in print; a gap survives both, and it is the secondary encoding
885
- * the palette's 6-8 dE separation band asks for. */
719
+ /** Blank at a stacked segment's lower end: a background-colour gap, not a drawn rule (which vanishes in print). */
886
720
  const STACK_SEGMENT_GAP = 2;
887
721
  let nextSeriesId$1 = 0;
888
722
  /**
889
723
  * One column per datum, drawn against the scales `ds-chart` supplies.
890
724
  *
891
- * Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
892
- * know is not rendered, and neither are its descendants, so `<ds-column-series>` inside the
893
- * container's canvas would draw nothing. Written as `<svg:g dsColumnSeries>`.
725
+ * Hosted on a `<g>`: an element SVG does not know renders nothing, nor do its descendants. Written
726
+ * as `<svg:g dsColumnSeries>`.
894
727
  */
895
728
  class ColumnSeriesComponent {
896
729
  leaveMark = leaveMark;
897
730
  scales = inject(CHART_SCALES);
898
731
  locale = injectDsLocale();
899
732
  intl = inject(DS_INTL);
900
- /** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
901
- * element, and a required input throws NG0950 for the pass before its own value is written. */
733
+ /** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same element,
734
+ * and a required input throws NG0950 before its value is written. */
902
735
  data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
903
736
  /** Prints each column's value above the column. */
904
737
  showValues = input(true, { ...(ngDevMode ? { debugName: "showValues" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
905
- /** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
906
- * fires whether or not this is set. */
738
+ /** Turns on the click affordance (pointer cursor and hover tint). `pointClicked` fires either way. */
907
739
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
908
- /** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
909
- * Escape or a press outside releases it. Under the category cursor the container holds the
910
- * category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
740
+ /** Holds the clicked mark and its tooltip until a second click, Escape or a press outside. Unset
741
+ * falls back to `DS_CONFIG.chart.pinOnClick`, then `true`; the category cursor holds the category instead. */
911
742
  pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
912
743
  pinOnClickResolved = resolveWithConfig(this.pinOnClick, (config) => config.chart?.pinOnClick, true);
913
744
  pins = computed(() => this.pinOnClickResolved() && !this.scales.cursorOn?.(), ...(ngDevMode ? [{ debugName: "pins" }] : /* istanbul ignore next */ []));
914
- /** Fades every mark but the one under the pointer. Off by default: the dimming buys loudness
915
- * for one mark and pays for it with the separation between the rest. */
745
+ /** Fades every mark but the one under the pointer. Off by default: it costs separation between the rest. */
916
746
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
917
- /** Milliseconds between one mark's entrance and the next. The steps narrow to fit the whole
918
- * spread within 260ms, so a long series does not crawl in.
919
- * `0` is no stagger. */
747
+ /** Milliseconds between one mark's entrance and the next, narrowed to fit 260ms. `0` is no stagger. */
920
748
  staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
921
- /** Declares that the marks are parts of one whole, which is what makes a share of their total
922
- * a real quantity. On, each mark's share appears on the tooltip's second line. */
749
+ /** Declares the marks are parts of one whole; each mark's share then appears on the tooltip's second line. */
923
750
  partOfWhole = input(false, { ...(ngDevMode ? { debugName: "partOfWhole" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
924
751
  /** Whether a hovered or focused column opens a tooltip. */
925
752
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
926
- /** Where the tooltip is pinned. `'mark'` is the column itself; `'cell'` is the full-height
927
- * category cell, which puts the panel at the top of the plot whatever the column's value. */
753
+ /** Where the tooltip is pinned: `'mark'` is the column, `'cell'` the full-height category cell (panel at the plot top). */
928
754
  tooltipAnchor = input('mark', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
929
- /** How long the panel survives the pointer leaving the mark. Raise it only for a panel a
930
- * reader has to REACH, which is WCAG 1.4.13's hoverable clause; about 140 crosses the gap. */
931
- tooltipLingerMs = input(0, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
932
- /** Formats every value this series prints. Called with `'tick'` for an axis label and
933
- * `'tooltip'` everywhere a value is printed in full. */
755
+ /** Milliseconds the panel survives the pointer leaving the mark. */
756
+ tooltipLingerMs = input(CHART_TOOLTIP_LINGER_MS, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
757
+ /** Formats every value this series prints: `'tick'` for an axis label, `'tooltip'` for a value in full. */
934
758
  valueFormat = input(chartValueFormat(injectDsLocale()), ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
935
- /** The mark's share of its category's own slot, before the maximum width caps it. Measured off
936
- * the slot rather than off `bandWidth()`, which has the container's own padding already taken
937
- * out of it - applying both would narrow every uncapped column twice. */
759
+ /** The mark's share of its category slot before the maximum width caps it. Measured off the slot,
760
+ * not `bandWidth()`, whose padding is already taken out (both would narrow columns twice). */
938
761
  columnWidthRatio = input(0.8, { ...(ngDevMode ? { debugName: "columnWidthRatio" } : /* istanbul ignore next */ {}), transform: numberAttribute });
939
762
  /** This series' position among the slots a category's band is divided into. */
940
763
  slot = input(0, { ...(ngDevMode ? { debugName: "slot" } : /* istanbul ignore next */ {}), transform: numberAttribute });
941
- /** How many slots the band is divided into - the number of series drawn side by side. One, the
942
- * default, is the whole band, which is what a single series has always taken. */
764
+ /** How many slots the band is divided into: the series drawn side by side. */
943
765
  slotCount = input(1, { ...(ngDevMode ? { debugName: "slotCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
944
- /** Where each mark starts and ends on the value axis, one entry per point. Unset, every mark
945
- * runs from zero to its own value, which is the unstacked case. */
766
+ /** Where each mark starts and ends on the value axis, one entry per point. Unset, marks run from zero. */
946
767
  offsets = input(null, ...(ngDevMode ? [{ debugName: "offsets" }] : /* istanbul ignore next */ []));
947
- /** Which value axis the columns are measured against. `'secondary'` reads them off the second
948
- * axis, the way `axis: 'secondary'` does on a line series' data. */
768
+ /** The only series in its slot, as a waterfall's floating bars are: each answers the pointer over the whole plot height. */
769
+ soleSeries = input(false, { ...(ngDevMode ? { debugName: "soleSeries" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
770
+ /** Which value axis the columns are measured against; `'secondary'` reads the second axis. */
949
771
  axis = input('primary', ...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
950
- /** One colour for the whole series, which is what several series drawn together need. Unset,
951
- * each mark takes the categorical palette by its own position - the right reading when the
952
- * marks ARE the categories, which is the single-series case. A point's own colour wins over
953
- * both. */
772
+ /** One colour for the whole series. Unset, each mark takes the categorical palette by position;
773
+ * a point's own colour wins. */
954
774
  seriesColor = input(null, ...(ngDevMode ? [{ debugName: "seriesColor" }] : /* istanbul ignore next */ []));
955
775
  /** `seriesColor` for the fill pattern. A point's own `fill` wins. */
956
776
  seriesFill = input(null, ...(ngDevMode ? [{ debugName: "seriesFill" }] : /* istanbul ignore next */ []));
957
- /** Names the series in the tooltip, where the category then becomes the panel's heading. Unset,
958
- * the panel names the category instead, which is what a chart of one series has to say. */
777
+ /** Names the series in the tooltip, making the category the panel's heading. */
959
778
  seriesLabel = input(null, ...(ngDevMode ? [{ debugName: "seriesLabel" }] : /* istanbul ignore next */ []));
960
779
  /** Identifies this series to the legend, so hovering a legend item can single it out. */
961
780
  seriesKey = input(null, ...(ngDevMode ? [{ debugName: "seriesKey" }] : /* istanbul ignore next */ []));
@@ -969,11 +788,9 @@ class ColumnSeriesComponent {
969
788
  pointClicked = output();
970
789
  seriesId = nextSeriesId$1++;
971
790
  domainId = `column-series-${this.seriesId}`;
972
- /** Per instance: two charts on one page would otherwise share the first `<pattern>` to reach the
973
- * document, and every hatched mark would take that chart's colour. */
791
+ /** Per instance: otherwise every hatched mark takes the first chart's `<pattern>` colour. */
974
792
  hatchId = `ds-column-hatch-${this.seriesId}`;
975
- /** Where each mark actually spans, which is what the axis has to hold: a stacked segment's top
976
- * is its category's running total, not its own reading. */
793
+ /** Where each mark spans, which the axis has to hold: a stacked segment's top is the running total. */
977
794
  spans = computed(() => {
978
795
  const given = this.offsets();
979
796
  return this.data().map((point, index) => given?.[index] ?? {
@@ -983,7 +800,6 @@ class ColumnSeriesComponent {
983
800
  }, ...(ngDevMode ? [{ debugName: "spans" }] : /* istanbul ignore next */ []));
984
801
  constructor() {
985
802
  effect(() => this.scales.reportDomain(this.domainId, this.spans().flatMap((span) => [span.from, span.to]), this.axis()));
986
- // The container opens the panel, so a plot holding several marks can only ever show one.
987
803
  this.scales.reportTooltip(this.domainId, {
988
804
  context: this.tooltipContext,
989
805
  origin: computed(() => this.activeMark.origin()),
@@ -1021,36 +837,27 @@ class ColumnSeriesComponent {
1021
837
  });
1022
838
  });
1023
839
  }
1024
- // A reader naming a category by its label is asking for that column, so the rest step back
1025
- // whatever `dimOthers` says, as they do for a legend entry.
1026
- dimsFromLabel = computed(() => (this.scales.categoryLabelHover?.() ?? null) !== null, ...(ngDevMode ? [{ debugName: "dimsFromLabel" }] : /* istanbul ignore next */ []));
1027
840
  ngOnDestroy() {
1028
841
  this.scales.releaseTooltip(this.domainId);
1029
842
  this.scales.releaseDomain(this.domainId);
1030
843
  }
1031
844
  activeMark = chartActiveMark(() => this.tooltipLingerMs(), () => this.scales.hoverDelayMs?.() ?? 0);
1032
845
  barElements = viewChildren('barEl', ...(ngDevMode ? [{ debugName: "barElements" }] : /* istanbul ignore next */ []));
1033
- /** One SERIES' slot inside a category's band: the whole band while a chart draws one series,
1034
- * a share of it per series when several are grouped. The box that catches the pointer is sized
1035
- * from this rather than from the drawn column, so a short column stays reachable. */
846
+ /** One series' slot inside a category's band: the whole band, or a share per series when grouped. The pointer box is sized from it. */
1036
847
  slotStep = computed(() => {
1037
848
  const count = this.data().length;
1038
849
  const slots = Math.max(1, this.slotCount());
1039
850
  return count > 0 ? this.scales.plot().width / count / slots : 0;
1040
851
  }, ...(ngDevMode ? [{ debugName: "slotStep" }] : /* istanbul ignore next */ []));
1041
- slotBandPx = computed(() => `${this.scales.bandWidth() / Math.max(1, this.slotCount())}px`, ...(ngDevMode ? [{ debugName: "slotBandPx" }] : /* istanbul ignore next */ []));
852
+ slotStepPx = computed(() => `${this.slotStep()}px`, ...(ngDevMode ? [{ debugName: "slotStepPx" }] : /* istanbul ignore next */ []));
1042
853
  markWidthPx = computed(() => `${this.slotStep() * this.columnWidthRatio()}px`, ...(ngDevMode ? [{ debugName: "markWidthPx" }] : /* istanbul ignore next */ []));
1043
- /** The whole canvas, reserved end included. Overshooting when the container drops that
1044
- * reservation costs nothing - the outer `<svg>` clips it - while falling short would leave a
1045
- * strip under the plot that answers no pointer. */
854
+ /** The whole canvas, reserved end included: falling short leaves a strip under the plot that answers no pointer. */
1046
855
  hitHeight = computed(() => {
1047
856
  const plot = this.scales.plot();
1048
857
  return chartViewHeight(plot.height, plot.top, true);
1049
858
  }, ...(ngDevMode ? [{ debugName: "hitHeight" }] : /* istanbul ignore next */ []));
1050
- /** Stacked series sit on top of one another, so a full-slot hit box on each one means only the
1051
- * series drawn last is ever reachable. Stacked, a mark catches the pointer over its own segment
1052
- * and nothing else. */
1053
- stacked = computed(() => this.offsets() !== null, ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
859
+ /** Stacked series overlap, so a stacked mark catches the pointer over its own segment only. */
860
+ stacked = computed(() => this.offsets() !== null && !this.soleSeries(), ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
1054
861
  /** Keeps a thin segment reachable without letting it reach into its neighbours. */
1055
862
  static MIN_STACK_HIT = 6;
1056
863
  hitBox(mark) {
@@ -1074,8 +881,7 @@ class ColumnSeriesComponent {
1074
881
  const foot = toY(span.from);
1075
882
  const tip = toY(span.to);
1076
883
  const below = tip > foot;
1077
- // Only a segment that has one under it gives up the gap: taking it off the baseline segment
1078
- // would lift the whole stack off the axis.
884
+ // Only a segment with one under it gives up the gap; the baseline segment would lift the stack off the axis.
1079
885
  const gap = span.from === 0 ? 0 : Math.min(STACK_SEGMENT_GAP, Math.abs(tip - foot));
1080
886
  const baseline = below ? foot + gap : foot - gap;
1081
887
  const color = point.color ??
@@ -1092,8 +898,6 @@ class ColumnSeriesComponent {
1092
898
  height: Math.abs(tip - baseline),
1093
899
  labelY: below ? tip + VALUE_LABEL_GAP : tip - VALUE_LABEL_GAP,
1094
900
  pinY: Math.min(tip, baseline) + CHART_PIN_RADIUS + CHART_PIN_GAP,
1095
- // Growing from the baseline, never the mark's own tip - a column below zero grows
1096
- // downward, so its transform-origin flips to the top edge it hangs from.
1097
901
  origin: below ? 'top' : 'bottom',
1098
902
  formattedValue: format(point.value, 'tooltip'),
1099
903
  color,
@@ -1134,7 +938,6 @@ class ColumnSeriesComponent {
1134
938
  roving = rovingMarks(() => this.marks().length);
1135
939
  onMarkFocus(event, hit) {
1136
940
  this.roving.focus(hit.index);
1137
- // Under the category cursor focus names the category, as a pointer anywhere in its band does.
1138
941
  if (this.scales.cursorOn?.()) {
1139
942
  this.scales.setActiveIndex(hit.index);
1140
943
  }
@@ -1146,8 +949,7 @@ class ColumnSeriesComponent {
1146
949
  return;
1147
950
  }
1148
951
  if (event.key === 'Enter' || event.key === ' ') {
1149
- // Only the column's own key opens it: a key pressed on a control inside belongs to that
1150
- // control.
952
+ // A key pressed on a control inside belongs to that control.
1151
953
  const mark = this.marks()[hit.index];
1152
954
  if (this.interactive() && event.target === hit.element && mark) {
1153
955
  event.preventDefault();
@@ -1160,8 +962,7 @@ class ColumnSeriesComponent {
1160
962
  entryLabel(mark) {
1161
963
  return `${mark.point.label}, ${mark.formattedValue}`;
1162
964
  }
1163
- /** This series' reading at the category the cursor is on. Filled whatever `tooltip` says: it
1164
- * feeds the container's category panel, never a panel of this mark's own. */
965
+ /** This series' reading at the cursor's category, filled whatever `tooltip` says; feeds only the container's category panel. */
1165
966
  axisEntries = computed(() => {
1166
967
  const categoryIndex = this.scales.activeIndex();
1167
968
  const mark = this.marks()[categoryIndex];
@@ -1206,102 +1007,81 @@ class ColumnSeriesComponent {
1206
1007
  };
1207
1008
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
1208
1009
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnSeriesComponent, isStandalone: true, selector: "g[dsColumnSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", 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 }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", 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 }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, columnWidthRatio: { classPropertyName: "columnWidthRatio", publicName: "columnWidthRatio", isSignal: true, isRequired: false, transformFunction: null }, slot: { classPropertyName: "slot", publicName: "slot", isSignal: true, isRequired: false, transformFunction: null }, slotCount: { classPropertyName: "slotCount", publicName: "slotCount", isSignal: true, isRequired: false, transformFunction: null }, offsets: { classPropertyName: "offsets", publicName: "offsets", isSignal: true, isRequired: false, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, seriesColor: { classPropertyName: "seriesColor", publicName: "seriesColor", isSignal: true, isRequired: false, transformFunction: null }, seriesFill: { classPropertyName: "seriesFill", publicName: "seriesFill", isSignal: true, isRequired: false, transformFunction: null }, seriesLabel: { classPropertyName: "seriesLabel", publicName: "seriesLabel", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "barElements", predicate: ["barEl"], descendants: true, isSignal: true }], exportAs: ["dsColumnSeries"], ngImport: i0, template: "<svg:g\n class=\"columns\"\n [class.dims-others]=\"dimOthers() || dimsFromLabel()\"\n [class.is-dimmed]=\"dimmedBySeries()\"\n [style.--_column-chart-column-share]=\"markWidthPx()\"\n [style.--_column-chart-slot-band]=\"slotBandPx()\"\n [style.--_column-slot]=\"slot()\"\n [style.--_column-slots]=\"slotCount()\"\n (pointerover)=\"onMarkOver($event)\"\n (pointerout)=\"onMarkOut($event)\"\n (keydown)=\"onMarkKey($event)\"\n (click)=\"onMarkClick($event)\">\n <!-- `userSpaceOnUse`, so the stripe pitch is the same on a tall column and a short one: with the\n default object bounding box it would scale with each mark and read as a different texture\n per bar. The stripe runs down the tile's middle: on its edge the tile clips it to half its\n width. -->\n @if (hatchInUse()) {\n <svg:defs>\n <svg:pattern\n class=\"hatch\"\n patternUnits=\"userSpaceOnUse\"\n width=\"8\"\n height=\"8\"\n patternTransform=\"rotate(45)\"\n [attr.id]=\"hatchId\">\n <svg:rect\n class=\"hatch-ground\"\n width=\"8\"\n height=\"8\" />\n\n <svg:line\n class=\"hatch-stripe\"\n x1=\"4\"\n y1=\"0\"\n x2=\"4\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n }\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.below-baseline]=\"mark.below\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [style.--_column-mark-height]=\"mark.height + 'px'\"\n [style.--_column-baseline-y]=\"mark.baseline + 'px'\"\n [style.--_column-x]=\"mark.x + 'px'\"\n [attr.data-mark-index]=\"index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.aria-label]=\"interactive() ? entryLabel(mark) : null\"\n (animate.leave)=\"leaveMark($event)\">\n <!-- The box that catches the pointer is the whole category slot, not the drawn column: a\n column two pixels tall is otherwise unreachable, and a pointer that has to find the\n mark is a pointer that misses it. -->\n @let hit = hitBox(mark);\n\n <svg:rect\n class=\"hit-area\"\n [attr.y]=\"hit.y\"\n [attr.height]=\"hit.height\" />\n\n <svg:g\n #barEl\n class=\"bar\"\n [style.transform-origin]=\"mark.origin\">\n <!-- Under the capped rect, not beside it: `rx` rounds all four corners, and the cap\n belongs on the free end alone. This one fills the two corners at the baseline back\n in, and both keep `y` and `height` a plain interpolable length, which a `<path>`\n would not. -->\n <svg:rect\n class=\"bar-base\"\n [attr.fill]=\"mark.color\" />\n\n <svg:rect\n class=\"bar-cap\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\" />\n\n <!-- Stripes OVER the painted mark, not a pattern in place of its fill: a pattern carries\n its own colour, so one shared definition cannot take each mark's. Painting the surface\n colour through it leaves the mark's own hue showing between the stripes. -->\n @if (mark.hatched) {\n <svg:rect\n class=\"bar-hatch\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"'url(#' + hatchId + ')'\" />\n }\n </svg:g>\n\n @if (showValues()) {\n <svg:text\n class=\"value\"\n text-anchor=\"middle\"\n [attr.y]=\"mark.labelY\">\n {{ mark.formattedValue }}\n </svg:text>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\" />\n }\n </svg:g>\n }\n</svg:g>\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)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.column .bar{transform-origin:bottom}.bar{animation:ds-chart-mark-grow-y var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.bar{animation-delay:0ms}}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value{animation-delay:0ms}}@media not (forced-colors:active){.column:focus{outline:none}}.columns .column{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.columns .column.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.columns.dims-others:not(:has(.column.is-pinned)):has(.column.is-active) .column:not(.is-active),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive,.columns .column.pins{cursor:pointer}.columns{--_column-chart-column-max-width: var(--ds-column-chart-column-max-width, 48px);--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));--_column-chart-cap-radius: var( --ds-column-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_chart-hatch-color: var( --ds-chart-hatch-color, var(--surface-default) );--_chart-hatch-width: var(--ds-chart-hatch-width, 1.5px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-hit-width: min( var(--_column-chart-slot-band), calc( var(--_column-chart-column-max-width) + var(--_column-chart-column-gap) ) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{width:var(--_column-hit-width);x:calc(var(--_column-hit-width) / -2);fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1010
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnSeriesComponent, isStandalone: true, selector: "g[dsColumnSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", 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 }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", 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 }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, columnWidthRatio: { classPropertyName: "columnWidthRatio", publicName: "columnWidthRatio", isSignal: true, isRequired: false, transformFunction: null }, slot: { classPropertyName: "slot", publicName: "slot", isSignal: true, isRequired: false, transformFunction: null }, slotCount: { classPropertyName: "slotCount", publicName: "slotCount", isSignal: true, isRequired: false, transformFunction: null }, offsets: { classPropertyName: "offsets", publicName: "offsets", isSignal: true, isRequired: false, transformFunction: null }, soleSeries: { classPropertyName: "soleSeries", publicName: "soleSeries", isSignal: true, isRequired: false, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, seriesColor: { classPropertyName: "seriesColor", publicName: "seriesColor", isSignal: true, isRequired: false, transformFunction: null }, seriesFill: { classPropertyName: "seriesFill", publicName: "seriesFill", isSignal: true, isRequired: false, transformFunction: null }, seriesLabel: { classPropertyName: "seriesLabel", publicName: "seriesLabel", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "barElements", predicate: ["barEl"], descendants: true, isSignal: true }], exportAs: ["dsColumnSeries"], ngImport: i0, template: "<svg:g\n class=\"columns\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-dimmed]=\"dimmedBySeries()\"\n [style.--_column-chart-column-share]=\"markWidthPx()\"\n [style.--_column-chart-slot-step]=\"slotStepPx()\"\n [style.--_column-slot]=\"slot()\"\n [style.--_column-slots]=\"slotCount()\"\n (pointerover)=\"onMarkOver($event)\"\n (pointerout)=\"onMarkOut($event)\"\n (keydown)=\"onMarkKey($event)\"\n (click)=\"onMarkClick($event)\">\n <!-- `userSpaceOnUse` keeps the stripe pitch equal on tall and short columns (the object bounding box\n scales it per mark). The stripe runs down the tile's middle: on its edge the tile clips it to half. -->\n @if (hatchInUse()) {\n <svg:defs>\n <svg:pattern\n class=\"hatch\"\n patternUnits=\"userSpaceOnUse\"\n width=\"8\"\n height=\"8\"\n patternTransform=\"rotate(45)\"\n [attr.id]=\"hatchId\">\n <svg:rect\n class=\"hatch-ground\"\n width=\"8\"\n height=\"8\" />\n\n <svg:line\n class=\"hatch-stripe\"\n x1=\"4\"\n y1=\"0\"\n x2=\"4\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n }\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.below-baseline]=\"mark.below\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [style.--_column-mark-height]=\"mark.height + 'px'\"\n [style.--_column-baseline-y]=\"mark.baseline + 'px'\"\n [style.--_column-x]=\"mark.x + 'px'\"\n [attr.data-mark-index]=\"index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.aria-label]=\"interactive() ? entryLabel(mark) : null\"\n (animate.leave)=\"leaveMark($event)\">\n <!-- The pointer target is the whole category slot, so a two-pixel column stays reachable. -->\n @let hit = hitBox(mark);\n\n <svg:rect\n class=\"hit-area\"\n [attr.y]=\"hit.y\"\n [attr.height]=\"hit.height\" />\n\n <svg:g\n #barEl\n class=\"bar\"\n [style.transform-origin]=\"mark.origin\">\n <!-- `rx` rounds all four corners but the cap belongs on the free end alone; this rect fills the\n two baseline corners back in. Unlike a `<path>`, both keep `y` and `height` interpolable. -->\n <svg:rect\n class=\"bar-base\"\n [attr.fill]=\"mark.color\" />\n\n <svg:rect\n class=\"bar-cap\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\" />\n\n <!-- Stripes over the painted mark, not a pattern as its fill: a pattern carries its own colour,\n so one shared definition could not take each mark's. -->\n @if (mark.hatched) {\n <svg:rect\n class=\"bar-hatch\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"'url(#' + hatchId + ')'\" />\n }\n </svg:g>\n\n @if (showValues()) {\n <svg:text\n class=\"value\"\n text-anchor=\"middle\"\n [attr.y]=\"mark.labelY\">\n {{ mark.formattedValue }}\n </svg:text>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\" />\n }\n </svg:g>\n }\n</svg:g>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.column .bar{transform-origin:bottom}.bar{animation:ds-chart-mark-grow-y var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.bar{animation-delay:0ms}}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value{animation-delay:0ms}}@media not (forced-colors:active){.column:focus{outline:none}}.columns .column{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.columns .column.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.columns.dims-others:not(:has(.column.is-pinned)):has(.column.is-active) .column:not(.is-active),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive,.columns .column.pins{cursor:pointer}.columns{--_column-chart-column-max-width: var(--ds-column-chart-column-max-width, 48px);--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));--_column-chart-cap-radius: var( --ds-column-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_chart-hatch-color: var( --ds-chart-hatch-color, var(--ds-chart-bg-color) );--_chart-hatch-width: var(--ds-chart-hatch-width, 1.5px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{--_column-hit-start: calc( var(--_column-chart-slot-step) * (var(--_column-slot, 0) - var(--_column-slots, 1) / 2) );width:var(--_column-chart-slot-step);x:calc(var(--_column-hit-start) - var(--_column-slot-offset));fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1210
1011
  }
1211
1012
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnSeriesComponent, decorators: [{
1212
1013
  type: Component,
1213
- args: [{ selector: 'g[dsColumnSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsColumnSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"columns\"\n [class.dims-others]=\"dimOthers() || dimsFromLabel()\"\n [class.is-dimmed]=\"dimmedBySeries()\"\n [style.--_column-chart-column-share]=\"markWidthPx()\"\n [style.--_column-chart-slot-band]=\"slotBandPx()\"\n [style.--_column-slot]=\"slot()\"\n [style.--_column-slots]=\"slotCount()\"\n (pointerover)=\"onMarkOver($event)\"\n (pointerout)=\"onMarkOut($event)\"\n (keydown)=\"onMarkKey($event)\"\n (click)=\"onMarkClick($event)\">\n <!-- `userSpaceOnUse`, so the stripe pitch is the same on a tall column and a short one: with the\n default object bounding box it would scale with each mark and read as a different texture\n per bar. The stripe runs down the tile's middle: on its edge the tile clips it to half its\n width. -->\n @if (hatchInUse()) {\n <svg:defs>\n <svg:pattern\n class=\"hatch\"\n patternUnits=\"userSpaceOnUse\"\n width=\"8\"\n height=\"8\"\n patternTransform=\"rotate(45)\"\n [attr.id]=\"hatchId\">\n <svg:rect\n class=\"hatch-ground\"\n width=\"8\"\n height=\"8\" />\n\n <svg:line\n class=\"hatch-stripe\"\n x1=\"4\"\n y1=\"0\"\n x2=\"4\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n }\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.below-baseline]=\"mark.below\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [style.--_column-mark-height]=\"mark.height + 'px'\"\n [style.--_column-baseline-y]=\"mark.baseline + 'px'\"\n [style.--_column-x]=\"mark.x + 'px'\"\n [attr.data-mark-index]=\"index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.aria-label]=\"interactive() ? entryLabel(mark) : null\"\n (animate.leave)=\"leaveMark($event)\">\n <!-- The box that catches the pointer is the whole category slot, not the drawn column: a\n column two pixels tall is otherwise unreachable, and a pointer that has to find the\n mark is a pointer that misses it. -->\n @let hit = hitBox(mark);\n\n <svg:rect\n class=\"hit-area\"\n [attr.y]=\"hit.y\"\n [attr.height]=\"hit.height\" />\n\n <svg:g\n #barEl\n class=\"bar\"\n [style.transform-origin]=\"mark.origin\">\n <!-- Under the capped rect, not beside it: `rx` rounds all four corners, and the cap\n belongs on the free end alone. This one fills the two corners at the baseline back\n in, and both keep `y` and `height` a plain interpolable length, which a `<path>`\n would not. -->\n <svg:rect\n class=\"bar-base\"\n [attr.fill]=\"mark.color\" />\n\n <svg:rect\n class=\"bar-cap\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\" />\n\n <!-- Stripes OVER the painted mark, not a pattern in place of its fill: a pattern carries\n its own colour, so one shared definition cannot take each mark's. Painting the surface\n colour through it leaves the mark's own hue showing between the stripes. -->\n @if (mark.hatched) {\n <svg:rect\n class=\"bar-hatch\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"'url(#' + hatchId + ')'\" />\n }\n </svg:g>\n\n @if (showValues()) {\n <svg:text\n class=\"value\"\n text-anchor=\"middle\"\n [attr.y]=\"mark.labelY\">\n {{ mark.formattedValue }}\n </svg:text>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\" />\n }\n </svg:g>\n }\n</svg:g>\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)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.column .bar{transform-origin:bottom}.bar{animation:ds-chart-mark-grow-y var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.bar{animation-delay:0ms}}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value{animation-delay:0ms}}@media not (forced-colors:active){.column:focus{outline:none}}.columns .column{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.columns .column.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.columns.dims-others:not(:has(.column.is-pinned)):has(.column.is-active) .column:not(.is-active),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive,.columns .column.pins{cursor:pointer}.columns{--_column-chart-column-max-width: var(--ds-column-chart-column-max-width, 48px);--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));--_column-chart-cap-radius: var( --ds-column-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_chart-hatch-color: var( --ds-chart-hatch-color, var(--surface-default) );--_chart-hatch-width: var(--ds-chart-hatch-width, 1.5px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-hit-width: min( var(--_column-chart-slot-band), calc( var(--_column-chart-column-max-width) + var(--_column-chart-column-gap) ) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{width:var(--_column-hit-width);x:calc(var(--_column-hit-width) / -2);fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"] }]
1214
- }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], 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 }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], columnWidthRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidthRatio", required: false }] }], slot: [{ type: i0.Input, args: [{ isSignal: true, alias: "slot", required: false }] }], slotCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotCount", required: false }] }], offsets: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsets", required: false }] }], axis: [{ type: i0.Input, args: [{ isSignal: true, alias: "axis", required: false }] }], seriesColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesColor", required: false }] }], seriesFill: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesFill", required: false }] }], seriesLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesLabel", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], barElements: [{ type: i0.ViewChildren, args: ['barEl', { isSignal: true }] }] } });
1014
+ args: [{ selector: 'g[dsColumnSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsColumnSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"columns\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-dimmed]=\"dimmedBySeries()\"\n [style.--_column-chart-column-share]=\"markWidthPx()\"\n [style.--_column-chart-slot-step]=\"slotStepPx()\"\n [style.--_column-slot]=\"slot()\"\n [style.--_column-slots]=\"slotCount()\"\n (pointerover)=\"onMarkOver($event)\"\n (pointerout)=\"onMarkOut($event)\"\n (keydown)=\"onMarkKey($event)\"\n (click)=\"onMarkClick($event)\">\n <!-- `userSpaceOnUse` keeps the stripe pitch equal on tall and short columns (the object bounding box\n scales it per mark). The stripe runs down the tile's middle: on its edge the tile clips it to half. -->\n @if (hatchInUse()) {\n <svg:defs>\n <svg:pattern\n class=\"hatch\"\n patternUnits=\"userSpaceOnUse\"\n width=\"8\"\n height=\"8\"\n patternTransform=\"rotate(45)\"\n [attr.id]=\"hatchId\">\n <svg:rect\n class=\"hatch-ground\"\n width=\"8\"\n height=\"8\" />\n\n <svg:line\n class=\"hatch-stripe\"\n x1=\"4\"\n y1=\"0\"\n x2=\"4\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n }\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.below-baseline]=\"mark.below\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [style.--_column-mark-height]=\"mark.height + 'px'\"\n [style.--_column-baseline-y]=\"mark.baseline + 'px'\"\n [style.--_column-x]=\"mark.x + 'px'\"\n [attr.data-mark-index]=\"index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.aria-label]=\"interactive() ? entryLabel(mark) : null\"\n (animate.leave)=\"leaveMark($event)\">\n <!-- The pointer target is the whole category slot, so a two-pixel column stays reachable. -->\n @let hit = hitBox(mark);\n\n <svg:rect\n class=\"hit-area\"\n [attr.y]=\"hit.y\"\n [attr.height]=\"hit.height\" />\n\n <svg:g\n #barEl\n class=\"bar\"\n [style.transform-origin]=\"mark.origin\">\n <!-- `rx` rounds all four corners but the cap belongs on the free end alone; this rect fills the\n two baseline corners back in. Unlike a `<path>`, both keep `y` and `height` interpolable. -->\n <svg:rect\n class=\"bar-base\"\n [attr.fill]=\"mark.color\" />\n\n <svg:rect\n class=\"bar-cap\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\" />\n\n <!-- Stripes over the painted mark, not a pattern as its fill: a pattern carries its own colour,\n so one shared definition could not take each mark's. -->\n @if (mark.hatched) {\n <svg:rect\n class=\"bar-hatch\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"'url(#' + hatchId + ')'\" />\n }\n </svg:g>\n\n @if (showValues()) {\n <svg:text\n class=\"value\"\n text-anchor=\"middle\"\n [attr.y]=\"mark.labelY\">\n {{ mark.formattedValue }}\n </svg:text>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\" />\n }\n </svg:g>\n }\n</svg:g>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.column .bar{transform-origin:bottom}.bar{animation:ds-chart-mark-grow-y var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.bar{animation-delay:0ms}}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value{animation-delay:0ms}}@media not (forced-colors:active){.column:focus{outline:none}}.columns .column{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.columns .column.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.columns.dims-others:not(:has(.column.is-pinned)):has(.column.is-active) .column:not(.is-active),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive,.columns .column.pins{cursor:pointer}.columns{--_column-chart-column-max-width: var(--ds-column-chart-column-max-width, 48px);--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));--_column-chart-cap-radius: var( --ds-column-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_chart-hatch-color: var( --ds-chart-hatch-color, var(--ds-chart-bg-color) );--_chart-hatch-width: var(--ds-chart-hatch-width, 1.5px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{--_column-hit-start: calc( var(--_column-chart-slot-step) * (var(--_column-slot, 0) - var(--_column-slots, 1) / 2) );width:var(--_column-chart-slot-step);x:calc(var(--_column-hit-start) - var(--_column-slot-offset));fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"] }]
1015
+ }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], 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 }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], columnWidthRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidthRatio", required: false }] }], slot: [{ type: i0.Input, args: [{ isSignal: true, alias: "slot", required: false }] }], slotCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotCount", required: false }] }], offsets: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsets", required: false }] }], soleSeries: [{ type: i0.Input, args: [{ isSignal: true, alias: "soleSeries", required: false }] }], axis: [{ type: i0.Input, args: [{ isSignal: true, alias: "axis", required: false }] }], seriesColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesColor", required: false }] }], seriesFill: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesFill", required: false }] }], seriesLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesLabel", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], barElements: [{ type: i0.ViewChildren, args: ['barEl', { isSignal: true }] }] } });
1215
1016
 
1216
1017
  let nextSeriesId = 0;
1018
+ // The active marker's default radius, `--chart-dot-radius-active`.
1019
+ const PIN_MARKER_CLEARANCE = 6;
1217
1020
  /**
1218
- * One line per series, drawn against the scales `ds-chart` supplies, on either of its two value
1219
- * axes.
1021
+ * One line per series, drawn against the scales `ds-chart` supplies, on either value axis.
1220
1022
  *
1221
- * Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
1222
- * know is not rendered, and neither are its descendants. Written as `<svg:g dsLineSeries>`.
1023
+ * Hosted on a `<g>`: an element SVG does not know renders nothing, nor do its descendants.
1024
+ * Written as `<svg:g dsLineSeries>`.
1223
1025
  */
1224
- // The active marker's default radius, `--chart-dot-radius-active`.
1225
- const PIN_MARKER_CLEARANCE = 6;
1226
1026
  class LineSeriesComponent {
1227
1027
  leaveMark = leaveMark;
1228
1028
  scales = inject(CHART_SCALES);
1229
- /** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
1230
- * element, and a required input throws NG0950 for the pass before its own value is written. */
1029
+ /** Not `input.required`: the preset reads `tooltipContext()` from a binding on this element (NG0950). */
1231
1030
  data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1232
- /** Draws a round marker at every reading. Off leaves the line alone, which reads better past
1233
- * roughly twenty points. */
1031
+ /** Draws a round marker at every reading; reads better off past roughly twenty points. */
1234
1032
  showMarkers = input(true, { ...(ngDevMode ? { debugName: "showMarkers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1235
- /** Lays the line and its markers on a band of the surface colour, so they stay legible where
1236
- * they cross other marks. On by default: a line shares its plot more often than not, and on an
1237
- * empty plot the band only separates it from the gridlines. */
1033
+ /** Lays the line and markers on a background-colour band so they stay legible where they cross other marks. */
1238
1034
  outline = input(true, { ...(ngDevMode ? { debugName: "outline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1239
- /** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
1240
- * fires whether or not this is set. */
1035
+ /** Turns on the click affordance (pointer cursor and hover tint). `pointClicked` fires either way. */
1241
1036
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1242
- /** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
1243
- * Escape or a press outside releases it. Under the category cursor the container holds the
1244
- * category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
1037
+ /** Holds the clicked mark and its tooltip until a second click, Escape or a press outside. Unset
1038
+ * falls back to `DS_CONFIG.chart.pinOnClick`, then `true`; the category cursor holds the category instead. */
1245
1039
  pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
1246
1040
  pinOnClickResolved = resolveWithConfig(this.pinOnClick, (config) => config.chart?.pinOnClick, true);
1247
1041
  pins = computed(() => this.pinOnClickResolved() && !this.scales.cursorOn?.(), ...(ngDevMode ? [{ debugName: "pins" }] : /* istanbul ignore next */ []));
1248
- /** Fades every series but the one under the pointer. Off by default: the dimming buys loudness
1249
- * for one line and pays for it with the separation between the rest. */
1042
+ /** Fades every series but the one under the pointer. Off by default: it costs separation between the rest. */
1250
1043
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1251
- /** The one series to single out: every other one draws faded and this one draws bold, so the
1252
- * comparison survives a monochrome print. Driven from a legend, or from whatever else the app
1253
- * uses to mean "show me this one". Fades the others whether or not `dimOthers` is set, which
1254
- * governs only what a pointer over a marker does. */
1044
+ /** The series to single out: the others draw faded and this one bold. Fades the others whether or not `dimOthers` is set. */
1255
1045
  highlighted = input(null, ...(ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []));
1256
- /** A dash pattern per series, in the order the series are given. A series past the end of the
1257
- * list, or given an empty string, draws solid. */
1046
+ /** A dash pattern per series, in series order. A series past the end, or given `''`, draws solid. */
1258
1047
  patterns = input([], ...(ngDevMode ? [{ debugName: "patterns" }] : /* istanbul ignore next */ []));
1259
- /** Fills each area from the series below it rather than from the baseline, which is what a
1260
- * stacked plot needs and what the fill reads as. */
1048
+ /** Fills each area from the series below it rather than from the baseline (stacked plots). */
1261
1049
  stacked = input(false, { ...(ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1262
- /** The dash for a series' position, or null where it draws solid. */
1263
1050
  dashFor(seriesIndex) {
1264
1051
  return this.patterns()[seriesIndex] || null;
1265
1052
  }
1266
- /** Milliseconds between one series' entrance and the next, narrowed so the last series still
1267
- * starts within the stagger budget. `0` turns the stagger off. */
1053
+ /** Milliseconds between one series' entrance and the next, narrowed to fit the stagger budget; `0` is off. */
1268
1054
  staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1269
- /** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point
1270
- * at zero. A missing measurement and a measured zero are different facts. */
1055
+ /** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point at zero. */
1271
1056
  gaps = input('break', ...(ngDevMode ? [{ debugName: "gaps" }] : /* istanbul ignore next */ []));
1272
- /** How the line joins its readings. `'linear'` by default, which asserts nothing the data does
1273
- * not say; a curve is a claim about what happened BETWEEN two readings. `'step'` holds each
1274
- * reading to the next, `'smooth'` is a monotone cubic that draws no peak the data lacks. */
1057
+ /** How the line joins its readings: `'linear'` (default) asserts nothing between them; `'step'`
1058
+ * holds each reading to the next; `'smooth'` is a monotone cubic that draws no peak the data lacks. */
1275
1059
  curve = input('linear', ...(ngDevMode ? [{ debugName: "curve" }] : /* istanbul ignore next */ []));
1276
- /** Whether a hovered or focused reading opens a tooltip, and for what. `'item'` names the
1277
- * marker itself. `'axis'` names every series at the category under the pointer, which is the
1278
- * reading a multi-series line is compared on - it follows the container's `cursor`, so set
1279
- * `cursor="category"` on `ds-chart` with it or nothing marks the category being read. */
1060
+ /** Whether a hovered or focused reading opens a tooltip: `'item'` names the marker, `'axis'` every
1061
+ * series at the category, turning the container's category cursor on under `cursor="auto"`. */
1280
1062
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
1281
- /** Where an `'axis'` panel hangs: `'reading'` puts it over the highest reading in the category,
1282
- * so it names what it points at and stays put while the pointer travels within one band;
1283
- * `'pointer'` follows the cursor. */
1063
+ /** Where an `'axis'` panel hangs: `'reading'` over the highest reading in the category; `'pointer'` follows the cursor. */
1284
1064
  tooltipAnchor = input('reading', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
1285
- /** How long the panel survives the pointer leaving the marker. Raise it only for a panel a
1286
- * reader has to REACH, which is WCAG 1.4.13's hoverable clause; about 140 crosses the gap. */
1287
- tooltipLingerMs = input(0, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1288
- /** Formats every value this series prints. Called with `'tick'` for an axis label and
1289
- * `'tooltip'` everywhere a value is printed in full. */
1065
+ /** Milliseconds the panel survives the pointer leaving the marker. */
1066
+ tooltipLingerMs = input(CHART_TOOLTIP_LINGER_MS, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1067
+ /** Formats every value this series prints: `'tick'` for an axis label, `'tooltip'` for a value in full. */
1290
1068
  valueFormat = input(chartValueFormat(injectDsLocale()), ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
1291
- /** The clicked reading, with the series it belongs to and its position in `categories`.
1292
- * Fires on click and on Enter or Space, whatever `interactive` says. */
1069
+ /** The clicked reading, its series and position in `categories`. Fires on click and Enter or Space, whatever `interactive` says. */
1293
1070
  pointClicked = output();
1294
1071
  domainId = `line-series-${nextSeriesId++}`;
1072
+ fadeId(seriesIndex) {
1073
+ return `${this.domainId}-fade-${seriesIndex}`;
1074
+ }
1295
1075
  constructor() {
1296
1076
  effect(() => {
1297
1077
  this.scales.reportDomain(`${this.domainId}-primary`, this.valuesOn('primary'), 'primary');
1298
1078
  this.scales.reportDomain(`${this.domainId}-secondary`, this.valuesOn('secondary'), 'secondary');
1299
1079
  });
1300
- // The container opens the panel, so a plot holding several marks can only ever show one.
1301
1080
  this.scales.reportTooltip(this.domainId, {
1302
1081
  context: this.tooltipContext,
1303
1082
  origin: this.tooltipOrigin,
1304
1083
  offersTooltip: computed(() => this.tooltip() !== 'none'),
1084
+ readsCategory: computed(() => this.tooltip() === 'axis'),
1305
1085
  axisOrigin: this.topReadingElement,
1306
1086
  axisEntries: this.axisEntries,
1307
1087
  });
@@ -1322,8 +1102,7 @@ class LineSeriesComponent {
1322
1102
  .filter((series) => (series.axis ?? 'primary') === axis)
1323
1103
  .flatMap((series) => series.data.filter((value) => value !== null));
1324
1104
  }
1325
- /** A `null` past the end is the same missing reading as a `null` inside the run, so a series
1326
- * shorter than `categories` ends its line rather than running off the plot's edge. */
1105
+ /** A `null` past the end is a missing reading. */
1327
1106
  readingsOf(series, count) {
1328
1107
  const zeroed = this.gaps() === 'zero';
1329
1108
  const readings = [];
@@ -1406,10 +1185,7 @@ class LineSeriesComponent {
1406
1185
  seriesStagger(index) {
1407
1186
  return `${staggerDelay(index, this.plotted().length, this.staggerMs())}ms`;
1408
1187
  }
1409
- /** One tab stop PER SERIES: each line is a strand the reader walks with the arrows, and the
1410
- * strands are what the chart is comparing. WCAG 2.1.1's Understanding is explicit that not
1411
- * every mouse-operable control has to be separately focusable, which is what keeps a
1412
- * 12-category, 2-series plot from being twenty-four stops in the page's tab order. */
1188
+ /** One tab stop per series, walked with the arrows: 12 categories x 2 series would be 24 stops. */
1413
1189
  rovingBySeries = signal(new Map(), ...(ngDevMode ? [{ debugName: "rovingBySeries" }] : /* istanbul ignore next */ []));
1414
1190
  firstMarkerBySeries = computed(() => new Map(this.plotted().map((entry) => [
1415
1191
  entry.series.id,
@@ -1419,12 +1195,9 @@ class LineSeriesComponent {
1419
1195
  return ((this.rovingBySeries().get(seriesId) ??
1420
1196
  this.firstMarkerBySeries().get(seriesId)) === markIndex);
1421
1197
  }
1422
- /** The series a marker holds focus on, which narrows an `'axis'` panel to that one reading: a
1423
- * pointer answers for every series at once, a focused marker answers for its own. */
1198
+ /** The series a marker holds focus on; narrows an `'axis'` panel to that reading. */
1424
1199
  focusedSeries = signal(null, ...(ngDevMode ? [{ debugName: "focusedSeries" }] : /* istanbul ignore next */ []));
1425
- /** A reading is active when its own marker is hovered OR when the category cursor is on its
1426
- * category: one band, one answer, so the dot grows wherever in the band the pointer is rather
1427
- * than only on the 4px dot itself. */
1200
+ /** Active when its own marker is hovered or the category cursor is on its category, so the dot grows anywhere in the band. */
1428
1201
  isActiveMarker(marker) {
1429
1202
  return (marker.markIndex === this.activeMark.index() ||
1430
1203
  marker.categoryIndex === this.scales.activeIndex());
@@ -1432,7 +1205,6 @@ class LineSeriesComponent {
1432
1205
  pinnedMarker = computed(() => this.activeMark.pinned()
1433
1206
  ? (this.allMarkers()[this.activeMark.index()] ?? null)
1434
1207
  : null, ...(ngDevMode ? [{ debugName: "pinnedMarker" }] : /* istanbul ignore next */ []));
1435
- // Above the reading, clear of the marker drawn on it.
1436
1208
  pinLift = CHART_PIN_RADIUS + CHART_PIN_GAP + PIN_MARKER_CLEARANCE;
1437
1209
  onMarkerOver(event) {
1438
1210
  const hit = markOf(event);
@@ -1482,8 +1254,6 @@ class LineSeriesComponent {
1482
1254
  }
1483
1255
  isDimmed(seriesId) {
1484
1256
  const highlighted = this.highlighted();
1485
- // Not gated on `dimOthers`: that input governs what a POINTER over a mark does, and naming a
1486
- // series in the legend is the reader asking for this one directly.
1487
1257
  return highlighted !== null && highlighted !== seriesId;
1488
1258
  }
1489
1259
  onMarkerClick(event) {
@@ -1510,9 +1280,7 @@ class LineSeriesComponent {
1510
1280
  markerLabel(marker) {
1511
1281
  return `${marker.seriesLabel}, ${marker.category}, ${marker.formattedValue}`;
1512
1282
  }
1513
- /** What this series reads at the category the cursor is on, whatever `tooltip` says. It feeds
1514
- * the container's category panel, so one band answers for every mark on the plot rather than
1515
- * each mark owning a hover field of its own. */
1283
+ /** What this series reads at the cursor's category, whatever `tooltip` says; feeds the category panel. */
1516
1284
  axisEntries = computed(() => this.readingsAtCursor().map(({ reading }) => reading), ...(ngDevMode ? [{ debugName: "axisEntries" }] : /* istanbul ignore next */ []));
1517
1285
  readingsAtCursor = computed(() => {
1518
1286
  const categoryIndex = this.scales.activeIndex();
@@ -1561,9 +1329,7 @@ class LineSeriesComponent {
1561
1329
  };
1562
1330
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
1563
1331
  markerElements = viewChildren('markerEl', ...(ngDevMode ? [{ debugName: "markerElements" }] : /* istanbul ignore next */ []));
1564
- /** The topmost reading at the active category, as its own element. The cursor band spans the
1565
- * whole plot, so anchoring an `'axis'` panel to it opens the panel at the top of the chart
1566
- * rather than over the readings it is about. */
1332
+ /** The topmost reading at the active category, as an element; the cursor band spans the plot and would open an `'axis'` panel at the top. */
1567
1333
  topReadingElement = computed(() => {
1568
1334
  const categoryIndex = this.scales.activeIndex();
1569
1335
  if (categoryIndex < 0) {
@@ -1576,8 +1342,6 @@ class LineSeriesComponent {
1576
1342
  ? (this.markerElements()[highest.markIndex]?.nativeElement ?? null)
1577
1343
  : null;
1578
1344
  }, ...(ngDevMode ? [{ debugName: "topReadingElement" }] : /* istanbul ignore next */ []));
1579
- /** Where the panel hangs: the reading or the pointer in `'axis'` mode, the hovered mark
1580
- * otherwise. */
1581
1345
  tooltipOrigin = computed(() => {
1582
1346
  if (this.tooltip() !== 'axis') {
1583
1347
  return this.activeMark.origin();
@@ -1587,9 +1351,7 @@ class LineSeriesComponent {
1587
1351
  }
1588
1352
  return this.topReadingElement() ?? this.scales.cursorOrigin();
1589
1353
  }, ...(ngDevMode ? [{ debugName: "tooltipOrigin" }] : /* istanbul ignore next */ []));
1590
- /** Every series' reading at the category the CONTAINER says is active, which is what the
1591
- * category cursor sets. A series with no reading there contributes no row rather than a
1592
- * blank one. */
1354
+ /** Every series' reading at the active category; a series with none contributes no row. */
1593
1355
  axisTooltipContext = computed(() => {
1594
1356
  const categoryIndex = this.scales.activeIndex();
1595
1357
  if (categoryIndex < 0) {
@@ -1608,56 +1370,48 @@ class LineSeriesComponent {
1608
1370
  };
1609
1371
  }, ...(ngDevMode ? [{ debugName: "axisTooltipContext" }] : /* istanbul ignore next */ []));
1610
1372
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1611
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineSeriesComponent, isStandalone: true, selector: "g[dsLineSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", 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 }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", 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 }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "markerElements", predicate: ["markerEl"], descendants: true, isSignal: true }], exportAs: ["dsLineSeries"], ngImport: i0, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.markIndex\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"interactive() ? markerLabel(marker) : null\" />\n }\n }\n }\n\n @if (pinnedMarker(); as marker) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + marker.x + ',' + (marker.y - pinLift) + ')'\n \" />\n }\n</svg:g>\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)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-stacked{stroke:var(--surface-default);stroke-width:2;stroke-linejoin:round}.lines:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_chart-line-width-bold)}.series-halo{fill:none;stroke:var(--surface-default);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--surface-default);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1373
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineSeriesComponent, isStandalone: true, selector: "g[dsLineSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", 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 }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", 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 }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "markerElements", predicate: ["markerEl"], descendants: true, isSignal: true }], exportAs: ["dsLineSeries"], ngImport: i0, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @let fades = entry.series.area === 'fade';\n\n @if (fades && entry.areaPaths.length) {\n <svg:defs>\n <svg:linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"0\"\n y2=\"1\"\n [attr.id]=\"fadeId(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\">\n <svg:stop\n class=\"fade-start\"\n offset=\"0\" />\n\n <svg:stop\n class=\"fade-end\"\n offset=\"1\" />\n </svg:linearGradient>\n </svg:defs>\n }\n\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [class.is-fade]=\"fades\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\"\n [style.fill]=\"fades ? 'url(#' + fadeId(entry.seriesIndex) + ')' : null\"\n [attr.d]=\"path\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.markIndex\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"interactive() ? markerLabel(marker) : null\" />\n }\n }\n }\n\n @if (pinnedMarker(); as marker) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + marker.x + ',' + (marker.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{fill:var(--ds-chart-area-color, var(--_series-area-color));fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-fade{fill-opacity:1}.fade-start,.fade-end{stop-color:var(--ds-chart-area-color, var(--_series-area-color))}.fade-start{stop-opacity:var(--ds-chart-area-fade-opacity)}.fade-end{stop-opacity:0}.series-area.is-stacked{stroke:var(--ds-chart-bg-color);stroke-width:2;stroke-linejoin:round}.lines:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_chart-line-width-bold)}.series-halo{fill:none;stroke:var(--ds-chart-bg-color);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1612
1374
  }
1613
1375
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, decorators: [{
1614
1376
  type: Component,
1615
- args: [{ selector: 'g[dsLineSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsLineSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.markIndex\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"interactive() ? markerLabel(marker) : null\" />\n }\n }\n }\n\n @if (pinnedMarker(); as marker) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + marker.x + ',' + (marker.y - pinLift) + ')'\n \" />\n }\n</svg:g>\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)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-stacked{stroke:var(--surface-default);stroke-width:2;stroke-linejoin:round}.lines:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_chart-line-width-bold)}.series-halo{fill:none;stroke:var(--surface-default);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--surface-default);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"] }]
1377
+ args: [{ selector: 'g[dsLineSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsLineSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @let fades = entry.series.area === 'fade';\n\n @if (fades && entry.areaPaths.length) {\n <svg:defs>\n <svg:linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"0\"\n y2=\"1\"\n [attr.id]=\"fadeId(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\">\n <svg:stop\n class=\"fade-start\"\n offset=\"0\" />\n\n <svg:stop\n class=\"fade-end\"\n offset=\"1\" />\n </svg:linearGradient>\n </svg:defs>\n }\n\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [class.is-fade]=\"fades\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [style.--_series-area-color]=\"entry.color\"\n [style.fill]=\"fades ? 'url(#' + fadeId(entry.seriesIndex) + ')' : null\"\n [attr.d]=\"path\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.markIndex\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"interactive() ? markerLabel(marker) : null\" />\n }\n }\n }\n\n @if (pinnedMarker(); as marker) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + marker.x + ',' + (marker.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{fill:var(--ds-chart-area-color, var(--_series-area-color));fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-fade{fill-opacity:1}.fade-start,.fade-end{stop-color:var(--ds-chart-area-color, var(--_series-area-color))}.fade-start{stop-opacity:var(--ds-chart-area-fade-opacity)}.fade-end{stop-opacity:0}.series-area.is-stacked{stroke:var(--ds-chart-bg-color);stroke-width:2;stroke-linejoin:round}.lines:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_chart-line-width-bold)}.series-halo{fill:none;stroke:var(--ds-chart-bg-color);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--ds-chart-bg-color);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"] }]
1616
1378
  }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], showMarkers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMarkers", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], patterns: [{ type: i0.Input, args: [{ isSignal: true, alias: "patterns", required: false }] }], stacked: [{ type: i0.Input, args: [{ isSignal: true, alias: "stacked", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], gaps: [{ type: i0.Input, args: [{ isSignal: true, alias: "gaps", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], markerElements: [{ type: i0.ViewChildren, args: ['markerEl', { isSignal: true }] }] } });
1617
1379
 
1618
1380
  /**
1619
1381
  * The names of a chart's reference lines, laid out by the same geometry that draws them.
1620
1382
  *
1621
- * A second element rather than part of `g[dsReferenceLine]`: the strokes belong under the marks
1622
- * and the names over them, and a projected element lands in exactly one of the container's slots.
1623
- * Reports no domain - the line it names already did.
1383
+ * A second element because strokes go under the marks and names over them, and a projected element
1384
+ * lands in one slot only. Reports no domain; the line it names already did.
1624
1385
  */
1625
1386
  class ReferenceLabelComponent {
1626
1387
  scales = inject(CHART_SCALES);
1627
- /** The same list `dsReferenceLine` is given. This mark draws only the labels, so it is placed
1628
- * AFTER the series and the line mark before it, which is what keeps a label legible over a mark
1629
- * that would otherwise cover it. */
1388
+ /** The same list `dsReferenceLine` is given. Place this mark after the series so labels stay legible over marks. */
1630
1389
  thresholds = input([], ...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
1631
1390
  lines = computed(() => thresholdMarks(this.thresholds(), this.scales.plot(), this.scales.yPosition()).filter((mark) => mark.label !== ''), ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
1632
1391
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1633
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ReferenceLabelComponent, isStandalone: true, selector: "g[dsReferenceLabel]", inputs: { thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (lines().length) {\n <svg:g class=\"reference-labels\">\n @for (line of lines(); track line.key) {\n <svg:text\n class=\"threshold-label\"\n text-anchor=\"start\"\n [style.--_chart-threshold-color]=\"line.color\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".threshold-label{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));fill:var(--_chart-threshold-color);font-size:var(--ds-chart-axis-font-size);font-weight:600;paint-order:stroke;stroke:var(--ds-chart-frame-bg-color);stroke-width:3;stroke-linejoin:round}@media(forced-colors:active){.threshold-label{fill:CanvasText;stroke:Canvas}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1392
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ReferenceLabelComponent, isStandalone: true, selector: "g[dsReferenceLabel]", inputs: { thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (lines().length) {\n <svg:g class=\"reference-labels\">\n @for (line of lines(); track line.key) {\n <svg:text\n class=\"threshold-label\"\n text-anchor=\"start\"\n [style.--_chart-threshold-color]=\"line.color\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".threshold-label{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));fill:var(--_chart-threshold-color);font-size:var(--ds-chart-axis-font-size);font-weight:600;paint-order:stroke;stroke:var(--ds-chart-bg-color);stroke-width:3;stroke-linejoin:round}@media(forced-colors:active){.threshold-label{fill:CanvasText;stroke:Canvas}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1634
1393
  }
1635
1394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLabelComponent, decorators: [{
1636
1395
  type: Component,
1637
- args: [{ selector: 'g[dsReferenceLabel]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (lines().length) {\n <svg:g class=\"reference-labels\">\n @for (line of lines(); track line.key) {\n <svg:text\n class=\"threshold-label\"\n text-anchor=\"start\"\n [style.--_chart-threshold-color]=\"line.color\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".threshold-label{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));fill:var(--_chart-threshold-color);font-size:var(--ds-chart-axis-font-size);font-weight:600;paint-order:stroke;stroke:var(--ds-chart-frame-bg-color);stroke-width:3;stroke-linejoin:round}@media(forced-colors:active){.threshold-label{fill:CanvasText;stroke:Canvas}}\n"] }]
1396
+ args: [{ selector: 'g[dsReferenceLabel]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (lines().length) {\n <svg:g class=\"reference-labels\">\n @for (line of lines(); track line.key) {\n <svg:text\n class=\"threshold-label\"\n text-anchor=\"start\"\n [style.--_chart-threshold-color]=\"line.color\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".threshold-label{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));fill:var(--_chart-threshold-color);font-size:var(--ds-chart-axis-font-size);font-weight:600;paint-order:stroke;stroke:var(--ds-chart-bg-color);stroke-width:3;stroke-linejoin:round}@media(forced-colors:active){.threshold-label{fill:CanvasText;stroke:Canvas}}\n"] }]
1638
1397
  }], propDecorators: { thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }] } });
1639
1398
 
1640
1399
  let nextReferenceId = 0;
1641
1400
  /**
1642
1401
  * Reference lines and bands across the plot, drawn against the scales `ds-chart` supplies.
1643
1402
  *
1644
- * Strokes only: the LABELS are a second element, `g[dsReferenceLabel]`, because the two belong in
1645
- * different layers of the canvas - a line reads as furniture under the marks, a label has to stay
1646
- * legible over them - and one projected element can only land in one of the container's slots.
1403
+ * Strokes only: labels are `g[dsReferenceLabel]`, a second element, since they paint in another layer.
1647
1404
  *
1648
- * Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
1649
- * know is not rendered, and neither are its descendants. Written as `<svg:g dsReferenceLine>`.
1405
+ * Hosted on a `<g>`: an element SVG does not know renders nothing, nor do its descendants.
1406
+ * Written as `<svg:g dsReferenceLine>`.
1650
1407
  */
1651
1408
  class ReferenceLineComponent {
1652
1409
  scales = inject(CHART_SCALES);
1653
- /** The lines and bands to draw across the plot. Each entry is ONE reading, `value`, plus an
1654
- * optional `label`, `color` and `dash`; a `to` makes it a band between two readings. Each one
1655
- * widens the value axis to hold it, so a target above every mark still lands on the plot. */
1410
+ /** The lines and bands to draw: one `value` plus optional `label`, `color` and `dash`; a `to` makes it a band. Each widens the value axis. */
1656
1411
  thresholds = input([], ...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
1657
1412
  domainId = `reference-line-${nextReferenceId++}`;
1658
1413
  constructor() {
1659
- // Reported like a series: a target above every reading is the one the reader most needs to
1660
- // see, and an axis derived from the data alone would draw it off the plot.
1414
+ // Reported like a series: an axis derived from the data alone would draw a high target off the plot.
1661
1415
  effect(() => this.scales.reportDomain(this.domainId, this.thresholds().flatMap((threshold) => threshold.to == null
1662
1416
  ? [threshold.value]
1663
1417
  : [threshold.value, threshold.to])));
@@ -1675,12 +1429,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
1675
1429
  }], ctorParameters: () => [], propDecorators: { thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }] } });
1676
1430
 
1677
1431
  /**
1678
- * A tooltip answers "what is this?" on hover; an annotation answers it in a printed page or a
1679
- * screenshot.
1680
- *
1681
- * Takes the readings rather than finding them: a mark never sees the other marks, so the caller
1682
- * that owns the series is the one that knows which value a label belongs to. Reports no domain -
1683
- * the series it annotates already did.
1432
+ * A tooltip answers "what is this?" on hover; an annotation answers it on a printed page or in a
1433
+ * screenshot. Takes the readings rather than finding them: the caller that owns the series knows
1434
+ * which value a label belongs to. Reports no domain.
1684
1435
  */
1685
1436
  class SeriesAnnotationComponent {
1686
1437
  scales = inject(CHART_SCALES);
@@ -1698,11 +1449,11 @@ class SeriesAnnotationComponent {
1698
1449
  })), plot.left + plot.width);
1699
1450
  }, ...(ngDevMode ? [{ debugName: "placed" }] : /* istanbul ignore next */ []));
1700
1451
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SeriesAnnotationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1701
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SeriesAnnotationComponent, isStandalone: true, selector: "g[dsSeriesAnnotation]", inputs: { annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (placed().length) {\n <svg:g class=\"annotations\">\n @for (note of placed(); track note.key) {\n <svg:text\n class=\"annotation\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".annotations{--_chart-annotation-color: var(--ds-chart-annotation-color, var(--text-primary));--_chart-annotation-font-size: var(--ds-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_chart-annotation-font-weight: var(--ds-chart-annotation-font-weight, var(--font-weight-bold));--_chart-annotation-halo-color: var(--ds-chart-annotation-halo-color, var(--surface-default));--_chart-annotation-halo-width: var(--ds-chart-annotation-halo-width, 3px)}.annotation{fill:var(--_chart-annotation-color);font-size:var(--_chart-annotation-font-size);font-weight:var(--_chart-annotation-font-weight);paint-order:stroke;stroke:var(--_chart-annotation-halo-color);stroke-width:var(--_chart-annotation-halo-width);stroke-linejoin:round}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1452
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SeriesAnnotationComponent, isStandalone: true, selector: "g[dsSeriesAnnotation]", inputs: { annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (placed().length) {\n <svg:g class=\"annotations\">\n @for (note of placed(); track note.key) {\n <svg:text\n class=\"annotation\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".annotations{--_chart-annotation-color: var(--ds-chart-annotation-color, var(--text-primary));--_chart-annotation-font-size: var(--ds-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_chart-annotation-font-weight: var(--ds-chart-annotation-font-weight, var(--font-weight-bold));--_chart-annotation-halo-color: var(--ds-chart-annotation-halo-color, var(--ds-chart-bg-color));--_chart-annotation-halo-width: var(--ds-chart-annotation-halo-width, 3px)}.annotation{fill:var(--_chart-annotation-color);font-size:var(--_chart-annotation-font-size);font-weight:var(--_chart-annotation-font-weight);paint-order:stroke;stroke:var(--_chart-annotation-halo-color);stroke-width:var(--_chart-annotation-halo-width);stroke-linejoin:round}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1702
1453
  }
1703
1454
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SeriesAnnotationComponent, decorators: [{
1704
1455
  type: Component,
1705
- args: [{ selector: 'g[dsSeriesAnnotation]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (placed().length) {\n <svg:g class=\"annotations\">\n @for (note of placed(); track note.key) {\n <svg:text\n class=\"annotation\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".annotations{--_chart-annotation-color: var(--ds-chart-annotation-color, var(--text-primary));--_chart-annotation-font-size: var(--ds-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_chart-annotation-font-weight: var(--ds-chart-annotation-font-weight, var(--font-weight-bold));--_chart-annotation-halo-color: var(--ds-chart-annotation-halo-color, var(--surface-default));--_chart-annotation-halo-width: var(--ds-chart-annotation-halo-width, 3px)}.annotation{fill:var(--_chart-annotation-color);font-size:var(--_chart-annotation-font-size);font-weight:var(--_chart-annotation-font-weight);paint-order:stroke;stroke:var(--_chart-annotation-halo-color);stroke-width:var(--_chart-annotation-halo-width);stroke-linejoin:round}\n"] }]
1456
+ args: [{ selector: 'g[dsSeriesAnnotation]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (placed().length) {\n <svg:g class=\"annotations\">\n @for (note of placed(); track note.key) {\n <svg:text\n class=\"annotation\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".annotations{--_chart-annotation-color: var(--ds-chart-annotation-color, var(--text-primary));--_chart-annotation-font-size: var(--ds-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_chart-annotation-font-weight: var(--ds-chart-annotation-font-weight, var(--font-weight-bold));--_chart-annotation-halo-color: var(--ds-chart-annotation-halo-color, var(--ds-chart-bg-color));--_chart-annotation-halo-width: var(--ds-chart-annotation-halo-width, 3px)}.annotation{fill:var(--_chart-annotation-color);font-size:var(--_chart-annotation-font-size);font-weight:var(--_chart-annotation-font-weight);paint-order:stroke;stroke:var(--_chart-annotation-halo-color);stroke-width:var(--_chart-annotation-halo-width);stroke-linejoin:round}\n"] }]
1706
1457
  }], propDecorators: { annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }] } });
1707
1458
 
1708
1459
  /**