@ids-group-ltd/ids-design-system 0.13.2 → 0.13.4

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 (306) hide show
  1. package/CHANGELOG.md +1106 -9
  2. package/components.md +563 -44
  3. package/design-system.md +9 -0
  4. package/docs/agent/INDEX.md +58 -17
  5. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +1 -1
  6. package/docs/agent/charts/column-series-component.md +8 -0
  7. package/docs/agent/charts/ds-bar-chart.md +6 -1
  8. package/docs/agent/charts/ds-chart-data-table.md +10 -0
  9. package/docs/agent/charts/ds-chart.md +8 -0
  10. package/docs/agent/charts/ds-column-chart.md +7 -2
  11. package/docs/agent/charts/ds-funnel-chart.md +5 -1
  12. package/docs/agent/charts/ds-heatmap-chart.md +20 -0
  13. package/docs/agent/charts/ds-line-chart.md +8 -4
  14. package/docs/agent/charts/{ds-donut-chart.md → ds-pie-chart.md} +10 -6
  15. package/docs/agent/charts/ds-scatter-chart.md +20 -0
  16. package/docs/agent/charts/ds-waterfall-chart.md +20 -0
  17. package/docs/agent/charts/line-series-component.md +8 -0
  18. package/docs/agent/charts/reference-label-component.md +8 -0
  19. package/docs/agent/charts/reference-line-component.md +8 -0
  20. package/docs/agent/charts/series-annotation-component.md +10 -0
  21. package/docs/agent/feedback/ds-alert.md +4 -0
  22. package/docs/agent/feedback/ds-avatar-group.md +4 -0
  23. package/docs/agent/feedback/ds-avatar.md +4 -0
  24. package/docs/agent/feedback/ds-badge.md +4 -0
  25. package/docs/agent/feedback/ds-banner.md +5 -1
  26. package/docs/agent/feedback/ds-bar.md +17 -0
  27. package/docs/agent/feedback/ds-description-item.md +8 -0
  28. package/docs/agent/feedback/ds-description-list.md +8 -0
  29. package/docs/agent/feedback/ds-empty-state.md +4 -0
  30. package/docs/agent/feedback/ds-list-item.md +8 -0
  31. package/docs/agent/feedback/ds-list.md +8 -0
  32. package/docs/agent/feedback/ds-loading-overlay.md +8 -0
  33. package/docs/agent/feedback/ds-skeleton.md +4 -0
  34. package/docs/agent/feedback/ds-spinner.md +4 -0
  35. package/docs/agent/feedback/ds-stat.md +4 -0
  36. package/docs/agent/feedback/ds-status-dot.md +4 -0
  37. package/docs/agent/feedback/ds-tag.md +4 -0
  38. package/docs/agent/feedback/ds-timeline-item.md +8 -0
  39. package/docs/agent/feedback/ds-toast-region.md +8 -0
  40. package/docs/agent/feedback/ds-toast.md +4 -0
  41. package/docs/agent/feedback/ds-tree.md +8 -0
  42. package/docs/agent/forms/ds-autocomplete.md +4 -0
  43. package/docs/agent/forms/ds-button-group.md +8 -0
  44. package/docs/agent/forms/ds-button.md +6 -2
  45. package/docs/agent/forms/ds-checkbox.md +4 -0
  46. package/docs/agent/forms/ds-color-picker.md +8 -0
  47. package/docs/agent/forms/ds-date-picker.md +5 -1
  48. package/docs/agent/forms/ds-dropzone.md +4 -0
  49. package/docs/agent/forms/ds-field-group.md +8 -0
  50. package/docs/agent/forms/ds-filter-bar.md +8 -0
  51. package/docs/agent/forms/ds-icon-button.md +4 -0
  52. package/docs/agent/forms/ds-input.md +13 -1
  53. package/docs/agent/forms/ds-multi-select.md +4 -0
  54. package/docs/agent/forms/ds-number-stepper.md +4 -0
  55. package/docs/agent/forms/ds-otp-input.md +8 -0
  56. package/docs/agent/forms/ds-password-rules.md +8 -0
  57. package/docs/agent/forms/ds-radio-group.md +8 -0
  58. package/docs/agent/forms/ds-radio.md +4 -0
  59. package/docs/agent/forms/ds-search.md +4 -0
  60. package/docs/agent/forms/ds-segmented.md +8 -0
  61. package/docs/agent/forms/ds-select.md +4 -0
  62. package/docs/agent/forms/ds-slider.md +8 -0
  63. package/docs/agent/forms/ds-split-button.md +8 -0
  64. package/docs/agent/forms/ds-switch.md +4 -0
  65. package/docs/agent/forms/ds-textarea.md +5 -1
  66. package/docs/agent/forms/ds-time-picker.md +8 -0
  67. package/docs/agent/forms/ds-toggle-button.md +8 -0
  68. package/docs/agent/forms/filter-item-directive.md +8 -0
  69. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +4 -0
  70. package/docs/agent/navigation/ds-app-layout.md +6 -2
  71. package/docs/agent/navigation/ds-auth-layout.md +5 -1
  72. package/docs/agent/navigation/ds-breadcrumbs.md +4 -0
  73. package/docs/agent/navigation/ds-container.md +8 -0
  74. package/docs/agent/navigation/ds-divider.md +4 -0
  75. package/docs/agent/navigation/ds-inline.md +8 -0
  76. package/docs/agent/navigation/ds-page-footer.md +4 -0
  77. package/docs/agent/navigation/ds-page-header.md +5 -1
  78. package/docs/agent/navigation/ds-pagination.md +5 -1
  79. package/docs/agent/navigation/ds-sidenav-footer.md +8 -0
  80. package/docs/agent/navigation/ds-sidenav-group.md +4 -0
  81. package/docs/agent/navigation/ds-sidenav-item.md +4 -0
  82. package/docs/agent/navigation/ds-sidenav.md +4 -0
  83. package/docs/agent/navigation/ds-stack.md +8 -0
  84. package/docs/agent/navigation/ds-stepper.md +4 -0
  85. package/docs/agent/navigation/ds-tab.md +8 -0
  86. package/docs/agent/navigation/ds-tabs.md +5 -1
  87. package/docs/agent/overlays/ds-bottom-sheet.md +4 -0
  88. package/docs/agent/overlays/ds-drawer.md +4 -0
  89. package/docs/agent/overlays/ds-menu.md +4 -0
  90. package/docs/agent/overlays/ds-modal-card.md +4 -0
  91. package/docs/agent/overlays/ds-modal.md +4 -0
  92. package/docs/agent/overlays/ds-popover.md +4 -0
  93. package/docs/agent/overlays/ds-tooltip-panel.md +8 -0
  94. package/docs/agent/overlays/ds-tooltip.md +4 -0
  95. package/docs/agent/surfaces/ds-accordion-item.md +8 -0
  96. package/docs/agent/surfaces/ds-accordion.md +4 -0
  97. package/docs/agent/surfaces/ds-card.md +6 -2
  98. package/docs/agent/tables/ds-cell-template.md +8 -0
  99. package/docs/agent/tables/ds-table-columns.md +8 -0
  100. package/docs/agent/tables/ds-table-export.md +8 -0
  101. package/docs/agent/tables/ds-table.md +9 -2
  102. package/docs/agent/tables/header-filter-directive.md +8 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +10 -8
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +19 -19
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +7 -6
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +9 -6
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +119 -30
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +95 -0
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -0
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +3 -3
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +7 -3
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +32 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +84 -43
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +1322 -0
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -0
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -6
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +164 -126
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +5 -3
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +23 -16
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -13
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +217 -0
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -0
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +185 -573
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +7 -5
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -3
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +391 -0
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -0
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +300 -0
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -0
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +9 -4
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +7 -5
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +2 -2
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +4 -1
  208. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +9 -9
  210. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  212. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  214. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  215. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  216. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  217. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +5 -3
  218. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  219. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  220. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  221. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +34 -21
  222. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  223. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  224. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  225. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +252 -0
  226. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -0
  227. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +429 -24
  228. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  229. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +1 -1
  230. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  231. package/fesm2022/ids-group-ltd-ids-design-system.mjs +8 -4
  232. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  233. package/migrations/0.10.0.json +2 -2
  234. package/migrations/0.10.1.json +3 -3
  235. package/migrations/0.10.2.json +8 -28
  236. package/migrations/0.11.0.json +3 -3
  237. package/migrations/0.11.1.json +15 -15
  238. package/migrations/0.11.2.json +9 -9
  239. package/migrations/0.11.3.json +1 -1
  240. package/migrations/0.11.4.json +8 -8
  241. package/migrations/0.12.1.json +1 -1
  242. package/migrations/0.12.2.json +1 -1
  243. package/migrations/0.12.3.json +3 -3
  244. package/migrations/0.13.0.json +24 -32
  245. package/migrations/0.13.1.json +5 -5
  246. package/migrations/0.13.3.json +211 -0
  247. package/migrations/0.13.4.json +994 -0
  248. package/migrations/0.5.0.json +1 -1
  249. package/migrations/0.8.0.json +4 -3
  250. package/migrations/0.9.0.json +1 -1
  251. package/package.json +57 -25
  252. package/styles/_chart-frame.scss +31 -8
  253. package/styles/_check-box.scss +12 -12
  254. package/styles/_dropdown-overlay.scss +14 -10
  255. package/styles/_field-box.scss +3 -3
  256. package/styles/_field-label.scss +7 -7
  257. package/styles/_overlay-motion.scss +1 -1
  258. package/styles/_table-controls.scss +3 -3
  259. package/styles/_tokens-charts.scss +69 -12
  260. package/styles/_tokens.scss +3 -3
  261. package/styles/_typography.scss +101 -101
  262. package/themes/dark/_theme.scss +13 -0
  263. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
  264. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
  265. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
  266. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
  267. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
  268. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +37 -3
  269. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +63 -0
  270. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
  271. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +6 -2
  272. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +31 -0
  273. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +11 -4
  274. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +729 -0
  275. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
  276. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +99 -38
  277. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
  278. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
  279. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +9 -1
  280. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
  281. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +84 -148
  282. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
  283. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +13 -1
  284. package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +35 -17
  285. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
  286. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +183 -0
  287. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
  288. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
  289. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
  290. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +11 -11
  291. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  292. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
  293. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
  294. package/types/ids-group-ltd-ids-design-system-components.d.ts +151 -9
  295. package/types/ids-group-ltd-ids-design-system-core.d.ts +78 -4
  296. package/types/ids-group-ltd-ids-design-system.d.ts +16 -12
  297. package/docs/agent/feedback/ds-meter.md +0 -11
  298. package/docs/agent/feedback/ds-progress.md +0 -10
  299. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -351
  300. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
  301. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs +0 -61
  302. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs.map +0 -1
  303. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +0 -65
  304. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +0 -1
  305. package/types/ids-group-ltd-ids-design-system-components-meter.d.ts +0 -36
  306. package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +0 -40
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, computed, signal, PLATFORM_ID, DestroyRef, untracked, afterRenderEffect, TemplateRef, Directive, Injector, afterNextRender, isDevMode, input, booleanAttribute, effect, ElementRef, DOCUMENT } from '@angular/core';
3
- import { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';
3
+ import { DS_CONFIG, resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';
4
4
  import { isPlatformBrowser } from '@angular/common';
5
5
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
6
  import { NgForm, FormGroupDirective, NgControl } from '@angular/forms';
@@ -45,6 +45,14 @@ const chartColors = {
45
45
  ramp6: 'var(--ds-chart-ramp-6-color)',
46
46
  ramp7: 'var(--ds-chart-ramp-7-color)',
47
47
  ramp8: 'var(--ds-chart-ramp-8-color)',
48
+ heat1: 'var(--ds-chart-heat-1-color)',
49
+ heat2: 'var(--ds-chart-heat-2-color)',
50
+ heat3: 'var(--ds-chart-heat-3-color)',
51
+ heat4: 'var(--ds-chart-heat-4-color)',
52
+ heat5: 'var(--ds-chart-heat-5-color)',
53
+ heat6: 'var(--ds-chart-heat-6-color)',
54
+ heat7: 'var(--ds-chart-heat-7-color)',
55
+ heat8: 'var(--ds-chart-heat-8-color)',
48
56
  };
49
57
  /** @internal See chartColors. */
50
58
  const CHART_SERIES_COLORS = [
@@ -68,6 +76,17 @@ const CHART_RAMP_COLORS = [
68
76
  chartColors.ramp7,
69
77
  chartColors.ramp8,
70
78
  ];
79
+ /** @internal See chartColors. */
80
+ const CHART_HEAT_COLORS = [
81
+ chartColors.heat1,
82
+ chartColors.heat2,
83
+ chartColors.heat3,
84
+ chartColors.heat4,
85
+ chartColors.heat5,
86
+ chartColors.heat6,
87
+ chartColors.heat7,
88
+ chartColors.heat8,
89
+ ];
71
90
 
72
91
  const numberFormatters = new Map();
73
92
  function numberFormatter(locale) {
@@ -86,6 +105,22 @@ function formatValue(value, locale) {
86
105
  }
87
106
  return numberFormatter(locale).format(value);
88
107
  }
108
+ /** The built-in `valueFormat`: compact on a tick (`1.2M`), spelled out everywhere else
109
+ * (`1 248 392`). A caller-supplied formatter receives the same `location` and decides for
110
+ * itself; this is only the default.
111
+ *
112
+ * @internal */
113
+ function defaultChartFormat(value, location) {
114
+ if (!Number.isFinite(value)) {
115
+ return '—';
116
+ }
117
+ return location === 'tick'
118
+ ? new Intl.NumberFormat(undefined, {
119
+ notation: 'compact',
120
+ maximumFractionDigits: 1,
121
+ }).format(value)
122
+ : new Intl.NumberFormat().format(value);
123
+ }
89
124
  /** @internal */
90
125
  function formatPercent(value, total) {
91
126
  if (!total || !Number.isFinite(value) || !Number.isFinite(total)) {
@@ -192,37 +227,339 @@ function elementWidth(host) {
192
227
  return width.asReadonly();
193
228
  }
194
229
 
230
+ /** A label turned 45 degrees takes this fraction of its width across the axis. 45 is where the
231
+ * policy stops: past it the eye has to tilt rather than glance. */
232
+ const ROTATED_FOOTPRINT = Math.sin(Math.PI / 4);
233
+ /** Two labels that merely fail to overlap still read as one run of text, so a label's footprint is
234
+ * its width PLUS this. 16 sits in the middle of the 12-36 band the probe's cases allow, so a later
235
+ * nudge does not flip an interval. */
236
+ const LABEL_GAP = 16;
237
+ /** The WIDEST label decides for all of them: an axis that thins on the average still collides on
238
+ * the one long month name, and a reader meets the collision rather than the average.
239
+ *
240
+ * @internal */
241
+ function labelInterval(labelWidths, step, rotated) {
242
+ const usable = labelWidths.filter((width) => Number.isFinite(width));
243
+ if (usable.length === 0 || !Number.isFinite(step) || step <= 0) {
244
+ return 1;
245
+ }
246
+ const widest = usable.reduce((max, width) => Math.max(max, width), 0);
247
+ const footprint = (rotated ? widest * ROTATED_FOOTPRINT : widest) + LABEL_GAP;
248
+ return Math.max(1, Math.ceil(footprint / step));
249
+ }
250
+ /** Asked before thinning, so the axis spends a tilt before it spends a reading.
251
+ *
252
+ * @internal */
253
+ function rotationWouldFit(labelWidths, step) {
254
+ return (labelInterval(labelWidths, step, false) > 1 &&
255
+ labelInterval(labelWidths, step, true) === 1);
256
+ }
257
+
258
+ /** A series only decimates past FOUR times the target, not two: at two the saving is invisible on
259
+ * any profile and the loss of detail is not, so the trade is the wrong way round. */
260
+ const DECIMATION_HEADROOM = 4;
261
+ /** How many marks the plot can carry: one per pixel of its own width. Drawing two marks where the
262
+ * screen has one pixel is two DOM nodes the reader cannot tell apart.
263
+ *
264
+ * @internal */
265
+ function decimationTarget(plotWidth) {
266
+ return Number.isFinite(plotWidth) && plotWidth > 0
267
+ ? Math.floor(plotWidth)
268
+ : 0;
269
+ }
270
+ /** @internal */
271
+ function needsDecimating(count, target) {
272
+ return target > 0 && count > target * DECIMATION_HEADROOM;
273
+ }
274
+ /** Buckets the series by position and keeps each bucket's highest and lowest reading.
275
+ *
276
+ * The default, because it is the only one of the two that can PROMISE something: a bucket's
277
+ * extremum is in the output by construction, so a spike the reader is looking for cannot be the
278
+ * point that was dropped. It also parallelises and stays stable while the reader pans, since a
279
+ * bucket's answer does not depend on the buckets around it.
280
+ *
281
+ * @internal */
282
+ function minMaxDecimate(points, target) {
283
+ if (target <= 0 || points.length <= target) {
284
+ return points;
285
+ }
286
+ // Two points leave each bucket, so the bucket count is half the budget.
287
+ const buckets = Math.max(1, Math.floor(target / 2));
288
+ const size = points.length / buckets;
289
+ const kept = [];
290
+ for (let bucket = 0; bucket < buckets; bucket++) {
291
+ const from = Math.floor(bucket * size);
292
+ const to = Math.min(points.length, Math.floor((bucket + 1) * size));
293
+ if (from >= to) {
294
+ continue;
295
+ }
296
+ let lowest = points[from];
297
+ let highest = points[from];
298
+ for (let index = from + 1; index < to; index++) {
299
+ if (points[index].y < lowest.y) {
300
+ lowest = points[index];
301
+ }
302
+ if (points[index].y > highest.y) {
303
+ highest = points[index];
304
+ }
305
+ }
306
+ // In the order they occur, so the output still reads left to right.
307
+ const [first, second] = lowest.x <= highest.x ? [lowest, highest] : [highest, lowest];
308
+ kept.push(first);
309
+ if (second !== first) {
310
+ kept.push(second);
311
+ }
312
+ }
313
+ return kept;
314
+ }
315
+ /** Largest Triangle Three Buckets: keeps the reading in each bucket that makes the biggest triangle
316
+ * with the point already kept and the next bucket's centre of mass.
317
+ *
318
+ * It draws a truer SHAPE than MinMax at the same budget, and it makes no promise about the
319
+ * extremum - a spike is dropped whenever a different point describes the silhouette better. Reach
320
+ * for it where the outline is the reading and an individual point is not.
321
+ *
322
+ * @internal */
323
+ function lttbDecimate(points, target) {
324
+ if (target <= 2 || points.length <= target) {
325
+ return points;
326
+ }
327
+ const kept = [points[0]];
328
+ // The first and the last are fixed, so the buckets divide what is between them.
329
+ const size = (points.length - 2) / (target - 2);
330
+ let previous = points[0];
331
+ for (let bucket = 0; bucket < target - 2; bucket++) {
332
+ const from = Math.floor(bucket * size) + 1;
333
+ const to = Math.min(points.length - 1, Math.floor((bucket + 1) * size) + 1);
334
+ const nextFrom = to;
335
+ const nextTo = Math.min(points.length - 1, Math.floor((bucket + 2) * size) + 1);
336
+ let averageX = 0;
337
+ let averageY = 0;
338
+ const span = Math.max(1, nextTo - nextFrom);
339
+ for (let index = nextFrom; index < nextTo; index++) {
340
+ averageX += points[index].x;
341
+ averageY += points[index].y;
342
+ }
343
+ averageX /= span;
344
+ averageY /= span;
345
+ let best = points[from];
346
+ let bestArea = -1;
347
+ for (let index = from; index < to; index++) {
348
+ const area = Math.abs((previous.x - averageX) * (points[index].y - previous.y) -
349
+ (previous.x - points[index].x) * (averageY - previous.y));
350
+ if (area > bestArea) {
351
+ bestArea = area;
352
+ best = points[index];
353
+ }
354
+ }
355
+ kept.push(best);
356
+ previous = best;
357
+ }
358
+ kept.push(points[points.length - 1]);
359
+ return kept;
360
+ }
361
+
362
+ const COORDINATE_DECIMALS = 2;
363
+ function roundTo(value, decimals) {
364
+ if (!Number.isFinite(value)) {
365
+ return 0;
366
+ }
367
+ return Number(value.toFixed(decimals));
368
+ }
369
+ function isPlottable(point) {
370
+ return Number.isFinite(point.x) && Number.isFinite(point.y);
371
+ }
372
+ function coordinatePair(point) {
373
+ return `${roundTo(point.x, COORDINATE_DECIMALS)},${roundTo(point.y, COORDINATE_DECIMALS)}`;
374
+ }
375
+ /** The unbroken runs of a series: a missing reading ends one run and starts the next.
376
+ *
377
+ * @internal */
378
+ function lineSegments(points) {
379
+ const segments = [];
380
+ let current = [];
381
+ for (const point of points) {
382
+ if (point === null) {
383
+ if (current.length > 0) {
384
+ segments.push(current);
385
+ }
386
+ current = [];
387
+ }
388
+ else {
389
+ current.push(point);
390
+ }
391
+ }
392
+ if (current.length > 0) {
393
+ segments.push(current);
394
+ }
395
+ return segments;
396
+ }
397
+ /** `''` rather than a partial list when a coordinate is unplottable: one `NaN` in a
398
+ * `points` list or a path `d` voids the whole attribute, and the line then vanishes
399
+ * with nothing logged.
400
+ *
401
+ * @internal */
402
+ function polylinePoints(segment) {
403
+ if (segment.length === 0 || !segment.every(isPlottable)) {
404
+ return '';
405
+ }
406
+ return segment.map((point) => coordinatePair(point)).join(' ');
407
+ }
408
+ /** Fritsch-Carlson tangents: the slope at each reading, clamped so no segment can turn back on
409
+ * itself. A zero slope on either side of a reading pins the tangent flat, which is what keeps a
410
+ * plateau flat instead of bulging through it. */
411
+ function monotoneTangents(segment) {
412
+ const count = segment.length;
413
+ const secants = [];
414
+ for (let index = 0; index < count - 1; index++) {
415
+ const run = segment[index + 1].x - segment[index].x;
416
+ secants.push(run === 0 ? 0 : (segment[index + 1].y - segment[index].y) / run);
417
+ }
418
+ const tangents = [secants[0]];
419
+ for (let index = 1; index < count - 1; index++) {
420
+ const before = secants[index - 1];
421
+ const after = secants[index];
422
+ tangents.push(before * after <= 0 ? 0 : (before + after) / 2);
423
+ }
424
+ tangents.push(secants[count - 2]);
425
+ for (let index = 0; index < count - 1; index++) {
426
+ const secant = secants[index];
427
+ if (secant === 0) {
428
+ tangents[index] = 0;
429
+ tangents[index + 1] = 0;
430
+ continue;
431
+ }
432
+ // Fritsch-Carlson's circle condition: keeping each tangent within three times the secant it
433
+ // sits on is what makes the cubic monotone on that span.
434
+ const alpha = tangents[index] / secant;
435
+ const beta = tangents[index + 1] / secant;
436
+ const magnitude = Math.hypot(alpha, beta);
437
+ if (magnitude > 3) {
438
+ tangents[index] = (3 / magnitude) * alpha * secant;
439
+ tangents[index + 1] = (3 / magnitude) * beta * secant;
440
+ }
441
+ }
442
+ return tangents;
443
+ }
444
+ function smoothPath(segment) {
445
+ const tangents = monotoneTangents(segment);
446
+ let path = `M ${coordinatePair(segment[0])}`;
447
+ for (let index = 0; index < segment.length - 1; index++) {
448
+ const from = segment[index];
449
+ const to = segment[index + 1];
450
+ const third = (to.x - from.x) / 3;
451
+ const firstControl = {
452
+ x: from.x + third,
453
+ y: from.y + tangents[index] * third,
454
+ };
455
+ const secondControl = {
456
+ x: to.x - third,
457
+ y: to.y - tangents[index + 1] * third,
458
+ };
459
+ path +=
460
+ ` C ${roundTo(firstControl.x, COORDINATE_DECIMALS)},${roundTo(firstControl.y, COORDINATE_DECIMALS)}` +
461
+ ` ${roundTo(secondControl.x, COORDINATE_DECIMALS)},${roundTo(secondControl.y, COORDINATE_DECIMALS)}` +
462
+ ` ${coordinatePair(to)}`;
463
+ }
464
+ return path;
465
+ }
466
+ /** One unbroken run as a path `d`. `''` rather than a partial path when a coordinate is
467
+ * unplottable: one `NaN` voids the whole attribute and the line vanishes with nothing logged.
468
+ *
469
+ * @internal */
470
+ function linePath(segment, curve = 'linear') {
471
+ if (segment.length === 0 || !segment.every(isPlottable)) {
472
+ return '';
473
+ }
474
+ if (segment.length === 1 || curve === 'linear') {
475
+ return `M ${segment.map((point) => coordinatePair(point)).join(' L ')}`;
476
+ }
477
+ if (curve === 'step') {
478
+ let path = `M ${coordinatePair(segment[0])}`;
479
+ for (const point of segment.slice(1)) {
480
+ path += ` H ${roundTo(point.x, COORDINATE_DECIMALS)} V ${roundTo(point.y, COORDINATE_DECIMALS)}`;
481
+ }
482
+ return path;
483
+ }
484
+ return smoothPath(segment);
485
+ }
486
+ /** The filled band between two edges - a stacked area sitting on the series below it, or a
487
+ * confidence band around a line. The lower edge is walked BACKWARDS, so its curve is rebuilt from
488
+ * the reversed points rather than reused: a monotone cubic is not symmetric, and closing the shape
489
+ * along the forward path would bend the bottom of the band the wrong way.
490
+ *
491
+ * @internal */
492
+ function bandPath(upper, lower, curve = 'linear') {
493
+ if (upper.length < 2 ||
494
+ upper.length !== lower.length ||
495
+ !upper.every(isPlottable) ||
496
+ !lower.every(isPlottable)) {
497
+ return '';
498
+ }
499
+ const back = linePath([...lower].reverse(), curve);
500
+ return `${linePath(upper, curve)} L ${back.slice('M '.length)} Z`;
501
+ }
502
+ /** The same run as `linePath`, closed down to the baseline. It takes the curve so a filled series
503
+ * and its own line share one edge - drawn apart, a smooth line floats off a straight-edged fill.
504
+ *
505
+ * @internal */
506
+ function areaPath(segment, baselineY, curve = 'linear') {
507
+ if (segment.length < 2 ||
508
+ !Number.isFinite(baselineY) ||
509
+ !segment.every(isPlottable)) {
510
+ return '';
511
+ }
512
+ const first = segment[0];
513
+ const last = segment[segment.length - 1];
514
+ const baseline = roundTo(baselineY, COORDINATE_DECIMALS);
515
+ return `${linePath(segment, curve)} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;
516
+ }
517
+
195
518
  const E10 = Math.sqrt(50);
196
519
  const E5 = Math.sqrt(10);
197
520
  const E2 = Math.sqrt(2);
198
- /** d3's tick-increment rule. A naive `max / count` produces steps like 482, which
521
+ /** d3's tick-increment rule. A naive `span / count` produces steps like 482, which
199
522
  * no reader parses; this snaps to 1, 2, 5 or 10 times a power of ten. */
200
- function tickIncrement(domainMax, targetCount) {
201
- const step = domainMax / Math.max(1, targetCount);
523
+ function tickIncrement(span, targetCount) {
524
+ const step = span / Math.max(1, targetCount);
202
525
  const power = Math.floor(Math.log10(step));
203
526
  const error = step / Math.pow(10, power);
204
527
  const factor = error >= E10 ? 10 : error >= E5 ? 5 : error >= E2 ? 2 : 1;
205
528
  return factor * Math.pow(10, power);
206
529
  }
530
+ /** The floor of a domain that has to include zero: zero itself for an all-positive
531
+ * series, and the most negative reading otherwise.
532
+ *
533
+ * @internal */
534
+ function domainMinOf(values) {
535
+ return values.reduce((min, value) => Math.min(min, value), 0);
536
+ }
207
537
  /** @internal */
208
- function tickValues(domainMax, targetCount) {
209
- if (!Number.isFinite(domainMax) || domainMax <= 0) {
538
+ function tickValues(domainMin, domainMax, targetCount) {
539
+ const span = domainMax - domainMin;
540
+ if (!Number.isFinite(span) || span <= 0) {
210
541
  return [0];
211
542
  }
212
- const step = tickIncrement(domainMax, targetCount);
543
+ const step = tickIncrement(span, targetCount);
544
+ const first = Math.floor(domainMin / step);
545
+ const last = Math.ceil(domainMax / step);
213
546
  const out = [];
214
- for (let i = 0; i <= Math.ceil(domainMax / step); i++) {
547
+ for (let i = first; i <= last; i++) {
215
548
  out.push(i * step);
216
549
  }
217
550
  return out;
218
551
  }
219
552
  /** @internal */
220
- function niceMax(domainMax, targetCount) {
221
- if (!Number.isFinite(domainMax) || domainMax <= 0) {
222
- return 0;
553
+ function niceDomain(domainMin, domainMax, targetCount) {
554
+ const span = domainMax - domainMin;
555
+ if (!Number.isFinite(span) || span <= 0) {
556
+ return { min: 0, max: 0 };
223
557
  }
224
- const step = tickIncrement(domainMax, targetCount);
225
- return Math.ceil(domainMax / step) * step;
558
+ const step = tickIncrement(span, targetCount);
559
+ return {
560
+ min: Math.floor(domainMin / step) * step,
561
+ max: Math.ceil(domainMax / step) * step,
562
+ };
226
563
  }
227
564
  /** Distance between two ticks, which `formatTick` needs to pick a precision. A
228
565
  * degenerate series yields a single tick and therefore no step.
@@ -232,11 +569,12 @@ function tickStep(ticks) {
232
569
  return ticks.length > 1 ? ticks[1] - ticks[0] : 0;
233
570
  }
234
571
  /** @internal */
235
- function linearScale(domainMax, rangeSize) {
236
- if (!Number.isFinite(domainMax) || domainMax <= 0) {
572
+ function linearScale(domainMin, domainMax, rangeSize) {
573
+ const span = domainMax - domainMin;
574
+ if (!Number.isFinite(span) || span <= 0) {
237
575
  return () => 0;
238
576
  }
239
- return (value) => (value / domainMax) * rangeSize;
577
+ return (value) => ((value - domainMin) / span) * rangeSize;
240
578
  }
241
579
  /** Positions for marks that sit AT a category rather than inside it — the readings of a line.
242
580
  * The first is at the plot's start and the last at its end, so the run fills the axis rather than
@@ -297,6 +635,30 @@ function bandScale(count, rangeSize, paddingRatio) {
297
635
  indexAt: (offset) => Math.min(count - 1, Math.max(0, Math.floor(offset / step))),
298
636
  };
299
637
  }
638
+ const ROUND_STEP_FACTORS = [1, 2, 5, 10];
639
+ // A step divided out of a domain and multiplied back rarely lands on itself, so a
640
+ // candidate equal to the minimum can compare as smaller by one bit and push the
641
+ // whole axis up a rung.
642
+ const ROUND_STEP_TOLERANCE = 1 - 1e-12;
643
+ /** The smallest 1/2/5/10 x power-of-ten step that is not below `minimumStep`.
644
+ * `niceDomain` picks its own number of intervals, so it cannot answer this: a second
645
+ * axis drawn against the first's gridlines has to reach its data within the intervals
646
+ * the first already drew.
647
+ *
648
+ * @internal */
649
+ function roundStepAtLeast(minimumStep) {
650
+ if (!Number.isFinite(minimumStep) || minimumStep <= 0) {
651
+ return 0;
652
+ }
653
+ const base = Math.pow(10, Math.floor(Math.log10(minimumStep)));
654
+ for (const factor of ROUND_STEP_FACTORS) {
655
+ const candidate = factor * base;
656
+ if (candidate >= minimumStep * ROUND_STEP_TOLERANCE) {
657
+ return candidate;
658
+ }
659
+ }
660
+ return 10 * base;
661
+ }
300
662
 
301
663
  // Past this the entrance stops reading as one gesture and starts reading as a queue: at 40ms a
302
664
  // 100-mark series would otherwise take four seconds to finish arriving.
@@ -337,13 +699,19 @@ function nextRovingIndex(key, current, count) {
337
699
  return null;
338
700
  }
339
701
  }
702
+ /** The mark `index` within `scope`. `within` narrows the search for a chart whose marks repeat the
703
+ * same index once per series.
704
+ *
705
+ * @internal */
706
+ function markAt(scope, index, within = '') {
707
+ return scope?.querySelector(`${within}[data-mark-index="${index}"]`) ?? null;
708
+ }
340
709
  /** Moves DOM focus to the mark `index` within `scope`, which is what makes the roving tabindex a
341
- * traversal rather than a state change nobody can see. `within` narrows the search for a chart
342
- * whose marks repeat the same index once per series.
710
+ * traversal rather than a state change nobody can see.
343
711
  *
344
712
  * @internal */
345
713
  function focusMark(scope, index, within = '') {
346
- const target = scope?.querySelector(`${within}[data-mark-index="${index}"]`);
714
+ const target = markAt(scope, index, within);
347
715
  if (target instanceof HTMLElement || target instanceof SVGElement) {
348
716
  target.focus();
349
717
  }
@@ -368,6 +736,26 @@ function trendOf(values) {
368
736
  }
369
737
  return 'Ending where it started';
370
738
  }
739
+ /** Where the readings sit against each reference line, appended to the description. A line the
740
+ * reader cannot see is a line that does not exist for them, and its whole point is the
741
+ * comparison, not its position. */
742
+ function describeThresholds(thresholds, points, format) {
743
+ const total = points.length;
744
+ const noun = total === 1 ? 'point' : 'points';
745
+ return thresholds
746
+ .map((threshold) => {
747
+ const name = threshold.label ?? 'Threshold';
748
+ if (threshold.to == null) {
749
+ const above = points.filter((point) => point.value > threshold.value).length;
750
+ return ` ${name} at ${format(threshold.value)}, ${above} of ${total} ${noun} above.`;
751
+ }
752
+ const low = Math.min(threshold.value, threshold.to);
753
+ const high = Math.max(threshold.value, threshold.to);
754
+ const inside = points.filter((point) => point.value >= low && point.value <= high).length;
755
+ return ` ${name} from ${format(low)} to ${format(high)}, ${inside} of ${total} ${noun} inside.`;
756
+ })
757
+ .join('');
758
+ }
371
759
  /** The sentence a screen reader gets as the chart's accessible name. Generated rather than
372
760
  * required, because a required one is a field that gets left at the component's default and then
373
761
  * lies.
@@ -377,11 +765,12 @@ function trendOf(values) {
377
765
  * levels of chart description, and the encoding is the one thing a screen-reader user cannot use.
378
766
  *
379
767
  * @internal */
380
- function describeSeries(label, points, format = formatValue, tableFollows = true) {
381
- const pointer = tableFollows ? ' Full values in the table below.' : '';
768
+ function describeSeries(label, points, format = formatValue, tableFollows = true, thresholds = []) {
382
769
  if (points.length === 0) {
383
770
  return `${label}. No data.`;
384
771
  }
772
+ const pointer = describeThresholds(thresholds, points, format) +
773
+ (tableFollows ? ' Full values in the table below.' : '');
385
774
  if (points.length === 1) {
386
775
  return `${label}, one point: ${format(points[0].value)} at ${points[0].label}.${pointer}`;
387
776
  }
@@ -1353,7 +1742,7 @@ const OVERLAY_MOTION_TOKENS = [
1353
1742
  * every connected picker gets it whether or not it names panel tokens of its own. */
1354
1743
  const DROPDOWN_PANEL_TOKENS = [
1355
1744
  '--ds-dropdown-panel-radius',
1356
- '--ds-dropdown-panel-maxh',
1745
+ '--ds-dropdown-panel-max-height',
1357
1746
  '--ds-dropdown-panel-border-color',
1358
1747
  '--ds-dropdown-panel-shadow',
1359
1748
  '--ds-option-padding',
@@ -1361,7 +1750,7 @@ const DROPDOWN_PANEL_TOKENS = [
1361
1750
  '--ds-option-radius',
1362
1751
  '--ds-option-row-gap',
1363
1752
  '--ds-option-bg-color-active',
1364
- '--ds-option-weight',
1753
+ '--ds-option-font-weight',
1365
1754
  '--ds-option-font-size',
1366
1755
  '--ds-option-line-height',
1367
1756
  '--ds-option-font-family',
@@ -1866,9 +2255,25 @@ function createTypeAhead() {
1866
2255
  };
1867
2256
  }
1868
2257
 
2258
+ const NO_DATA_TABLE = signal(null, ...(ngDevMode ? [{ debugName: "NO_DATA_TABLE" }] : /* istanbul ignore next */ []));
2259
+ const NO_LINGER = signal(null, ...(ngDevMode ? [{ debugName: "NO_LINGER" }] : /* istanbul ignore next */ []));
2260
+ /** Each resolved input → `DS_CONFIG.chart` → the built-in. Call from an injection context.
2261
+ *
2262
+ * @internal */
2263
+ function resolveChartDefaults(inputs) {
2264
+ return {
2265
+ frame: resolveWithConfig(inputs.frame, (config) => config.chart?.frame, 'auto'),
2266
+ dataTable: resolveWithConfig(inputs.dataTable ?? NO_DATA_TABLE, (config) => config.chart?.dataTable, 'none'),
2267
+ emptyText: resolveWithConfig(inputs.emptyText, (config) => config.chart?.emptyText, 'No data'),
2268
+ errorText: resolveWithConfig(inputs.errorText, (config) => config.chart?.errorText, 'Could not load the data'),
2269
+ valueFormat: resolveWithConfig(inputs.valueFormat, (config) => config.chart?.valueFormat, defaultChartFormat),
2270
+ tooltipLingerMs: resolveWithConfig(inputs.tooltipLingerMs ?? NO_LINGER, (config) => config.chart?.tooltipLingerMs, 0),
2271
+ };
2272
+ }
2273
+
1869
2274
  /**
1870
2275
  * Generated bundle index. Do not edit.
1871
2276
  */
1872
2277
 
1873
- export { CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, describeSeries, describeShare, disposeWithLeave, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, largestRemainder, linearScale, nextControlId, nextRovingIndex, niceMax, overlayPlacementOf, panelClassesOf, pointScale, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
2278
+ export { CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, defaultChartFormat, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, labelInterval, largestRemainder, linePath, lineSegments, linearScale, lttbDecimate, markAt, minMaxDecimate, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
1874
2279
  //# sourceMappingURL=ids-group-ltd-ids-design-system-components.mjs.map