@ids-group-ltd/ids-design-system 0.14.0 → 0.14.2

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 (244) hide show
  1. package/CHANGELOG.md +573 -4
  2. package/components.md +103 -62
  3. package/design-system.md +2 -0
  4. package/docs/agent/INDEX.md +5 -4
  5. package/docs/agent/charts/column-series-component.md +1 -1
  6. package/docs/agent/charts/ds-bar-chart.md +4 -3
  7. package/docs/agent/charts/ds-chart.md +1 -1
  8. package/docs/agent/charts/ds-column-chart.md +3 -3
  9. package/docs/agent/charts/ds-config.md +3 -1
  10. package/docs/agent/charts/ds-funnel-chart.md +3 -3
  11. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  12. package/docs/agent/charts/ds-line-chart.md +3 -3
  13. package/docs/agent/charts/ds-pie-chart.md +5 -4
  14. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  15. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  16. package/docs/agent/charts/line-series-component.md +1 -1
  17. package/docs/agent/feedback/ds-alert.md +1 -0
  18. package/docs/agent/feedback/ds-badge.md +1 -1
  19. package/docs/agent/feedback/ds-banner.md +1 -0
  20. package/docs/agent/feedback/ds-description-list.md +3 -0
  21. package/docs/agent/feedback/ds-skeleton.md +2 -2
  22. package/docs/agent/feedback/ds-tag.md +1 -1
  23. package/docs/agent/forms/ds-autocomplete.md +2 -2
  24. package/docs/agent/forms/ds-button.md +1 -1
  25. package/docs/agent/forms/ds-color-picker.md +1 -1
  26. package/docs/agent/forms/ds-date-picker.md +2 -2
  27. package/docs/agent/forms/ds-filter-bar.md +1 -1
  28. package/docs/agent/forms/ds-icon-button.md +1 -1
  29. package/docs/agent/forms/ds-input.md +1 -1
  30. package/docs/agent/forms/ds-multi-select.md +2 -2
  31. package/docs/agent/forms/ds-otp-input.md +1 -1
  32. package/docs/agent/forms/ds-search.md +2 -2
  33. package/docs/agent/forms/ds-split-button.md +1 -1
  34. package/docs/agent/forms/ds-textarea.md +2 -2
  35. package/docs/agent/foundations/tokens.md +1 -1
  36. package/docs/agent/navigation/ds-app-layout.md +2 -2
  37. package/docs/agent/navigation/ds-auth-layout.md +4 -4
  38. package/docs/agent/navigation/ds-page-header.md +1 -1
  39. package/docs/agent/navigation/ds-pagination.md +1 -1
  40. package/docs/agent/navigation/ds-tabs.md +1 -0
  41. package/docs/agent/overlays/ds-tooltip.md +3 -3
  42. package/docs/agent/platform/ds-config.md +2 -3
  43. package/docs/agent/platform/ds-intl.md +33 -0
  44. package/docs/agent/surfaces/ds-accordion.md +2 -2
  45. package/docs/agent/tables/ds-table.md +3 -3
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +21 -10
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +15 -8
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +21 -10
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +53 -30
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +20 -6
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +198 -44
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +248 -142
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -25
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +16 -9
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +5 -3
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +13 -7
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +64 -43
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +56 -12
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +32 -29
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +17 -10
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -4
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +13 -7
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +15 -8
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +62 -25
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +49 -12
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +6 -3
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +20 -6
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +48 -22
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +68 -6
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +63 -10
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -10
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +78 -6
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +36 -21
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +355 -81
  165. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +362 -3
  167. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  170. package/migrations/0.10.0.json +1 -1
  171. package/migrations/0.10.1.json +1 -1
  172. package/migrations/0.14.0.json +28 -4
  173. package/migrations/0.14.1.json +856 -0
  174. package/migrations/0.14.2.json +427 -0
  175. package/package.json +1 -1
  176. package/schematics/check-overrides/index.cjs +56 -0
  177. package/schematics/check-overrides/scan.cjs +74 -0
  178. package/schematics/check-overrides/schema.json +19 -0
  179. package/schematics/check-overrides/surface.json +2333 -0
  180. package/schematics/collection.json +5 -0
  181. package/styles/_chart-frame.scss +34 -12
  182. package/styles/_chart-interactive.scss +43 -9
  183. package/styles/_chart-motion.scss +139 -16
  184. package/styles/_field-box.scss +12 -0
  185. package/styles/_overlay-motion.scss +12 -4
  186. package/styles/_tokens-charts.scss +1 -1
  187. package/styles/_tokens.scss +19 -4
  188. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
  189. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
  190. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
  191. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
  192. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
  193. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
  194. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
  195. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
  196. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
  197. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +41 -19
  198. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
  199. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  200. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
  201. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +8 -1
  202. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +34 -6
  203. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +189 -121
  204. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
  205. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +17 -17
  206. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
  207. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -1
  208. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
  209. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
  210. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
  211. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +34 -20
  212. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +36 -7
  213. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  214. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +21 -18
  215. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
  216. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
  217. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
  218. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
  219. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -2
  220. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
  221. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +41 -17
  222. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +28 -7
  223. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
  224. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
  225. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
  226. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
  227. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
  228. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  229. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
  230. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
  231. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
  232. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
  233. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +15 -6
  234. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +15 -2
  235. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
  236. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +24 -4
  237. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
  238. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
  239. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
  240. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
  241. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +18 -7
  242. package/types/ids-group-ltd-ids-design-system-components.d.ts +75 -25
  243. package/types/ids-group-ltd-ids-design-system-core.d.ts +421 -11
  244. package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
@@ -1,11 +1,10 @@
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, viewChildren } from '@angular/core';
3
- import { domainMinOf, niceDomain, linearScale, tickValues, roundStepAtLeast, resolveChartDefaults, elementWidth, bandScale, rotationWouldFit, labelInterval, leaveMark, defaultChartFormat, 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, booleanAttribute, inject, ElementRef, NgZone, PLATFORM_ID, computed, signal, effect, afterRenderEffect, viewChild, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, Component, output, untracked, viewChildren } from '@angular/core';
3
+ import { domainMinOf, niceDomain, linearScale, tickValues, roundStepAtLeast, chartRenderGate, resolveChartDefaults, elementWidth, bandScale, rotationWouldFit, labelInterval, leaveMark, chartValueFormat, listenForMarkFocus, CHART_SERIES_COLORS, staggerDelay, markOf, rovingMarks, describeShare, lineSegments, linePath, areaPath, bandPath, nextRovingIndex, focusMark } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { isPlatformBrowser } from '@angular/common';
5
5
  import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
6
- import { chartActiveMark, ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
- import { DomSanitizer } from '@angular/platform-browser';
8
- import { ICONS } from '@ids-group-ltd/ids-design-system/core';
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';
9
8
 
10
9
  const CHART_DEFAULT_TICK_COUNT = 5;
11
10
  const CHART_AXIS_LABEL_GAP = 8;
@@ -299,10 +298,18 @@ function categoryAt(x, plotLeft, plotWidth, categoryCount) {
299
298
  const band = plotWidth / categoryCount;
300
299
  return Math.min(categoryCount - 1, Math.floor(offset / band));
301
300
  }
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. */
303
+ function topDown(entries) {
304
+ return [...entries]
305
+ .sort((above, below) => (above.y ?? Infinity) - (below.y ?? Infinity) || 0)
306
+ .map(({ y: _drawnAt, ...reading }) => reading);
307
+ }
302
308
 
303
309
  const CHART_SCALES = new InjectionToken('CHART_SCALES');
304
310
 
305
311
  class ChartComponent {
312
+ renderReady = chartRenderGate();
306
313
  /** The category axis. Every projected mark is positioned against this list, so its length is
307
314
  * what decides how many bands the plot has. */
308
315
  categories = input([], ...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
@@ -316,14 +323,17 @@ class ChartComponent {
316
323
  * only comparable when both are pinned. */
317
324
  max = input(null, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
318
325
  /** Draws a band and a crosshair down the category under the pointer, and reports that category
319
- * to every mark through `activeIndex`. `'none'`, the default, leaves the plot alone: a chart
320
- * whose marks are the hover targets already answers per mark, and two affordances on one plot
321
- * read as two different questions. */
322
- cursor = input('none', ...(ngDevMode ? [{ debugName: "cursor" }] : /* istanbul ignore next */ []));
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. */
331
+ cursor = input('auto', ...(ngDevMode ? [{ debugName: "cursor" }] : /* istanbul ignore next */ []));
323
332
  /** Whether a press holds the category cursor where it is, so the reader can look away from the
324
333
  * plot with the comparison still on screen. Released by pressing it again, by Escape, or by a
325
- * press outside the plot. */
326
- cursorPin = input(false, { ...(ngDevMode ? { debugName: "cursorPin" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
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);
327
337
  /** Milliseconds the cursor survives the pointer leaving the plot. The tooltip panel is portaled
328
338
  * out of the plot, so without a grace period it closes before the pointer can reach it. */
329
339
  tooltipLingerMs = input(null, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
@@ -361,17 +371,16 @@ class ChartComponent {
361
371
  * resize when the data lands. */
362
372
  loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
363
373
  /** Shown in place of the plot when `categories` is empty. Unset falls back to
364
- * `DS_CONFIG.chart.emptyText`, then `'No data'`. */
374
+ * `DS_INTL.chart.empty`. */
365
375
  emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
366
376
  /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty
367
377
  * `categories`, because "the request failed" and "there is nothing to show" read the same to a
368
378
  * reader and mean opposite things. */
369
379
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
370
- /** The message the error state prints. Unset falls back to `DS_CONFIG.chart.errorText`, then
371
- * `'Could not load the data'`. */
380
+ /** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
372
381
  errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
373
- /** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the
374
- * browser's locale grouping with a K/M/B suffix past four digits. */
382
+ /** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
383
+ * `DS_CONFIG.locale` / `LOCALE_ID`. */
375
384
  valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
376
385
  /** How the second value axis relates to the first, once a mark has reported against it. The
377
386
  * same four words `ds-line-chart` takes. */
@@ -390,10 +399,12 @@ class ChartComponent {
390
399
  /** `axisLabel` for the second axis. */
391
400
  secondaryAxisLabel = input(null, ...(ngDevMode ? [{ debugName: "secondaryAxisLabel" }] : /* istanbul ignore next */ []));
392
401
  defaults = resolveChartDefaults(this);
402
+ intl = inject(DS_INTL);
393
403
  frameResolved = this.defaults.frame;
394
404
  emptyTextResolved = this.defaults.emptyText;
395
405
  errorTextResolved = this.defaults.errorText;
396
406
  valueFormatResolved = this.defaults.valueFormat;
407
+ hoverDelayMs = this.defaults.hoverDelayMs;
397
408
  host = inject(ElementRef);
398
409
  zone = inject(NgZone);
399
410
  isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
@@ -436,7 +447,7 @@ class ChartComponent {
436
447
  });
437
448
  effect((onCleanup) => {
438
449
  const canvas = this.canvasElement()?.nativeElement;
439
- if (canvas && this.cursor() === 'category') {
450
+ if (canvas && this.cursorResolved() === 'category') {
440
451
  onCleanup(this.listenForCursor(canvas));
441
452
  }
442
453
  });
@@ -551,36 +562,65 @@ class ChartComponent {
551
562
  return next;
552
563
  });
553
564
  }
565
+ /** Two or more marks that show a tooltip: the plot reads as one comparison, so its panel is about
566
+ * the category rather than about whichever mark the pointer happens to be over. */
567
+ composed = computed(() => [...this.tooltipSources().values()].filter((source) => source.offersTooltip?.() ?? true).length > 1, ...(ngDevMode ? [{ debugName: "composed" }] : /* istanbul ignore next */ []));
568
+ cursorResolved = computed(() => {
569
+ const cursor = this.cursor();
570
+ if (cursor !== 'auto') {
571
+ return cursor;
572
+ }
573
+ return this.composed() ? 'category' : 'none';
574
+ }, ...(ngDevMode ? [{ debugName: "cursorResolved" }] : /* istanbul ignore next */ []));
575
+ cursorOn = computed(() => this.cursorResolved() === 'category', ...(ngDevMode ? [{ debugName: "cursorOn" }] : /* istanbul ignore next */ []));
554
576
  /** The offer to show, if any mark is making one. At most one mark has a context at a time: a
555
577
  * per-mark tooltip only fills it while that mark is hovered, and an axis tooltip only while the
556
578
  * category cursor is on. The container opening the panel is what stops two marks opening two. */
557
579
  activeTooltip = computed(() => [...this.tooltipSources().values()].find((source) => source.context() !== null) ?? null, ...(ngDevMode ? [{ debugName: "activeTooltip" }] : /* istanbul ignore next */ []));
558
580
  tooltipContext = computed(() => {
559
581
  const base = this.activeTooltip()?.context() ?? null;
560
- if (base === null || this.cursor() !== 'category') {
582
+ const categoryIndex = this.activeIndex();
583
+ if (this.cursorResolved() !== 'category' || categoryIndex < 0) {
584
+ return base;
585
+ }
586
+ const readings = [...this.tooltipSources().values()].flatMap((source) => source.axisEntries?.() ?? []);
587
+ if (base === null) {
588
+ return readings.length === 0
589
+ ? null
590
+ : {
591
+ category: this.categories()[categoryIndex] ?? '',
592
+ entries: topDown(readings),
593
+ };
594
+ }
595
+ // A mark offers its own panel under the cursor only from focus or an axis tooltip, and that
596
+ // panel is about the category, so every other mark's reading belongs in it too. Matched by
597
+ // label: the mark that offered it keeps its own row, detail included, at its drawn height.
598
+ const named = new Map(base.entries.map((entry) => [entry.label, entry]));
599
+ if (readings.every((reading) => named.has(reading.label))) {
561
600
  return base;
562
601
  }
563
- // A category panel is about the category, not about the mark that happened to open it, so
564
- // every other mark's reading at the same category belongs in it. Matched by label, because a
565
- // mark that already named itself must not be listed twice.
566
- const named = new Set(base.entries.map((entry) => entry.label));
567
- const rest = [...this.tooltipSources().values()]
568
- .flatMap((source) => source.axisEntries?.() ?? [])
569
- .filter((entry) => !named.has(entry.label));
570
- return rest.length === 0
571
- ? base
572
- : { ...base, entries: [...base.entries, ...rest] };
602
+ const drawn = new Set(readings.map((reading) => reading.label));
603
+ return {
604
+ ...base,
605
+ entries: [
606
+ ...base.entries.filter((entry) => !drawn.has(entry.label)),
607
+ ...topDown(readings).map((reading) => named.get(reading.label) ?? reading),
608
+ ],
609
+ };
573
610
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
574
611
  tooltipOrigin = computed(() => {
575
612
  const own = this.activeTooltip()?.origin() ?? null;
576
- if (this.cursor() !== 'category') {
613
+ // A point rather than an element is a panel that follows the pointer, and stays with it.
614
+ if (this.cursorResolved() !== 'category' ||
615
+ (own !== null && !(own instanceof Element))) {
577
616
  return own;
578
617
  }
579
618
  // A category panel belongs over the TALLEST reading at that category, not over whichever mark
580
619
  // happened to open it: a line that dips under a column would otherwise put the panel low and
581
- // let the column stand over it.
620
+ // let the column stand over it. Every mark's reading counts whether or not the pointer is on
621
+ // it, or the panel jumps between the two as the pointer crosses the column's edge.
582
622
  const boxes = [...this.tooltipSources().values()]
583
- .map((source) => source.origin())
623
+ .map((source) => (source.axisOrigin ?? source.origin)())
584
624
  .filter((origin) => origin instanceof Element)
585
625
  .map((element) => ({ element, top: element.getBoundingClientRect().top }))
586
626
  .filter(({ element }) => {
@@ -588,10 +628,10 @@ class ChartComponent {
588
628
  return box.width > 0 && box.height > 0;
589
629
  });
590
630
  return boxes.length === 0
591
- ? own
631
+ ? (own ?? this.cursorOrigin())
592
632
  : boxes.reduce((highest, candidate) => candidate.top < highest.top ? candidate : highest).element;
593
633
  }, ...(ngDevMode ? [{ debugName: "tooltipOrigin" }] : /* istanbul ignore next */ []));
594
- tooltipPreferBelow = computed(() => (this.activeTooltip()?.preferBelow?.() ?? false) || this.cursorPinned(), ...(ngDevMode ? [{ debugName: "tooltipPreferBelow" }] : /* istanbul ignore next */ []));
634
+ tooltipPinned = computed(() => (this.activeTooltip()?.pinned?.() ?? false) || this.cursorPinned(), ...(ngDevMode ? [{ debugName: "tooltipPinned" }] : /* istanbul ignore next */ []));
595
635
  /** Compared by value, which is what stops a mark that reports AND reads `yPosition()` in one
596
636
  * effect from running forever: every report allocates a fresh `Map` and `niceDomain` a fresh
597
637
  * object, so identity always differs and the read would re-arm the write. Measured without it:
@@ -653,7 +693,7 @@ class ChartComponent {
653
693
  zeroOffset = computed(() => this.yPosition()(0), ...(ngDevMode ? [{ debugName: "zeroOffset" }] : /* istanbul ignore next */ []));
654
694
  cursorBand = computed(() => {
655
695
  const index = this.activeIndex();
656
- if (this.cursor() !== 'category' || index < 0) {
696
+ if (this.cursorResolved() !== 'category' || index < 0) {
657
697
  return null;
658
698
  }
659
699
  const width = this.bandWidth();
@@ -668,9 +708,16 @@ class ChartComponent {
668
708
  /** The same state machine the element marks run on: pin, linger, the grace period that lets the
669
709
  * pointer reach a portaled panel, Escape and press-outside. A category cursor differs from a
670
710
  * mark only in what the index counts, so it takes the behaviour rather than restating it. */
671
- cursorState = chartActiveMark(() => this.defaults.tooltipLingerMs());
711
+ cursorState = chartActiveMark(() => this.defaults.tooltipLingerMs(), () => this.hoverDelayMs());
672
712
  activeIndex = this.cursorState.index;
673
713
  pointerAt = signal(null, ...(ngDevMode ? [{ debugName: "pointerAt" }] : /* istanbul ignore next */ []));
714
+ // Set at once, not after the hover delay: the pointer cursor says what a press would do there.
715
+ pointerInBand = signal(false, ...(ngDevMode ? [{ debugName: "pointerInBand" }] : /* istanbul ignore next */ []));
716
+ // At the band's foot: its head is where the panel opens, over the tallest reading.
717
+ bandPinY(band) {
718
+ return band.bottom - CHART_PIN_RADIUS - CHART_PIN_GAP;
719
+ }
720
+ bandPins = computed(() => this.cursorPinResolved() && this.pointerInBand(), ...(ngDevMode ? [{ debugName: "bandPins" }] : /* istanbul ignore next */ []));
674
721
  cursorPointer = computed(() => this.activeIndex() < 0 ? null : this.pointerAt(), ...(ngDevMode ? [{ debugName: "cursorPointer" }] : /* istanbul ignore next */ []));
675
722
  /** Whether the cursor is held. A preset renders its own way out of the pin from this. */
676
723
  cursorPinned = this.cursorState.pinned;
@@ -688,9 +735,25 @@ class ChartComponent {
688
735
  // it means anything to a plot measured in view units.
689
736
  const viewX = ((event.clientX - this.canvasRect.left) / this.canvasRect.width) *
690
737
  this.viewWidth();
691
- const index = this.clampIndex(categoryAt(viewX, plot.left, plot.width, this.categories().length));
738
+ const category = this.clampIndex(categoryAt(viewX, plot.left, plot.width, this.categories().length));
739
+ // Only the drawn band answers, so the gap between two categories is empty ground rather than a
740
+ // strip that belongs to one of them.
741
+ const index = category >= 0 &&
742
+ Math.abs(viewX - this.xPosition()(category)) <= this.bandWidth() / 2
743
+ ? category
744
+ : -1;
692
745
  this.pointerAt.set({ x: event.clientX, y: event.clientY });
693
- if (event.type === 'pointerdown' && this.cursorPin()) {
746
+ this.pointerInBand.set(index >= 0);
747
+ if (index < 0) {
748
+ if (event.type === 'pointerdown' && this.cursorPinned()) {
749
+ this.cursorState.release();
750
+ }
751
+ else {
752
+ this.cursorState.leave();
753
+ }
754
+ return;
755
+ }
756
+ if (event.type === 'pointerdown' && this.cursorPinResolved()) {
694
757
  this.cursorState.pin(index, event);
695
758
  return;
696
759
  }
@@ -710,6 +773,7 @@ class ChartComponent {
710
773
  const onLeave = () => {
711
774
  window.removeEventListener('scroll', forgetRect, { capture: true });
712
775
  forgetRect();
776
+ this.pointerInBand.set(false);
713
777
  this.cursorState.leave();
714
778
  };
715
779
  this.zone.runOutsideAngular(() => {
@@ -765,6 +829,17 @@ class ChartComponent {
765
829
  * them a reading. Both are decided from the widest label as it actually rendered. */
766
830
  categoryLabelsRotated = computed(() => rotationWouldFit([this.measuredCategoryLabelWidth()], this.plot().width / Math.max(1, this.categories().length)), ...(ngDevMode ? [{ debugName: "categoryLabelsRotated" }] : /* istanbul ignore next */ []));
767
831
  categoryLabelInterval = computed(() => labelInterval([this.measuredCategoryLabelWidth()], this.plot().width / Math.max(1, this.categories().length), this.categoryLabelsRotated()), ...(ngDevMode ? [{ debugName: "categoryLabelInterval" }] : /* istanbul ignore next */ []));
832
+ labelHovered = signal(null, ...(ngDevMode ? [{ debugName: "labelHovered" }] : /* istanbul ignore next */ []));
833
+ categoryLabelHover = this.labelHovered.asReadonly();
834
+ // Under the category cursor a label is already inside its band's hover area.
835
+ onCategoryLabelEnter(index, event) {
836
+ if (!this.cursorOn()) {
837
+ this.labelHovered.set({ index, event });
838
+ }
839
+ }
840
+ onCategoryLabelLeave() {
841
+ this.labelHovered.set(null);
842
+ }
768
843
  categoryLabels = computed(() => {
769
844
  const toX = this.xPosition();
770
845
  const interval = this.categoryLabelInterval();
@@ -779,18 +854,18 @@ class ChartComponent {
779
854
  * projected INTO the branch that this decides, so a container that waited for a report before
780
855
  * rendering them would never receive one. */
781
856
  isEmpty = computed(() => this.categories().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
782
- accessibleName = computed(() => this.summary() ?? this.caption() ?? 'Chart', ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
857
+ accessibleName = computed(() => this.summary() ?? this.caption() ?? this.intl().chart.title, ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
783
858
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
784
859
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartComponent, isStandalone: true, selector: "ds-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, cursor: { classPropertyName: "cursor", publicName: "cursor", isSignal: true, isRequired: false, transformFunction: null }, cursorPin: { classPropertyName: "cursorPin", publicName: "cursorPin", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", isSignal: true, isRequired: false, transformFunction: null }, plotHeight: { classPropertyName: "plotHeight", publicName: "plotHeight", isSignal: true, isRequired: false, transformFunction: null }, axisGutter: { classPropertyName: "axisGutter", publicName: "axisGutter", isSignal: true, isRequired: false, transformFunction: null }, valueSpace: { classPropertyName: "valueSpace", publicName: "valueSpace", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisMode: { classPropertyName: "secondaryAxisMode", publicName: "secondaryAxisMode", isSignal: true, isRequired: false, transformFunction: null }, axisColor: { classPropertyName: "axisColor", publicName: "axisColor", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisColor: { classPropertyName: "secondaryAxisColor", publicName: "secondaryAxisColor", isSignal: true, isRequired: false, transformFunction: null }, axisLabel: { classPropertyName: "axisLabel", publicName: "axisLabel", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisLabel: { classPropertyName: "secondaryAxisLabel", publicName: "secondaryAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltipTemplate: { classPropertyName: "tooltipTemplate", publicName: "tooltipTemplate", isSignal: true, isRequired: false, transformFunction: null }, tooltipExtraGap: { classPropertyName: "tooltipExtraGap", publicName: "tooltipExtraGap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "class.measuring": "!settled()", "style.--_chart-view-height": "viewHeight() + 'px'" } }, providers: [
785
860
  {
786
861
  provide: CHART_SCALES,
787
862
  useExisting: forwardRef(() => ChartComponent),
788
863
  },
789
- ], 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()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_chart-view-height)\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPreferBelow]=\"tooltipPreferBelow()\"\n [dsChartTooltipPinned]=\"tooltipPreferBelow()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\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 {{ 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 </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%}: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"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPreferBelow", "dsChartTooltipPinned"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
864
+ ], viewQueries: [{ propertyName: "canvasElement", first: true, predicate: ["canvasEl"], descendants: true, isSignal: true }, { propertyName: "bandElement", first: true, predicate: ["cursorBandEl"], descendants: true, isSignal: true }], exportAs: ["dsChart"], ngImport: i0, template: "<figure class=\"chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_chart-view-height)\"\n [shimmer]=\"loading()\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPinned]=\"tooltipPinned()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [class.pins]=\"bandPins()\"\n [style.block-size.px]=\"viewHeight()\"\n [attr.viewBox]=\"viewBox()\">\n @if (cursorBand(); as band) {\n <g\n class=\"cursor\"\n aria-hidden=\"true\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\">\n <rect\n #cursorBandEl\n class=\"category-band\"\n [attr.x]=\"band.x\"\n [attr.y]=\"band.top\"\n [attr.width]=\"band.width\"\n [attr.height]=\"band.bottom - band.top\" />\n\n <line\n class=\"cursor-line\"\n [attr.x1]=\"band.x + band.width / 2\"\n [attr.x2]=\"band.x + band.width / 2\"\n [attr.y1]=\"band.top\"\n [attr.y2]=\"band.bottom\" />\n </g>\n }\n\n <!-- Hidden as a group rather than on the svg: a projected mark may be focusable, and an\n aria-hidden ancestor would leave it reachable by Tab and invisible to a reader. -->\n <g\n class=\"axes\"\n aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"plotBottom()\"\n [attr.y2]=\"plotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"plot().top\"\n [attr.y2]=\"plotBottom()\" />\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track tick.value) {\n <line\n class=\"grid-line is-secondary\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n }\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryPlotBottom()\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"secondaryPlot().top\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n }\n\n @if (reachesBelowZero()) {\n <line\n class=\"zero-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"zeroOffset()\"\n [attr.y2]=\"zeroOffset()\" />\n }\n </g>\n\n <!-- Two slots, one group: a reference line has to paint UNDER the marks whatever order the\n consumer wrote it in, and a selected slot is what decides that instead of the author.\n Both stay inside `.marks`, which is what the boot transition guard is keyed on. -->\n <g class=\"marks\">\n <ng-content select=\"[dsReferenceLine]\" />\n\n <ng-content />\n </g>\n\n <g\n class=\"labels\"\n aria-hidden=\"true\">\n @if (axisLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"axisLabelFill()\"\n [attr.transform]=\"\n 'rotate(-90 ' +\n axisTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"axisTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ axisLabel() }}\n </text>\n }\n\n @if (secondaryAxisLabel() && hasSecondaryAxis()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.transform]=\"\n 'rotate(90 ' +\n secondaryTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"secondaryTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ secondaryAxisLabel() }}\n </text>\n }\n\n @for (tick of ticks(); track tick.value) {\n <text\n class=\"axis-label is-primary\"\n text-anchor=\"end\"\n [style.fill]=\"axisLabelFill()\"\n [attr.x]=\"axisLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track tick.value) {\n <text\n class=\"axis-label is-secondary\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track label.index) {\n <text\n class=\"category-label\"\n [class.is-rotated]=\"categoryLabelsRotated()\"\n [attr.text-anchor]=\"categoryLabelsRotated() ? 'end' : 'middle'\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\"\n [attr.transform]=\"\n categoryLabelsRotated()\n ? 'rotate(-45 ' + label.x + ' ' + categoryLabelY() + ')'\n : null\n \"\n (pointerenter)=\"onCategoryLabelEnter(label.index, $event)\"\n (pointerleave)=\"onCategoryLabelLeave()\">\n {{ label.text }}\n </text>\n }\n\n <!-- Over the marks, where `.marks` is under them: an annotation's LINE is furniture and\n belongs below the readings, its NAME has to survive a column drawn through it. -->\n <ng-content select=\"[dsReferenceLabel], [dsSeriesAnnotation]\" />\n </g>\n\n @if (cursorPinned() && cursorBand(); as band) {\n <g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n (band.x + band.width / 2) +\n ',' +\n bandPinY(band) +\n ')'\n \">\n </g>\n }\n </svg>\n </div>\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.chart{--_chart-grid-line-color: var(--ds-chart-grid-line-color, var(--chart-grid-line-color));--_chart-axis-line-color: var(--ds-chart-axis-line-color, var(--chart-axis-line-color));--_chart-axis-label-color: var(--ds-chart-axis-label-color, var(--chart-axis-label-color));--_chart-axis-font-size: var(--ds-chart-axis-font-size, var(--chart-axis-font-size));margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%}.canvas.pins{cursor:pointer}:host(.measuring) .marks ::ng-deep *{transition-duration:0ms!important}.grid-line{stroke:var(--_chart-grid-line-color);stroke-width:1}.axis-line,.zero-line{stroke:var(--_chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size)}.category-label.is-rotated{dominant-baseline:middle}.axis-title{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size);font-weight:var(--font-weight-bold)}.axis-label{dominant-baseline:middle}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--ds-chart-hover-bg-color)}.cursor-line{stroke:var(--ds-chart-cursor-line-color);stroke-width:1}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
790
865
  }
791
866
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartComponent, decorators: [{
792
867
  type: Component,
793
- args: [{ selector: 'ds-chart', standalone: true, exportAs: 'dsChart', imports: [SkeletonComponent, ChartTooltipDirective], host: {
868
+ args: [{ selector: 'ds-chart', standalone: true, exportAs: 'dsChart', imports: [SkeletonComponent, ChartTooltipDirective, ChartPinMarkerComponent], host: {
794
869
  '[class.framed]': "frameResolved() === 'auto'",
795
870
  '[class.measuring]': '!settled()',
796
871
  '[style.--_chart-view-height]': "viewHeight() + 'px'",
@@ -799,15 +874,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
799
874
  provide: CHART_SCALES,
800
875
  useExisting: forwardRef(() => ChartComponent),
801
876
  },
802
- ], 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()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_chart-view-height)\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPreferBelow]=\"tooltipPreferBelow()\"\n [dsChartTooltipPinned]=\"tooltipPreferBelow()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\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 {{ 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 </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%}: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"] }]
877
+ ], template: "<figure class=\"chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton\n height=\"var(--_chart-view-height)\"\n [shimmer]=\"loading()\" />\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipExtraGap]=\"tooltipExtraGap()\"\n [dsChartTooltipPinned]=\"tooltipPinned()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate()\">\n <svg\n #canvasEl\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [class.pins]=\"bandPins()\"\n [style.block-size.px]=\"viewHeight()\"\n [attr.viewBox]=\"viewBox()\">\n @if (cursorBand(); as band) {\n <g\n class=\"cursor\"\n aria-hidden=\"true\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\">\n <rect\n #cursorBandEl\n class=\"category-band\"\n [attr.x]=\"band.x\"\n [attr.y]=\"band.top\"\n [attr.width]=\"band.width\"\n [attr.height]=\"band.bottom - band.top\" />\n\n <line\n class=\"cursor-line\"\n [attr.x1]=\"band.x + band.width / 2\"\n [attr.x2]=\"band.x + band.width / 2\"\n [attr.y1]=\"band.top\"\n [attr.y2]=\"band.bottom\" />\n </g>\n }\n\n <!-- Hidden as a group rather than on the svg: a projected mark may be focusable, and an\n aria-hidden ancestor would leave it reachable by Tab and invisible to a reader. -->\n <g\n class=\"axes\"\n aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"plotBottom()\"\n [attr.y2]=\"plotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"plot().top\"\n [attr.y2]=\"plotBottom()\" />\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track tick.value) {\n <line\n class=\"grid-line is-secondary\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n }\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryPlotBottom()\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plot().left\"\n [attr.y1]=\"secondaryPlot().top\"\n [attr.y2]=\"secondaryPlotBottom()\" />\n }\n\n @if (reachesBelowZero()) {\n <line\n class=\"zero-line\"\n [attr.x1]=\"plot().left\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"zeroOffset()\"\n [attr.y2]=\"zeroOffset()\" />\n }\n </g>\n\n <!-- Two slots, one group: a reference line has to paint UNDER the marks whatever order the\n consumer wrote it in, and a selected slot is what decides that instead of the author.\n Both stay inside `.marks`, which is what the boot transition guard is keyed on. -->\n <g class=\"marks\">\n <ng-content select=\"[dsReferenceLine]\" />\n\n <ng-content />\n </g>\n\n <g\n class=\"labels\"\n aria-hidden=\"true\">\n @if (axisLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"axisLabelFill()\"\n [attr.transform]=\"\n 'rotate(-90 ' +\n axisTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"axisTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ axisLabel() }}\n </text>\n }\n\n @if (secondaryAxisLabel() && hasSecondaryAxis()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.transform]=\"\n 'rotate(90 ' +\n secondaryTitleX() +\n ' ' +\n (plot().top + plot().height / 2) +\n ')'\n \"\n [attr.x]=\"secondaryTitleX()\"\n [attr.y]=\"plot().top + plot().height / 2\">\n {{ secondaryAxisLabel() }}\n </text>\n }\n\n @for (tick of ticks(); track tick.value) {\n <text\n class=\"axis-label is-primary\"\n text-anchor=\"end\"\n [style.fill]=\"axisLabelFill()\"\n [attr.x]=\"axisLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track tick.value) {\n <text\n class=\"axis-label is-secondary\"\n [style.fill]=\"secondaryAxisLabelFill()\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track label.index) {\n <text\n class=\"category-label\"\n [class.is-rotated]=\"categoryLabelsRotated()\"\n [attr.text-anchor]=\"categoryLabelsRotated() ? 'end' : 'middle'\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\"\n [attr.transform]=\"\n categoryLabelsRotated()\n ? 'rotate(-45 ' + label.x + ' ' + categoryLabelY() + ')'\n : null\n \"\n (pointerenter)=\"onCategoryLabelEnter(label.index, $event)\"\n (pointerleave)=\"onCategoryLabelLeave()\">\n {{ label.text }}\n </text>\n }\n\n <!-- Over the marks, where `.marks` is under them: an annotation's LINE is furniture and\n belongs below the readings, its NAME has to survive a column drawn through it. -->\n <ng-content select=\"[dsReferenceLabel], [dsSeriesAnnotation]\" />\n </g>\n\n @if (cursorPinned() && cursorBand(); as band) {\n <g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n (band.x + band.width / 2) +\n ',' +\n bandPinY(band) +\n ')'\n \">\n </g>\n }\n </svg>\n </div>\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.chart{--_chart-grid-line-color: var(--ds-chart-grid-line-color, var(--chart-grid-line-color));--_chart-axis-line-color: var(--ds-chart-axis-line-color, var(--chart-axis-line-color));--_chart-axis-label-color: var(--ds-chart-axis-label-color, var(--chart-axis-label-color));--_chart-axis-font-size: var(--ds-chart-axis-font-size, var(--chart-axis-font-size));margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%}.canvas.pins{cursor:pointer}:host(.measuring) .marks ::ng-deep *{transition-duration:0ms!important}.grid-line{stroke:var(--_chart-grid-line-color);stroke-width:1}.axis-line,.zero-line{stroke:var(--_chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size)}.category-label.is-rotated{dominant-baseline:middle}.axis-title{fill:var(--_chart-axis-label-color);font-size:var(--_chart-axis-font-size);font-weight:var(--font-weight-bold)}.axis-label{dominant-baseline:middle}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--ds-chart-hover-bg-color)}.cursor-line{stroke:var(--ds-chart-cursor-line-color);stroke-width:1}\n"] }]
803
878
  }], ctorParameters: () => [], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], cursor: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursor", required: false }] }], cursorPin: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursorPin", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], maxSecondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSecondary", required: false }] }], plotHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "plotHeight", required: false }] }], axisGutter: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisGutter", required: false }] }], valueSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSpace", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], secondaryAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisMode", required: false }] }], axisColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisColor", required: false }] }], secondaryAxisColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisColor", required: false }] }], axisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisLabel", required: false }] }], secondaryAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisLabel", required: false }] }], tooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTemplate", required: false }] }], tooltipExtraGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipExtraGap", required: false }] }], canvasElement: [{ type: i0.ViewChild, args: ['canvasEl', { isSignal: true }] }], bandElement: [{ type: i0.ViewChild, args: ['cursorBandEl', { isSignal: true }] }] } });
804
879
 
805
- /** The disc's radius, and half the glyph's box, in the same CSS pixels the plot is drawn in. */
806
- const PIN_DISC_RADIUS = 11;
807
- // Clears the column's top edge: at one radius the disc sits flush against it and reads as part of
808
- // the bar rather than as a badge on it.
809
- const PIN_TOP_GAP = 4;
810
- const PIN_GLYPH_SIZE = 14;
811
880
  /** Distance from a mark's own tip to its value label's baseline. */
812
881
  const VALUE_LABEL_GAP = 8;
813
882
  /** Blank left at a stacked segment's lower end, so the boundary between two segments is a gap in
@@ -826,6 +895,8 @@ let nextSeriesId$1 = 0;
826
895
  class ColumnSeriesComponent {
827
896
  leaveMark = leaveMark;
828
897
  scales = inject(CHART_SCALES);
898
+ locale = injectDsLocale();
899
+ intl = inject(DS_INTL);
829
900
  /** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
830
901
  * element, and a required input throws NG0950 for the pass before its own value is written. */
831
902
  data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
@@ -834,15 +905,19 @@ class ColumnSeriesComponent {
834
905
  /** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
835
906
  * fires whether or not this is set. */
836
907
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
837
- /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a
838
- * press outside releases it. Pinning is a state, not a handler. */
839
- pinOnClick = input(false, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* 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`. */
911
+ pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
912
+ pinOnClickResolved = resolveWithConfig(this.pinOnClick, (config) => config.chart?.pinOnClick, true);
913
+ pins = computed(() => this.pinOnClickResolved() && !this.scales.cursorOn?.(), ...(ngDevMode ? [{ debugName: "pins" }] : /* istanbul ignore next */ []));
840
914
  /** Fades every mark but the one under the pointer. Off by default: the dimming buys loudness
841
915
  * for one mark and pays for it with the separation between the rest. */
842
916
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
843
- /** Milliseconds between one mark's entrance and the next. The total is capped, so a long
844
- * series does not crawl in. */
845
- staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
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. */
920
+ staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
846
921
  /** Declares that the marks are parts of one whole, which is what makes a share of their total
847
922
  * a real quantity. On, each mark's share appears on the tooltip's second line. */
848
923
  partOfWhole = input(false, { ...(ngDevMode ? { debugName: "partOfWhole" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -856,7 +931,7 @@ class ColumnSeriesComponent {
856
931
  tooltipLingerMs = input(0, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
857
932
  /** Formats every value this series prints. Called with `'tick'` for an axis label and
858
933
  * `'tooltip'` everywhere a value is printed in full. */
859
- valueFormat = input(defaultChartFormat, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
934
+ valueFormat = input(chartValueFormat(injectDsLocale()), ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
860
935
  /** The mark's share of its category's own slot, before the maximum width caps it. Measured off
861
936
  * the slot rather than off `bandWidth()`, which has the container's own padding already taken
862
937
  * out of it - applying both would narrow every uncapped column twice. */
@@ -869,6 +944,9 @@ class ColumnSeriesComponent {
869
944
  /** Where each mark starts and ends on the value axis, one entry per point. Unset, every mark
870
945
  * runs from zero to its own value, which is the unstacked case. */
871
946
  offsets = input(null, ...(ngDevMode ? [{ debugName: "offsets" }] : /* istanbul ignore next */ []));
947
+ /** Which value axis the columns are measured against. `'secondary'` reads them off the second
948
+ * axis, the way `axis: 'secondary'` does on a line series' data. */
949
+ axis = input('primary', ...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
872
950
  /** One colour for the whole series, which is what several series drawn together need. Unset,
873
951
  * each mark takes the categorical palette by its own position - the right reading when the
874
952
  * marks ARE the categories, which is the single-series case. A point's own colour wins over
@@ -904,20 +982,54 @@ class ColumnSeriesComponent {
904
982
  });
905
983
  }, ...(ngDevMode ? [{ debugName: "spans" }] : /* istanbul ignore next */ []));
906
984
  constructor() {
907
- effect(() => this.scales.reportDomain(this.domainId, this.spans().flatMap((span) => [span.from, span.to])));
985
+ effect(() => this.scales.reportDomain(this.domainId, this.spans().flatMap((span) => [span.from, span.to]), this.axis()));
908
986
  // The container opens the panel, so a plot holding several marks can only ever show one.
909
987
  this.scales.reportTooltip(this.domainId, {
910
988
  context: this.tooltipContext,
911
989
  origin: computed(() => this.activeMark.origin()),
912
- preferBelow: computed(() => this.activeMark.pinned()),
990
+ pinned: this.activeMark.pinned,
991
+ offersTooltip: computed(() => this.tooltip() !== 'none'),
992
+ axisOrigin: computed(() => {
993
+ const categoryIndex = this.scales.activeIndex();
994
+ return categoryIndex < 0
995
+ ? null
996
+ : (this.barElements()[categoryIndex]?.nativeElement ?? null);
997
+ }),
913
998
  axisEntries: this.axisEntries,
914
999
  });
1000
+ const host = inject(ElementRef);
1001
+ listenForMarkFocus(host, (event, hit) => this.onMarkFocus(event, hit), () => {
1002
+ this.activeMark.leave();
1003
+ if (this.scales.cursorOn?.()) {
1004
+ this.scales.setActiveIndex(-1);
1005
+ }
1006
+ });
1007
+ let answeringLabel = false;
1008
+ effect(() => {
1009
+ const hover = this.scales.categoryLabelHover?.() ?? null;
1010
+ untracked(() => {
1011
+ const mark = hover &&
1012
+ host.nativeElement.querySelector(`[data-mark-index="${hover.index}"]`);
1013
+ if (hover && mark) {
1014
+ answeringLabel = true;
1015
+ this.activeMark.enter(hover.index, hover.event, this.tooltipMark(), mark);
1016
+ }
1017
+ else if (answeringLabel) {
1018
+ answeringLabel = false;
1019
+ this.activeMark.leave();
1020
+ }
1021
+ });
1022
+ });
915
1023
  }
1024
+ // A reader naming a category by its label is asking for that column, so the rest step back
1025
+ // whatever `dimOthers` says, as they do for a legend entry.
1026
+ dimsFromLabel = computed(() => (this.scales.categoryLabelHover?.() ?? null) !== null, ...(ngDevMode ? [{ debugName: "dimsFromLabel" }] : /* istanbul ignore next */ []));
916
1027
  ngOnDestroy() {
917
1028
  this.scales.releaseTooltip(this.domainId);
918
1029
  this.scales.releaseDomain(this.domainId);
919
1030
  }
920
- activeMark = chartActiveMark(() => this.tooltipLingerMs());
1031
+ activeMark = chartActiveMark(() => this.tooltipLingerMs(), () => this.scales.hoverDelayMs?.() ?? 0);
1032
+ barElements = viewChildren('barEl', ...(ngDevMode ? [{ debugName: "barElements" }] : /* istanbul ignore next */ []));
921
1033
  /** One SERIES' slot inside a category's band: the whole band while a chart draws one series,
922
1034
  * a share of it per series when several are grouped. The box that catches the pointer is sized
923
1035
  * from this rather than from the drawn column, so a short column stays reachable. */
@@ -926,7 +1038,7 @@ class ColumnSeriesComponent {
926
1038
  const slots = Math.max(1, this.slotCount());
927
1039
  return count > 0 ? this.scales.plot().width / count / slots : 0;
928
1040
  }, ...(ngDevMode ? [{ debugName: "slotStep" }] : /* istanbul ignore next */ []));
929
- slotStepPx = computed(() => `${this.slotStep()}px`, ...(ngDevMode ? [{ debugName: "slotStepPx" }] : /* istanbul ignore next */ []));
1041
+ slotBandPx = computed(() => `${this.scales.bandWidth() / Math.max(1, this.slotCount())}px`, ...(ngDevMode ? [{ debugName: "slotBandPx" }] : /* istanbul ignore next */ []));
930
1042
  markWidthPx = computed(() => `${this.slotStep() * this.columnWidthRatio()}px`, ...(ngDevMode ? [{ debugName: "markWidthPx" }] : /* istanbul ignore next */ []));
931
1043
  /** The whole canvas, reserved end included. Overshooting when the container drops that
932
1044
  * reservation costs nothing - the outer `<svg>` clips it - while falling short would leave a
@@ -949,16 +1061,12 @@ class ColumnSeriesComponent {
949
1061
  const overflow = height - mark.height;
950
1062
  return { y: mark.top - overflow / 2, height };
951
1063
  }
952
- pinDiscRadius = PIN_DISC_RADIUS;
953
- pinGlyphSize = PIN_GLYPH_SIZE;
954
- pinGlyphOffset = -PIN_GLYPH_SIZE / 2;
955
- pinGlyph = inject(DomSanitizer).bypassSecurityTrustHtml(ICONS.pin);
1064
+ hatchInUse = computed(() => this.marks().some((mark) => mark.hatched), ...(ngDevMode ? [{ debugName: "hatchInUse" }] : /* istanbul ignore next */ []));
956
1065
  marks = computed(() => {
957
- if (!(this.scales.measured?.() ?? true)) {
958
- return [];
959
- }
960
1066
  const toX = this.scales.xPosition();
961
- const toY = this.scales.yPosition();
1067
+ const toY = this.axis() === 'secondary'
1068
+ ? this.scales.secondaryYPosition()
1069
+ : this.scales.yPosition();
962
1070
  const spans = this.spans();
963
1071
  const format = this.valueFormat();
964
1072
  return this.data().map((point, index) => {
@@ -983,7 +1091,7 @@ class ColumnSeriesComponent {
983
1091
  top: Math.min(tip, baseline),
984
1092
  height: Math.abs(tip - baseline),
985
1093
  labelY: below ? tip + VALUE_LABEL_GAP : tip - VALUE_LABEL_GAP,
986
- pinY: Math.min(tip, baseline) + PIN_DISC_RADIUS + PIN_TOP_GAP,
1094
+ pinY: Math.min(tip, baseline) + CHART_PIN_RADIUS + CHART_PIN_GAP,
987
1095
  // Growing from the baseline, never the mark's own tip - a column below zero grows
988
1096
  // downward, so its transform-origin flips to the top edge it hangs from.
989
1097
  origin: below ? 'top' : 'bottom',
@@ -994,7 +1102,7 @@ class ColumnSeriesComponent {
994
1102
  });
995
1103
  }, ...(ngDevMode ? [{ debugName: "marks" }] : /* istanbul ignore next */ []));
996
1104
  markStagger(index) {
997
- return `${staggerDelay(index, this.staggerMs())}ms`;
1105
+ return `${staggerDelay(index, this.marks().length, this.staggerMs())}ms`;
998
1106
  }
999
1107
  tooltipMark = computed(() => this.tooltipAnchor() === 'mark' ? '.bar' : undefined, ...(ngDevMode ? [{ debugName: "tooltipMark" }] : /* istanbul ignore next */ []));
1000
1108
  onMarkClick(event) {
@@ -1004,13 +1112,13 @@ class ColumnSeriesComponent {
1004
1112
  return;
1005
1113
  }
1006
1114
  this.pointClicked.emit(mark.point);
1007
- if (this.pinOnClick()) {
1115
+ if (this.pins()) {
1008
1116
  this.activeMark.pin(hit.index, event, this.tooltipMark(), hit.element);
1009
1117
  }
1010
1118
  }
1011
1119
  onMarkOver(event) {
1012
1120
  const hit = markOf(event);
1013
- if (hit) {
1121
+ if (hit && !this.scales.cursorOn?.()) {
1014
1122
  this.activeMark.enter(hit.index, event, this.tooltipMark(), hit.element);
1015
1123
  }
1016
1124
  }
@@ -1019,22 +1127,18 @@ class ColumnSeriesComponent {
1019
1127
  const next = event.relatedTarget instanceof Element
1020
1128
  ? event.relatedTarget.closest('[data-mark-index]')
1021
1129
  : null;
1022
- if (hit && next !== hit.element) {
1130
+ if (hit && next !== hit.element && !this.scales.cursorOn?.()) {
1023
1131
  this.activeMark.leave();
1024
1132
  }
1025
1133
  }
1026
1134
  roving = rovingMarks(() => this.marks().length);
1027
- onMarkFocus(event) {
1028
- const hit = markOf(event);
1029
- if (hit) {
1030
- this.roving.focus(hit.index);
1031
- this.activeMark.enter(hit.index, event, this.tooltipMark(), hit.element);
1032
- }
1033
- }
1034
- onMarkBlur(event) {
1035
- if (markOf(event)) {
1036
- this.activeMark.leave();
1135
+ onMarkFocus(event, hit) {
1136
+ this.roving.focus(hit.index);
1137
+ // Under the category cursor focus names the category, as a pointer anywhere in its band does.
1138
+ if (this.scales.cursorOn?.()) {
1139
+ this.scales.setActiveIndex(hit.index);
1037
1140
  }
1141
+ this.activeMark.enter(hit.index, event, this.tooltipMark(), hit.element);
1038
1142
  }
1039
1143
  onMarkKey(event) {
1040
1144
  const hit = markOf(event);
@@ -1071,9 +1175,16 @@ class ColumnSeriesComponent {
1071
1175
  formatted: mark.formattedValue,
1072
1176
  color: mark.color,
1073
1177
  hatched: mark.hatched,
1178
+ detail: this.shareDetail(categoryIndex),
1179
+ y: mark.tip,
1074
1180
  },
1075
1181
  ];
1076
1182
  }, ...(ngDevMode ? [{ debugName: "axisEntries" }] : /* istanbul ignore next */ []));
1183
+ shareDetail(index) {
1184
+ return this.partOfWhole()
1185
+ ? describeShare(this.data().map((point) => point.value), index, this.locale, (share) => this.intl().chart.shareOfTotal(share))
1186
+ : undefined;
1187
+ }
1077
1188
  tooltipContext = computed(() => {
1078
1189
  const mark = this.marks()[this.activeMark.index()];
1079
1190
  if (this.tooltip() === 'none' || !mark) {
@@ -1089,20 +1200,18 @@ class ColumnSeriesComponent {
1089
1200
  formatted: mark.formattedValue,
1090
1201
  color: mark.color,
1091
1202
  hatched: mark.hatched,
1092
- detail: this.partOfWhole()
1093
- ? describeShare(this.data().map((point) => point.value), this.activeMark.index())
1094
- : undefined,
1203
+ detail: this.shareDetail(this.activeMark.index()),
1095
1204
  },
1096
1205
  ],
1097
1206
  };
1098
1207
  }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
1099
1208
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1100
- 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 }, 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" }, 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 (focusin)=\"onMarkFocus($event)\"\n (focusout)=\"onMarkBlur($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. -->\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=\"0\"\n y1=\"0\"\n x2=\"0\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\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 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 class=\"pin-marker\"\n aria-hidden=\"true\"\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\">\n <svg:circle\n class=\"pin-disc\"\n [attr.r]=\"pinDiscRadius\" />\n\n <svg:svg\n class=\"pin-glyph\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.75\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.x]=\"pinGlyphOffset\"\n [attr.y]=\"pinGlyphOffset\"\n [attr.width]=\"pinGlyphSize\"\n [attr.height]=\"pinGlyphSize\"\n [innerHTML]=\"pinGlyph\" />\n </svg:g>\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%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@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-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) backwards}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}@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.interactive:hover) .column.interactive:not(:hover),.columns.dims-others:not(:has(.column.is-pinned)):has(.column.interactive:focus-visible) .column.interactive:not(:focus-visible),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive{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, 3px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-hit-width: min( var(--_column-chart-slot-step), calc( var(--_column-chart-column-max-width) + var(--_column-chart-column-gap) ) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{width:var(--_column-hit-width);x:calc(var(--_column-hit-width) / -2);fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.pin-marker{pointer-events:none}.pin-disc{fill:var(--surface-default);stroke:var(--border-divider);stroke-width:var(--border-width-default)}.pin-glyph{color:var(--text-primary)}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1209
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ColumnSeriesComponent, isStandalone: true, selector: "g[dsColumnSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, columnWidthRatio: { classPropertyName: "columnWidthRatio", publicName: "columnWidthRatio", isSignal: true, isRequired: false, transformFunction: null }, slot: { classPropertyName: "slot", publicName: "slot", isSignal: true, isRequired: false, transformFunction: null }, slotCount: { classPropertyName: "slotCount", publicName: "slotCount", isSignal: true, isRequired: false, transformFunction: null }, offsets: { classPropertyName: "offsets", publicName: "offsets", isSignal: true, isRequired: false, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, seriesColor: { classPropertyName: "seriesColor", publicName: "seriesColor", isSignal: true, isRequired: false, transformFunction: null }, seriesFill: { classPropertyName: "seriesFill", publicName: "seriesFill", isSignal: true, isRequired: false, transformFunction: null }, seriesLabel: { classPropertyName: "seriesLabel", publicName: "seriesLabel", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "barElements", predicate: ["barEl"], descendants: true, isSignal: true }], exportAs: ["dsColumnSeries"], ngImport: i0, template: "<svg:g\n class=\"columns\"\n [class.dims-others]=\"dimOthers() || dimsFromLabel()\"\n [class.is-dimmed]=\"dimmedBySeries()\"\n [style.--_column-chart-column-share]=\"markWidthPx()\"\n [style.--_column-chart-slot-band]=\"slotBandPx()\"\n [style.--_column-slot]=\"slot()\"\n [style.--_column-slots]=\"slotCount()\"\n (pointerover)=\"onMarkOver($event)\"\n (pointerout)=\"onMarkOut($event)\"\n (keydown)=\"onMarkKey($event)\"\n (click)=\"onMarkClick($event)\">\n <!-- `userSpaceOnUse`, so the stripe pitch is the same on a tall column and a short one: with the\n default object bounding box it would scale with each mark and read as a different texture\n per bar. The stripe runs down the tile's middle: on its edge the tile clips it to half its\n width. -->\n @if (hatchInUse()) {\n <svg:defs>\n <svg:pattern\n class=\"hatch\"\n patternUnits=\"userSpaceOnUse\"\n width=\"8\"\n height=\"8\"\n patternTransform=\"rotate(45)\"\n [attr.id]=\"hatchId\">\n <svg:rect\n class=\"hatch-ground\"\n width=\"8\"\n height=\"8\" />\n\n <svg:line\n class=\"hatch-stripe\"\n x1=\"4\"\n y1=\"0\"\n x2=\"4\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n }\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.below-baseline]=\"mark.below\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [style.--_column-mark-height]=\"mark.height + 'px'\"\n [style.--_column-baseline-y]=\"mark.baseline + 'px'\"\n [style.--_column-x]=\"mark.x + 'px'\"\n [attr.data-mark-index]=\"index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.aria-label]=\"interactive() ? entryLabel(mark) : null\"\n (animate.leave)=\"leaveMark($event)\">\n <!-- The box that catches the pointer is the whole category slot, not the drawn column: a\n column two pixels tall is otherwise unreachable, and a pointer that has to find the\n mark is a pointer that misses it. -->\n @let hit = hitBox(mark);\n\n <svg:rect\n class=\"hit-area\"\n [attr.y]=\"hit.y\"\n [attr.height]=\"hit.height\" />\n\n <svg:g\n #barEl\n class=\"bar\"\n [style.transform-origin]=\"mark.origin\">\n <!-- Under the capped rect, not beside it: `rx` rounds all four corners, and the cap\n belongs on the free end alone. This one fills the two corners at the baseline back\n in, and both keep `y` and `height` a plain interpolable length, which a `<path>`\n would not. -->\n <svg:rect\n class=\"bar-base\"\n [attr.fill]=\"mark.color\" />\n\n <svg:rect\n class=\"bar-cap\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\" />\n\n <!-- Stripes OVER the painted mark, not a pattern in place of its fill: a pattern carries\n its own colour, so one shared definition cannot take each mark's. Painting the surface\n colour through it leaves the mark's own hue showing between the stripes. -->\n @if (mark.hatched) {\n <svg:rect\n class=\"bar-hatch\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"'url(#' + hatchId + ')'\" />\n }\n </svg:g>\n\n @if (showValues()) {\n <svg:text\n class=\"value\"\n text-anchor=\"middle\"\n [attr.y]=\"mark.labelY\">\n {{ mark.formattedValue }}\n </svg:text>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\" />\n }\n </svg:g>\n }\n</svg:g>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.column .bar{transform-origin:bottom}.bar{animation:ds-chart-mark-grow-y var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.bar{animation-delay:0ms}}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value{animation-delay:0ms}}@media not (forced-colors:active){.column:focus{outline:none}}.columns .column{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.columns .column.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.columns.dims-others:not(:has(.column.is-pinned)):has(.column.is-active) .column:not(.is-active),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive,.columns .column.pins{cursor:pointer}.columns{--_column-chart-column-max-width: var(--ds-column-chart-column-max-width, 48px);--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));--_column-chart-cap-radius: var( --ds-column-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_chart-hatch-color: var( --ds-chart-hatch-color, var(--surface-default) );--_chart-hatch-width: var(--ds-chart-hatch-width, 1.5px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-hit-width: min( var(--_column-chart-slot-band), calc( var(--_column-chart-column-max-width) + var(--_column-chart-column-gap) ) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{width:var(--_column-hit-width);x:calc(var(--_column-hit-width) / -2);fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1101
1210
  }
1102
1211
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ColumnSeriesComponent, decorators: [{
1103
1212
  type: Component,
1104
- args: [{ selector: 'g[dsColumnSeries]', standalone: true, 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 (focusin)=\"onMarkFocus($event)\"\n (focusout)=\"onMarkBlur($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. -->\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=\"0\"\n y1=\"0\"\n x2=\"0\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\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 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 class=\"pin-marker\"\n aria-hidden=\"true\"\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\">\n <svg:circle\n class=\"pin-disc\"\n [attr.r]=\"pinDiscRadius\" />\n\n <svg:svg\n class=\"pin-glyph\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.75\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.x]=\"pinGlyphOffset\"\n [attr.y]=\"pinGlyphOffset\"\n [attr.width]=\"pinGlyphSize\"\n [attr.height]=\"pinGlyphSize\"\n [innerHTML]=\"pinGlyph\" />\n </svg:g>\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%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@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-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) backwards}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}@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.interactive:hover) .column.interactive:not(:hover),.columns.dims-others:not(:has(.column.is-pinned)):has(.column.interactive:focus-visible) .column.interactive:not(:focus-visible),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive{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, 3px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-hit-width: min( var(--_column-chart-slot-step), calc( var(--_column-chart-column-max-width) + var(--_column-chart-column-gap) ) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{width:var(--_column-hit-width);x:calc(var(--_column-hit-width) / -2);fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.pin-marker{pointer-events:none}.pin-disc{fill:var(--surface-default);stroke:var(--border-divider);stroke-width:var(--border-width-default)}.pin-glyph{color:var(--text-primary)}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"] }]
1105
- }], 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 }] }], 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"] }] } });
1213
+ args: [{ selector: 'g[dsColumnSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsColumnSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"columns\"\n [class.dims-others]=\"dimOthers() || dimsFromLabel()\"\n [class.is-dimmed]=\"dimmedBySeries()\"\n [style.--_column-chart-column-share]=\"markWidthPx()\"\n [style.--_column-chart-slot-band]=\"slotBandPx()\"\n [style.--_column-slot]=\"slot()\"\n [style.--_column-slots]=\"slotCount()\"\n (pointerover)=\"onMarkOver($event)\"\n (pointerout)=\"onMarkOut($event)\"\n (keydown)=\"onMarkKey($event)\"\n (click)=\"onMarkClick($event)\">\n <!-- `userSpaceOnUse`, so the stripe pitch is the same on a tall column and a short one: with the\n default object bounding box it would scale with each mark and read as a different texture\n per bar. The stripe runs down the tile's middle: on its edge the tile clips it to half its\n width. -->\n @if (hatchInUse()) {\n <svg:defs>\n <svg:pattern\n class=\"hatch\"\n patternUnits=\"userSpaceOnUse\"\n width=\"8\"\n height=\"8\"\n patternTransform=\"rotate(45)\"\n [attr.id]=\"hatchId\">\n <svg:rect\n class=\"hatch-ground\"\n width=\"8\"\n height=\"8\" />\n\n <svg:line\n class=\"hatch-stripe\"\n x1=\"4\"\n y1=\"0\"\n x2=\"4\"\n y2=\"8\" />\n </svg:pattern>\n </svg:defs>\n }\n\n @for (mark of marks(); track mark.key; let index = $index) {\n <svg:g\n class=\"column\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.below-baseline]=\"mark.below\"\n [class.is-pinned]=\"activeMark.pinned() && activeMark.index() === index\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [style.--_column-mark-height]=\"mark.height + 'px'\"\n [style.--_column-baseline-y]=\"mark.baseline + 'px'\"\n [style.--_column-x]=\"mark.x + 'px'\"\n [attr.data-mark-index]=\"index\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.aria-label]=\"interactive() ? entryLabel(mark) : null\"\n (animate.leave)=\"leaveMark($event)\">\n <!-- The box that catches the pointer is the whole category slot, not the drawn column: a\n column two pixels tall is otherwise unreachable, and a pointer that has to find the\n mark is a pointer that misses it. -->\n @let hit = hitBox(mark);\n\n <svg:rect\n class=\"hit-area\"\n [attr.y]=\"hit.y\"\n [attr.height]=\"hit.height\" />\n\n <svg:g\n #barEl\n class=\"bar\"\n [style.transform-origin]=\"mark.origin\">\n <!-- Under the capped rect, not beside it: `rx` rounds all four corners, and the cap\n belongs on the free end alone. This one fills the two corners at the baseline back\n in, and both keep `y` and `height` a plain interpolable length, which a `<path>`\n would not. -->\n <svg:rect\n class=\"bar-base\"\n [attr.fill]=\"mark.color\" />\n\n <svg:rect\n class=\"bar-cap\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\" />\n\n <!-- Stripes OVER the painted mark, not a pattern in place of its fill: a pattern carries\n its own colour, so one shared definition cannot take each mark's. Painting the surface\n colour through it leaves the mark's own hue showing between the stripes. -->\n @if (mark.hatched) {\n <svg:rect\n class=\"bar-hatch\"\n [attr.y]=\"mark.top\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"'url(#' + hatchId + ')'\" />\n }\n </svg:g>\n\n @if (showValues()) {\n <svg:text\n class=\"value\"\n text-anchor=\"middle\"\n [attr.y]=\"mark.labelY\">\n {{ mark.formattedValue }}\n </svg:text>\n }\n\n @if (activeMark.pinned() && activeMark.index() === index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"'translate(0,' + mark.pinY + ')'\" />\n }\n </svg:g>\n }\n</svg:g>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.column .bar{transform-origin:bottom}.bar{animation:ds-chart-mark-grow-y var(--ds-motion-chart-mark-grow-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.bar{animation-delay:0ms}}.column.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.value{animation:ds-chart-mark-rise var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-grow-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.value{animation-delay:0ms}}@media not (forced-colors:active){.column:focus{outline:none}}.columns .column{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.columns .column.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.columns.dims-others:not(:has(.column.is-pinned)):has(.column.is-active) .column:not(.is-active),.columns.dims-others:has(.column.is-pinned) .column:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.columns .column.interactive,.columns .column.pins{cursor:pointer}.columns{--_column-chart-column-max-width: var(--ds-column-chart-column-max-width, 48px);--_column-chart-column-gap: var(--ds-column-chart-column-gap, var(--ds-chart-bar-gap));--_column-chart-cap-radius: var( --ds-column-chart-cap-radius, var(--ds-chart-mark-cap-radius) );--_chart-hatch-color: var( --ds-chart-hatch-color, var(--surface-default) );--_chart-hatch-width: var(--ds-chart-hatch-width, 1.5px)}.column{--_column-mark-width: min( var(--_column-chart-column-share), var(--_column-chart-column-max-width) );--_column-hit-width: min( var(--_column-chart-slot-band), calc( var(--_column-chart-column-max-width) + var(--_column-chart-column-gap) ) );--_column-square-height: min( var(--_column-chart-cap-radius), calc(var(--_column-mark-height) / 2) );--_column-slot-offset: calc( (2 * var(--_column-slot, 0) - var(--_column-slots, 1) + 1) * (var(--_column-mark-width) + var(--_column-chart-column-gap)) / 2 );transform:translate(calc(var(--_column-x, 0px) + var(--_column-slot-offset)))}.hit-area{width:var(--_column-hit-width);x:calc(var(--_column-hit-width) / -2);fill:transparent}.bar{transform-box:fill-box}.bar-base,.bar-cap,.bar-hatch{width:var(--_column-mark-width);x:calc(var(--_column-mark-width) / -2);transition:y var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),height var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.bar-cap{rx:var(--_column-chart-cap-radius)}.hatch-ground{fill:none}.hatch-stripe{stroke:var(--_chart-hatch-color);stroke-width:var(--_chart-hatch-width)}.bar-hatch{rx:var(--_column-chart-cap-radius);pointer-events:none}.bar-base{height:var(--_column-square-height);y:calc(var(--_column-baseline-y) - var(--_column-square-height))}.column.below-baseline .bar-base{y:var(--_column-baseline-y)}.value{fill:currentcolor;font-size:var(--font-size-xs);font-weight:700;pointer-events:none}.column.below-baseline .value{dominant-baseline:hanging}@media not (forced-colors:active){.column.interactive:focus-visible{outline:none}}.column.interactive:focus-visible .bar-cap{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}@media(forced-colors:active){.column.interactive:focus-visible .bar-cap{stroke:Highlight;filter:none}}.columns.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"] }]
1214
+ }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], columnWidthRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidthRatio", required: false }] }], slot: [{ type: i0.Input, args: [{ isSignal: true, alias: "slot", required: false }] }], slotCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotCount", required: false }] }], offsets: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsets", required: false }] }], axis: [{ type: i0.Input, args: [{ isSignal: true, alias: "axis", required: false }] }], seriesColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesColor", required: false }] }], seriesFill: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesFill", required: false }] }], seriesLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesLabel", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], highlighted: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlighted", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], barElements: [{ type: i0.ViewChildren, args: ['barEl', { isSignal: true }] }] } });
1106
1215
 
1107
1216
  let nextSeriesId = 0;
1108
1217
  /**
@@ -1112,6 +1221,8 @@ let nextSeriesId = 0;
1112
1221
  * Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
1113
1222
  * know is not rendered, and neither are its descendants. Written as `<svg:g dsLineSeries>`.
1114
1223
  */
1224
+ // The active marker's default radius, `--chart-dot-radius-active`.
1225
+ const PIN_MARKER_CLEARANCE = 6;
1115
1226
  class LineSeriesComponent {
1116
1227
  leaveMark = leaveMark;
1117
1228
  scales = inject(CHART_SCALES);
@@ -1128,9 +1239,12 @@ class LineSeriesComponent {
1128
1239
  /** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
1129
1240
  * fires whether or not this is set. */
1130
1241
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1131
- /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a
1132
- * press outside releases it. Pinning is a state, not a handler. */
1133
- pinOnClick = input(false, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1242
+ /** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
1243
+ * Escape or a press outside releases it. Under the category cursor the container holds the
1244
+ * category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
1245
+ pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
1246
+ pinOnClickResolved = resolveWithConfig(this.pinOnClick, (config) => config.chart?.pinOnClick, true);
1247
+ pins = computed(() => this.pinOnClickResolved() && !this.scales.cursorOn?.(), ...(ngDevMode ? [{ debugName: "pins" }] : /* istanbul ignore next */ []));
1134
1248
  /** Fades every series but the one under the pointer. Off by default: the dimming buys loudness
1135
1249
  * for one line and pays for it with the separation between the rest. */
1136
1250
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -1149,8 +1263,9 @@ class LineSeriesComponent {
1149
1263
  dashFor(seriesIndex) {
1150
1264
  return this.patterns()[seriesIndex] || null;
1151
1265
  }
1152
- /** Milliseconds between one marker's entrance and the next. The total is capped. */
1153
- staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1266
+ /** Milliseconds between one series' entrance and the next, narrowed so the last series still
1267
+ * starts within the stagger budget. `0` turns the stagger off. */
1268
+ staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1154
1269
  /** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point
1155
1270
  * at zero. A missing measurement and a measured zero are different facts. */
1156
1271
  gaps = input('break', ...(ngDevMode ? [{ debugName: "gaps" }] : /* istanbul ignore next */ []));
@@ -1172,7 +1287,7 @@ class LineSeriesComponent {
1172
1287
  tooltipLingerMs = input(0, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1173
1288
  /** Formats every value this series prints. Called with `'tick'` for an axis label and
1174
1289
  * `'tooltip'` everywhere a value is printed in full. */
1175
- valueFormat = input(defaultChartFormat, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
1290
+ valueFormat = input(chartValueFormat(injectDsLocale()), ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
1176
1291
  /** The clicked reading, with the series it belongs to and its position in `categories`.
1177
1292
  * Fires on click and on Enter or Space, whatever `interactive` says. */
1178
1293
  pointClicked = output();
@@ -1186,15 +1301,22 @@ class LineSeriesComponent {
1186
1301
  this.scales.reportTooltip(this.domainId, {
1187
1302
  context: this.tooltipContext,
1188
1303
  origin: this.tooltipOrigin,
1304
+ offersTooltip: computed(() => this.tooltip() !== 'none'),
1305
+ axisOrigin: this.topReadingElement,
1189
1306
  axisEntries: this.axisEntries,
1190
1307
  });
1308
+ listenForMarkFocus(inject(ElementRef), (event, hit) => this.onMarkerFocus(event, hit), () => {
1309
+ this.focusedSeries.set(null);
1310
+ this.activeMark.leave();
1311
+ this.scales.setActiveIndex(-1);
1312
+ });
1191
1313
  }
1192
1314
  ngOnDestroy() {
1193
1315
  this.scales.releaseTooltip(this.domainId);
1194
1316
  this.scales.releaseDomain(`${this.domainId}-primary`);
1195
1317
  this.scales.releaseDomain(`${this.domainId}-secondary`);
1196
1318
  }
1197
- activeMark = chartActiveMark(() => this.tooltipLingerMs());
1319
+ activeMark = chartActiveMark(() => this.tooltipLingerMs(), () => this.scales.hoverDelayMs?.() ?? 0);
1198
1320
  valuesOn(axis) {
1199
1321
  return this.data()
1200
1322
  .filter((series) => (series.axis ?? 'primary') === axis)
@@ -1213,9 +1335,6 @@ class LineSeriesComponent {
1213
1335
  return readings;
1214
1336
  }
1215
1337
  plotted = computed(() => {
1216
- if (!(this.scales.measured?.() ?? true)) {
1217
- return [];
1218
- }
1219
1338
  const toX = this.scales.xPosition();
1220
1339
  const primaryY = this.scales.yPosition();
1221
1340
  const secondaryY = this.scales.secondaryYPosition();
@@ -1285,7 +1404,7 @@ class LineSeriesComponent {
1285
1404
  }
1286
1405
  allMarkers = computed(() => this.plotted().flatMap((entry) => entry.markers), ...(ngDevMode ? [{ debugName: "allMarkers" }] : /* istanbul ignore next */ []));
1287
1406
  seriesStagger(index) {
1288
- return `${staggerDelay(index, this.staggerMs())}ms`;
1407
+ return `${staggerDelay(index, this.plotted().length, this.staggerMs())}ms`;
1289
1408
  }
1290
1409
  /** One tab stop PER SERIES: each line is a strand the reader walks with the arrows, and the
1291
1410
  * strands are what the chart is comparing. WCAG 2.1.1's Understanding is explicit that not
@@ -1310,15 +1429,20 @@ class LineSeriesComponent {
1310
1429
  return (marker.markIndex === this.activeMark.index() ||
1311
1430
  marker.categoryIndex === this.scales.activeIndex());
1312
1431
  }
1432
+ pinnedMarker = computed(() => this.activeMark.pinned()
1433
+ ? (this.allMarkers()[this.activeMark.index()] ?? null)
1434
+ : null, ...(ngDevMode ? [{ debugName: "pinnedMarker" }] : /* istanbul ignore next */ []));
1435
+ // Above the reading, clear of the marker drawn on it.
1436
+ pinLift = CHART_PIN_RADIUS + CHART_PIN_GAP + PIN_MARKER_CLEARANCE;
1313
1437
  onMarkerOver(event) {
1314
1438
  const hit = markOf(event);
1315
- if (hit) {
1439
+ if (hit && !this.scales.cursorOn?.()) {
1316
1440
  this.activeMark.enter(hit.index, event, undefined, hit.element);
1317
1441
  }
1318
1442
  }
1319
1443
  onMarkerOut(event) {
1320
1444
  const hit = markOf(event);
1321
- if (!hit) {
1445
+ if (!hit || this.scales.cursorOn?.()) {
1322
1446
  return;
1323
1447
  }
1324
1448
  const next = event.relatedTarget instanceof Element
@@ -1328,11 +1452,7 @@ class LineSeriesComponent {
1328
1452
  this.activeMark.leave();
1329
1453
  }
1330
1454
  }
1331
- onMarkerFocus(event) {
1332
- const hit = markOf(event);
1333
- if (!hit) {
1334
- return;
1335
- }
1455
+ onMarkerFocus(event, hit) {
1336
1456
  const marker = this.allMarkers()[hit.index];
1337
1457
  if (marker) {
1338
1458
  this.rovingBySeries.update((roving) => new Map(roving).set(marker.seriesId, hit.index));
@@ -1341,12 +1461,6 @@ class LineSeriesComponent {
1341
1461
  }
1342
1462
  this.activeMark.enter(hit.index, event, undefined, hit.element);
1343
1463
  }
1344
- onMarkerBlur(event) {
1345
- if (markOf(event)) {
1346
- this.focusedSeries.set(null);
1347
- this.activeMark.leave();
1348
- }
1349
- }
1350
1464
  onMarkerKey(event) {
1351
1465
  const hit = markOf(event);
1352
1466
  if (!hit) {
@@ -1377,7 +1491,7 @@ class LineSeriesComponent {
1377
1491
  if (!hit) {
1378
1492
  return;
1379
1493
  }
1380
- if (this.pinOnClick()) {
1494
+ if (this.pins()) {
1381
1495
  this.activeMark.pin(hit.index, event, '.series-marker', hit.element);
1382
1496
  }
1383
1497
  this.selectMarker(hit.index);
@@ -1399,7 +1513,8 @@ class LineSeriesComponent {
1399
1513
  /** What this series reads at the category the cursor is on, whatever `tooltip` says. It feeds
1400
1514
  * the container's category panel, so one band answers for every mark on the plot rather than
1401
1515
  * each mark owning a hover field of its own. */
1402
- axisEntries = computed(() => {
1516
+ axisEntries = computed(() => this.readingsAtCursor().map(({ reading }) => reading), ...(ngDevMode ? [{ debugName: "axisEntries" }] : /* istanbul ignore next */ []));
1517
+ readingsAtCursor = computed(() => {
1403
1518
  const categoryIndex = this.scales.activeIndex();
1404
1519
  if (categoryIndex < 0) {
1405
1520
  return [];
@@ -1409,15 +1524,19 @@ class LineSeriesComponent {
1409
1524
  return marker
1410
1525
  ? [
1411
1526
  {
1412
- label: marker.seriesLabel,
1413
- value: marker.value,
1414
- formatted: marker.formattedValue,
1415
- color: marker.color,
1527
+ seriesId: entry.series.id,
1528
+ reading: {
1529
+ label: marker.seriesLabel,
1530
+ value: marker.value,
1531
+ formatted: marker.formattedValue,
1532
+ color: marker.color,
1533
+ y: marker.y,
1534
+ },
1416
1535
  },
1417
1536
  ]
1418
1537
  : [];
1419
1538
  });
1420
- }, ...(ngDevMode ? [{ debugName: "axisEntries" }] : /* istanbul ignore next */ []));
1539
+ }, ...(ngDevMode ? [{ debugName: "readingsAtCursor" }] : /* istanbul ignore next */ []));
1421
1540
  tooltipContext = computed(() => {
1422
1541
  if (this.tooltip() === 'none') {
1423
1542
  return null;
@@ -1477,22 +1596,9 @@ class LineSeriesComponent {
1477
1596
  return null;
1478
1597
  }
1479
1598
  const focused = this.focusedSeries();
1480
- const reporting = focused
1481
- ? this.plotted().filter((entry) => entry.series.id === focused)
1482
- : this.plotted();
1483
- const entries = reporting.flatMap((entry) => {
1484
- const marker = entry.markers.find((candidate) => candidate.categoryIndex === categoryIndex);
1485
- return marker
1486
- ? [
1487
- {
1488
- label: marker.seriesLabel,
1489
- value: marker.value,
1490
- formatted: marker.formattedValue,
1491
- color: marker.color,
1492
- },
1493
- ]
1494
- : [];
1495
- });
1599
+ const entries = topDown(this.readingsAtCursor()
1600
+ .filter(({ seriesId }) => !focused || seriesId === focused)
1601
+ .map(({ reading }) => reading));
1496
1602
  if (!entries.length) {
1497
1603
  return null;
1498
1604
  }
@@ -1502,11 +1608,11 @@ class LineSeriesComponent {
1502
1608
  };
1503
1609
  }, ...(ngDevMode ? [{ debugName: "axisTooltipContext" }] : /* istanbul ignore next */ []));
1504
1610
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1505
- 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 (focusin)=\"onMarkerFocus($event)\"\n (focusout)=\"onMarkerBlur($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 [attr.stroke-dasharray]=\"dashFor(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 [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\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 (showMarkers() || interactive()) {\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.is-active]=\"isActiveMarker(marker)\"\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</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%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line{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(--_chart-mark-stagger, 0ms)) backwards}.series-line.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(--_chart-mark-stagger, 0ms)) backwards}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}@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{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{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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1611
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineSeriesComponent, isStandalone: true, selector: "g[dsLineSeries]", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, viewQueries: [{ propertyName: "markerElements", predicate: ["markerEl"], descendants: true, isSignal: true }], exportAs: ["dsLineSeries"], ngImport: i0, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.markIndex\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"interactive() ? markerLabel(marker) : null\" />\n }\n }\n }\n\n @if (pinnedMarker(); as marker) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + marker.x + ',' + (marker.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-stacked{stroke:var(--surface-default);stroke-width:2;stroke-linejoin:round}.lines:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_chart-line-width-bold)}.series-halo{fill:none;stroke:var(--surface-default);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--surface-default);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"], dependencies: [{ kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1506
1612
  }
1507
1613
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineSeriesComponent, decorators: [{
1508
1614
  type: Component,
1509
- args: [{ selector: 'g[dsLineSeries]', standalone: true, 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 (focusin)=\"onMarkerFocus($event)\"\n (focusout)=\"onMarkerBlur($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 [attr.stroke-dasharray]=\"dashFor(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 [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\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 (showMarkers() || interactive()) {\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.is-active]=\"isActiveMarker(marker)\"\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</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%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line{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(--_chart-mark-stagger, 0ms)) backwards}.series-line.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(--_chart-mark-stagger, 0ms)) backwards}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}@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{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{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"] }]
1615
+ args: [{ selector: 'g[dsLineSeries]', standalone: true, imports: [ChartPinMarkerComponent], exportAs: 'dsLineSeries', encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"lines\"\n [class.dims-others]=\"dimOthers()\"\n [class.is-outlined]=\"outline()\"\n (pointerover)=\"onMarkerOver($event)\"\n (pointerout)=\"onMarkerOut($event)\"\n (keydown)=\"onMarkerKey($event)\"\n (click)=\"onMarkerClick($event)\">\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.areaPaths; track $index) {\n <svg:path\n class=\"series-area\"\n [class.is-stacked]=\"stacked()\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (outline()) {\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-halo\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\" />\n }\n }\n }\n\n @for (entry of plotted(); track entry.series.id) {\n @for (path of entry.linePaths; track $index) {\n <svg:path\n class=\"series-line\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.is-dashed]=\"dashFor(entry.seriesIndex) !== null\"\n [attr.stroke-dasharray]=\"dashFor(entry.seriesIndex)\"\n [attr.pathLength]=\"dashFor(entry.seriesIndex) === null ? 1 : null\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.d]=\"path\"\n [attr.stroke]=\"entry.color\"\n (animate.leave)=\"leaveMark($event)\" />\n }\n }\n\n @if (\n showMarkers() ||\n interactive() ||\n pins()\n ) {\n @for (entry of plotted(); track entry.series.id) {\n @for (marker of entry.markers; track marker.key) {\n <svg:circle\n #markerEl\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"pins()\"\n [class.is-active]=\"isActiveMarker(marker)\"\n [style.--_chart-mark-stagger]=\"seriesStagger(entry.seriesIndex)\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.data-mark-index]=\"marker.markIndex\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.markIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"interactive() ? markerLabel(marker) : null\" />\n }\n }\n }\n\n @if (pinnedMarker(); as marker) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + marker.x + ',' + (marker.y - pinLift) + ')'\n \" />\n }\n</svg:g>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line:not(.is-dashed){stroke-dasharray:1}.series-line:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line:not(.is-dashed){animation-delay:0ms}}.series-line:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo:not(.is-dashed){stroke-dasharray:1}.series-halo:not(.is-dashed){animation:ds-chart-line-draw var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo:not(.is-dashed){animation-delay:0ms}}.series-halo:not(.is-dashed).mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-line.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-line.is-dashed{animation-delay:0ms}}.series-line.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-halo.is-dashed{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-halo.is-dashed{animation-delay:0ms}}.series-halo.is-dashed.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--duration-base) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-area{animation-delay:0ms}}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.series-marker{animation-delay:0ms}}@media not (forced-colors:active){.series-marker:focus{outline:none}}.lines{--_chart-line-width: var(--ds-chart-line-width);--_chart-line-width-bold: var(--ds-chart-line-width-bold);--_chart-dot-radius: var(--ds-chart-dot-radius);--_chart-dot-radius-active: var(--ds-chart-dot-radius-active);--_chart-area-opacity: var(--ds-chart-area-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker.interactive,.series-marker.pins{cursor:pointer}.series-area{fill-opacity:var(--_chart-area-opacity);stroke:none}.series-area.is-stacked{stroke:var(--surface-default);stroke-width:2;stroke-linejoin:round}.lines:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_chart-line-width-bold)}.series-halo{fill:none;stroke:var(--surface-default);stroke-width:calc(var(--_chart-line-width) + var(--_chart-line-outline, 3px));stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-halo.is-dimmed{opacity:0}.series-line{fill:none;stroke-width:var(--_chart-line-width);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.series-marker{transform-box:fill-box;transform-origin:center;r:var(--_chart-dot-radius)}.lines.is-outlined .series-marker{stroke:var(--surface-default);stroke-width:var(--_chart-line-outline, 3px);paint-order:stroke}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible,.series-marker.ghost.is-active{fill-opacity:1}.series-marker.is-active{r:var(--_chart-dot-radius-active)}.series-marker.interactive{stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(pointer:coarse){.series-marker.interactive{stroke-width:44px}}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color));r:var(--_chart-dot-radius-active)}@media(forced-colors:active){.series-line{stroke:CanvasText}.series-marker{fill:CanvasText}}\n"] }]
1510
1616
  }], 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 }] }] } });
1511
1617
 
1512
1618
  /**
@@ -1524,11 +1630,11 @@ class ReferenceLabelComponent {
1524
1630
  thresholds = input([], ...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
1525
1631
  lines = computed(() => thresholdMarks(this.thresholds(), this.scales.plot(), this.scales.yPosition()).filter((mark) => mark.label !== ''), ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
1526
1632
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1527
- 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: "<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", 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 });
1633
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ReferenceLabelComponent, isStandalone: true, selector: "g[dsReferenceLabel]", inputs: { thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (lines().length) {\n <svg:g class=\"reference-labels\">\n @for (line of lines(); track line.key) {\n <svg:text\n class=\"threshold-label\"\n text-anchor=\"start\"\n [style.--_chart-threshold-color]=\"line.color\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".threshold-label{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));fill:var(--_chart-threshold-color);font-size:var(--ds-chart-axis-font-size);font-weight:600;paint-order:stroke;stroke:var(--ds-chart-frame-bg-color);stroke-width:3;stroke-linejoin:round}@media(forced-colors:active){.threshold-label{fill:CanvasText;stroke:Canvas}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1528
1634
  }
1529
1635
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLabelComponent, decorators: [{
1530
1636
  type: Component,
1531
- args: [{ selector: 'g[dsReferenceLabel]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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", 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"] }]
1637
+ args: [{ selector: 'g[dsReferenceLabel]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (lines().length) {\n <svg:g class=\"reference-labels\">\n @for (line of lines(); track line.key) {\n <svg:text\n class=\"threshold-label\"\n text-anchor=\"start\"\n [style.--_chart-threshold-color]=\"line.color\"\n [attr.x]=\"line.labelX\"\n [attr.y]=\"line.labelY\">\n {{ line.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".threshold-label{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));fill:var(--_chart-threshold-color);font-size:var(--ds-chart-axis-font-size);font-weight:600;paint-order:stroke;stroke:var(--ds-chart-frame-bg-color);stroke-width:3;stroke-linejoin:round}@media(forced-colors:active){.threshold-label{fill:CanvasText;stroke:Canvas}}\n"] }]
1532
1638
  }], propDecorators: { thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }] } });
1533
1639
 
1534
1640
  let nextReferenceId = 0;
@@ -1561,11 +1667,11 @@ class ReferenceLineComponent {
1561
1667
  }
1562
1668
  lines = computed(() => thresholdMarks(this.thresholds(), this.scales.plot(), this.scales.yPosition()), ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
1563
1669
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1564
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ReferenceLineComponent, isStandalone: true, selector: "g[dsReferenceLine]", inputs: { thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<svg:g\n class=\"references\"\n aria-hidden=\"true\">\n @for (line of lines(); track line.key) {\n <svg:g\n class=\"reference\"\n [style.--_chart-threshold-color]=\"line.color\">\n @if (line.band) {\n <svg:rect\n class=\"threshold-band\"\n [attr.x]=\"line.left\"\n [attr.y]=\"line.top\"\n [attr.width]=\"line.width\"\n [attr.height]=\"line.height\" />\n } @else {\n <svg:line\n class=\"threshold-line\"\n [class.is-dashed]=\"line.dash === 'dashed'\"\n [class.is-dotted]=\"line.dash === 'dotted'\"\n [attr.x1]=\"line.left\"\n [attr.x2]=\"line.right\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\" />\n }\n </svg:g>\n }\n</svg:g>\n", styles: [".references{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));--_chart-threshold-band-opacity: var(--ds-chart-threshold-band-opacity, var(--chart-threshold-band-opacity));--_chart-threshold-dashed-pattern: var(--ds-chart-threshold-dashed-pattern, var(--chart-threshold-dashed-pattern));--_chart-threshold-dotted-pattern: var(--ds-chart-threshold-dotted-pattern, var(--chart-threshold-dotted-pattern));pointer-events:none}.threshold-line{stroke:var(--_chart-threshold-color);stroke-width:var(--ds-chart-line-width)}.threshold-line.is-dashed{stroke-dasharray:var(--_chart-threshold-dashed-pattern)}.threshold-line.is-dotted{stroke-dasharray:var(--_chart-threshold-dotted-pattern);stroke-linecap:round}.threshold-band{fill:var(--_chart-threshold-color);fill-opacity:var(--_chart-threshold-band-opacity)}@media(forced-colors:active){.threshold-line{stroke:CanvasText}.threshold-band{fill:CanvasText}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1670
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ReferenceLineComponent, isStandalone: true, selector: "g[dsReferenceLine]", inputs: { thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (lines().length) {\n <svg:g\n class=\"references\"\n aria-hidden=\"true\">\n @for (line of lines(); track line.key) {\n <svg:g\n class=\"reference\"\n [style.--_chart-threshold-color]=\"line.color\">\n @if (line.band) {\n <svg:rect\n class=\"threshold-band\"\n [attr.x]=\"line.left\"\n [attr.y]=\"line.top\"\n [attr.width]=\"line.width\"\n [attr.height]=\"line.height\" />\n } @else {\n <svg:line\n class=\"threshold-line\"\n [class.is-dashed]=\"line.dash === 'dashed'\"\n [class.is-dotted]=\"line.dash === 'dotted'\"\n [attr.x1]=\"line.left\"\n [attr.x2]=\"line.right\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\" />\n }\n </svg:g>\n }\n </svg:g>\n}\n", styles: [".references{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));--_chart-threshold-band-opacity: var(--ds-chart-threshold-band-opacity, var(--chart-threshold-band-opacity));--_chart-threshold-dashed-pattern: var(--ds-chart-threshold-dashed-pattern, var(--chart-threshold-dashed-pattern));--_chart-threshold-dotted-pattern: var(--ds-chart-threshold-dotted-pattern, var(--chart-threshold-dotted-pattern));pointer-events:none}.threshold-line{stroke:var(--_chart-threshold-color);stroke-width:var(--ds-chart-line-width)}.threshold-line.is-dashed{stroke-dasharray:var(--_chart-threshold-dashed-pattern)}.threshold-line.is-dotted{stroke-dasharray:var(--_chart-threshold-dotted-pattern);stroke-linecap:round}.threshold-band{fill:var(--_chart-threshold-color);fill-opacity:var(--_chart-threshold-band-opacity)}@media(forced-colors:active){.threshold-line{stroke:CanvasText}.threshold-band{fill:CanvasText}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1565
1671
  }
1566
1672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ReferenceLineComponent, decorators: [{
1567
1673
  type: Component,
1568
- args: [{ selector: 'g[dsReferenceLine]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg:g\n class=\"references\"\n aria-hidden=\"true\">\n @for (line of lines(); track line.key) {\n <svg:g\n class=\"reference\"\n [style.--_chart-threshold-color]=\"line.color\">\n @if (line.band) {\n <svg:rect\n class=\"threshold-band\"\n [attr.x]=\"line.left\"\n [attr.y]=\"line.top\"\n [attr.width]=\"line.width\"\n [attr.height]=\"line.height\" />\n } @else {\n <svg:line\n class=\"threshold-line\"\n [class.is-dashed]=\"line.dash === 'dashed'\"\n [class.is-dotted]=\"line.dash === 'dotted'\"\n [attr.x1]=\"line.left\"\n [attr.x2]=\"line.right\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\" />\n }\n </svg:g>\n }\n</svg:g>\n", styles: [".references{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));--_chart-threshold-band-opacity: var(--ds-chart-threshold-band-opacity, var(--chart-threshold-band-opacity));--_chart-threshold-dashed-pattern: var(--ds-chart-threshold-dashed-pattern, var(--chart-threshold-dashed-pattern));--_chart-threshold-dotted-pattern: var(--ds-chart-threshold-dotted-pattern, var(--chart-threshold-dotted-pattern));pointer-events:none}.threshold-line{stroke:var(--_chart-threshold-color);stroke-width:var(--ds-chart-line-width)}.threshold-line.is-dashed{stroke-dasharray:var(--_chart-threshold-dashed-pattern)}.threshold-line.is-dotted{stroke-dasharray:var(--_chart-threshold-dotted-pattern);stroke-linecap:round}.threshold-band{fill:var(--_chart-threshold-color);fill-opacity:var(--_chart-threshold-band-opacity)}@media(forced-colors:active){.threshold-line{stroke:CanvasText}.threshold-band{fill:CanvasText}}\n"] }]
1674
+ args: [{ selector: 'g[dsReferenceLine]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (lines().length) {\n <svg:g\n class=\"references\"\n aria-hidden=\"true\">\n @for (line of lines(); track line.key) {\n <svg:g\n class=\"reference\"\n [style.--_chart-threshold-color]=\"line.color\">\n @if (line.band) {\n <svg:rect\n class=\"threshold-band\"\n [attr.x]=\"line.left\"\n [attr.y]=\"line.top\"\n [attr.width]=\"line.width\"\n [attr.height]=\"line.height\" />\n } @else {\n <svg:line\n class=\"threshold-line\"\n [class.is-dashed]=\"line.dash === 'dashed'\"\n [class.is-dotted]=\"line.dash === 'dotted'\"\n [attr.x1]=\"line.left\"\n [attr.x2]=\"line.right\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\" />\n }\n </svg:g>\n }\n </svg:g>\n}\n", styles: [".references{--_chart-threshold-color: var(--ds-chart-threshold-color, var(--chart-threshold-color));--_chart-threshold-band-opacity: var(--ds-chart-threshold-band-opacity, var(--chart-threshold-band-opacity));--_chart-threshold-dashed-pattern: var(--ds-chart-threshold-dashed-pattern, var(--chart-threshold-dashed-pattern));--_chart-threshold-dotted-pattern: var(--ds-chart-threshold-dotted-pattern, var(--chart-threshold-dotted-pattern));pointer-events:none}.threshold-line{stroke:var(--_chart-threshold-color);stroke-width:var(--ds-chart-line-width)}.threshold-line.is-dashed{stroke-dasharray:var(--_chart-threshold-dashed-pattern)}.threshold-line.is-dotted{stroke-dasharray:var(--_chart-threshold-dotted-pattern);stroke-linecap:round}.threshold-band{fill:var(--_chart-threshold-color);fill-opacity:var(--_chart-threshold-band-opacity)}@media(forced-colors:active){.threshold-line{stroke:CanvasText}.threshold-band{fill:CanvasText}}\n"] }]
1569
1675
  }], ctorParameters: () => [], propDecorators: { thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }] } });
1570
1676
 
1571
1677
  /**
@@ -1592,11 +1698,11 @@ class SeriesAnnotationComponent {
1592
1698
  })), plot.left + plot.width);
1593
1699
  }, ...(ngDevMode ? [{ debugName: "placed" }] : /* istanbul ignore next */ []));
1594
1700
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SeriesAnnotationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1595
- 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: "<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", 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 });
1701
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SeriesAnnotationComponent, isStandalone: true, selector: "g[dsSeriesAnnotation]", inputs: { annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (placed().length) {\n <svg:g class=\"annotations\">\n @for (note of placed(); track note.key) {\n <svg:text\n class=\"annotation\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".annotations{--_chart-annotation-color: var(--ds-chart-annotation-color, var(--text-primary));--_chart-annotation-font-size: var(--ds-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_chart-annotation-font-weight: var(--ds-chart-annotation-font-weight, var(--font-weight-bold));--_chart-annotation-halo-color: var(--ds-chart-annotation-halo-color, var(--surface-default));--_chart-annotation-halo-width: var(--ds-chart-annotation-halo-width, 3px)}.annotation{fill:var(--_chart-annotation-color);font-size:var(--_chart-annotation-font-size);font-weight:var(--_chart-annotation-font-weight);paint-order:stroke;stroke:var(--_chart-annotation-halo-color);stroke-width:var(--_chart-annotation-halo-width);stroke-linejoin:round}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1596
1702
  }
1597
1703
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SeriesAnnotationComponent, decorators: [{
1598
1704
  type: Component,
1599
- args: [{ selector: 'g[dsSeriesAnnotation]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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", 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"] }]
1705
+ args: [{ selector: 'g[dsSeriesAnnotation]', standalone: true, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (placed().length) {\n <svg:g class=\"annotations\">\n @for (note of placed(); track note.key) {\n <svg:text\n class=\"annotation\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </svg:text>\n }\n </svg:g>\n}\n", styles: [".annotations{--_chart-annotation-color: var(--ds-chart-annotation-color, var(--text-primary));--_chart-annotation-font-size: var(--ds-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_chart-annotation-font-weight: var(--ds-chart-annotation-font-weight, var(--font-weight-bold));--_chart-annotation-halo-color: var(--ds-chart-annotation-halo-color, var(--surface-default));--_chart-annotation-halo-width: var(--ds-chart-annotation-halo-width, 3px)}.annotation{fill:var(--_chart-annotation-color);font-size:var(--_chart-annotation-font-size);font-weight:var(--_chart-annotation-font-weight);paint-order:stroke;stroke:var(--_chart-annotation-halo-color);stroke-width:var(--_chart-annotation-halo-width);stroke-linejoin:round}\n"] }]
1600
1706
  }], propDecorators: { annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }] } });
1601
1707
 
1602
1708
  /**