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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/CHANGELOG.md +279 -0
  2. package/components.md +16 -16
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +1 -1
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/charts/line-series-component.md +1 -1
  15. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  16. package/docs/agent/overlays/ds-tooltip.md +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -131
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +16 -13
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +109 -105
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +190 -439
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -124
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -164
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +29 -84
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +55 -169
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -121
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +64 -96
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +163 -0
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -0
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -82
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -571
  188. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
  190. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  192. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  194. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  198. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  199. package/migrations/0.14.4.json +231 -0
  200. package/migrations/0.14.5.json +311 -0
  201. package/package.json +9 -1
  202. package/schematics/check-overrides/surface.json +30 -2
  203. package/styles/_breakpoints.scss +6 -23
  204. package/styles/_chart-data-table.scss +3 -11
  205. package/styles/_chart-frame.scss +14 -65
  206. package/styles/_chart-interactive.scss +8 -36
  207. package/styles/_chart-motion.scss +11 -39
  208. package/styles/_check-box.scss +7 -26
  209. package/styles/_check-mark.scss +7 -23
  210. package/styles/_chip-row.scss +3 -14
  211. package/styles/_clear-button.scss +2 -7
  212. package/styles/_control-label.scss +2 -13
  213. package/styles/_control-line.scss +2 -6
  214. package/styles/_dropdown-overlay.scss +8 -33
  215. package/styles/_ds-color.scss +9 -28
  216. package/styles/_field-box.scss +4 -16
  217. package/styles/_field-group-segment.scss +6 -6
  218. package/styles/_field-label.scss +3 -14
  219. package/styles/_field-state.scss +5 -10
  220. package/styles/_focus.scss +20 -60
  221. package/styles/_icon-base.scss +0 -2
  222. package/styles/_layout-utils.scss +0 -3
  223. package/styles/_link.scss +4 -18
  224. package/styles/_overlay-motion.scss +15 -38
  225. package/styles/_page-grid.scss +4 -29
  226. package/styles/_press.scss +5 -18
  227. package/styles/_reset.scss +1 -14
  228. package/styles/_scrollbar.scss +0 -2
  229. package/styles/_skeleton-shimmer.scss +3 -14
  230. package/styles/_status.scss +5 -13
  231. package/styles/_surface-motion.scss +7 -34
  232. package/styles/_table-controls.scss +3 -6
  233. package/styles/_text-clip.scss +2 -6
  234. package/styles/_theme-activation.scss +7 -20
  235. package/styles/_toast-overlay.scss +8 -3
  236. package/styles/_tokens-charts.scss +31 -90
  237. package/styles/_tokens.scss +115 -154
  238. package/styles/_typography.scss +6 -13
  239. package/styles/_visually-hidden.scss +2 -3
  240. package/styles/ds.scss +2 -10
  241. package/themes/_base-palette.scss +12 -35
  242. package/themes/_semantic.scss +29 -98
  243. package/themes/dark/_palette.scss +15 -29
  244. package/themes/dark/_theme.scss +14 -32
  245. package/themes/light/_palette.scss +2 -17
  246. package/themes/light/_theme.scss +1 -7
  247. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  248. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  249. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  250. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  251. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  252. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  253. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  254. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  255. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  256. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  257. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  258. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  259. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  260. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  261. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  262. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  263. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  264. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  265. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  266. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +31 -49
  267. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +165 -382
  268. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  269. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  270. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -125
  271. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  272. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  273. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  274. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  276. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  277. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  278. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  279. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  280. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  281. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +19 -83
  282. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  283. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  284. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  285. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +54 -163
  286. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  287. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  288. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  289. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  290. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  291. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  292. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  293. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  294. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  295. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  296. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  297. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  298. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  299. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  300. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +25 -94
  301. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  302. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  303. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  304. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  305. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  306. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  307. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  308. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +58 -0
  309. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  310. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  311. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  312. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  313. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  314. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  315. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  316. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  317. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  318. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  319. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  320. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  321. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  322. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  323. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  324. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  325. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  326. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  327. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  328. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  329. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -67
  330. package/types/ids-group-ltd-ids-design-system-components.d.ts +266 -410
  331. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -259
  332. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  333. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  334. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
  335. package/types/ids-group-ltd-ids-design-system.d.ts +1 -0
@@ -1,18 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, inject, ElementRef, afterRenderEffect, ChangeDetectionStrategy, ViewEncapsulation, Component, ViewContainerRef, effect, DestroyRef, Directive, signal } from '@angular/core';
2
+ import { input, computed, inject, ElementRef, afterRenderEffect, ChangeDetectionStrategy, ViewEncapsulation, Component, ViewContainerRef, effect, DestroyRef, Directive, signal } from '@angular/core';
3
3
  import { Overlay } from '@angular/cdk/overlay';
4
4
  import { ComponentPortal } from '@angular/cdk/portal';
5
- import { closeOnScroll, disposeWithLeave, chartDwell } from '@ids-group-ltd/ids-design-system/components';
5
+ import { forwardOverlayTokens, closeOnScroll, disposeWithLeave, chartDwell } from '@ids-group-ltd/ids-design-system/components';
6
6
  import { NgTemplateOutlet } from '@angular/common';
7
7
  import { DomSanitizer } from '@angular/platform-browser';
8
8
  import { ICONS } from '@ids-group-ltd/ids-design-system/core';
9
9
 
10
- // WCAG 1.4.11: a graphical object needs 3:1 against what it sits on to be seen.
11
- const NON_TEXT_CONTRAST = 3;
10
+ // Below this the dot reads as the panel itself, as the palest heat step does on a light panel (1.14:1).
11
+ // A merely low-contrast hue still reads as a colour next to its label and takes no ring.
12
+ const SAME_AS_GROUND = 1.5;
12
13
  let probe = null;
13
14
  const blendsByPair = new Map();
14
- // Painting the colour and reading the pixel back resolves any CSS colour syntax to sRGB -
15
- // `oklch()`, `color-mix()` and named colours included - where parsing the string would not.
15
+ // Painting and reading the pixel back resolves any CSS colour syntax (`oklch()`, `color-mix()`) to sRGB.
16
16
  function srgbOf(color) {
17
17
  if (!probe) {
18
18
  const canvas = document.createElement('canvas');
@@ -36,8 +36,7 @@ function relativeLuminance([red, green, blue]) {
36
36
  };
37
37
  return 0.2126 * linear(red) + 0.7152 * linear(green) + 0.0722 * linear(blue);
38
38
  }
39
- /** Whether a swatch of `color` sits on `ground` below the non-text contrast a graphical object
40
- * needs, and so has to be ringed to be seen. Both are computed CSS colours. */
39
+ /** Whether `color` is close enough to `ground` to vanish into it and needs a ring. Both are computed CSS colours. */
41
40
  function swatchBlendsInto(color, ground) {
42
41
  const pair = `${color}|${ground}`;
43
42
  const known = blendsByPair.get(pair);
@@ -48,19 +47,28 @@ function swatchBlendsInto(color, ground) {
48
47
  const groundLuminance = relativeLuminance(srgbOf(ground));
49
48
  const ratio = (Math.max(swatchLuminance, groundLuminance) + 0.05) /
50
49
  (Math.min(swatchLuminance, groundLuminance) + 0.05);
51
- const blends = ratio < NON_TEXT_CONTRAST;
50
+ const blends = ratio < SAME_AS_GROUND;
52
51
  blendsByPair.set(pair, blends);
53
52
  return blends;
54
53
  }
55
54
 
55
+ const AUTO_SWATCH_MIN = 2;
56
+ const AUTO_SWATCH_MAX = 4;
56
57
  class ChartTooltipPanelComponent {
57
58
  /** The category and the readings the panel prints. */
58
59
  context = input.required(...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
59
60
  /** The chart's projected `#dsChartTooltip` template. Null renders the built-in rows. */
60
61
  template = input(null, ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
62
+ swatches = input('auto', ...(ngDevMode ? [{ debugName: "swatches" }] : /* istanbul ignore next */ []));
63
+ showsSwatches = computed(() => {
64
+ const swatches = this.swatches();
65
+ const count = this.context().entries.length;
66
+ return swatches === 'auto'
67
+ ? count >= AUTO_SWATCH_MIN && count <= AUTO_SWATCH_MAX
68
+ : swatches;
69
+ }, ...(ngDevMode ? [{ debugName: "showsSwatches" }] : /* istanbul ignore next */ []));
61
70
  host = inject(ElementRef);
62
71
  constructor() {
63
- // Before the frame paints, so a ring never lands a frame after its row.
64
72
  afterRenderEffect({
65
73
  earlyRead: () => {
66
74
  this.context();
@@ -79,28 +87,28 @@ class ChartTooltipPanelComponent {
79
87
  });
80
88
  }
81
89
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
82
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartTooltipPanelComponent, isStandalone: true, selector: "ds-chart-tooltip-panel", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" } }, ngImport: i0, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul class=\"entries\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color);--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
90
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartTooltipPanelComponent, isStandalone: true, selector: "ds-chart-tooltip-panel", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, swatches: { classPropertyName: "swatches", publicName: "swatches", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" } }, ngImport: i0, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
83
91
  }
84
92
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, decorators: [{
85
93
  type: Component,
86
94
  args: [{ selector: 'ds-chart-tooltip-panel', standalone: true, imports: [NgTemplateOutlet], host: {
87
- // Hidden from assistive technology on purpose: every interactive mark already
88
- // carries the same label and value in its `aria-label`, so exposing the panel
89
- // makes a screen reader read each reading twice.
95
+ // Hidden from AT: every interactive mark's `aria-label` already carries the reading.
90
96
  'aria-hidden': 'true',
91
- }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul class=\"entries\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color);--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"] }]
92
- }], ctorParameters: () => [], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }] } });
97
+ }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);pointer-events:none}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"] }]
98
+ }], ctorParameters: () => [], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], swatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "swatches", required: false }] }] } });
93
99
 
94
100
  const POINTER_GAP_PX = 10;
95
- // A fingertip covers roughly 40 CSS px, so a touch-opened panel has to clear the tap
96
- // point by more than a pointer-opened one does.
101
+ // Portaled to the body, so a chart's own values reach the panel only by being copied.
102
+ const CHART_TOOLTIP_TOKENS = [
103
+ '--ds-chart-tooltip-bg-color',
104
+ '--ds-chart-tooltip-text-color',
105
+ '--ds-chart-tooltip-border-color',
106
+ ];
107
+ // A fingertip covers roughly 40 CSS px, so a touch-opened panel clears the tap point further.
97
108
  const TOUCH_GAP_PX = 48;
98
- // Keeps the panel off the screen edge, and matches the `--space-3` the panel reserves in its own
99
- // `max-height`. The two have to agree: CDK pushes against this margin, and a panel allowed to grow
100
- // past what the margin leaves is one push cannot fit.
109
+ // Must equal the `--space-3` in the panel's `max-height`.
101
110
  const VIEWPORT_MARGIN_PX = 12;
102
- // Four fallbacks are what make the panel flip out of a small dashboard card rather than be
103
- // clipped by it. Above first, held or not: the panel opens over the mark it is about.
111
+ // Four fallbacks let the panel flip out of a small card instead of being clipped. Above first.
104
112
  function positionsFor(gap) {
105
113
  return [
106
114
  {
@@ -133,31 +141,26 @@ function positionsFor(gap) {
133
141
  },
134
142
  ];
135
143
  }
136
- /**
137
- * The chart tooltip, driven entirely by the context a chart hands it: non-null opens the
138
- * panel, null closes it. Pointer and keyboard therefore share one path — a chart that
139
- * sets the context on `focus` gets the panel with no pointer involved.
140
- *
141
- * @internal
142
- */
144
+ /** The chart tooltip: a non-null context opens the panel, null closes it. @internal */
143
145
  class ChartTooltipDirective {
144
146
  overlay = inject(Overlay);
145
147
  viewContainerRef = inject(ViewContainerRef);
148
+ host = inject(ElementRef);
146
149
  dsChartTooltip = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltip" }] : /* istanbul ignore next */ []));
147
150
  dsChartTooltipOrigin = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltipOrigin" }] : /* istanbul ignore next */ []));
148
151
  dsChartTooltipTemplate = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltipTemplate" }] : /* istanbul ignore next */ []));
149
- /** Extra clearance between the mark and the panel, on top of the pointer default. A chart that
150
- * prints something ABOVE its mark — a column with its value on top — needs the panel to clear
151
- * that text as well as the mark, or the two overlap. Ignored for touch, where the gap is already
152
- * sized for a fingertip. */
152
+ /** Extra clearance between the mark and the panel, for text printed above the mark. Ignored for touch. */
153
153
  dsChartTooltipExtraGap = input(0, ...(ngDevMode ? [{ debugName: "dsChartTooltipExtraGap" }] : /* istanbul ignore next */ []));
154
- /** A held panel takes the pointer again, so its text can be selected. While it merely follows
155
- * the pointer the pane stays inert, or the mark it covers never sees the pointer at all. */
154
+ /** A held panel takes the pointer so its text can be selected; a following one stays inert or
155
+ * the mark under it never sees the pointer. */
156
156
  dsChartTooltipPinned = input(false, ...(ngDevMode ? [{ debugName: "dsChartTooltipPinned" }] : /* istanbul ignore next */ []));
157
+ /** Whether each reading carries its colour dot. `'auto'` draws them for two to four readings. */
158
+ dsChartTooltipSwatches = input('auto', ...(ngDevMode ? [{ debugName: "dsChartTooltipSwatches" }] : /* istanbul ignore next */ []));
157
159
  overlayRef = null;
158
160
  panelRef = null;
159
161
  detachScrollReposition = null;
160
162
  detachEscape = null;
163
+ glide = null;
161
164
  constructor() {
162
165
  effect(() => {
163
166
  const context = this.dsChartTooltip();
@@ -171,8 +174,11 @@ class ChartTooltipDirective {
171
174
  inject(DestroyRef).onDestroy(() => this.close());
172
175
  }
173
176
  open(context, origin) {
174
- // Reposition rather than re-create while the pointer moves between marks: a fresh
175
- // OverlayRef per mark restarts the enter transition on every band it crosses.
177
+ // Measured before the in-flight glide is dropped, so a mid-glide re-aim starts from the visible position.
178
+ const from = this.overlayRef?.overlayElement.getBoundingClientRect() ?? null;
179
+ this.glide?.cancel();
180
+ this.glide = null;
181
+ // Reposition, not re-create: a fresh OverlayRef restarts the enter transition.
176
182
  if (!this.overlayRef) {
177
183
  this.overlayRef = this.overlay.create({
178
184
  positionStrategy: this.strategyFor(origin),
@@ -180,11 +186,12 @@ class ChartTooltipDirective {
180
186
  scrollStrategy: this.overlay.scrollStrategies.reposition(),
181
187
  });
182
188
  this.panelRef = this.overlayRef.attach(new ComponentPortal(ChartTooltipPanelComponent, this.viewContainerRef));
183
- // CDK's reposition strategy watches `window` and registered `cdkScrollable`s only, so it
184
- // misses an app's own `overflow: auto` container. Moved rather than closed: a PINNED mark
185
- // stops answering pointer moves, so a close here would be permanent, leaving the pin glyph
186
- // and the Unpin control standing over a reading that is gone.
187
- this.detachScrollReposition = closeOnScroll(this.overlayRef, () => this.overlayRef?.updatePosition());
189
+ forwardOverlayTokens(this.overlayRef, this.host.nativeElement, CHART_TOOLTIP_TOKENS);
190
+ // CDK's reposition strategy misses an app's own `overflow: auto` container. A following panel
191
+ // closes; a pinned one moves, or a close would strand the pin glyph and Unpin.
192
+ this.detachScrollReposition = closeOnScroll(this.overlayRef, () => this.dsChartTooltipPinned()
193
+ ? this.overlayRef?.updatePosition()
194
+ : this.close());
188
195
  this.detachEscape = this.closeOnEscape();
189
196
  }
190
197
  else {
@@ -193,6 +200,33 @@ class ChartTooltipDirective {
193
200
  this.overlayRef.overlayElement.classList.toggle('is-pinned', this.dsChartTooltipPinned());
194
201
  this.panelRef?.setInput('context', context);
195
202
  this.panelRef?.setInput('template', this.dsChartTooltipTemplate());
203
+ this.panelRef?.setInput('swatches', this.dsChartTooltipSwatches());
204
+ if (from) {
205
+ // Render the new reading first, or a resized panel lands where the old one would.
206
+ this.panelRef?.changeDetectorRef.detectChanges();
207
+ this.overlayRef.updatePosition();
208
+ this.glideFrom(from, this.overlayRef.overlayElement);
209
+ }
210
+ }
211
+ // `translate`, not `transform`: the pane's enter and leave animate `transform`.
212
+ glideFrom(from, pane) {
213
+ const to = pane.getBoundingClientRect();
214
+ const deltaX = from.left - to.left;
215
+ const deltaY = from.top - to.top;
216
+ if ((deltaX === 0 && deltaY === 0) || typeof pane.animate !== 'function') {
217
+ return;
218
+ }
219
+ const style = getComputedStyle(pane);
220
+ const duration = milliseconds(style.getPropertyValue('--ds-motion-chart-tooltip-move-duration'));
221
+ if (duration <= 0) {
222
+ return;
223
+ }
224
+ this.glide = pane.animate([{ translate: `${deltaX}px ${deltaY}px` }, { translate: '0 0' }], {
225
+ duration,
226
+ easing: style
227
+ .getPropertyValue('--ds-motion-chart-tooltip-move-easing')
228
+ .trim() || 'ease',
229
+ });
196
230
  }
197
231
  strategyFor(origin) {
198
232
  const gap = coarsePointer()
@@ -206,10 +240,7 @@ class ChartTooltipDirective {
206
240
  .withViewportMargin(VIEWPORT_MARGIN_PX)
207
241
  .withPositions(positionsFor(gap));
208
242
  }
209
- // WCAG 1.4.13 wants the panel dismissable WITHOUT moving the pointer or the focus, which rules
210
- // out "move off the mark". Nothing re-opens it afterwards: the effect re-runs on a CHANGE to the
211
- // context or the origin, and neither changes while the pointer rests where it already is — so the
212
- // reader keeps the screen they cleared until they visit another mark.
243
+ // WCAG 1.4.13: dismissable without moving pointer or focus. Stays closed until the context or origin changes.
213
244
  closeOnEscape() {
214
245
  if (typeof document === 'undefined') {
215
246
  return () => undefined;
@@ -227,15 +258,13 @@ class ChartTooltipDirective {
227
258
  this.detachEscape = null;
228
259
  this.detachScrollReposition?.();
229
260
  this.detachScrollReposition = null;
230
- // A dismissal, never a selection: the panel closes when the reader leaves the plot, and the
231
- // family's answer to that is a fade. Moving between marks repositions this overlay rather than
232
- // closing it, so nothing here can lag behind the pointer.
233
261
  disposeWithLeave(this.overlayRef, 'dismiss');
262
+ this.glide = null;
234
263
  this.overlayRef = null;
235
264
  this.panelRef = null;
236
265
  }
237
266
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
238
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: ChartTooltipDirective, isStandalone: true, selector: "[dsChartTooltip]", inputs: { dsChartTooltip: { classPropertyName: "dsChartTooltip", publicName: "dsChartTooltip", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipOrigin: { classPropertyName: "dsChartTooltipOrigin", publicName: "dsChartTooltipOrigin", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipTemplate: { classPropertyName: "dsChartTooltipTemplate", publicName: "dsChartTooltipTemplate", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipExtraGap: { classPropertyName: "dsChartTooltipExtraGap", publicName: "dsChartTooltipExtraGap", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipPinned: { classPropertyName: "dsChartTooltipPinned", publicName: "dsChartTooltipPinned", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
267
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: ChartTooltipDirective, isStandalone: true, selector: "[dsChartTooltip]", inputs: { dsChartTooltip: { classPropertyName: "dsChartTooltip", publicName: "dsChartTooltip", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipOrigin: { classPropertyName: "dsChartTooltipOrigin", publicName: "dsChartTooltipOrigin", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipTemplate: { classPropertyName: "dsChartTooltipTemplate", publicName: "dsChartTooltipTemplate", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipExtraGap: { classPropertyName: "dsChartTooltipExtraGap", publicName: "dsChartTooltipExtraGap", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipPinned: { classPropertyName: "dsChartTooltipPinned", publicName: "dsChartTooltipPinned", isSignal: true, isRequired: false, transformFunction: null }, dsChartTooltipSwatches: { classPropertyName: "dsChartTooltipSwatches", publicName: "dsChartTooltipSwatches", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
239
268
  }
240
269
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipDirective, decorators: [{
241
270
  type: Directive,
@@ -243,7 +272,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
243
272
  selector: '[dsChartTooltip]',
244
273
  standalone: true,
245
274
  }]
246
- }], ctorParameters: () => [], propDecorators: { dsChartTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltip", required: false }] }], dsChartTooltipOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipOrigin", required: false }] }], dsChartTooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipTemplate", required: false }] }], dsChartTooltipExtraGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipExtraGap", required: false }] }], dsChartTooltipPinned: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipPinned", required: false }] }] } });
275
+ }], ctorParameters: () => [], propDecorators: { dsChartTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltip", required: false }] }], dsChartTooltipOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipOrigin", required: false }] }], dsChartTooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipTemplate", required: false }] }], dsChartTooltipExtraGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipExtraGap", required: false }] }], dsChartTooltipPinned: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipPinned", required: false }] }], dsChartTooltipSwatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsChartTooltipSwatches", required: false }] }] } });
276
+ function milliseconds(duration) {
277
+ const value = parseFloat(duration);
278
+ if (!Number.isFinite(value)) {
279
+ return 0;
280
+ }
281
+ return duration.trim().endsWith('ms') ? value : value * 1000;
282
+ }
247
283
  function coarsePointer() {
248
284
  return (typeof window !== 'undefined' &&
249
285
  window.matchMedia('(pointer: coarse)').matches);
@@ -251,32 +287,25 @@ function coarsePointer() {
251
287
 
252
288
  /**
253
289
  * The pointer-and-focus target the tooltip reads, for a chart whose marks are elements.
254
- * Pointer and keyboard write the same pair, so a chart wires `pointerenter` and `focus` to
255
- * `enter` and gets one code path rather than two.
290
+ * Pointer and keyboard write the same pair: wire `pointerenter` and `focus` to `enter`.
256
291
  *
257
- * A POINTER WAITS. It is answered once it has rested on a mark for `hoverDelayMs`, and at once
258
- * while the chart has already answered it; focus, a tap and a pin are answered at once.
292
+ * A pointer is answered after resting `hoverDelayMs` on a mark (at once while the chart has
293
+ * already answered); focus, a tap and a pin are answered at once.
259
294
  *
260
- * A TAP LATCHES. A touch fires `pointerleave` the moment the finger lifts, so without this the
261
- * panel would flash and vanish; latched, it stays until the next tap lands outside the mark. Call
262
- * from an injection context — the release listener is torn down with the component.
295
+ * A tap latches: touch fires `pointerleave` on lift, so the panel stays until the next tap
296
+ * outside the mark. Call from an injection context.
263
297
  *
264
298
  * @internal
265
299
  */
266
300
  function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
267
301
  const index = signal(-1, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
268
302
  const origin = signal(null, ...(ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []));
269
- // One flag for two ways of arriving at the same state: a tap, which has no hover to hold the
270
- // panel open, and a deliberate click under `pinOnClick`. Both release the same way.
271
303
  const pinned = signal(false, ...(ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []));
272
- // A tap latches on its pointer event and the browser then clicks the same mark; that click belongs
273
- // to the tap, and must not read as the second press that lets go.
304
+ // The click after a latching tap belongs to the tap, not to a press that lets go.
274
305
  let tapLatched = false;
275
306
  let pendingClear = null;
276
- // The element that OWNS the handlers, which is not always the tooltip anchor: a column anchors
277
- // its panel to the bar while the whole cell answers the pointer. A press is "outside" only when
278
- // it misses this, or a click on the cell beside the bar would release the pin and immediately
279
- // re-take it, leaving the pin looking stuck.
307
+ // Owns the handlers (a column anchors to the bar, the whole cell takes the pointer). A press is
308
+ // outside only when it misses this, or a click beside the bar releases and re-takes the pin.
280
309
  let host = null;
281
310
  const dwell = chartDwell(hoverDelayMs);
282
311
  const clear = () => {
@@ -290,18 +319,14 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
290
319
  document.removeEventListener('keydown', releaseOnEscape, true);
291
320
  document.removeEventListener('pointerover', trackPointer, true);
292
321
  };
293
- // The tooltip anchors to the MARK, not to the box that catches the pointer: a column's cell is
294
- // the full plot height, so anchoring to it opens the panel at the top of the chart rather than
295
- // over the column it is about. A selector is resolved INSIDE the box; a legend item's mark is not
296
- // inside it, so that caller passes the element.
322
+ // Anchors to the mark, not the pointer-catching box (a column cell spans the plot height). A
323
+ // selector resolves inside the box; a legend item's mark is outside it, so its caller passes the element.
297
324
  const aim = (at, event, anchor, mark = event.currentTarget) => {
298
325
  const target = mark;
299
326
  if (target instanceof Element) {
300
327
  host = target;
301
328
  const mark = typeof anchor === 'string' ? target.querySelector(anchor) : anchor;
302
- // A mark drawn from a zero value is degenerate in one axis - a column loses its height, a
303
- // bar its width - and an overlay anchored to it lands at that edge rather than near the
304
- // reading. Both dimensions have to be real. The hover target always is.
329
+ // A zero-value mark has no height or width and would anchor to an edge.
305
330
  const box = mark?.getBoundingClientRect();
306
331
  const aimable = box && box.width > 0 && box.height > 0;
307
332
  origin.set(aimable ? (mark ?? target) : target);
@@ -314,8 +339,6 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
314
339
  document.addEventListener('pointerdown', release, true);
315
340
  document.addEventListener('keydown', releaseOnEscape, true);
316
341
  };
317
- // Escape releases the mark as well as the panel. Without this the panel would go and the dimming
318
- // it caused would stay, leaving the chart in a state with nothing on screen explaining it.
319
342
  const releaseOnEscape = (event) => {
320
343
  if (event.key === 'Escape') {
321
344
  clear();
@@ -336,10 +359,8 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
336
359
  document.removeEventListener('pointerover', trackPointer, true);
337
360
  }, Math.max(lingerMs(), 0));
338
361
  };
339
- // One listener answers both halves of "is the pointer on the panel": `pointerover` fires on every
340
- // element the pointer crosses, so arriving on the panel cancels the clear and leaving it for
341
- // anything that is not the mark schedules a new one. Without the second half a panel the pointer
342
- // once touched would never close, because the mark's own `pointerleave` has already fired.
362
+ // `pointerover` fires per element crossed: the panel cancels the clear, anything else but the mark
363
+ // schedules one. Without that a panel the pointer once touched never closes.
343
364
  const trackPointer = (event) => {
344
365
  if (!(event.target instanceof Element)) {
345
366
  return;
@@ -348,15 +369,11 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
348
369
  cancelPendingClear();
349
370
  return;
350
371
  }
351
- // Against the HOST, not the anchor: a legend item and the arc its panel points at are disjoint
352
- // elements, so testing the anchor would clear the panel the moment the pointer moved inside the
353
- // legend item that opened it.
372
+ // Host, not anchor: a legend item and the arc its panel points at are disjoint.
354
373
  if (!host || !host.contains(event.target)) {
355
374
  scheduleClear();
356
375
  }
357
376
  };
358
- // The chart the aimed mark belongs to. Every chart puts its plot in one `<figure>`, so this is
359
- // what tells "pressed another mark of the same chart" apart from "pressed away".
360
377
  const chartOf = (element) => element ? element.closest('figure') : null;
361
378
  const release = (event) => {
362
379
  if (!(event.target instanceof Element)) {
@@ -366,10 +383,7 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
366
383
  if (host && host.contains(event.target)) {
367
384
  return;
368
385
  }
369
- // Hopping the pin from one mark to the next must not pass through "nothing is pinned". This
370
- // handler runs on `pointerdown`, the re-aim on the `click` after it, so clearing here would
371
- // unmount the Unpin control and the pinned styling for a frame and mount them again — a
372
- // flicker on every hop. The press is a re-aim when it lands on another mark of the same chart.
386
+ // Runs on `pointerdown`; the re-aim comes on `click`, so clearing here flickers the Unpin control.
373
387
  const pressedMark = event.target.closest('[data-mark-index]');
374
388
  if (pressedMark && chartOf(pressedMark) === chartOf(host)) {
375
389
  return;
@@ -390,13 +404,10 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
390
404
  origin: origin.asReadonly(),
391
405
  pinned: pinned.asReadonly(),
392
406
  enter(at, event, anchor, mark) {
393
- // A pin HOLDS. Without this the next mark the pointer crossed took the active slot straight
394
- // back, so pinning appeared to work and then followed the pointer anyway — the one thing a
395
- // pin exists not to do. It is released by Escape, or by a press outside the pinned mark.
396
407
  if (pinned()) {
397
408
  return;
398
409
  }
399
- // Taken now: `currentTarget` is gone by the time a delayed answer runs.
410
+ // `currentTarget` is gone by the time a delayed answer runs.
400
411
  const target = mark ?? event.currentTarget;
401
412
  dwell.schedule(at, () => answer(at, event, anchor, target), event);
402
413
  },
@@ -426,9 +437,6 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
426
437
  if (typeof document === 'undefined') {
427
438
  return;
428
439
  }
429
- // The same gesture that set the pin clears it. A press on a DIFFERENT mark has already gone
430
- // through `release` by the time the click lands, so this only ever sees a fresh mark or the
431
- // pinned one.
432
440
  if (pinned() && index() === at) {
433
441
  if (tapLatched) {
434
442
  tapLatched = false;
@@ -438,8 +446,7 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
438
446
  return;
439
447
  }
440
448
  tapLatched = false;
441
- // Re-aiming while already pinned keeps `pinned` true throughout, so nothing that renders on
442
- // it — the Unpin control, the held mark's styling — unmounts between the two marks.
449
+ // Keeps `pinned` true so the Unpin control stays mounted.
443
450
  aim(at, event, anchor, mark);
444
451
  if (!pinned()) {
445
452
  hold();
@@ -464,21 +471,18 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
464
471
  }
465
472
  }
466
473
 
467
- /** Radius of the pin disc, in plot pixels. A mark that places a disc inside itself keeps this
468
- * much room from its edge.
474
+ /** Radius of the pin disc, in plot pixels.
469
475
  *
470
476
  * @internal */
471
477
  const CHART_PIN_RADIUS = 11;
472
- /** How far a disc sits inside the top edge of what it holds. At one radius it sits flush against
473
- * the edge and reads as part of the mark rather than as a badge on it.
478
+ /** Gap between a disc and the top edge of what it holds.
474
479
  *
475
480
  * @internal */
476
481
  const CHART_PIN_GAP = 4;
477
482
  const GLYPH_SIZE = 14;
478
483
  /**
479
- * The disc an SVG chart draws on the mark or category it holds. Drawn rather than composed:
480
- * `ds-icon`'s host is an HTML element, and an element the SVG specification does not know renders
481
- * nothing inside a canvas. The opaque disc is what keeps the glyph legible on any series colour.
484
+ * The disc an SVG chart draws on the mark or category it holds. Drawn, not composed:
485
+ * `ds-icon`'s host is an element SVG does not know, which renders nothing inside a canvas.
482
486
  * Centred on the host's origin; place it with a `transform`.
483
487
  *
484
488
  * @internal