@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 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-line-chart.mjs","sources":["../../../src/lib/components/line-chart/line-chart.math.ts","../../../src/lib/components/line-chart/line-chart.component.ts","../../../src/lib/components/line-chart/line-chart.component.html","../../../src/lib/components/line-chart/ids-group-ltd-ids-design-system-components-line-chart.ts"],"sourcesContent":["import {\n pointScale,\n linearScale,\n niceMax,\n tickValues,\n} from '@ids-group-ltd/ids-design-system/components';\nimport type { LineChartAxisMode, LineChartGaps } from './line-chart.types';\n\nexport const LINE_CHART_VIEW_WIDTH = 640;\nexport const LINE_CHART_VIEW_HEIGHT = 320;\nexport const LINE_CHART_DEFAULT_TICK_COUNT = 5;\nexport const LINE_CHART_AXIS_LABEL_GAP = 8;\n\nconst AXIS_GUTTER = 46;\nconst BARE_EDGE_GUTTER = 12;\nconst PLOT_TOP = 14;\nconst CATEGORY_GUTTER = 30;\nconst CATEGORY_LABEL_OFFSET = 18;\nconst STACKED_PLOT_GAP = 34;\nconst MAX_CATEGORY_LABELS = 12;\nconst COORDINATE_DECIMALS = 2;\nconst TICK_DECIMALS = 6;\nconst ROUND_STEP_FACTORS = [1, 2, 5, 10];\n// A step divided out of a domain and multiplied back rarely lands on itself, so a\n// candidate equal to the minimum can compare as smaller by one bit and push the\n// whole axis up a rung.\nconst ROUND_STEP_TOLERANCE = 1 - 1e-12;\n\nexport interface PlotArea {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport interface AxisScale {\n readonly max: number;\n readonly ticks: readonly number[];\n}\n\nexport interface AxisLayout {\n readonly primary: AxisScale;\n /** Null when no series asked for a second axis. */\n readonly secondary: AxisScale | null;\n /** True when the secondary axis is drawn against the primary's gridlines. */\n readonly alignedTicks: boolean;\n}\n\nexport interface ChartLayout {\n readonly primaryPlot: PlotArea;\n /** The same area as `primaryPlot` unless the plots are stacked. */\n readonly secondaryPlot: PlotArea;\n readonly categoryLabelY: number;\n readonly stacked: boolean;\n}\n\nexport interface LinePoint {\n readonly categoryIndex: number;\n readonly x: number;\n readonly y: number;\n readonly value: number;\n}\n\nfunction roundTo(value: number, decimals: number): number {\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return Number(value.toFixed(decimals));\n}\n\nexport function normalizeTickCount(tickCount: number): number {\n return Number.isFinite(tickCount) && tickCount >= 1\n ? Math.floor(tickCount)\n : LINE_CHART_DEFAULT_TICK_COUNT;\n}\n\n/** One reading per category, however long the series actually was. A series longer\n * than `categories` loses its tail and a shorter one ends early: a line that stops\n * short is a defect the reader can see, while a thrown error takes down the page\n * around it. Anything that is not a finite number is a missing reading, so `NaN`\n * and `Infinity` follow the `gaps` policy rather than reaching a coordinate. */\nexport function alignSeriesValues(\n data: readonly (number | null)[],\n categoryCount: number,\n gaps: LineChartGaps,\n): (number | null)[] {\n const length =\n Number.isFinite(categoryCount) && categoryCount > 0\n ? Math.floor(categoryCount)\n : 0;\n const aligned: (number | null)[] = [];\n for (let index = 0; index < length; index++) {\n const raw = data[index];\n const reading =\n typeof raw === 'number' && Number.isFinite(raw) ? raw : null;\n aligned.push(reading === null && gaps === 'zero' ? 0 : reading);\n }\n\n return aligned;\n}\n\n/** Largest finite reading across the given series, or zero. Never negative: the\n * tick helpers only describe axes that start at zero, and a negative domain there\n * is a division waiting to happen. */\nexport function domainMaxOf(\n valueGroups: readonly (readonly (number | null)[])[],\n): number {\n let max = 0;\n for (const values of valueGroups) {\n for (const value of values) {\n if (value !== null && Number.isFinite(value) && value > max) {\n max = value;\n }\n }\n }\n\n return max;\n}\n\n/** The smallest 1/2/5/10 × power-of-ten step that is not below `minimumStep`.\n * `niceMax` picks its own number of intervals, so it cannot answer this: an aligned\n * secondary axis has to reach its data within the intervals the primary already\n * drew. */\nexport function roundStepAtLeast(minimumStep: number): number {\n if (!Number.isFinite(minimumStep) || minimumStep <= 0) {\n return 0;\n }\n const base = Math.pow(10, Math.floor(Math.log10(minimumStep)));\n for (const factor of ROUND_STEP_FACTORS) {\n const candidate = factor * base;\n if (candidate >= minimumStep * ROUND_STEP_TOLERANCE) {\n return candidate;\n }\n }\n\n return 10 * base;\n}\n\nfunction nicedAxis(domainMax: number, tickCount: number): AxisScale {\n return {\n max: niceMax(domainMax, tickCount),\n ticks: tickValues(domainMax, tickCount),\n };\n}\n\n/** Both y axes, as the four modes define them. `'rounded'` and `'exact'` share the\n * primary's gridlines and differ only in the step they divide the secondary domain\n * by: `'rounded'` snaps the step up to a round number and overshoots the data,\n * `'exact'` takes the domain itself and lands on it. `'independent'` and\n * `'stacked'` nice each axis on its own — stacked plots sit one above the other,\n * so there is nothing to align. */\nexport function axisLayout(\n primaryDomainMax: number,\n secondaryDomainMax: number | null,\n mode: LineChartAxisMode,\n tickCount: number,\n): AxisLayout {\n const count = normalizeTickCount(tickCount);\n const primary = nicedAxis(primaryDomainMax, count);\n if (secondaryDomainMax === null) {\n return { primary, secondary: null, alignedTicks: true };\n }\n\n const intervals = primary.ticks.length - 1;\n const canAlign =\n (mode === 'rounded' || mode === 'exact') &&\n intervals >= 1 &&\n Number.isFinite(secondaryDomainMax) &&\n secondaryDomainMax > 0;\n if (!canAlign) {\n return {\n primary,\n secondary: nicedAxis(secondaryDomainMax, count),\n alignedTicks: false,\n };\n }\n\n const step =\n mode === 'rounded'\n ? roundStepAtLeast(secondaryDomainMax / intervals)\n : secondaryDomainMax / intervals;\n if (step <= 0) {\n return { primary, secondary: { max: 0, ticks: [0] }, alignedTicks: true };\n }\n\n const ticks: number[] = [];\n for (let index = 0; index <= intervals; index++) {\n ticks.push(roundTo(step * index, TICK_DECIMALS));\n }\n\n return {\n primary,\n secondary: { max: roundTo(step * intervals, TICK_DECIMALS), ticks },\n alignedTicks: true,\n };\n}\n\nexport function chartLayout(\n mode: LineChartAxisMode,\n hasSecondaryAxis: boolean,\n): ChartLayout {\n const stacked = mode === 'stacked' && hasSecondaryAxis;\n const left = AXIS_GUTTER;\n const right = hasSecondaryAxis && !stacked ? AXIS_GUTTER : BARE_EDGE_GUTTER;\n const width = LINE_CHART_VIEW_WIDTH - left - right;\n const plotBottom = LINE_CHART_VIEW_HEIGHT - CATEGORY_GUTTER;\n const categoryLabelY = plotBottom + CATEGORY_LABEL_OFFSET;\n\n if (!stacked) {\n const plot: PlotArea = {\n left,\n top: PLOT_TOP,\n width,\n height: plotBottom - PLOT_TOP,\n };\n\n return {\n primaryPlot: plot,\n secondaryPlot: plot,\n categoryLabelY,\n stacked: false,\n };\n }\n\n const height = (plotBottom - PLOT_TOP - STACKED_PLOT_GAP) / 2;\n\n return {\n primaryPlot: { left, top: PLOT_TOP, width, height },\n secondaryPlot: {\n left,\n top: PLOT_TOP + height + STACKED_PLOT_GAP,\n width,\n height,\n },\n categoryLabelY,\n stacked: true,\n };\n}\n\nexport function categoryCenters(count: number, plot: PlotArea): number[] {\n const total = Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;\n const scale = pointScale(total, plot.width);\n const centers: number[] = [];\n for (let index = 0; index < total; index++) {\n centers.push(plot.left + scale.position(index));\n }\n\n return centers;\n}\n\n/** The y a reading sits at, always inside the plot. The clamp is what keeps a\n * negative reading — which no zero-based axis can place — off the category labels\n * below, and the finite test is what stops an unplottable one becoming `NaN`. */\nexport function valueY(value: number, axisMax: number, plot: PlotArea): number {\n const baseline = plot.top + plot.height;\n const y = baseline - linearScale(axisMax, plot.height)(value);\n if (!Number.isFinite(y)) {\n return baseline;\n }\n\n return Math.min(Math.max(y, plot.top), baseline);\n}\n\nexport function seriesPoints(\n values: readonly (number | null)[],\n axisMax: number,\n plot: PlotArea,\n centers: readonly number[],\n): (LinePoint | null)[] {\n return values.map((value, index) => {\n const x = centers[index];\n if (value === null || !Number.isFinite(value) || !Number.isFinite(x)) {\n return null;\n }\n\n return { categoryIndex: index, x, y: valueY(value, axisMax, plot), value };\n });\n}\n\nexport function lineSegments(\n points: readonly (LinePoint | null)[],\n): LinePoint[][] {\n const segments: LinePoint[][] = [];\n let current: LinePoint[] = [];\n for (const point of points) {\n if (point === null) {\n if (current.length > 0) {\n segments.push(current);\n }\n current = [];\n } else {\n current.push(point);\n }\n }\n if (current.length > 0) {\n segments.push(current);\n }\n\n return segments;\n}\n\n/** `''` rather than a partial list when a coordinate is unplottable: one `NaN` in a\n * `points` list or a path `d` voids the whole attribute, and the line then vanishes\n * with nothing logged. */\nexport function polylinePoints(segment: readonly LinePoint[]): string {\n if (segment.length === 0 || !segment.every(isPlottable)) {\n return '';\n }\n\n return segment.map((point) => coordinatePair(point)).join(' ');\n}\n\nexport function areaPath(\n segment: readonly LinePoint[],\n baselineY: number,\n): string {\n if (\n segment.length < 2 ||\n !Number.isFinite(baselineY) ||\n !segment.every(isPlottable)\n ) {\n return '';\n }\n const first = segment[0];\n const last = segment[segment.length - 1];\n const along = segment.map((point) => coordinatePair(point)).join(' L ');\n const baseline = roundTo(baselineY, COORDINATE_DECIMALS);\n\n return `M ${along} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;\n}\n\nfunction isPlottable(point: LinePoint): boolean {\n return Number.isFinite(point.x) && Number.isFinite(point.y);\n}\n\nfunction coordinatePair(point: LinePoint): string {\n return `${roundTo(point.x, COORDINATE_DECIMALS)},${roundTo(point.y, COORDINATE_DECIMALS)}`;\n}\n\n/** Show every nth category label. Every label at 60 categories is a grey smear, and\n * the axis stops saying anything at all. */\nexport function categoryLabelStride(\n count: number,\n maxLabels: number = MAX_CATEGORY_LABELS,\n): number {\n if (!Number.isFinite(count) || count <= 0 || maxLabels < 1) {\n return 1;\n }\n\n return Math.max(1, Math.ceil(count / maxLabels));\n}\n\nexport function paletteIndexFor(\n slot: number | undefined,\n index: number,\n paletteSize: number,\n): number {\n if (!Number.isFinite(paletteSize) || paletteSize < 1) {\n return 0;\n }\n const chosen =\n slot !== undefined && Number.isFinite(slot) && slot >= 1\n ? Math.floor(slot) - 1\n : index;\n\n return ((chosen % paletteSize) + paletteSize) % paletteSize;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n pointScale,\n formatTick,\n focusMark,\n formatValue,\n nextRovingIndex,\n staggerDelay,\n tickStep,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type {\n ChartTooltipContext,\n ChartTooltipOrigin,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n LINE_CHART_AXIS_LABEL_GAP,\n LINE_CHART_DEFAULT_TICK_COUNT,\n LINE_CHART_VIEW_HEIGHT,\n LINE_CHART_VIEW_WIDTH,\n type LinePoint,\n type PlotArea,\n alignSeriesValues,\n areaPath,\n axisLayout,\n categoryCenters,\n categoryLabelStride,\n chartLayout,\n domainMaxOf,\n lineSegments,\n paletteIndexFor,\n polylinePoints,\n seriesPoints,\n valueY,\n} from './line-chart.math';\nimport type {\n LineChartAnnotation,\n LineChartAxisMode,\n LineChartGaps,\n LineChartPoint,\n LineChartSeries,\n} from './line-chart.types';\n\nconst defaultValueFormat = (value: number) => formatValue(value);\n\n// Long enough to cross the gap between the plot and its panel at an ordinary pointer speed.\n\n// View units between a reading and the label above it, and the margin inside which a label\n// anchors to its own edge instead of centring. Both in the 640x320 viewBox.\nconst ANNOTATION_GAP = 12;\nconst ANNOTATION_EDGE_GUARD = 48;\n\ninterface ResolvedSeries {\n readonly series: LineChartSeries;\n readonly values: readonly (number | null)[];\n readonly onSecondaryAxis: boolean;\n readonly color: string;\n /** `null` while `patterns` is off, which is what keeps a solid line solid. */\n readonly dash: string | null;\n}\n\n// One dash per palette slot, in the same order the colours are. Slot 1 stays solid so a\n// single-series chart is unchanged by turning patterns on.\nconst SERIES_DASH_ARRAYS = [\n 'none',\n '7 4',\n '2 3',\n '11 4 2 4',\n '1 4',\n '8 3 2 3',\n '4 2',\n '14 5',\n];\n\ninterface PlottedSeries extends ResolvedSeries {\n readonly polylines: readonly string[];\n readonly areaPaths: readonly string[];\n readonly markers: readonly LinePoint[];\n}\n\ninterface AxisTick {\n readonly y: number;\n readonly label: string;\n}\n\ninterface CategoryLabel {\n readonly x: number;\n readonly text: string;\n}\n\nfunction baselineOf(plot: PlotArea): number {\n return plot.top + plot.height;\n}\n\n@Component({\n selector: 'ds-line-chart',\n standalone: true,\n imports: [SkeletonComponent, ChartTooltipDirective, ChartLegendComponent],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n // Escape releases a pinned category, the same key that dismisses its panel — otherwise the\n // crosshair would stand on a chart with nothing left on screen to explain why.\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '(document:keydown.escape)': 'releaseCategoryPin()',\n '(document:pointerover)': 'onPointerAnywhere($event)',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LineChartComponent {\n /** X labels. Every series' `data` is read against this length. */\n readonly categories = input.required<readonly string[]>();\n\n /** One line per entry. Every series is read against `categories`, so a series longer than it\n * loses its tail and a shorter one ends early. */\n readonly series = input.required<readonly LineChartSeries[]>();\n\n /** How a secondary axis relates to the primary one. */\n readonly yAxisMode = input<LineChartAxisMode>('rounded');\n\n /** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */\n readonly showMarkers = input(true, { transform: booleanAttribute });\n\n /** Labels pinned over their readings, for the points that have to read without a pointer. They\n * are drawn, not announced: the data table already carries every reading, and repeating one in\n * the plot makes a screen reader say it twice. */\n readonly annotations = input<readonly LineChartAnnotation[]>([]);\n\n /** Makes every reading focusable and clickable. A series drawn without markers grows invisible\n * ones so there is something to land on; they appear on hover and on focus.\n *\n * The click output fires whether or not this is set, so a consumer that binds the output and\n * forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The point that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly pointClicked = output<LineChartPoint>();\n\n /** Holds the crosshair and its tooltip on the category that was clicked, until Escape or a\n * press outside releases it. Off by default: a click is already the drill-down hook, and a\n * crosshair left standing after the pointer has gone needs a reader who knows why. `pointClicked`\n * fires either way — pinning is a state, not a handler. */\n readonly pinOnClick = input(false, { transform: booleanAttribute });\n\n protected readonly pinnedCategory = signal(false);\n\n /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the\n * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed\n * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full\n * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark\n * and pays for it with the rest of the chart. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** What a `null` reading draws. The default refuses to assert that a missing\n * reading is a zero. */\n readonly gaps = input<LineChartGaps>('break');\n\n /** How many value-axis ticks to aim for. A hint, not a count: ticks snap to a round step, so\n * the axis may carry one more or one fewer. */\n readonly tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;\n * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.\n * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards\n * is one decision per app rather than per plot. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the\n * default, takes it away at once: a panel that outlives the pointer sits over the plot the\n * reader has moved on to.\n *\n * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything\n * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so\n * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to\n * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */\n readonly tooltipLingerMs = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n /** Printed above the plot as the chart's visible title, and reused as the annex table's\n * caption. */\n readonly caption = input<string | null>(null);\n\n /** Accessible name. Generated from the data when omitted. */\n readonly summary = input<string | null>(null);\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so\n * `'none'` belongs only where the same data is already in a table on the page.\n * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Pins the value axis instead of deriving it from the data. A panel opened one subject at a\n * time — one agent, one microsite — derives a different axis for each of them, so two plots with\n * the same gentle wiggle can be four times apart in value and nothing on screen says so. A fixed\n * maximum is what makes two renders comparable.\n *\n * Null, the default, keeps the derived axis. Applies to the primary axis; `maxSecondary` pins\n * the second one where a series sets `axis: 'secondary'`. A maximum below the data does not clip\n * it — the larger of the two wins, because silently hiding a reading is worse than a taller axis\n * than you asked for. */\n readonly max = input<number | null>(null);\n\n /** Pins the secondary value axis. See `max`. */\n readonly maxSecondary = input<number | null>(null);\n\n /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize\n * when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Shown in place of the plot when `data` is empty. Unset falls back to\n * `DS_CONFIG.chart.emptyText`, then `'No data'`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,\n * because \"the request failed\" and \"there is nothing to show\" read the same to a reader and\n * mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** The message the error state prints. Unset falls back to `DS_CONFIG.chart.errorText`, then\n * `'Could not load the data'`. */\n readonly errorText = input<string | null>(null);\n /** Formats every value the chart prints, the annex table and the generated description\n * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale\n * grouping with a K/M/B suffix past four digits. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n readonly frameResolved = resolveWithConfig(\n this.frame,\n (config) => config.chart?.frame,\n 'auto' as ChartFrame,\n );\n readonly dataTableResolved = resolveWithConfig(\n this.dataTable,\n (config) => config.chart?.dataTable,\n 'none' as ChartDataTable,\n );\n readonly emptyTextResolved = resolveWithConfig(\n this.emptyText,\n (config) => config.chart?.emptyText,\n 'No data',\n );\n readonly errorTextResolved = resolveWithConfig(\n this.errorText,\n (config) => config.chart?.errorText,\n 'Could not load the data',\n );\n readonly valueFormatResolved = resolveWithConfig(\n this.valueFormat,\n (config) => config.chart?.valueFormat,\n defaultValueFormat as ChartValueFormat,\n );\n\n protected readonly viewBox = `0 0 ${LINE_CHART_VIEW_WIDTH} ${LINE_CHART_VIEW_HEIGHT}`;\n\n protected readonly resolvedSeries = computed<readonly ResolvedSeries[]>(\n () => {\n const categoryCount = this.categories().length;\n const gaps = this.gaps();\n\n const patterns = this.patterns();\n\n return this.series().map((series, index) => {\n const slot = paletteIndexFor(\n series.slot,\n index,\n CHART_SERIES_COLORS.length,\n );\n\n return {\n series,\n values: alignSeriesValues(series.data, categoryCount, gaps),\n onSecondaryAxis: series.axis === 'secondary',\n color: CHART_SERIES_COLORS[slot],\n dash: patterns ? SERIES_DASH_ARRAYS[slot] : null,\n };\n });\n },\n );\n\n /** Ids of the series the legend has switched off. Two-way, so a page can drive it from a URL\n * parameter and read back what the reader chose. */\n readonly hiddenSeries = model<readonly string[]>([]);\n\n /** Whether hiding a series re-scales the value axis to what is left. Default `false`: a silent\n * rescale turns a period-over-period comparison into a different claim, and a comparison\n * dashboard is the common case. */\n readonly rescaleOnHide = input(false, { transform: booleanAttribute });\n\n /** Whether the legend switches series off. Off leaves it a plain key. */\n readonly legendFilters = input(false, { transform: booleanAttribute });\n\n /** What a legend control does. `'isolate'` shows one series and hides the rest — one action to\n * answer \"show me only this\" rather than one per series. `'toggle'` hides one and leaves the\n * rest, for taking a dominant series out so the others can be read at a usable scale.\n * Forwarded to `ds-chart-legend`, which renders radios for the first and checkboxes for the\n * second. */\n readonly legendMode = input<'toggle' | 'isolate'>('isolate');\n\n /** Shown in place of the plot once the legend has switched every series off. Without it the\n * reader is left with an empty grid and nothing saying why. */\n readonly noVisibleSeriesText = input<string>('All series are hidden');\n\n /** Gives every series a dash pattern of its own, so the lines are told apart by shape as well\n * as by colour — WCAG technique G111. Off by default: the shipped palette clears the\n * colour-blind separation threshold on its own, so the patterns are for monochrome print, for a\n * retuned palette, and for a reader who asks for them. */\n readonly patterns = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one series' entrance and the next. `0`, the default, is no stagger at\n * all; `40` is the documented non-zero step. The total is capped, so a long list of series does\n * not crawl in. */\n readonly staggerMs = input(0, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.staggerMs())}ms`;\n }\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly visibleSeries = computed<readonly ResolvedSeries[]>(() => {\n const hidden = this.hiddenSeries();\n\n return this.resolvedSeries().filter(\n (entry) => !hidden.includes(entry.series.id),\n );\n });\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n protected isDimmed(seriesId: string): boolean {\n const highlighted = this.highlightedSeries();\n\n return this.dimOthers() && highlighted !== null && highlighted !== seriesId;\n }\n\n protected readonly hasSecondaryAxis = computed(() =>\n this.visibleSeries().some((entry) => entry.onSecondaryAxis),\n );\n\n protected readonly layout = computed(() =>\n chartLayout(this.yAxisMode(), this.hasSecondaryAxis()),\n );\n\n protected readonly axes = computed(() => {\n // The axis is scaled from every series unless `rescaleOnHide` says otherwise, so switching one\n // off does not move the gridlines under the ones still drawn.\n const entries = this.rescaleOnHide()\n ? this.visibleSeries()\n : this.resolvedSeries();\n const valuesOn = (secondary: boolean) =>\n entries\n .filter((entry) => entry.onSecondaryAxis === secondary)\n .map((entry) => entry.values);\n\n // The pin raises the axis, never lowers it: a maximum under the data would push readings off\n // the top of the plot, and a chart that hides a value is worse than one with headroom.\n const pinned = (asked: number | null, derived: number) =>\n asked !== null && Number.isFinite(asked) && asked > derived\n ? asked\n : derived;\n\n return axisLayout(\n pinned(this.max(), domainMaxOf(valuesOn(false))),\n this.hasSecondaryAxis()\n ? pinned(this.maxSecondary(), domainMaxOf(valuesOn(true)))\n : null,\n this.yAxisMode(),\n this.tickCount(),\n );\n });\n\n protected readonly categoryPositions = computed(() =>\n categoryCenters(this.categories().length, this.layout().primaryPlot),\n );\n\n protected readonly plottedSeries = computed<readonly PlottedSeries[]>(() => {\n const axes = this.axes();\n const centers = this.categoryPositions();\n\n return this.visibleSeries().map((entry) => {\n const plot = this.plotFor(entry.onSecondaryAxis);\n const axisMax =\n entry.onSecondaryAxis && axes.secondary\n ? axes.secondary.max\n : axes.primary.max;\n const segments = lineSegments(\n seriesPoints(entry.values, axisMax, plot, centers),\n );\n const baselineY = plot.top + plot.height;\n\n return {\n ...entry,\n polylines: segments\n .map((segment) => polylinePoints(segment))\n .filter((points) => points.length > 0),\n areaPaths: entry.series.area\n ? segments\n .map((segment) => areaPath(segment, baselineY))\n .filter((path) => path.length > 0)\n : [],\n markers: segments.flat(),\n };\n });\n });\n\n /** Annotations resolved onto the markers the plot already computed, so a label sits exactly on\n * its reading and moves with it. One whose series is hidden or whose reading is missing has no\n * marker and is dropped — a hidden series must not leave its label floating over the plot. */\n protected readonly placedAnnotations = computed(() => {\n const plotted = this.plottedSeries();\n\n return this.annotations().flatMap((annotation) => {\n const entry = annotation.seriesId\n ? plotted.find(\n (candidate) => candidate.series.id === annotation.seriesId,\n )\n : plotted[0];\n const marker = entry?.markers.find(\n (candidate) => candidate.categoryIndex === annotation.categoryIndex,\n );\n if (!entry || !marker) {\n return [];\n }\n\n // Anchored away from the plot edges, because a centred label at the first or last category\n // hangs half outside the viewBox and is clipped rather than merely tight.\n const anchor =\n marker.x < ANNOTATION_EDGE_GUARD\n ? 'start'\n : marker.x > LINE_CHART_VIEW_WIDTH - ANNOTATION_EDGE_GUARD\n ? 'end'\n : 'middle';\n\n return [\n {\n key: `${entry.series.id}:${annotation.categoryIndex}`,\n label: annotation.label,\n x: marker.x,\n // Above the reading, and below it where there is no room — a peak sits at the top of\n // the plot, which is exactly where a label clamped upward lands on its own marker.\n y:\n marker.y - ANNOTATION_GAP >= ANNOTATION_GAP\n ? marker.y - ANNOTATION_GAP\n : marker.y + ANNOTATION_GAP,\n anchor,\n },\n ];\n });\n });\n\n protected readonly primaryTicks = computed(() =>\n this.ticksFor(this.axes().primary.ticks, this.axes().primary.max, false),\n );\n\n protected readonly secondaryTicks = computed<readonly AxisTick[]>(() => {\n const secondary = this.axes().secondary;\n\n return secondary ? this.ticksFor(secondary.ticks, secondary.max, true) : [];\n });\n\n /** Drawn only when the two axes do not share the primary's gridlines, and only\n * when the axis has more than the single tick a degenerate domain leaves. */\n protected readonly showSecondaryGridlines = computed(\n () => !this.axes().alignedTicks && this.secondaryTicks().length > 1,\n );\n\n protected readonly stacked = computed(() => this.layout().stacked);\n protected readonly categoryLabelY = computed(\n () => this.layout().categoryLabelY,\n );\n\n /** The category under the pointer, or -1. */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n protected readonly activeCategory = signal(-1);\n\n protected readonly categoryBands = computed(() =>\n pointScale(this.categories().length, this.layout().primaryPlot.width),\n );\n\n // The band is a slot CENTRED on its reading, so it starts half a step before it. At the two ends\n // half of that slot is outside the plot, and clamping is what keeps the band off the axis labels\n // rather than letting it hang past them.\n protected readonly activeBandX = computed(() => {\n const plot = this.layout().primaryPlot;\n const scale = this.categoryBands();\n const center = plot.left + scale.position(this.activeCategory());\n\n return Math.max(center - scale.step / 2, plot.left);\n });\n\n protected readonly activeBandWidth = computed(() => {\n const plot = this.layout().primaryPlot;\n const scale = this.categoryBands();\n const center = plot.left + scale.position(this.activeCategory());\n const start = Math.max(center - scale.step / 2, plot.left);\n const end = Math.min(center + scale.step / 2, plot.left + plot.width);\n\n return Math.max(end - start, 0);\n });\n\n protected readonly activeCategoryX = computed(\n () => this.activeBandX() + this.activeBandWidth() / 2,\n );\n\n protected onPlotPointer(event: PointerEvent): void {\n const canvas = event.currentTarget as SVGSVGElement;\n const screen = canvas.getScreenCTM();\n if (!screen) {\n return;\n }\n // Client pixels are not viewBox units — the plot scales to the card's width.\n const point = new DOMPoint(event.clientX, event.clientY).matrixTransform(\n screen.inverse(),\n );\n const plot = this.layout().primaryPlot;\n if (this.pinnedCategory()) {\n return;\n }\n this.cancelCategoryClear();\n const category = this.categoryBands().indexAt(point.x - plot.left);\n this.activeCategory.set(category);\n this.tooltipOrigin.set(\n this.tooltipAnchor() === 'pointer'\n ? { x: event.clientX, y: event.clientY }\n : this.readingAnchor(screen, category),\n );\n }\n\n /** The highest reading in the category, mapped back into client pixels. Anchoring there rather\n * than at the cursor keeps the panel still while the pointer travels within one band, and puts\n * it over the readings it names instead of over the finger. */\n private readingAnchor(\n screen: DOMMatrix,\n category: number,\n ): ChartTooltipOrigin {\n const tops = this.plottedSeries().flatMap((entry) =>\n entry.markers\n .filter((marker) => marker.categoryIndex === category)\n .map((marker) => marker.y),\n );\n const y = tops.length ? Math.min(...tops) : this.layout().primaryPlot.top;\n const point = new DOMPoint(\n this.plotLeft() + this.categoryBands().position(category),\n y,\n ).matrixTransform(screen);\n\n return { x: point.x, y: point.y };\n }\n\n protected clearActiveCategory(): void {\n if (this.pinnedCategory()) {\n return;\n }\n // Same grace the element-mark charts get from `chartActiveMark`: the panel is portaled out of\n // the plot, so leaving the plot fires before the pointer can reach it. Clearing at once made\n // the panel unreachable, and — because the pane takes pointer events now — put the plot and the\n // panel in a loop where each closed the other.\n this.cancelCategoryClear();\n this.pendingCategoryClear = setTimeout(\n () => {\n this.pendingCategoryClear = null;\n this.activeCategory.set(-1);\n this.tooltipOrigin.set(null);\n },\n Math.max(this.tooltipLingerResolved(), 0),\n );\n }\n\n /** The panel is portaled to the body, so the plot never sees the pointer arrive on it. This is\n * the other half of the grace period: reaching the panel keeps it open, and leaving the panel for\n * anything that is not the plot starts the clear the plot can no longer start itself. */\n protected onPointerAnywhere(event: PointerEvent): void {\n if (!(event.target instanceof Element) || this.pinnedCategory()) {\n return;\n }\n if (event.target.closest('.ds-chart-tooltip-pane')) {\n this.cancelCategoryClear();\n\n return;\n }\n if (\n this.activeCategory() !== -1 &&\n !this.host.nativeElement.contains(event.target)\n ) {\n this.clearActiveCategory();\n }\n }\n\n private cancelCategoryClear(): void {\n if (this.pendingCategoryClear !== null) {\n clearTimeout(this.pendingCategoryClear);\n this.pendingCategoryClear = null;\n }\n }\n\n private readonly tooltipLingerResolved = resolveWithConfig(\n this.tooltipLingerMs,\n (config) => config.chart?.tooltipLingerMs,\n 0,\n );\n\n private pendingCategoryClear: ReturnType<typeof setTimeout> | null = null;\n\n protected releaseCategoryPin(): void {\n this.pinnedCategory.set(false);\n this.activeCategory.set(-1);\n this.tooltipOrigin.set(null);\n }\n\n /** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the\n * category under the pointer, which is the reading a multi-series line is compared on;\n * `'item'` names only the marker itself. */\n readonly tooltip = input<ChartTooltipTrigger>('axis');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip is pinned. `'point'`, the default, is the highest reading in the category,\n * so the panel stays put while the pointer moves within one band. `'pointer'` follows the\n * cursor. */\n readonly tooltipAnchor = input<'point' | 'pointer'>('point');\n\n protected readonly tooltipOrigin = signal<ChartTooltipOrigin | null>(null);\n\n /** The series focus is on, or -1 for the whole category. A pointer answers for every\n * series at once; a focused marker answers for its own. */\n protected readonly activeSeries = signal(-1);\n\n /** One tab stop PER SERIES, keyed by series id — each line is a strand the reader walks with\n * the arrows. WCAG 2.1.1's Understanding is explicit that not every mouse-operable control has\n * to be separately focusable, which is what keeps a 12-category, 2-series plot from being\n * twenty-four stops in the page's tab order. */\n protected readonly rovingByCategory = signal<ReadonlyMap<string, number>>(\n new Map(),\n );\n\n protected isTabStop(seriesId: string, categoryIndex: number): boolean {\n return (this.rovingByCategory().get(seriesId) ?? 0) === categoryIndex;\n }\n\n protected onMarkerFocus(\n seriesIndex: number,\n categoryIndex: number,\n event: FocusEvent,\n ): void {\n if (event.currentTarget instanceof Element) {\n this.tooltipOrigin.set(event.currentTarget);\n }\n this.activeSeries.set(seriesIndex);\n this.activeCategory.set(categoryIndex);\n this.setRoving(seriesIndex, categoryIndex);\n }\n\n protected onMarkerNavigation(\n event: KeyboardEvent,\n seriesIndex: number,\n categoryIndex: number,\n ): void {\n const markers = this.plottedSeries()[seriesIndex]?.markers ?? [];\n const positions = markers.map((marker) => marker.categoryIndex);\n const current = positions.indexOf(categoryIndex);\n const next = nextRovingIndex(event.key, current, positions.length);\n if (next === null) {\n return;\n }\n event.preventDefault();\n const nextCategory = positions[next];\n this.setRoving(seriesIndex, nextCategory);\n focusMark(\n (event.currentTarget as Element).closest('svg'),\n nextCategory,\n `[data-series-index=\"${seriesIndex}\"]`,\n );\n }\n\n private setRoving(seriesIndex: number, categoryIndex: number): void {\n const seriesId = this.plottedSeries()[seriesIndex]?.series.id;\n if (seriesId === undefined) {\n return;\n }\n const next = new Map(this.rovingByCategory());\n next.set(seriesId, categoryIndex);\n this.rovingByCategory.set(next);\n }\n\n protected onMarkerBlur(): void {\n this.activeSeries.set(-1);\n this.clearActiveCategory();\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const categoryIndex = this.activeCategory();\n const categories = this.categories();\n if (\n this.tooltip() === 'none' ||\n categoryIndex < 0 ||\n categoryIndex >= categories.length\n ) {\n return null;\n }\n const format = this.valueFormatResolved();\n const focusedSeries = this.activeSeries();\n const perSeries =\n this.tooltip() === 'item' || focusedSeries >= 0\n ? this.visibleSeries().slice(\n Math.max(focusedSeries, 0),\n Math.max(focusedSeries, 0) + 1,\n )\n : this.visibleSeries();\n\n return {\n category: categories[categoryIndex],\n entries: perSeries\n .map((entry) => ({ entry, value: entry.values[categoryIndex] }))\n .filter(\n (\n reading,\n ): reading is {\n entry: (typeof perSeries)[number];\n value: number;\n } =>\n typeof reading.value === 'number' &&\n Number.isFinite(reading.value),\n )\n .map(({ entry, value }) => ({\n label: entry.series.label,\n value,\n formatted: format(value),\n color: entry.color,\n })),\n };\n },\n );\n\n protected readonly plotLeft = computed(() => this.layout().primaryPlot.left);\n protected readonly plotRight = computed(\n () => this.layout().primaryPlot.left + this.layout().primaryPlot.width,\n );\n\n protected readonly primaryTopY = computed(\n () => this.layout().primaryPlot.top,\n );\n protected readonly secondaryTopY = computed(\n () => this.layout().secondaryPlot.top,\n );\n\n protected readonly primaryBaselineY = computed(() =>\n baselineOf(this.layout().primaryPlot),\n );\n\n protected readonly secondaryBaselineY = computed(() =>\n baselineOf(this.layout().secondaryPlot),\n );\n\n /** Where the crosshair stops. Under `'stacked'` the two plots sit one above the other over one\n * category axis, so a crosshair that ends at the upper plot's baseline leaves the lower plot —\n * the same category, the same pointer — with nothing marked at all. */\n protected readonly cursorBottomY = computed(() =>\n this.stacked() ? this.secondaryBaselineY() : this.primaryBaselineY(),\n );\n\n protected readonly primaryLabelX = computed(\n () => this.layout().primaryPlot.left - LINE_CHART_AXIS_LABEL_GAP,\n );\n\n protected readonly secondaryLabelX = computed(() => {\n const layout = this.layout();\n\n return layout.stacked\n ? layout.secondaryPlot.left - LINE_CHART_AXIS_LABEL_GAP\n : layout.primaryPlot.left +\n layout.primaryPlot.width +\n LINE_CHART_AXIS_LABEL_GAP;\n });\n\n protected readonly secondaryLabelAnchor = computed(() =>\n this.layout().stacked ? 'end' : 'start',\n );\n\n protected readonly categoryLabels = computed<readonly CategoryLabel[]>(() => {\n const categories = this.categories();\n const centers = this.categoryPositions();\n const stride = categoryLabelStride(categories.length);\n const labels: CategoryLabel[] = [];\n for (let index = 0; index < categories.length; index += stride) {\n labels.push({ x: centers[index], text: categories[index] });\n }\n\n return labels;\n });\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.categories().map((category, index) => ({\n category,\n cells: this.resolvedSeries().map((entry) => {\n const value = entry.values[index];\n\n return value === null || value === undefined ? '—' : format(value);\n }),\n }));\n });\n\n protected readonly accessibleName = computed(() => {\n const summary = this.summary();\n if (summary !== null) {\n return summary;\n }\n\n const title = this.caption() ?? 'Chart';\n const format = this.valueFormatResolved();\n const categories = this.categories();\n // The pointer belongs to the WHOLE chart, not to each series, or a two-series plot promises\n // the table twice.\n const sentences = this.resolvedSeries().map((entry) =>\n describeSeries(\n entry.series.label,\n entry.values.flatMap((value, index) =>\n value === null ? [] : [{ label: categories[index] ?? '', value }],\n ),\n format,\n false,\n ),\n );\n const pointer =\n this.dataTableResolved() === 'none'\n ? ''\n : ' Full values in the table below.';\n // The plot's own text is inside an `aria-hidden` svg, so an annotation a sighted reader takes\n // as the point of the chart would otherwise reach nobody else.\n const notes = this.placedAnnotations().map((note) => note.label);\n const noted = notes.length ? ` Noted: ${notes.join('; ')}.` : '';\n\n return sentences.length === 0\n ? describeSeries(title, [], format, this.dataTableResolved() !== 'none')\n : `${title}. ${sentences.join(' ')}${noted}${pointer}`;\n });\n\n protected pointOf(entry: PlottedSeries, marker: LinePoint): LineChartPoint {\n return {\n series: entry.series,\n categoryIndex: marker.categoryIndex,\n category: this.categories()[marker.categoryIndex] ?? '',\n value: marker.value,\n };\n }\n\n protected markerLabel(entry: PlottedSeries, marker: LinePoint): string {\n const point = this.pointOf(entry, marker);\n\n return `${entry.series.label}, ${point.category}, ${this.valueFormatResolved()(marker.value)}`;\n }\n\n protected onMarkerKey(\n entry: PlottedSeries,\n marker: LinePoint,\n event: Event,\n ): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.onMarkerClick(entry, marker);\n }\n\n /** The pin hangs off the MARKER, not off the plot: the marker is already focusable and already\n * answers Enter and Space, so the keyboard gets the pin for free. A click handler on the plot\n * would have no keyboard route at all. A second activation of the pinned category releases it. */\n protected onMarkerClick(entry: PlottedSeries, marker: LinePoint): void {\n this.pointClicked.emit(this.pointOf(entry, marker));\n if (this.pinOnClick()) {\n this.pinnedCategory.set(!this.pinnedCategory());\n }\n }\n\n protected readonly isEmpty = computed(\n () => this.series().length === 0 || this.categories().length === 0,\n );\n\n protected readonly showLegend = computed(() => this.series().length > 1);\n\n protected readonly noVisibleSeries = computed(\n () => this.series().length > 0 && this.visibleSeries().length === 0,\n );\n\n /** Placeholder legend rows while loading. Follows the real series count so the\n * chart does not resize when the data lands; falls back to three when `series`\n * is still empty. */\n protected readonly skeletonSeries = computed(() =>\n Array.from({ length: Math.max(this.series().length, 3) }),\n );\n\n private plotFor(onSecondaryAxis: boolean): PlotArea {\n const layout = this.layout();\n\n return onSecondaryAxis && layout.stacked\n ? layout.secondaryPlot\n : layout.primaryPlot;\n }\n\n private ticksFor(\n ticks: readonly number[],\n axisMax: number,\n onSecondaryAxis: boolean,\n ): AxisTick[] {\n const plot = this.plotFor(onSecondaryAxis);\n const step = tickStep(ticks);\n const format = this.valueFormatResolved();\n\n return ticks.map((value) => ({\n y: valueY(value, axisMax, plot),\n label:\n format === defaultValueFormat ? formatTick(value, step) : format(value),\n }));\n }\n}\n","<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n (pointermove)=\"onPlotPointer($event)\"\n (pointerdown)=\"onPlotPointer($event)\"\n (pointerleave)=\"clearActiveCategory()\">\n @if (activeCategory() >= 0) {\n <g\n class=\"cursor\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\"\n [style.transform]=\"'translateX(' + activeBandX() + 'px)'\">\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n x=\"0\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"cursorBottomY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeBandWidth() / 2\"\n [attr.x2]=\"activeBandWidth() / 2\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"cursorBottomY()\" />\n </g>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n [class.secondary]=\"!stacked()\" />\n }\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"primaryBaselineY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryBaselineY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"secondaryTopY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (path of entry.areaPaths; track $index) {\n <path\n class=\"series-area\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\" />\n }\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (points of entry.polylines; track $index) {\n <polyline\n class=\"series-line\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [attr.stroke-dasharray]=\"entry.dash\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.points]=\"points\"\n [attr.stroke]=\"entry.color\" />\n }\n }\n\n @if (showMarkers() || interactive()) {\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (marker of entry.markers; track marker.categoryIndex) {\n <circle\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.is-active]=\"marker.categoryIndex === activeCategory()\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.data-series-index]=\"seriesIndex\"\n [attr.data-mark-index]=\"marker.categoryIndex\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.categoryIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() ? markerLabel(entry, marker) : null\n \"\n (focus)=\"\n onMarkerFocus(seriesIndex, marker.categoryIndex, $event)\n \"\n (blur)=\"onMarkerBlur()\"\n (keydown)=\"\n onMarkerNavigation($event, seriesIndex, marker.categoryIndex)\n \"\n (click)=\"onMarkerClick(entry, marker)\"\n (keydown.enter)=\"onMarkerKey(entry, marker, $event)\"\n (keydown.space)=\"onMarkerKey(entry, marker, $event)\" />\n }\n }\n }\n\n @for (note of placedAnnotations(); track note.key) {\n <text\n class=\"annotation\"\n aria-hidden=\"true\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </text>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"primaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track $index) {\n <text\n class=\"category-label\"\n text-anchor=\"middle\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\">\n {{ label.text }}\n </text>\n }\n </svg>\n </div>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n Category\n </th>\n\n @for (entry of resolvedSeries(); track entry.series.id) {\n <th scope=\"col\">\n {{ entry.series.label }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n <th scope=\"row\">\n {{ row.category }}\n </th>\n\n @for (cell of row.cells; track $index) {\n <td>\n {{ cell }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQO,MAAM,qBAAqB,GAAG,GAAG;AACjC,MAAM,sBAAsB,GAAG,GAAG;AAClC,MAAM,6BAA6B,GAAG,CAAC;AACvC,MAAM,yBAAyB,GAAG,CAAC;AAE1C,MAAM,WAAW,GAAG,EAAE;AACtB,MAAM,gBAAgB,GAAG,EAAE;AAC3B,MAAM,QAAQ,GAAG,EAAE;AACnB,MAAM,eAAe,GAAG,EAAE;AAC1B,MAAM,qBAAqB,GAAG,EAAE;AAChC,MAAM,gBAAgB,GAAG,EAAE;AAC3B,MAAM,mBAAmB,GAAG,EAAE;AAC9B,MAAM,mBAAmB,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,CAAC;AACvB,M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AC9C,wBAAA,2BAA2B,EAAE,sBAAsB;AACnD,wBAAA,wBAAwB,EAAE,2BAA2B;AACtD,qBAAA,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kzTAAA,EAAA,MAAA,EAAA,CAAA,6lVAAA,CAAA,EAAA;8kGAqgB3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE5oBtB;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-line-chart.mjs","sources":["../../../src/lib/components/line-chart/line-chart.math.ts","../../../src/lib/components/line-chart/line-chart.component.ts","../../../src/lib/components/line-chart/line-chart.component.html","../../../src/lib/components/line-chart/ids-group-ltd-ids-design-system-components-line-chart.ts"],"sourcesContent":["import type { ChartGaps } from '@ids-group-ltd/ids-design-system/core';\n\nexport type { LinePoint } from '@ids-group-ltd/ids-design-system/components';\n\nexport const LINE_CHART_DEFAULT_TICK_COUNT = 5;\n\n/** One reading per category, however long the series actually was. A series longer\n * than `categories` loses its tail and a shorter one ends early: a line that stops\n * short is a defect the reader can see, while a thrown error takes down the page\n * around it. Anything that is not a finite number is a missing reading, so `NaN`\n * and `Infinity` follow the `gaps` policy rather than reaching a coordinate. */\nexport function alignSeriesValues(\n data: readonly (number | null)[],\n categoryCount: number,\n gaps: ChartGaps,\n): (number | null)[] {\n const length =\n Number.isFinite(categoryCount) && categoryCount > 0\n ? Math.floor(categoryCount)\n : 0;\n const aligned: (number | null)[] = [];\n for (let index = 0; index < length; index++) {\n const raw = data[index];\n const reading =\n typeof raw === 'number' && Number.isFinite(raw) ? raw : null;\n aligned.push(reading === null && gaps === 'zero' ? 0 : reading);\n }\n\n return aligned;\n}\n\n/** Largest finite reading across the given series, or zero. Never negative: this\n * feeds the ceiling handed to `ds-chart`, which raises its domain and never lowers\n * it, so a negative here would pin an axis below its own data. */\nexport function domainMaxOf(\n valueGroups: readonly (readonly (number | null)[])[],\n): number {\n let max = 0;\n for (const values of valueGroups) {\n for (const value of values) {\n if (value !== null && Number.isFinite(value) && value > max) {\n max = value;\n }\n }\n }\n\n return max;\n}\n\nexport function paletteIndexFor(\n slot: number | undefined,\n index: number,\n paletteSize: number,\n): number {\n if (!Number.isFinite(paletteSize) || paletteSize < 1) {\n return 0;\n }\n const chosen =\n slot !== undefined && Number.isFinite(slot) && slot >= 1\n ? Math.floor(slot) - 1\n : index;\n\n return ((chosen % paletteSize) + paletteSize) % paletteSize;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n TemplateRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n describeSeries,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport {\n CHART_DEFAULT_VALUE_SPACE,\n ChartComponent,\n LineSeriesComponent,\n SeriesAnnotationComponent,\n chartViewHeight,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport type {\n ChartAnnotation,\n LineSeriesData,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nimport { formatPercent } from '@ids-group-ltd/ids-design-system/components';\nimport { stackOffsets } from '@ids-group-ltd/ids-design-system/components/chart';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n ChartAxisMode,\n ChartGaps,\n ChartCurve,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport { resolveChartDefaults } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n ChartTooltipContext,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n LINE_CHART_DEFAULT_TICK_COUNT,\n alignSeriesValues,\n domainMaxOf,\n paletteIndexFor,\n} from './line-chart.math';\n\n/** Matches `--ds-line-chart-plot-height`, for the frame before the first style read and for SSR. */\nconst DEFAULT_PLOT_HEIGHT = 240;\nimport type {\n LineChartAnnotation,\n LineChartStack,\n LineChartReading,\n LineChartSeries,\n} from './line-chart.types';\n\ninterface ResolvedSeries {\n readonly series: LineChartSeries;\n readonly values: readonly (number | null)[];\n /** Where this series' band starts on the value axis, one entry per category. `null` while the\n * chart is unstacked, where every band starts at the baseline. */\n readonly lowerValues: readonly (number | null)[] | null;\n readonly onSecondaryAxis: boolean;\n readonly color: string;\n /** `null` while `patterns` is off, which is what keeps a solid line solid. */\n readonly dash: string | null;\n}\n\n// One dash per palette slot, in the same order the colours are. Slot 1 stays solid so a\n// single-series chart is unchanged by turning patterns on.\nconst SERIES_DASH_ARRAYS = [\n 'none',\n '7 4',\n '2 3',\n '11 4 2 4',\n '1 4',\n '8 3 2 3',\n '4 2',\n '14 5',\n];\n\n@Component({\n selector: 'ds-line-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartComponent,\n LineSeriesComponent,\n SeriesAnnotationComponent,\n ChartTooltipDirective,\n ChartLegendComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './line-chart.component.html',\n styleUrl: './line-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n '[style.--_line-chart-view-height]': 'viewHeightPx()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LineChartComponent {\n /** X labels. Every series' `data` is read against this length. */\n readonly categories = input.required<readonly string[]>();\n\n /** One line per entry. Every series is read against `categories`, so a series longer than it\n * loses its tail and a shorter one ends early. */\n readonly series = input.required<readonly LineChartSeries[]>();\n\n /** How a secondary axis relates to the primary one. */\n readonly yAxisMode = input<ChartAxisMode>('aligned');\n\n /** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */\n readonly showMarkers = input(true, { transform: booleanAttribute });\n\n /** Labels pinned over their readings, for the points that have to read without a pointer. They\n * are drawn, not announced: the data table already carries every reading, and repeating one in\n * the plot makes a screen reader say it twice. */\n readonly annotations = input<readonly LineChartAnnotation[]>([]);\n\n /** Makes every reading focusable and clickable. A series drawn without markers grows invisible\n * ones so there is something to land on; they appear on hover and on focus.\n *\n * The click output fires whether or not this is set, so a consumer that binds the output and\n * forgets the flag still receives every click. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** The point that was clicked, or activated with Enter or Space. Fires whether or not\n * `interactive` is set. */\n readonly pointClicked = output<LineChartReading>();\n\n /** Holds the crosshair and its tooltip on the category that was clicked, until Escape or a\n * press outside releases it. Off by default: a click is already the drill-down hook, and a\n * crosshair left standing after the pointer has gone needs a reader who knows why. `pointClicked`\n * fires either way — pinning is a state, not a handler. */\n readonly pinOnClick = input(false, { transform: booleanAttribute });\n\n /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the\n * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed\n * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full\n * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark\n * and pays for it with the rest of the chart. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** What a `null` reading draws. The default refuses to assert that a missing\n * reading is a zero. */\n readonly gaps = input<ChartGaps>('break');\n\n /** How the line joins its readings. `'linear'` by default, which asserts nothing the data does\n * not say; a curve is a claim about what happened BETWEEN two readings. */\n readonly curve = input<ChartCurve>('linear');\n\n /** How several series share the value axis. Stacking runs per AXIS, so a series on the secondary\n * axis never piles onto one measured against the primary. */\n readonly stack = input<LineChartStack>('none');\n\n /** Names the first axis's unit beside it. On a plot carrying two scales the colour says which\n * line reads which axis and this says what the numbers ARE - and a reader who has neither is\n * left comparing two quantities that may not be comparable at all. */\n readonly yAxisLabel = input<string | null>(null);\n\n /** `yAxisLabel` for the second axis. */\n readonly secondaryAxisLabel = input<string | null>(null);\n\n /** How many value-axis ticks to aim for. A hint, not a count: ticks snap to a round step, so\n * the axis may carry one more or one fewer. */\n readonly tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;\n * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.\n * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards\n * is one decision per app rather than per plot. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the\n * default, takes it away at once: a panel that outlives the pointer sits over the plot the\n * reader has moved on to.\n *\n * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything\n * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so\n * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to\n * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */\n readonly tooltipLingerMs = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n /** Printed above the plot as the chart's visible title, and reused as the annex table's\n * caption. */\n readonly caption = input<string | null>(null);\n\n /** Accessible name. Generated from the data when omitted. */\n readonly summary = input<string | null>(null);\n\n /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,\n * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so\n * `'none'` belongs only where the same data is already in a table on the page.\n * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** Pins the value axis instead of deriving it from the data. A panel opened one subject at a\n * time — one agent, one microsite — derives a different axis for each of them, so two plots with\n * the same gentle wiggle can be four times apart in value and nothing on screen says so. A fixed\n * maximum is what makes two renders comparable.\n *\n * Null, the default, keeps the derived axis. Applies to the primary axis; `maxSecondary` pins\n * the second one where a series sets `axis: 'secondary'`. A maximum below the data does not clip\n * it — the larger of the two wins, because silently hiding a reading is worse than a taller axis\n * than you asked for. */\n readonly max = input<number | null>(null);\n\n /** Pins the secondary value axis. See `max`. */\n readonly maxSecondary = input<number | null>(null);\n\n /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize\n * when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Shown in place of the plot when `data` is empty. Unset falls back to\n * `DS_CONFIG.chart.emptyText`, then `'No data'`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,\n * because \"the request failed\" and \"there is nothing to show\" read the same to a reader and\n * mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** The message the error state prints. Unset falls back to `DS_CONFIG.chart.errorText`, then\n * `'Could not load the data'`. */\n readonly errorText = input<string | null>(null);\n /** Formats every value the chart prints, the annex table and the generated description\n * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale\n * grouping with a K/M/B suffix past four digits. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n private readonly defaults = resolveChartDefaults(this);\n readonly frameResolved = this.defaults.frame;\n readonly dataTableResolved = this.defaults.dataTable;\n readonly emptyTextResolved = this.defaults.emptyText;\n readonly errorTextResolved = this.defaults.errorText;\n readonly valueFormatResolved = this.defaults.valueFormat;\n\n protected readonly resolvedSeries = computed<readonly ResolvedSeries[]>(\n () => {\n const categoryCount = this.categories().length;\n const gaps = this.gaps();\n\n const patterns = this.patterns();\n\n return this.series().map((series, index) => {\n const slot = paletteIndexFor(\n series.slot,\n index,\n CHART_SERIES_COLORS.length,\n );\n\n return {\n series,\n values: alignSeriesValues(series.data, categoryCount, gaps),\n lowerValues: null,\n onSecondaryAxis: series.axis === 'secondary',\n color: CHART_SERIES_COLORS[slot],\n dash: patterns ? SERIES_DASH_ARRAYS[slot] : null,\n };\n });\n },\n );\n\n /** Ids of the series the legend has switched off. Two-way, so a page can drive it from a URL\n * parameter and read back what the reader chose. */\n readonly hiddenSeries = model<readonly string[]>([]);\n\n /** Whether hiding a series re-scales the value axis to what is left. Default `false`: a silent\n * rescale turns a period-over-period comparison into a different claim, and a comparison\n * dashboard is the common case. */\n readonly rescaleOnHide = input(false, { transform: booleanAttribute });\n\n /** Whether the legend switches series off. Off leaves it a plain key. */\n readonly legendFilters = input(false, { transform: booleanAttribute });\n\n /** What a legend control does. `'isolate'` shows one series and hides the rest — one action to\n * answer \"show me only this\" rather than one per series. `'toggle'` hides one and leaves the\n * rest, for taking a dominant series out so the others can be read at a usable scale.\n * Forwarded to `ds-chart-legend`, which renders radios for the first and checkboxes for the\n * second. */\n readonly legendMode = input<'toggle' | 'isolate'>('isolate');\n\n /** Shown in place of the plot once the legend has switched every series off. Without it the\n * reader is left with an empty grid and nothing saying why. */\n readonly noVisibleSeriesText = input<string>('All series are hidden');\n\n /** Gives every series a dash pattern of its own, so the lines are told apart by shape as well\n * as by colour — WCAG technique G111. Off by default: the shipped palette clears the\n * colour-blind separation threshold on its own, so the patterns are for monochrome print, for a\n * retuned palette, and for a reader who asks for them. */\n readonly patterns = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one series' entrance and the next. `0`, the default, is no stagger at\n * all; `40` is the documented non-zero step. The total is capped, so a long list of series does\n * not crawl in. */\n readonly staggerMs = input(0, { transform: numberAttribute });\n\n protected readonly highlightedSeries = signal<string | null>(null);\n\n /** Every series with its band's own span, stacked per axis. Hiding a series does NOT re-pile the\n * rest, for the same reason `rescaleOnHide` defaults off: switching one off must not move the\n * ones still drawn. A `null` stays a hole in the line and contributes nothing to the pile. */\n protected readonly stackedSeries = computed<readonly ResolvedSeries[]>(() => {\n const mode = this.stack();\n const entries = this.resolvedSeries();\n if (mode === 'none') {\n return entries;\n }\n\n const spans = new Map<ResolvedSeries, { from: number; to: number }[]>();\n for (const secondary of [false, true]) {\n const onThisAxis = entries.filter(\n (entry) => entry.onSecondaryAxis === secondary,\n );\n const offsets = stackOffsets(\n onThisAxis.map((entry) => entry.values.map((value) => value ?? 0)),\n mode,\n );\n onThisAxis.forEach((entry, index) =>\n spans.set(entry, [...offsets[index]]),\n );\n }\n\n return entries.map((entry) => {\n const span = spans.get(entry);\n if (!span) {\n return entry;\n }\n\n return {\n ...entry,\n values: entry.values.map((value, category) =>\n value === null ? null : span[category].to,\n ),\n lowerValues: entry.values.map((value, category) =>\n value === null ? null : span[category].from,\n ),\n };\n });\n });\n\n protected readonly visibleSeries = computed<readonly ResolvedSeries[]>(() => {\n const hidden = this.hiddenSeries();\n\n return this.stackedSeries().filter(\n (entry) => !hidden.includes(entry.series.id),\n );\n });\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.resolvedSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n /** A normalized stack draws shares, not readings, so the axis has to say so - the value a tooltip\n * or the annex table prints stays the reading, which is what `valueFormat` goes on formatting. */\n protected readonly axisFormat = computed<ChartValueFormat>(() =>\n this.stack() === 'normalized'\n ? (value: number) => formatPercent(value, 1)\n : this.valueFormatResolved(),\n );\n\n /** Each axis takes the colour of the series measured against it, but only where two scales share\n * one plot: on a single-scale chart it would restate the marks' own colour in the furniture,\n * and under `'split'` the two plots are already apart. The chart knows its own series colours,\n * so this is derived rather than asked for. */\n private readonly axisTint = computed(() => {\n if (!this.hasSecondaryAxis() || this.yAxisMode() === 'split') {\n return { primary: null, secondary: null };\n }\n const find = (onSecondaryAxis: boolean) =>\n this.visibleSeries().find(\n (entry) => entry.onSecondaryAxis === onSecondaryAxis,\n )?.color ?? null;\n\n return { primary: find(false), secondary: find(true) };\n });\n\n protected readonly primaryAxisFill = computed(() => this.axisTint().primary);\n\n protected readonly secondaryAxisFill = computed(\n () => this.axisTint().secondary,\n );\n\n protected readonly stacksSeries = computed(() => this.stack() !== 'none');\n\n protected readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n /** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the\n * category under the pointer, which is the reading a multi-series line is compared on;\n * `'item'` names only the marker itself. */\n readonly tooltip = input<ChartTooltipTrigger>('axis');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n /** Where the tooltip is pinned. `'point'`, the default, is the highest reading in the category,\n * so the panel stays put while the pointer moves within one band. `'pointer'` follows the\n * cursor. */\n readonly tooltipAnchor = input<'point' | 'pointer'>('point');\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n 'Category',\n ...this.resolvedSeries().map((entry) => entry.series.label),\n ]);\n\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableRows().map((row) => ({\n key: row.category,\n cells: [row.category, ...row.cells],\n })),\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.categories().map((category, index) => ({\n category,\n cells: this.resolvedSeries().map((entry) => {\n const value = entry.values[index];\n\n return value === null || value === undefined\n ? '—'\n : format(value, 'tooltip');\n }),\n }));\n });\n\n protected readonly accessibleName = computed(() => {\n const summary = this.summary();\n if (summary !== null) {\n return summary;\n }\n\n const title = this.caption() ?? 'Chart';\n const format = (value: number) =>\n this.valueFormatResolved()(value, 'tooltip');\n const categories = this.categories();\n // The pointer belongs to the WHOLE chart, not to each series, or a two-series plot promises\n // the table twice.\n const sentences = this.resolvedSeries().map((entry) =>\n describeSeries(\n entry.series.label,\n entry.values.flatMap((value, index) =>\n value === null ? [] : [{ label: categories[index] ?? '', value }],\n ),\n format,\n false,\n ),\n );\n const pointer =\n this.dataTableResolved() === 'none'\n ? ''\n : ' Full values in the table below.';\n // The plot's own text is inside an `aria-hidden` svg, so an annotation a sighted reader takes\n // as the point of the chart would otherwise reach nobody else.\n const notes = this.markAnnotations().map((note) => note.label);\n const noted = notes.length ? ` Noted: ${notes.join('; ')}.` : '';\n\n return sentences.length === 0\n ? describeSeries(title, [], format, this.dataTableResolved() !== 'none')\n : `${title}. ${sentences.join(' ')}${noted}${pointer}`;\n });\n\n private readonly plot = viewChild(ChartComponent);\n\n /** Whether the category cursor is held. Read off the container, which owns the pin now that it\n * owns the cursor. */\n protected readonly pinnedCategory = computed(\n () => this.plot()?.cursorPinned() ?? false,\n );\n\n protected releaseCategoryPin(): void {\n this.plot()?.releaseCursor();\n }\n\n /** What the series mark draws: the stacked values, the hidden series already filtered out. */\n protected readonly markSeries = computed<readonly LineSeriesData[]>(() =>\n this.visibleSeries().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n data: entry.values,\n axis: entry.onSecondaryAxis\n ? ('secondary' as const)\n : ('primary' as const),\n area: entry.series.area,\n lower: entry.lowerValues ?? undefined,\n color: entry.color,\n })),\n );\n\n protected readonly dashPatterns = computed<readonly string[]>(() =>\n this.visibleSeries().map((entry) => entry.dash ?? ''),\n );\n\n /** The reading each label names, which is what the mark needs: it draws against the scales and\n * never sees the series list. One whose series is hidden or whose reading is missing is\n * dropped rather than left floating over the plot. */\n protected readonly markAnnotations = computed<readonly ChartAnnotation[]>(\n () =>\n this.annotations().flatMap((annotation) => {\n const visible = this.visibleSeries();\n const entry = annotation.seriesId\n ? visible.find(\n (candidate) => candidate.series.id === annotation.seriesId,\n )\n : visible[0];\n const value = entry?.values[annotation.categoryIndex];\n if (!entry || typeof value !== 'number') {\n return [];\n }\n\n return [\n {\n categoryIndex: annotation.categoryIndex,\n value,\n label: annotation.label,\n axis: entry.onSecondaryAxis\n ? ('secondary' as const)\n : ('primary' as const),\n },\n ];\n }),\n );\n\n protected readonly markAnchor = computed(() =>\n this.tooltipAnchor() === 'pointer'\n ? ('pointer' as const)\n : ('reading' as const),\n );\n\n protected readonly hasSecondaryAxis = computed(() =>\n this.visibleSeries().some((entry) => entry.onSecondaryAxis),\n );\n\n /** The ceiling handed to the container, which raises its own domain to it and never lowers.\n * Unless `rescaleOnHide` says otherwise it is the maximum across EVERY series, so switching\n * one off does not move the gridlines under the ones still drawn. */\n protected readonly axisMax = computed(() =>\n this.rescaleOnHide() ? this.max() : this.ceilingOf(false, this.max()),\n );\n\n protected readonly axisMaxSecondary = computed(() =>\n this.rescaleOnHide()\n ? this.maxSecondary()\n : this.ceilingOf(true, this.maxSecondary()),\n );\n\n private ceilingOf(onSecondaryAxis: boolean, asked: number | null): number {\n const derived = domainMaxOf(\n this.stackedSeries()\n .filter((entry) => entry.onSecondaryAxis === onSecondaryAxis)\n .map((entry) => entry.values),\n );\n\n return asked !== null && Number.isFinite(asked) && asked > derived\n ? asked\n : derived;\n }\n\n /** `--ds-line-chart-plot-height` reaches an SVG coordinate space only as a number, so it is read\n * back off the host rather than applied as CSS. */\n protected readonly plotHeight = signal(DEFAULT_PLOT_HEIGHT);\n\n /** Every state occupies the box the plot would have, so nothing on the page moves when the data\n * lands, the request fails or the last series is switched off. */\n protected readonly viewHeightPx = computed(\n () => `${chartViewHeight(this.plotHeight(), CHART_DEFAULT_VALUE_SPACE)}px`,\n );\n\n protected onPointClicked(reading: {\n series: LineSeriesData;\n categoryIndex: number;\n value: number;\n }): void {\n const series = this.series().find(\n (candidate) => candidate.id === reading.series.id,\n );\n if (!series) {\n return;\n }\n this.pointClicked.emit({\n series,\n categoryIndex: reading.categoryIndex,\n category: this.categories()[reading.categoryIndex] ?? '',\n value: reading.value,\n });\n }\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef);\n afterNextRender(() => {\n const parsed = Number.parseFloat(\n getComputedStyle(host.nativeElement).getPropertyValue(\n '--_line-chart-plot-height',\n ),\n );\n if (Number.isFinite(parsed) && parsed > 0) {\n this.plotHeight.set(parsed);\n }\n });\n }\n\n protected readonly isEmpty = computed(\n () => this.series().length === 0 || this.categories().length === 0,\n );\n\n protected readonly showLegend = computed(() => this.series().length > 1);\n\n protected readonly noVisibleSeries = computed(\n () => this.series().length > 0 && this.visibleSeries().length === 0,\n );\n\n /** Placeholder legend rows while loading. Follows the real series count so the\n * chart does not resize when the data lands; falls back to three when `series`\n * is still empty. */\n protected readonly skeletonSeries = computed(() =>\n Array.from({ length: Math.max(this.series().length, 3) }),\n );\n}\n","<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n cursor=\"category\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [cursorPin]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"markAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n [dsChartTooltip]=\"mark.tooltipContext()\"\n [dsChartTooltipPreferBelow]=\"\n pinnedCategory() || mark.activeMark.pinned()\n \"\n [dsChartTooltipOrigin]=\"mark.tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n </ds-chart>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</fig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ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.title": "null", "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.title": "null", "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-padding-y: var(--ds-list-item-padding-y, var(--list-item-pad-y));--_list-item-padding-x: var(--ds-list-item-padding-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-padding-y) var(--_list-item-padding-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
36
36
  }
37
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, decorators: [{
38
38
  type: Component,
@@ -43,7 +43,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
43
43
  '[class.clickable]': 'clickable()',
44
44
  '[class.selected]': 'selected()',
45
45
  '[class.disabled]': 'disabled()',
46
- }, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"] }]
46
+ }, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-padding-y: var(--ds-list-item-padding-y, var(--list-item-pad-y));--_list-item-padding-x: var(--ds-list-item-padding-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-padding-y) var(--_list-item-padding-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"] }]
47
47
  }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], activated: [{ type: i0.Output, args: ["activated"] }] } });
48
48
 
49
49
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: {\n '[attr.title]': 'null',\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA;;;MCWU,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,+EAAC;AACrC;AACgF;IACvE,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEzD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;AACkD;IACzC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,SAAS,GA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AA,EAAA,QAAA,EC3B9B,4qCA0CA,EAAA,MAAA,EAAA,CAAA,mxGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED9BY,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAef,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlB7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EAGnC;AACJ,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,qBAAqB,EAAE,4BAA4B;AACnD,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,QAAA,EAAA,4qCAAA,EAAA,MAAA,EAAA,CAAA,mxGAAA,CAAA,EAAA;;;AEzBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: {\n '[attr.title]': 'null',\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA;;;MCWU,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,+EAAC;AACrC;AACgF;IACvE,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEzD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;AAC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,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3B9B,4qCA0CA,EAAA,MAAA,EAAA,CAAA,2yGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED9BY,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAef,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlB7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EAGnC;AACJ,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,qBAAqB,EAAE,4BAA4B;AACnD,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,kBAAkB,EAAE,YAAY;AACjC,qBAAA,EAAA,QAAA,EAAA,4qCAAA,EAAA,MAAA,EAAA,CAAA,2yGAAA,CAAA,EAAA;;;AEzBH;;AAEG;;;;"}
@@ -26,13 +26,13 @@ class LoadingOverlayComponent {
26
26
  */
27
27
  inertContent = input(true, { ...(ngDevMode ? { debugName: "inertContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
28
28
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LoadingOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LoadingOverlayComponent, isStandalone: true, selector: "ds-loading-overlay", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, blur: { classPropertyName: "blur", publicName: "blur", isSignal: true, isRequired: false, transformFunction: null }, spinnerSize: { classPropertyName: "spinnerSize", publicName: "spinnerSize", isSignal: true, isRequired: false, transformFunction: null }, insetTop: { classPropertyName: "insetTop", publicName: "insetTop", isSignal: true, isRequired: false, transformFunction: null }, inertContent: { classPropertyName: "inertContent", publicName: "inertContent", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "loading() ? \"true\" : null" } }, ngImport: i0, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
29
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LoadingOverlayComponent, isStandalone: true, selector: "ds-loading-overlay", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, blur: { classPropertyName: "blur", publicName: "blur", isSignal: true, isRequired: false, transformFunction: null }, spinnerSize: { classPropertyName: "spinnerSize", publicName: "spinnerSize", isSignal: true, isRequired: false, transformFunction: null }, insetTop: { classPropertyName: "insetTop", publicName: "insetTop", isSignal: true, isRequired: false, transformFunction: null }, inertContent: { classPropertyName: "inertContent", publicName: "inertContent", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "loading() ? \"true\" : null" } }, ngImport: i0, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_loading-overlay-scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_loading-overlay-label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_loading-overlay-enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_loading-overlay-enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_loading-overlay-enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_loading-overlay-enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_loading-overlay-scrim-color);animation-name:var(--_loading-overlay-enter-keyframes);animation-duration:var(--_loading-overlay-enter-duration);animation-timing-function:var(--_loading-overlay-enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_loading-overlay-label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
30
30
  }
31
31
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LoadingOverlayComponent, decorators: [{
32
32
  type: Component,
33
33
  args: [{ selector: 'ds-loading-overlay', standalone: true, imports: [SpinnerComponent], encapsulation: ViewEncapsulation.Emulated, host: {
34
34
  '[attr.aria-busy]': 'loading() ? "true" : null',
35
- }, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
35
+ }, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_loading-overlay-scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_loading-overlay-label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_loading-overlay-enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_loading-overlay-enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_loading-overlay-enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_loading-overlay-enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_loading-overlay-scrim-color);animation-name:var(--_loading-overlay-enter-keyframes);animation-duration:var(--_loading-overlay-enter-duration);animation-timing-function:var(--_loading-overlay-enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_loading-overlay-label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
36
36
  }], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], blur: [{ type: i0.Input, args: [{ isSignal: true, alias: "blur", required: false }] }], spinnerSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinnerSize", required: false }] }], insetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "insetTop", required: false }] }], inertContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "inertContent", required: false }] }] } });
37
37
 
38
38
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-loading-overlay.mjs","sources":["../../../src/lib/components/loading-overlay/loading-overlay.component.ts","../../../src/lib/components/loading-overlay/loading-overlay.component.html","../../../src/lib/components/loading-overlay/ids-group-ltd-ids-design-system-components-loading-overlay.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-loading-overlay',\n standalone: true,\n imports: [SpinnerComponent],\n templateUrl: './loading-overlay.component.html',\n styleUrl: './loading-overlay.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class LoadingOverlayComponent {\n /** Show the scrim + spinner over the projected region. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Optional caption beneath the spinner. */\n readonly label = input<string>('');\n /** Backdrop-blur the projected content behind the scrim. */\n readonly blur = input(true, { transform: booleanAttribute });\n /** Size of the spinner shown in the scrim. */\n readonly spinnerSize = input<DsSize>('md');\n /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */\n readonly insetTop = input<string>('0');\n\n /**\n * Whether the projected content goes `inert` while the scrim is up. On by\n * default, because a scrim that only stops the POINTER is the bug this exists\n * to prevent: focus walks straight under it, and a keyboard user activates a\n * control the mouse cannot even reach.\n *\n * Turn it off only when the scrim covers part of the content (`insetTop`), and\n * then mark the covered subtree `inert` yourself — a blanket flag would take\n * the uncovered part with it. `ds-table` does exactly that: the scrim starts\n * below the header, so sorting during a refresh stays possible.\n */\n readonly inertContent = input(true, { transform: booleanAttribute });\n}\n","<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoBa,uBAAuB,CAAA;;IAEzB,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEvD,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEnD,IAAA,WAAW,GAAG,KAAK,CAAS,IAAI,kFAAC;;AAEjC,IAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,+EAAC;AAEtC;;;;;;;;;;AAUG;IACM,YAAY,GAAG,KAAK,CAAC,IAAI,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAvBzD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA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AAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAXnC,SAAS;+BACE,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,kBAAkB,EAAE,2BAA2B;AAChD,qBAAA,EAAA,QAAA,EAAA,2YAAA,EAAA,MAAA,EAAA,CAAA,8rCAAA,CAAA,EAAA;;;AElBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-loading-overlay.mjs","sources":["../../../src/lib/components/loading-overlay/loading-overlay.component.ts","../../../src/lib/components/loading-overlay/loading-overlay.component.html","../../../src/lib/components/loading-overlay/ids-group-ltd-ids-design-system-components-loading-overlay.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-loading-overlay',\n standalone: true,\n imports: [SpinnerComponent],\n templateUrl: './loading-overlay.component.html',\n styleUrl: './loading-overlay.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class LoadingOverlayComponent {\n /** Show the scrim + spinner over the projected region. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Optional caption beneath the spinner. */\n readonly label = input<string>('');\n /** Backdrop-blur the projected content behind the scrim. */\n readonly blur = input(true, { transform: booleanAttribute });\n /** Size of the spinner shown in the scrim. */\n readonly spinnerSize = input<DsSize>('md');\n /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */\n readonly insetTop = input<string>('0');\n\n /**\n * Whether the projected content goes `inert` while the scrim is up. On by\n * default, because a scrim that only stops the POINTER is the bug this exists\n * to prevent: focus walks straight under it, and a keyboard user activates a\n * control the mouse cannot even reach.\n *\n * Turn it off only when the scrim covers part of the content (`insetTop`), and\n * then mark the covered subtree `inert` yourself — a blanket flag would take\n * the uncovered part with it. `ds-table` does exactly that: the scrim starts\n * below the header, so sorting during a refresh stays possible.\n */\n readonly inertContent = input(true, { transform: booleanAttribute });\n}\n","<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoBa,uBAAuB,CAAA;;IAEzB,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEvD,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEnD,IAAA,WAAW,GAAG,KAAK,CAAS,IAAI,kFAAC;;AAEjC,IAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,+EAAC;AAEtC;;;;;;;;;;AAUG;IACM,YAAY,GAAG,KAAK,CAAC,IAAI,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAvBzD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA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