@ids-group-ltd/ids-design-system 0.14.8 → 0.15.1

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 (353) hide show
  1. package/CHANGELOG.md +1145 -234
  2. package/components.md +122 -53
  3. package/docs/agent/INDEX.md +5 -3
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +7 -4
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +2 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +2 -1
  10. package/docs/agent/charts/ds-line-chart.md +3 -3
  11. package/docs/agent/charts/ds-pie-chart.md +3 -2
  12. package/docs/agent/charts/ds-scatter-chart.md +2 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +2 -2
  14. package/docs/agent/charts/line-series-component.md +1 -1
  15. package/docs/agent/feedback/ds-alert.md +1 -0
  16. package/docs/agent/feedback/ds-banner.md +1 -0
  17. package/docs/agent/feedback/ds-loading-overlay.md +2 -0
  18. package/docs/agent/feedback/ds-skeleton.md +1 -1
  19. package/docs/agent/feedback/ds-toast.md +2 -0
  20. package/docs/agent/forms/ds-autocomplete.md +1 -1
  21. package/docs/agent/forms/ds-button.md +1 -0
  22. package/docs/agent/forms/ds-checkbox.md +1 -1
  23. package/docs/agent/forms/ds-color-picker.md +1 -1
  24. package/docs/agent/forms/ds-date-picker.md +2 -1
  25. package/docs/agent/forms/ds-icon-button.md +1 -1
  26. package/docs/agent/forms/ds-input.md +1 -1
  27. package/docs/agent/forms/ds-multi-select.md +1 -1
  28. package/docs/agent/forms/ds-otp-input.md +1 -1
  29. package/docs/agent/forms/ds-radio-group.md +1 -1
  30. package/docs/agent/forms/ds-segmented.md +1 -1
  31. package/docs/agent/forms/ds-select.md +1 -1
  32. package/docs/agent/forms/ds-slider.md +1 -1
  33. package/docs/agent/forms/ds-switch.md +1 -1
  34. package/docs/agent/forms/ds-textarea.md +1 -1
  35. package/docs/agent/forms/ds-time-picker.md +1 -1
  36. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  37. package/docs/agent/foundations/global-helper-classes.md +4 -4
  38. package/docs/agent/foundations/tokens.md +1 -1
  39. package/docs/agent/navigation/ds-pagination.md +2 -1
  40. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  41. package/docs/agent/overlays/ds-definition-term.md +10 -0
  42. package/docs/agent/overlays/ds-drawer.md +1 -1
  43. package/docs/agent/overlays/ds-info-hint.md +29 -0
  44. package/docs/agent/overlays/ds-menu.md +1 -1
  45. package/docs/agent/overlays/ds-modal-card.md +1 -1
  46. package/docs/agent/overlays/ds-modal.md +19 -1
  47. package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
  48. package/docs/agent/overlays/ds-tooltip.md +3 -3
  49. package/docs/agent/tables/ds-table-columns.md +2 -0
  50. package/docs/agent/tables/ds-table.md +4 -3
  51. package/eslint/deprecated-api.json +889 -0
  52. package/eslint/index.mjs +394 -0
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +6 -3
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +6 -12
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +27 -9
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -3
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +169 -37
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +8 -9
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +7 -17
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +875 -90
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +2183 -1232
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +10 -5
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +15 -5
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +50 -11
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +22 -6
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +107 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -0
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +5 -15
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +44 -5
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +11 -22
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +51 -21
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +5 -4
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +110 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +11 -7
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +41 -46
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +183 -31
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +21 -26
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +27 -9
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +10 -5
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -6
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +106 -29
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +7 -4
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +12 -7
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +140 -26
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +10 -5
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +29 -9
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs +55 -0
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs.map +1 -0
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +10 -5
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +5 -4
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +2 -2
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +10 -5
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +36 -18
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +2 -2
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +17 -0
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +193 -19
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +15 -5
  208. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +26 -9
  210. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  212. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +20 -5
  214. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  215. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  216. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  217. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +434 -157
  218. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  219. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  220. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  221. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  222. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  223. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  224. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  225. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +18 -11
  226. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  227. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +323 -68
  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 +27 -83
  230. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  231. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  232. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  233. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +1 -0
  234. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  235. package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
  236. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  237. package/migrations/0.10.0.json +79 -21
  238. package/migrations/0.10.1.json +38 -21
  239. package/migrations/0.10.2.json +44 -7
  240. package/migrations/0.10.3.json +7 -5
  241. package/migrations/0.11.0.json +10 -7
  242. package/migrations/0.11.1.json +25 -14
  243. package/migrations/0.11.2.json +3 -3
  244. package/migrations/0.11.3.json +9 -6
  245. package/migrations/0.11.4.json +13 -12
  246. package/migrations/0.12.1.json +41 -14
  247. package/migrations/0.12.2.json +7 -6
  248. package/migrations/0.12.3.json +3 -3
  249. package/migrations/0.13.0.json +11 -11
  250. package/migrations/0.13.1.json +60 -8
  251. package/migrations/0.13.2.json +98 -44
  252. package/migrations/0.13.3.json +46 -16
  253. package/migrations/0.13.4.json +23 -22
  254. package/migrations/0.14.0.json +5 -5
  255. package/migrations/0.14.1.json +5 -5
  256. package/migrations/0.14.2.json +1 -1
  257. package/migrations/0.14.4.json +6 -5
  258. package/migrations/0.14.5.json +13 -7
  259. package/migrations/0.14.6.json +2 -2
  260. package/migrations/0.14.8.json +26 -2
  261. package/migrations/0.15.0.json +999 -0
  262. package/migrations/0.15.1.json +738 -0
  263. package/migrations/0.2.0.json +2 -2
  264. package/migrations/0.3.0.json +43 -6
  265. package/migrations/0.4.0.json +95 -13
  266. package/migrations/0.5.0.json +116 -10
  267. package/migrations/0.5.1.json +97 -11
  268. package/migrations/0.6.0.json +30 -1
  269. package/migrations/0.6.1.json +22 -1
  270. package/migrations/0.6.2.json +8 -4
  271. package/migrations/0.6.3.json +17 -5
  272. package/migrations/0.7.0.json +58 -9
  273. package/migrations/0.7.1.json +62 -8
  274. package/migrations/0.8.0.json +60 -12
  275. package/migrations/0.9.0.json +68 -25
  276. package/migrations/0.9.1.json +1 -1
  277. package/migrations/README.md +57 -3
  278. package/package.json +27 -1
  279. package/schematics/check-overrides/index.cjs +4 -11
  280. package/schematics/check-overrides/scan.cjs +12 -1
  281. package/schematics/check-overrides/surface.json +94 -11
  282. package/schematics/ng-add/index.cjs +7 -1
  283. package/stylelint/deprecated-tokens.json +2711 -0
  284. package/stylelint/index.mjs +94 -0
  285. package/stylelint/since-version.mjs +26 -0
  286. package/styles/_chart-frame.scss +14 -0
  287. package/styles/_chart-interactive.scss +26 -1
  288. package/styles/_chart-motion.scss +50 -17
  289. package/styles/_chip-row.scss +5 -2
  290. package/styles/_clear-button.scss +2 -0
  291. package/styles/_component-base.scss +56 -0
  292. package/styles/_dismiss-button.scss +16 -0
  293. package/styles/_dropdown-overlay.scss +19 -0
  294. package/styles/_focus.scss +4 -1
  295. package/styles/_link.scss +35 -12
  296. package/styles/_overlay-motion.scss +4 -6
  297. package/styles/_pinned.scss +43 -0
  298. package/styles/_skeleton-shimmer.scss +2 -8
  299. package/styles/_table-controls.scss +4 -0
  300. package/styles/_target.scss +40 -0
  301. package/styles/_text-clip.scss +23 -4
  302. package/styles/_tokens.scss +3 -1
  303. package/styles/_typography.scss +2 -0
  304. package/styles/_visually-hidden.scss +2 -0
  305. package/styles/ds.scss +0 -1
  306. package/themes/README.md +60 -7
  307. package/themes/_semantic.scss +5 -8
  308. package/themes/dark/_theme.scss +5 -8
  309. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +1 -1
  310. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +6 -1
  311. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +1 -1
  312. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +74 -4
  313. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +3 -2
  314. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +4 -4
  315. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +87 -7
  316. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +207 -29
  317. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +2 -0
  318. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +2 -0
  319. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +30 -4
  320. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +3 -1
  321. package/types/ids-group-ltd-ids-design-system-components-definition-term.d.ts +22 -0
  322. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +0 -1
  323. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +19 -2
  324. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +7 -6
  325. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +22 -8
  326. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +3 -2
  327. package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +23 -0
  328. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  329. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +18 -7
  330. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +14 -3
  331. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +0 -2
  332. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +6 -1
  333. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +2 -0
  334. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +5 -3
  335. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +26 -7
  336. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +2 -1
  337. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +2 -0
  338. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +52 -10
  339. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +2 -0
  340. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +6 -1
  341. package/types/ids-group-ltd-ids-design-system-components-show-dirty.d.ts +29 -0
  342. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  343. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +2 -0
  344. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +2 -0
  345. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +39 -9
  346. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
  347. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  348. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +2 -0
  349. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +54 -24
  350. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +9 -2
  351. package/types/ids-group-ltd-ids-design-system-components.d.ts +135 -35
  352. package/types/ids-group-ltd-ids-design-system-core.d.ts +46 -23
  353. package/types/ids-group-ltd-ids-design-system.d.ts +6 -3
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-sidenav.mjs","sources":["../../../src/lib/components/sidenav/brand-name.directive.ts","../../../src/lib/components/sidenav/sidenav.token.ts","../../../src/lib/components/sidenav/sidenav.component.ts","../../../src/lib/components/sidenav/sidenav.component.html","../../../src/lib/components/sidenav/sidenav-group.component.ts","../../../src/lib/components/sidenav/sidenav-group.component.html","../../../src/lib/components/sidenav/sidenav-item.component.ts","../../../src/lib/components/sidenav/sidenav-item.component.html","../../../src/lib/components/sidenav/ids-group-ltd-ids-design-system-components-sidenav.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav\n * renders the projected content inside `.brand-name` instead of the plain\n * `brand` text.\n *\n * It renders the brand row even without a string `brand`, but the letter-mark\n * tile still comes from `logoLetter` (or the first letter of `brand`), so an\n * empty `brand` + projection renders the wordmark with no tile.\n */\n@Directive({\n selector: '[dsBrandName]',\n standalone: true,\n})\nexport class BrandNameDirective {}\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */\nexport interface SidenavContract {\n readonly collapsed: () => boolean;\n /** Whether the active item draws its edge marker; an item can override it. */\n readonly rail: () => boolean;\n}\n\nexport const SIDENAV = new InjectionToken<SidenavContract>('SIDENAV');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { BrandNameDirective } from './brand-name.directive';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\nimport { SIDENAV, type SidenavContract } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav',\n standalone: true,\n imports: [NgTemplateOutlet, RouterLink],\n templateUrl: './sidenav.component.html',\n styleUrl: './sidenav.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.sidenav]': 'true',\n '[class.collapsed]': 'collapsed()',\n },\n providers: [{ provide: SIDENAV, useExisting: SidenavComponent }],\n})\nexport class SidenavComponent implements SidenavContract {\n /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */\n readonly collapsed = input(false, { transform: booleanAttribute });\n /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. An individual\n * `ds-sidenav-item` can override it with its own `rail`. */\n readonly rail = input(true, { transform: booleanAttribute });\n /** Brand text at the top of the rail (auto letter-mark + name). Unset falls back to\n * `DS_CONFIG.brand.name`. Each field resolves on its own: `brand=\"\"` drops the\n * wordmark while a configured `logoLetter` still paints its tile. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter. Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** Route the brand row links to. Unset leaves the row non-interactive. `RouterLink` is\n * instantiated only once this is set, so an app with no router still renders. */\n readonly brandRoute = input<string | readonly unknown[] | null>(null);\n /** Accessible name for the brand link; unset names it \"<brand>, home\". Ignored\n * while `brandRoute` is unset. */\n readonly brandLinkLabel = input<string | null>(null);\n\n /** Read these, not the inputs: the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n\n /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: that splits an astral character's surrogate pair. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n\n protected readonly brandAriaLabel = computed(() => {\n const own = this.brandLinkLabel();\n if (own) {\n return own;\n }\n const name = this.brandName();\n\n return name ? `${name}, home` : 'Home';\n });\n}\n","@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import { dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n DsAriaCurrent,\n DsLinkModifiers,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-sidenav-group',\n standalone: true,\n imports: [IconComponent, NgTemplateOutlet, RouterLink, RouterLinkActive],\n templateUrl: './sidenav-group.component.html',\n styleUrl: './sidenav-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavGroupComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Group heading text. */\n readonly label = input<string>('');\n /** Optional group icon; omit to project custom content via the `[ds-group-icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */\n readonly expandable = input(false, { transform: booleanAttribute });\n /** Makes the group a destination as well as a container: the header navigates here and the\n * caret becomes a separate control. Unset, the whole header only expands. */\n readonly routerLink = input<DsRouterLink>(null);\n /** Overrides what the group header announces when it is itself a destination. Unset, the page\n * the reader is on announces `page` and the section containing it announces `true`. */\n readonly ariaCurrent = input<DsAriaCurrent | null | undefined>(undefined);\n /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */\n readonly expanded = model<boolean>(true);\n\n /** A header that navigates hands the caret its own button; one that does not is the button. */\n private readonly noModifiers = computed<DsLinkModifiers>(() => ({}));\n protected readonly ariaCurrentResolved = dsAriaCurrent(\n this.routerLink,\n this.noModifiers,\n this.ariaCurrent,\n );\n\n protected readonly headerNavigates = computed(\n () => this.expandable() && this.routerLink() !== null,\n );\n\n protected toggle(): void {\n if (!this.expandable()) {\n return;\n }\n this.expanded.update((value) => !value);\n }\n}\n","<!-- Single <ng-content> outside any @if: duplicates silently drop children on a non-matching branch.\n Same for [ds-group-icon], so both header branches stamp out ONE template. -->\n<ng-template #headerContent>\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\">\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` differs from the `[icon]` slots of child sidenav-items so their icons aren't swallowed. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n</ng-template>\n\n@if (headerNavigates()) {\n <div class=\"group-header-row\">\n <a\n class=\"group-header\"\n routerLinkActive=\"active\"\n [routerLink]=\"routerLink()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n </a>\n\n <button\n type=\"button\"\n class=\"group-caret-button\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"\n expanded()\n ? intl().sidenav.collapseGroup(label())\n : intl().sidenav.expandGroup(label())\n \"\n (click)=\"toggle()\">\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n} @else if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\">\n <ng-content></ng-content>\n</div>\n","import { dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n DsAriaCurrent,\n DsLinkModifiers,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { SIDENAV } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav-item',\n standalone: true,\n imports: [\n IconComponent,\n RouterLink,\n RouterLinkActive,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './sidenav-item.component.html',\n styleUrl: './sidenav-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavItemComponent {\n /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */\n readonly label = input.required<string>();\n /** Plain `href` target, used when `routerLink` is not set. */\n readonly href = input<string>('');\n /** Angular `RouterLink` target, string or array form for dynamic segments. */\n readonly routerLink = input<DsRouterLink>(null);\n /** Applies the active style; also drives `aria-current` when not using `routerLink`. */\n readonly active = input(false, { transform: booleanAttribute });\n /** Overrides what an active item announces. Unset, an exact match announces `page` and a prefix\n * match announces `true` (\"you are in this section\"). */\n readonly ariaCurrent = input<DsAriaCurrent | null | undefined>(undefined);\n /** Numeric count shown at the end of the item. */\n readonly badge = input<number | null>(null);\n /** Shows an alert dot alongside the badge. */\n readonly hasAlert = input(false, { transform: booleanAttribute });\n /** Disables the item: non-navigable and styled as inactive. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Emitted on click, carrying the `MouseEvent`. On an `href` item, `preventDefault()`\n * intercepts navigation; a `routerLink` item navigates regardless (RouterLink ignores\n * `defaultPrevented`). */\n readonly activate = output<MouseEvent>();\n\n /** Whether THIS item draws its edge marker when active. Unset follows the parent `ds-sidenav`, then on. */\n readonly rail = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n private readonly sidenav = inject(SIDENAV, { optional: true });\n\n private readonly noModifiers = computed<DsLinkModifiers>(() => ({}));\n protected readonly ariaCurrentResolved = dsAriaCurrent(\n this.routerLink,\n this.noModifiers,\n this.ariaCurrent,\n );\n\n protected readonly railResolved = computed(\n () => this.rail() ?? this.sidenav?.rail() ?? true,\n );\n\n protected onActivate(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.activate.emit(event);\n }\n\n /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */\n protected readonly collapsedTooltip = computed(() =>\n this.sidenav?.collapsed() ? this.label() : '',\n );\n\n // Only when collapsed: expanded, it would override the visible label and drop the badge count / alert dot.\n protected readonly collapsedAriaLabel = computed(() =>\n this.sidenav?.collapsed() ? this.label() : null,\n );\n\n protected readonly linkClasses = computed(() => {\n const parts = ['item'];\n if (this.active()) {\n parts.push('active');\n }\n // The routerLink variant gets `active` from routerLinkActive, so the opt-out needs its own class.\n if (!this.railResolved()) {\n parts.push('no-rail');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<!-- Projection is by attribute only ([icon], [trailing]); no default <ng-content>.\n The two <a> variants share one #content template. -->\n@if (routerLink()) {\n <a\n routerLinkActive=\"active\"\n dsTooltipPlacement=\"right\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n dsTooltipPlacement=\"right\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so a button: `href=\"#\"` would rewrite the URL and discard the scroll position. -->\n <button\n type=\"button\"\n dsTooltipPlacement=\"right\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\">\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA;;;;;;;;AAQG;MAKU,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,U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AA,EAAA,oBAAA,EAAA,gBAAA,EAAA,sBAAA,EAAA,uBAAA,EAAA,sBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAMP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAdhC,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP;wBACP,aAAa;wBACb,UAAU;wBACV,gBAAgB;wBAChB,gBAAgB;wBAChB,gBAAgB;qBACjB,EAAA,aAAA,EAGc,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,0sEAAA,EAAA,MAAA,EAAA,CAAA,q2HAAA,CAAA,EAAA;;;AElC3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-sidenav.mjs","sources":["../../../src/lib/components/sidenav/brand-name.directive.ts","../../../src/lib/components/sidenav/sidenav.token.ts","../../../src/lib/components/sidenav/sidenav.component.ts","../../../src/lib/components/sidenav/sidenav.component.html","../../../src/lib/components/sidenav/sidenav-group.component.ts","../../../src/lib/components/sidenav/sidenav-group.component.html","../../../src/lib/components/sidenav/sidenav-item.component.ts","../../../src/lib/components/sidenav/sidenav-item.component.html","../../../src/lib/components/sidenav/ids-group-ltd-ids-design-system-components-sidenav.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav\n * renders the projected content inside `.brand-name` instead of the plain\n * `brand` text.\n *\n * It renders the brand row even without a string `brand`, but the letter-mark\n * tile still comes from `logoLetter` (or the first letter of `brand`), so an\n * empty `brand` + projection renders the wordmark with no tile.\n */\n@Directive({\n selector: '[dsBrandName]',\n standalone: true,\n})\nexport class BrandNameDirective {}\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */\nexport interface SidenavContract {\n readonly collapsed: () => boolean;\n /** Whether the active item draws its edge marker; an item can override it. */\n readonly rail: () => boolean;\n}\n\nexport const SIDENAV = new InjectionToken<SidenavContract>('SIDENAV');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { BrandNameDirective } from './brand-name.directive';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\nimport { SIDENAV, type SidenavContract } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav',\n standalone: true,\n imports: [NgTemplateOutlet, RouterLink],\n templateUrl: './sidenav.component.html',\n styleUrl: './sidenav.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.sidenav]': 'true',\n '[class.collapsed]': 'collapsed()',\n },\n providers: [{ provide: SIDENAV, useExisting: SidenavComponent }],\n})\nexport class SidenavComponent implements SidenavContract {\n /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */\n readonly collapsed = input(false, { transform: booleanAttribute });\n /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. An individual\n * `ds-sidenav-item` can override it with its own `rail`. */\n readonly rail = input(true, { transform: booleanAttribute });\n /** Brand text at the top of the rail (auto letter-mark + name). Unset falls back to\n * `DS_CONFIG.brand.name`. Each field resolves on its own: `brand=\"\"` drops the\n * wordmark while a configured `logoLetter` still paints its tile. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter. Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** Route the brand row links to. Unset leaves the row non-interactive. `RouterLink` is\n * instantiated only once this is set, so an app with no router still renders. */\n readonly brandRoute = input<string | readonly unknown[] | null>(null);\n /** Accessible name for the brand link; unset names it \"<brand>, home\". Ignored\n * while `brandRoute` is unset. */\n readonly brandLinkLabel = input<string | null>(null);\n\n /** Read these, not the inputs: the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n\n /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: that splits an astral character's surrogate pair. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n\n protected readonly brandAriaLabel = computed(() => {\n const own = this.brandLinkLabel();\n if (own) {\n return own;\n }\n const name = this.brandName();\n\n return name ? `${name}, home` : 'Home';\n });\n}\n","@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import { dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n DsAriaCurrent,\n DsLinkModifiers,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-sidenav-group',\n standalone: true,\n imports: [IconComponent, NgTemplateOutlet, RouterLink, RouterLinkActive],\n templateUrl: './sidenav-group.component.html',\n styleUrl: './sidenav-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavGroupComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Group heading text. */\n readonly label = input<string>('');\n /** Optional group icon; omit to project custom content via the `[ds-group-icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */\n readonly expandable = input(false, { transform: booleanAttribute });\n /** Makes the group a destination as well as a container: the header navigates here and the\n * caret becomes a separate control. Unset, the whole header only expands. */\n readonly routerLink = input<DsRouterLink>(null);\n /** Overrides what the group header announces when it is itself a destination. Unset, the page\n * the reader is on announces `page` and the section containing it announces `true`. */\n readonly ariaCurrent = input<DsAriaCurrent | null | undefined>(undefined);\n /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */\n readonly expanded = model<boolean>(true);\n\n /** A header that navigates hands the caret its own button; one that does not is the button. */\n private readonly noModifiers = computed<DsLinkModifiers>(() => ({}));\n protected readonly ariaCurrentResolved = dsAriaCurrent(\n this.routerLink,\n this.noModifiers,\n this.ariaCurrent,\n );\n\n protected readonly headerNavigates = computed(\n () => this.expandable() && this.routerLink() !== null,\n );\n\n protected toggle(): void {\n if (!this.expandable()) {\n return;\n }\n this.expanded.update((value) => !value);\n }\n}\n","<!-- Single <ng-content> outside any @if: duplicates silently drop children on a non-matching branch.\n Same for [ds-group-icon], so both header branches stamp out ONE template. -->\n<ng-template #headerContent>\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\">\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` differs from the `[icon]` slots of child sidenav-items so their icons aren't swallowed. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n</ng-template>\n\n@if (headerNavigates()) {\n <div class=\"group-header-row\">\n <a\n class=\"group-header\"\n routerLinkActive=\"active\"\n [routerLink]=\"routerLink()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n </a>\n\n <button\n type=\"button\"\n class=\"group-caret-button\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"\n expanded()\n ? intl().sidenav.collapseGroup(label())\n : intl().sidenav.expandGroup(label())\n \"\n (click)=\"toggle()\">\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n} @else if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\">\n <ng-content></ng-content>\n</div>\n","import { dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n DsAriaCurrent,\n DsLinkModifiers,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { SIDENAV } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav-item',\n standalone: true,\n imports: [\n IconComponent,\n RouterLink,\n RouterLinkActive,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './sidenav-item.component.html',\n styleUrl: './sidenav-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavItemComponent {\n /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */\n readonly label = input.required<string>();\n /** Plain `href` target, used when `routerLink` is not set. */\n readonly href = input<string>('');\n /** Angular `RouterLink` target, string or array form for dynamic segments. */\n readonly routerLink = input<DsRouterLink>(null);\n /** Applies the active style; also drives `aria-current` when not using `routerLink`. */\n readonly active = input(false, { transform: booleanAttribute });\n /** Overrides what an active item announces. Unset, an exact match announces `page` and a prefix\n * match announces `true` (\"you are in this section\"). */\n readonly ariaCurrent = input<DsAriaCurrent | null | undefined>(undefined);\n /** Numeric count shown at the end of the item. */\n readonly badge = input<number | null>(null);\n /** Shows an alert dot alongside the badge. */\n readonly hasAlert = input(false, { transform: booleanAttribute });\n /** Disables the item: non-navigable and styled as inactive. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Emitted on click, carrying the `MouseEvent`. On an `href` item, `preventDefault()`\n * intercepts navigation; a `routerLink` item navigates regardless (RouterLink ignores\n * `defaultPrevented`). */\n readonly activate = output<MouseEvent>();\n\n /** Whether THIS item draws its edge marker when active. Unset follows the parent `ds-sidenav`, then on. */\n readonly rail = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n private readonly sidenav = inject(SIDENAV, { optional: true });\n\n private readonly noModifiers = computed<DsLinkModifiers>(() => ({}));\n protected readonly ariaCurrentResolved = dsAriaCurrent(\n this.routerLink,\n this.noModifiers,\n this.ariaCurrent,\n );\n\n protected readonly railResolved = computed(\n () => this.rail() ?? this.sidenav?.rail() ?? true,\n );\n\n protected onActivate(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.activate.emit(event);\n }\n\n /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */\n protected readonly collapsedTooltip = computed(() =>\n this.sidenav?.collapsed() ? this.label() : '',\n );\n\n // Only when collapsed: expanded, it would override the visible label and drop the badge count / alert dot.\n protected readonly collapsedAriaLabel = computed(() =>\n this.sidenav?.collapsed() ? this.label() : null,\n );\n\n protected readonly linkClasses = computed(() => {\n const parts = ['item'];\n if (this.active()) {\n parts.push('active');\n }\n // The routerLink variant gets `active` from routerLinkActive, so the opt-out needs its own class.\n if (!this.railResolved()) {\n parts.push('no-rail');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<!-- Projection is by attribute only ([icon], [trailing]); no default <ng-content>.\n The two <a> variants share one #content template. -->\n@if (routerLink()) {\n <a\n routerLinkActive=\"active\"\n dsTooltipPlacement=\"right\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n dsTooltipPlacement=\"right\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so a button: `href=\"#\"` would rewrite the URL and discard the scroll position. -->\n <button\n type=\"button\"\n dsTooltipPlacement=\"right\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\">\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA;;;;;;;;AAQG;MAKU,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;MCLY,OAAO,GAAG,IAAI,cAAc,CAAkB,SAAS;;MCkBvD,gBAAgB,CAAA;;IAElB,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAClE;AAC6D;IACpD,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EA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EAAA,CAAA,u8IAAA,CAAA,EAAA;;;AElC3C;;AAEG;;;;"}
@@ -39,7 +39,7 @@ class SkeletonComponent {
39
39
  });
40
40
  }
41
41
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()", "class.still": "!shimmer()" } }, ngImport: i0, template: '', isInline: true, styles: [":host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}\n"] });
42
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()", "class.still": "!shimmer()" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}@media(prefers-reduced-motion:reduce){:host:after{animation:none}}\n"] });
43
43
  }
44
44
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SkeletonComponent, decorators: [{
45
45
  type: Component,
@@ -50,7 +50,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
50
50
  '[class.circle]': 'circle()',
51
51
  '[class.inline]': 'inline()',
52
52
  '[class.still]': '!shimmer()',
53
- }, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}\n"] }]
53
+ }, encapsulation: ViewEncapsulation.Emulated, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}@media(prefers-reduced-motion:reduce){:host:after{animation:none}}\n"] }]
54
54
  }], ctorParameters: () => [], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], circle: [{ type: i0.Input, args: [{ isSignal: true, alias: "circle", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], shimmer: [{ type: i0.Input, args: [{ isSignal: true, alias: "shimmer", required: false }] }] } });
55
55
 
56
56
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-skeleton.mjs","sources":["../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/skeleton/ids-group-ltd-ids-design-system-components-skeleton.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n NgZone,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n} from '@angular/core';\n\n// The shimmer animates `background-position` on the main thread even off screen; one shared\n// observer pauses the skeletons out of view.\nlet offscreenObserver: IntersectionObserver | null = null;\n\nfunction observeVisibility(host: Element, zone: NgZone): () => void {\n offscreenObserver ??= zone.runOutsideAngular(\n () =>\n new IntersectionObserver((entries) => {\n for (const entry of entries) {\n entry.target.classList.toggle('is-offscreen', !entry.isIntersecting);\n }\n }),\n );\n const observer = offscreenObserver;\n observer.observe(host);\n\n return () => observer.unobserve(host);\n}\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n '[class.still]': '!shimmer()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width, e.g. `'120px'` or `'50%'`. */\n readonly width = input<string | undefined>(undefined);\n /** CSS height. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n /** Whether the wave passes over the placeholder; off, it is a flat block of the same shape. */\n readonly shimmer = input(true, { transform: booleanAttribute });\n\n constructor() {\n if (typeof IntersectionObserver === 'undefined') {\n return;\n }\n const host = inject<ElementRef<Element>>(ElementRef).nativeElement;\n const zone = inject(NgZone);\n // Each observed skeleton costs an intersection computation per scrolled frame; a still one has nothing to pause.\n effect((onCleanup) => {\n if (this.shimmer()) {\n onCleanup(observeVisibility(host, zone));\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAWA;AACA;AACA,IAAI,iBAAiB,GAAgC,IAAI;AAEzD,SAAS,iBAAiB,CAAC,IAAa,EAAE,IAAY,EAAA;AACpD,IAAA,iBAAiB,KAAK,IAAI,CAAC,iBAAiB,CAC1C,MACE,IAAI,oBAAoB,CAAC,CAAC,OAAO,KAAI;AACnC,QAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,YAAA,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;QACtE;IACF,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,CAAA;;4FAYD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,IAAA,EAEN;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,eAAe,EAAE,YAAY;qBAC9B,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,wwDAAA,CAAA,EAAA;;;AC3C3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-skeleton.mjs","sources":["../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/skeleton/ids-group-ltd-ids-design-system-components-skeleton.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n NgZone,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n} from '@angular/core';\n\n// The shimmer animates `background-position` on the main thread even off screen; one shared\n// observer pauses the skeletons out of view.\nlet offscreenObserver: IntersectionObserver | null = null;\n\nfunction observeVisibility(host: Element, zone: NgZone): () => void {\n offscreenObserver ??= zone.runOutsideAngular(\n () =>\n new IntersectionObserver((entries) => {\n for (const entry of entries) {\n entry.target.classList.toggle('is-offscreen', !entry.isIntersecting);\n }\n }),\n );\n const observer = offscreenObserver;\n observer.observe(host);\n\n return () => observer.unobserve(host);\n}\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n '[class.still]': '!shimmer()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width, e.g. `'120px'` or `'50%'`. */\n readonly width = input<string | undefined>(undefined);\n /** CSS height. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n /** Whether the wave passes over the placeholder; off, it is a flat block of the same shape. */\n readonly shimmer = input(true, { transform: booleanAttribute });\n\n constructor() {\n if (typeof IntersectionObserver === 'undefined') {\n return;\n }\n const host = inject<ElementRef<Element>>(ElementRef).nativeElement;\n const zone = inject(NgZone);\n // Each observed skeleton costs an intersection computation per scrolled frame; a still one has nothing to pause.\n effect((onCleanup) => {\n if (this.shimmer()) {\n onCleanup(observeVisibility(host, zone));\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAWA;AACA;AACA,IAAI,iBAAiB,GAAgC,IAAI;AAEzD,SAAS,iBAAiB,CAAC,IAAa,EAAE,IAAY,EAAA;AACpD,IAAA,iBAAiB,KAAK,IAAI,CAAC,iBAAiB,CAC1C,MACE,IAAI,oBAAoB,CAAC,CAAC,OAAO,KAAI;AACnC,QAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,YAAA,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;QACtE;IACF,CAAC,CAAC,CACL;IACD,MAAM,QAAQ,GAAG,iBAAiB;AAClC,IAAA,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;IAEtB,OAAO,MAAM,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC;AACvC;MAiBa,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,4EAAC;;AAE5C,IAAA,MAAM,GAAG,KAAK,CAAqB,SAAS,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B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,eAAe,EAAE,YAAY;qBAC9B,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,w8EAAA,CAAA,EAAA;;;AC3C3C;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { inject, model, input, numberAttribute, booleanAttribute, viewChild, com
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
5
5
  import { DsControlValueAccessor, nextControlId, resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';
6
- import { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';
6
+ import { FieldMessageComponent, FieldStatusComponent } from '@ids-group-ltd/ids-design-system/components/field-message';
7
7
 
8
8
  class SliderComponent extends DsControlValueAccessor {
9
9
  intl = inject(DS_INTL);
@@ -24,8 +24,11 @@ class SliderComponent extends DsControlValueAccessor {
24
24
  track = viewChild.required('track');
25
25
  dragging = -1;
26
26
  uid = nextControlId('ds-slider');
27
- hintId = computed(() => this.message().text ? `${this.uid}-hint` : null, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
27
+ hintId = computed(() => this.message().text || this.changedShown() ? `${this.uid}-hint` : null, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
28
28
  fieldMessage = resolveFieldMessage({
29
+ pending: this.pending,
30
+ dirty: this.dirty,
31
+ showDirty: this.showDirtyResolved,
29
32
  disabled: () => this.isDisabled(),
30
33
  hint: this.hint,
31
34
  warning: this.warning,
@@ -36,6 +39,8 @@ class SliderComponent extends DsControlValueAccessor {
36
39
  touched: this.touched,
37
40
  });
38
41
  message = this.fieldMessage.message;
42
+ pendingShown = this.fieldMessage.pending;
43
+ changedShown = this.fieldMessage.changed;
39
44
  invalidResolved = this.fieldMessage.invalid;
40
45
  isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
41
46
  thumbValues = computed(() => {
@@ -180,11 +185,11 @@ class SliderComponent extends DsControlValueAccessor {
180
185
  useExisting: forwardRef(() => SliderComponent),
181
186
  multi: true,
182
187
  },
183
- ], viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n", styles: [":host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb: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)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }] });
188
+ ], viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb: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)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }] });
184
189
  }
185
190
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SliderComponent, decorators: [{
186
191
  type: Component,
187
- args: [{ selector: 'ds-slider', standalone: true, imports: [FieldMessageComponent], encapsulation: ViewEncapsulation.Emulated, providers: [
192
+ args: [{ selector: 'ds-slider', standalone: true, imports: [FieldMessageComponent, FieldStatusComponent], encapsulation: ViewEncapsulation.Emulated, providers: [
188
193
  {
189
194
  provide: NG_VALUE_ACCESSOR,
190
195
  useExisting: forwardRef(() => SliderComponent),
@@ -194,7 +199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
194
199
  '[class.range]': 'range()',
195
200
  '[class.disabled]': 'isDisabled()',
196
201
  '[class.invalid]': 'invalidResolved()',
197
- }, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n", styles: [":host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb: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)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"] }]
202
+ }, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb: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)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"] }]
198
203
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }] } });
199
204
 
200
205
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-slider.mjs","sources":["../../../src/lib/components/slider/slider.component.ts","../../../src/lib/components/slider/slider.component.html","../../../src/lib/components/slider/ids-group-ltd-ids-design-system-components-slider.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\ntype SliderValue = number | readonly [number, number];\n\n@Component({\n selector: 'ds-slider',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './slider.component.html',\n styleUrl: './slider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SliderComponent),\n multi: true,\n },\n ],\n host: {\n '[class.range]': 'range()',\n '[class.disabled]': 'isDisabled()',\n '[class.invalid]': 'invalidResolved()',\n },\n})\nexport class SliderComponent extends DsControlValueAccessor<SliderValue> {\n protected readonly intl = inject(DS_INTL);\n /** Current value, or `[low, high]` when `range`. */\n readonly value = model<SliderValue>(0);\n /** Minimum selectable value. */\n readonly min = input(0, { transform: numberAttribute });\n /** Maximum selectable value. */\n readonly max = input(100, { transform: numberAttribute });\n /** Snap increment for dragging and arrow keys. */\n readonly step = input(1, { transform: numberAttribute });\n /** Two-thumb mode: `value` becomes a `[low, high]` tuple. */\n readonly range = input(false, { transform: booleanAttribute });\n /** Disables the slider and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name of the thumb(s); suffixed \"minimum\"/\"maximum\" in `range` mode. */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n private dragging = -1;\n\n protected readonly uid = nextControlId('ds-slider');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly thumbValues = computed<number[]>(() => {\n const value = this.value();\n if (this.range()) {\n const [low, high] = value as readonly [number, number];\n\n return [low, high];\n }\n\n return [value as number];\n });\n\n protected readonly fill = computed<{ left: number; width: number }>(() => {\n const values = this.thumbValues();\n if (this.range()) {\n const low = this.percent(values[0]);\n const high = this.percent(values[1]);\n\n return { left: low, width: high - low };\n }\n\n return { left: 0, width: this.percent(values[0]) };\n });\n\n protected percent(value: number): number {\n const min = this.min();\n const max = this.max();\n\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n }\n\n protected thumbMin(index: number): number {\n return this.range() && index === 1 ? this.thumbValues()[0] : this.min();\n }\n\n protected thumbMax(index: number): number {\n return this.range() && index === 0 ? this.thumbValues()[1] : this.max();\n }\n\n protected onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const track = this.track().nativeElement;\n track.setPointerCapture(event.pointerId);\n this.dragging = this.nearestThumb(event.clientX);\n this.updateFromClientX(event.clientX);\n track.querySelectorAll<HTMLElement>('.thumb')[this.dragging]?.focus();\n }\n\n protected onTrackPointerMove(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n this.updateFromClientX(event.clientX);\n }\n\n // Bound to pointerup and pointercancel: touch interventions fire pointercancel, and without it\n // the drag state leaks and keeps moving the thumb with no pointer down.\n protected onTrackPointerUp(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n const track = this.track().nativeElement;\n if (track.hasPointerCapture(event.pointerId)) {\n track.releasePointerCapture(event.pointerId);\n }\n this.dragging = -1;\n this.markTouched();\n }\n\n protected thumbAriaLabel(index: number): string | null {\n const base = this.ariaLabel();\n if (!this.range()) {\n return base;\n }\n\n return index === 0\n ? this.intl().slider.rangeStart(base ?? '')\n : this.intl().slider.rangeEnd(base ?? '');\n }\n\n protected onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n const step = this.step() || 1;\n let delta = 0;\n let absolute: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n delta = step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n delta = -step;\n break;\n case 'PageUp':\n delta = step * 10;\n break;\n case 'PageDown':\n delta = -step * 10;\n break;\n case 'Home':\n absolute = this.thumbMin(index);\n break;\n case 'End':\n absolute = this.thumbMax(index);\n break;\n default:\n return;\n }\n event.preventDefault();\n const current = this.thumbValues()[index];\n this.setThumb(index, absolute ?? this.snap(current + delta));\n }\n\n private nearestThumb(clientX: number): number {\n if (!this.range()) {\n return 0;\n }\n const value = this.valueFromClientX(clientX);\n const [low, high] = this.thumbValues();\n\n return Math.abs(value - low) <= Math.abs(value - high) ? 0 : 1;\n }\n\n private updateFromClientX(clientX: number): void {\n this.setThumb(this.dragging, this.snap(this.valueFromClientX(clientX)));\n }\n\n private valueFromClientX(clientX: number): number {\n const rect = this.track().nativeElement.getBoundingClientRect();\n if (rect.width === 0) {\n return this.min();\n }\n const ratio = Math.min(1, Math.max(0, (clientX - rect.left) / rect.width));\n\n return this.min() + ratio * (this.max() - this.min());\n }\n\n private setThumb(index: number, next: number): void {\n if (this.range()) {\n const [low, high] = this.thumbValues();\n this.value.set(\n index === 0 ? [Math.min(next, high), high] : [low, Math.max(next, low)],\n );\n } else {\n this.value.set(next);\n }\n }\n\n private snap(raw: number): number {\n const step = this.step() || 1;\n const min = this.min();\n const snapped = Math.round((raw - min) / step) * step + min;\n\n return Math.min(this.max(), Math.max(min, snapped));\n }\n}\n","<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AA0CM,MAAO,eAAgB,SAAQ,sBAAmC,CAAA;AACnD,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAEhC,IAAA,KAAK,GAAG,KAAK,CAAc,CAAC,4EAAC;;IAE7B,GAAG,GAAG,KAAK,CAAC,CAAC,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE9C,GAAG,GAAG,KAAK,CAAC,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEhD,IAAI,GAAG,KAAK,CAAC,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE/C,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAErD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAE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AA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnCH,isCAsCA,06DDbY,qBAAqB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAiBpB,eAAe,EAAA,UAAA,EAAA,CAAA;kBApB3B,SAAS;+BACE,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,CAAC,EAAA,aAAA,EAGjB,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;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,kBAAkB,EAAE,cAAc;AAClC,wBAAA,iBAAiB,EAAE,mBAAmB;AACvC,qBAAA,EAAA,QAAA,EAAA,isCAAA,EAAA,MAAA,EAAA,CAAA,k3DAAA,CAAA,EAAA;yuBAmBoE,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3D9E;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-slider.mjs","sources":["../../../src/lib/components/slider/slider.component.ts","../../../src/lib/components/slider/slider.component.html","../../../src/lib/components/slider/ids-group-ltd-ids-design-system-components-slider.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n FieldMessageComponent,\n FieldStatusComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\ntype SliderValue = number | readonly [number, number];\n\n@Component({\n selector: 'ds-slider',\n standalone: true,\n imports: [FieldMessageComponent, FieldStatusComponent],\n templateUrl: './slider.component.html',\n styleUrl: './slider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SliderComponent),\n multi: true,\n },\n ],\n host: {\n '[class.range]': 'range()',\n '[class.disabled]': 'isDisabled()',\n '[class.invalid]': 'invalidResolved()',\n },\n})\nexport class SliderComponent extends DsControlValueAccessor<SliderValue> {\n protected readonly intl = inject(DS_INTL);\n /** Current value, or `[low, high]` when `range`. */\n readonly value = model<SliderValue>(0);\n /** Minimum selectable value. */\n readonly min = input(0, { transform: numberAttribute });\n /** Maximum selectable value. */\n readonly max = input(100, { transform: numberAttribute });\n /** Snap increment for dragging and arrow keys. */\n readonly step = input(1, { transform: numberAttribute });\n /** Two-thumb mode: `value` becomes a `[low, high]` tuple. */\n readonly range = input(false, { transform: booleanAttribute });\n /** Disables the slider and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name of the thumb(s); suffixed \"minimum\"/\"maximum\" in `range` mode. */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n private dragging = -1;\n\n protected readonly uid = nextControlId('ds-slider');\n protected readonly hintId = computed(() =>\n this.message().text || this.changedShown() ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n pending: this.pending,\n dirty: this.dirty,\n showDirty: this.showDirtyResolved,\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly pendingShown = this.fieldMessage.pending;\n protected readonly changedShown = this.fieldMessage.changed;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly thumbValues = computed<number[]>(() => {\n const value = this.value();\n if (this.range()) {\n const [low, high] = value as readonly [number, number];\n\n return [low, high];\n }\n\n return [value as number];\n });\n\n protected readonly fill = computed<{ left: number; width: number }>(() => {\n const values = this.thumbValues();\n if (this.range()) {\n const low = this.percent(values[0]);\n const high = this.percent(values[1]);\n\n return { left: low, width: high - low };\n }\n\n return { left: 0, width: this.percent(values[0]) };\n });\n\n protected percent(value: number): number {\n const min = this.min();\n const max = this.max();\n\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n }\n\n protected thumbMin(index: number): number {\n return this.range() && index === 1 ? this.thumbValues()[0] : this.min();\n }\n\n protected thumbMax(index: number): number {\n return this.range() && index === 0 ? this.thumbValues()[1] : this.max();\n }\n\n protected onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const track = this.track().nativeElement;\n track.setPointerCapture(event.pointerId);\n this.dragging = this.nearestThumb(event.clientX);\n this.updateFromClientX(event.clientX);\n track.querySelectorAll<HTMLElement>('.thumb')[this.dragging]?.focus();\n }\n\n protected onTrackPointerMove(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n this.updateFromClientX(event.clientX);\n }\n\n // Bound to pointerup and pointercancel: touch interventions fire pointercancel, and without it\n // the drag state leaks and keeps moving the thumb with no pointer down.\n protected onTrackPointerUp(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n const track = this.track().nativeElement;\n if (track.hasPointerCapture(event.pointerId)) {\n track.releasePointerCapture(event.pointerId);\n }\n this.dragging = -1;\n this.markTouched();\n }\n\n protected thumbAriaLabel(index: number): string | null {\n const base = this.ariaLabel();\n if (!this.range()) {\n return base;\n }\n\n return index === 0\n ? this.intl().slider.rangeStart(base ?? '')\n : this.intl().slider.rangeEnd(base ?? '');\n }\n\n protected onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n const step = this.step() || 1;\n let delta = 0;\n let absolute: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n delta = step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n delta = -step;\n break;\n case 'PageUp':\n delta = step * 10;\n break;\n case 'PageDown':\n delta = -step * 10;\n break;\n case 'Home':\n absolute = this.thumbMin(index);\n break;\n case 'End':\n absolute = this.thumbMax(index);\n break;\n default:\n return;\n }\n event.preventDefault();\n const current = this.thumbValues()[index];\n this.setThumb(index, absolute ?? this.snap(current + delta));\n }\n\n private nearestThumb(clientX: number): number {\n if (!this.range()) {\n return 0;\n }\n const value = this.valueFromClientX(clientX);\n const [low, high] = this.thumbValues();\n\n return Math.abs(value - low) <= Math.abs(value - high) ? 0 : 1;\n }\n\n private updateFromClientX(clientX: number): void {\n this.setThumb(this.dragging, this.snap(this.valueFromClientX(clientX)));\n }\n\n private valueFromClientX(clientX: number): number {\n const rect = this.track().nativeElement.getBoundingClientRect();\n if (rect.width === 0) {\n return this.min();\n }\n const ratio = Math.min(1, Math.max(0, (clientX - rect.left) / rect.width));\n\n return this.min() + ratio * (this.max() - this.min());\n }\n\n private setThumb(index: number, next: number): void {\n if (this.range()) {\n const [low, high] = this.thumbValues();\n this.value.set(\n index === 0 ? [Math.min(next, high), high] : [low, Math.max(next, low)],\n );\n } else {\n this.value.set(next);\n }\n }\n\n private snap(raw: number): number {\n const step = this.step() || 1;\n const min = this.min();\n const snapped = Math.round((raw - min) / step) * step + min;\n\n return Math.min(this.max(), Math.max(min, snapped));\n }\n}\n","<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AA6CM,MAAO,eAAgB,SAAQ,sBAAmC,CAAA;AACnD,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAEhC,IAAA,KAAK,GAAG,KAAK,CAAc,CAAC,4EAAC;;IAE7B,GAAG,GAAG,KAAK,CAAC,CAAC,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE9C,GAAG,GAAG,KAAK,CAAC,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEhD,IAAI,GAAG,KAAK,CAAC,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CA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AE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,kBAAkB,EAAE,cAAc;AAClC,wBAAA,iBAAiB,EAAE,mBAAmB;AACvC,qBAAA,EAAA,QAAA,EAAA,wzCAAA,EAAA,MAAA,EAAA,CAAA,g/EAAA,CAAA,EAAA;yuBAmBoE,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9D9E;;AAEG;;;;"}
@@ -1,5 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, inject, LOCALE_ID, viewChild, computed, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
2
+ import { input, booleanAttribute, viewChild, computed, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { injectDsLocale } from '@ids-group-ltd/ids-design-system/core';
3
4
  import { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
4
5
 
5
6
  /** Positions in percent of the box, x across the readings and y down from the top of the scale.
@@ -63,7 +64,7 @@ class SparklineComponent {
63
64
  tooltip = input(true, { ...(ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
64
65
  /** Formats the value the tooltip prints. Unset, the locale's plain number format. */
65
66
  valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
66
- locale = inject(LOCALE_ID);
67
+ locale = injectDsLocale();
67
68
  canvas = viewChild.required('canvas');
68
69
  focusable = computed(() => this.tooltip() && this.label() !== null, ...(ngDevMode ? [{ debugName: "focusable" }] : /* istanbul ignore next */ []));
69
70
  geometry = computed(() => sparklineGeometry(this.data(), this.scale()), ...(ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []));
@@ -140,7 +141,7 @@ class SparklineComponent {
140
141
  });
141
142
  }
142
143
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SparklineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SparklineComponent, isStandalone: true, selector: "ds-sparkline", inputs: { area: { classPropertyName: "area", publicName: "area", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "onFocus()", "blur": "clearActive()", "keydown": "onKeydown($event)" }, properties: { "attr.role": "label() ? 'img' : null", "attr.aria-label": "label()", "attr.aria-hidden": "label() ? null : 'true'", "attr.tabindex": "focusable() ? 0 : null" } }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: "<svg\n #canvas\n class=\"sparkline\"\n aria-hidden=\"true\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"clearActive()\">\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\">\n @if (area()) {\n <path\n class=\"area\"\n [attr.d]=\"geometry().areaPath\" />\n }\n\n <path\n class=\"line\"\n [attr.d]=\"geometry().path\" />\n </svg>\n\n @if (shownPoint(); as point) {\n <circle\n class=\"dot\"\n [attr.cx]=\"point.x + '%'\"\n [attr.cy]=\"point.y + '%'\" />\n }\n</svg>\n", styles: [":host{--_sparkline-width: var(--ds-sparkline-width, 80px);--_sparkline-height: var(--ds-sparkline-height, 24px);--_sparkline-line-color: var(--ds-sparkline-line-color, var(--ds-chart-series-1-color));--_sparkline-line-width: var(--ds-sparkline-line-width, 1.5px);--_sparkline-dot-radius: var(--ds-sparkline-dot-radius, 2.5px);--_sparkline-area-color: var(--ds-sparkline-area-color, var(--_sparkline-line-color));--_sparkline-area-opacity: var(--ds-sparkline-area-opacity, var(--ds-chart-area-opacity));display:inline-block;inline-size:var(--_sparkline-width);block-size:var(--_sparkline-height);vertical-align:middle}:host(: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)}.sparkline{display:block;inline-size:100%;block-size:100%;overflow:visible}.area{fill:var(--_sparkline-area-color);fill-opacity:var(--_sparkline-area-opacity)}.line{fill:none;stroke:var(--_sparkline-line-color);stroke-width:var(--_sparkline-line-width);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.dot{r:var(--_sparkline-dot-radius);fill:var(--_sparkline-line-color)}@media(forced-colors:active){.line{stroke:CanvasText}.dot{fill:CanvasText}}\n"], dependencies: [{ kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
144
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SparklineComponent, isStandalone: true, selector: "ds-sparkline", inputs: { area: { classPropertyName: "area", publicName: "area", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "onFocus()", "blur": "clearActive()", "keydown": "onKeydown($event)" }, properties: { "attr.role": "label() ? 'img' : null", "attr.aria-label": "label()", "attr.aria-hidden": "label() ? null : 'true'", "attr.tabindex": "focusable() ? 0 : null" } }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: "<svg\n #canvas\n class=\"sparkline\"\n aria-hidden=\"true\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"clearActive()\">\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\">\n @if (area()) {\n <path\n class=\"area\"\n [attr.d]=\"geometry().areaPath\" />\n }\n\n <path\n class=\"line\"\n [attr.d]=\"geometry().path\" />\n </svg>\n\n @if (shownPoint(); as point) {\n <circle\n class=\"dot\"\n [attr.cx]=\"point.x + '%'\"\n [attr.cy]=\"point.y + '%'\" />\n }\n</svg>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_sparkline-width: var(--ds-sparkline-width, 80px);--_sparkline-height: var(--ds-sparkline-height, 24px);--_sparkline-line-color: var(--ds-sparkline-line-color, var(--ds-chart-series-1-color));--_sparkline-line-width: var(--ds-sparkline-line-width, 1.5px);--_sparkline-dot-radius: var(--ds-sparkline-dot-radius, 2.5px);--_sparkline-area-color: var(--ds-sparkline-area-color, var(--_sparkline-line-color));--_sparkline-area-opacity: var(--ds-sparkline-area-opacity, var(--ds-chart-area-opacity));display:inline-block;inline-size:var(--_sparkline-width);block-size:var(--_sparkline-height);vertical-align:middle}:host(: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)}.sparkline{display:block;inline-size:100%;block-size:100%;overflow:visible}.area{fill:var(--_sparkline-area-color);fill-opacity:var(--_sparkline-area-opacity)}.line{fill:none;stroke:var(--_sparkline-line-color);stroke-width:var(--_sparkline-line-width);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.dot{r:var(--_sparkline-dot-radius);fill:var(--_sparkline-line-color)}@media(forced-colors:active){.line{stroke:CanvasText}.dot{fill:CanvasText}}\n"], dependencies: [{ kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
144
145
  }
145
146
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SparklineComponent, decorators: [{
146
147
  type: Component,
@@ -152,7 +153,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
152
153
  '(focus)': 'onFocus()',
153
154
  '(blur)': 'clearActive()',
154
155
  '(keydown)': 'onKeydown($event)',
155
- }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n #canvas\n class=\"sparkline\"\n aria-hidden=\"true\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"clearActive()\">\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\">\n @if (area()) {\n <path\n class=\"area\"\n [attr.d]=\"geometry().areaPath\" />\n }\n\n <path\n class=\"line\"\n [attr.d]=\"geometry().path\" />\n </svg>\n\n @if (shownPoint(); as point) {\n <circle\n class=\"dot\"\n [attr.cx]=\"point.x + '%'\"\n [attr.cy]=\"point.y + '%'\" />\n }\n</svg>\n", styles: [":host{--_sparkline-width: var(--ds-sparkline-width, 80px);--_sparkline-height: var(--ds-sparkline-height, 24px);--_sparkline-line-color: var(--ds-sparkline-line-color, var(--ds-chart-series-1-color));--_sparkline-line-width: var(--ds-sparkline-line-width, 1.5px);--_sparkline-dot-radius: var(--ds-sparkline-dot-radius, 2.5px);--_sparkline-area-color: var(--ds-sparkline-area-color, var(--_sparkline-line-color));--_sparkline-area-opacity: var(--ds-sparkline-area-opacity, var(--ds-chart-area-opacity));display:inline-block;inline-size:var(--_sparkline-width);block-size:var(--_sparkline-height);vertical-align:middle}:host(: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)}.sparkline{display:block;inline-size:100%;block-size:100%;overflow:visible}.area{fill:var(--_sparkline-area-color);fill-opacity:var(--_sparkline-area-opacity)}.line{fill:none;stroke:var(--_sparkline-line-color);stroke-width:var(--_sparkline-line-width);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.dot{r:var(--_sparkline-dot-radius);fill:var(--_sparkline-line-color)}@media(forced-colors:active){.line{stroke:CanvasText}.dot{fill:CanvasText}}\n"] }]
156
+ }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n #canvas\n class=\"sparkline\"\n aria-hidden=\"true\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"clearActive()\">\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\">\n @if (area()) {\n <path\n class=\"area\"\n [attr.d]=\"geometry().areaPath\" />\n }\n\n <path\n class=\"line\"\n [attr.d]=\"geometry().path\" />\n </svg>\n\n @if (shownPoint(); as point) {\n <circle\n class=\"dot\"\n [attr.cx]=\"point.x + '%'\"\n [attr.cy]=\"point.y + '%'\" />\n }\n</svg>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_sparkline-width: var(--ds-sparkline-width, 80px);--_sparkline-height: var(--ds-sparkline-height, 24px);--_sparkline-line-color: var(--ds-sparkline-line-color, var(--ds-chart-series-1-color));--_sparkline-line-width: var(--ds-sparkline-line-width, 1.5px);--_sparkline-dot-radius: var(--ds-sparkline-dot-radius, 2.5px);--_sparkline-area-color: var(--ds-sparkline-area-color, var(--_sparkline-line-color));--_sparkline-area-opacity: var(--ds-sparkline-area-opacity, var(--ds-chart-area-opacity));display:inline-block;inline-size:var(--_sparkline-width);block-size:var(--_sparkline-height);vertical-align:middle}:host(: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)}.sparkline{display:block;inline-size:100%;block-size:100%;overflow:visible}.area{fill:var(--_sparkline-area-color);fill-opacity:var(--_sparkline-area-opacity)}.line{fill:none;stroke:var(--_sparkline-line-color);stroke-width:var(--_sparkline-line-width);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.dot{r:var(--_sparkline-dot-radius);fill:var(--_sparkline-line-color)}@media(forced-colors:active){.line{stroke:CanvasText}.dot{fill:CanvasText}}\n"] }]
156
157
  }], propDecorators: { area: [{ type: i0.Input, args: [{ isSignal: true, alias: "area", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], canvas: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }] } });
157
158
 
158
159
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-sparkline.mjs","sources":["../../../src/lib/components/sparkline/sparkline.math.ts","../../../src/lib/components/sparkline/sparkline.component.ts","../../../src/lib/components/sparkline/sparkline.component.html","../../../src/lib/components/sparkline/ids-group-ltd-ids-design-system-components-sparkline.ts"],"sourcesContent":["import type { SparklineScale } from './sparkline.types';\n\nexport interface SparklinePoint {\n readonly index: number;\n readonly x: number;\n readonly y: number;\n}\n\nexport interface SparklineGeometry {\n readonly path: string;\n /** Each unbroken run of the line closed down to the baseline: zero on the `'zero'` scale, the\n * foot of the box on `'data'`. */\n readonly areaPath: string;\n readonly points: readonly SparklinePoint[];\n}\n\n/** Positions in percent of the box, x across the readings and y down from the top of the scale.\n * A flat series on the `'data'` scale draws through the middle. A `null` breaks the line. */\nexport function sparklineGeometry(\n data: readonly (number | null)[],\n scale: SparklineScale,\n): SparklineGeometry {\n const finite = data.filter(\n (value): value is number => value !== null && Number.isFinite(value),\n );\n if (finite.length === 0) {\n return { path: '', areaPath: '', points: [] };\n }\n const floor = scale === 'zero' ? Math.min(0, ...finite) : Math.min(...finite);\n const ceiling =\n scale === 'zero' ? Math.max(0, ...finite) : Math.max(...finite);\n const span = ceiling - floor;\n const lastIndex = data.length - 1;\n const baseline = scale === 'zero' && span > 0 ? (ceiling / span) * 100 : 100;\n const points: SparklinePoint[] = [];\n const runs: SparklinePoint[][] = [];\n let path = '';\n let penDown = false;\n data.forEach((value, index) => {\n if (value === null || !Number.isFinite(value)) {\n penDown = false;\n\n return;\n }\n const x = lastIndex === 0 ? 50 : (index / lastIndex) * 100;\n const y = span === 0 ? 50 : ((ceiling - value) / span) * 100;\n const point = { index, x, y };\n points.push(point);\n if (penDown) {\n runs[runs.length - 1].push(point);\n } else {\n runs.push([point]);\n }\n path += `${penDown ? 'L' : 'M'}${x} ${y}`;\n penDown = true;\n });\n const areaPath = runs\n .map(\n (run) =>\n `M${run[0].x} ${baseline}` +\n run.map((point) => `L${point.x} ${point.y}`).join('') +\n `L${run[run.length - 1].x} ${baseline}Z`,\n )\n .join('');\n\n return { path, areaPath, points };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n LOCALE_ID,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartTooltipContext,\n ChartTooltipOrigin,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport { sparklineGeometry } from './sparkline.math';\nimport type { SparklinePoint } from './sparkline.math';\nimport type { SparklineScale } from './sparkline.types';\n\n/** A word-sized trend line: no axes, legend or frame, a dot on the last reading, and a tooltip.\n * Sized by `--ds-sparkline-width` and `--ds-sparkline-height`. */\n@Component({\n selector: 'ds-sparkline',\n standalone: true,\n imports: [ChartTooltipDirective],\n templateUrl: './sparkline.component.html',\n styleUrl: './sparkline.component.scss',\n host: {\n '[attr.role]': \"label() ? 'img' : null\",\n '[attr.aria-label]': 'label()',\n '[attr.aria-hidden]': \"label() ? null : 'true'\",\n '[attr.tabindex]': 'focusable() ? 0 : null',\n '(focus)': 'onFocus()',\n '(blur)': 'clearActive()',\n '(keydown)': 'onKeydown($event)',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SparklineComponent {\n /** Fills the band under the line down to the baseline. The colour is\n * `--ds-sparkline-area-color`, the line's own by default, at `--ds-sparkline-area-opacity`. */\n readonly area = input(false, { transform: booleanAttribute });\n\n /** One reading per step, oldest first. `null` breaks the line. */\n readonly data = input<readonly (number | null)[]>([]);\n\n /** What each reading is, for the tooltip. Left out, the tooltip prints the value alone. */\n readonly categories = input<readonly string[]>([]);\n\n /** Accessible name, and the series name in the tooltip. Left out, the sparkline is decorative\n * and hidden from assistive technology. */\n readonly label = input<string | null>(null);\n\n readonly scale = input<SparklineScale>('data');\n\n /** Shows the reading under the pointer, and under the keyboard where `label` makes the sparkline\n * focusable: focus opens the last reading; arrows, Home and End move. */\n readonly tooltip = input(true, { transform: booleanAttribute });\n\n /** Formats the value the tooltip prints. Unset, the locale's plain number format. */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n private readonly locale = inject(LOCALE_ID);\n\n private readonly canvas =\n viewChild.required<ElementRef<SVGSVGElement>>('canvas');\n\n protected readonly focusable = computed(\n () => this.tooltip() && this.label() !== null,\n );\n\n protected readonly geometry = computed(() =>\n sparklineGeometry(this.data(), this.scale()),\n );\n\n protected readonly activePoint = signal<SparklinePoint | null>(null);\n\n protected readonly shownPoint = computed(\n () => this.activePoint() ?? this.geometry().points.at(-1) ?? null,\n );\n\n protected readonly tooltipOrigin = signal<ChartTooltipOrigin | null>(null);\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const point = this.activePoint();\n const value = point ? this.data()[point.index] : null;\n if (!point || value == null || !this.tooltip()) {\n return null;\n }\n const format =\n this.valueFormat() ??\n ((reading: number) => reading.toLocaleString(this.locale));\n\n return {\n category: this.categories()[point.index] ?? '',\n entries: [\n {\n label: this.label() ?? '',\n value,\n formatted: format(value),\n color:\n 'var(--ds-sparkline-line-color, var(--ds-chart-series-1-color))',\n },\n ],\n };\n },\n );\n\n protected onPointerMove(event: PointerEvent): void {\n const points = this.geometry().points;\n if (!this.tooltip() || points.length === 0) {\n return;\n }\n const box = this.canvas().nativeElement.getBoundingClientRect();\n const across = ((event.clientX - box.left) / box.width) * 100;\n this.activate(\n points.reduce((best, point) =>\n Math.abs(point.x - across) < Math.abs(best.x - across) ? point : best,\n ),\n );\n }\n\n protected onFocus(): void {\n const last = this.geometry().points.at(-1);\n if (this.focusable() && last) {\n this.activate(last);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const points = this.geometry().points;\n const current = this.activePoint();\n if (!this.focusable() || !current) {\n return;\n }\n const position = points.indexOf(current);\n const target = {\n ArrowLeft: position - 1,\n ArrowRight: position + 1,\n Home: 0,\n End: points.length - 1,\n }[event.key];\n if (target === undefined) {\n return;\n }\n event.preventDefault();\n this.activate(points[Math.min(Math.max(target, 0), points.length - 1)]);\n }\n\n protected clearActive(): void {\n this.activePoint.set(null);\n this.tooltipOrigin.set(null);\n }\n\n private activate(point: SparklinePoint): void {\n if (point === this.activePoint()) {\n return;\n }\n const box = this.canvas().nativeElement.getBoundingClientRect();\n this.activePoint.set(point);\n this.tooltipOrigin.set({\n x: box.left + (point.x / 100) * box.width,\n y: box.top + (point.y / 100) * box.height,\n });\n }\n}\n","<svg\n #canvas\n class=\"sparkline\"\n aria-hidden=\"true\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"clearActive()\">\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\">\n @if (area()) {\n <path\n class=\"area\"\n [attr.d]=\"geometry().areaPath\" />\n }\n\n <path\n class=\"line\"\n [attr.d]=\"geometry().path\" />\n </svg>\n\n @if (shownPoint(); as point) {\n <circle\n class=\"dot\"\n [attr.cx]=\"point.x + '%'\"\n [attr.cy]=\"point.y + '%'\" />\n }\n</svg>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAgBA;AAC8F;AACxF,SAAU,iBAAiB,CAC/B,IAAgC,EAChC,KAAqB,EAAA;IAErB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CACxB,CAAC,KAAK,KAAsB,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CACrE;AACD,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;AACvB,QAAA,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC/C;IACA,MAAM,KAAK,GAAG,KAAK,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IAC7E,MAAM,OAAO,GACX,KAAK,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;AACj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xB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,itBAAA,EAAA,MAAA,EAAA,CAAA,wwCAAA,CAAA,EAAA;gtBA6BC,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AErE1D;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-sparkline.mjs","sources":["../../../src/lib/components/sparkline/sparkline.math.ts","../../../src/lib/components/sparkline/sparkline.component.ts","../../../src/lib/components/sparkline/sparkline.component.html","../../../src/lib/components/sparkline/ids-group-ltd-ids-design-system-components-sparkline.ts"],"sourcesContent":["import type { SparklineScale } from './sparkline.types';\n\nexport interface SparklinePoint {\n readonly index: number;\n readonly x: number;\n readonly y: number;\n}\n\nexport interface SparklineGeometry {\n readonly path: string;\n /** Each unbroken run of the line closed down to the baseline: zero on the `'zero'` scale, the\n * foot of the box on `'data'`. */\n readonly areaPath: string;\n readonly points: readonly SparklinePoint[];\n}\n\n/** Positions in percent of the box, x across the readings and y down from the top of the scale.\n * A flat series on the `'data'` scale draws through the middle. A `null` breaks the line. */\nexport function sparklineGeometry(\n data: readonly (number | null)[],\n scale: SparklineScale,\n): SparklineGeometry {\n const finite = data.filter(\n (value): value is number => value !== null && Number.isFinite(value),\n );\n if (finite.length === 0) {\n return { path: '', areaPath: '', points: [] };\n }\n const floor = scale === 'zero' ? Math.min(0, ...finite) : Math.min(...finite);\n const ceiling =\n scale === 'zero' ? Math.max(0, ...finite) : Math.max(...finite);\n const span = ceiling - floor;\n const lastIndex = data.length - 1;\n const baseline = scale === 'zero' && span > 0 ? (ceiling / span) * 100 : 100;\n const points: SparklinePoint[] = [];\n const runs: SparklinePoint[][] = [];\n let path = '';\n let penDown = false;\n data.forEach((value, index) => {\n if (value === null || !Number.isFinite(value)) {\n penDown = false;\n\n return;\n }\n const x = lastIndex === 0 ? 50 : (index / lastIndex) * 100;\n const y = span === 0 ? 50 : ((ceiling - value) / span) * 100;\n const point = { index, x, y };\n points.push(point);\n if (penDown) {\n runs[runs.length - 1].push(point);\n } else {\n runs.push([point]);\n }\n path += `${penDown ? 'L' : 'M'}${x} ${y}`;\n penDown = true;\n });\n const areaPath = runs\n .map(\n (run) =>\n `M${run[0].x} ${baseline}` +\n run.map((point) => `L${point.x} ${point.y}`).join('') +\n `L${run[run.length - 1].x} ${baseline}Z`,\n )\n .join('');\n\n return { path, areaPath, points };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { injectDsLocale } from '@ids-group-ltd/ids-design-system/core';\nimport { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartTooltipContext,\n ChartTooltipOrigin,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport { sparklineGeometry } from './sparkline.math';\nimport type { SparklinePoint } from './sparkline.math';\nimport type { SparklineScale } from './sparkline.types';\n\n/** A word-sized trend line: no axes, legend or frame, a dot on the last reading, and a tooltip.\n * Sized by `--ds-sparkline-width` and `--ds-sparkline-height`. */\n@Component({\n selector: 'ds-sparkline',\n standalone: true,\n imports: [ChartTooltipDirective],\n templateUrl: './sparkline.component.html',\n styleUrl: './sparkline.component.scss',\n host: {\n '[attr.role]': \"label() ? 'img' : null\",\n '[attr.aria-label]': 'label()',\n '[attr.aria-hidden]': \"label() ? null : 'true'\",\n '[attr.tabindex]': 'focusable() ? 0 : null',\n '(focus)': 'onFocus()',\n '(blur)': 'clearActive()',\n '(keydown)': 'onKeydown($event)',\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SparklineComponent {\n /** Fills the band under the line down to the baseline. The colour is\n * `--ds-sparkline-area-color`, the line's own by default, at `--ds-sparkline-area-opacity`. */\n readonly area = input(false, { transform: booleanAttribute });\n\n /** One reading per step, oldest first. `null` breaks the line. */\n readonly data = input<readonly (number | null)[]>([]);\n\n /** What each reading is, for the tooltip. Left out, the tooltip prints the value alone. */\n readonly categories = input<readonly string[]>([]);\n\n /** Accessible name, and the series name in the tooltip. Left out, the sparkline is decorative\n * and hidden from assistive technology. */\n readonly label = input<string | null>(null);\n\n readonly scale = input<SparklineScale>('data');\n\n /** Shows the reading under the pointer, and under the keyboard where `label` makes the sparkline\n * focusable: focus opens the last reading; arrows, Home and End move. */\n readonly tooltip = input(true, { transform: booleanAttribute });\n\n /** Formats the value the tooltip prints. Unset, the locale's plain number format. */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n private readonly locale = injectDsLocale();\n\n private readonly canvas =\n viewChild.required<ElementRef<SVGSVGElement>>('canvas');\n\n protected readonly focusable = computed(\n () => this.tooltip() && this.label() !== null,\n );\n\n protected readonly geometry = computed(() =>\n sparklineGeometry(this.data(), this.scale()),\n );\n\n protected readonly activePoint = signal<SparklinePoint | null>(null);\n\n protected readonly shownPoint = computed(\n () => this.activePoint() ?? this.geometry().points.at(-1) ?? null,\n );\n\n protected readonly tooltipOrigin = signal<ChartTooltipOrigin | null>(null);\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const point = this.activePoint();\n const value = point ? this.data()[point.index] : null;\n if (!point || value == null || !this.tooltip()) {\n return null;\n }\n const format =\n this.valueFormat() ??\n ((reading: number) => reading.toLocaleString(this.locale));\n\n return {\n category: this.categories()[point.index] ?? '',\n entries: [\n {\n label: this.label() ?? '',\n value,\n formatted: format(value),\n color:\n 'var(--ds-sparkline-line-color, var(--ds-chart-series-1-color))',\n },\n ],\n };\n },\n );\n\n protected onPointerMove(event: PointerEvent): void {\n const points = this.geometry().points;\n if (!this.tooltip() || points.length === 0) {\n return;\n }\n const box = this.canvas().nativeElement.getBoundingClientRect();\n const across = ((event.clientX - box.left) / box.width) * 100;\n this.activate(\n points.reduce((best, point) =>\n Math.abs(point.x - across) < Math.abs(best.x - across) ? point : best,\n ),\n );\n }\n\n protected onFocus(): void {\n const last = this.geometry().points.at(-1);\n if (this.focusable() && last) {\n this.activate(last);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const points = this.geometry().points;\n const current = this.activePoint();\n if (!this.focusable() || !current) {\n return;\n }\n const position = points.indexOf(current);\n const target = {\n ArrowLeft: position - 1,\n ArrowRight: position + 1,\n Home: 0,\n End: points.length - 1,\n }[event.key];\n if (target === undefined) {\n return;\n }\n event.preventDefault();\n this.activate(points[Math.min(Math.max(target, 0), points.length - 1)]);\n }\n\n protected clearActive(): void {\n this.activePoint.set(null);\n this.tooltipOrigin.set(null);\n }\n\n private activate(point: SparklinePoint): void {\n if (point === this.activePoint()) {\n return;\n }\n const box = this.canvas().nativeElement.getBoundingClientRect();\n this.activePoint.set(point);\n this.tooltipOrigin.set({\n x: box.left + (point.x / 100) * box.width,\n y: box.top + (point.y / 100) * box.height,\n });\n }\n}\n","<svg\n #canvas\n class=\"sparkline\"\n aria-hidden=\"true\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"clearActive()\">\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\">\n @if (area()) {\n <path\n class=\"area\"\n [attr.d]=\"geometry().areaPath\" />\n }\n\n <path\n class=\"line\"\n [attr.d]=\"geometry().path\" />\n </svg>\n\n @if (shownPoint(); as point) {\n <circle\n class=\"dot\"\n [attr.cx]=\"point.x + '%'\"\n [attr.cy]=\"point.y + '%'\" />\n }\n</svg>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAgBA;AAC8F;AACxF,SAAU,iBAAiB,CAC/B,IAAgC,EAChC,KAAqB,EAAA;IAErB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CACxB,CAAC,KAAK,KAAsB,KAAK,KAAK,I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EAAA,CAAA;;4FAepB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlB9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cACZ,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,CAAC,EAAA,IAAA,EAG1B;AACJ,wBAAA,aAAa,EAAE,wBAAwB;AACvC,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,oBAAoB,EAAE,yBAAyB;AAC/C,wBAAA,iBAAiB,EAAE,wBAAwB;AAC3C,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,QAAQ,EAAE,eAAe;AACzB,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,itBAAA,EAAA,MAAA,EAAA,CAAA,s4DAAA,CAAA,EAAA;gtBA6BC,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpE1D;;AAEG;;;;"}
@@ -7,7 +7,7 @@ class SpinnerComponent {
7
7
  /** Spinner size - sm/md/lg. */
8
8
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
9
9
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SpinnerComponent, isStandalone: true, selector: "ds-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status" }, properties: { "attr.aria-label": "intl().spinner.label", "class.sm": "size() === 'sm'", "class.lg": "size() === 'lg'" } }, ngImport: i0, template: '', isInline: true, styles: [":host{--_spinner-color: var(--ds-spinner-color, var(--accent));--_spinner-track-color: var(--ds-spinner-track-color, var(--border-default));display:inline-block;width:var(--spinner-md);height:var(--spinner-md);border:var(--spinner-bw) solid var(--_spinner-track-color);border-top-color:var(--_spinner-color);border-radius:var(--radius-pill);animation:spinner-rotate var(--duration-loop-fast) linear infinite}:host(.sm){width:var(--spinner-sm);height:var(--spinner-sm);border-width:var(--border-width-default)}:host(.lg){width:var(--spinner-lg);height:var(--spinner-lg);border-width:var(--border-width-strong)}@keyframes spinner-rotate{to{transform:rotate(360deg)}}\n"] });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SpinnerComponent, isStandalone: true, selector: "ds-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status" }, properties: { "attr.aria-label": "intl().spinner.label", "class.sm": "size() === 'sm'", "class.lg": "size() === 'lg'" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_spinner-color: var(--ds-spinner-color, var(--accent));--_spinner-track-color: var(--ds-spinner-track-color, var(--border-default));display:inline-block;width:var(--spinner-md);height:var(--spinner-md);border:var(--spinner-bw) solid var(--_spinner-track-color);border-top-color:var(--_spinner-color);border-radius:var(--radius-pill);animation:spinner-rotate var(--duration-loop-fast) linear infinite}:host(.sm){width:var(--spinner-sm);height:var(--spinner-sm);border-width:var(--border-width-default)}:host(.lg){width:var(--spinner-lg);height:var(--spinner-lg);border-width:var(--border-width-strong)}@keyframes spinner-rotate{to{transform:rotate(360deg)}}\n"] });
11
11
  }
12
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SpinnerComponent, decorators: [{
13
13
  type: Component,
@@ -16,7 +16,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
16
16
  '[attr.aria-label]': 'intl().spinner.label',
17
17
  '[class.sm]': "size() === 'sm'",
18
18
  '[class.lg]': "size() === 'lg'",
19
- }, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--_spinner-color: var(--ds-spinner-color, var(--accent));--_spinner-track-color: var(--ds-spinner-track-color, var(--border-default));display:inline-block;width:var(--spinner-md);height:var(--spinner-md);border:var(--spinner-bw) solid var(--_spinner-track-color);border-top-color:var(--_spinner-color);border-radius:var(--radius-pill);animation:spinner-rotate var(--duration-loop-fast) linear infinite}:host(.sm){width:var(--spinner-sm);height:var(--spinner-sm);border-width:var(--border-width-default)}:host(.lg){width:var(--spinner-lg);height:var(--spinner-lg);border-width:var(--border-width-strong)}@keyframes spinner-rotate{to{transform:rotate(360deg)}}\n"] }]
19
+ }, encapsulation: ViewEncapsulation.Emulated, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_spinner-color: var(--ds-spinner-color, var(--accent));--_spinner-track-color: var(--ds-spinner-track-color, var(--border-default));display:inline-block;width:var(--spinner-md);height:var(--spinner-md);border:var(--spinner-bw) solid var(--_spinner-track-color);border-top-color:var(--_spinner-color);border-radius:var(--radius-pill);animation:spinner-rotate var(--duration-loop-fast) linear infinite}:host(.sm){width:var(--spinner-sm);height:var(--spinner-sm);border-width:var(--border-width-default)}:host(.lg){width:var(--spinner-lg);height:var(--spinner-lg);border-width:var(--border-width-strong)}@keyframes spinner-rotate{to{transform:rotate(360deg)}}\n"] }]
20
20
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
21
21
 
22
22
  /**