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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/CHANGELOG.md +176 -1
  2. package/components.md +15 -15
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/ds-bar-chart.md +1 -1
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +1 -1
  7. package/docs/agent/charts/ds-config.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  15. package/docs/agent/overlays/ds-tooltip.md +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -130
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +20 -13
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +58 -112
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +182 -432
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -123
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -163
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +27 -85
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +50 -166
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -120
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +29 -13
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -85
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  186. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -579
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  188. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +52 -85
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  190. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  192. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  194. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  196. package/migrations/0.14.5.json +311 -0
  197. package/migrations/0.14.6-beta.0.json +9 -0
  198. package/package.json +1 -1
  199. package/schematics/check-overrides/surface.json +20 -2
  200. package/styles/_breakpoints.scss +6 -23
  201. package/styles/_chart-data-table.scss +3 -11
  202. package/styles/_chart-frame.scss +14 -63
  203. package/styles/_chart-interactive.scss +8 -36
  204. package/styles/_chart-motion.scss +11 -39
  205. package/styles/_check-box.scss +7 -26
  206. package/styles/_check-mark.scss +7 -23
  207. package/styles/_chip-row.scss +3 -14
  208. package/styles/_clear-button.scss +2 -7
  209. package/styles/_control-label.scss +2 -13
  210. package/styles/_control-line.scss +2 -6
  211. package/styles/_dropdown-overlay.scss +8 -33
  212. package/styles/_ds-color.scss +9 -28
  213. package/styles/_field-box.scss +4 -16
  214. package/styles/_field-group-segment.scss +6 -6
  215. package/styles/_field-label.scss +3 -14
  216. package/styles/_field-state.scss +5 -10
  217. package/styles/_focus.scss +20 -60
  218. package/styles/_icon-base.scss +0 -2
  219. package/styles/_layout-utils.scss +0 -3
  220. package/styles/_link.scss +4 -18
  221. package/styles/_overlay-motion.scss +15 -38
  222. package/styles/_page-grid.scss +4 -29
  223. package/styles/_press.scss +5 -18
  224. package/styles/_reset.scss +1 -14
  225. package/styles/_scrollbar.scss +0 -2
  226. package/styles/_skeleton-shimmer.scss +3 -14
  227. package/styles/_status.scss +5 -13
  228. package/styles/_surface-motion.scss +7 -34
  229. package/styles/_table-controls.scss +3 -6
  230. package/styles/_text-clip.scss +2 -6
  231. package/styles/_theme-activation.scss +7 -20
  232. package/styles/_toast-overlay.scss +2 -6
  233. package/styles/_tokens-charts.scss +31 -90
  234. package/styles/_tokens.scss +111 -156
  235. package/styles/_typography.scss +6 -13
  236. package/styles/_visually-hidden.scss +2 -3
  237. package/styles/ds.scss +2 -10
  238. package/themes/_base-palette.scss +12 -35
  239. package/themes/_semantic.scss +29 -98
  240. package/themes/dark/_palette.scss +15 -29
  241. package/themes/dark/_theme.scss +14 -32
  242. package/themes/light/_palette.scss +2 -17
  243. package/themes/light/_theme.scss +1 -7
  244. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  245. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  246. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  247. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  248. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  249. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  250. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  251. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  252. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  253. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  254. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  255. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  256. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  257. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  258. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  259. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  260. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  261. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  262. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  263. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
  264. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
  265. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  266. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  267. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
  268. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  269. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  270. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  271. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  272. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  273. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  274. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  275. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  276. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  277. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  278. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
  279. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  280. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  281. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  282. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
  283. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  284. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  285. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  286. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  287. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  288. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  289. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  290. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  291. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  292. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  293. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  294. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  295. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  296. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  297. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
  298. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  299. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  300. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  301. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  302. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  303. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  304. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  305. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
  306. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  307. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  308. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  309. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  310. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  311. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  312. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  313. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  314. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  315. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  316. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  317. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  318. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  319. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  320. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  321. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  322. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  323. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  324. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  325. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  326. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
  327. package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
  328. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -260
  329. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  330. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  331. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
@@ -2,17 +2,17 @@ import * as i0 from '@angular/core';
2
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,14 +47,13 @@ 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
 
56
- // Past four readings the dots stop telling rows apart and start reading as a column of noise; the
57
- // labels carry the series on their own.
58
- const AUTO_SWATCH_LIMIT = 4;
55
+ const AUTO_SWATCH_MIN = 2;
56
+ const AUTO_SWATCH_MAX = 4;
59
57
  class ChartTooltipPanelComponent {
60
58
  /** The category and the readings the panel prints. */
61
59
  context = input.required(...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
@@ -64,13 +62,13 @@ class ChartTooltipPanelComponent {
64
62
  swatches = input('auto', ...(ngDevMode ? [{ debugName: "swatches" }] : /* istanbul ignore next */ []));
65
63
  showsSwatches = computed(() => {
66
64
  const swatches = this.swatches();
65
+ const count = this.context().entries.length;
67
66
  return swatches === 'auto'
68
- ? this.context().entries.length <= AUTO_SWATCH_LIMIT
67
+ ? count >= AUTO_SWATCH_MIN && count <= AUTO_SWATCH_MAX
69
68
  : swatches;
70
69
  }, ...(ngDevMode ? [{ debugName: "showsSwatches" }] : /* istanbul ignore next */ []));
71
70
  host = inject(ElementRef);
72
71
  constructor() {
73
- // Before the frame paints, so a ring never lands a frame after its row.
74
72
  afterRenderEffect({
75
73
  earlyRead: () => {
76
74
  this.context();
@@ -89,28 +87,28 @@ class ChartTooltipPanelComponent {
89
87
  });
90
88
  }
91
89
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
92
- 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);--_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 });
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 });
93
91
  }
94
92
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, decorators: [{
95
93
  type: Component,
96
94
  args: [{ selector: 'ds-chart-tooltip-panel', standalone: true, imports: [NgTemplateOutlet], host: {
97
- // Hidden from assistive technology on purpose: every interactive mark already
98
- // carries the same label and value in its `aria-label`, so exposing the panel
99
- // makes a screen reader read each reading twice.
95
+ // Hidden from AT: every interactive mark's `aria-label` already carries the reading.
100
96
  'aria-hidden': 'true',
101
- }, 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);--_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"] }]
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"] }]
102
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 }] }] } });
103
99
 
104
100
  const POINTER_GAP_PX = 10;
105
- // A fingertip covers roughly 40 CSS px, so a touch-opened panel has to clear the tap
106
- // 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.
107
108
  const TOUCH_GAP_PX = 48;
108
- // Keeps the panel off the screen edge, and matches the `--space-3` the panel reserves in its own
109
- // `max-height`. The two have to agree: CDK pushes against this margin, and a panel allowed to grow
110
- // past what the margin leaves is one push cannot fit.
109
+ // Must equal the `--space-3` in the panel's `max-height`.
111
110
  const VIEWPORT_MARGIN_PX = 12;
112
- // Four fallbacks are what make the panel flip out of a small dashboard card rather than be
113
- // 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.
114
112
  function positionsFor(gap) {
115
113
  return [
116
114
  {
@@ -143,28 +141,20 @@ function positionsFor(gap) {
143
141
  },
144
142
  ];
145
143
  }
146
- /**
147
- * The chart tooltip, driven entirely by the context a chart hands it: non-null opens the
148
- * panel, null closes it. Pointer and keyboard therefore share one path — a chart that
149
- * sets the context on `focus` gets the panel with no pointer involved.
150
- *
151
- * @internal
152
- */
144
+ /** The chart tooltip: a non-null context opens the panel, null closes it. @internal */
153
145
  class ChartTooltipDirective {
154
146
  overlay = inject(Overlay);
155
147
  viewContainerRef = inject(ViewContainerRef);
148
+ host = inject(ElementRef);
156
149
  dsChartTooltip = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltip" }] : /* istanbul ignore next */ []));
157
150
  dsChartTooltipOrigin = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltipOrigin" }] : /* istanbul ignore next */ []));
158
151
  dsChartTooltipTemplate = input(null, ...(ngDevMode ? [{ debugName: "dsChartTooltipTemplate" }] : /* istanbul ignore next */ []));
159
- /** Extra clearance between the mark and the panel, on top of the pointer default. A chart that
160
- * prints something ABOVE its mark — a column with its value on top — needs the panel to clear
161
- * that text as well as the mark, or the two overlap. Ignored for touch, where the gap is already
162
- * sized for a fingertip. */
152
+ /** Extra clearance between the mark and the panel, for text printed above the mark. Ignored for touch. */
163
153
  dsChartTooltipExtraGap = input(0, ...(ngDevMode ? [{ debugName: "dsChartTooltipExtraGap" }] : /* istanbul ignore next */ []));
164
- /** A held panel takes the pointer again, so its text can be selected. While it merely follows
165
- * 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. */
166
156
  dsChartTooltipPinned = input(false, ...(ngDevMode ? [{ debugName: "dsChartTooltipPinned" }] : /* istanbul ignore next */ []));
167
- /** Whether each reading carries its colour dot. `'auto'` draws them for up to four readings. */
157
+ /** Whether each reading carries its colour dot. `'auto'` draws them for two to four readings. */
168
158
  dsChartTooltipSwatches = input('auto', ...(ngDevMode ? [{ debugName: "dsChartTooltipSwatches" }] : /* istanbul ignore next */ []));
169
159
  overlayRef = null;
170
160
  panelRef = null;
@@ -184,13 +174,11 @@ class ChartTooltipDirective {
184
174
  inject(DestroyRef).onDestroy(() => this.close());
185
175
  }
186
176
  open(context, origin) {
187
- // Measured before the glide in flight is dropped, so a panel re-aimed mid-glide leaves from
188
- // where it is on screen rather than jumping to where that glide was heading.
177
+ // Measured before the in-flight glide is dropped, so a mid-glide re-aim starts from the visible position.
189
178
  const from = this.overlayRef?.overlayElement.getBoundingClientRect() ?? null;
190
179
  this.glide?.cancel();
191
180
  this.glide = null;
192
- // Reposition rather than re-create while the pointer moves between marks: a fresh
193
- // OverlayRef per mark restarts the enter transition on every band it crosses.
181
+ // Reposition, not re-create: a fresh OverlayRef restarts the enter transition.
194
182
  if (!this.overlayRef) {
195
183
  this.overlayRef = this.overlay.create({
196
184
  positionStrategy: this.strategyFor(origin),
@@ -198,11 +186,9 @@ class ChartTooltipDirective {
198
186
  scrollStrategy: this.overlay.scrollStrategies.reposition(),
199
187
  });
200
188
  this.panelRef = this.overlayRef.attach(new ComponentPortal(ChartTooltipPanelComponent, this.viewContainerRef));
201
- // Heard on the document, because CDK's reposition strategy misses an app's own
202
- // `overflow: auto` container. A panel that follows the pointer closes: a scroll carries the
203
- // mark out from under it, and moved instead it rides the viewport edge, one panel per chart
204
- // the pointer crossed. A PINNED panel moves: its mark stops answering pointer moves, so a close
205
- // would be permanent, leaving the pin glyph and the Unpin control over a reading that is gone.
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.
206
192
  this.detachScrollReposition = closeOnScroll(this.overlayRef, () => this.dsChartTooltipPinned()
207
193
  ? this.overlayRef?.updatePosition()
208
194
  : this.close());
@@ -216,15 +202,13 @@ class ChartTooltipDirective {
216
202
  this.panelRef?.setInput('template', this.dsChartTooltipTemplate());
217
203
  this.panelRef?.setInput('swatches', this.dsChartTooltipSwatches());
218
204
  if (from) {
219
- // The new reading is rendered before the landing is measured, or a panel that changes size
220
- // lands where the old one would have.
205
+ // Render the new reading first, or a resized panel lands where the old one would.
221
206
  this.panelRef?.changeDetectorRef.detectChanges();
222
207
  this.overlayRef.updatePosition();
223
208
  this.glideFrom(from, this.overlayRef.overlayElement);
224
209
  }
225
210
  }
226
- // `translate`, not `transform`: the pane's own enter and leave animate `transform`, and a glide
227
- // that replaced it would cut an entrance short.
211
+ // `translate`, not `transform`: the pane's enter and leave animate `transform`.
228
212
  glideFrom(from, pane) {
229
213
  const to = pane.getBoundingClientRect();
230
214
  const deltaX = from.left - to.left;
@@ -256,10 +240,7 @@ class ChartTooltipDirective {
256
240
  .withViewportMargin(VIEWPORT_MARGIN_PX)
257
241
  .withPositions(positionsFor(gap));
258
242
  }
259
- // WCAG 1.4.13 wants the panel dismissable WITHOUT moving the pointer or the focus, which rules
260
- // out "move off the mark". Nothing re-opens it afterwards: the effect re-runs on a CHANGE to the
261
- // context or the origin, and neither changes while the pointer rests where it already is — so the
262
- // 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.
263
244
  closeOnEscape() {
264
245
  if (typeof document === 'undefined') {
265
246
  return () => undefined;
@@ -277,9 +258,6 @@ class ChartTooltipDirective {
277
258
  this.detachEscape = null;
278
259
  this.detachScrollReposition?.();
279
260
  this.detachScrollReposition = null;
280
- // A dismissal, never a selection: the panel closes when the reader leaves the plot, and the
281
- // family's answer to that is a fade. Moving between marks repositions this overlay rather than
282
- // closing it, so nothing here can lag behind the pointer.
283
261
  disposeWithLeave(this.overlayRef, 'dismiss');
284
262
  this.glide = null;
285
263
  this.overlayRef = null;
@@ -309,32 +287,25 @@ function coarsePointer() {
309
287
 
310
288
  /**
311
289
  * The pointer-and-focus target the tooltip reads, for a chart whose marks are elements.
312
- * Pointer and keyboard write the same pair, so a chart wires `pointerenter` and `focus` to
313
- * `enter` and gets one code path rather than two.
290
+ * Pointer and keyboard write the same pair: wire `pointerenter` and `focus` to `enter`.
314
291
  *
315
- * A POINTER WAITS. It is answered once it has rested on a mark for `hoverDelayMs`, and at once
316
- * 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.
317
294
  *
318
- * A TAP LATCHES. A touch fires `pointerleave` the moment the finger lifts, so without this the
319
- * panel would flash and vanish; latched, it stays until the next tap lands outside the mark. Call
320
- * 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.
321
297
  *
322
298
  * @internal
323
299
  */
324
300
  function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
325
301
  const index = signal(-1, ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
326
302
  const origin = signal(null, ...(ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []));
327
- // One flag for two ways of arriving at the same state: a tap, which has no hover to hold the
328
- // panel open, and a deliberate click under `pinOnClick`. Both release the same way.
329
303
  const pinned = signal(false, ...(ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []));
330
- // A tap latches on its pointer event and the browser then clicks the same mark; that click belongs
331
- // 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.
332
305
  let tapLatched = false;
333
306
  let pendingClear = null;
334
- // The element that OWNS the handlers, which is not always the tooltip anchor: a column anchors
335
- // its panel to the bar while the whole cell answers the pointer. A press is "outside" only when
336
- // it misses this, or a click on the cell beside the bar would release the pin and immediately
337
- // 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.
338
309
  let host = null;
339
310
  const dwell = chartDwell(hoverDelayMs);
340
311
  const clear = () => {
@@ -348,18 +319,14 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
348
319
  document.removeEventListener('keydown', releaseOnEscape, true);
349
320
  document.removeEventListener('pointerover', trackPointer, true);
350
321
  };
351
- // The tooltip anchors to the MARK, not to the box that catches the pointer: a column's cell is
352
- // the full plot height, so anchoring to it opens the panel at the top of the chart rather than
353
- // over the column it is about. A selector is resolved INSIDE the box; a legend item's mark is not
354
- // 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.
355
324
  const aim = (at, event, anchor, mark = event.currentTarget) => {
356
325
  const target = mark;
357
326
  if (target instanceof Element) {
358
327
  host = target;
359
328
  const mark = typeof anchor === 'string' ? target.querySelector(anchor) : anchor;
360
- // A mark drawn from a zero value is degenerate in one axis - a column loses its height, a
361
- // bar its width - and an overlay anchored to it lands at that edge rather than near the
362
- // 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.
363
330
  const box = mark?.getBoundingClientRect();
364
331
  const aimable = box && box.width > 0 && box.height > 0;
365
332
  origin.set(aimable ? (mark ?? target) : target);
@@ -372,8 +339,6 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
372
339
  document.addEventListener('pointerdown', release, true);
373
340
  document.addEventListener('keydown', releaseOnEscape, true);
374
341
  };
375
- // Escape releases the mark as well as the panel. Without this the panel would go and the dimming
376
- // it caused would stay, leaving the chart in a state with nothing on screen explaining it.
377
342
  const releaseOnEscape = (event) => {
378
343
  if (event.key === 'Escape') {
379
344
  clear();
@@ -394,10 +359,8 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
394
359
  document.removeEventListener('pointerover', trackPointer, true);
395
360
  }, Math.max(lingerMs(), 0));
396
361
  };
397
- // One listener answers both halves of "is the pointer on the panel": `pointerover` fires on every
398
- // element the pointer crosses, so arriving on the panel cancels the clear and leaving it for
399
- // anything that is not the mark schedules a new one. Without the second half a panel the pointer
400
- // 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.
401
364
  const trackPointer = (event) => {
402
365
  if (!(event.target instanceof Element)) {
403
366
  return;
@@ -406,15 +369,11 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
406
369
  cancelPendingClear();
407
370
  return;
408
371
  }
409
- // Against the HOST, not the anchor: a legend item and the arc its panel points at are disjoint
410
- // elements, so testing the anchor would clear the panel the moment the pointer moved inside the
411
- // legend item that opened it.
372
+ // Host, not anchor: a legend item and the arc its panel points at are disjoint.
412
373
  if (!host || !host.contains(event.target)) {
413
374
  scheduleClear();
414
375
  }
415
376
  };
416
- // The chart the aimed mark belongs to. Every chart puts its plot in one `<figure>`, so this is
417
- // what tells "pressed another mark of the same chart" apart from "pressed away".
418
377
  const chartOf = (element) => element ? element.closest('figure') : null;
419
378
  const release = (event) => {
420
379
  if (!(event.target instanceof Element)) {
@@ -424,10 +383,7 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
424
383
  if (host && host.contains(event.target)) {
425
384
  return;
426
385
  }
427
- // Hopping the pin from one mark to the next must not pass through "nothing is pinned". This
428
- // handler runs on `pointerdown`, the re-aim on the `click` after it, so clearing here would
429
- // unmount the Unpin control and the pinned styling for a frame and mount them again — a
430
- // 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.
431
387
  const pressedMark = event.target.closest('[data-mark-index]');
432
388
  if (pressedMark && chartOf(pressedMark) === chartOf(host)) {
433
389
  return;
@@ -448,13 +404,10 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
448
404
  origin: origin.asReadonly(),
449
405
  pinned: pinned.asReadonly(),
450
406
  enter(at, event, anchor, mark) {
451
- // A pin HOLDS. Without this the next mark the pointer crossed took the active slot straight
452
- // back, so pinning appeared to work and then followed the pointer anyway — the one thing a
453
- // pin exists not to do. It is released by Escape, or by a press outside the pinned mark.
454
407
  if (pinned()) {
455
408
  return;
456
409
  }
457
- // Taken now: `currentTarget` is gone by the time a delayed answer runs.
410
+ // `currentTarget` is gone by the time a delayed answer runs.
458
411
  const target = mark ?? event.currentTarget;
459
412
  dwell.schedule(at, () => answer(at, event, anchor, target), event);
460
413
  },
@@ -484,9 +437,6 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
484
437
  if (typeof document === 'undefined') {
485
438
  return;
486
439
  }
487
- // The same gesture that set the pin clears it. A press on a DIFFERENT mark has already gone
488
- // through `release` by the time the click lands, so this only ever sees a fresh mark or the
489
- // pinned one.
490
440
  if (pinned() && index() === at) {
491
441
  if (tapLatched) {
492
442
  tapLatched = false;
@@ -496,8 +446,7 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
496
446
  return;
497
447
  }
498
448
  tapLatched = false;
499
- // Re-aiming while already pinned keeps `pinned` true throughout, so nothing that renders on
500
- // it — the Unpin control, the held mark's styling — unmounts between the two marks.
449
+ // Keeps `pinned` true so the Unpin control stays mounted.
501
450
  aim(at, event, anchor, mark);
502
451
  if (!pinned()) {
503
452
  hold();
@@ -522,21 +471,18 @@ function chartActiveMark(lingerMs = () => 0, hoverDelayMs = () => 0) {
522
471
  }
523
472
  }
524
473
 
525
- /** Radius of the pin disc, in plot pixels. A mark that places a disc inside itself keeps this
526
- * much room from its edge.
474
+ /** Radius of the pin disc, in plot pixels.
527
475
  *
528
476
  * @internal */
529
477
  const CHART_PIN_RADIUS = 11;
530
- /** How far a disc sits inside the top edge of what it holds. At one radius it sits flush against
531
- * 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.
532
479
  *
533
480
  * @internal */
534
481
  const CHART_PIN_GAP = 4;
535
482
  const GLYPH_SIZE = 14;
536
483
  /**
537
- * The disc an SVG chart draws on the mark or category it holds. Drawn rather than composed:
538
- * `ds-icon`'s host is an HTML element, and an element the SVG specification does not know renders
539
- * 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.
540
486
  * Centred on the host's origin; place it with a `transform`.
541
487
  *
542
488
  * @internal