@ids-group-ltd/ids-design-system 0.15.2 → 0.15.3

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 (329) hide show
  1. package/CHANGELOG.md +163 -20
  2. package/{docs/agent → agent}/charts/ds-bar-chart.md +1 -1
  3. package/agent/charts/ds-chart.md +10 -0
  4. package/{docs/agent → agent}/charts/ds-column-chart.md +1 -1
  5. package/{docs/agent → agent}/charts/ds-funnel-chart.md +1 -1
  6. package/{docs/agent → agent}/charts/ds-heatmap-chart.md +1 -1
  7. package/{docs/agent → agent}/charts/ds-line-chart.md +1 -1
  8. package/{docs/agent → agent}/charts/ds-pie-chart.md +1 -1
  9. package/{docs/agent → agent}/charts/ds-scatter-chart.md +1 -1
  10. package/{docs/agent → agent}/charts/ds-waterfall-chart.md +1 -1
  11. package/{docs/agent → agent}/feedback/ds-empty-state.md +1 -1
  12. package/{docs/agent → agent}/forms/ds-button.md +1 -1
  13. package/{docs/agent → agent}/forms/ds-time-picker.md +1 -1
  14. package/{docs/agent → agent}/overlays/ds-definition-term.md +1 -1
  15. package/agent/overlays/ds-tooltip.md +12 -0
  16. package/{docs/agent → agent}/platform/ds-config.md +2 -1
  17. package/{docs/agent → agent}/tables/ds-table.md +1 -1
  18. package/components.md +19 -18
  19. package/design-system.md +2 -2
  20. package/eslint/deprecated-api.json +7 -0
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +9 -4
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +12 -11
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +12 -12
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +3 -11
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +7 -3
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +4 -4
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +4 -4
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +7 -3
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +6 -6
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +17 -8
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +9 -4
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -4
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +2 -2
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -4
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +4 -2
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +7 -4
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +71 -25
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +80 -12
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -6
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +67 -29
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +4 -4
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +21 -4
  190. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -2
  192. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  194. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  196. package/migrations/0.10.0.json +21 -23
  197. package/migrations/0.10.2.json +3 -5
  198. package/migrations/0.10.3.json +1 -3
  199. package/migrations/0.11.0.json +4 -6
  200. package/migrations/0.11.1.json +1 -3
  201. package/migrations/0.13.0.json +4 -4
  202. package/migrations/0.13.4.json +20 -4
  203. package/migrations/0.14.0.json +1 -2
  204. package/migrations/0.15.1.json +5 -5
  205. package/migrations/0.15.3.json +175 -0
  206. package/migrations/0.6.2.json +5 -3
  207. package/migrations/0.7.1.json +1 -2
  208. package/migrations/0.8.0.json +2 -2
  209. package/migrations/0.9.0.json +14 -19
  210. package/migrations/README.md +11 -11
  211. package/package.json +1 -1
  212. package/schematics/check-overrides/surface.json +12 -1
  213. package/styles/_component-base.scss +29 -39
  214. package/styles/_dropdown-overlay.scss +7 -3
  215. package/styles/_focus.scss +4 -4
  216. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  217. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +2 -0
  218. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +1 -1
  219. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +6 -2
  220. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +1 -0
  221. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
  222. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -0
  223. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -9
  224. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +26 -3
  225. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +1 -0
  226. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +44 -12
  227. package/types/ids-group-ltd-ids-design-system-components.d.ts +14 -2
  228. package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
  229. package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
  230. package/docs/agent/charts/ds-chart.md +0 -10
  231. package/docs/agent/overlays/ds-tooltip.md +0 -12
  232. /package/{docs/agent → agent}/INDEX.md +0 -0
  233. /package/{docs/agent → agent}/charts/chart-colour-which-palette-a-chart-takes.md +0 -0
  234. /package/{docs/agent → agent}/charts/chart-frame-the-box-a-chart-draws-around-itself.md +0 -0
  235. /package/{docs/agent → agent}/charts/column-series-component.md +0 -0
  236. /package/{docs/agent → agent}/charts/ds-chart-data-table.md +0 -0
  237. /package/{docs/agent → agent}/charts/ds-config.md +0 -0
  238. /package/{docs/agent → agent}/charts/line-series-component.md +0 -0
  239. /package/{docs/agent → agent}/charts/reference-label-component.md +0 -0
  240. /package/{docs/agent → agent}/charts/reference-line-component.md +0 -0
  241. /package/{docs/agent → agent}/charts/series-annotation-component.md +0 -0
  242. /package/{docs/agent → agent}/domain/ds-w3w.md +0 -0
  243. /package/{docs/agent → agent}/feedback/ds-alert.md +0 -0
  244. /package/{docs/agent → agent}/feedback/ds-avatar-group.md +0 -0
  245. /package/{docs/agent → agent}/feedback/ds-avatar.md +0 -0
  246. /package/{docs/agent → agent}/feedback/ds-badge.md +0 -0
  247. /package/{docs/agent → agent}/feedback/ds-banner.md +0 -0
  248. /package/{docs/agent → agent}/feedback/ds-bar.md +0 -0
  249. /package/{docs/agent → agent}/feedback/ds-description-item.md +0 -0
  250. /package/{docs/agent → agent}/feedback/ds-description-list.md +0 -0
  251. /package/{docs/agent → agent}/feedback/ds-list-item.md +0 -0
  252. /package/{docs/agent → agent}/feedback/ds-list.md +0 -0
  253. /package/{docs/agent → agent}/feedback/ds-loading-overlay.md +0 -0
  254. /package/{docs/agent → agent}/feedback/ds-skeleton.md +0 -0
  255. /package/{docs/agent → agent}/feedback/ds-spinner.md +0 -0
  256. /package/{docs/agent → agent}/feedback/ds-stat.md +0 -0
  257. /package/{docs/agent → agent}/feedback/ds-status-dot.md +0 -0
  258. /package/{docs/agent → agent}/feedback/ds-tag.md +0 -0
  259. /package/{docs/agent → agent}/feedback/ds-timeline-item.md +0 -0
  260. /package/{docs/agent → agent}/feedback/ds-toast-region.md +0 -0
  261. /package/{docs/agent → agent}/feedback/ds-toast.md +0 -0
  262. /package/{docs/agent → agent}/feedback/ds-tree.md +0 -0
  263. /package/{docs/agent → agent}/forms/ds-autocomplete.md +0 -0
  264. /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
  265. /package/{docs/agent → agent}/forms/ds-checkbox.md +0 -0
  266. /package/{docs/agent → agent}/forms/ds-color-picker.md +0 -0
  267. /package/{docs/agent → agent}/forms/ds-date-picker.md +0 -0
  268. /package/{docs/agent → agent}/forms/ds-dropzone.md +0 -0
  269. /package/{docs/agent → agent}/forms/ds-field-group.md +0 -0
  270. /package/{docs/agent → agent}/forms/ds-filter-bar.md +0 -0
  271. /package/{docs/agent → agent}/forms/ds-icon-button.md +0 -0
  272. /package/{docs/agent → agent}/forms/ds-input.md +0 -0
  273. /package/{docs/agent → agent}/forms/ds-multi-select.md +0 -0
  274. /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
  275. /package/{docs/agent → agent}/forms/ds-otp-input.md +0 -0
  276. /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
  277. /package/{docs/agent → agent}/forms/ds-radio-group.md +0 -0
  278. /package/{docs/agent → agent}/forms/ds-radio.md +0 -0
  279. /package/{docs/agent → agent}/forms/ds-search.md +0 -0
  280. /package/{docs/agent → agent}/forms/ds-segmented.md +0 -0
  281. /package/{docs/agent → agent}/forms/ds-select.md +0 -0
  282. /package/{docs/agent → agent}/forms/ds-slider.md +0 -0
  283. /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
  284. /package/{docs/agent → agent}/forms/ds-switch.md +0 -0
  285. /package/{docs/agent → agent}/forms/ds-textarea.md +0 -0
  286. /package/{docs/agent → agent}/forms/ds-toggle-button.md +0 -0
  287. /package/{docs/agent → agent}/forms/filter-item-directive.md +0 -0
  288. /package/{docs/agent → agent}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +0 -0
  289. /package/{docs/agent → agent}/foundations/global-helper-classes.md +0 -0
  290. /package/{docs/agent → agent}/foundations/grid.md +0 -0
  291. /package/{docs/agent → agent}/foundations/tokens.md +0 -0
  292. /package/{docs/agent → agent}/navigation/ds-app-layout.md +0 -0
  293. /package/{docs/agent → agent}/navigation/ds-auth-layout.md +0 -0
  294. /package/{docs/agent → agent}/navigation/ds-breadcrumbs.md +0 -0
  295. /package/{docs/agent → agent}/navigation/ds-container.md +0 -0
  296. /package/{docs/agent → agent}/navigation/ds-divider.md +0 -0
  297. /package/{docs/agent → agent}/navigation/ds-inline.md +0 -0
  298. /package/{docs/agent → agent}/navigation/ds-page-footer.md +0 -0
  299. /package/{docs/agent → agent}/navigation/ds-page-header.md +0 -0
  300. /package/{docs/agent → agent}/navigation/ds-pagination.md +0 -0
  301. /package/{docs/agent → agent}/navigation/ds-sidenav-footer.md +0 -0
  302. /package/{docs/agent → agent}/navigation/ds-sidenav-group.md +0 -0
  303. /package/{docs/agent → agent}/navigation/ds-sidenav-item.md +0 -0
  304. /package/{docs/agent → agent}/navigation/ds-sidenav.md +0 -0
  305. /package/{docs/agent → agent}/navigation/ds-stack.md +0 -0
  306. /package/{docs/agent → agent}/navigation/ds-stepper.md +0 -0
  307. /package/{docs/agent → agent}/navigation/ds-tab.md +0 -0
  308. /package/{docs/agent → agent}/navigation/ds-tabs.md +0 -0
  309. /package/{docs/agent → agent}/navigation/ds-topbar.md +0 -0
  310. /package/{docs/agent → agent}/overlays/ds-bottom-sheet.md +0 -0
  311. /package/{docs/agent → agent}/overlays/ds-drawer.md +0 -0
  312. /package/{docs/agent → agent}/overlays/ds-info-hint.md +0 -0
  313. /package/{docs/agent → agent}/overlays/ds-menu.md +0 -0
  314. /package/{docs/agent → agent}/overlays/ds-modal-card.md +0 -0
  315. /package/{docs/agent → agent}/overlays/ds-modal.md +0 -0
  316. /package/{docs/agent → agent}/overlays/ds-popover.md +0 -0
  317. /package/{docs/agent → agent}/overlays/ds-tooltip-panel.md +0 -0
  318. /package/{docs/agent → agent}/platform/body-scroll-lock-service.md +0 -0
  319. /package/{docs/agent → agent}/platform/breadcrumbs-service.md +0 -0
  320. /package/{docs/agent → agent}/platform/ds-icon-registry.md +0 -0
  321. /package/{docs/agent → agent}/platform/ds-intl.md +0 -0
  322. /package/{docs/agent → agent}/platform/toast-service.md +0 -0
  323. /package/{docs/agent → agent}/surfaces/ds-accordion-item.md +0 -0
  324. /package/{docs/agent → agent}/surfaces/ds-accordion.md +0 -0
  325. /package/{docs/agent → agent}/surfaces/ds-card.md +0 -0
  326. /package/{docs/agent → agent}/tables/ds-cell-template.md +0 -0
  327. /package/{docs/agent → agent}/tables/ds-table-columns.md +0 -0
  328. /package/{docs/agent → agent}/tables/ds-table-export.md +0 -0
  329. /package/{docs/agent → agent}/tables/header-filter-directive.md +0 -0
package/components.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Index of the design system components, global helpers, tokens and icons. Use it as a single reference when migrating UI to DS.
4
4
  >
5
- > **If you are an agent, read `docs/agent/INDEX.md` instead of this file.** The same content
5
+ > **If you are an agent, read `agent/INDEX.md` instead of this file.** The same content
6
6
  > is generated there as an index plus one leaf per entry, so answering a question about one
7
7
  > component costs ~1.6 KB and the index, not the 58 KB of this catalogue. This file stays the
8
8
  > single place a human edits — the leaves are derived from it and a CI gate fails when they
@@ -169,7 +169,7 @@ Output: `(pressed): MouseEvent` — only fires when not disabled and not loading
169
169
  Content slots: default (label / leading or trailing icon), plus `[dsButtonSubtext]` for a projected second line. For icon-only actions use `<ds-icon-button>`.
170
170
  **Saying WHY a button is refused, and the two kinds of refusal.** A greyed control that does not say why is a dead end, and until 0.10.4 the only way to explain one was a tooltip — mouse-only. Which input to reach for is decided by whether the user can lift the refusal on this screen:
171
171
  - **Standing** (no permission, no integration — nothing here will change it): `disabledReason` beside `disabled`. The reason renders as a second line INSIDE the button, and setting it flips how the button is disabled — `aria-disabled="true"` instead of the native attribute, because a natively disabled button never takes focus and its description would never be announced (measured; Chrome's a11y tree reports name `"Approve invoice"`, description `"Needs the Finance role"`, state disabled). The click is swallowed in the handler instead, so `(pressed)` still never fires. Leave `disabledReason` unset and NOTHING changes: the native attribute stays, and so does every existing layout. Length is deliberately uncapped — the text wraps and the button grows.
172
- - **Temporary** (the form is not filled in yet): do NOT disable the button at all. Leave it live, judge validity in the submit handler, and carry the text UNDER the button with `hint` / `warning` / `error` — the same three inputs the fields take, resolved and rendered by the same `ds-field-message` row the fields use, with the same `messageIcon` and `reserveMessage` knobs and the same `DS_CONFIG.field.*` fallbacks. Those inputs live on an internal shared base class that `ButtonComponent` and every field extend, so the behaviour cannot drift apart. What it does NOT take is `errors` / `invalid` / `touched`: a button has no validation state of its own.
172
+ - **Temporary** (the form is not filled in yet): the button is enabled until the first error. Before the first submit it stays live and no error shows (not on blur, not while typing); a submit on an invalid form shows the errors inline, focuses the first invalid field and disables the button while the form stays invalid; from then on validation is live until the form is reset, so a fix enables the button and a new error disables it at once, with no second submit. Shape: `[disabled]="submitted() && invalid()"`, `submitted = signal(false)` set at the start of the submit handler and reset with the form; in flight bind `[loading]`, never the loading flag inside `[disabled]`. Carry the text UNDER the button with `hint` / `warning` / `error` — the same three inputs the fields take, resolved and rendered by the same `ds-field-message` row the fields use, with the same `messageIcon` and `reserveMessage` knobs and the same `DS_CONFIG.field.*` fallbacks. Those inputs live on an internal shared base class that `ButtonComponent` and every field extend, so the behaviour cannot drift apart. What it does NOT take is `errors` / `invalid` / `touched`: a button has no validation state of its own.
173
173
  Layout: a message-bearing button becomes a column (host class `with-message`), and because the host shrinks to fit, a message longer than the label widens the pair — button included, exactly as a field's control spans its own message. Without a message the host keeps the `inline-flex` box every existing layout was built against.
174
174
  Tokens: `--ds-button-bg-color`, `--ds-button-bg-color-hover`, `--ds-button-bg-color-active`, `--ds-button-bg-color-disabled`, `--ds-button-label-color`, `--ds-button-label-color-disabled`, `--ds-button-border-color`, `--ds-button-border-color-hover`, `--ds-button-border-color-active`, `--ds-button-border-color-disabled`, `--ds-button-border-width`, `--ds-button-radius`, `--ds-button-pressed-shadow`, `--ds-button-shadow`, `--ds-button-shadow-hover`. The focus ring is not a button token — set `--focus-ring-color`, `--focus-ring-width` or `--focus-ring-offset` on the button's own scope. The last two are the REST and hover shadow, both `none` by default — before them the only way to give a button a resting shadow was a deep selector into its inner `<button>`. `-shadow-hover` falls back to `-shadow`, so setting the resting one alone keeps the button steady under the pointer; focus and pressed keep their own hooks and still win while those states are on. `-border-color-hover` falls back to the rest border and `-border-color-active` to the hover one, so an outline button's edge stays put until one of them is set. For `variant="solid"`, `-bg-color-hover` / `-bg-color-active` / `-pressed-shadow` default to a `color-mix()` derivation of the resolved fill (88 % / 76 % + black — the theme's hover/pressed recipe), so overriding the fill alone retints the whole state set; tonal, outline, ghost and text keep explicit ramp defaults, so a full retint there means setting the state tokens too.
175
175
 
@@ -404,7 +404,7 @@ All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `
404
404
  #### `<ds-time-picker>` — `TimePickerComponent`
405
405
 
406
406
  <!-- inputs:ds-time-picker -->
407
- All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string | TimeRangeValue | null = null`, `mode: 'single' | 'range' = 'single'`, `minuteStep: number = 1`, `minTime: string | null = null`, `maxTime: string | null = null`, `disabledTime: ((time: string) => boolean) | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `fullWidth: boolean = false`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `success: string = ''`, `placeholder: string = '--:--'`, `clearable: boolean = false`, `ariaLabel: string | null = null`, `format: '24h' | '12h' = null`, `staticPreview: boolean = false`
407
+ All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string | TimeRangeValue | null = null`, `mode: 'single' | 'range' = 'single'`, `minuteStep: number = 1`, `minTime: string | null = null`, `maxTime: string | null = null`, `disabledTime: ((time: string) => boolean) | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `fullWidth: boolean = false`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `success: string = ''`, `placeholder: string = '--:--'`, `clearable: boolean = false`, `ariaLabel: string | null = null`, `format: '24h' | '12h' = null`, `loop: 'auto' | 'always' | 'never' = null`, `staticPreview: boolean = false`
408
408
  <!-- /inputs -->
409
409
 
410
410
  #### `<ds-filter-bar>` — `FilterBarComponent`
@@ -501,7 +501,7 @@ Inputs: `variant: 'none' | 'loading' | 'error' | 'locked' = 'none'`, `icon: Icon
501
501
  Content slot: `[actions]` — CTA buttons / links.
502
502
 
503
503
  <!-- inputs:ds-empty-state -->
504
- All inputs: `variant: 'none' | 'loading' | 'error' | 'locked' | 'success' = 'none'`, `icon: IconName | null = null`, `title: string = ''`, `body: string = ''`
504
+ All inputs: `variant: 'none' | 'loading' | 'error' | 'locked' | 'success' = 'none'`, `icon: IconName | null = null`, `title: string = ''`, `titleOverflow: 'wrap' | 'clip' = 'wrap'`, `body: string = ''`
505
505
  <!-- /inputs -->
506
506
 
507
507
  #### `<ds-banner>` — `BannerComponent`
@@ -839,11 +839,11 @@ All inputs: `align: 'start' | 'end' = 'start'`, `placement: 'top' | 'bottom' | '
839
839
 
840
840
  #### `[dsTooltip]` — `TooltipDirective`
841
841
  Attribute directive, applied by `dsTooltip` or by `dsTooltipWhenClipped` alone. Apply to any focusable element; with `dsTooltipWhenClipped` also to a label that cannot take focus.
842
- Inputs: `dsTooltip: string | TemplateRef<unknown> = ''` (the text; empty disables; `**bold**` renders bold, `\*\*` is a literal `**`, nothing else is parsed. A `TemplateRef` is rendered in the panel as given, with no `**bold**` parsing and no lead text; keep it non-interactive), `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = 'top'`, `dsTooltipDelay: number = 120` (ms), `dsTooltipArrow: boolean = true` (draws the arrow that points at the host; `[dsTooltipArrow]="false"` leaves it out), `dsTooltipWhenClipped: boolean | string = false` (open only while the host shows less text than it holds; without a `dsTooltip` it discloses the tested text. A selector in place of a boolean aims the test and the text at the element it matches inside the host, so a whole row can be the hover area for the label inside it: `<button dsTooltip dsTooltipWhenClipped=".label"><span class="label">…</span></button>`; resolved on every open, and while nothing matches no clipped tip opens), `dsTooltipPinOnClick: boolean = false` (opens with no delay; a click on the host keeps the tip open after the pointer leaves until a click outside, `Escape` or blur, and a second click closes it; without it a click closes the tip. While pinned the host carries `data-ds-tooltip-pinned`. Every pinned trigger of the library shows one cue, `--accent-strong` ink with no fill, plus a 2px solid accent underline on a text trigger; a pinned text trigger thickens the line to 3px on hover and takes the `--surface-muted` press fill on press, a pinned icon takes a `--surface-muted` circle on hover and a `--border-default` circle on press; give your own trigger the same cue with `@use 'styles/pinned' as pinned;` and `&[data-ds-tooltip-pinned] { @include pinned.cue(); }`. For info and definition triggers only, never on a control whose click acts)
842
+ Inputs: `dsTooltip: string | TemplateRef<unknown> = ''` (the text; empty disables; `**bold**` renders bold, `\*\*` is a literal `**`, nothing else is parsed. A `TemplateRef` is rendered in the panel as given, with no `**bold**` parsing and no lead text; keep it non-interactive), `dsTooltipConfig: DsTooltipConfig | null = null` (`{ placement?, delay?, arrow?, pinOnClick?, whenClipped? }`: `placement: 'top' | 'bottom' | 'left' | 'right'`, default `'top'`; `delay` in ms, default `120`; `arrow`, default `true`, draws the arrow that points at the host; `pinOnClick`, default `false`, as below; `whenClipped` as `dsTooltipWhenClipped`, which wins when set. An unset field falls back to `DsConfig.tooltip`, then the default: `[dsTooltipConfig]="{ placement: 'right', arrow: false }"`), `dsTooltipWhenClipped: boolean | string = false` (open only while the host shows less text than it holds; without a `dsTooltip` it discloses the tested text. A selector in place of a boolean aims the test and the text at the element it matches inside the host, so a whole row can be the hover area for the label inside it: `<button dsTooltip dsTooltipWhenClipped=".label"><span class="label">…</span></button>`; resolved on every open, and while nothing matches no clipped tip opens), `pinOnClick: true` in `dsTooltipConfig` (opens with no delay; a click on the host keeps the tip open after the pointer leaves until a click outside, `Escape` or blur, and a second click closes it; without it a click closes the tip. While pinned the host carries `data-ds-tooltip-pinned`. Every pinned trigger of the library shows one cue, `--accent-strong` ink with no fill, plus a 2px solid accent underline on a text trigger; a pinned text trigger thickens the line to 3px on hover and takes the `--surface-muted` press fill on press, a pinned icon takes a `--surface-muted` circle on hover and a `--border-default` circle on press; give your own trigger the same cue with `@use 'styles/pinned' as pinned;` and `&[data-ds-tooltip-pinned] { @include pinned.cue(); }`. For info and definition triggers only, never on a control whose click acts). Deprecated, each still winning over `dsTooltipConfig` while set: `dsTooltipPlacement`, `dsTooltipDelay`, `dsTooltipArrow`, `dsTooltipPinOnClick`
843
843
  Renders `<ds-tooltip-panel>` via CDK overlay on hover / focus; hides on leave / blur. A line break in the text shows as a line break; runs of spaces collapse. A `dsTooltip` shows exactly its text; only a `dsDefinitionTerm` leads with its own text, in bold, then a line break, unless the tip already contains that text. 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 `dsTooltipWhenClipped` host that takes focus itself opens on keyboard focus and closes on its own 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 `dsTooltipWhenClipped` host that no keyboard path reaches - not focusable, inside no control or widget role, holding no control - takes `tabindex="0"` while it is clipped and loses it once its text fits and it is not focused; a `tabindex` you set is never touched, and `tabindex="-1"` keeps a clipped value out of the Tab order. 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.
844
844
 
845
845
  <!-- inputs:[dsTooltip] -->
846
- All inputs: `dsTooltip: string = ''`, `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = 'top'`, `dsTooltipDelay: number = 120`, `dsTooltipArrow: boolean = true`, `dsTooltipWhenClipped: boolean = false`, `dsTooltipPinOnClick: boolean = false`, `dsTooltipTextSelector: string | null = null`
846
+ All inputs: `dsTooltip: string | TemplateRef<unknown> = ''`, `dsTooltipConfig: DsTooltipConfig | null = null`, `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' | null = null`, `dsTooltipDelay: number | null = null`, `dsTooltipArrow: boolean | null = null`, `dsTooltipWhenClipped: boolean | string = false`, `dsTooltipPinOnClick: boolean | null = null`
847
847
  <!-- /inputs -->
848
848
 
849
849
  #### `<ds-info-hint>` — `InfoHintComponent`
@@ -876,7 +876,7 @@ All inputs: `text: string = ''`, `content: TemplateRef<unknown> | null = null`,
876
876
  Directive, on any element: a term inside running text or a label that carries its definition, `<span dsDefinitionTerm="Left the journey before the goal step.">exited</span>`. The text in `dsDefinitionTerm` is the tooltip; no `dsTooltip` is needed. The term keeps the surrounding text style with a dotted underline in `--text-tertiary`, takes the focus ring, and shows the definition on hover and focus; a click pins it until a click outside, `Escape` or blur. On a host other than `<button>` it adds `tabindex="0"`, `role="button"`, and `Enter` / `Space` act as a click; a `<button>` gets `type="button"` and its native behaviour. It brings its own styles (`.ds-definition-term`); no stylesheet import is needed. Hover makes the underline solid in `--text-secondary`, a press (a click held, or `Enter` / `Space` held on a non-button) tints the term with `--surface-muted`, and while pinned it turns `--accent-strong` with a 2px solid accent underline, 3px on hover and with the `--surface-muted` fill while pressed; no state changes its size. `[pinOnClick]="false"` where the click already acts, such as a sort button. Also takes `dsTooltipPlacement`.
877
877
 
878
878
  <!-- inputs:[dsDefinitionTerm] -->
879
- All inputs: `pinOnClick: boolean = true`, `dsDefinitionTerm: string | TemplateRef<unknown> = ''`, `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = 'top'`
879
+ All inputs: `pinOnClick: boolean = true`, `dsDefinitionTerm: string | TemplateRef<unknown> = ''`, `dsTooltipPlacement: 'top' | 'bottom' | 'left' | 'right' = null`
880
880
  <!-- /inputs -->
881
881
 
882
882
  #### `<ds-menu>` + `<ds-menu-item>` — `MenuComponent`, `MenuItemComponent`
@@ -910,7 +910,7 @@ Footer pager: `pageSizeOptions`, `showPageSize`, `showLabel`, `paginationSize: D
910
910
  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.)
911
911
 
912
912
  <!-- inputs:ds-table -->
913
- 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`, `layout: 'fixed' | 'auto' = 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<{
913
+ 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`, `printAllRows: boolean = false`, `printHeading: string | null = null`, `printHeadingNote: string | null = null`, `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`, `layout: 'fixed' | 'auto' = 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<{
914
914
  $implicit: unknown;
915
915
  row: unknown;
916
916
  }> | null = null`
@@ -964,7 +964,7 @@ Rhythm: a label belongs to the bar under it, so `--ds-bar-chart-label-gap` is de
964
964
  Tokens: `--ds-bar-chart-track-color`, `--ds-bar-chart-track-height`, `--ds-bar-chart-row-gap`, `--ds-bar-chart-label-gap`, `--ds-bar-chart-label-column-max-width`, `--ds-bar-chart-child-fill-opacity`, `--ds-bar-chart-divider-color`.
965
965
 
966
966
  <!-- inputs:ds-bar-chart -->
967
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `data: readonly BarChartRow[] = []`, `max: number | null = null`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `partOfWhole: boolean = false`, `showPercent: boolean = true`, `labelPosition: 'top' | 'start' = 'top'`, `dimOthers: boolean = false`, `highlighted: string | null = null`, `staggerMs: number = 40`, `tooltip: 'item' | 'none' = 'item'`
967
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `data: readonly BarChartRow[] = []`, `max: number | null = null`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `partOfWhole: boolean = false`, `showPercent: boolean = true`, `labelPosition: 'top' | 'start' = 'top'`, `dimOthers: boolean = false`, `highlighted: string | null = null`, `staggerMs: number = 40`, `tooltip: 'item' | 'none' = 'item'`
968
968
  <!-- /inputs -->
969
969
 
970
970
  #### `<ds-column-chart>` — `ColumnChartComponent`
@@ -982,7 +982,7 @@ Legend: `legendFilters` lets the legend hide series through the two-way `hiddenS
982
982
  Tokens: `--ds-column-chart-plot-height`, `--ds-column-chart-column-width` (share of its own cell), `--ds-column-chart-column-max-width` (the cap that stops a five-column chart drawing slabs wider than their labels), `--ds-column-chart-column-gap`, `--ds-column-chart-grid-line-color`, `--ds-column-chart-value-space` (headroom for the value printed above a full-height column), `--ds-column-chart-axis-width` (the tick-label column; widen it for a `valueFormat` that prints longer ticks, which are clipped rather than wrapped). Reference lines take `--ds-chart-threshold-color`, `--ds-chart-threshold-band-opacity`, `--ds-chart-threshold-dashed-pattern` and `--ds-chart-threshold-dotted-pattern`.
983
983
 
984
984
  <!-- inputs:ds-column-chart -->
985
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `data: readonly ColumnChartPoint[] | readonly ColumnChartSeries[] = []`, `stack: 'none' | 'grouped' | 'stacked' | 'normalized' = 'none'`, `thresholds: readonly ChartThreshold[] = []`, `showValues: boolean = true`, `skeletonCount: number`, `tickCount: number = 5`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `partOfWhole: boolean = false`, `dimOthers: boolean = false`, `staggerMs: number = 40`, `tooltip: 'item' | 'none' = 'item'`, `hiddenSeries: readonly string[] = []`, `rescaleOnHide: boolean = true`, `legendFilters: boolean = false`, `legendMode: 'toggle' | 'isolate' = 'isolate'`, `selectRange: boolean = false`, `showAxisReadout: boolean = true`, `tooltipAnchor: 'mark' | 'cell' = 'mark'`
985
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `data: readonly ColumnChartPoint[] | readonly ColumnChartSeries[] = []`, `stack: 'none' | 'grouped' | 'stacked' | 'normalized' = 'none'`, `thresholds: readonly ChartThreshold[] = []`, `showValues: boolean = true`, `skeletonCount: number`, `tickCount: number = 5`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `partOfWhole: boolean = false`, `dimOthers: boolean = false`, `staggerMs: number = 40`, `tooltip: 'item' | 'none' = 'item'`, `hiddenSeries: readonly string[] = []`, `rescaleOnHide: boolean = true`, `legendFilters: boolean = false`, `legendMode: 'toggle' | 'isolate' = 'isolate'`, `selectRange: boolean = false`, `showAxisReadout: boolean = true`, `tooltipAnchor: 'mark' | 'cell' = 'mark'`
986
986
  <!-- /inputs -->
987
987
 
988
988
  #### `<ds-pie-chart>` — `PieChartComponent`
@@ -1002,7 +1002,7 @@ Behaviour: percentages use largest-remainder rounding, so a legend's shares add
1002
1002
  Tokens: `--ds-pie-chart-size`, `--ds-pie-chart-gap`, `--ds-pie-chart-swatch-size`, `--ds-pie-chart-legend-row-gap`, `--ds-pie-chart-legend-row-height`, `--ds-chart-legend-hover-bg-color` and `--ds-chart-legend-hover-text-color` (shared with every chart legend), `--ds-pie-chart-outline-width` (the placeholder ring drawn when there is no data and when every slice is zero).
1003
1003
 
1004
1004
  <!-- inputs:ds-pie-chart -->
1005
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `data: readonly PieChartSlice[] = []`, `centerValue: string | null = null`, `centerLabel: string | null = null`, `centerCompact: boolean = true`, `centerPlacement: 'inside' | 'below' = 'inside'`, `showHoverCenter: boolean = true`, `legend: 'end' | 'bottom' | 'none' = 'end'`, `skeletonCount: number`, `maxSlices: number | null = null`, `otherLabel: string | null = null`, `innerRadius: number = 0.68`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `partOfWhole: boolean = true`, `dimOthers: boolean = false`, `tooltip: 'item' | 'none' = 'item'`
1005
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `data: readonly PieChartSlice[] = []`, `centerValue: string | null = null`, `centerLabel: string | null = null`, `centerCompact: boolean = true`, `centerPlacement: 'inside' | 'below' = 'inside'`, `showHoverCenter: boolean = true`, `legend: 'end' | 'bottom' | 'none' = 'end'`, `skeletonCount: number`, `maxSlices: number | null = null`, `otherLabel: string | null = null`, `innerRadius: number = 0.68`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `partOfWhole: boolean = true`, `dimOthers: boolean = false`, `tooltip: 'item' | 'none' = 'item'`
1006
1006
  <!-- /inputs -->
1007
1007
 
1008
1008
  #### `<ds-funnel-chart>` — `FunnelChartComponent`
@@ -1019,7 +1019,7 @@ Colour: the stages are one quantity draining, not N categories, so they take the
1019
1019
  Tokens: `--ds-funnel-chart-stage-height`, `--ds-funnel-chart-stage-gap`, `--ds-funnel-chart-row-gap`.
1020
1020
 
1021
1021
  <!-- inputs:ds-funnel-chart -->
1022
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `data: readonly FunnelChartStage[] = []`, `shape: 'taper' | 'width' | 'area' = 'area'`, `showTable: boolean = true`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `drop: 'relative' | 'absolute' | 'none' = 'relative'`, `skeletonCount: number`, `dimOthers: boolean = false`, `staggerMs: number = 60`, `tooltip: 'item' | 'none' = 'item'`
1022
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `data: readonly FunnelChartStage[] = []`, `shape: 'taper' | 'width' | 'area' = 'area'`, `showTable: boolean = true`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `drop: 'relative' | 'absolute' | 'none' = 'relative'`, `skeletonCount: number`, `dimOthers: boolean = false`, `staggerMs: number = 60`, `tooltip: 'item' | 'none' = 'item'`
1023
1023
  <!-- /inputs -->
1024
1024
 
1025
1025
  #### `<ds-heatmap-chart>` — `HeatmapChartComponent`
@@ -1037,7 +1037,7 @@ Scale marker: once the pointer has rested on a cell for `--ds-motion-chart-scale
1037
1037
  Tokens: `--ds-heatmap-chart-cell-size`, `--ds-heatmap-chart-cell-gap`, `--ds-heatmap-chart-cell-radius`, `--ds-heatmap-chart-label-color`, `--ds-heatmap-chart-label-font-size`, `--ds-heatmap-chart-missing-color`, `--ds-heatmap-chart-focus-color`, `--ds-heatmap-chart-focus-width`.
1038
1038
 
1039
1039
  <!-- inputs:ds-heatmap-chart -->
1040
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `columns: readonly string[] = []`, `data: readonly HeatmapChartRow[] = []`, `min: number | null = null`, `max: number | null = null`, `showValues: boolean = false`, `showScaleMarker: boolean = true`, `dimOthers: boolean = false`, `tooltip: 'item' | 'none' = 'item'`, `staggerMs: number = 40`
1040
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `columns: readonly string[] = []`, `data: readonly HeatmapChartRow[] = []`, `min: number | null = null`, `max: number | null = null`, `showValues: boolean = false`, `showScaleMarker: boolean = true`, `dimOthers: boolean = false`, `tooltip: 'item' | 'none' = 'item'`, `staggerMs: number = 40`
1041
1041
  <!-- /inputs -->
1042
1042
 
1043
1043
  #### `<ds-scatter-chart>` — `ScatterChartComponent`
@@ -1055,7 +1055,7 @@ The budget is a gate, not a paragraph: the decimator is fed 100 000 readings and
1055
1055
  Tokens: `--ds-scatter-chart-grid-line-color`, `--ds-scatter-chart-axis-line-color`, `--ds-scatter-chart-axis-label-color`, `--ds-scatter-chart-axis-font-size`, `--ds-scatter-chart-dot-radius`, `--ds-scatter-chart-dot-opacity`, `--ds-scatter-chart-focus-color`, `--ds-scatter-chart-focus-width`.
1056
1056
 
1057
1057
  <!-- inputs:ds-scatter-chart -->
1058
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `data: readonly ScatterChartSeries[] = []`, `xLabel: string | null = null`, `yLabel: string | null = null`, `decimator: 'minMax' | 'lttb' | 'none' = 'minMax'`, `tickCount: number = 5`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `tooltip: 'item' | 'none' = 'item'`, `dimOthers: boolean = false`, `showNearestPoint: boolean = true`, `nearestRadius: number | null = null`, `staggerMs: number = 40`
1058
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `data: readonly ScatterChartSeries[] = []`, `xLabel: string | null = null`, `yLabel: string | null = null`, `decimator: 'minMax' | 'lttb' | 'none' = 'minMax'`, `tickCount: number = 5`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `tooltip: 'item' | 'none' = 'item'`, `dimOthers: boolean = false`, `showNearestPoint: boolean = true`, `nearestRadius: number | null = null`, `staggerMs: number = 40`
1059
1059
  <!-- /inputs -->
1060
1060
 
1061
1061
  #### `<ds-waterfall-chart>` — `WaterfallChartComponent`
@@ -1072,7 +1072,7 @@ Built on `<ds-chart>` with a column series and a waterfall-specific mark project
1072
1072
  Tokens: `--ds-waterfall-chart-connector-color`.
1073
1073
 
1074
1074
  <!-- inputs:ds-waterfall-chart -->
1075
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `data: readonly WaterfallChartBar[] = []`, `showValues: boolean = true`, `showConnectors: boolean = true`, `dimOthers: boolean = false`, `showAxisReadout: boolean = true`, `tooltip: 'item' | 'none' = 'item'`, `tickCount: number = 5`, `skeletonCount: number`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `staggerMs: number = 40`
1075
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `data: readonly WaterfallChartBar[] = []`, `showValues: boolean = true`, `showConnectors: boolean = true`, `dimOthers: boolean = false`, `showAxisReadout: boolean = true`, `tooltip: 'item' | 'none' = 'item'`, `tickCount: number = 5`, `skeletonCount: number`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `staggerMs: number = 40`
1076
1076
  <!-- /inputs -->
1077
1077
 
1078
1078
  #### `<ds-line-chart>` — `LineChartComponent`
@@ -1089,7 +1089,7 @@ Colour: series ARE different things, so the categorical palette applies — `--d
1089
1089
  Tokens: `--ds-line-chart-plot-height`, `--ds-line-chart-line-width`, `--ds-line-chart-dot-radius`, `--ds-line-chart-area-opacity`, `--ds-line-chart-swatch-size`, `--ds-line-chart-grid-line-color`, `--ds-line-chart-axis-line-color`, `--ds-line-chart-axis-label-color`, `--ds-line-chart-axis-font-size`, `--ds-line-chart-annotation-color`, `--ds-line-chart-annotation-font-size`, `--ds-line-chart-annotation-font-weight`, `--ds-line-chart-annotation-halo-color`, `--ds-line-chart-annotation-halo-width`.
1090
1090
 
1091
1091
  <!-- inputs:ds-line-chart -->
1092
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `categories: readonly string[] = []`, `series: readonly LineChartSeries[] = []`, `yAxisMode: 'aligned' | 'exact' | 'dual-grid' | 'split' = 'aligned'`, `showMarkers: boolean = true`, `outline: boolean = true`, `annotations: readonly LineChartAnnotation[] = []`, `dimOthers: boolean = false`, `gaps: 'break' | 'zero' = 'break'`, `curve: 'linear' | 'step' | 'smooth' = 'linear'`, `stack: 'none' | 'stacked' | 'normalized' = 'none'`, `yAxisLabel: string | null = null`, `secondaryAxisLabel: string | null = null`, `tickCount: number = 5`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `max: number | null = null`, `maxSecondary: number | null = null`, `hiddenSeries: readonly string[] = []`, `rescaleOnHide: boolean = true`, `legendFilters: boolean = false`, `legendMode: 'toggle' | 'isolate' = 'isolate'`, `noVisibleSeriesText: string | null = null`, `patterns: boolean = false`, `selectRange: boolean = false`, `showAxisReadout: boolean = true`, `showChange: boolean = false`, `staggerMs: number = 40`, `tooltip: 'item' | 'axis' | 'none' = 'axis'`, `tooltipAnchor: 'reading' | 'pointer' = 'reading'`
1092
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `categories: readonly string[] = []`, `series: readonly LineChartSeries[] = []`, `yAxisMode: 'aligned' | 'exact' | 'dual-grid' | 'split' = 'aligned'`, `showMarkers: boolean = true`, `outline: boolean = true`, `annotations: readonly LineChartAnnotation[] = []`, `dimOthers: boolean = false`, `gaps: 'break' | 'zero' = 'break'`, `curve: 'linear' | 'step' | 'smooth' = 'linear'`, `stack: 'none' | 'stacked' | 'normalized' = 'none'`, `yAxisLabel: string | null = null`, `secondaryAxisLabel: string | null = null`, `tickCount: number = 5`, `dataTable: 'toggle' | 'visible' | 'none' = null`, `max: number | null = null`, `maxSecondary: number | null = null`, `hiddenSeries: readonly string[] = []`, `rescaleOnHide: boolean = true`, `legendFilters: boolean = false`, `legendMode: 'toggle' | 'isolate' = 'isolate'`, `noVisibleSeriesText: string | null = null`, `patterns: boolean = false`, `selectRange: boolean = false`, `showAxisReadout: boolean = true`, `showChange: boolean = false`, `staggerMs: number = 40`, `tooltip: 'item' | 'axis' | 'none' = 'axis'`, `tooltipAnchor: 'reading' | 'pointer' = 'reading'`
1093
1093
  <!-- /inputs -->
1094
1094
 
1095
1095
  #### Chart defaults — what `DS_CONFIG` decides once
@@ -1128,7 +1128,7 @@ All inputs: `columns: readonly string[] = []`, `rows: readonly ChartDataRow[] =
1128
1128
  #### `<ds-chart>` — `ChartComponent`
1129
1129
 
1130
1130
  <!-- inputs:ds-chart -->
1131
- All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `categories: readonly string[] = []`, `skeletonCount: number`, `tickCount: number = 5`, `min: number | null = null`, `max: number | null = null`, `cursor: 'none' | 'category' | 'auto' = 'auto'`, `rescaleOnHide: boolean = true`, `maxSecondary: number | null = null`, `plotHeight: number = 240`, `axisGutter: number = 46`, `valueSpace: number = 20`, `secondaryAxisMode: 'aligned' | 'exact' | 'dual-grid' | 'split' = 'aligned'`, `axisColor: string | null = null`, `secondaryAxisColor: string | null = null`, `axisLabel: string | null = null`, `secondaryAxisLabel: string | null = null`, `selectRange: boolean = false`, `showAxisReadout: boolean = true`, `tooltipTemplate: TemplateRef<{
1131
+ All inputs: `frame: 'auto' | 'none' = null`, `caption: string | null = null`, `summary: string | null = null`, `loading: boolean = false`, `error: boolean = false`, `emptyText: string | null = null`, `errorText: string | null = null`, `valueFormat: ChartValueFormat | null = null`, `interactive: boolean = false`, `tooltipSwatches: boolean | null = null`, `tooltipLingerMs: number | null = null`, `pinOnClick: boolean | null = null`, `highlightActive: boolean | null = null`, `categories: readonly string[] = []`, `skeletonCount: number`, `tickCount: number = 5`, `min: number | null = null`, `max: number | null = null`, `cursor: 'none' | 'category' | 'auto' = 'auto'`, `rescaleOnHide: boolean = true`, `maxSecondary: number | null = null`, `plotHeight: number = 240`, `axisGutter: number = 46`, `valueSpace: number = 20`, `secondaryAxisMode: 'aligned' | 'exact' | 'dual-grid' | 'split' = 'aligned'`, `axisColor: string | null = null`, `secondaryAxisColor: string | null = null`, `axisLabel: string | null = null`, `secondaryAxisLabel: string | null = null`, `selectRange: boolean = false`, `showAxisReadout: boolean = true`, `tooltipTemplate: TemplateRef<{
1132
1132
  $implicit: ChartTooltipContext;
1133
1133
  }> | null = null`, `tooltipExtraGap: number = 0`
1134
1134
  <!-- /inputs -->
@@ -1228,7 +1228,7 @@ bootstrapApplication(AppComponent, {
1228
1228
 
1229
1229
  `DsConfig` shape (the exported `DsConfig` type is the full contract):
1230
1230
 
1231
- Eighteen sections and one top-level `locale`. The exported `DsConfig` type is the source of truth — each key carries its own
1231
+ Nineteen sections and one top-level `locale`. The exported `DsConfig` type is the source of truth — each key carries its own
1232
1232
  doc comment there, including why it is an app-level decision at all.
1233
1233
 
1234
1234
  ```ts
@@ -1254,6 +1254,7 @@ interface DsConfig {
1254
1254
  breadcrumbs?: { separator?: IconName; clickable?: boolean };
1255
1255
  datePicker?: { locale?: string; dateFormat?: string; firstDayOfWeek?: number };
1256
1256
  timePicker?: { format?: '24h' | '12h' };
1257
+ tooltip?: { placement?: TooltipPlacement; delay?: number; arrow?: boolean; pinOnClick?: boolean }; // every dsTooltip
1257
1258
  avatar?: { initials?: (name: string) => string };
1258
1259
  brand?: { name?: string; logoLetter?: string; tagline?: string };
1259
1260
  }
package/design-system.md CHANGED
@@ -370,7 +370,7 @@ follows.
370
370
  ## 9. Page composition — where things go
371
371
 
372
372
  The grid itself (tiers, spans, the canonical 8+4 / 6+6 / 9+3 splits, the forbidden 7+5, the
373
- 720px prose cap) is specified in `docs/agent/foundations/grid.md`. This section is the layer
373
+ 720px prose cap) is specified in `agent/foundations/grid.md`. This section is the layer
374
374
  above it: which region holds what, and in which order.
375
375
 
376
376
  ### The page is four regions, and three of them are components
@@ -431,7 +431,7 @@ most placement questions before they come up:
431
431
  | --- | --- | --- |
432
432
  | **List + filters** | header · filter-bar · `ds-table` (or a card list) · `ds-pagination` | Filters above the data, pagination below it, both full width |
433
433
  | **Record detail** | header with `[meta]` · 8+4 grid — main left, meta sidebar right | The sidebar is metadata, never navigation |
434
- | **Form** | header · one `ds-card` per section · actions in the last card | One primary; submit gates on presence, never on validity |
434
+ | **Form** | header · one `ds-card` per section · actions in the last card | One primary; submit stays enabled until the first error |
435
435
  | **Dashboard** | header · a row of `ds-stat` tiles · charts or tables below | Tiles are one row that wraps, not a grid you hand-place |
436
436
  | **Empty / error** | `ds-empty-state` centred in the region that would have held the data | It replaces the region, not the page — header and filters stay |
437
437
 
@@ -673,6 +673,13 @@
673
673
  "since": "0.7.0",
674
674
  "itemId": "0.7.0#shell-scroll-service-to-layout-scroll-service"
675
675
  },
676
+ {
677
+ "name": "SortDir",
678
+ "replacement": "SortDirection",
679
+ "renamed": true,
680
+ "since": "0.13.4",
681
+ "itemId": "0.13.4#table-sort-dir-type-spelled-out"
682
+ },
676
683
  {
677
684
  "name": "SpinnerSize",
678
685
  "replacement": "DsSize",
@@ -38,11 +38,11 @@ class AccordionItemComponent {
38
38
  this.expanded.set(false);
39
39
  }
40
40
  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", "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: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_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"] }] });
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", "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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),: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
42
  }
43
43
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionItemComponent, decorators: [{
44
44
  type: Component,
45
- 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: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_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"] }]
45
+ 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),: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
46
  }], 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
47
 
48
48
  class AccordionComponent {
@@ -67,7 +67,7 @@ class AccordionComponent {
67
67
  provide: ACCORDION,
68
68
  useExisting: forwardRef(() => AccordionComponent),
69
69
  },
70
- ], queries: [{ propertyName: "items", predicate: AccordionItemComponent, isSignal: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: ["@layer ds-component-base{:host{box-sizing:border-box}}:host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] });
70
+ ], queries: [{ propertyName: "items", predicate: AccordionItemComponent, isSignal: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":where(:host){box-sizing:border-box}:host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] });
71
71
  }
72
72
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionComponent, decorators: [{
73
73
  type: Component,
@@ -76,7 +76,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
76
76
  provide: ACCORDION,
77
77
  useExisting: forwardRef(() => AccordionComponent),
78
78
  },
79
- ], styles: ["@layer ds-component-base{:host{box-sizing:border-box}}:host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] }]
79
+ ], styles: [":where(:host){box-sizing:border-box}:host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] }]
80
80
  }], 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 }] }] } });
81
81
 
82
82
  /**
@@ -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';\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 notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\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=\"…\"` also stays as the global attribute, giving the whole host a native tooltip.\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; `expanded` is left 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 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 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 @layer ds-component-base {\n :host {\n box-sizing: border-box;\n }\n }\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n /* glyph-clip-guard: rounds the corners; every head and body pads its text off this edge */\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 closes the 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":";;;;MAea,SAAS,GAAG,IAAI,cAAc,CAAoB,WAAW;;ACD1E,IAAI,MAAM,GAAG,CAAC;MAYD,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,OAAO,MAAM,MAAM,kFACxD;AACkB,IAAA,WAAW,GAAG,QAAQ,CAAW,MAClD,IAAI,CAAC,WAAW,EAAE,GAAG,aAAa,GAAG,cAAc,kFACpD;IAEO,gBAAgB,GAAG,KAAK;AAEhC,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;AACV,YAA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AA,CAAA,EAAA,EAAA,CAAA;;ACpDjE;;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 notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\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=\"…\"` also stays as the global attribute, giving the whole host a native tooltip.\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; `expanded` is left 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 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 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 :where(:host) {\n box-sizing: border-box;\n }\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n /* glyph-clip-guard: rounds the corners; every head and body pads its text off this edge */\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 closes the 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":";;;;MAea,SAAS,GAAG,IAAI,cAAc,CAAoB,WAAW;;ACD1E,IAAI,MAAM,GAAG,CAAC;MAYD,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,OAAO,MAAM,MAAM,kFACxD;AACkB,IAAA,WAAW,GAAG,QAAQ,CAAW,MAClD,IA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AClD,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,0KAAA,CAAA,EAAA;2RASwC,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AClDjE;;AAEG;;;;"}
@@ -64,11 +64,11 @@ class AlertComponent {
64
64
  this.closed.emit();
65
65
  }
66
66
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
67
- 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\n #alert\n [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(alert)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{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-fade-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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.alert .a-close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.alert .a-close{position:relative}.alert .a-close:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.alert .a-close:focus-visible{outline-style:none}.alert .a-close:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.alert .a-close{color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
67
+ 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\n #alert\n [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(alert)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}: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-fade-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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.alert .a-close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.alert .a-close{position:relative}.alert .a-close:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.alert .a-close:focus-visible{outline-style:none}.alert .a-close:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.alert .a-close{color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
68
68
  }
69
69
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, decorators: [{
70
70
  type: Component,
71
- args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n #alert\n [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(alert)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{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-fade-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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.alert .a-close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.alert .a-close{position:relative}.alert .a-close:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.alert .a-close:focus-visible{outline-style:none}.alert .a-close:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.alert .a-close{color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}\n"] }]
71
+ args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n #alert\n [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(alert)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}: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-fade-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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.alert .a-close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.alert .a-close{position:relative}.alert .a-close:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.alert .a-close:focus-visible{outline-style:none}.alert .a-close:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.alert .a-close{color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}\n"] }]
72
72
  }], 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: [{
73
73
  type: HostBinding,
74
74
  args: ['attr.role']
@@ -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 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 { moveFocusOutOf } from '@ids-group-ltd/ids-design-system/components';\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 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`. */\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 // The host app removes the element on `closed`, taking the focused close button with it.\n protected onDismiss(leaving: HTMLElement): void {\n moveFocusOutOf(leaving, leaving.ownerDocument.body);\n this.closed.emit();\n }\n}\n","<div\n #alert\n [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(alert)\">\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":";;;;;;MA6Ba,cAAc,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,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;AACgD;AACvC,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;AAEgB,IAAA,QAAQ,GAAG,QAAQ,CAAqB,MAAK;AAC5D,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,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,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,WAAA,EAAA,eAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC7B3B,ssBAsCA,EAAA,MAAA,EAAA,CAAA,g+HAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDfY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAMZ,cAAc,EAAA,UAAA,EAAA,CAAA;kBAT1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,IAAA,EAGlB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAA,aAAA,EACjB,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,ssBAAA,EAAA,MAAA,EAAA,CAAA,g+HAAA,CAAA,EAAA;;sBAkCxC,WAAW;uBAAC,WAAW;;sBAKvB,WAAW;uBAAC,gBAAgB;;;AElE/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 { moveFocusOutOf } from '@ids-group-ltd/ids-design-system/components';\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 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`. */\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 // The host app removes the element on `closed`, taking the focused close button with it.\n protected onDismiss(leaving: HTMLElement): void {\n moveFocusOutOf(leaving, leaving.ownerDocument.body);\n this.closed.emit();\n }\n}\n","<div\n #alert\n [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(alert)\">\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":";;;;;;MA6Ba,cAAc,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,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;AACgD;AACvC,IAAA,QAAQ,GAAG,KAAK,CAA0B,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,UAAA,EAAA,8BAAA,EAAA,CAAA,EACrD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