@ids-group-ltd/ids-design-system 0.11.3 → 0.12.0

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 (249) hide show
  1. package/CHANGELOG.md +253 -13
  2. package/components/README.md +86 -0
  3. package/components.md +12 -4
  4. package/docs/agent/INDEX.md +1 -0
  5. package/docs/agent/platform/body-scroll-lock-service.md +12 -0
  6. package/docs/agent/platform/toast-service.md +4 -6
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
  145. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
  146. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
  147. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
  148. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
  149. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
  150. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
  151. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
  152. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
  153. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
  154. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
  155. package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14030
  156. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  157. package/migrations/0.11.0.json +0 -2
  158. package/migrations/0.11.1.json +2 -1
  159. package/migrations/0.11.2.json +2 -1
  160. package/migrations/0.11.3.json +3 -2
  161. package/migrations/0.11.4.json +247 -0
  162. package/migrations/0.12.0.json +22 -0
  163. package/migrations/0.4.0.json +2 -1
  164. package/migrations/0.7.1.json +2 -1
  165. package/migrations/0.8.0.json +6 -5
  166. package/package.json +573 -1
  167. package/styles/_control-label.scss +18 -0
  168. package/styles/_ds-color.scss +6 -0
  169. package/styles/_focus.scss +16 -0
  170. package/styles/_skeleton-shimmer.scss +10 -26
  171. package/themes/README.md +4 -4
  172. package/themes/_semantic.scss +11 -2
  173. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
  174. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
  175. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
  176. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
  177. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
  178. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
  179. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
  180. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
  181. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
  182. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
  183. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
  184. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
  185. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
  186. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
  187. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
  188. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
  189. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
  190. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
  191. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
  192. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
  193. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
  194. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
  195. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
  196. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
  197. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
  198. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
  199. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
  200. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
  201. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
  202. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
  203. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
  204. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
  205. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
  206. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
  207. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
  208. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
  209. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
  210. package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
  211. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
  212. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
  213. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
  214. package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
  215. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
  216. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
  217. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
  218. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
  219. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
  220. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
  221. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
  222. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
  223. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
  224. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
  225. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
  226. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
  227. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
  228. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
  229. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
  230. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
  231. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
  232. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
  233. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
  234. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
  235. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
  236. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
  237. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
  238. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
  239. package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
  240. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
  241. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
  242. package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
  243. package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
  244. package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
  245. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
  246. package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
  247. package/types/ids-group-ltd-ids-design-system.d.ts +72 -5544
  248. package/LICENSE +0 -21
  249. package/README.md +0 -73
package/CHANGELOG.md CHANGED
@@ -8,6 +8,248 @@ While the package is on `0.x`, minor releases may contain breaking changes.
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 0.12.0 — 2026-09-04
12
+
13
+ ### Added
14
+
15
+ - **The library no longer forces itself into your initial bundle, and your imports stay as they are.**
16
+ Every component became its own entry point, so a bundler can place each one in the chunk that
17
+ actually uses it. Until now the package was a single flattened module: one eager import of any
18
+ part of it — a service in a composition root is the usual one — made the whole library reachable
19
+ from the initial bundle, and no amount of lazy routing moved it out. Measured on a documentation app
20
+ of 90 sections that changed not one import line: its initial bundle fell from **240 kB to 138 kB
21
+ gzip**, with the total across initial and lazy chunks moving under a percent. Nothing was
22
+ duplicated; 102 kB simply moved to the routes that use it.
23
+
24
+ - **Keep importing from the package root — that is the supported spelling and it costs nothing
25
+ extra.** The same app measured the same 138 kB either way. The root is a re-export and nothing
26
+ else, so a bundler sees straight through it. There is no migration here and no reason to rewrite
27
+ an import.
28
+
29
+ - **Per-component specifiers do resolve** (`@ids-group-ltd/ids-design-system/button`), for a codebase
30
+ that prefers a file's dependencies spelled out. They are not the recommended form and they buy no
31
+ bytes. If you want them shorter, one line in your own `tsconfig.json` does it, with no change on
32
+ our side:
33
+
34
+ ```json
35
+ "paths": { "ds/*": ["node_modules/@ids-group-ltd/ids-design-system/*"] }
36
+ ```
37
+
38
+ `ds/button` then resolves to the same file as the full specifier, so a component imported one way
39
+ and the same component imported the other are one class and `instanceof` holds across them.
40
+
41
+ ### Changed
42
+
43
+ - **The package root exports exactly what it exported before, name by name.** An entry point has to
44
+ export whatever another entry point imports, so 37 helpers, base classes and shared types are
45
+ reachable inside the package that were not reachable before — every one of them internal, each
46
+ carrying `@internal`, and none in the component reference. **None of them reaches the root:** it
47
+ re-exports the documented surface by name rather than re-exporting whole entry points, so
48
+ `import * as ds` and a barrel of your own see the same names as before and nothing new can collide.
49
+ Two subpaths, `…/components` and `…/core`, hold what the other entry points share; they exist so
50
+ those can resolve, they are internal, and nothing in them is covered by the versioning promise.
51
+
52
+ ### What you can now DELETE
53
+
54
+ None of this is required — skipping it leaves working code that is merely redundant. Each row is a
55
+ workaround this release made unnecessary. Generated from the `deleteList` in the release manifest
56
+ this package ships under `migrations/`.
57
+
58
+ | If you have | Delete it, because |
59
+ | --- | --- |
60
+ | `await import('@ids-group-ltd/ids-design-system')` | A dynamic import of the whole package was the only way to keep it out of the initial bundle, and it bought that at the cost of an async boundary in your own code. An ordinary static import from the package root now lands in the chunk that uses it. Replace with: a plain static import from the package root. Still legitimate where the lazy boundary is there for its own sake — a feature area you genuinely want off the critical path. |
61
+
62
+ ## 0.11.4 — 2026-09-03
63
+
64
+ ### Breaking
65
+
66
+ - **`ds-banner` and `ds-alert` no longer announce themselves unless asked.** Both applied `role` and
67
+ `aria-live` unconditionally, and an `alert` region fires on INSERTION — so a static "maintenance on
68
+ Sunday" strip interrupted a screen reader on every client-side route into the page. MDN says it
69
+ outright: do not use `alert` on content the user has not interacted with. Measured on this site's own
70
+ pages: 12 assertive regions before, 0 now. Pass `[announce]="true"` for a banner the app raises in
71
+ response to an event; for anything transient use `ToastService`, which owns a region built for it.
72
+
73
+ - **`<ds-toast>`'s `message` input is now `body`**, matching `ToastOptions.body` and `ToastEntry.body`.
74
+ One concept had three spellings across the family; `body` wins because it is the one every consumer
75
+ already passes to the service.
76
+
77
+ - **Five toast border tokens gain the `-color` the rest of the library uses**:
78
+ `--ds-toast-border` → `--ds-toast-border-color`, and the four variant suffixes with it. They are
79
+ colours, and they were the last holdouts of the old naming.
80
+
81
+ - **`maxVisible` defaults to 5 instead of unlimited.** An uncapped stack was more permissive than any
82
+ system this component is measured against — Material shows one snackbar and dismisses the previous,
83
+ Carbon and Halstack stack but expect a ceiling. `provideDsConfig({ toast: { maxVisible: n } })` still sets it, and `0` still means
84
+ no cap; a configured `0` is now forwarded rather than skipped, since it is the only way left to ask
85
+ for one.
86
+
87
+ - **A screen reader was told nothing about a toast, for three of the five variants.** `aria-live` sat
88
+ on each toast, and a live region has to exist in the DOM *before* its text arrives — a node created
89
+ with its message already inside it is the one case NVDA and JAWS reliably do not announce. The
90
+ region host was `role="region"`, a landmark, not a live region. Announcements now go through the CDK
91
+ `LiveAnnouncer`, whose region is built once at service construction and only has its text replaced.
92
+ `error` and `warning` announce assertively, the rest politely. WCAG 2.2 SC 4.1.3.
93
+
94
+ A burst is coalesced into one announcement rather than queued, and that is forced rather than
95
+ chosen: `announce()` clears its region synchronously and writes on a 120ms timeout, resolving its
96
+ promise inside that callback — so even a strictly serialised chain loses all but the last message.
97
+ Measured: five announcements each landed and were cleared again in the same millisecond.
98
+
99
+ A `<ds-toast>` you place yourself is now silent to a reader. It is a specimen, not an event; use
100
+ `ToastService` for anything that should be announced.
101
+
102
+ - **Toast defaults move into `provideDsConfig`, and the two toast tokens are gone.**
103
+ `DS_TOAST_CONFIG` and `DS_TOAST_POSITION` were the only configuration in the library that did not
104
+ go through `DsConfig` — thirteen other areas already did — so an app set everything in one call and
105
+ then remembered two bare `InjectionToken` providers for toasts. They are now
106
+ `provideDsConfig({ toast: { maxVisible, position } })`, and the `DsToastConfig` interface is
107
+ removed with its token.
108
+ `position` is PARTIAL and merged field by field over `right` / `top` / `var(--space-6)`: the old
109
+ token's type required all three fields, so moving the stack to the bottom meant restating the other
110
+ two. `DS_TOAST_POSITION_DEFAULT` is unchanged and still exported. One caveat, and it is not new:
111
+ `ToastService` is `providedIn: 'root'`, so the `toast` section resolves only at the root injector —
112
+ a route-level `provideDsConfig` cannot narrow it, unlike every other section.
113
+
114
+ ### Changed
115
+
116
+ - **Toast and table class internals moved again — only matters if you SUBCLASS one of them.**
117
+ Every name here is a `private` or `protected` internal, not public API and not a signal, but
118
+ `private` collides with TS2415 exactly as a public name does, so a member of yours sharing one
119
+ still stops the build. `ToastComponent` **lost `role`** — the component no longer sets one, so
120
+ an `override role` overrides nothing. `ToastRegionComponent` gained `leaveTimers`,
121
+ `slideNeighbours`, `toastNodes`, `measureTops` and `leaveDuration`, and **renamed
122
+ `promoteFromQueue` to `drainQueue`**; an override of the old name now runs never, so move it.
123
+ `ToastService` gained `announcer`, `pendingAnnouncements`, `pendingAssertive`, `announceTimer`,
124
+ `scrimWatcher`, `announce` and `keepAboveScrims`, and **lost `position`** with the token it
125
+ read. `TableComponent` gained `eventsAtExport`,
126
+ `eventMessages`, `tableHead`, `hostElement` and `announceExport`; its inputs, outputs, models
127
+ and exported types are unchanged. `BannerComponent` and `AlertComponent` each gained
128
+ `announce`, and their `ariaRole` and `ariaLive` now return `null` as well — a subclass that
129
+ narrowed either type back, or code that assumed the getter is never null, stops compiling.
130
+ The compiler enumerates every collision, so building after the upgrade is the whole check.
131
+
132
+ - **The stack no longer jumps when a toast is added.** Its neighbours are put back where they were
133
+ with a `transform` and released, so the re-stack runs on the compositor instead of the browser
134
+ moving them all in one frame. Two new tokens tune it: `--ds-toast-shift-duration` (default
135
+ `--duration-fast`) and `--ds-toast-shift-easing`. A dismissal keeps its own, longer timing — a
136
+ re-stack and a leave are different motions.
137
+
138
+ ### Fixed
139
+
140
+ - **A click between a boolean control and its label hit nothing.** `ds-radio`, `ds-checkbox` and
141
+ `ds-switch` set the space between control and label with a flex `gap`, which belongs to neither
142
+ box — so the 8px strip between them swallowed the click instead of toggling. That space is now
143
+ padding on the label, which extends its clickable box across the strip: the target grows from
144
+ 18px to 26px tall while the text's start position and the row height stay put. No API or token
145
+ change.
146
+
147
+ - **`ds-table`'s bulk-actions bar rendered its buttons invisible.** The bar is an inverted
148
+ surface, and its buttons were coloured through a bare `.button` rule that stopped applying once
149
+ the button became `ds-button` — which takes its label from `--ds-button-label-color` and ignores
150
+ inherited `color`, so the label sat on the bar's own colour and disappeared. The bar now sets
151
+ ds-button's public tokens for an inverted surface: label to `--text-inverted`, background to
152
+ `transparent`, and hover and active backgrounds to `--surface-inverted-hover`. No new token —
153
+ these are ds-button's existing hooks.
154
+
155
+ - **The skeleton shimmer stepped instead of sweeping, on any page but a light one.** The travel was
156
+ `--skeleton-shimmer-x`, one animated, registered, INHERITED custom property on `:root` that
157
+ every skeleton read through `mask-position`. A registered custom property is a computed value, so changing it invalidated
158
+ style for the ENTIRE document on every frame and then repainted — fine on the docs site, visibly
159
+ jerky inside a heavy host application. The animation moved onto each skeleton's own band,
160
+ animating `mask-position` per element; `--skeleton-shimmer-x` and the `:root` animation that drove
161
+ it are gone, so anything that referenced it now resolves to nothing. The trade is that a skeleton mounted mid-cycle starts its own pass instead
162
+ of joining the one in flight; the old lock-step was never viewport-anchored anyway, because
163
+ `mask-position` is measured from the host's own box.
164
+ - **A focused row drew TWO rings, and neither was the focus colour.** `ds-list-item`, `ds-tree`,
165
+ `ds-tag`, `ds-description-list` and `ds-color-picker` each drew their own `outline` on
166
+ `:focus-visible` while the blanket `:where(:focus-visible)` shadow kept painting under it — an
167
+ accent halo outside, their own outline inside. Worse, that outline asked for
168
+ `--focus-ring-color`, which **nothing defined**, so all seven call sites fell through to
169
+ `currentColor` and ringed themselves in their own text colour: near-black on a list row, grey on
170
+ a tree node. The token is defined now, from the same hue channels as the ring's outer halo, and
171
+ the seven sites share a `focus.outline-indicator` mixin that silences the shadow. The colour is
172
+ `--accent`, so it is the brand hue by default and the family's hue inside a `ds-color` zone —
173
+ measured: `hsl(229 100% 59%)` outside, `hsl(0 75% 49%)` under `[ds-color="error"]`. Override it
174
+ per brand with `--focus-ring-color`.
175
+ - **A selected `ds-list-item` or `ds-tree` node retinted its label and left its icon behind.**
176
+ On the list the icon stayed on its resting colour beside an accent label; on the tree the row
177
+ set `color` correctly but `.node-icon` declared its own and won. Both follow the label now,
178
+ through new
179
+ `--ds-list-item-selected-icon-color` / `--ds-tree-row-selected-icon-color` hooks that default to
180
+ the selected label colour.
181
+ - **`ds-avatar-group` and `ds-button-group` styled their children by tag name, so a host that
182
+ renames the tag got neither.** Both pierced encapsulation with `::ng-deep ds-avatar` /
183
+ `::ng-deep ds-button`. Measured through the custom-element build, where a tag nested inside
184
+ another component's template has to be renamed (angular/angular#24536), all three
185
+ avatars came back `margin-left: 0` with no ring, and the joined buttons lost their overlap
186
+ margin and every flattened radius. They match the direct child now, so the grouping holds whatever the child is rendered
187
+ as. Computed output in an ordinary Angular app is unchanged — verified identical before and
188
+ after.
189
+
190
+ - **Six connected-panel tokens did nothing when scoped to one picker.** `--ds-option-padding`,
191
+ `-gap`, `-radius`, `-row-gap`, `--ds-option-bg-color-active` and `--ds-dropdown-panel-maxh` are read
192
+ on the panel, which the CDK portals outside the component, so they only ever resolved from a global
193
+ declaration: `ds-select { --ds-option-padding: … }` was silently ignored while
194
+ `ds-select { --ds-dropdown-panel-radius: … }` beside it worked, because that one was on the
195
+ forwarded list and these were not. They join the shared list every connected picker forwards, so the
196
+ family behaves one way. `--ds-dropdown-panel-maxh` was also the one token `ds-autocomplete` forwarded
197
+ and its two siblings did not. Nothing moves unless you had written one of these on an element, where
198
+ it now takes effect — if you reached for a global declaration because the scoped one did nothing, the
199
+ scoped one is the narrower fix.
200
+
201
+ - **`ds-split-button`'s hover left its label unreadable inside a status zone.** The hover background defaulted to the family's readable ON-TINT colour — the one meant for text on light surfaces — and this was the only place in the library using it as a background, so the label landed at 1.87:1 on `success` in dark and 2.46:1 on `error`. It now defaults to `--accent-hover`, the family base mixed toward black in light and white in dark, so the hover follows the rest state instead of jumping to another hue: error 5.94 light / 4.22 dark, success 4.17 / 2.85, warning 9.11 / 12.31. `--ds-split-button-bg-hover-color` still overrides it.
202
+
203
+ This does not close the whole problem. The label colour on a family's solid background already falls below 4.5:1 at REST for `success` (3.30) and `secondary` (3.31), in both themes and on every solid button — a palette question, not this component's.
204
+
205
+ - **A chip row could drop a chip, or fail to, when the field sat in a box that sizes itself to its content.** The budget for how many chips fit comes off the trigger's parent, which is only a fixed quantity while that parent takes its width from somewhere else. A parent at `fit-content`, an `inline-block` one, or a flex item that cannot grow all take their width from the chips instead, so the cut was reading back its own result. The parent is now asked whether its width depends on the trigger, and the trigger's own width is used only when it cannot answer. Affects `ds-multi-select` and `ds-autocomplete`.
206
+
207
+ - **Eight defects the two-wave review confirmed and nobody had acted on.** The toast region and its
208
+ service never tore anything down, so every pending timer fired into a destroyed component — harmless
209
+ in a long-lived app, a stream of "N timers still in the queue" in a consumer's `fakeAsync` tests. The
210
+ 180 ms leave timer was untracked and survived `dismissAll()`. `remove()` had no existence guard, so a
211
+ stale `ToastRef.dismiss()` ran the whole leave path on an id nothing held. `LEAVE_DURATION_MS` was
212
+ hardcoded against `--ds-toast-leave-duration`, a public token: the leave length is now READ off the
213
+ node, measured at 964 ms with the token set to 900, where it used to be 180 whatever the consumer
214
+ asked for. Raising `maxVisible` at runtime promoted nothing until the next dismissal; promotion is a
215
+ drain loop now. A negative `maxVisible` said the opposite of what it did and warns in dev. The
216
+ spinner inside a `loading` toast carried its own `role="status"`, which — now that announcements have
217
+ moved to the announcer — was the only live node left in there, so it is `aria-hidden`. And
218
+ `ToastPromiseMessages` is generic, so `promise<T>` stops discarding `T` and a `success` callback
219
+ receives the resolved value instead of `unknown`.
220
+
221
+
222
+ - **A modal, drawer, confirm or bottom sheet opened after a toast covered it and swallowed its action
223
+ button.** `--layer-toast: 1500` could not prevent it and never could: CDK 21 gives every overlay host
224
+ `popover="manual"` and calls `showPopover()`, so hosts live in the browser's top layer, which paints
225
+ strictly in the order things were shown and ignores z-index and stacking contexts. The toast host is
226
+ now re-shown when a scrimmed overlay appears, which is the only thing that moves it back to the
227
+ front. Measured before and after on the same probe: the scrim was the topmost element at the toast's
228
+ centre, and is not any more.
229
+
230
+ Only *scrimmed* overlays trigger it. A tooltip or dropdown neither covers the toast meaningfully nor
231
+ eats a click, and the documented scale deliberately puts `--layer-tooltip` above the toast.
232
+
233
+
234
+ - **Typing on a CLOSED `ds-select` did nothing.** Type-ahead landed with the jump wired only for
235
+ an open panel: the closed branch of the key handler returned before reaching it, so a letter
236
+ pressed on a collapsed trigger neither jumped nor committed. It now commits the first
237
+ matching option without opening the panel — `value` is a `model`, so `valueChange` fires —
238
+ the way a native `<select>` does; a key that matches nothing is ignored.
239
+ - **A `ds-table` loading scrim covered the top of the first row, or overlapped the header.**
240
+ Its top edge assumed a 40px header. The header is 42.89px at the default density and
241
+ 26.89px under `[data-density="ultra-compact"]`, so it cut 2.89px into the header normally
242
+ and started 13.11px too low under that density, where the first row showed through it. The
243
+ header is measured now, so the edge lands on it at every density and at any header font size
244
+ you set. `--ds-table-head-h` still overrides it if you set that, which you should no longer
245
+ need to.
246
+ - **One export left `ds-table`'s live region stuck for the rest of the page's life.** The export
247
+ status outranked the sort, row-range and row-expansion lines and was never cleared, so from the
248
+ first export onwards a screen reader heard "Export ready" and nothing else: every later sort,
249
+ page change and bulk expansion was swallowed. The export line now holds the region only until
250
+ one of those lines has something new to say, so "Export failed" still stands until the reader
251
+ moves on, and everything after it is announced again.
252
+
11
253
  ## 0.11.3 — 2026-09-02
12
254
 
13
255
  ### Breaking
@@ -790,9 +1032,8 @@ this package ships under `migrations/`.
790
1032
  the result.** The prose split above rewrote every item; this is the separate, smaller set where the
791
1033
  DATA was wrong. It matters
792
1034
  because these files are executed: your upgrade tooling read them, acted, and reported done.
793
- **Three changes had no item at all.** `0.2.0` never filed the `--surface-subtle` →
794
- `--surface-subtitle` rename, so an override still naming the old token resolves to nothing and says
795
- nothing. `0.9.0` never filed the six inputs whose declared type widened from `InputSignal` to
1035
+ **Two changes had no item at all.** `0.9.0` never filed the six inputs whose declared type
1036
+ widened from `InputSignal` to
796
1037
  `InputSignalWithTransform` (`min`/`max`/`maxLength` on `ds-input`, `min`/`max` on
797
1038
  `ds-number-stepper`, `maxLength` on `ds-textarea`) — the TS2322 an explicit annotation hits and the
798
1039
  TS2416 a subclass hits had no explanation anywhere. `0.10.0` never filed
@@ -2855,6 +3096,15 @@ genuine gap worth reporting.
2855
3096
  - **Fields no longer expose a `protected messageState`;** the resolved `message` (text + state) and
2856
3097
  `invalidResolved` replace it. Only reachable by subclassing a field component, which is not a
2857
3098
  supported extension point, but noted for parity with the class-member changes in 0.7.0.
3099
+ - **The `ds-time-picker` panel lost its corner radius.** It had drawn `--radius-md` (8px) while every
3100
+ other floating surface — popovers, cards, modals and `ds-date-picker`'s own calendar — resolves the panel
3101
+ role. The move onto that role reads a private `:host` token, which a CDK-portaled panel cannot see, so
3102
+ `border-radius` resolves to its initial `0` and the panel renders SQUARE. The new
3103
+ `--ds-time-picker-panel-radius` hook is inert for the same reason. Force the corner back with a global
3104
+ `.cdk-overlay-container { --_time-picker-panel-radius: var(--radius-md); }`. It declares the
3105
+ private token the panel already reads on an ancestor the panel DOES have, so it inherits down;
3106
+ fighting the component’s own rule with a selector is not needed. A rule scoped under
3107
+ `ds-time-picker` cannot reach the portaled panel at all. The trigger's radius is untouched.
2858
3108
 
2859
3109
  ### Fixed
2860
3110
 
@@ -2890,16 +3140,6 @@ genuine gap worth reporting.
2890
3140
  layout's open rail instead of beneath it. The host now sets `isolation: isolate`, giving each
2891
3141
  `ds-app-layout` its own stacking context — the same fix `ds-drawer` already carries. Nothing changes
2892
3142
  for a full-viewport shell with no layout embedded inside it.
2893
- - **The `ds-time-picker` panel drew the CONTROL radius, so it did not match the date picker beside it.**
2894
- Its dropdown was the one floating panel left on `--radius-md` (8px) while every other surface — menus,
2895
- popovers, cards, modals, and `ds-date-picker`'s own calendar — resolves the panel role. Two pickers in
2896
- one form therefore rendered different corners. The panel now reads
2897
- `var(--ds-time-picker-panel-radius, var(--ds-radius-panel))`, which is 12px, and the new hook is
2898
- FORWARDED onto the portaled pane — a token declared without being forwarded is dead for per-instance
2899
- overrides, which is exactly the `--ds-overlay-enter-scale` bug fixed elsewhere in this release. It was
2900
- also the only property on that element without a hook, since fill, border and shadow all had one.
2901
- Restore the old corner with `ds-time-picker { --ds-time-picker-panel-radius: var(--radius-md); }`; the
2902
- trigger's radius is untouched.
2903
3143
  - **A path change that only mirrors the reader's position no longer resets the content scroll.** A docs shell whose scroll spy rewrites `/area/section` as the user scrolls hit a loop: the rewrite looked like a page change, the layout scrolled to top, the spy saw the first section again and rewrote the path back. Such a navigation must now carry `state: { dsSamePage: true }`, which the layout skips for both the scroll reset and the rail close. Read from `Router.lastSuccessfulNavigation()` — `getCurrentNavigation()` is already cleared when `NavigationEnd` reaches a subscriber.
2904
3144
  - **Closing the rail by NAVIGATING no longer pulls focus back to the burger.** Restoring focus to the trigger is right for a dismissal — Escape, the scrim — and wrong for a link: the reader activated it, so focus belongs wherever the router put it, and handing it back announced "Open navigation" instead of the page they asked for. Dismissal keeps the restore; the navigation and breakpoint paths now clear `railOpen` directly. The breakpoint path had also depended on `compact` being written one line earlier to avoid focusing a trigger that is hidden on desktop — that ordering trap is gone with it.
2905
3145
  - **A closed compact `ds-app-layout` rail no longer holds focus behind the screen.** Below the
@@ -0,0 +1,86 @@
1
+ # DS Components — registry
2
+
3
+ Registry of components from `CLAUDE_DESIGN_DS` source. Ported components live in subfolders here. Unported components are listed below with their source class references so future ports can find them quickly.
4
+
5
+ ## Ported (Phase 2A — 22 components)
6
+
7
+ | Component | Selector | Source ref |
8
+ | -------------- | --------------------------------------------------- | ------------------------------------------------------------------------- |
9
+ | Icon | `ds-icon` | `ds-icons.jsx` (75 named SVG fragments) |
10
+ | Button | `ds-button` | `components.css` §BUTTON |
11
+ | Badge | `ds-badge` | `components.css` §BADGE — defect 5 status pills unified |
12
+ | StatusDot | `ds-status-dot` | `components.css` `.status-dot` |
13
+ | Avatar | `ds-avatar` | `components.css` §AVATAR |
14
+ | AvatarGroup | `ds-avatar-group` | `components.css` `.avatar-group` (shares avatar SCSS) |
15
+ | Card | `ds-card` | `components.css` §CARD |
16
+ | Stat | `ds-stat` | `components.css` §STAT |
17
+ | Tabs / Tab | `ds-tabs` / `ds-tab` | `components.css` §TABS |
18
+ | Input | `ds-input` | `components.css` §FIELD (text input subset) |
19
+ | Search | `ds-search` | `components.css` §SEARCH — defect 11 (BEM elements added) |
20
+ | Select | `ds-select` | `components.css` §FIELD (select subset) |
21
+ | Table | `ds-table` | `components.css` §TABLE — defect 9 (bulk-bar BEM) |
22
+ | Pagination | `ds-pagination` | `components.css` §PAGINATION |
23
+ | DatePicker | `ds-date-picker` | `components-overlay.jsx` §DATEPICKER (CDK Overlay) |
24
+ | Breadcrumbs | `ds-breadcrumbs` | `components.css` `.crumbs` |
25
+ | Sidenav family | `ds-sidenav`, `ds-sidenav-group`, `ds-sidenav-item` | `components.css` §SIDENAV — defect 4 partial (`.sidenav__item` canonical) |
26
+ | TopBar | `ds-topbar` | `components.css` §TOPBAR |
27
+ | PageHeader | `ds-page-header` | `components-extras.css` `.page-hdr` — defect 4 (canonical version) |
28
+ | Modal | `ds-modal` | `components.css` §MODAL + extras `.modal--error` — defects 2, 6 |
29
+ | Banner | `ds-banner` | `components.css` §BANNER — defect 10 |
30
+ | Dropzone | `ds-dropzone` | `components-extras.css` §DROPZONE — defect 8 |
31
+
32
+ ## Unported (registry only — port when needed)
33
+
34
+ Each entry points at the source CSS class so a future porter can find the rules quickly.
35
+
36
+ | Component | Source |
37
+ | ------------------- | ----------------------------------------------------------------------------------------------- |
38
+ | Accordion | `ds-components-content.jsx` `.accordion` |
39
+ | Drawer | `ds-components-overlay.jsx` `.drawer` |
40
+ | Toast | `ds-components-overlay.jsx` `.toast` |
41
+ | Tooltip | `ds-components-overlay.jsx` `.tooltip` |
42
+ | Popover | `ds-components-overlay.jsx` (semantic HTML, no formal BEM in source) |
43
+ | Menu (dropdown) | `components-extras.css` `.menu` |
44
+ | EmptyState | `ds-components-overlay.jsx` `.empty` |
45
+ | Progress | `ds-components-overlay.jsx` `.progress` |
46
+ | Spinner | `ds-components-overlay.jsx` `.spinner` |
47
+ | Skeleton | `ds-components-overlay.jsx` `.skeleton` (small subset is inlined in Table) |
48
+ | Stepper | `ds-components-overlay.jsx` `.stepper` |
49
+ | Wizard | `components-extras.css` `.wizard` (composes Stepper) |
50
+ | Combobox | `ds-components-overlay.jsx` `.combo__list`, `.combo__option` |
51
+ | CommandPalette (⌘K) | `ds-components-overlay.jsx` `.cmdk` |
52
+ | Tag | `ds-components-form.jsx` `.tag` |
53
+ | Switch | `ds-components-form.jsx` `.switch` |
54
+ | Checkbox | `ds-components-form.jsx` `.check` (one-off inline use is in Table) |
55
+ | Radio | `ds-components-form.jsx` `.radio` |
56
+ | Textarea | `ds-components-form.jsx` `.field__textarea` |
57
+ | Slider | `ds-components-form.jsx` `.slider` |
58
+ | Segmented | `ds-components-form.jsx` `.segmented` |
59
+ | Link | `components-extras.css` `.link` (distinct from inline text link) |
60
+ | W3w | `ds-components-form.jsx` `.geo-pill` (renamed: explicit what3words token, not generic geo-pill) |
61
+ | InlineEdit | `components-extras.css` `.inline-edit` |
62
+ | Settings layout | `components-extras.css` `.settings__nav`, `.settings__panel`, `.settings__row` |
63
+ | Matrix | `components-extras.css` `.matrix` |
64
+ | Calendar | `components-extras.css` `.calendar` |
65
+ | BinPack viz | `components-extras.css` `.binpack` |
66
+ | MapPlaceholder | `components-extras.css` `.map-ph` |
67
+ | QR placeholder | `components-extras.css` `.qr` |
68
+ | Chart | `components-extras.css` `.chart` + `_tokens-charts.scss` |
69
+ | Page footer | `components.css` `.page-ftr` |
70
+ | Activity (pattern) | `components.css` `.activity` — shipped as a CSS pattern, not its own component |
71
+
72
+ ## Convention
73
+
74
+ Each component subfolder contains:
75
+
76
+ ```
77
+ <name>/
78
+ ├── <name>.types.ts # TS types (optional if component has none)
79
+ ├── <name>.component.scss # styles (idiomatic names, no BEM, SCSS nesting)
80
+ ├── <name>.component.ts # standalone Angular component, signals API
81
+ ├── <name>.component.html # template
82
+ ├── <name>.stories.ts # Storybook stories
83
+ └── index.ts # re-exports
84
+ ```
85
+
86
+ Global stylesheets in `../styles/` (tokens, typography, layout-utils, scrollbar, icon-base, link) remain — they ship base classes (`.t-*`, `.grid-*`, `.link`, `.icon-base`).
package/components.md CHANGED
@@ -587,14 +587,22 @@ this.crumbs.clear();
587
587
  - `promise<T>(source: Promise<T>, messages: ToastPromiseMessages): Promise<T>` — shows a `loading` toast, then patches it in place to `success` or `error` when `source` settles. Returns `source` itself, so an un-`catch`ed call still produces an unhandled rejection. The settled toast dismisses after a hard-coded 4s (success) or 6s (error), counted from the moment it becomes visible and not overridable; `dismissAll()` cancels it like any other.
588
588
  - `dismissAll(): void`
589
589
 
590
- Defaults are set with two injection tokens, NOT through `provideDsConfig`:
591
- - `DS_TOAST_CONFIG` — `{ maxVisible?: number }`. Unset or `0` means unlimited; extras queue and appear as earlier ones dismiss.
592
- - `DS_TOAST_POSITION` — `{ horizontalPosition?: 'left' | 'center' | 'right', verticalPosition?: 'top' | 'bottom', offset?: string }`. Defaults to `right` / `top` / `var(--space-6)`.
590
+ Defaults come from `provideDsConfig({ toast: … })`:
591
+ - `maxVisible?: number` — cap on concurrently visible toasts. Default `5`; `0` means unlimited. Extras queue and appear as earlier ones dismiss.
592
+ - `position?: { horizontalPosition?: 'left' | 'center' | 'right', verticalPosition?: 'top' | 'bottom', offset?: string }` — merged field by field over `right` / `top` / `var(--space-6)`, so naming one key keeps the other two.
593
593
 
594
- Both resolve **once, at the root injector**, when the service is first used. Providing either on a `Route` or a component has no effect, and the position cannot change after the first `show()`.
594
+ The `toast` section resolves **once, at the root injector**, when the service is first used — unlike every other section, which a `Route` or a component can narrow. `ToastService` is `providedIn: 'root'`, so a route-level `provideDsConfig` never reaches it, and the position cannot change after the first `show()`.
595
595
 
596
596
  On first `show()` the service lazily creates a CDK overlay and mounts a `<ds-toast-region>` into it. **Do not place `<ds-toast-region>` yourself** — the service only ever talks to the instance it created, so a hand-placed one is an invisible empty box that never receives a toast, with no warning. It appears in the generated API table only because the extractor lists every exported component.
597
597
 
598
+ #### `BodyScrollLockService`
599
+
600
+ `@Injectable({ providedIn: 'root' })`. Ref-counted lock on `document.body` scroll, shared by every overlay that covers the viewport — `ds-modal`, `ds-drawer`, `ds-bottom-sheet` all take one. Exported since 0.7.0 so a consumer's own full-screen overlay can participate in the same lock instead of fighting it.
601
+ - `lock(): void` — the FIRST call saves the current `body` overflow and hides it.
602
+ - `unlock(): void` — only the LAST one restores it, so closing one overlay cannot re-enable page scroll under another still open above it.
603
+
604
+ Calls must be paired: one `unlock()` per `lock()`. An unmatched `unlock()` is a no-op rather than an error, so a leaked `lock()` leaves the page unscrollable with nothing to show why.
605
+
598
606
  ---
599
607
 
600
608
  ## Migration tips
@@ -87,6 +87,7 @@ and token names.** These leaves are for orientation and usage.
87
87
  - [DS_CONFIG / provideDsConfig(config)](platform/ds-config.md) — Inject DS_CONFIG token (default factory returns {}) to set library-wide defaults that consumer-level component
88
88
  - [BreadcrumbsService](platform/breadcrumbs-service.md) — @Injectable({ providedIn: 'root' }). Signal-based state primitive — apps push crumbs, <ds-breadcrumbs> reads f
89
89
  - [ToastService](platform/toast-service.md) — @Injectable({ providedIn: 'root' }). Inject and call:
90
+ - [BodyScrollLockService](platform/body-scroll-lock-service.md) — @Injectable({ providedIn: 'root' }). Ref-counted lock on document.body scroll, shared by every overlay that co
90
91
 
91
92
  ## surfaces
92
93
 
@@ -0,0 +1,12 @@
1
+ <!-- GENERATED by tools/split-agent-catalogue.mjs from components.md. Do not edit. -->
2
+ # `BodyScrollLockService`
3
+
4
+ Section: Services
5
+
6
+ `@Injectable({ providedIn: 'root' })`. Ref-counted lock on `document.body` scroll, shared by every overlay that covers the viewport — `ds-modal`, `ds-drawer`, `ds-bottom-sheet` all take one. Exported since 0.7.0 so a consumer's own full-screen overlay can participate in the same lock instead of fighting it.
7
+ - `lock(): void` — the FIRST call saves the current `body` overflow and hides it.
8
+ - `unlock(): void` — only the LAST one restores it, so closing one overlay cannot re-enable page scroll under another still open above it.
9
+
10
+ Calls must be paired: one `unlock()` per `lock()`. An unmatched `unlock()` is a no-op rather than an error, so a leaked `lock()` leaves the page unscrollable with nothing to show why.
11
+
12
+ ---
@@ -8,12 +8,10 @@ Section: Services
8
8
  - `promise<T>(source: Promise<T>, messages: ToastPromiseMessages): Promise<T>` — shows a `loading` toast, then patches it in place to `success` or `error` when `source` settles. Returns `source` itself, so an un-`catch`ed call still produces an unhandled rejection. The settled toast dismisses after a hard-coded 4s (success) or 6s (error), counted from the moment it becomes visible and not overridable; `dismissAll()` cancels it like any other.
9
9
  - `dismissAll(): void`
10
10
 
11
- Defaults are set with two injection tokens, NOT through `provideDsConfig`:
12
- - `DS_TOAST_CONFIG` — `{ maxVisible?: number }`. Unset or `0` means unlimited; extras queue and appear as earlier ones dismiss.
13
- - `DS_TOAST_POSITION` — `{ horizontalPosition?: 'left' | 'center' | 'right', verticalPosition?: 'top' | 'bottom', offset?: string }`. Defaults to `right` / `top` / `var(--space-6)`.
11
+ Defaults come from `provideDsConfig({ toast: … })`:
12
+ - `maxVisible?: number` — cap on concurrently visible toasts. Default `5`; `0` means unlimited. Extras queue and appear as earlier ones dismiss.
13
+ - `position?: { horizontalPosition?: 'left' | 'center' | 'right', verticalPosition?: 'top' | 'bottom', offset?: string }` — merged field by field over `right` / `top` / `var(--space-6)`, so naming one key keeps the other two.
14
14
 
15
- Both resolve **once, at the root injector**, when the service is first used. Providing either on a `Route` or a component has no effect, and the position cannot change after the first `show()`.
15
+ The `toast` section resolves **once, at the root injector**, when the service is first used — unlike every other section, which a `Route` or a component can narrow. `ToastService` is `providedIn: 'root'`, so a route-level `provideDsConfig` never reaches it, and the position cannot change after the first `show()`.
16
16
 
17
17
  On first `show()` the service lazily creates a CDK overlay and mounts a `<ds-toast-region>` into it. **Do not place `<ds-toast-region>` yourself** — the service only ever talks to the instance it created, so a hand-placed one is an invisible empty box that never receives a toast, with no warning. It appears in the generated API table only because the extractor lists every exported component.
18
-
19
- ---
@@ -0,0 +1,85 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, input, model, booleanAttribute, inject, effect, ViewEncapsulation, Component, contentChildren, forwardRef } from '@angular/core';
3
+ import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
4
+
5
+ const ACCORDION = new InjectionToken('ACCORDION');
6
+
7
+ let nextId = 0;
8
+ class AccordionItemComponent {
9
+ /** Header text shown in the toggle button. */
10
+ title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
11
+ /** Open state, two-way bound. */
12
+ expanded = model(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
13
+ /** Disables the toggle button; state stays as-is. */
14
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
15
+ uid = `ds-accordion-${++nextId}`;
16
+ headId = `${this.uid}-head`;
17
+ bodyId = `${this.uid}-body`;
18
+ accordion = inject(ACCORDION, { optional: true });
19
+ /** Tracks last expanded state so we only notify on a true open transition. */
20
+ previousExpanded = false;
21
+ constructor() {
22
+ effect(() => {
23
+ const isExpanded = this.expanded();
24
+ if (isExpanded && !this.previousExpanded) {
25
+ this.accordion?.notifyOpen(this);
26
+ }
27
+ this.previousExpanded = isExpanded;
28
+ });
29
+ }
30
+ toggle() {
31
+ if (this.disabled()) {
32
+ return;
33
+ }
34
+ this.expanded.set(!this.expanded());
35
+ }
36
+ /** Called by the accordion coordinator to enforce single-open mode. */
37
+ closeItem() {
38
+ this.expanded.set(false);
39
+ }
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" }, 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>\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\"\n />\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>\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host .head{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-3) var(--space-4);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--border-width-strong, 2px) solid var(--accent);outline-offset:-2px}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--space-2) var(--space-4) var(--space-4);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionItemComponent, decorators: [{
44
+ type: Component,
45
+ args: [{ selector: 'ds-accordion-item', standalone: true, imports: [IconComponent], 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>\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\"\n />\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>\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{--_accordion-header-bg-color: var(--ds-accordion-header-bg-color, var(--surface-default));--_accordion-header-text-color: var(--ds-accordion-header-text-color, var(--text-primary));--_accordion-header-hover-bg-color: var(--ds-accordion-header-hover-bg-color, var(--surface-secondary));--_accordion-divider-color: var(--ds-accordion-divider-color, var(--border-divider));--_accordion-chevron-color: var(--ds-accordion-chevron-color, var(--icon-default));--_accordion-body-text-color: var(--ds-accordion-body-text-color, var(--text-secondary));display:block}:host+:host{border-top:var(--border-width-default) solid var(--_accordion-divider-color)}:host .head{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-3) var(--space-4);border:0;background:var(--_accordion-header-bg-color);text-align:left;cursor:pointer;font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_accordion-header-text-color)}:host .head:hover:not(:disabled){background:var(--_accordion-header-hover-bg-color)}:host .head:active:not(:disabled){background:var(--surface-muted)}:host .head:focus-visible{outline:var(--border-width-strong, 2px) solid var(--accent);outline-offset:-2px}:host .head .chev{margin-left:auto;transition:transform var(--duration-base) var(--ease-standard);color:var(--_accordion-chevron-color)}:host .head[aria-expanded=true] .chev{transform:rotate(90deg)}:host .head:disabled{cursor:not-allowed;color:var(--text-disabled)}:host .head:disabled .chev{color:var(--text-disabled)}:host .body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-base) var(--ease-standard)}:host .body.is-open{grid-template-rows:1fr}@media(prefers-reduced-motion:reduce){:host .body{transition:none}}:host .body-inner{overflow:hidden;min-height:0}:host .body-content{padding:var(--space-2) var(--space-4) var(--space-4);color:var(--_accordion-body-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
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
+
48
+ class AccordionComponent {
49
+ /** When false, opening one item automatically closes all others. */
50
+ multi = input(true, { ...(ngDevMode ? { debugName: "multi" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
51
+ items = contentChildren(AccordionItemComponent, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
52
+ notifyOpen(opened) {
53
+ if (this.multi()) {
54
+ return;
55
+ }
56
+ for (const item of this.items()) {
57
+ if (item !== opened) {
58
+ item.closeItem();
59
+ }
60
+ }
61
+ }
62
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AccordionComponent, isStandalone: true, selector: "ds-accordion", inputs: { multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
64
+ {
65
+ provide: ACCORDION,
66
+ useExisting: forwardRef(() => AccordionComponent),
67
+ },
68
+ ], queries: [{ propertyName: "items", predicate: AccordionItemComponent, isSignal: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] });
69
+ }
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AccordionComponent, decorators: [{
71
+ type: Component,
72
+ args: [{ selector: 'ds-accordion', standalone: true, imports: [], template: `<ng-content></ng-content>`, encapsulation: ViewEncapsulation.Emulated, providers: [
73
+ {
74
+ provide: ACCORDION,
75
+ useExisting: forwardRef(() => AccordionComponent),
76
+ },
77
+ ], styles: [":host{display:block;border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-lg);overflow:hidden}\n"] }]
78
+ }], propDecorators: { multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AccordionItemComponent), { isSignal: true }] }] } });
79
+
80
+ /**
81
+ * Generated bundle index. Do not edit.
82
+ */
83
+
84
+ export { ACCORDION, AccordionComponent, AccordionItemComponent };
85
+ //# sourceMappingURL=ids-group-ltd-ids-design-system-components-accordion.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multi: () => boolean;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\"\n>\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\"\n />\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>\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multi = input(true, { transform: booleanAttribute });\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multi()) {\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":"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"}