@ids-group-ltd/ids-design-system 0.13.3 → 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 (295) hide show
  1. package/CHANGELOG.md +846 -14
  2. package/components.md +552 -29
  3. package/design-system.md +9 -0
  4. package/docs/agent/INDEX.md +57 -15
  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 +5 -1
  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 +4 -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 +117 -27
  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 +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  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 +14 -2
  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 +404 -55
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  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 +27 -10
  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 +20 -10
  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 +181 -500
  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 +271 -8
  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.map +1 -1
  230. package/fesm2022/ids-group-ltd-ids-design-system.mjs +7 -3
  231. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  232. package/migrations/0.10.0.json +2 -2
  233. package/migrations/0.10.1.json +3 -3
  234. package/migrations/0.10.2.json +8 -28
  235. package/migrations/0.11.0.json +3 -3
  236. package/migrations/0.11.1.json +15 -15
  237. package/migrations/0.11.2.json +9 -9
  238. package/migrations/0.11.3.json +1 -1
  239. package/migrations/0.11.4.json +8 -8
  240. package/migrations/0.12.1.json +1 -1
  241. package/migrations/0.12.2.json +1 -1
  242. package/migrations/0.12.3.json +3 -3
  243. package/migrations/0.13.0.json +24 -32
  244. package/migrations/0.13.1.json +5 -5
  245. package/migrations/0.13.4.json +994 -0
  246. package/migrations/0.5.0.json +1 -1
  247. package/migrations/0.8.0.json +4 -3
  248. package/migrations/0.9.0.json +1 -1
  249. package/package.json +41 -9
  250. package/styles/_chart-frame.scss +16 -3
  251. package/styles/_check-box.scss +12 -12
  252. package/styles/_dropdown-overlay.scss +14 -10
  253. package/styles/_field-box.scss +3 -3
  254. package/styles/_field-label.scss +7 -7
  255. package/styles/_overlay-motion.scss +1 -1
  256. package/styles/_table-controls.scss +3 -3
  257. package/styles/_tokens-charts.scss +40 -7
  258. package/styles/_tokens.scss +2 -2
  259. package/styles/_typography.scss +101 -101
  260. package/themes/dark/_theme.scss +13 -0
  261. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
  262. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
  263. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
  264. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
  265. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
  266. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +37 -4
  267. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
  268. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +8 -4
  269. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +31 -0
  270. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +4 -0
  271. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +230 -44
  272. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
  273. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +6 -2
  274. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
  276. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +5 -2
  277. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
  278. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +85 -139
  279. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
  280. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +13 -1
  281. package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +24 -19
  282. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
  283. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +183 -0
  284. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
  285. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
  286. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
  287. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +11 -11
  288. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  289. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
  290. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
  291. package/types/ids-group-ltd-ids-design-system-components.d.ts +97 -4
  292. package/types/ids-group-ltd-ids-design-system-core.d.ts +30 -7
  293. package/types/ids-group-ltd-ids-design-system.d.ts +14 -10
  294. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -382
  295. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
@@ -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) {
@@ -208,6 +227,138 @@ function elementWidth(host) {
208
227
  return width.asReadonly();
209
228
  }
210
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
+
211
362
  const COORDINATE_DECIMALS = 2;
212
363
  function roundTo(value, decimals) {
213
364
  if (!Number.isFinite(value)) {
@@ -254,8 +405,105 @@ function polylinePoints(segment) {
254
405
  }
255
406
  return segment.map((point) => coordinatePair(point)).join(' ');
256
407
  }
257
- /** @internal */
258
- function areaPath(segment, baselineY) {
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') {
259
507
  if (segment.length < 2 ||
260
508
  !Number.isFinite(baselineY) ||
261
509
  !segment.every(isPlottable)) {
@@ -263,9 +511,8 @@ function areaPath(segment, baselineY) {
263
511
  }
264
512
  const first = segment[0];
265
513
  const last = segment[segment.length - 1];
266
- const along = segment.map((point) => coordinatePair(point)).join(' L ');
267
514
  const baseline = roundTo(baselineY, COORDINATE_DECIMALS);
268
- return `M ${along} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;
515
+ return `${linePath(segment, curve)} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;
269
516
  }
270
517
 
271
518
  const E10 = Math.sqrt(50);
@@ -1495,7 +1742,7 @@ const OVERLAY_MOTION_TOKENS = [
1495
1742
  * every connected picker gets it whether or not it names panel tokens of its own. */
1496
1743
  const DROPDOWN_PANEL_TOKENS = [
1497
1744
  '--ds-dropdown-panel-radius',
1498
- '--ds-dropdown-panel-maxh',
1745
+ '--ds-dropdown-panel-max-height',
1499
1746
  '--ds-dropdown-panel-border-color',
1500
1747
  '--ds-dropdown-panel-shadow',
1501
1748
  '--ds-option-padding',
@@ -1503,7 +1750,7 @@ const DROPDOWN_PANEL_TOKENS = [
1503
1750
  '--ds-option-radius',
1504
1751
  '--ds-option-row-gap',
1505
1752
  '--ds-option-bg-color-active',
1506
- '--ds-option-weight',
1753
+ '--ds-option-font-weight',
1507
1754
  '--ds-option-font-size',
1508
1755
  '--ds-option-line-height',
1509
1756
  '--ds-option-font-family',
@@ -2008,9 +2255,25 @@ function createTypeAhead() {
2008
2255
  };
2009
2256
  }
2010
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
+
2011
2274
  /**
2012
2275
  * Generated bundle index. Do not edit.
2013
2276
  */
2014
2277
 
2015
- 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, areaPath, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, defaultChartFormat, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, largestRemainder, lineSegments, linearScale, markAt, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, roundStepAtLeast, 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 };
2016
2279
  //# sourceMappingURL=ids-group-ltd-ids-design-system-components.mjs.map