@ids-group-ltd/ids-design-system 0.14.4 → 0.14.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/CHANGELOG.md +176 -1
  2. package/components.md +15 -15
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/ds-bar-chart.md +1 -1
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +1 -1
  7. package/docs/agent/charts/ds-config.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  15. package/docs/agent/overlays/ds-tooltip.md +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -130
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +20 -13
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +58 -112
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +182 -432
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -123
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -163
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +27 -85
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +50 -166
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -120
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +29 -13
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -85
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  186. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -579
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  188. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +52 -85
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  190. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  192. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  194. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  196. package/migrations/0.14.5.json +311 -0
  197. package/migrations/0.14.6-beta.0.json +9 -0
  198. package/package.json +1 -1
  199. package/schematics/check-overrides/surface.json +20 -2
  200. package/styles/_breakpoints.scss +6 -23
  201. package/styles/_chart-data-table.scss +3 -11
  202. package/styles/_chart-frame.scss +14 -63
  203. package/styles/_chart-interactive.scss +8 -36
  204. package/styles/_chart-motion.scss +11 -39
  205. package/styles/_check-box.scss +7 -26
  206. package/styles/_check-mark.scss +7 -23
  207. package/styles/_chip-row.scss +3 -14
  208. package/styles/_clear-button.scss +2 -7
  209. package/styles/_control-label.scss +2 -13
  210. package/styles/_control-line.scss +2 -6
  211. package/styles/_dropdown-overlay.scss +8 -33
  212. package/styles/_ds-color.scss +9 -28
  213. package/styles/_field-box.scss +4 -16
  214. package/styles/_field-group-segment.scss +6 -6
  215. package/styles/_field-label.scss +3 -14
  216. package/styles/_field-state.scss +5 -10
  217. package/styles/_focus.scss +20 -60
  218. package/styles/_icon-base.scss +0 -2
  219. package/styles/_layout-utils.scss +0 -3
  220. package/styles/_link.scss +4 -18
  221. package/styles/_overlay-motion.scss +15 -38
  222. package/styles/_page-grid.scss +4 -29
  223. package/styles/_press.scss +5 -18
  224. package/styles/_reset.scss +1 -14
  225. package/styles/_scrollbar.scss +0 -2
  226. package/styles/_skeleton-shimmer.scss +3 -14
  227. package/styles/_status.scss +5 -13
  228. package/styles/_surface-motion.scss +7 -34
  229. package/styles/_table-controls.scss +3 -6
  230. package/styles/_text-clip.scss +2 -6
  231. package/styles/_theme-activation.scss +7 -20
  232. package/styles/_toast-overlay.scss +2 -6
  233. package/styles/_tokens-charts.scss +31 -90
  234. package/styles/_tokens.scss +111 -156
  235. package/styles/_typography.scss +6 -13
  236. package/styles/_visually-hidden.scss +2 -3
  237. package/styles/ds.scss +2 -10
  238. package/themes/_base-palette.scss +12 -35
  239. package/themes/_semantic.scss +29 -98
  240. package/themes/dark/_palette.scss +15 -29
  241. package/themes/dark/_theme.scss +14 -32
  242. package/themes/light/_palette.scss +2 -17
  243. package/themes/light/_theme.scss +1 -7
  244. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  245. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  246. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  247. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  248. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  249. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  250. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  251. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  252. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  253. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  254. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  255. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  256. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  257. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  258. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  259. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  260. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  261. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  262. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  263. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
  264. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
  265. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  266. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  267. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
  268. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  269. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  270. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  271. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  272. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  273. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  274. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  275. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  276. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  277. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  278. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
  279. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  280. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  281. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  282. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
  283. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  284. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  285. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  286. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  287. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  288. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  289. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  290. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  291. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  292. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  293. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  294. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  295. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  296. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  297. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
  298. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  299. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  300. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  301. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  302. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  303. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  304. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  305. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
  306. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  307. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  308. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  309. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  310. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  311. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  312. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  313. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  314. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  315. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  316. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  317. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  318. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  319. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  320. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  321. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  322. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  323. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  324. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  325. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  326. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
  327. package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
  328. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -260
  329. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  330. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  331. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
@@ -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, 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';
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,137 +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
- /** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
371
- * `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
372
- tooltipSwatches = input(null, { ...(ngDevMode ? { debugName: "tooltipSwatches" } : /* istanbul ignore next */ {}), transform: (value) => value == null ? null : booleanAttribute(value) });
373
- /** Draws a placeholder in place of the plot, at the plot's own height, so the page does not
374
- * resize when the data lands. */
375
- loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
376
- /** Shown in place of the plot when `categories` is empty. Unset falls back to
377
- * `DS_INTL.chart.empty`. */
378
- emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
379
- /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty
380
- * `categories`, because "the request failed" and "there is nothing to show" read the same to a
381
- * reader and mean opposite things. */
382
- error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
383
- /** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
384
- errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
385
- /** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
386
- * `DS_CONFIG.locale` / `LOCALE_ID`. */
387
- valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
388
- /** How the second value axis relates to the first, once a mark has reported against it. The
389
- * same four words `ds-line-chart` takes. */
301
+ /** How the second value axis relates to the first, once a mark has reported against it. */
390
302
  secondaryAxisMode = input('aligned', ...(ngDevMode ? [{ debugName: "secondaryAxisMode" }] : /* istanbul ignore next */ []));
391
- /** Paints the first axis's tick labels in the colour of the marks measured against it. A
392
- * two-scale plot is ambiguous without it - nothing on the canvas says which of two lines is
393
- * read against which set of numbers - and it is the author, not the container, who knows which
394
- * 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. */
395
304
  axisColor = input(null, ...(ngDevMode ? [{ debugName: "axisColor" }] : /* istanbul ignore next */ []));
396
305
  /** `axisColor` for the second axis. */
397
306
  secondaryAxisColor = input(null, ...(ngDevMode ? [{ debugName: "secondaryAxisColor" }] : /* istanbul ignore next */ []));
398
- /** Names the first axis's unit beside it. On a two-scale plot the colour says which line reads
399
- * which axis and this says what the numbers ARE - a reader who has neither is left comparing
400
- * two quantities that may not be comparable at all. */
307
+ /** Names the first axis's unit beside it. */
401
308
  axisLabel = input(null, ...(ngDevMode ? [{ debugName: "axisLabel" }] : /* istanbul ignore next */ []));
402
309
  /** `axisLabel` for the second axis. */
403
310
  secondaryAxisLabel = input(null, ...(ngDevMode ? [{ debugName: "secondaryAxisLabel" }] : /* istanbul ignore next */ []));
404
- defaults = resolveChartDefaults(this);
405
311
  tooltipSwatchesResolved = this.defaults.tooltipSwatches;
406
- intl = inject(DS_INTL);
407
- frameResolved = this.defaults.frame;
408
- emptyTextResolved = this.defaults.emptyText;
409
- errorTextResolved = this.defaults.errorText;
410
- valueFormatResolved = this.defaults.valueFormat;
411
312
  hoverDelayMs = this.defaults.hoverDelayMs;
412
313
  host = inject(ElementRef);
413
314
  zone = inject(NgZone);
414
315
  isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
415
- /** The `<svg>`'s own rendered width: `:host(.framed)` carries the frame padding, so the host's
416
- * CONTENT box - which is what a `ResizeObserver` reports - is the box the canvas fills at
417
- * `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. */
418
317
  measuredWidth = elementWidth(this.host);
419
- /** 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. */
420
319
  measured = computed(() => !this.isBrowser || this.measuredWidth() > 0, ...(ngDevMode ? [{ debugName: "measured" }] : /* istanbul ignore next */ []));
421
320
  viewWidth = computed(() => this.measuredWidth() || CHART_FALLBACK_WIDTH, ...(ngDevMode ? [{ debugName: "viewWidth" }] : /* istanbul ignore next */ []));
422
- /** Whether the marks may animate yet. The first frame draws at `CHART_FALLBACK_WIDTH` scaled to
423
- * fit, so the measurement that follows moves every mark - and a mark that transitions its
424
- * geometry would play that correction as an animated slide on every load, hydration included.
425
- *
426
- * Two frames, not one. A transition starts when the property changes in a style that also
427
- * enables it, so the enabling must not land in the same style recalculation as the correction.
428
- * One `requestAnimationFrame` is not enough: scheduled from the change detection that writes
429
- * the corrected geometry, it runs at the START of the next frame, still before that geometry
430
- * has been through a recalculation. Measured with one frame: `transitionrun` on `x` and
431
- * `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`. */
432
323
  settled = signal(false, ...(ngDevMode ? [{ debugName: "settled" }] : /* istanbul ignore next */ []));
433
324
  constructor() {
325
+ super();
434
326
  effect((onCleanup) => {
435
327
  if (this.settled() || this.measuredWidth() === 0) {
436
328
  return;
437
329
  }
438
330
  let first = 0;
439
331
  let second = 0;
440
- // Outside the zone: under zone.js each frame callback is a full application tick, two per
441
- // 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.
442
333
  this.zone.runOutsideAngular(() => {
443
334
  first = requestAnimationFrame(() => {
444
335
  second = requestAnimationFrame(() => this.settled.set(true));
@@ -455,9 +346,7 @@ class ChartComponent {
455
346
  onCleanup(this.listenForCursor(canvas));
456
347
  }
457
348
  });
458
- // The read phase, so every `getComputedTextLength` lands in one batch before any write:
459
- // interleaving them forces a synchronous layout per label. It re-measures when a label's text
460
- // 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.
461
350
  afterRenderEffect({
462
351
  read: () => {
463
352
  this.labelTexts();
@@ -475,51 +364,27 @@ class ChartComponent {
475
364
  }
476
365
  return Math.ceil(widest);
477
366
  }
478
- /** Two plots, one above the other, sharing the category axis: the only mode whose second axis
479
- * is a second PLOT rather than a second scale over the first. */
367
+ /** Two plots stacked on a shared category axis. */
480
368
  stacked = computed(() => this.secondaryAxisMode() === 'split' && this.hasSecondaryAxis(), ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
481
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 */ []));
482
- /** One viewBox unit is one CSS pixel, in both axes. That is the whole point of measuring: a
483
- * radius, a gutter or a width cap set anywhere inside the plot is then the length it says it
484
- * 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. */
485
371
  viewBox = computed(() => `0 0 ${this.viewWidth()} ${this.viewHeight()}`, ...(ngDevMode ? [{ debugName: "viewBox" }] : /* istanbul ignore next */ []));
486
- /** Widest tick label actually rendered, in the CSS pixels the canvas is drawn in. Zero until the
487
- * 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. */
488
373
  measuredLabelWidth = signal(0, ...(ngDevMode ? [{ debugName: "measuredLabelWidth" }] : /* istanbul ignore next */ []));
489
- /** The widest category label as drawn, which is what decides whether they all fit. */
490
374
  measuredCategoryLabelWidth = signal(0, ...(ngDevMode ? [{ debugName: "measuredCategoryLabelWidth" }] : /* istanbul ignore next */ []));
491
- /** `axisGutter` is the FLOOR, not the answer: a compact number is far wider in some locales than
492
- * in others - `3,5 тыс.` against `3.5k` - and an SVG canvas CLIPS what a DOM column merely
493
- * overflowed, so a fixed gutter silently eats the leading digit. The gutter takes whichever is
494
- * larger, so setting the token still guarantees at least that much room.
495
- *
496
- * This converges rather than oscillating: a tick's TEXT is decided by the domain and the tick
497
- * count, neither of which the gutter feeds, so widening it moves the labels without rewriting
498
- * 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. */
499
376
  effectiveAxisGutter = computed(() => Math.max(this.axisGutter(), this.measuredLabelWidth() + CHART_AXIS_LABEL_GAP + this.axisTitleGutter()), ...(ngDevMode ? [{ debugName: "effectiveAxisGutter" }] : /* istanbul ignore next */ []));
500
- /** A rotated axis title stands in the same gutter as the tick labels, so the gutter has to carry
501
- * both or the widest tick runs through the title. Its own width is its line height, because it
502
- * is turned on its side. */
377
+ /** A rotated axis title shares the tick gutter; its width is its line height. */
503
378
  axisTitleGutter = computed(() => this.axisLabel() ? CHART_AXIS_TITLE_BAND : 0, ...(ngDevMode ? [{ debugName: "axisTitleGutter" }] : /* istanbul ignore next */ []));
504
- /** Where a rotated axis title sits: hard against the outer edge, with the tick labels between it
505
- * and the plot. */
506
379
  axisTitleX = computed(() => CHART_AXIS_TITLE_BAND / 2, ...(ngDevMode ? [{ debugName: "axisTitleX" }] : /* istanbul ignore next */ []));
507
- /** Mirrors `axisTitleX` against the right edge, so the two titles stand the same distance from
508
- * their own ticks. */
509
380
  secondaryTitleX = computed(() => this.viewWidth() - CHART_AXIS_TITLE_BAND / 2, ...(ngDevMode ? [{ debugName: "secondaryTitleX" }] : /* istanbul ignore next */ []));
510
- /** Widest secondary tick label, measured the same way and for the same reason as the primary
511
- * one: those labels sit OUTSIDE the plot's right edge and an SVG canvas clips what a DOM
512
- * column merely overflowed. */
513
381
  measuredSecondaryLabelWidth = signal(0, ...(ngDevMode ? [{ debugName: "measuredSecondaryLabelWidth" }] : /* istanbul ignore next */ []));
514
- /** The plot gives the right-hand labels room only when they are drawn there - a stacked second
515
- * 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. */
516
383
  rightGutter = computed(() => this.hasSecondaryAxis() && !this.stacked()
517
384
  ? Math.max(this.axisGutter(), this.measuredSecondaryLabelWidth() +
518
385
  CHART_AXIS_LABEL_GAP +
519
386
  this.secondaryTitleGutter())
520
387
  : CHART_EDGE_GUTTER, ...(ngDevMode ? [{ debugName: "rightGutter" }] : /* istanbul ignore next */ []));
521
- /** The second axis's title stands in the right gutter exactly as the first one's stands in the
522
- * left, so both sides reserve the same band and the plot sits centred between its two labels. */
523
388
  secondaryTitleGutter = computed(() => this.secondaryAxisLabel() && this.hasSecondaryAxis()
524
389
  ? CHART_AXIS_TITLE_BAND
525
390
  : 0, ...(ngDevMode ? [{ debugName: "secondaryTitleGutter" }] : /* istanbul ignore next */ []));
@@ -550,10 +415,9 @@ class ChartComponent {
550
415
  return next;
551
416
  });
552
417
  }
553
- /** 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. */
554
419
  tooltipTemplate = input(null, ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
555
- /** Extra clearance between the mark and the panel, for a chart that prints a value label in
556
- * the gap the panel would otherwise take. */
420
+ /** Extra clearance between the mark and the panel, for a value label printed in that gap. */
557
421
  tooltipExtraGap = input(0, { ...(ngDevMode ? { debugName: "tooltipExtraGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
558
422
  tooltipSources = signal(new Map(), ...(ngDevMode ? [{ debugName: "tooltipSources" }] : /* istanbul ignore next */ []));
559
423
  reportTooltip(id, source) {
@@ -566,20 +430,18 @@ class ChartComponent {
566
430
  return next;
567
431
  });
568
432
  }
569
- /** Two or more marks that show a tooltip: the plot reads as one comparison, so its panel is about
570
- * 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. */
571
434
  composed = computed(() => [...this.tooltipSources().values()].filter((source) => source.offersTooltip?.() ?? true).length > 1, ...(ngDevMode ? [{ debugName: "composed" }] : /* istanbul ignore next */ []));
572
435
  cursorResolved = computed(() => {
573
436
  const cursor = this.cursor();
574
437
  if (cursor !== 'auto') {
575
438
  return cursor;
576
439
  }
577
- return this.composed() ? 'category' : 'none';
440
+ const readsCategory = [...this.tooltipSources().values()].some((source) => source.readsCategory?.() ?? false);
441
+ return this.composed() || readsCategory ? 'category' : 'none';
578
442
  }, ...(ngDevMode ? [{ debugName: "cursorResolved" }] : /* istanbul ignore next */ []));
579
443
  cursorOn = computed(() => this.cursorResolved() === 'category', ...(ngDevMode ? [{ debugName: "cursorOn" }] : /* istanbul ignore next */ []));
580
- /** The offer to show, if any mark is making one. At most one mark has a context at a time: a
581
- * per-mark tooltip only fills it while that mark is hovered, and an axis tooltip only while the
582
- * 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. */
583
445
  activeTooltip = computed(() => [...this.tooltipSources().values()].find((source) => source.context() !== null) ?? null, ...(ngDevMode ? [{ debugName: "activeTooltip" }] : /* istanbul ignore next */ []));
584
446
  tooltipContext = computed(() => {
585
447
  const base = this.activeTooltip()?.context() ?? null;
@@ -596,9 +458,7 @@ class ChartComponent {
596
458
  entries: topDown(readings),
597
459
  };
598
460
  }
599
- // A mark offers its own panel under the cursor only from focus or an axis tooltip, and that
600
- // panel is about the category, so every other mark's reading belongs in it too. Matched by
601
- // 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.
602
462
  const named = new Map(base.entries.map((entry) => [entry.label, entry]));
603
463
  if (readings.every((reading) => named.has(reading.label))) {
604
464
  return base;
@@ -614,15 +474,12 @@ class ChartComponent {
614
474
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
615
475
  tooltipOrigin = computed(() => {
616
476
  const own = this.activeTooltip()?.origin() ?? null;
617
- // A point rather than an element is a panel that follows the pointer, and stays with it.
618
477
  if (this.cursorResolved() !== 'category' ||
619
478
  (own !== null && !(own instanceof Element))) {
620
479
  return own;
621
480
  }
622
- // A category panel belongs over the TALLEST reading at that category, not over whichever mark
623
- // happened to open it: a line that dips under a column would otherwise put the panel low and
624
- // let the column stand over it. Every mark's reading counts whether or not the pointer is on
625
- // 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.
626
483
  const boxes = [...this.tooltipSources().values()]
627
484
  .map((source) => (source.axisOrigin ?? source.origin)())
628
485
  .filter((origin) => origin instanceof Element)
@@ -636,14 +493,9 @@ class ChartComponent {
636
493
  : boxes.reduce((highest, candidate) => candidate.top < highest.top ? candidate : highest).element;
637
494
  }, ...(ngDevMode ? [{ debugName: "tooltipOrigin" }] : /* istanbul ignore next */ []));
638
495
  tooltipPinned = computed(() => (this.activeTooltip()?.pinned?.() ?? false) || this.cursorPinned(), ...(ngDevMode ? [{ debugName: "tooltipPinned" }] : /* istanbul ignore next */ []));
639
- /** Compared by value, which is what stops a mark that reports AND reads `yPosition()` in one
640
- * effect from running forever: every report allocates a fresh `Map` and `niceDomain` a fresh
641
- * object, so identity always differs and the read would re-arm the write. Measured without it:
642
- * 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. */
643
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 });
644
- // Counts VALUES, not reporters: `valuesOn` returns one entry per mark that registered, and a
645
- // line series registers both axes unconditionally, so an empty contribution would otherwise
646
- // 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.
647
499
  hasSecondaryAxis = computed(() => this.valuesOn('secondary').some((values) => values.length > 0), ...(ngDevMode ? [{ debugName: "hasSecondaryAxis" }] : /* istanbul ignore next */ []));
648
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 &&
649
501
  a.domain.min === b.domain.min &&
@@ -669,8 +521,7 @@ class ChartComponent {
669
521
  label: format(value, 'tick'),
670
522
  }));
671
523
  }, ...(ngDevMode ? [{ debugName: "secondaryTicks" }] : /* istanbul ignore next */ []));
672
- /** A second set of gridlines only where the two scales do NOT share rows: drawn against an
673
- * 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. */
674
525
  showSecondaryGridlines = computed(() => this.hasSecondaryAxis() &&
675
526
  (this.stacked() || !this.secondary().aligned) &&
676
527
  this.secondaryTicks().length > 1, ...(ngDevMode ? [{ debugName: "showSecondaryGridlines" }] : /* istanbul ignore next */ []));
@@ -679,8 +530,7 @@ class ChartComponent {
679
530
  : this.plot().left + this.plot().width + CHART_AXIS_LABEL_GAP, ...(ngDevMode ? [{ debugName: "secondaryLabelX" }] : /* istanbul ignore next */ []));
680
531
  secondaryLabelAnchor = computed(() => this.stacked() ? 'end' : 'start', ...(ngDevMode ? [{ debugName: "secondaryLabelAnchor" }] : /* istanbul ignore next */ []));
681
532
  secondaryPlotBottom = computed(() => this.secondaryPlot().top + this.secondaryPlot().height, ...(ngDevMode ? [{ debugName: "secondaryPlotBottom" }] : /* istanbul ignore next */ []));
682
- /** No tint on a single-scale plot: one axis needs no telling apart, and colouring it would only
683
- * restate the marks' own colour in the furniture. */
533
+ /** No tint on a single-scale plot. */
684
534
  axisLabelFill = computed(() => this.hasSecondaryAxis() ? this.axisColor() : null, ...(ngDevMode ? [{ debugName: "axisLabelFill" }] : /* istanbul ignore next */ []));
685
535
  secondaryAxisLabelFill = computed(() => this.secondaryAxisColor(), ...(ngDevMode ? [{ debugName: "secondaryAxisLabelFill" }] : /* istanbul ignore next */ []));
686
536
  bands = computed(() => bandScale(this.categories().length, this.plot().width, CHART_BAND_PADDING), ...(ngDevMode ? [{ debugName: "bands" }] : /* istanbul ignore next */ []));
@@ -709,38 +559,33 @@ class ChartComponent {
709
559
  bottom: plot.top + plot.height,
710
560
  };
711
561
  }, ...(ngDevMode ? [{ debugName: "cursorBand" }] : /* istanbul ignore next */ []));
712
- /** The same state machine the element marks run on: pin, linger, the grace period that lets the
713
- * pointer reach a portaled panel, Escape and press-outside. A category cursor differs from a
714
- * 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. */
715
563
  cursorState = chartActiveMark(() => this.defaults.tooltipLingerMs(), () => this.hoverDelayMs());
716
564
  activeIndex = this.cursorState.index;
717
565
  pointerAt = signal(null, ...(ngDevMode ? [{ debugName: "pointerAt" }] : /* istanbul ignore next */ []));
718
- // 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.
719
567
  pointerInBand = signal(false, ...(ngDevMode ? [{ debugName: "pointerInBand" }] : /* istanbul ignore next */ []));
720
568
  // At the band's foot: its head is where the panel opens, over the tallest reading.
721
569
  bandPinY(band) {
722
570
  return band.bottom - CHART_PIN_RADIUS - CHART_PIN_GAP;
723
571
  }
724
- 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 */ []));
725
573
  cursorPointer = computed(() => this.activeIndex() < 0 ? null : this.pointerAt(), ...(ngDevMode ? [{ debugName: "cursorPointer" }] : /* istanbul ignore next */ []));
726
- /** Whether the cursor is held. A preset renders its own way out of the pin from this. */
574
+ /** Whether the cursor is held. */
727
575
  cursorPinned = this.cursorState.pinned;
728
576
  releaseCursor() {
729
577
  this.cursorState.release();
730
578
  }
731
579
  canvasElement = viewChild('canvasEl', ...(ngDevMode ? [{ debugName: "canvasElement" }] : /* istanbul ignore next */ []));
732
- // Read once per hover and dropped on any scroll, rather than on every move: a move that follows
733
- // 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.
734
581
  canvasRect = null;
735
582
  plotPointer(event, canvas) {
736
583
  this.canvasRect ??= canvas.getBoundingClientRect();
737
584
  const plot = this.plot();
738
- // The canvas is scaled to its box, so a client x has to come back through the viewBox before
739
- // it means anything to a plot measured in view units.
585
+ // Client x to view units: the canvas is scaled to its box.
740
586
  const viewX = ((event.clientX - this.canvasRect.left) / this.canvasRect.width) *
741
587
  this.viewWidth();
742
- // Every point of the plot belongs to its nearest category, so the cursor moves from one
743
- // category straight to the next and never passes through "none".
588
+ // Every point belongs to its nearest category, so the cursor never passes through "none".
744
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);
@@ -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 }, tooltipSwatches: { classPropertyName: "tooltipSwatches", publicName: "tooltipSwatches", 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 [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 @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", "dsChartTooltipSwatches"] }, { 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,92 +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 [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 @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 }] }], tooltipSwatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipSwatches", 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, in milliseconds. The default lets
930
- * the pointer reach the next mark before the panel closes, so it glides there instead. */
755
+ /** Milliseconds the panel survives the pointer leaving the mark. */
931
756
  tooltipLingerMs = input(CHART_TOOLTIP_LINGER_MS, { ...(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. */
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
- /** The only series in its slot, as a waterfall's floating bars are: `offsets` lifts each mark
948
- * off the axis, but nothing is stacked above or below it, so the mark answers the pointer over
949
- * the whole plot height rather than over its own span. */
768
+ /** The only series in its slot, as a waterfall's floating bars are: each answers the pointer over the whole plot height. */
950
769
  soleSeries = input(false, { ...(ngDevMode ? { debugName: "soleSeries" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
951
- /** Which value axis the columns are measured against. `'secondary'` reads them off the second
952
- * axis, the way `axis: 'secondary'` does on a line series' data. */
770
+ /** Which value axis the columns are measured against; `'secondary'` reads the second axis. */
953
771
  axis = input('primary', ...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
954
- /** One colour for the whole series, which is what several series drawn together need. Unset,
955
- * each mark takes the categorical palette by its own position - the right reading when the
956
- * marks ARE the categories, which is the single-series case. A point's own colour wins over
957
- * both. */
772
+ /** One colour for the whole series. Unset, each mark takes the categorical palette by position;
773
+ * a point's own colour wins. */
958
774
  seriesColor = input(null, ...(ngDevMode ? [{ debugName: "seriesColor" }] : /* istanbul ignore next */ []));
959
775
  /** `seriesColor` for the fill pattern. A point's own `fill` wins. */
960
776
  seriesFill = input(null, ...(ngDevMode ? [{ debugName: "seriesFill" }] : /* istanbul ignore next */ []));
961
- /** Names the series in the tooltip, where the category then becomes the panel's heading. Unset,
962
- * 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. */
963
778
  seriesLabel = input(null, ...(ngDevMode ? [{ debugName: "seriesLabel" }] : /* istanbul ignore next */ []));
964
779
  /** Identifies this series to the legend, so hovering a legend item can single it out. */
965
780
  seriesKey = input(null, ...(ngDevMode ? [{ debugName: "seriesKey" }] : /* istanbul ignore next */ []));
@@ -973,11 +788,9 @@ class ColumnSeriesComponent {
973
788
  pointClicked = output();
974
789
  seriesId = nextSeriesId$1++;
975
790
  domainId = `column-series-${this.seriesId}`;
976
- /** Per instance: two charts on one page would otherwise share the first `<pattern>` to reach the
977
- * 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. */
978
792
  hatchId = `ds-column-hatch-${this.seriesId}`;
979
- /** Where each mark actually spans, which is what the axis has to hold: a stacked segment's top
980
- * 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. */
981
794
  spans = computed(() => {
982
795
  const given = this.offsets();
983
796
  return this.data().map((point, index) => given?.[index] ?? {
@@ -987,7 +800,6 @@ class ColumnSeriesComponent {
987
800
  }, ...(ngDevMode ? [{ debugName: "spans" }] : /* istanbul ignore next */ []));
988
801
  constructor() {
989
802
  effect(() => this.scales.reportDomain(this.domainId, this.spans().flatMap((span) => [span.from, span.to]), this.axis()));
990
- // The container opens the panel, so a plot holding several marks can only ever show one.
991
803
  this.scales.reportTooltip(this.domainId, {
992
804
  context: this.tooltipContext,
993
805
  origin: computed(() => this.activeMark.origin()),
@@ -1031,9 +843,7 @@ class ColumnSeriesComponent {
1031
843
  }
1032
844
  activeMark = chartActiveMark(() => this.tooltipLingerMs(), () => this.scales.hoverDelayMs?.() ?? 0);
1033
845
  barElements = viewChildren('barEl', ...(ngDevMode ? [{ debugName: "barElements" }] : /* istanbul ignore next */ []));
1034
- /** One SERIES' slot inside a category's band: the whole band while a chart draws one series,
1035
- * a share of it per series when several are grouped. The box that catches the pointer is sized
1036
- * 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. */
1037
847
  slotStep = computed(() => {
1038
848
  const count = this.data().length;
1039
849
  const slots = Math.max(1, this.slotCount());
@@ -1041,16 +851,12 @@ class ColumnSeriesComponent {
1041
851
  }, ...(ngDevMode ? [{ debugName: "slotStep" }] : /* istanbul ignore next */ []));
1042
852
  slotStepPx = computed(() => `${this.slotStep()}px`, ...(ngDevMode ? [{ debugName: "slotStepPx" }] : /* istanbul ignore next */ []));
1043
853
  markWidthPx = computed(() => `${this.slotStep() * this.columnWidthRatio()}px`, ...(ngDevMode ? [{ debugName: "markWidthPx" }] : /* istanbul ignore next */ []));
1044
- /** The whole canvas, reserved end included. Overshooting when the container drops that
1045
- * reservation costs nothing - the outer `<svg>` clips it - while falling short would leave a
1046
- * 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. */
1047
855
  hitHeight = computed(() => {
1048
856
  const plot = this.scales.plot();
1049
857
  return chartViewHeight(plot.height, plot.top, true);
1050
858
  }, ...(ngDevMode ? [{ debugName: "hitHeight" }] : /* istanbul ignore next */ []));
1051
- /** Stacked series sit on top of one another, so a full-slot hit box on each one means only the
1052
- * series drawn last is ever reachable. Stacked, a mark catches the pointer over its own segment
1053
- * and nothing else. */
859
+ /** Stacked series overlap, so a stacked mark catches the pointer over its own segment only. */
1054
860
  stacked = computed(() => this.offsets() !== null && !this.soleSeries(), ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
1055
861
  /** Keeps a thin segment reachable without letting it reach into its neighbours. */
1056
862
  static MIN_STACK_HIT = 6;
@@ -1075,8 +881,7 @@ class ColumnSeriesComponent {
1075
881
  const foot = toY(span.from);
1076
882
  const tip = toY(span.to);
1077
883
  const below = tip > foot;
1078
- // Only a segment that has one under it gives up the gap: taking it off the baseline segment
1079
- // 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.
1080
885
  const gap = span.from === 0 ? 0 : Math.min(STACK_SEGMENT_GAP, Math.abs(tip - foot));
1081
886
  const baseline = below ? foot + gap : foot - gap;
1082
887
  const color = point.color ??
@@ -1093,8 +898,6 @@ class ColumnSeriesComponent {
1093
898
  height: Math.abs(tip - baseline),
1094
899
  labelY: below ? tip + VALUE_LABEL_GAP : tip - VALUE_LABEL_GAP,
1095
900
  pinY: Math.min(tip, baseline) + CHART_PIN_RADIUS + CHART_PIN_GAP,
1096
- // Growing from the baseline, never the mark's own tip - a column below zero grows
1097
- // downward, so its transform-origin flips to the top edge it hangs from.
1098
901
  origin: below ? 'top' : 'bottom',
1099
902
  formattedValue: format(point.value, 'tooltip'),
1100
903
  color,
@@ -1135,7 +938,6 @@ class ColumnSeriesComponent {
1135
938
  roving = rovingMarks(() => this.marks().length);
1136
939
  onMarkFocus(event, hit) {
1137
940
  this.roving.focus(hit.index);
1138
- // Under the category cursor focus names the category, as a pointer anywhere in its band does.
1139
941
  if (this.scales.cursorOn?.()) {
1140
942
  this.scales.setActiveIndex(hit.index);
1141
943
  }
@@ -1147,8 +949,7 @@ class ColumnSeriesComponent {
1147
949
  return;
1148
950
  }
1149
951
  if (event.key === 'Enter' || event.key === ' ') {
1150
- // Only the column's own key opens it: a key pressed on a control inside belongs to that
1151
- // control.
952
+ // A key pressed on a control inside belongs to that control.
1152
953
  const mark = this.marks()[hit.index];
1153
954
  if (this.interactive() && event.target === hit.element && mark) {
1154
955
  event.preventDefault();
@@ -1161,8 +962,7 @@ class ColumnSeriesComponent {
1161
962
  entryLabel(mark) {
1162
963
  return `${mark.point.label}, ${mark.formattedValue}`;
1163
964
  }
1164
- /** This series' reading at the category the cursor is on. Filled whatever `tooltip` says: it
1165
- * 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. */
1166
966
  axisEntries = computed(() => {
1167
967
  const categoryIndex = this.scales.activeIndex();
1168
968
  const mark = this.marks()[categoryIndex];
@@ -1207,102 +1007,81 @@ class ColumnSeriesComponent {
1207
1007
  };
1208
1008
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
1209
1009
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1210
- 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`, 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-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))}@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 });
1211
1011
  }
1212
1012
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnSeriesComponent, decorators: [{
1213
1013
  type: Component,
1214
- 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`, 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-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))}@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"] }]
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"] }]
1215
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 }] }] } });
1216
1016
 
1217
1017
  let nextSeriesId = 0;
1018
+ // The active marker's default radius, `--chart-dot-radius-active`.
1019
+ const PIN_MARKER_CLEARANCE = 6;
1218
1020
  /**
1219
- * One line per series, drawn against the scales `ds-chart` supplies, on either of its two value
1220
- * axes.
1021
+ * One line per series, drawn against the scales `ds-chart` supplies, on either value axis.
1221
1022
  *
1222
- * Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
1223
- * 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>`.
1224
1025
  */
1225
- // The active marker's default radius, `--chart-dot-radius-active`.
1226
- const PIN_MARKER_CLEARANCE = 6;
1227
1026
  class LineSeriesComponent {
1228
1027
  leaveMark = leaveMark;
1229
1028
  scales = inject(CHART_SCALES);
1230
- /** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
1231
- * 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). */
1232
1030
  data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1233
- /** Draws a round marker at every reading. Off leaves the line alone, which reads better past
1234
- * roughly twenty points. */
1031
+ /** Draws a round marker at every reading; reads better off past roughly twenty points. */
1235
1032
  showMarkers = input(true, { ...(ngDevMode ? { debugName: "showMarkers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1236
- /** Lays the line and its markers on a band of the surface colour, so they stay legible where
1237
- * they cross other marks. On by default: a line shares its plot more often than not, and on an
1238
- * 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. */
1239
1034
  outline = input(true, { ...(ngDevMode ? { debugName: "outline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1240
- /** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
1241
- * fires whether or not this is set. */
1035
+ /** Turns on the click affordance (pointer cursor and hover tint). `pointClicked` fires either way. */
1242
1036
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1243
- /** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
1244
- * Escape or a press outside releases it. Under the category cursor the container holds the
1245
- * 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. */
1246
1039
  pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
1247
1040
  pinOnClickResolved = resolveWithConfig(this.pinOnClick, (config) => config.chart?.pinOnClick, true);
1248
1041
  pins = computed(() => this.pinOnClickResolved() && !this.scales.cursorOn?.(), ...(ngDevMode ? [{ debugName: "pins" }] : /* istanbul ignore next */ []));
1249
- /** Fades every series but the one under the pointer. Off by default: the dimming buys loudness
1250
- * 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. */
1251
1043
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1252
- /** The one series to single out: every other one draws faded and this one draws bold, so the
1253
- * comparison survives a monochrome print. Driven from a legend, or from whatever else the app
1254
- * uses to mean "show me this one". Fades the others whether or not `dimOthers` is set, which
1255
- * 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. */
1256
1045
  highlighted = input(null, ...(ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []));
1257
- /** A dash pattern per series, in the order the series are given. A series past the end of the
1258
- * 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. */
1259
1047
  patterns = input([], ...(ngDevMode ? [{ debugName: "patterns" }] : /* istanbul ignore next */ []));
1260
- /** Fills each area from the series below it rather than from the baseline, which is what a
1261
- * 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). */
1262
1049
  stacked = input(false, { ...(ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1263
- /** The dash for a series' position, or null where it draws solid. */
1264
1050
  dashFor(seriesIndex) {
1265
1051
  return this.patterns()[seriesIndex] || null;
1266
1052
  }
1267
- /** Milliseconds between one series' entrance and the next, narrowed so the last series still
1268
- * 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. */
1269
1054
  staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1270
- /** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point
1271
- * 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. */
1272
1056
  gaps = input('break', ...(ngDevMode ? [{ debugName: "gaps" }] : /* istanbul ignore next */ []));
1273
- /** How the line joins its readings. `'linear'` by default, which asserts nothing the data does
1274
- * not say; a curve is a claim about what happened BETWEEN two readings. `'step'` holds each
1275
- * 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. */
1276
1059
  curve = input('linear', ...(ngDevMode ? [{ debugName: "curve" }] : /* istanbul ignore next */ []));
1277
- /** Whether a hovered or focused reading opens a tooltip, and for what. `'item'` names the
1278
- * marker itself. `'axis'` names every series at the category under the pointer, which is the
1279
- * reading a multi-series line is compared on - it follows the container's `cursor`, so set
1280
- * `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"`. */
1281
1062
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
1282
- /** Where an `'axis'` panel hangs: `'reading'` puts it over the highest reading in the category,
1283
- * so it names what it points at and stays put while the pointer travels within one band;
1284
- * `'pointer'` follows the cursor. */
1063
+ /** Where an `'axis'` panel hangs: `'reading'` over the highest reading in the category; `'pointer'` follows the cursor. */
1285
1064
  tooltipAnchor = input('reading', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
1286
- /** How long the panel survives the pointer leaving the marker, in milliseconds. The default lets
1287
- * the pointer reach the next marker before the panel closes, so it glides there instead. */
1065
+ /** Milliseconds the panel survives the pointer leaving the marker. */
1288
1066
  tooltipLingerMs = input(CHART_TOOLTIP_LINGER_MS, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1289
- /** Formats every value this series prints. Called with `'tick'` for an axis label and
1290
- * `'tooltip'` everywhere a value is printed in full. */
1067
+ /** Formats every value this series prints: `'tick'` for an axis label, `'tooltip'` for a value in full. */
1291
1068
  valueFormat = input(chartValueFormat(injectDsLocale()), ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
1292
- /** The clicked reading, with the series it belongs to and its position in `categories`.
1293
- * 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. */
1294
1070
  pointClicked = output();
1295
1071
  domainId = `line-series-${nextSeriesId++}`;
1072
+ fadeId(seriesIndex) {
1073
+ return `${this.domainId}-fade-${seriesIndex}`;
1074
+ }
1296
1075
  constructor() {
1297
1076
  effect(() => {
1298
1077
  this.scales.reportDomain(`${this.domainId}-primary`, this.valuesOn('primary'), 'primary');
1299
1078
  this.scales.reportDomain(`${this.domainId}-secondary`, this.valuesOn('secondary'), 'secondary');
1300
1079
  });
1301
- // The container opens the panel, so a plot holding several marks can only ever show one.
1302
1080
  this.scales.reportTooltip(this.domainId, {
1303
1081
  context: this.tooltipContext,
1304
1082
  origin: this.tooltipOrigin,
1305
1083
  offersTooltip: computed(() => this.tooltip() !== 'none'),
1084
+ readsCategory: computed(() => this.tooltip() === 'axis'),
1306
1085
  axisOrigin: this.topReadingElement,
1307
1086
  axisEntries: this.axisEntries,
1308
1087
  });
@@ -1323,8 +1102,7 @@ class LineSeriesComponent {
1323
1102
  .filter((series) => (series.axis ?? 'primary') === axis)
1324
1103
  .flatMap((series) => series.data.filter((value) => value !== null));
1325
1104
  }
1326
- /** A `null` past the end is the same missing reading as a `null` inside the run, so a series
1327
- * shorter than `categories` ends its line rather than running off the plot's edge. */
1105
+ /** A `null` past the end is a missing reading. */
1328
1106
  readingsOf(series, count) {
1329
1107
  const zeroed = this.gaps() === 'zero';
1330
1108
  const readings = [];
@@ -1407,10 +1185,7 @@ class LineSeriesComponent {
1407
1185
  seriesStagger(index) {
1408
1186
  return `${staggerDelay(index, this.plotted().length, this.staggerMs())}ms`;
1409
1187
  }
1410
- /** One tab stop PER SERIES: each line is a strand the reader walks with the arrows, and the
1411
- * strands are what the chart is comparing. WCAG 2.1.1's Understanding is explicit that not
1412
- * every mouse-operable control has to be separately focusable, which is what keeps a
1413
- * 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. */
1414
1189
  rovingBySeries = signal(new Map(), ...(ngDevMode ? [{ debugName: "rovingBySeries" }] : /* istanbul ignore next */ []));
1415
1190
  firstMarkerBySeries = computed(() => new Map(this.plotted().map((entry) => [
1416
1191
  entry.series.id,
@@ -1420,12 +1195,9 @@ class LineSeriesComponent {
1420
1195
  return ((this.rovingBySeries().get(seriesId) ??
1421
1196
  this.firstMarkerBySeries().get(seriesId)) === markIndex);
1422
1197
  }
1423
- /** The series a marker holds focus on, which narrows an `'axis'` panel to that one reading: a
1424
- * 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. */
1425
1199
  focusedSeries = signal(null, ...(ngDevMode ? [{ debugName: "focusedSeries" }] : /* istanbul ignore next */ []));
1426
- /** A reading is active when its own marker is hovered OR when the category cursor is on its
1427
- * category: one band, one answer, so the dot grows wherever in the band the pointer is rather
1428
- * 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. */
1429
1201
  isActiveMarker(marker) {
1430
1202
  return (marker.markIndex === this.activeMark.index() ||
1431
1203
  marker.categoryIndex === this.scales.activeIndex());
@@ -1433,7 +1205,6 @@ class LineSeriesComponent {
1433
1205
  pinnedMarker = computed(() => this.activeMark.pinned()
1434
1206
  ? (this.allMarkers()[this.activeMark.index()] ?? null)
1435
1207
  : null, ...(ngDevMode ? [{ debugName: "pinnedMarker" }] : /* istanbul ignore next */ []));
1436
- // Above the reading, clear of the marker drawn on it.
1437
1208
  pinLift = CHART_PIN_RADIUS + CHART_PIN_GAP + PIN_MARKER_CLEARANCE;
1438
1209
  onMarkerOver(event) {
1439
1210
  const hit = markOf(event);
@@ -1483,8 +1254,6 @@ class LineSeriesComponent {
1483
1254
  }
1484
1255
  isDimmed(seriesId) {
1485
1256
  const highlighted = this.highlighted();
1486
- // Not gated on `dimOthers`: that input governs what a POINTER over a mark does, and naming a
1487
- // series in the legend is the reader asking for this one directly.
1488
1257
  return highlighted !== null && highlighted !== seriesId;
1489
1258
  }
1490
1259
  onMarkerClick(event) {
@@ -1511,9 +1280,7 @@ class LineSeriesComponent {
1511
1280
  markerLabel(marker) {
1512
1281
  return `${marker.seriesLabel}, ${marker.category}, ${marker.formattedValue}`;
1513
1282
  }
1514
- /** What this series reads at the category the cursor is on, whatever `tooltip` says. It feeds
1515
- * the container's category panel, so one band answers for every mark on the plot rather than
1516
- * 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. */
1517
1284
  axisEntries = computed(() => this.readingsAtCursor().map(({ reading }) => reading), ...(ngDevMode ? [{ debugName: "axisEntries" }] : /* istanbul ignore next */ []));
1518
1285
  readingsAtCursor = computed(() => {
1519
1286
  const categoryIndex = this.scales.activeIndex();
@@ -1562,9 +1329,7 @@ class LineSeriesComponent {
1562
1329
  };
1563
1330
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
1564
1331
  markerElements = viewChildren('markerEl', ...(ngDevMode ? [{ debugName: "markerElements" }] : /* istanbul ignore next */ []));
1565
- /** The topmost reading at the active category, as its own element. The cursor band spans the
1566
- * whole plot, so anchoring an `'axis'` panel to it opens the panel at the top of the chart
1567
- * 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. */
1568
1333
  topReadingElement = computed(() => {
1569
1334
  const categoryIndex = this.scales.activeIndex();
1570
1335
  if (categoryIndex < 0) {
@@ -1577,8 +1342,6 @@ class LineSeriesComponent {
1577
1342
  ? (this.markerElements()[highest.markIndex]?.nativeElement ?? null)
1578
1343
  : null;
1579
1344
  }, ...(ngDevMode ? [{ debugName: "topReadingElement" }] : /* istanbul ignore next */ []));
1580
- /** Where the panel hangs: the reading or the pointer in `'axis'` mode, the hovered mark
1581
- * otherwise. */
1582
1345
  tooltipOrigin = computed(() => {
1583
1346
  if (this.tooltip() !== 'axis') {
1584
1347
  return this.activeMark.origin();
@@ -1588,9 +1351,7 @@ class LineSeriesComponent {
1588
1351
  }
1589
1352
  return this.topReadingElement() ?? this.scales.cursorOrigin();
1590
1353
  }, ...(ngDevMode ? [{ debugName: "tooltipOrigin" }] : /* istanbul ignore next */ []));
1591
- /** Every series' reading at the category the CONTAINER says is active, which is what the
1592
- * category cursor sets. A series with no reading there contributes no row rather than a
1593
- * blank one. */
1354
+ /** Every series' reading at the active category; a series with none contributes no row. */
1594
1355
  axisTooltipContext = computed(() => {
1595
1356
  const categoryIndex = this.scales.activeIndex();
1596
1357
  if (categoryIndex < 0) {
@@ -1609,56 +1370,48 @@ class LineSeriesComponent {
1609
1370
  };
1610
1371
  }, ...(ngDevMode ? [{ debugName: "axisTooltipContext" }] : /* istanbul ignore next */ []));
1611
1372
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1612
- 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 });
1613
1374
  }
1614
1375
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, decorators: [{
1615
1376
  type: Component,
1616
- 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"] }]
1617
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 }] }] } });
1618
1379
 
1619
1380
  /**
1620
1381
  * The names of a chart's reference lines, laid out by the same geometry that draws them.
1621
1382
  *
1622
- * A second element rather than part of `g[dsReferenceLine]`: the strokes belong under the marks
1623
- * and the names over them, and a projected element lands in exactly one of the container's slots.
1624
- * 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.
1625
1385
  */
1626
1386
  class ReferenceLabelComponent {
1627
1387
  scales = inject(CHART_SCALES);
1628
- /** The same list `dsReferenceLine` is given. This mark draws only the labels, so it is placed
1629
- * AFTER the series and the line mark before it, which is what keeps a label legible over a mark
1630
- * that would otherwise cover it. */
1388
+ /** The same list `dsReferenceLine` is given. Place this mark after the series so labels stay legible over marks. */
1631
1389
  thresholds = input([], ...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
1632
1390
  lines = computed(() => thresholdMarks(this.thresholds(), this.scales.plot(), this.scales.yPosition()).filter((mark) => mark.label !== ''), ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
1633
1391
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1634
- 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 });
1635
1393
  }
1636
1394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLabelComponent, decorators: [{
1637
1395
  type: Component,
1638
- 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"] }]
1639
1397
  }], propDecorators: { thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }] } });
1640
1398
 
1641
1399
  let nextReferenceId = 0;
1642
1400
  /**
1643
1401
  * Reference lines and bands across the plot, drawn against the scales `ds-chart` supplies.
1644
1402
  *
1645
- * Strokes only: the LABELS are a second element, `g[dsReferenceLabel]`, because the two belong in
1646
- * different layers of the canvas - a line reads as furniture under the marks, a label has to stay
1647
- * 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.
1648
1404
  *
1649
- * Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
1650
- * 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>`.
1651
1407
  */
1652
1408
  class ReferenceLineComponent {
1653
1409
  scales = inject(CHART_SCALES);
1654
- /** The lines and bands to draw across the plot. Each entry is ONE reading, `value`, plus an
1655
- * optional `label`, `color` and `dash`; a `to` makes it a band between two readings. Each one
1656
- * 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. */
1657
1411
  thresholds = input([], ...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
1658
1412
  domainId = `reference-line-${nextReferenceId++}`;
1659
1413
  constructor() {
1660
- // Reported like a series: a target above every reading is the one the reader most needs to
1661
- // 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.
1662
1415
  effect(() => this.scales.reportDomain(this.domainId, this.thresholds().flatMap((threshold) => threshold.to == null
1663
1416
  ? [threshold.value]
1664
1417
  : [threshold.value, threshold.to])));
@@ -1676,12 +1429,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
1676
1429
  }], ctorParameters: () => [], propDecorators: { thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }] } });
1677
1430
 
1678
1431
  /**
1679
- * A tooltip answers "what is this?" on hover; an annotation answers it in a printed page or a
1680
- * screenshot.
1681
- *
1682
- * Takes the readings rather than finding them: a mark never sees the other marks, so the caller
1683
- * that owns the series is the one that knows which value a label belongs to. Reports no domain -
1684
- * 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.
1685
1435
  */
1686
1436
  class SeriesAnnotationComponent {
1687
1437
  scales = inject(CHART_SCALES);
@@ -1699,11 +1449,11 @@ class SeriesAnnotationComponent {
1699
1449
  })), plot.left + plot.width);
1700
1450
  }, ...(ngDevMode ? [{ debugName: "placed" }] : /* istanbul ignore next */ []));
1701
1451
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SeriesAnnotationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1702
- 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 });
1703
1453
  }
1704
1454
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SeriesAnnotationComponent, decorators: [{
1705
1455
  type: Component,
1706
- 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"] }]
1707
1457
  }], propDecorators: { annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }] } });
1708
1458
 
1709
1459
  /**