@ids-group-ltd/ids-design-system 0.14.0 → 0.14.2

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 (244) hide show
  1. package/CHANGELOG.md +573 -4
  2. package/components.md +103 -62
  3. package/design-system.md +2 -0
  4. package/docs/agent/INDEX.md +5 -4
  5. package/docs/agent/charts/column-series-component.md +1 -1
  6. package/docs/agent/charts/ds-bar-chart.md +4 -3
  7. package/docs/agent/charts/ds-chart.md +1 -1
  8. package/docs/agent/charts/ds-column-chart.md +3 -3
  9. package/docs/agent/charts/ds-config.md +3 -1
  10. package/docs/agent/charts/ds-funnel-chart.md +3 -3
  11. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  12. package/docs/agent/charts/ds-line-chart.md +3 -3
  13. package/docs/agent/charts/ds-pie-chart.md +5 -4
  14. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  15. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  16. package/docs/agent/charts/line-series-component.md +1 -1
  17. package/docs/agent/feedback/ds-alert.md +1 -0
  18. package/docs/agent/feedback/ds-badge.md +1 -1
  19. package/docs/agent/feedback/ds-banner.md +1 -0
  20. package/docs/agent/feedback/ds-description-list.md +3 -0
  21. package/docs/agent/feedback/ds-skeleton.md +2 -2
  22. package/docs/agent/feedback/ds-tag.md +1 -1
  23. package/docs/agent/forms/ds-autocomplete.md +2 -2
  24. package/docs/agent/forms/ds-button.md +1 -1
  25. package/docs/agent/forms/ds-color-picker.md +1 -1
  26. package/docs/agent/forms/ds-date-picker.md +2 -2
  27. package/docs/agent/forms/ds-filter-bar.md +1 -1
  28. package/docs/agent/forms/ds-icon-button.md +1 -1
  29. package/docs/agent/forms/ds-input.md +1 -1
  30. package/docs/agent/forms/ds-multi-select.md +2 -2
  31. package/docs/agent/forms/ds-otp-input.md +1 -1
  32. package/docs/agent/forms/ds-search.md +2 -2
  33. package/docs/agent/forms/ds-split-button.md +1 -1
  34. package/docs/agent/forms/ds-textarea.md +2 -2
  35. package/docs/agent/foundations/tokens.md +1 -1
  36. package/docs/agent/navigation/ds-app-layout.md +2 -2
  37. package/docs/agent/navigation/ds-auth-layout.md +4 -4
  38. package/docs/agent/navigation/ds-page-header.md +1 -1
  39. package/docs/agent/navigation/ds-pagination.md +1 -1
  40. package/docs/agent/navigation/ds-tabs.md +1 -0
  41. package/docs/agent/overlays/ds-tooltip.md +3 -3
  42. package/docs/agent/platform/ds-config.md +2 -3
  43. package/docs/agent/platform/ds-intl.md +33 -0
  44. package/docs/agent/surfaces/ds-accordion.md +2 -2
  45. package/docs/agent/tables/ds-table.md +3 -3
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +21 -10
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +15 -8
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +21 -10
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +53 -30
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +20 -6
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +198 -44
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +248 -142
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -25
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +16 -9
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +5 -3
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +13 -7
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +64 -43
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +56 -12
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +32 -29
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +17 -10
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -4
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +13 -7
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +15 -8
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +62 -25
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +49 -12
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +6 -3
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +20 -6
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +48 -22
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +68 -6
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +63 -10
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -10
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +78 -6
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +36 -21
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +355 -81
  165. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +362 -3
  167. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  170. package/migrations/0.10.0.json +1 -1
  171. package/migrations/0.10.1.json +1 -1
  172. package/migrations/0.14.0.json +28 -4
  173. package/migrations/0.14.1.json +856 -0
  174. package/migrations/0.14.2.json +427 -0
  175. package/package.json +1 -1
  176. package/schematics/check-overrides/index.cjs +56 -0
  177. package/schematics/check-overrides/scan.cjs +74 -0
  178. package/schematics/check-overrides/schema.json +19 -0
  179. package/schematics/check-overrides/surface.json +2333 -0
  180. package/schematics/collection.json +5 -0
  181. package/styles/_chart-frame.scss +34 -12
  182. package/styles/_chart-interactive.scss +43 -9
  183. package/styles/_chart-motion.scss +139 -16
  184. package/styles/_field-box.scss +12 -0
  185. package/styles/_overlay-motion.scss +12 -4
  186. package/styles/_tokens-charts.scss +1 -1
  187. package/styles/_tokens.scss +19 -4
  188. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
  189. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
  190. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
  191. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
  192. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
  193. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
  194. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
  195. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
  196. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
  197. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +41 -19
  198. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
  199. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  200. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
  201. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +8 -1
  202. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +34 -6
  203. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +189 -121
  204. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
  205. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +17 -17
  206. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
  207. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -1
  208. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
  209. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
  210. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
  211. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +34 -20
  212. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +36 -7
  213. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  214. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +21 -18
  215. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
  216. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
  217. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
  218. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
  219. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -2
  220. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
  221. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +41 -17
  222. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +28 -7
  223. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
  224. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
  225. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
  226. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
  227. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
  228. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  229. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
  230. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
  231. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
  232. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
  233. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +15 -6
  234. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +15 -2
  235. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
  236. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +24 -4
  237. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
  238. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
  239. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
  240. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
  241. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +18 -7
  242. package/types/ids-group-ltd-ids-design-system-components.d.ts +75 -25
  243. package/types/ids-group-ltd-ids-design-system-core.d.ts +421 -11
  244. package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
@@ -14,7 +14,7 @@ Loaded via `@use 'styles/tokens';` (when the consumer also `@use 'styles/ds';` t
14
14
  - Error (destructive, was --danger): `--error`, `--error-hover`, `--error-pressed`, `--error-subtle`, `--error-muted`, `--error-border`, `--error-text` + HSL channels `--error-h/s/l`
15
15
  - Status: `--success`, `--success-hover`, `--success-subtle`, `--success-muted`, `--success-border`, `--success-text`
16
16
  - Status (warning/info): same shape with prefix swapped
17
- - Status pills: the DS ships no predefined status keys — consumers register their own vocabulary (e.g. `planning`, `confirmed`) and wire colours per key via `@use 'styles/status'` (`status.define(...)` / `status.semantic-preset`), which sets `--ds-badge-bg-color` / `--ds-badge-label-color` / `--ds-status-dot-color` per `[data-status]`. Full guide (model, worked example, migration from factory statuses): [`migrations/0.5.1/badge-statuses.md`](migrations/0.5.1/badge-statuses.md)
17
+ - Status pills: the DS ships no predefined status keys — consumers register their own vocabulary (e.g. `planning`, `confirmed`) and wire colours per key via `@use 'styles/status'` (`status.define(...)` / `status.semantic-preset`), which sets `--ds-badge-bg-color` / `--ds-badge-label-color` / `--ds-status-dot-color` per `[data-status]`. Full guide (model, worked example, migration from factory statuses): [`migrations/0.5.1/badge-statuses.md`](migrations/0.5.1/badge-statuses.md). `--ds-badge-font-size` sets the label size (default `--font-size-xs`; a `count` badge re-resolves it at `--font-size-2xs`, so the token reaches both).
18
18
 
19
19
  **Geometry:**
20
20
  - Spacing: `--space-0`, `--space-px`, `--space-0-5` (2px), `--space-1` (4px), `--space-1-5` (6px), `--space-2` (8px), `--space-2-5` (10px), `--space-3` (12px), `--space-4` (16px), `--space-5` (20px), `--space-6` (24px), `--space-8` (32px), `--space-10` (40px), `--space-12` (48px), `--space-14` (56px), `--space-16` (64px), `--space-20` (80px), `--space-24` (96px), `--space-32` (128px)
@@ -3,12 +3,12 @@
3
3
 
4
4
  Group: Layout & navigation
5
5
 
6
- Inputs: `topbarSpan: 'content' | 'full' = 'content'`, `railOpen: model<boolean> = false` (the overlay rail below `--bp-lg`), `railLabel: string = 'Navigation'`, `restoreScroll: boolean = false`, `restoreScrollTimeout: number = 2000` (ms), `scrollReset: 'path' | 'always' | 'never' = 'path'`
6
+ Inputs: `topbarSpan: 'content' | 'full' = 'content'`, `railOpen: model<boolean> = false` (the overlay rail below `--bp-lg`), `railLabel: string | null = null` (unset: `DS_INTL.appLayout.railLabel`), `restoreScroll: boolean = false`, `restoreScrollTimeout: number = 2000` (ms), `scrollReset: 'path' | 'always' | 'never' = 'path'`
7
7
  Content slots: `[sidenav]`, `[topbar]`, default (the page)
8
8
  Reads: `railId` and the read-only `railOverlay` signal, for a consumer-built burger; `dsRailTrigger` wires one for you.
9
9
  Tokens: `--ds-app-layout-padding-x`, `--ds-app-layout-padding-y`, `--ds-app-layout-content-max-width`, `--ds-app-layout-height`, `--ds-app-layout-rail-bg-color`, `--ds-app-layout-rail-shadow`, `--ds-app-layout-scrim-color`
10
10
  It owns the app's scroll CONTAINER, so a screen that needs to move the scroll calls `AppLayoutScrollService` rather than touching `window`.
11
11
 
12
12
  <!-- inputs:ds-app-layout -->
13
- All inputs: `topbarSpan: 'content' | 'full' = 'content'`, `railOpen: boolean = false`, `railLabel: string = 'Navigation'`, `restoreScroll: boolean = false`, `restoreScrollTimeout: number = 2000`, `scrollReset: 'path' | 'never' | 'always' = 'path'`
13
+ All inputs: `topbarSpan: 'content' | 'full' = 'content'`, `railOpen: boolean = false`, `railLabel: string | null = null`, `restoreScroll: boolean = false`, `restoreScrollTimeout: number = 2000`, `scrollReset: 'path' | 'never' | 'always' = 'path'`
14
14
  <!-- /inputs -->
@@ -3,11 +3,11 @@
3
3
 
4
4
  Group: Layout & navigation
5
5
 
6
- Inputs: `brand: string | null = null`, `logoLetter: string | null = null`, `tagline: string | null = null` (all three fall back to `DS_CONFIG.brand`), `cardElevation: CardElevation = 'raised'`, `cardPadding: CardPadding = 'lg'`, `landmark: 'main' | 'none' = 'none'`
6
+ Inputs: `brand: string | null = null`, `logoLetter: string | null = null`, `tagline: string | null = null` (all three fall back to `DS_CONFIG.brand`), `cardElevation: CardElevation = 'raised'`, `cardPadding: CardPadding = 'lg'`, `landmark: 'main' | 'none' = 'main'`
7
7
  Content slots: `[brand]` (replaces the whole mark row), `[dsBrandName]` (the name beside the generated mark), default (the card body), `[dsAuthSupport]` (the line under the card)
8
- Tokens: `--ds-auth-layout-min-height`, `--ds-auth-layout-bg-color`, `--ds-auth-layout-gap`, `--ds-auth-layout-padding-block`, `--ds-auth-layout-card-max-width`, `--ds-auth-layout-mark-size`, `--ds-auth-layout-mark-radius`, `--ds-auth-layout-mark-bg-color`, `--ds-auth-layout-mark-label-color`
9
- `landmark="main"` only when the page has no other `<main>`; the sign-in card is not automatically the document's main landmark.
8
+ Tokens: `--ds-auth-layout-min-height`, `--ds-auth-layout-bg-color`, `--ds-auth-layout-gap`, `--ds-auth-layout-padding-block`, `--ds-auth-layout-card-max-width`, `--ds-auth-layout-mark-size`, `--ds-auth-layout-mark-radius`, `--ds-auth-layout-mark-bg-color`, `--ds-auth-layout-mark-label-color`, `--ds-auth-layout-mark-font-size`, `--ds-auth-layout-brand-name-font-size`, `--ds-auth-layout-brand-max-height`
9
+ `landmark="none"` when the page already has a `<main>` (inside `ds-app-layout`, for one); by default the card is the page's main landmark.
10
10
 
11
11
  <!-- inputs:ds-auth-layout -->
12
- All inputs: `brand: string | null = null`, `logoLetter: string | null = null`, `tagline: string | null = null`, `cardElevation: 'flat' | 'raised' | 'hover' | 'interactive' = 'raised'`, `cardPadding: 'none' | 'sm' | 'md' | 'lg' = 'lg'`, `landmark: 'main' | 'none' = 'none'`
12
+ All inputs: `brand: string | null = null`, `logoLetter: string | null = null`, `tagline: string | null = null`, `cardElevation: 'flat' | 'raised' | 'hover' | 'interactive' = 'raised'`, `cardPadding: 'none' | 'sm' | 'md' | 'lg' = 'lg'`, `landmark: 'main' | 'none' = 'main'`
13
13
  <!-- /inputs -->
@@ -5,7 +5,7 @@ Group: Layout & navigation
5
5
 
6
6
  Inputs: `eyebrow: string = ''`, `title: required string`, `subtitle: string = ''`, `compact: boolean = false`, `divider: boolean = false`, `metaDivider: boolean = false`
7
7
  Content slots: `[breadcrumbs]`, `[title-badge]` (sits next to the title text), `[actions]` (right edge of title row), `[meta]` (under the title row), `[tabs]` (under the meta row)
8
- Tokens: `--ds-page-header-eyebrow-text-color`, `--ds-page-header-title-text-color`, `--ds-page-header-subtitle-text-color`, `--ds-page-header-meta-text-color`, `--ds-page-header-meta-icon-color`, `--ds-page-header-divider`, `--ds-page-header-title-font-size` (default `--font-size-h3`; `compact` flips to `--font-size-h4`). The page-header does NOT own its bottom gap — the parent page `:host` owns spacing via `display: flex; flex-direction: column; gap: var(--space-4)`.
8
+ Tokens: `--ds-page-header-eyebrow-text-color`, `--ds-page-header-title-text-color`, `--ds-page-header-subtitle-text-color`, `--ds-page-header-meta-text-color`, `--ds-page-header-meta-icon-color`, `--ds-page-header-divider`, `--ds-page-header-title-font-size` (default `--font-size-h3`; `compact` flips to `--font-size-h4`), `--ds-page-header-subtitle-font-size` (default `--font-size-s`). The page-header does NOT own its bottom gap — the parent page `:host` owns spacing via `display: flex; flex-direction: column; gap: var(--space-4)`.
9
9
 
10
10
  <!-- inputs:ds-page-header -->
11
11
  All inputs: `eyebrow: string = ''`, `title: string = ''`, `subtitle: string = ''`, `compact: boolean = false`, `divider: boolean = false`, `metaDivider: boolean = false`
@@ -3,7 +3,7 @@
3
3
 
4
4
  Group: Layout & navigation
5
5
 
6
- Inputs: `total: required number`, `pageSize: model<number> = 10`, `currentPage: model<number> = 1`, `pageSizeOptions: number[] = [10, 25, 50, 100]`, `showLabel: boolean = true`, `size: DsSize | null = null` (unset resolves `DS_CONFIG.pagination.size`, then `DS_CONFIG.control.size`, then `sm`), `layout: PaginationLayout | null = null` (`'grouped' | 'spread'`; unset resolves `DS_CONFIG.pagination.layout`, then `'grouped'`; `'spread'` gives the nav full width and pushes the label and the controls to opposite edges), `loading: boolean = false` (every control disables, the range label is masked with a `ds-skeleton` so a stale `total` is never quoted, and the nav reports `aria-busy`). Inside `ds-table` `size` and `layout` arrive as `paginationSize` / `paginationLayout`, and `loading` is set from `loading="skeleton"`.
6
+ Inputs: `total: required number`, `pageSize: model<number> = 10`, `currentPage: model<number> = 1`, `pageSizeOptions: number[] = [10, 25, 50, 100]`, `showLabel: boolean = true`, `size: DsSize | null = null` (unset resolves `DS_CONFIG.pagination.size`, then `DS_CONFIG.control.size`, then `sm`), `layout: PaginationLayout | null = null` (`'grouped' | 'spread'`; unset resolves `DS_CONFIG.pagination.layout`, then `'grouped'`; `'spread'` gives the nav full width and pushes the label and the controls to opposite edges), `loading: boolean = false` (every control disables, the range label is masked with a `ds-skeleton` so a stale `total` is never quoted, and the nav reports `aria-busy`). Inside `ds-table` `size` and `layout` arrive as `paginationSize` / `paginationLayout`, and `loading` is set from `loading="skeleton"`. With `total` at 0 the label is `DS_INTL.pagination.range(0, 0, 0)`, `Showing 0 of 0` by default, and every page button is disabled with none marked current.
7
7
  Outputs: `(currentPageChange): number`, `(pageSizeChange): number`
8
8
 
9
9
  <!-- inputs:ds-pagination -->
@@ -6,6 +6,7 @@ Group: Layout & navigation
6
6
  Container holds `<ds-tab label="…">` children.
7
7
  Tabs inputs: `selectedIndex: model<number> = 0`, `variant: 'line' | 'pills' = 'line'`
8
8
  Tab inputs: `label: required string`, `icon: IconName | null = null`, `count: number | null = null`, `disabled: boolean = false`. The tab's projected content renders in the active panel.
9
+ `scrollable` scrolls a horizontal strip inside its own box and, while tabs lie beyond an edge, shows a previous/next arrow on that side that turns the strip by a page (hidden at its own edge; no arrows on a strip that fits). The arrows are pointer affordances outside the tab order and hidden from assistive technology, since arrow keys already bring the selected tab into view.
9
10
  Tokens: `--ds-tab-label-color`, `--ds-tab-label-color-hover`, `--ds-tab-label-color-active`, `--ds-tab-indicator-color`, `--ds-tab-indicator-width`, `--ds-tab-padding-x`, `--ds-tab-padding-y`, `--ds-tabs-divider`, `--ds-tabs-pills-bg-color`, `--ds-tab-pill-bg-color-hover` (inactive hover, defaults to `var(--primary-subtle)`), `--ds-tab-pill-bg-color-active` (defaults to `var(--surface-default)` — elevated card), `--ds-tab-pill-bg-color-active-hover` (defaults to `var(--primary-subtle)`), `--ds-tab-pill-label-color-active` (defaults to `var(--primary-strong)`), `--ds-tab-pill-radius` (defaults to `var(--radius-md)` — same as buttons/inputs; override per-instance to `var(--radius-pill)` for fully round pills).
10
11
 
11
12
  <!-- inputs:ds-tabs -->
@@ -3,9 +3,9 @@
3
3
 
4
4
  Group: Overlay
5
5
 
6
- Attribute directive. Apply to any focusable element.
7
- Inputs: `dsTooltip: string = ''` (the text; empty disables), `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = 'top'`, `dsTooltipDelay: number = 120` (ms)
8
- Renders `<ds-tooltip-panel>` via CDK overlay on hover / focus; hides on leave / blur.
6
+ Attribute directive. Apply to any focusable element; with `dsTooltipWhenClipped` also to a label that cannot take focus.
7
+ Inputs: `dsTooltip: string = ''` (the text; empty disables), `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = 'top'`, `dsTooltipDelay: number = 120` (ms), `dsTooltipWhenClipped` (open only while the host shows less text than it holds; an empty `dsTooltip` then discloses the host's own text)
8
+ Renders `<ds-tooltip-panel>` via CDK overlay on hover / focus; hides on leave / blur. A `dsTooltipWhenClipped` host that cannot take focus (a label inside a button, a cell of a clickable row) also opens when keyboard focus lands on its nearest focusable ancestor, and closes on that ancestor's blur, click or any key; a mouse click opens nothing, and of several clipped hosts in one ancestor only the first in document order opens. A clipped tip whose text the host already contains sets no `aria-describedby` (the text is in the DOM already); a `dsTooltip` that says more than the host, and a plain `dsTooltip`, describe the focused element. A plain `dsTooltip` on a non-focusable element stays hover-only: put an info tooltip on its own focusable element, not inside a button. The panel wraps a value with no break opportunity (a file name, an id) inside its max width.
9
9
 
10
10
  <!-- inputs:[dsTooltip] -->
11
11
  All inputs: `dsTooltip: string = ''`, `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = 'top'`, `dsTooltipDelay: number = 120`, `dsTooltipWhenClipped: boolean = false`
@@ -19,11 +19,12 @@ bootstrapApplication(AppComponent, {
19
19
 
20
20
  `DsConfig` shape (the exported `DsConfig` type is the full contract):
21
21
 
22
- Eighteen sections. The exported `DsConfig` type is the source of truth — each key carries its own
22
+ Eighteen sections and one top-level `locale`. The exported `DsConfig` type is the source of truth — each key carries its own
23
23
  doc comment there, including why it is an app-level decision at all.
24
24
 
25
25
  ```ts
26
26
  interface DsConfig {
27
+ locale?: string; // BCP-47; default LOCALE_ID
27
28
  field?: {
28
29
  reserveMessage?: boolean; // keep a message line of space when empty
29
30
  errorMessages?: Record<string, string>; // fallback text per validation-error kind
@@ -57,5 +58,3 @@ effective value rather than re-deriving the chain.
57
58
  both resolve their parent with `skipSelf`, so the later wins and the earlier is silently lost. Merging
58
59
  happens across injector LEVELS: a route or component inherits the app's config and overrides only the
59
60
  keys it names.
60
-
61
- ---
@@ -0,0 +1,33 @@
1
+ <!-- GENERATED by tools/split-agent-catalogue.mjs from components.md. Do not edit. -->
2
+ # `DS_INTL` / `provideDsIntl(overrides)`
3
+
4
+ Section: App config
5
+
6
+ `DS_INTL` holds every string the library renders itself: picker rows and chips, clear and dismiss
7
+ buttons, pager and table announcements, chart descriptions and annex headers. It is a `Signal<DsIntl>`
8
+ holding the English defaults (`DS_INTL_DEFAULTS`) until an app provides its own.
9
+
10
+ ```ts
11
+ import { LOCALE_ID } from '@angular/core';
12
+ import { provideDsIntl } from '@ids-group-ltd/ids-design-system';
13
+
14
+ providers: [
15
+ { provide: LOCALE_ID, useValue: 'ru' },
16
+ provideDsIntl({ picker: { selectAll: 'Выбрать все', clearSelection: 'Очистить выбор' } }),
17
+ ]
18
+ ```
19
+
20
+ - **Object or factory.** An object is one fixed language. A factory returning a signal switches
21
+ language at runtime, and runs in an injection context, so it can inject the app's own language
22
+ service:
23
+ `provideDsIntl(() => { const i18n = inject(I18n); return computed(() => i18n.dictionary().ds); })`.
24
+ - **Section-wise merge across levels.** A route or component `provideDsIntl` inherits the one above
25
+ it and overrides only the keys it names. Like `provideDsConfig`, call it once per injector.
26
+ - **Precedence: input → `DS_INTL`.** A text input on the element (`placeholder`, `moreLabel`,
27
+ `sortAnnouncement`, …) still wins; those inputs default to `null` and publish a `…Resolved`
28
+ readback holding the effective text.
29
+ - **Numbers and dates are not words.** They follow `DsConfig.locale`, then `LOCALE_ID`: chart values
30
+ and percentages, `ds-date-picker`, `ds-dropzone` file sizes. An app that localizes sets both, once,
31
+ at the root.
32
+
33
+ ---
@@ -3,10 +3,10 @@
3
3
 
4
4
  Group: Surfaces
5
5
 
6
- Accordion is a thin wrapper that rounds + borders its children. Item inputs: `title: string = ''`, `expanded: model<boolean> = false`. Content slots on item: default (body), `[badge]` (rendered next to the title in the header).
6
+ Accordion is a thin wrapper that rounds + borders its children. Item inputs: `title: string = ''`, `expanded: model<boolean> = false`. Content slots on item: default (body), `[badge]` (rendered next to the title in the header). `chevron: 'right' | 'down' = 'right'` on `<ds-accordion>` sets every item's chevron: `right` turns down when an item opens, `down` turns up. Header geometry and type are tokens on the item (`--ds-accordion-header-padding`, `-header-gap`, `-header-font-family` / `-font-size` / `-font-weight` / `-line-height`, `-header-hover-text-color`) and so is the body padding (`--ds-accordion-body-padding`); both padding tokens take the CSS shorthand, as `--ds-card-padding` does.
7
7
 
8
8
  <!-- inputs:ds-accordion -->
9
- All inputs: `multiple: boolean = true`
9
+ All inputs: `multiple: boolean = true`, `chevron: 'right' | 'down' = 'right'`
10
10
  <!-- /inputs -->
11
11
 
12
12
  ---
@@ -10,11 +10,11 @@ Opening a row: give one column `link: (row) => <route target> | null` and its va
10
10
  Cell templates: `<ng-template dsCellTemplate="<colKey>" [dsCellTemplateOf]="rows" let-row>…</ng-template>` — bound to the same rows as `[data]`, `dsCellTemplateOf` types `row` as `T` under strict templates (a field typo is a compile error) and is never read at runtime. Without it `row` is `unknown`; narrow via a helper method on the host. `CellTemplateContext<T>` (`$implicit` and `row`) is exported.
11
11
  Content slots: `[empty]` (rendered when `data.length === 0`), `[bulk-actions]` (rendered in the bulk action bar when `selectable && some selected`)
12
12
  Loading modes: `'skeleton'` replaces rows with shimmer placeholders driven by the global `--skeleton-shimmer-x` keyframe; `'overlay'` keeps existing rows visible behind a translucent layer with a centred spinner; under `'skeleton'` the footer pager takes `loading` as well - its controls disable and its range label is masked, so it never quotes the previous query's count. `'overlay'` leaves the pager live, like the header.
13
- Footer pager: `pageSizeOptions`, `showPageSize`, `showLabel`, `paginationSize: DsSize | null = null` and `paginationLayout: PaginationLayout | null = null` are the embedded `ds-pagination`'s own inputs forwarded one-to-one; the last two unset resolve `DS_CONFIG.pagination.size` (then `DS_CONFIG.control.size`, then `sm`) and `DS_CONFIG.pagination.layout` (then `'grouped'`), so an app whose every pager wants `md` / `spread` says it once in the config.
14
- Tokens: `--ds-table-border: var(--border-default)`, `--ds-table-radius: var(--radius-md)`, `--ds-table-bg-color`, `--ds-table-head-text-color: var(--text-secondary)`, `--ds-table-head-bg-color: var(--surface-secondary)`, `--ds-table-head-font-size: var(--font-size-xs)`, `--ds-table-row-hover-bg-color`, `--ds-table-row-selected-bg-color`, `--ds-table-divider`, `--ds-table-sort-active-icon-color`, `--ds-table-cell-padding-x/y`. (Renamed 2026-06: `--ds-table-header-*` → `--ds-table-head-*`, matching the tokens reference.)
13
+ Footer pager: `pageSizeOptions`, `showPageSize`, `showLabel`, `paginationSize: DsSize | null = null` and `paginationLayout: PaginationLayout | null = null` are the embedded `ds-pagination`'s own inputs forwarded one-to-one; the last two unset resolve `DS_CONFIG.pagination.size` (then `DS_CONFIG.control.size`, then `sm`) and `DS_CONFIG.pagination.layout` (then `'grouped'`), so an app whose every pager wants `md` / `spread` says it once in the config. A paged table with no rows announces its empty state's text (`[empty]` or `emptyTemplate`); with none it announces `rangeAnnouncement(0, 0, 0)`, `Showing 0 of 0` by default.
14
+ Tokens: `--ds-table-border: var(--border-default)`, `--ds-table-radius: var(--radius-md)`, `--ds-table-bg-color`, `--ds-table-head-text-color: var(--text-secondary)`, `--ds-table-head-bg-color: var(--surface-secondary)`, `--ds-table-head-font-size: var(--font-size-xs)`, `--ds-table-row-hover-bg-color`, `--ds-table-row-selected-bg-color`, `--ds-table-divider`, `--ds-table-sort-active-icon-color`, `--ds-table-cell-padding-x/y`, `--ds-table-utility-column-width` (the column the column picker and the row-actions ⋮ ride in; default `--space-6`, the buttons' own size, so the column is as wide as its padding makes it) and `--ds-table-utility-column-padding-x` (one length for both sides; default the cell padding chain), `--ds-table-footer-padding-y` / `-top` / `-bottom` (the pagination footer's block padding; default `--space-3`). (Renamed 2026-06: `--ds-table-header-*` → `--ds-table-head-*`, matching the tokens reference.)
15
15
 
16
16
  <!-- inputs:ds-table -->
17
- All inputs: `data: required readonly T[]`, `rowId: ((row: T) => string) | null = null`, `columns: required readonly TableColumn<T>[]`, `selectable: boolean = false`, `bordered: boolean | null = null`, `loading: boolean | 'skeleton' | 'overlay' = false`, `stickyHeader: boolean = true`, `maxHeight: string | null = null`, `density: 'default' | 'compact' = 'default'`, `zebra: boolean = false`, `animateHeight: boolean = false`, `selectedIds: Set<string>`, `sortKey: string | null = null`, `sortDirection: 'asc' | 'desc' = null`, `sortingOrder: SortDirection[]`, `sortAnnouncement: (label: string, dir: SortDirection) => string`, `rangeAnnouncement: (first: number, last: number, total: number) => string`, `skeletonRows: number = 5`, `caption: string = ''`, `rowInteractive: boolean = false`, `activeRowId: string | null = null`, `filterQuery: string = ''`, `columnFilters: Map<string, ReadonlySet<string>>`, `persistLayout: boolean = false`, `storageKey: string = ''`, `stickyScrollbar: boolean | null = null`, `pageSize: number | null = null`, `page: number = 1`, `pageSizeOptions: number[]`, `showPageSize: boolean = true`, `showLabel: boolean = true`, `paginationSize: 'sm' | 'md' | 'lg' = null`, `paginationLayout: 'grouped' | 'spread' = null`, `total: number | null = null`, `scrollToTopOnPageChange: boolean = false`, `sortMode: 'client' | 'server' | 'none' = null`, `filterMode: 'client' | 'server' | 'none' = null`, `columnFilterOptions: ReadonlyMap<string, readonly string[]>`, `stickyScrollbarOffset: string | null = null`, `stickyFirstColumn: boolean = false`, `virtualScroll: boolean = false`, `virtualRowSize: number = 44`, `lazy: boolean = false`, `rowActions: readonly TableRowAction<T>[] = []`, `cellTemplateMap: Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>> = {}`, `emptyTemplate: TemplateRef<unknown> | null = null`, `expandableRows: boolean = false`, `expandedIds: Set<string>`, `expandMode: 'multiple' | 'single' = 'multiple'`, `expandAllToggle: boolean = false`, `rowExpandTemplate: TemplateRef<{
17
+ All inputs: `data: required readonly T[]`, `rowId: ((row: T) => string) | null = null`, `columns: required readonly TableColumn<T>[]`, `selectable: boolean = false`, `bordered: boolean | null = null`, `loading: boolean | 'skeleton' | 'overlay' = false`, `stickyHeader: boolean = true`, `maxHeight: string | null = null`, `density: 'default' | 'compact' = 'default'`, `zebra: boolean = false`, `animateHeight: boolean = false`, `selectedIds: Set<string>`, `sortKey: string | null = null`, `sortDirection: 'asc' | 'desc' = null`, `sortingOrder: SortDirection[]`, `sortAnnouncement: ((label: string, dir: SortDirection) => string) | null = null`, `rangeAnnouncement: ((first: number, last: number, total: number) => string) | null = null`, `skeletonRows: number = 5`, `caption: string = ''`, `rowInteractive: boolean = false`, `activeRowId: string | null = null`, `filterQuery: string = ''`, `columnFilters: Map<string, ReadonlySet<string>>`, `persistLayout: boolean = false`, `storageKey: string = ''`, `stickyScrollbar: boolean | null = null`, `pageSize: number | null = null`, `page: number = 1`, `pageSizeOptions: number[]`, `showPageSize: boolean = true`, `showLabel: boolean = true`, `paginationSize: 'sm' | 'md' | 'lg' = null`, `paginationLayout: 'grouped' | 'spread' = null`, `total: number | null = null`, `scrollToTopOnPageChange: boolean = false`, `sortMode: 'client' | 'server' | 'none' = null`, `filterMode: 'client' | 'server' | 'none' = null`, `columnFilterOptions: ReadonlyMap<string, readonly string[]>`, `stickyScrollbarOffset: string | null = null`, `stickyFirstColumn: boolean = false`, `virtualScroll: boolean = false`, `virtualRowSize: number = 44`, `lazy: boolean = false`, `rowActions: readonly TableRowAction<T>[] = []`, `cellTemplateMap: Record<string, TemplateRef<{ $implicit: unknown; row: unknown }>> = {}`, `emptyTemplate: TemplateRef<unknown> | null = null`, `expandableRows: boolean = false`, `expandedIds: Set<string>`, `expandMode: 'multiple' | 'single' = 'multiple'`, `expandAllToggle: boolean = false`, `rowExpandTemplate: TemplateRef<{
18
18
  $implicit: unknown;
19
19
  row: unknown;
20
20
  }> | null = null`
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, input, model, booleanAttribute, inject, effect, ViewEncapsulation, Component, contentChildren, forwardRef } from '@angular/core';
2
+ import { InjectionToken, input, model, booleanAttribute, inject, computed, effect, ViewEncapsulation, Component, contentChildren, forwardRef } from '@angular/core';
3
3
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
4
4
 
5
5
  const ACCORDION = new InjectionToken('ACCORDION');
@@ -16,6 +16,8 @@ class AccordionItemComponent {
16
16
  headId = `${this.uid}-head`;
17
17
  bodyId = `${this.uid}-body`;
18
18
  accordion = inject(ACCORDION, { optional: true });
19
+ chevronDown = computed(() => (this.accordion?.chevron() ?? 'right') === 'down', ...(ngDevMode ? [{ debugName: "chevronDown" }] : /* istanbul ignore next */ []));
20
+ chevronName = computed(() => this.chevronDown() ? 'chevronDown' : 'chevronRight', ...(ngDevMode ? [{ debugName: "chevronName" }] : /* istanbul ignore next */ []));
19
21
  /** Tracks last expanded state so we only notify on a true open transition. */
20
22
  previousExpanded = false;
21
23
  constructor() {
@@ -38,16 +40,18 @@ class AccordionItemComponent {
38
40
  this.expanded.set(false);
39
41
  }
40
42
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
41
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: AccordionItemComponent, isStandalone: true, selector: "ds-accordion-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { properties: { "attr.title": "null" } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host:first-of-type .head{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}:host:last-of-type .head{border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}:host .head{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-3) var(--space-4);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--space-2) var(--space-4) var(--space-4);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
43
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: AccordionItemComponent, isStandalone: true, selector: "ds-accordion-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { properties: { "attr.title": "null", "class.chevron-down": "chevronDown()" } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n class=\"chev\"\n [name]=\"chevronName()\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));--_accordion-header-hover-text-color: var(--ds-accordion-header-hover-text-color, var(--_accordion-header-text-color));--_accordion-header-padding: var(--ds-accordion-header-padding, var(--space-3) var(--space-4));--_accordion-header-gap: var(--ds-accordion-header-gap, var(--space-2));--_accordion-header-font-family: var(--ds-accordion-header-font-family, var(--font-sans));--_accordion-header-font-size: var(--ds-accordion-header-font-size, var(--font-size-s));--_accordion-header-font-weight: var(--ds-accordion-header-font-weight, var(--font-weight-medium));--_accordion-header-line-height: var(--ds-accordion-header-line-height, var(--line-height-flat));--_accordion-body-padding: var(--ds-accordion-body-padding, var(--space-2) var(--space-4) var(--space-4));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host:first-of-type .head{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}:host:last-of-type .head{border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}:host .head{display:flex;align-items:center;gap:var(--_accordion-header-gap);width:100%;padding:var(--_accordion-header-padding);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--_accordion-header-font-weight) var(--_accordion-header-font-size)/var(--_accordion-header-line-height) var(--_accordion-header-font-family);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color);color:var(--_accordion-header-hover-text-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host.chevron-down .head[aria-expanded=true] .chev{transform:rotate(180deg)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--_accordion-body-padding);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
42
44
  }
43
45
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionItemComponent, decorators: [{
44
46
  type: Component,
45
- args: [{ selector: 'ds-accordion-item', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host:first-of-type .head{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}:host:last-of-type .head{border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}:host .head{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-3) var(--space-4);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--space-2) var(--space-4) var(--space-4);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
47
+ args: [{ selector: 'ds-accordion-item', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null', '[class.chevron-down]': 'chevronDown()' }, encapsulation: ViewEncapsulation.Emulated, template: "<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n class=\"chev\"\n [name]=\"chevronName()\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));--_accordion-header-hover-text-color: var(--ds-accordion-header-hover-text-color, var(--_accordion-header-text-color));--_accordion-header-padding: var(--ds-accordion-header-padding, var(--space-3) var(--space-4));--_accordion-header-gap: var(--ds-accordion-header-gap, var(--space-2));--_accordion-header-font-family: var(--ds-accordion-header-font-family, var(--font-sans));--_accordion-header-font-size: var(--ds-accordion-header-font-size, var(--font-size-s));--_accordion-header-font-weight: var(--ds-accordion-header-font-weight, var(--font-weight-medium));--_accordion-header-line-height: var(--ds-accordion-header-line-height, var(--line-height-flat));--_accordion-body-padding: var(--ds-accordion-body-padding, var(--space-2) var(--space-4) var(--space-4));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host:first-of-type .head{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}:host:last-of-type .head{border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}:host .head{display:flex;align-items:center;gap:var(--_accordion-header-gap);width:100%;padding:var(--_accordion-header-padding);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--_accordion-header-font-weight) var(--_accordion-header-font-size)/var(--_accordion-header-line-height) var(--_accordion-header-font-family);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color);color:var(--_accordion-header-hover-text-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host.chevron-down .head[aria-expanded=true] .chev{transform:rotate(180deg)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--_accordion-body-padding);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
46
48
  }], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
47
49
 
48
50
  class AccordionComponent {
49
51
  /** When false, opening one item automatically closes all others. */
50
52
  multiple = input(true, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
53
+ /** Which way the closed chevron points on every item: `right` turns down when an item opens, `down` turns up. */
54
+ chevron = input('right', ...(ngDevMode ? [{ debugName: "chevron" }] : /* istanbul ignore next */ []));
51
55
  items = contentChildren(AccordionItemComponent, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
52
56
  notifyOpen(opened) {
53
57
  if (this.multiple()) {
@@ -60,7 +64,7 @@ class AccordionComponent {
60
64
  }
61
65
  }
62
66
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AccordionComponent, isStandalone: true, selector: "ds-accordion", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
67
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AccordionComponent, isStandalone: true, selector: "ds-accordion", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, chevron: { classPropertyName: "chevron", publicName: "chevron", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
64
68
  {
65
69
  provide: ACCORDION,
66
70
  useExisting: forwardRef(() => AccordionComponent),
@@ -75,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
75
79
  useExisting: forwardRef(() => AccordionComponent),
76
80
  },
77
81
  ], styles: [":host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] }]
78
- }], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AccordionItemComponent), { isSignal: true }] }] } });
82
+ }], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], chevron: [{ type: i0.Input, args: [{ isSignal: true, alias: "chevron", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AccordionItemComponent), { isSignal: true }] }] } });
79
83
 
80
84
  /**
81
85
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multiple: () => boolean;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multiple = input(true, { transform: booleanAttribute });\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multiple()) {\n return;\n }\n for (const item of this.items() as unknown as AccordionItemRef[]) {\n if (item !== opened) {\n item.closeItem();\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAea,SAAS,GAAG,IAAI,cAAc,CAAoB,WAAW;;ACH1E,IAAI,MAAM,GAAG,CAAC;MAaD,sBAAsB,CAAA;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAEhC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;IAEhC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE9C,IAAA,GAAG,GAAG,CAAA,aAAA,EAAgB,EAAE,MAAM,EAAE;AAChC,IAAA,MAAM,GAAG,CAAA,EAAG,IAAI,CAAC,GAAG,OAAO;AAC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AA,EAAA,EAAA,CAAA;;AC1CjE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { AccordionChevron } from './accordion.types';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multiple: () => boolean;\n readonly chevron: () => AccordionChevron;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null', '[class.chevron-down]': 'chevronDown()' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n protected readonly chevronDown = computed(\n () => (this.accordion?.chevron() ?? 'right') === 'down',\n );\n protected readonly chevronName = computed<IconName>(() =>\n this.chevronDown() ? 'chevronDown' : 'chevronRight',\n );\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n class=\"chev\"\n [name]=\"chevronName()\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\nimport type { AccordionChevron } from './accordion.types';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multiple = input(true, { transform: booleanAttribute });\n\n /** Which way the closed chevron points on every item: `right` turns down when an item opens, `down` turns up. */\n readonly chevron = input<AccordionChevron>('right');\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multiple()) {\n return;\n }\n for (const item of this.items() as unknown as AccordionItemRef[]) {\n if (item !== opened) {\n item.closeItem();\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAiBa,SAAS,GAAG,IAAI,cAAc,CAAoB,WAAW;;ACH1E,IAAI,MAAM,GAAG,CAAC;MAaD,sBAAsB,CAAA;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAEhC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;IAEhC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE9C,IAAA,GAAG,GAAG,CAAA,aAAA,EAAgB,EAAE,MAAM,EAAE;AAChC,IAAA,MAAM,GAAG,CAAA,EAAG,IAAI,CAAC,GAAG,OAAO;AAC3B,IAAA,MAAM,GAAG,CAAA,EAAG,IAAI,CAAC,GAAG,OAAO;IAE7B,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE/C,IAAA,WAAW,GAAG,QAAQ,CACvC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,OAA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AAO,EAAE,SAAS;AAClB,4BAAA,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC;AAClD,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,sIAAA,CAAA,EAAA;2RASwC,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC9CjE;;AAEG;;;;"}
@@ -1,9 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, computed, HostBinding, ViewEncapsulation, Component } from '@angular/core';
2
+ import { inject, input, booleanAttribute, output, computed, HostBinding, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
4
- import { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';
4
+ import { DS_INTL, resolveWithConfig, warnAnnounceOversight } from '@ids-group-ltd/ids-design-system/core';
5
5
 
6
6
  class AlertComponent {
7
+ intl = inject(DS_INTL);
7
8
  /** Severity — drives colour, the default icon and the ARIA role/live. */
8
9
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
9
10
  /** Optional bold heading above the message. */
@@ -19,18 +20,28 @@ class AlertComponent {
19
20
  * and prefer `ToastService` for anything transient. */
20
21
  announce = input(null, { ...(ngDevMode ? { debugName: "announce" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
21
22
  announceResolved = resolveWithConfig(this.announce, (config) => config.alert?.announce, false);
22
- get ariaRole() {
23
- if (!this.announceResolved()) {
24
- return null;
25
- }
23
+ liveRole = computed(() => {
26
24
  const value = this.variant();
27
25
  return value === 'error' || value === 'warning' ? 'alert' : 'status';
26
+ }, ...(ngDevMode ? [{ debugName: "liveRole" }] : /* istanbul ignore next */ []));
27
+ get ariaRole() {
28
+ return this.announceResolved() ? this.liveRole() : null;
28
29
  }
29
30
  get ariaLive() {
30
31
  if (!this.announceResolved()) {
31
32
  return null;
32
33
  }
33
- return this.ariaRole === 'alert' ? 'assertive' : 'polite';
34
+ return this.liveRole() === 'alert' ? 'assertive' : 'polite';
35
+ }
36
+ constructor() {
37
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
38
+ warnAnnounceOversight('ds-alert', 'alert', () => ({
39
+ variant: this.variant(),
40
+ title: this.title(),
41
+ assertive: this.liveRole() === 'alert',
42
+ announce: this.announce(),
43
+ }));
44
+ }
34
45
  }
35
46
  classes = computed(() => `alert ${this.variant()}`, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
36
47
  defaultIcon = computed(() => {
@@ -51,12 +62,12 @@ class AlertComponent {
51
62
  this.closed.emit();
52
63
  }
53
64
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
54
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AlertComponent, isStandalone: true, selector: "ds-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null", "attr.role": "this.ariaRole", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
65
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AlertComponent, isStandalone: true, selector: "ds-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null", "attr.role": "this.ariaRole", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
55
66
  }
56
67
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, decorators: [{
57
68
  type: Component,
58
- args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"] }]
59
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], ariaRole: [{
69
+ args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"] }]
70
+ }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], ariaRole: [{
60
71
  type: HostBinding,
61
72
  args: ['attr.role']
62
73
  }], ariaLive: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-alert.mjs","sources":["../../../src/lib/components/alert/alert.component.ts","../../../src/lib/components/alert/alert.component.html","../../../src/lib/components/alert/ids-group-ltd-ids-design-system-components-alert.ts"],"sourcesContent":["import {\n Component,\n HostBinding,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { AlertVariant } from './alert.types';\n\n@Component({\n selector: 'ds-alert',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './alert.component.html',\n styleUrl: './alert.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AlertComponent {\n /** Severity — drives colour, the default icon and the ARIA role/live. */\n readonly variant = input<AlertVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Fires when the user dismisses the alert. */\n readonly closed = output<void>();\n\n /** Announce this alert to a screen reader when it appears. Unset follows\n * `DS_CONFIG.alert.announce`, then `false` — see `ds-banner`'s `announce` for why,\n * and prefer `ToastService` for anything transient. */\n readonly announce = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n readonly announceResolved = resolveWithConfig(\n this.announce,\n (config) => config.alert?.announce,\n false,\n );\n\n @HostBinding('attr.role')\n protected get ariaRole(): 'alert' | 'status' | null {\n if (!this.announceResolved()) {\n return null;\n }\n const value = this.variant();\n\n return value === 'error' || value === 'warning' ? 'alert' : 'status';\n }\n\n @HostBinding('attr.aria-live')\n protected get ariaLive(): 'assertive' | 'polite' | null {\n if (!this.announceResolved()) {\n return null;\n }\n\n return this.ariaRole === 'alert' ? 'assertive' : 'polite';\n }\n\n protected readonly classes = computed(() => `alert ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n const variant = this.variant();\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'warning') {\n return 'warn';\n }\n if (variant === 'error') {\n return 'error';\n }\n\n return 'info';\n });\n\n protected readonly resolvedIcon = computed<IconName>(\n () => this.icon() ?? this.defaultIcon(),\n );\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAyBa,cAAc,CAAA;;AAEhB,IAAA,OAAO,GAAG,KAAK,CAAe,MAAM,8EAAC;;AAErC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE3D,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;IAEnC,MAAM,GAAG,MAAM,EAAQ;AAEhC;;AAEwD;AAC/C,IAAA,QAAQ,GAAG,KAAK,CAA0B,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,UAAA,EAAA,8BAAA,EAAA,CAAA,EACrD,SAAS,EAAE,CAAC,KAAK,MAAM,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,GACtE;IAEO,gBAAgB,GAAG,iBAAiB,CAC3C,IAAI,CAAC,QAAQ,EACb,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,EAAE,QAAQ,EAClC,KAAK,CACN;AAED,IAAA,IACc,QAAQ,GAAA;AACpB,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE;AAC5B,YAAA,OAAO,IAAI;QACb;AACA,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE;AAE5B,QAAA,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,SAAS,GAAG,OAAO,GAAG,QAA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B,CAAC,QAAQ,EAAA,QAAA,EAAA,+pBAAA,EAAA,MAAA,EAAA,CAAA,kvFAAA,CAAA,EAAA;;sBA2BxC,WAAW;uBAAC,WAAW;;sBAUvB,WAAW;uBAAC,gBAAgB;;;AE5D/B;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-alert.mjs","sources":["../../../src/lib/components/alert/alert.component.ts","../../../src/lib/components/alert/alert.component.html","../../../src/lib/components/alert/ids-group-ltd-ids-design-system-components-alert.ts"],"sourcesContent":["import {\n Component,\n HostBinding,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport {\n DS_INTL,\n resolveWithConfig,\n warnAnnounceOversight,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { AlertVariant } from './alert.types';\n\n@Component({\n selector: 'ds-alert',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './alert.component.html',\n styleUrl: './alert.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AlertComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Severity — drives colour, the default icon and the ARIA role/live. */\n readonly variant = input<AlertVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Fires when the user dismisses the alert. */\n readonly closed = output<void>();\n\n /** Announce this alert to a screen reader when it appears. Unset follows\n * `DS_CONFIG.alert.announce`, then `false` — see `ds-banner`'s `announce` for why,\n * and prefer `ToastService` for anything transient. */\n readonly announce = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n readonly announceResolved = resolveWithConfig(\n this.announce,\n (config) => config.alert?.announce,\n false,\n );\n\n private readonly liveRole = computed<'alert' | 'status'>(() => {\n const value = this.variant();\n\n return value === 'error' || value === 'warning' ? 'alert' : 'status';\n });\n\n @HostBinding('attr.role')\n protected get ariaRole(): 'alert' | 'status' | null {\n return this.announceResolved() ? this.liveRole() : null;\n }\n\n @HostBinding('attr.aria-live')\n protected get ariaLive(): 'assertive' | 'polite' | null {\n if (!this.announceResolved()) {\n return null;\n }\n\n return this.liveRole() === 'alert' ? 'assertive' : 'polite';\n }\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n warnAnnounceOversight('ds-alert', 'alert', () => ({\n variant: this.variant(),\n title: this.title(),\n assertive: this.liveRole() === 'alert',\n announce: this.announce(),\n }));\n }\n }\n\n protected readonly classes = computed(() => `alert ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n const variant = this.variant();\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'warning') {\n return 'warn';\n }\n if (variant === 'error') {\n return 'error';\n }\n\n return 'info';\n });\n\n protected readonly resolvedIcon = computed<IconName>(\n () => this.icon() ?? this.defaultIcon(),\n );\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from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