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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +846 -14
  2. package/components.md +552 -29
  3. package/design-system.md +9 -0
  4. package/docs/agent/INDEX.md +57 -15
  5. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +1 -1
  6. package/docs/agent/charts/column-series-component.md +8 -0
  7. package/docs/agent/charts/ds-bar-chart.md +6 -1
  8. package/docs/agent/charts/ds-chart-data-table.md +10 -0
  9. package/docs/agent/charts/ds-chart.md +8 -0
  10. package/docs/agent/charts/ds-column-chart.md +5 -1
  11. package/docs/agent/charts/ds-funnel-chart.md +5 -1
  12. package/docs/agent/charts/ds-heatmap-chart.md +20 -0
  13. package/docs/agent/charts/ds-line-chart.md +8 -4
  14. package/docs/agent/charts/{ds-donut-chart.md → ds-pie-chart.md} +10 -6
  15. package/docs/agent/charts/ds-scatter-chart.md +20 -0
  16. package/docs/agent/charts/ds-waterfall-chart.md +20 -0
  17. package/docs/agent/charts/line-series-component.md +8 -0
  18. package/docs/agent/charts/reference-label-component.md +8 -0
  19. package/docs/agent/charts/reference-line-component.md +8 -0
  20. package/docs/agent/charts/series-annotation-component.md +10 -0
  21. package/docs/agent/feedback/ds-alert.md +4 -0
  22. package/docs/agent/feedback/ds-avatar-group.md +4 -0
  23. package/docs/agent/feedback/ds-avatar.md +4 -0
  24. package/docs/agent/feedback/ds-badge.md +4 -0
  25. package/docs/agent/feedback/ds-banner.md +5 -1
  26. package/docs/agent/feedback/ds-bar.md +4 -0
  27. package/docs/agent/feedback/ds-description-item.md +8 -0
  28. package/docs/agent/feedback/ds-description-list.md +8 -0
  29. package/docs/agent/feedback/ds-empty-state.md +4 -0
  30. package/docs/agent/feedback/ds-list-item.md +8 -0
  31. package/docs/agent/feedback/ds-list.md +8 -0
  32. package/docs/agent/feedback/ds-loading-overlay.md +8 -0
  33. package/docs/agent/feedback/ds-skeleton.md +4 -0
  34. package/docs/agent/feedback/ds-spinner.md +4 -0
  35. package/docs/agent/feedback/ds-stat.md +4 -0
  36. package/docs/agent/feedback/ds-status-dot.md +4 -0
  37. package/docs/agent/feedback/ds-tag.md +4 -0
  38. package/docs/agent/feedback/ds-timeline-item.md +8 -0
  39. package/docs/agent/feedback/ds-toast-region.md +8 -0
  40. package/docs/agent/feedback/ds-toast.md +4 -0
  41. package/docs/agent/feedback/ds-tree.md +8 -0
  42. package/docs/agent/forms/ds-autocomplete.md +4 -0
  43. package/docs/agent/forms/ds-button-group.md +8 -0
  44. package/docs/agent/forms/ds-button.md +6 -2
  45. package/docs/agent/forms/ds-checkbox.md +4 -0
  46. package/docs/agent/forms/ds-color-picker.md +8 -0
  47. package/docs/agent/forms/ds-date-picker.md +5 -1
  48. package/docs/agent/forms/ds-dropzone.md +4 -0
  49. package/docs/agent/forms/ds-field-group.md +8 -0
  50. package/docs/agent/forms/ds-filter-bar.md +8 -0
  51. package/docs/agent/forms/ds-icon-button.md +4 -0
  52. package/docs/agent/forms/ds-input.md +13 -1
  53. package/docs/agent/forms/ds-multi-select.md +4 -0
  54. package/docs/agent/forms/ds-number-stepper.md +4 -0
  55. package/docs/agent/forms/ds-otp-input.md +8 -0
  56. package/docs/agent/forms/ds-password-rules.md +8 -0
  57. package/docs/agent/forms/ds-radio-group.md +8 -0
  58. package/docs/agent/forms/ds-radio.md +4 -0
  59. package/docs/agent/forms/ds-search.md +4 -0
  60. package/docs/agent/forms/ds-segmented.md +8 -0
  61. package/docs/agent/forms/ds-select.md +4 -0
  62. package/docs/agent/forms/ds-slider.md +8 -0
  63. package/docs/agent/forms/ds-split-button.md +8 -0
  64. package/docs/agent/forms/ds-switch.md +4 -0
  65. package/docs/agent/forms/ds-textarea.md +5 -1
  66. package/docs/agent/forms/ds-time-picker.md +8 -0
  67. package/docs/agent/forms/ds-toggle-button.md +8 -0
  68. package/docs/agent/forms/filter-item-directive.md +8 -0
  69. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +4 -0
  70. package/docs/agent/navigation/ds-app-layout.md +6 -2
  71. package/docs/agent/navigation/ds-auth-layout.md +5 -1
  72. package/docs/agent/navigation/ds-breadcrumbs.md +4 -0
  73. package/docs/agent/navigation/ds-container.md +8 -0
  74. package/docs/agent/navigation/ds-divider.md +4 -0
  75. package/docs/agent/navigation/ds-inline.md +8 -0
  76. package/docs/agent/navigation/ds-page-footer.md +4 -0
  77. package/docs/agent/navigation/ds-page-header.md +5 -1
  78. package/docs/agent/navigation/ds-pagination.md +5 -1
  79. package/docs/agent/navigation/ds-sidenav-footer.md +8 -0
  80. package/docs/agent/navigation/ds-sidenav-group.md +4 -0
  81. package/docs/agent/navigation/ds-sidenav-item.md +4 -0
  82. package/docs/agent/navigation/ds-sidenav.md +4 -0
  83. package/docs/agent/navigation/ds-stack.md +8 -0
  84. package/docs/agent/navigation/ds-stepper.md +4 -0
  85. package/docs/agent/navigation/ds-tab.md +8 -0
  86. package/docs/agent/navigation/ds-tabs.md +5 -1
  87. package/docs/agent/overlays/ds-bottom-sheet.md +4 -0
  88. package/docs/agent/overlays/ds-drawer.md +4 -0
  89. package/docs/agent/overlays/ds-menu.md +4 -0
  90. package/docs/agent/overlays/ds-modal-card.md +4 -0
  91. package/docs/agent/overlays/ds-modal.md +4 -0
  92. package/docs/agent/overlays/ds-popover.md +4 -0
  93. package/docs/agent/overlays/ds-tooltip-panel.md +8 -0
  94. package/docs/agent/overlays/ds-tooltip.md +4 -0
  95. package/docs/agent/surfaces/ds-accordion-item.md +8 -0
  96. package/docs/agent/surfaces/ds-accordion.md +4 -0
  97. package/docs/agent/surfaces/ds-card.md +6 -2
  98. package/docs/agent/tables/ds-cell-template.md +8 -0
  99. package/docs/agent/tables/ds-table-columns.md +8 -0
  100. package/docs/agent/tables/ds-table-export.md +8 -0
  101. package/docs/agent/tables/ds-table.md +9 -2
  102. package/docs/agent/tables/header-filter-directive.md +8 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +10 -8
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +19 -19
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +7 -6
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +9 -6
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +117 -27
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +3 -3
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +7 -3
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +32 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +14 -2
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +404 -55
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -6
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +27 -10
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +5 -3
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +23 -16
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +20 -10
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +217 -0
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -0
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +181 -500
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +7 -5
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -3
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +391 -0
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -0
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +300 -0
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -0
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +9 -4
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +7 -5
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +2 -2
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +4 -1
  208. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +9 -9
  210. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  212. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  214. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  215. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  216. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  217. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +5 -3
  218. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  219. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  220. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  221. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +34 -21
  222. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  223. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  224. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  225. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +252 -0
  226. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -0
  227. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +271 -8
  228. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  229. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  230. package/fesm2022/ids-group-ltd-ids-design-system.mjs +7 -3
  231. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  232. package/migrations/0.10.0.json +2 -2
  233. package/migrations/0.10.1.json +3 -3
  234. package/migrations/0.10.2.json +8 -28
  235. package/migrations/0.11.0.json +3 -3
  236. package/migrations/0.11.1.json +15 -15
  237. package/migrations/0.11.2.json +9 -9
  238. package/migrations/0.11.3.json +1 -1
  239. package/migrations/0.11.4.json +8 -8
  240. package/migrations/0.12.1.json +1 -1
  241. package/migrations/0.12.2.json +1 -1
  242. package/migrations/0.12.3.json +3 -3
  243. package/migrations/0.13.0.json +24 -32
  244. package/migrations/0.13.1.json +5 -5
  245. package/migrations/0.13.4.json +994 -0
  246. package/migrations/0.5.0.json +1 -1
  247. package/migrations/0.8.0.json +4 -3
  248. package/migrations/0.9.0.json +1 -1
  249. package/package.json +41 -9
  250. package/styles/_chart-frame.scss +16 -3
  251. package/styles/_check-box.scss +12 -12
  252. package/styles/_dropdown-overlay.scss +14 -10
  253. package/styles/_field-box.scss +3 -3
  254. package/styles/_field-label.scss +7 -7
  255. package/styles/_overlay-motion.scss +1 -1
  256. package/styles/_table-controls.scss +3 -3
  257. package/styles/_tokens-charts.scss +40 -7
  258. package/styles/_tokens.scss +2 -2
  259. package/styles/_typography.scss +101 -101
  260. package/themes/dark/_theme.scss +13 -0
  261. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
  262. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
  263. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
  264. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
  265. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
  266. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +37 -4
  267. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
  268. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +8 -4
  269. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +31 -0
  270. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +4 -0
  271. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +230 -44
  272. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
  273. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +6 -2
  274. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
  276. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +5 -2
  277. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
  278. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +85 -139
  279. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
  280. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +13 -1
  281. package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +24 -19
  282. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
  283. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +183 -0
  284. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
  285. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
  286. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
  287. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +11 -11
  288. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  289. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
  290. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
  291. package/types/ids-group-ltd-ids-design-system-components.d.ts +97 -4
  292. package/types/ids-group-ltd-ids-design-system-core.d.ts +30 -7
  293. package/types/ids-group-ltd-ids-design-system.d.ts +14 -10
  294. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -382
  295. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
@@ -0,0 +1,300 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, numberAttribute, booleanAttribute, output, computed, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { resolveChartDefaults, decimationTarget, needsDecimating, lttbDecimate, minMaxDecimate, niceDomain, CHART_SERIES_COLORS, linearScale, tickValues } from '@ids-group-ltd/ids-design-system/components';
4
+ import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
5
+ import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
6
+ import { chartActiveMark, ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
+ import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
8
+
9
+ const SCATTER_VIEW_WIDTH = 640;
10
+ const SCATTER_VIEW_HEIGHT = 360;
11
+ const SCATTER_DEFAULT_TICK_COUNT = 5;
12
+ /** The span of every plotted reading on both scales. A non-finite coordinate is not a position, so
13
+ * it neither widens the plot nor lands on an edge of it.
14
+ *
15
+ * @internal */
16
+ function scatterExtent(series) {
17
+ const points = series
18
+ .flatMap((entry) => entry.data)
19
+ .filter((point) => Number.isFinite(point.x) && Number.isFinite(point.y));
20
+ if (points.length === 0) {
21
+ return { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };
22
+ }
23
+ return {
24
+ xMin: Math.min(...points.map((point) => point.x)),
25
+ xMax: Math.max(...points.map((point) => point.x)),
26
+ yMin: Math.min(...points.map((point) => point.y)),
27
+ yMax: Math.max(...points.map((point) => point.y)),
28
+ };
29
+ }
30
+ /** Where one reading lands, clamped into the plot. A domain pinned narrower than the data would
31
+ * otherwise put a mark over the axis labels rather than on an edge.
32
+ *
33
+ * @internal */
34
+ function scatterPlacement(point, extent, plot) {
35
+ const share = (value, min, max) => {
36
+ const span = max - min;
37
+ if (!Number.isFinite(span) || span <= 0 || !Number.isFinite(value)) {
38
+ return 0;
39
+ }
40
+ return Math.min(1, Math.max(0, (value - min) / span));
41
+ };
42
+ return {
43
+ cx: plot.left + share(point.x, extent.xMin, extent.xMax) * plot.width,
44
+ cy: plot.top +
45
+ plot.height -
46
+ share(point.y, extent.yMin, extent.yMax) * plot.height,
47
+ };
48
+ }
49
+
50
+ /** Room for the axis labels outside the plot, in the canvas's own units. */
51
+ const AXIS_GUTTER = 52;
52
+ const CATEGORY_GUTTER = 34;
53
+ const EDGE_GUTTER = 12;
54
+ /**
55
+ * Two continuous quantities against each other: weight against carriage cost, distance against
56
+ * time, volume against conversion. None of the other five charts draws this.
57
+ *
58
+ * It is the only chart in the family whose mark count the CALLER decides - an area has one node per
59
+ * series, a waterfall one per step, a heat map one per cell, and all three are bounded by the
60
+ * question itself. So it is also the only one that thins its own data before drawing: past four
61
+ * times the plot's width in marks the series is decimated, and the chart says so on its face
62
+ * rather than leaving the reader to count points that are not there.
63
+ */
64
+ class ScatterChartComponent {
65
+ /** One entry per series, each carrying its own readings. Both scales are continuous, so a
66
+ * point holds its position on each rather than an index into a list of categories. */
67
+ data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
68
+ /** Names the horizontal quantity under the plot. Without it the reader has two numbers and no
69
+ * idea which is which - on a scatter that is the whole reading. */
70
+ xLabel = input(null, ...(ngDevMode ? [{ debugName: "xLabel" }] : /* istanbul ignore next */ []));
71
+ /** Names the vertical quantity beside the plot. */
72
+ yLabel = input(null, ...(ngDevMode ? [{ debugName: "yLabel" }] : /* istanbul ignore next */ []));
73
+ /** Which decimator thins a series past the budget. `'minMax'` by default, because it is the only
74
+ * one that promises each bucket's extremum survives. */
75
+ decimator = input('minMax', ...(ngDevMode ? [{ debugName: "decimator" }] : /* istanbul ignore next */ []));
76
+ /** A hint, not a count, and it applies to BOTH axes. Ticks snap to a round step. */
77
+ tickCount = input(SCATTER_DEFAULT_TICK_COUNT, { ...(ngDevMode ? { debugName: "tickCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
78
+ /** Printed above the plot as the visible title, and reused as the annex table's caption. */
79
+ caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
80
+ /** The accessible name. Generated when omitted, naming both axes' spans, how many readings
81
+ * were drawn and how many were thinned out. */
82
+ summary = input(null, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
83
+ /** Makes every mark a button and gives it a keyboard route. `pointClicked` fires whether or
84
+ * not this is set. */
85
+ interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
86
+ /** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card
87
+ * the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */
88
+ frame = input(null, ...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
89
+ /** The annex table under the plot. It lists EVERY reading, including the ones decimation left
90
+ * out of the drawing, which is what keeps a thinned chart honest. */
91
+ dataTable = input(null, ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
92
+ /** A skeleton at the plot's own height, so the page does not resize when the data lands. */
93
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
94
+ /** Separate from empty data: "the request failed" and "there is nothing to show" read the same
95
+ * and mean opposite things. */
96
+ error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
97
+ /** Shown when no series carries a reading. Unset falls back to `DS_CONFIG.chart.emptyText`. */
98
+ emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
99
+ /** Shown in place of the plot while `error` is set. Unset falls back to
100
+ * `DS_CONFIG.chart.errorText`. */
101
+ errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
102
+ /** Formats every number the chart prints - both axes' ticks, the accessible name and the annex
103
+ * table. Unset falls back to `DS_CONFIG.chart.valueFormat`. */
104
+ valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
105
+ /** Whether a hovered or focused mark opens a tooltip. A scatter prints no value beside its
106
+ * marks - there is no room - so this is where a reading is read without the annex table. */
107
+ tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
108
+ /** Fades every mark but the one under the pointer. Off by default: on a scatter the pile-up IS
109
+ * the reading, and dimming the neighbours takes exactly that away. */
110
+ dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
111
+ /** The clicked reading, with the series it belongs to. Fires on click and on Enter or Space. */
112
+ pointClicked = output();
113
+ defaults = resolveChartDefaults(this);
114
+ frameResolved = this.defaults.frame;
115
+ dataTableResolved = this.defaults.dataTable;
116
+ emptyTextResolved = this.defaults.emptyText;
117
+ errorTextResolved = this.defaults.errorText;
118
+ valueFormatResolved = this.defaults.valueFormat;
119
+ activeMark = chartActiveMark(() => 0);
120
+ viewBox = `0 0 ${SCATTER_VIEW_WIDTH} ${SCATTER_VIEW_HEIGHT}`;
121
+ plot = {
122
+ left: AXIS_GUTTER,
123
+ top: EDGE_GUTTER,
124
+ width: SCATTER_VIEW_WIDTH - AXIS_GUTTER - EDGE_GUTTER,
125
+ height: SCATTER_VIEW_HEIGHT - CATEGORY_GUTTER - EDGE_GUTTER,
126
+ };
127
+ isEmpty = computed(() => this.data().every((series) => series.data.length === 0), ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
128
+ /** One mark per drawn unit of plot width is the ceiling: two marks sharing a pixel are two DOM
129
+ * nodes a reader cannot tell apart. The viewBox is one unit per pixel at a typical card width. */
130
+ budget = computed(() => decimationTarget(this.plot.width), ...(ngDevMode ? [{ debugName: "budget" }] : /* istanbul ignore next */ []));
131
+ drawnSeries = computed(() => {
132
+ const mode = this.decimator();
133
+ const budget = this.budget();
134
+ return this.data().map((series) => {
135
+ const thin = mode !== 'none' && needsDecimating(series.data.length, budget);
136
+ const data = !thin
137
+ ? series.data
138
+ : mode === 'lttb'
139
+ ? lttbDecimate(series.data, budget)
140
+ : minMaxDecimate(series.data, budget);
141
+ return { series, data, thinned: thin ? series.data.length : 0 };
142
+ });
143
+ }, ...(ngDevMode ? [{ debugName: "drawnSeries" }] : /* istanbul ignore next */ []));
144
+ /** How many readings were dropped, over every series. A decimated chart that does not SAY it is
145
+ * decimated leaves the reader counting points that were never drawn. */
146
+ droppedCount = computed(() => this.drawnSeries().reduce((total, entry) => total + (entry.thinned === 0 ? 0 : entry.thinned - entry.data.length), 0), ...(ngDevMode ? [{ debugName: "droppedCount" }] : /* istanbul ignore next */ []));
147
+ extent = computed(() => scatterExtent(this.drawnSeries().map((entry) => ({
148
+ ...entry.series,
149
+ data: entry.data,
150
+ }))), ...(ngDevMode ? [{ debugName: "extent" }] : /* istanbul ignore next */ []));
151
+ domains = computed(() => {
152
+ const measured = this.extent();
153
+ const ticks = this.tickCount();
154
+ const x = niceDomain(measured.xMin, measured.xMax, ticks);
155
+ const y = niceDomain(measured.yMin, measured.yMax, ticks);
156
+ return {
157
+ xMin: x.min,
158
+ xMax: x.max || measured.xMax,
159
+ yMin: y.min,
160
+ yMax: y.max || measured.yMax,
161
+ };
162
+ }, ...(ngDevMode ? [{ debugName: "domains" }] : /* istanbul ignore next */ []));
163
+ series = computed(() => {
164
+ const extent = this.domains();
165
+ return this.drawnSeries().map((entry, index) => {
166
+ const slot = index % CHART_SERIES_COLORS.length;
167
+ return {
168
+ key: entry.series.id,
169
+ series: entry.series,
170
+ color: entry.series.color ?? CHART_SERIES_COLORS[slot],
171
+ points: entry.data
172
+ .filter((point) => Number.isFinite(point.x) && Number.isFinite(point.y))
173
+ .map((point, pointIndex) => ({
174
+ key: `${entry.series.id}-${pointIndex}`,
175
+ point,
176
+ ...scatterPlacement(point, extent, this.plot),
177
+ })),
178
+ };
179
+ });
180
+ }, ...(ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []));
181
+ xTicks = computed(() => {
182
+ const { xMin, xMax } = this.domains();
183
+ const toX = linearScale(xMin, xMax, this.plot.width);
184
+ const format = this.valueFormatResolved();
185
+ return tickValues(xMin, xMax, this.tickCount()).map((value) => ({
186
+ value,
187
+ x: this.plot.left + toX(value),
188
+ label: format(value, 'tick'),
189
+ }));
190
+ }, ...(ngDevMode ? [{ debugName: "xTicks" }] : /* istanbul ignore next */ []));
191
+ yTicks = computed(() => {
192
+ const { yMin, yMax } = this.domains();
193
+ const toY = linearScale(yMin, yMax, this.plot.height);
194
+ const format = this.valueFormatResolved();
195
+ return tickValues(yMin, yMax, this.tickCount()).map((value) => ({
196
+ value,
197
+ y: this.plot.top + this.plot.height - toY(value),
198
+ label: format(value, 'tick'),
199
+ }));
200
+ }, ...(ngDevMode ? [{ debugName: "yTicks" }] : /* istanbul ignore next */ []));
201
+ plotBottom = this.plot.top + this.plot.height;
202
+ plotRight = this.plot.left + this.plot.width;
203
+ multiSeries = computed(() => this.data().length > 1, ...(ngDevMode ? [{ debugName: "multiSeries" }] : /* istanbul ignore next */ []));
204
+ legendItems = computed(() => this.series().map((entry) => ({
205
+ id: entry.series.id,
206
+ label: entry.series.label,
207
+ color: entry.color,
208
+ })), ...(ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []));
209
+ accessibleName = computed(() => {
210
+ const given = this.summary();
211
+ if (given) {
212
+ return given;
213
+ }
214
+ const format = this.valueFormatResolved();
215
+ const { xMin, xMax, yMin, yMax } = this.domains();
216
+ const counted = this.series().reduce((total, entry) => total + entry.points.length, 0);
217
+ const axes = `${this.xLabel() ?? 'x'} from ${format(xMin, 'tooltip')} to ${format(xMax, 'tooltip')}, ${this.yLabel() ?? 'y'} from ${format(yMin, 'tooltip')} to ${format(yMax, 'tooltip')}`;
218
+ const dropped = this.droppedCount();
219
+ return `${this.caption() ?? 'Scatter chart'}: ${counted} readings drawn, ${axes}.${dropped > 0 ? ` ${dropped} further readings were thinned out to keep the plot drawable; the data table lists every one.` : ''}`;
220
+ }, ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
221
+ dataTableColumns = computed(() => [
222
+ 'Series',
223
+ this.xLabel() ?? 'x',
224
+ this.yLabel() ?? 'y',
225
+ ], ...(ngDevMode ? [{ debugName: "dataTableColumns" }] : /* istanbul ignore next */ []));
226
+ /** Built only while the disclosure is open: a scatter carries thousands of readings, and every
227
+ * one of them as a table row is a cost nobody pays until they ask. */
228
+ dataTableRows = computed(() => this.tableIsOpen()
229
+ ? this.tableRows().map((row) => ({
230
+ key: row.key,
231
+ cells: [row.series, row.x, row.y],
232
+ }))
233
+ : [], ...(ngDevMode ? [{ debugName: "dataTableRows" }] : /* istanbul ignore next */ []));
234
+ tableRows = computed(() => {
235
+ const format = this.valueFormatResolved();
236
+ return this.data().flatMap((series) => series.data.map((point, index) => ({
237
+ key: `${series.id}-${index}`,
238
+ series: series.label,
239
+ x: format(point.x, 'tooltip'),
240
+ y: format(point.y, 'tooltip'),
241
+ })));
242
+ }, ...(ngDevMode ? [{ debugName: "tableRows" }] : /* istanbul ignore next */ []));
243
+ /** `<details>` keeps its children in the DOM while it is shut, so a scatter of 12 000 readings
244
+ * parked 48 000 nodes on the page - three times what decimating the PLOT had just saved. The
245
+ * rows are built when the disclosure opens and dropped when it shuts; every reading is still
246
+ * one click away, which is what the table is for. */
247
+ tableOpen = signal(false, ...(ngDevMode ? [{ debugName: "tableOpen" }] : /* istanbul ignore next */ []));
248
+ tableIsOpen = computed(() => this.tableOpen() || this.dataTableResolved() === 'visible', ...(ngDevMode ? [{ debugName: "tableIsOpen" }] : /* istanbul ignore next */ []));
249
+ skeletonHeight = `${SCATTER_VIEW_HEIGHT}`;
250
+ /** Flattened so one index addresses a mark, which is what `chartActiveMark` counts. */
251
+ flatMarks = computed(() => this.series().flatMap((entry) => entry.points.map((mark) => ({ entry, mark }))), ...(ngDevMode ? [{ debugName: "flatMarks" }] : /* istanbul ignore next */ []));
252
+ markIndex(seriesKey, pointKey) {
253
+ return this.flatMarks().findIndex((held) => held.entry.key === seriesKey && held.mark.key === pointKey);
254
+ }
255
+ tooltipContext = computed(() => {
256
+ const held = this.flatMarks()[this.activeMark.index()];
257
+ if (this.tooltip() === 'none' || !held) {
258
+ return null;
259
+ }
260
+ const format = this.valueFormatResolved();
261
+ return {
262
+ category: `${this.xLabel() ?? 'x'} ${format(held.mark.point.x, 'tooltip')}`,
263
+ entries: [
264
+ {
265
+ label: held.entry.series.label,
266
+ value: held.mark.point.y,
267
+ formatted: format(held.mark.point.y, 'tooltip'),
268
+ color: held.entry.color,
269
+ },
270
+ ],
271
+ };
272
+ }, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
273
+ onPointClick(series, point) {
274
+ this.pointClicked.emit({ series, point });
275
+ }
276
+ pointLabel(series, point) {
277
+ const format = this.valueFormatResolved();
278
+ return `${series.label}, ${this.xLabel() ?? 'x'} ${format(point.x, 'tooltip')}, ${this.yLabel() ?? 'y'} ${format(point.y, 'tooltip')}`;
279
+ }
280
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ScatterChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
281
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ScatterChartComponent, isStandalone: true, selector: "ds-scatter-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, xLabel: { classPropertyName: "xLabel", publicName: "xLabel", isSignal: true, isRequired: false, transformFunction: null }, yLabel: { classPropertyName: "yLabel", publicName: "yLabel", isSignal: true, isRequired: false, transformFunction: null }, decimator: { classPropertyName: "decimator", publicName: "decimator", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, exportAs: ["dsScatterChart"], ngImport: i0, template: "<figure class=\"scatter-chart\">\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 <ds-skeleton\n class=\"skeleton\"\n width=\"100%\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n <g [style.--_scatter-series-color]=\"entry.color\">\n @for (mark of entry.points; track mark.key) {\n <circle\n class=\"point\"\n animate.enter=\"mark-enter\"\n [class.interactive]=\"interactive()\"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \"\n (pointerenter)=\"\n activeMark.enter(markIndex(entry.key, mark.key), $event)\n \"\n (focus)=\"activeMark.enter(markIndex(entry.key, mark.key), $event)\"\n (click)=\"onPointClick(entry.series, mark.point)\"\n (keydown.enter)=\"onPointClick(entry.series, mark.point)\"\n (keydown.space)=\"onPointClick(entry.series, mark.point)\" />\n }\n </g>\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ droppedCount() }} readings thinned out to keep the plot drawable -\n every one is in the data table.\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend [items]=\"legendItems()\" />\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 (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.point.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.point.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.point:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.scatter-chart{--_scatter-chart-grid-line-color: var(--ds-scatter-chart-grid-line-color, var(--ds-chart-grid-line-color));--_scatter-chart-axis-line-color: var(--ds-scatter-chart-axis-line-color, var(--ds-chart-axis-line-color));--_scatter-chart-axis-label-color: var(--ds-scatter-chart-axis-label-color, var(--ds-chart-axis-label-color));--_scatter-chart-axis-font-size: var(--ds-scatter-chart-axis-font-size, var(--ds-chart-axis-font-size));--_scatter-chart-dot-radius: var(--ds-scatter-chart-dot-radius, var(--ds-chart-dot-radius));--_scatter-chart-dot-opacity: var(--ds-scatter-chart-dot-opacity, .72);--_scatter-chart-focus-color: var(--ds-scatter-chart-focus-color, var(--focus-ring-color));--_scatter-chart-focus-width: var(--ds-scatter-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-width: var(--_scatter-chart-focus-width);margin:0}.empty{display:grid;place-items:center;min-block-size:240px;margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_scatter-chart-grid-line-color);stroke-width:1}.axis-line{stroke:var(--_scatter-chart-axis-line-color);stroke-width:1}.axis-label,.axis-title{fill:var(--_scatter-chart-axis-label-color);font-size:var(--_scatter-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.axis-label.is-horizontal{dominant-baseline:auto}.axis-title{font-weight:var(--font-weight-bold)}.point{r:var(--_scatter-chart-dot-radius);fill:var(--_scatter-series-color);fill-opacity:var(--_scatter-chart-dot-opacity)}.point.interactive{cursor:pointer}.canvas .point{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill-opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.canvas .point.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:hover) .point.interactive:not(:hover),.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:focus-visible) .point.interactive:not(:focus-visible),.canvas.dims-others:has(.point.is-pinned) .point:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}@media not (forced-colors:active){.point.interactive:focus-visible{outline:none}}.point.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}\n"], dependencies: [{ kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPreferBelow"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
282
+ }
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ScatterChartComponent, decorators: [{
284
+ type: Component,
285
+ args: [{ selector: 'ds-scatter-chart', standalone: true, exportAs: 'dsScatterChart', imports: [
286
+ ChartLegendComponent,
287
+ ChartTooltipDirective,
288
+ SkeletonComponent,
289
+ ChartDataTableComponent,
290
+ ], host: {
291
+ '[class.framed]': "frameResolved() === 'auto'",
292
+ }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"scatter-chart\">\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 <ds-skeleton\n class=\"skeleton\"\n width=\"100%\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n <g [style.--_scatter-series-color]=\"entry.color\">\n @for (mark of entry.points; track mark.key) {\n <circle\n class=\"point\"\n animate.enter=\"mark-enter\"\n [class.interactive]=\"interactive()\"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \"\n (pointerenter)=\"\n activeMark.enter(markIndex(entry.key, mark.key), $event)\n \"\n (focus)=\"activeMark.enter(markIndex(entry.key, mark.key), $event)\"\n (click)=\"onPointClick(entry.series, mark.point)\"\n (keydown.enter)=\"onPointClick(entry.series, mark.point)\"\n (keydown.space)=\"onPointClick(entry.series, mark.point)\" />\n }\n </g>\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ droppedCount() }} readings thinned out to keep the plot drawable -\n every one is in the data table.\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend [items]=\"legendItems()\" />\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 (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.point.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.point.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.point:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.scatter-chart{--_scatter-chart-grid-line-color: var(--ds-scatter-chart-grid-line-color, var(--ds-chart-grid-line-color));--_scatter-chart-axis-line-color: var(--ds-scatter-chart-axis-line-color, var(--ds-chart-axis-line-color));--_scatter-chart-axis-label-color: var(--ds-scatter-chart-axis-label-color, var(--ds-chart-axis-label-color));--_scatter-chart-axis-font-size: var(--ds-scatter-chart-axis-font-size, var(--ds-chart-axis-font-size));--_scatter-chart-dot-radius: var(--ds-scatter-chart-dot-radius, var(--ds-chart-dot-radius));--_scatter-chart-dot-opacity: var(--ds-scatter-chart-dot-opacity, .72);--_scatter-chart-focus-color: var(--ds-scatter-chart-focus-color, var(--focus-ring-color));--_scatter-chart-focus-width: var(--ds-scatter-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-width: var(--_scatter-chart-focus-width);margin:0}.empty{display:grid;place-items:center;min-block-size:240px;margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_scatter-chart-grid-line-color);stroke-width:1}.axis-line{stroke:var(--_scatter-chart-axis-line-color);stroke-width:1}.axis-label,.axis-title{fill:var(--_scatter-chart-axis-label-color);font-size:var(--_scatter-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.axis-label.is-horizontal{dominant-baseline:auto}.axis-title{font-weight:var(--font-weight-bold)}.point{r:var(--_scatter-chart-dot-radius);fill:var(--_scatter-series-color);fill-opacity:var(--_scatter-chart-dot-opacity)}.point.interactive{cursor:pointer}.canvas .point{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill-opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.canvas .point.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:hover) .point.interactive:not(:hover),.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:focus-visible) .point.interactive:not(:focus-visible),.canvas.dims-others:has(.point.is-pinned) .point:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}@media not (forced-colors:active){.point.interactive:focus-visible{outline:none}}.point.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}\n"] }]
293
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], xLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "xLabel", required: false }] }], yLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "yLabel", required: false }] }], decimator: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimator", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }] } });
294
+
295
+ /**
296
+ * Generated bundle index. Do not edit.
297
+ */
298
+
299
+ export { ScatterChartComponent };
300
+ //# sourceMappingURL=ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-scatter-chart.mjs","sources":["../../../src/lib/components/scatter-chart/scatter-chart.math.ts","../../../src/lib/components/scatter-chart/scatter-chart.component.ts","../../../src/lib/components/scatter-chart/scatter-chart.component.html","../../../src/lib/components/scatter-chart/ids-group-ltd-ids-design-system-components-scatter-chart.ts"],"sourcesContent":["import type { ScatterChartSeries, ScatterPoint } from './scatter-chart.types';\n\nexport const SCATTER_VIEW_WIDTH = 640;\nexport const SCATTER_VIEW_HEIGHT = 360;\nexport const SCATTER_DEFAULT_TICK_COUNT = 5;\n\n/** The drawable rectangle, in the canvas's own units. */\nexport interface ScatterPlot {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\n/** What both axes have to hold. */\nexport interface ScatterExtent {\n readonly xMin: number;\n readonly xMax: number;\n readonly yMin: number;\n readonly yMax: number;\n}\n\n/** The span of every plotted reading on both scales. A non-finite coordinate is not a position, so\n * it neither widens the plot nor lands on an edge of it.\n *\n * @internal */\nexport function scatterExtent(\n series: readonly ScatterChartSeries[],\n): ScatterExtent {\n const points = series\n .flatMap((entry) => entry.data)\n .filter((point) => Number.isFinite(point.x) && Number.isFinite(point.y));\n\n if (points.length === 0) {\n return { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };\n }\n\n return {\n xMin: Math.min(...points.map((point) => point.x)),\n xMax: Math.max(...points.map((point) => point.x)),\n yMin: Math.min(...points.map((point) => point.y)),\n yMax: Math.max(...points.map((point) => point.y)),\n };\n}\n\n/** Where one reading lands, clamped into the plot. A domain pinned narrower than the data would\n * otherwise put a mark over the axis labels rather than on an edge.\n *\n * @internal */\nexport function scatterPlacement(\n point: ScatterPoint,\n extent: ScatterExtent,\n plot: ScatterPlot,\n): { cx: number; cy: number } {\n const share = (value: number, min: number, max: number): number => {\n const span = max - min;\n if (!Number.isFinite(span) || span <= 0 || !Number.isFinite(value)) {\n return 0;\n }\n\n return Math.min(1, Math.max(0, (value - min) / span));\n };\n\n return {\n cx: plot.left + share(point.x, extent.xMin, extent.xMax) * plot.width,\n cy:\n plot.top +\n plot.height -\n share(point.y, extent.yMin, extent.yMax) * plot.height,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n decimationTarget,\n linearScale,\n lttbDecimate,\n minMaxDecimate,\n needsDecimating,\n niceDomain,\n tickValues,\n} from '@ids-group-ltd/ids-design-system/components';\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 { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport {\n ChartTooltipDirective,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n SCATTER_DEFAULT_TICK_COUNT,\n SCATTER_VIEW_HEIGHT,\n SCATTER_VIEW_WIDTH,\n scatterExtent,\n scatterPlacement,\n} from './scatter-chart.math';\nimport type { ScatterPlot } from './scatter-chart.math';\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 ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from './scatter-chart.types';\n\n/** Room for the axis labels outside the plot, in the canvas's own units. */\nconst AXIS_GUTTER = 52;\nconst CATEGORY_GUTTER = 34;\nconst EDGE_GUTTER = 12;\n\ninterface PlacedPoint {\n readonly key: string;\n readonly cx: number;\n readonly cy: number;\n readonly point: ScatterPoint;\n}\n\ninterface PlacedSeries {\n readonly key: string;\n readonly series: ScatterChartSeries;\n readonly color: string;\n readonly points: readonly PlacedPoint[];\n}\n\n/**\n * Two continuous quantities against each other: weight against carriage cost, distance against\n * time, volume against conversion. None of the other five charts draws this.\n *\n * It is the only chart in the family whose mark count the CALLER decides - an area has one node per\n * series, a waterfall one per step, a heat map one per cell, and all three are bounded by the\n * question itself. So it is also the only one that thins its own data before drawing: past four\n * times the plot's width in marks the series is decimated, and the chart says so on its face\n * rather than leaving the reader to count points that are not there.\n */\n@Component({\n selector: 'ds-scatter-chart',\n standalone: true,\n exportAs: 'dsScatterChart',\n imports: [\n ChartLegendComponent,\n ChartTooltipDirective,\n SkeletonComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './scatter-chart.component.html',\n styleUrl: './scatter-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScatterChartComponent {\n /** One entry per series, each carrying its own readings. Both scales are continuous, so a\n * point holds its position on each rather than an index into a list of categories. */\n readonly data = input<readonly ScatterChartSeries[]>([]);\n\n /** Names the horizontal quantity under the plot. Without it the reader has two numbers and no\n * idea which is which - on a scatter that is the whole reading. */\n readonly xLabel = input<string | null>(null);\n\n /** Names the vertical quantity beside the plot. */\n readonly yLabel = input<string | null>(null);\n\n /** Which decimator thins a series past the budget. `'minMax'` by default, because it is the only\n * one that promises each bucket's extremum survives. */\n readonly decimator = input<ScatterChartDecimator>('minMax');\n\n /** A hint, not a count, and it applies to BOTH axes. Ticks snap to a round step. */\n readonly tickCount = input(SCATTER_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** Printed above the plot as the visible title, and reused as the annex table's caption. */\n readonly caption = input<string | null>(null);\n\n /** The accessible name. Generated when omitted, naming both axes' spans, how many readings\n * were drawn and how many were thinned out. */\n readonly summary = input<string | null>(null);\n\n /** Makes every mark a button and gives it a keyboard route. `pointClicked` fires whether or\n * not this is set. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card\n * the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** The annex table under the plot. It lists EVERY reading, including the ones decimation left\n * out of the drawing, which is what keeps a thinned chart honest. */\n readonly dataTable = input<ChartDataTable | null>(null);\n\n /** A skeleton at the plot's own height, so the page does not resize when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /** Separate from empty data: \"the request failed\" and \"there is nothing to show\" read the same\n * and mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** Shown when no series carries a reading. Unset falls back to `DS_CONFIG.chart.emptyText`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shown in place of the plot while `error` is set. Unset falls back to\n * `DS_CONFIG.chart.errorText`. */\n readonly errorText = input<string | null>(null);\n\n /** Formats every number the chart prints - both axes' ticks, the accessible name and the annex\n * table. Unset falls back to `DS_CONFIG.chart.valueFormat`. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n /** Whether a hovered or focused mark opens a tooltip. A scatter prints no value beside its\n * marks - there is no room - so this is where a reading is read without the annex table. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n /** Fades every mark but the one under the pointer. Off by default: on a scatter the pile-up IS\n * the reading, and dimming the neighbours takes exactly that away. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** The clicked reading, with the series it belongs to. Fires on click and on Enter or Space. */\n readonly pointClicked = output<ScatterChartReading>();\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 activeMark = chartActiveMark(() => 0);\n\n protected readonly viewBox = `0 0 ${SCATTER_VIEW_WIDTH} ${SCATTER_VIEW_HEIGHT}`;\n\n protected readonly plot: ScatterPlot = {\n left: AXIS_GUTTER,\n top: EDGE_GUTTER,\n width: SCATTER_VIEW_WIDTH - AXIS_GUTTER - EDGE_GUTTER,\n height: SCATTER_VIEW_HEIGHT - CATEGORY_GUTTER - EDGE_GUTTER,\n };\n\n protected readonly isEmpty = computed(() =>\n this.data().every((series) => series.data.length === 0),\n );\n\n /** One mark per drawn unit of plot width is the ceiling: two marks sharing a pixel are two DOM\n * nodes a reader cannot tell apart. The viewBox is one unit per pixel at a typical card width. */\n private readonly budget = computed(() => decimationTarget(this.plot.width));\n\n protected readonly drawnSeries = computed(() => {\n const mode = this.decimator();\n const budget = this.budget();\n\n return this.data().map((series) => {\n const thin =\n mode !== 'none' && needsDecimating(series.data.length, budget);\n const data = !thin\n ? series.data\n : mode === 'lttb'\n ? lttbDecimate(series.data, budget)\n : minMaxDecimate(series.data, budget);\n\n return { series, data, thinned: thin ? series.data.length : 0 };\n });\n });\n\n /** How many readings were dropped, over every series. A decimated chart that does not SAY it is\n * decimated leaves the reader counting points that were never drawn. */\n protected readonly droppedCount = computed(() =>\n this.drawnSeries().reduce(\n (total, entry) =>\n total + (entry.thinned === 0 ? 0 : entry.thinned - entry.data.length),\n 0,\n ),\n );\n\n private readonly extent = computed(() =>\n scatterExtent(\n this.drawnSeries().map((entry) => ({\n ...entry.series,\n data: entry.data,\n })),\n ),\n );\n\n private readonly domains = computed(() => {\n const measured = this.extent();\n const ticks = this.tickCount();\n const x = niceDomain(measured.xMin, measured.xMax, ticks);\n const y = niceDomain(measured.yMin, measured.yMax, ticks);\n\n return {\n xMin: x.min,\n xMax: x.max || measured.xMax,\n yMin: y.min,\n yMax: y.max || measured.yMax,\n };\n });\n\n protected readonly series = computed<readonly PlacedSeries[]>(() => {\n const extent = this.domains();\n\n return this.drawnSeries().map((entry, index) => {\n const slot = index % CHART_SERIES_COLORS.length;\n\n return {\n key: entry.series.id,\n series: entry.series,\n color: entry.series.color ?? CHART_SERIES_COLORS[slot],\n points: entry.data\n .filter(\n (point: ScatterPoint) =>\n Number.isFinite(point.x) && Number.isFinite(point.y),\n )\n .map((point: ScatterPoint, pointIndex: number) => ({\n key: `${entry.series.id}-${pointIndex}`,\n point,\n ...scatterPlacement(point, extent, this.plot),\n })),\n };\n });\n });\n\n protected readonly xTicks = computed(() => {\n const { xMin, xMax } = this.domains();\n const toX = linearScale(xMin, xMax, this.plot.width);\n const format = this.valueFormatResolved();\n\n return tickValues(xMin, xMax, this.tickCount()).map((value) => ({\n value,\n x: this.plot.left + toX(value),\n label: format(value, 'tick'),\n }));\n });\n\n protected readonly yTicks = computed(() => {\n const { yMin, yMax } = this.domains();\n const toY = linearScale(yMin, yMax, this.plot.height);\n const format = this.valueFormatResolved();\n\n return tickValues(yMin, yMax, this.tickCount()).map((value) => ({\n value,\n y: this.plot.top + this.plot.height - toY(value),\n label: format(value, 'tick'),\n }));\n });\n\n protected readonly plotBottom = this.plot.top + this.plot.height;\n protected readonly plotRight = this.plot.left + this.plot.width;\n\n protected readonly multiSeries = computed(() => this.data().length > 1);\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.series().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n protected readonly accessibleName = computed(() => {\n const given = this.summary();\n if (given) {\n return given;\n }\n const format = this.valueFormatResolved();\n const { xMin, xMax, yMin, yMax } = this.domains();\n const counted = this.series().reduce(\n (total, entry) => total + entry.points.length,\n 0,\n );\n const axes = `${this.xLabel() ?? 'x'} from ${format(xMin, 'tooltip')} to ${format(xMax, 'tooltip')}, ${this.yLabel() ?? 'y'} from ${format(yMin, 'tooltip')} to ${format(yMax, 'tooltip')}`;\n const dropped = this.droppedCount();\n\n return `${this.caption() ?? 'Scatter chart'}: ${counted} readings drawn, ${axes}.${dropped > 0 ? ` ${dropped} further readings were thinned out to keep the plot drawable; the data table lists every one.` : ''}`;\n });\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n 'Series',\n this.xLabel() ?? 'x',\n this.yLabel() ?? 'y',\n ]);\n\n /** Built only while the disclosure is open: a scatter carries thousands of readings, and every\n * one of them as a table row is a cost nobody pays until they ask. */\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableIsOpen()\n ? this.tableRows().map((row) => ({\n key: row.key,\n cells: [row.series, row.x, row.y],\n }))\n : [],\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.data().flatMap((series) =>\n series.data.map((point, index) => ({\n key: `${series.id}-${index}`,\n series: series.label,\n x: format(point.x, 'tooltip'),\n y: format(point.y, 'tooltip'),\n })),\n );\n });\n\n /** `<details>` keeps its children in the DOM while it is shut, so a scatter of 12 000 readings\n * parked 48 000 nodes on the page - three times what decimating the PLOT had just saved. The\n * rows are built when the disclosure opens and dropped when it shuts; every reading is still\n * one click away, which is what the table is for. */\n protected readonly tableOpen = signal(false);\n\n protected readonly tableIsOpen = computed(\n () => this.tableOpen() || this.dataTableResolved() === 'visible',\n );\n\n protected readonly skeletonHeight = `${SCATTER_VIEW_HEIGHT}`;\n\n /** Flattened so one index addresses a mark, which is what `chartActiveMark` counts. */\n private readonly flatMarks = computed(() =>\n this.series().flatMap((entry) =>\n entry.points.map((mark) => ({ entry, mark })),\n ),\n );\n\n protected markIndex(seriesKey: string, pointKey: string): number {\n return this.flatMarks().findIndex(\n (held) => held.entry.key === seriesKey && held.mark.key === pointKey,\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const held = this.flatMarks()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !held) {\n return null;\n }\n const format = this.valueFormatResolved();\n\n return {\n category: `${this.xLabel() ?? 'x'} ${format(held.mark.point.x, 'tooltip')}`,\n entries: [\n {\n label: held.entry.series.label,\n value: held.mark.point.y,\n formatted: format(held.mark.point.y, 'tooltip'),\n color: held.entry.color,\n },\n ],\n };\n },\n );\n\n protected onPointClick(\n series: ScatterChartSeries,\n point: ScatterPoint,\n ): void {\n this.pointClicked.emit({ series, point });\n }\n\n protected pointLabel(\n series: ScatterChartSeries,\n point: ScatterPoint,\n ): string {\n const format = this.valueFormatResolved();\n\n return `${series.label}, ${this.xLabel() ?? 'x'} ${format(point.x, 'tooltip')}, ${this.yLabel() ?? 'y'} ${format(point.y, 'tooltip')}`;\n }\n}\n","<figure class=\"scatter-chart\">\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 <ds-skeleton\n class=\"skeleton\"\n width=\"100%\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n <g [style.--_scatter-series-color]=\"entry.color\">\n @for (mark of entry.points; track mark.key) {\n <circle\n class=\"point\"\n animate.enter=\"mark-enter\"\n [class.interactive]=\"interactive()\"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \"\n (pointerenter)=\"\n activeMark.enter(markIndex(entry.key, mark.key), $event)\n \"\n (focus)=\"activeMark.enter(markIndex(entry.key, mark.key), $event)\"\n (click)=\"onPointClick(entry.series, mark.point)\"\n (keydown.enter)=\"onPointClick(entry.series, mark.point)\"\n (keydown.space)=\"onPointClick(entry.series, mark.point)\" />\n }\n </g>\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ droppedCount() }} readings thinned out to keep the plot drawable -\n every one is in the data table.\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend [items]=\"legendItems()\" />\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 (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</fig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AAA,EAGK;AACJ,wBAAA,gBAAgB,EAAE,4BAA4B;AAC/C,qBAAA,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8jIAAA,EAAA,MAAA,EAAA,CAAA,21MAAA,CAAA,EAAA;;;AEpGjD;;AAEG;;;;"}
@@ -149,7 +149,7 @@ class SearchComponent {
149
149
  useExisting: forwardRef(() => SearchComponent),
150
150
  multi: true,
151
151
  },
152
- ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\">\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\">\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\" />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n", styles: ["@charset \"UTF-8\";: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{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)));--_search-bg-color: var(--ds-search-bg-color, var(--surface-default));--_search-border: var(--ds-search-border, var(--border-default));--_search-radius: var(--ds-search-radius, var(--ds-radius-control));--_search-border-hover: var(--ds-search-border-hover, var(--border-default));--_search-bg-color-focus: var(--ds-search-bg-color-focus, var(--surface-default));--_search-border-focus: var(--ds-search-border-focus, var(--accent));--_search-focus-shadow: var(--ds-search-focus-shadow, var(--ds-field-focus-shadow));--_search-text-color: var(--ds-search-text-color, var(--text-primary));--_search-placeholder: var(--ds-search-placeholder, var(--text-tertiary));--_search-maxw: var(--ds-search-maxw, none);display:block}.search{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_search-bg-color);border:var(--border-width-default) solid var(--_search-border);border-radius:var(--_search-radius);padding:0 var(--space-3);height:var(--_search-height);width:100%;max-width:var(--_search-maxw);transition:border-color var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search:hover{border-color:var(--_search-border-hover)}@media not (forced-colors:active){.search .search-input:where(:focus-visible){outline:none}}.search:focus-within{background-color:var(--_search-bg-color-focus);border-color:var(--_search-border-focus);box-shadow:var(--_search-focus-shadow)}.search:has(.search-input:disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.search:has(.search-input:disabled) .search-input,.search:has(.search-input:disabled) .icon{color:var(--text-disabled)}.search .icon{width:var(--icon-md);height:var(--icon-md);color:var(--icon-default)}.search .search-input{flex:1;min-width:0;border:0}@media not (forced-colors:active){.search .search-input{outline:none}}.search .search-input{background:transparent;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_search-text-color)}.search .search-input::placeholder{color:var(--_search-placeholder)}.search .search-clear{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-0-5);border:0;background:transparent;border-radius:var(--radius-pill, 999px);color:var(--icon-default);cursor:pointer;opacity:1;transition:opacity var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search .search-clear .icon{width:var(--icon-sm);height:var(--icon-sm)}.search .search-clear:hover{opacity:1;background:var(--surface-muted, rgba(0, 0, 0, .06))}.search .search-clear:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.search .kbd{font:var(--font-weight-medium) var(--font-size-2xs)/var(--line-height-flat) var(--font-mono);padding:var(--space-px) var(--space-1-5);background:var(--surface-default);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--ds-radius-inner);color:var(--text-tertiary)}.search.sm{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-sm)))}.search.md{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)))}.search.lg{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-lg)))}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .search{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{outline:none}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: FieldClickFocusDirective, selector: "[dsFieldClickFocus]" }] });
152
+ ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\">\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\">\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\" />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n", styles: ["@charset \"UTF-8\";: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{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)));--_search-bg-color: var(--ds-search-bg-color, var(--surface-default));--_search-border: var(--ds-search-border, var(--border-default));--_search-radius: var(--ds-search-radius, var(--ds-radius-control));--_search-border-hover: var(--ds-search-border-hover, var(--border-default));--_search-bg-color-focus: var(--ds-search-bg-color-focus, var(--surface-default));--_search-border-focus: var(--ds-search-border-focus, var(--accent));--_search-focus-shadow: var(--ds-search-focus-shadow, var(--ds-field-focus-shadow));--_search-text-color: var(--ds-search-text-color, var(--text-primary));--_search-placeholder: var(--ds-search-placeholder, var(--text-tertiary));--_search-max-width: var(--ds-search-max-width, none);display:block}.search{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_search-bg-color);border:var(--border-width-default) solid var(--_search-border);border-radius:var(--_search-radius);padding:0 var(--space-3);height:var(--_search-height);width:100%;max-width:var(--_search-max-width);transition:border-color var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search:hover{border-color:var(--_search-border-hover)}@media not (forced-colors:active){.search .search-input:where(:focus-visible){outline:none}}.search:focus-within{background-color:var(--_search-bg-color-focus);border-color:var(--_search-border-focus);box-shadow:var(--_search-focus-shadow)}.search:has(.search-input:disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.search:has(.search-input:disabled) .search-input,.search:has(.search-input:disabled) .icon{color:var(--text-disabled)}.search .icon{width:var(--icon-md);height:var(--icon-md);color:var(--icon-default)}.search .search-input{flex:1;min-width:0;border:0}@media not (forced-colors:active){.search .search-input{outline:none}}.search .search-input{background:transparent;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_search-text-color)}.search .search-input::placeholder{color:var(--_search-placeholder)}.search .search-clear{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-0-5);border:0;background:transparent;border-radius:var(--radius-pill, 999px);color:var(--icon-default);cursor:pointer;opacity:1;transition:opacity var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search .search-clear .icon{width:var(--icon-sm);height:var(--icon-sm)}.search .search-clear:hover{opacity:1;background:var(--surface-muted, rgba(0, 0, 0, .06))}.search .search-clear:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.search .kbd{font:var(--font-weight-medium) var(--font-size-2xs)/var(--line-height-flat) var(--font-mono);padding:var(--space-px) var(--space-1-5);background:var(--surface-default);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--ds-radius-inner);color:var(--text-tertiary)}.search.sm{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-sm)))}.search.md{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)))}.search.lg{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-lg)))}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .search{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{outline:none}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: FieldClickFocusDirective, selector: "[dsFieldClickFocus]" }] });
153
153
  }
154
154
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SearchComponent, decorators: [{
155
155
  type: Component,
@@ -162,7 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
162
162
  useExisting: forwardRef(() => SearchComponent),
163
163
  multi: true,
164
164
  },
165
- ], template: "<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\">\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\">\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\" />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n", styles: ["@charset \"UTF-8\";: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{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)));--_search-bg-color: var(--ds-search-bg-color, var(--surface-default));--_search-border: var(--ds-search-border, var(--border-default));--_search-radius: var(--ds-search-radius, var(--ds-radius-control));--_search-border-hover: var(--ds-search-border-hover, var(--border-default));--_search-bg-color-focus: var(--ds-search-bg-color-focus, var(--surface-default));--_search-border-focus: var(--ds-search-border-focus, var(--accent));--_search-focus-shadow: var(--ds-search-focus-shadow, var(--ds-field-focus-shadow));--_search-text-color: var(--ds-search-text-color, var(--text-primary));--_search-placeholder: var(--ds-search-placeholder, var(--text-tertiary));--_search-maxw: var(--ds-search-maxw, none);display:block}.search{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_search-bg-color);border:var(--border-width-default) solid var(--_search-border);border-radius:var(--_search-radius);padding:0 var(--space-3);height:var(--_search-height);width:100%;max-width:var(--_search-maxw);transition:border-color var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search:hover{border-color:var(--_search-border-hover)}@media not (forced-colors:active){.search .search-input:where(:focus-visible){outline:none}}.search:focus-within{background-color:var(--_search-bg-color-focus);border-color:var(--_search-border-focus);box-shadow:var(--_search-focus-shadow)}.search:has(.search-input:disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.search:has(.search-input:disabled) .search-input,.search:has(.search-input:disabled) .icon{color:var(--text-disabled)}.search .icon{width:var(--icon-md);height:var(--icon-md);color:var(--icon-default)}.search .search-input{flex:1;min-width:0;border:0}@media not (forced-colors:active){.search .search-input{outline:none}}.search .search-input{background:transparent;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_search-text-color)}.search .search-input::placeholder{color:var(--_search-placeholder)}.search .search-clear{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-0-5);border:0;background:transparent;border-radius:var(--radius-pill, 999px);color:var(--icon-default);cursor:pointer;opacity:1;transition:opacity var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search .search-clear .icon{width:var(--icon-sm);height:var(--icon-sm)}.search .search-clear:hover{opacity:1;background:var(--surface-muted, rgba(0, 0, 0, .06))}.search .search-clear:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.search .kbd{font:var(--font-weight-medium) var(--font-size-2xs)/var(--line-height-flat) var(--font-mono);padding:var(--space-px) var(--space-1-5);background:var(--surface-default);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--ds-radius-inner);color:var(--text-tertiary)}.search.sm{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-sm)))}.search.md{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)))}.search.lg{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-lg)))}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .search{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{outline:none}}\n"] }]
165
+ ], template: "<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\">\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\">\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\" />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n", styles: ["@charset \"UTF-8\";: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{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)));--_search-bg-color: var(--ds-search-bg-color, var(--surface-default));--_search-border: var(--ds-search-border, var(--border-default));--_search-radius: var(--ds-search-radius, var(--ds-radius-control));--_search-border-hover: var(--ds-search-border-hover, var(--border-default));--_search-bg-color-focus: var(--ds-search-bg-color-focus, var(--surface-default));--_search-border-focus: var(--ds-search-border-focus, var(--accent));--_search-focus-shadow: var(--ds-search-focus-shadow, var(--ds-field-focus-shadow));--_search-text-color: var(--ds-search-text-color, var(--text-primary));--_search-placeholder: var(--ds-search-placeholder, var(--text-tertiary));--_search-max-width: var(--ds-search-max-width, none);display:block}.search{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_search-bg-color);border:var(--border-width-default) solid var(--_search-border);border-radius:var(--_search-radius);padding:0 var(--space-3);height:var(--_search-height);width:100%;max-width:var(--_search-max-width);transition:border-color var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search:hover{border-color:var(--_search-border-hover)}@media not (forced-colors:active){.search .search-input:where(:focus-visible){outline:none}}.search:focus-within{background-color:var(--_search-bg-color-focus);border-color:var(--_search-border-focus);box-shadow:var(--_search-focus-shadow)}.search:has(.search-input:disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.search:has(.search-input:disabled) .search-input,.search:has(.search-input:disabled) .icon{color:var(--text-disabled)}.search .icon{width:var(--icon-md);height:var(--icon-md);color:var(--icon-default)}.search .search-input{flex:1;min-width:0;border:0}@media not (forced-colors:active){.search .search-input{outline:none}}.search .search-input{background:transparent;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_search-text-color)}.search .search-input::placeholder{color:var(--_search-placeholder)}.search .search-clear{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-0-5);border:0;background:transparent;border-radius:var(--radius-pill, 999px);color:var(--icon-default);cursor:pointer;opacity:1;transition:opacity var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.search .search-clear .icon{width:var(--icon-sm);height:var(--icon-sm)}.search .search-clear:hover{opacity:1;background:var(--surface-muted, rgba(0, 0, 0, .06))}.search .search-clear:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.search .kbd{font:var(--font-weight-medium) var(--font-size-2xs)/var(--line-height-flat) var(--font-mono);padding:var(--space-px) var(--space-1-5);background:var(--surface-default);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--ds-radius-inner);color:var(--text-tertiary)}.search.sm{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-sm)))}.search.md{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-md)))}.search.lg{--_search-height: var(--ds-search-height, var(--ds-field-height, var(--field-h-lg)))}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .search{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .search:hover,:host(.in-group) .search:focus,:host(.in-group) .search:focus-visible,:host(.in-group) .search:focus-within{outline:none}}\n"] }]
166
166
  }], ctorParameters: () => [], propDecorators: { hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], shortcut: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortcut", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], submitted: [{ type: i0.Output, args: ["submitted"] }], debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }], inputEl: [{ type: i0.ViewChild, args: ['searchInput', { isSignal: true }] }] } });
167
167
 
168
168
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-search.mjs","sources":["../../../src/lib/components/search/search.component.ts","../../../src/lib/components/search/search.component.html","../../../src/lib/components/search/ids-group-ltd-ids-design-system-components-search.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n FormsModule,\n NG_VALUE_ACCESSOR,\n type ControlValueAccessor,\n} from '@angular/forms';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { valueControlBridge } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { inFieldGroup } from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-search',\n standalone: true,\n imports: [FormsModule, IconComponent, FieldClickFocusDirective],\n host: {\n '[class.in-group]': 'inGroup',\n '[style.display]': 'hidden() ? \"none\" : null',\n },\n templateUrl: './search.component.html',\n styleUrl: './search.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SearchComponent),\n multi: true,\n },\n ],\n})\n/**\n * Takes the CVA bridge rather than `DsControlValueAccessor`, which also carries\n * `DsFieldBase`: a search box is a toolbar filter, not a validated field, so it has\n * no message row and no message API. Where a search needs a label or an error line,\n * that is what `ds-input` is for.\n */\nexport class SearchComponent implements ControlValueAccessor {\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly bridge = valueControlBridge<string>(() => this.value);\n\n /** Hides the control, as every other DS control does. Inline `display`, not the\n * attribute: the host sets its own, which the weaker UA rule would lose to. */\n readonly hidden = input(false, { transform: booleanAttribute });\n\n /** Driven by the forms API — OR'd into `isDisabled` like every other control. */\n protected readonly formDisabled = this.bridge.formDisabled;\n\n /** Search text, two-way bound. */\n readonly value = model<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('Search');\n /** Keyboard shortcut hint rendered in a trailing `<kbd>` badge. */\n readonly shortcut = input<string>('');\n /** Shows the leading search icon. */\n readonly showIcon = input(true, { transform: booleanAttribute });\n /** Show an inline clear (×) button on the right when there's a value. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Accessible name for the input (placeholder is not a reliable label). */\n readonly ariaLabel = input<string>('');\n /** Disables the input and the clear button. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n /** Control height. `md` (default) keeps the 36px search-row height; `sm` (32px)\n * aligns search with dense toolbars beside `sm` inputs/buttons; `lg` is touch.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Fires with the current value on Enter. */\n readonly submitted = output<string>();\n /** Milliseconds to hold each keystroke back before `value` updates — 0 (default)\n * writes on every keystroke, exactly as this control always has.\n *\n * Clearing the field BYPASSES the delay, which is the part a plain\n * `debounceTime` gets wrong: emptying a search is a deliberate act, and making\n * the user wait 200ms to see the full list back reads as a hang. Enter flushes\n * for the same reason. What the input SHOWS is never delayed. */\n readonly debounce = input(0, { transform: numberAttribute });\n\n private readonly inputEl =\n viewChild<ElementRef<HTMLInputElement>>('searchInput');\n\n /** What the input shows. Separate from `value` only so typing never waits on\n * the timer; with `debounce` at 0 the two move together. */\n protected readonly text = signal(this.value());\n\n private pending: ReturnType<typeof setTimeout> | null = null;\n /** The last text this component pushed into `value`, so an update arriving from\n * the HOST can be told apart from its own echo — a host resetting the field\n * mid-typing has to win, and cancel the keystroke still in flight. */\n private pushed = this.value();\n\n constructor() {\n effect(() => {\n const incoming = this.value();\n if (incoming !== this.pushed) {\n this.cancel();\n this.pushed = incoming;\n this.text.set(incoming);\n }\n });\n }\n\n /** Move keyboard focus to the search input. Public so a host can hand focus\n * over deliberately — e.g. a Clear button that disables itself on activation\n * would otherwise blur into `<body>` and restart Tab order at the top. */\n focus(options?: FocusOptions): void {\n this.inputEl()?.nativeElement.focus(options);\n }\n\n protected onText(next: string): void {\n this.text.set(next);\n if (this.debounce() > 0 && next !== '') {\n this.cancel();\n this.pending = setTimeout(() => {\n this.pending = null;\n this.push(next);\n }, this.debounce());\n\n return;\n }\n this.cancel();\n this.push(next);\n }\n\n protected onSubmit(): void {\n this.flush();\n this.submitted.emit(this.value());\n }\n\n /** Empties the field, DROPS any armed keystroke, and publishes '' immediately.\n * Public for the same reason `focus()` is: a host-owned Clear button outside the\n * control needs it. Writing `''` into `value` is not equivalent — the effect\n * that watches `value` only cancels the timer when the incoming text DIFFERS\n * from what this control last pushed, so clearing an already-empty-looking field\n * mid-debounce left the keystroke armed. */\n clear(): void {\n this.text.set('');\n this.cancel();\n this.push('');\n // The × is removed once empty; return focus to the input so keyboard\n // users don't get dropped onto <body>.\n this.inputEl()?.nativeElement.focus();\n }\n\n /** So Enter searches what the reader can see, not what the timer last let past. */\n private flush(): void {\n if (this.pending) {\n this.cancel();\n this.push(this.text());\n }\n }\n\n private push(next: string): void {\n this.pushed = next;\n this.value.set(next);\n }\n\n writeValue(next: string): void {\n this.bridge.writeValue(next);\n }\n\n registerOnChange(fn: (next: string) => void): void {\n this.bridge.registerOnChange(fn);\n }\n\n registerOnTouched(fn: () => void): void {\n this.bridge.registerOnTouched(fn);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.bridge.setDisabledState(isDisabled);\n }\n\n /** Reported to the forms API on blur, so a search inside a form goes `ng-touched`. */\n protected markTouched(): void {\n this.bridge.markTouched();\n }\n\n private cancel(): void {\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n }\n}\n","<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\">\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\">\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\" />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA8CA;;;;;AAKG;MACU,eAAe,CAAA;AAC1B;AACwE;IACrD,OAAO,GAAG,YAAY,EAAE;IAE1B,MAAM,GAAG,kBAAkB,CAAS,MAAM,IAAI,CAAC,KAAK,CAAC;AAEtE;AACgF;IACvE,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAG5C,IAAA,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY;;AAGjD,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,WAAW,GAAG,KAAK,CAAS,QAAQ,kFAAC;;AAErC,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,+EAAC;;IAE5B,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEvD,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEzD,IA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T,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,aAAa,EAAE,wBAAwB,CAAC,EAAA,IAAA,EACzD;AACJ,wBAAA,kBAAkB,EAAE,SAAS;AAC7B,wBAAA,iBAAiB,EAAE,0BAA0B;qBAC9C,EAAA,aAAA,EAGc,iBAAiB,CAAC,QAAQ,EAAA,SAAA,EAC9B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,w4BAAA,EAAA,MAAA,EAAA,CAAA,q2JAAA,CAAA,EAAA;0nCA2DyC,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvGzD;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-search.mjs","sources":["../../../src/lib/components/search/search.component.ts","../../../src/lib/components/search/search.component.html","../../../src/lib/components/search/ids-group-ltd-ids-design-system-components-search.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n FormsModule,\n NG_VALUE_ACCESSOR,\n type ControlValueAccessor,\n} from '@angular/forms';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { valueControlBridge } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { inFieldGroup } from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-search',\n standalone: true,\n imports: [FormsModule, IconComponent, FieldClickFocusDirective],\n host: {\n '[class.in-group]': 'inGroup',\n '[style.display]': 'hidden() ? \"none\" : null',\n },\n templateUrl: './search.component.html',\n styleUrl: './search.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SearchComponent),\n multi: true,\n },\n ],\n})\n/**\n * Takes the CVA bridge rather than `DsControlValueAccessor`, which also carries\n * `DsFieldBase`: a search box is a toolbar filter, not a validated field, so it has\n * no message row and no message API. Where a search needs a label or an error line,\n * that is what `ds-input` is for.\n */\nexport class SearchComponent implements ControlValueAccessor {\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly bridge = valueControlBridge<string>(() => this.value);\n\n /** Hides the control, as every other DS control does. Inline `display`, not the\n * attribute: the host sets its own, which the weaker UA rule would lose to. */\n readonly hidden = input(false, { transform: booleanAttribute });\n\n /** Driven by the forms API — OR'd into `isDisabled` like every other control. */\n protected readonly formDisabled = this.bridge.formDisabled;\n\n /** Search text, two-way bound. */\n readonly value = model<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('Search');\n /** Keyboard shortcut hint rendered in a trailing `<kbd>` badge. */\n readonly shortcut = input<string>('');\n /** Shows the leading search icon. */\n readonly showIcon = input(true, { transform: booleanAttribute });\n /** Show an inline clear (×) button on the right when there's a value. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Accessible name for the input (placeholder is not a reliable label). */\n readonly ariaLabel = input<string>('');\n /** Disables the input and the clear button. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n /** Control height. `md` (default) keeps the 36px search-row height; `sm` (32px)\n * aligns search with dense toolbars beside `sm` inputs/buttons; `lg` is touch.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Fires with the current value on Enter. */\n readonly submitted = output<string>();\n /** Milliseconds to hold each keystroke back before `value` updates — 0 (default)\n * writes on every keystroke, exactly as this control always has.\n *\n * Clearing the field BYPASSES the delay, which is the part a plain\n * `debounceTime` gets wrong: emptying a search is a deliberate act, and making\n * the user wait 200ms to see the full list back reads as a hang. Enter flushes\n * for the same reason. What the input SHOWS is never delayed. */\n readonly debounce = input(0, { transform: numberAttribute });\n\n private readonly inputEl =\n viewChild<ElementRef<HTMLInputElement>>('searchInput');\n\n /** What the input shows. Separate from `value` only so typing never waits on\n * the timer; with `debounce` at 0 the two move together. */\n protected readonly text = signal(this.value());\n\n private pending: ReturnType<typeof setTimeout> | null = null;\n /** The last text this component pushed into `value`, so an update arriving from\n * the HOST can be told apart from its own echo — a host resetting the field\n * mid-typing has to win, and cancel the keystroke still in flight. */\n private pushed = this.value();\n\n constructor() {\n effect(() => {\n const incoming = this.value();\n if (incoming !== this.pushed) {\n this.cancel();\n this.pushed = incoming;\n this.text.set(incoming);\n }\n });\n }\n\n /** Move keyboard focus to the search input. Public so a host can hand focus\n * over deliberately — e.g. a Clear button that disables itself on activation\n * would otherwise blur into `<body>` and restart Tab order at the top. */\n focus(options?: FocusOptions): void {\n this.inputEl()?.nativeElement.focus(options);\n }\n\n protected onText(next: string): void {\n this.text.set(next);\n if (this.debounce() > 0 && next !== '') {\n this.cancel();\n this.pending = setTimeout(() => {\n this.pending = null;\n this.push(next);\n }, this.debounce());\n\n return;\n }\n this.cancel();\n this.push(next);\n }\n\n protected onSubmit(): void {\n this.flush();\n this.submitted.emit(this.value());\n }\n\n /** Empties the field, DROPS any armed keystroke, and publishes '' immediately.\n * Public for the same reason `focus()` is: a host-owned Clear button outside the\n * control needs it. Writing `''` into `value` is not equivalent — the effect\n * that watches `value` only cancels the timer when the incoming text DIFFERS\n * from what this control last pushed, so clearing an already-empty-looking field\n * mid-debounce left the keystroke armed. */\n clear(): void {\n this.text.set('');\n this.cancel();\n this.push('');\n // The × is removed once empty; return focus to the input so keyboard\n // users don't get dropped onto <body>.\n this.inputEl()?.nativeElement.focus();\n }\n\n /** So Enter searches what the reader can see, not what the timer last let past. */\n private flush(): void {\n if (this.pending) {\n this.cancel();\n this.push(this.text());\n }\n }\n\n private push(next: string): void {\n this.pushed = next;\n this.value.set(next);\n }\n\n writeValue(next: string): void {\n this.bridge.writeValue(next);\n }\n\n registerOnChange(fn: (next: string) => void): void {\n this.bridge.registerOnChange(fn);\n }\n\n registerOnTouched(fn: () => void): void {\n this.bridge.registerOnTouched(fn);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.bridge.setDisabledState(isDisabled);\n }\n\n /** Reported to the forms API on blur, so a search inside a form goes `ng-touched`. */\n protected markTouched(): void {\n this.bridge.markTouched();\n }\n\n private cancel(): void {\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n }\n}\n","<div\n class=\"search\"\n dsFieldClickFocus\n [class]=\"sizeResolved()\">\n @if (showIcon()) {\n <ds-icon\n name=\"search\"\n [size]=\"16\">\n </ds-icon>\n }\n\n <input\n #searchInput\n class=\"search-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [ngModel]=\"text()\"\n [disabled]=\"isDisabled()\"\n (ngModelChange)=\"onText($event)\"\n (keydown.enter)=\"onSubmit()\"\n (blur)=\"markTouched()\" />\n\n @if (clearable() && text()) {\n <button\n type=\"button\"\n class=\"search-clear\"\n aria-label=\"Clear search\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n\n @if (shortcut()) {\n <kbd class=\"kbd\">\n {{ shortcut() }}\n </kbd>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA8CA;;;;;AAKG;MACU,eAAe,CAAA;AAC1B;AACwE;IACrD,OAAO,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