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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +846 -14
  2. package/components.md +552 -29
  3. package/design-system.md +9 -0
  4. package/docs/agent/INDEX.md +57 -15
  5. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +1 -1
  6. package/docs/agent/charts/column-series-component.md +8 -0
  7. package/docs/agent/charts/ds-bar-chart.md +6 -1
  8. package/docs/agent/charts/ds-chart-data-table.md +10 -0
  9. package/docs/agent/charts/ds-chart.md +8 -0
  10. package/docs/agent/charts/ds-column-chart.md +5 -1
  11. package/docs/agent/charts/ds-funnel-chart.md +5 -1
  12. package/docs/agent/charts/ds-heatmap-chart.md +20 -0
  13. package/docs/agent/charts/ds-line-chart.md +8 -4
  14. package/docs/agent/charts/{ds-donut-chart.md → ds-pie-chart.md} +10 -6
  15. package/docs/agent/charts/ds-scatter-chart.md +20 -0
  16. package/docs/agent/charts/ds-waterfall-chart.md +20 -0
  17. package/docs/agent/charts/line-series-component.md +8 -0
  18. package/docs/agent/charts/reference-label-component.md +8 -0
  19. package/docs/agent/charts/reference-line-component.md +8 -0
  20. package/docs/agent/charts/series-annotation-component.md +10 -0
  21. package/docs/agent/feedback/ds-alert.md +4 -0
  22. package/docs/agent/feedback/ds-avatar-group.md +4 -0
  23. package/docs/agent/feedback/ds-avatar.md +4 -0
  24. package/docs/agent/feedback/ds-badge.md +4 -0
  25. package/docs/agent/feedback/ds-banner.md +5 -1
  26. package/docs/agent/feedback/ds-bar.md +4 -0
  27. package/docs/agent/feedback/ds-description-item.md +8 -0
  28. package/docs/agent/feedback/ds-description-list.md +8 -0
  29. package/docs/agent/feedback/ds-empty-state.md +4 -0
  30. package/docs/agent/feedback/ds-list-item.md +8 -0
  31. package/docs/agent/feedback/ds-list.md +8 -0
  32. package/docs/agent/feedback/ds-loading-overlay.md +8 -0
  33. package/docs/agent/feedback/ds-skeleton.md +4 -0
  34. package/docs/agent/feedback/ds-spinner.md +4 -0
  35. package/docs/agent/feedback/ds-stat.md +4 -0
  36. package/docs/agent/feedback/ds-status-dot.md +4 -0
  37. package/docs/agent/feedback/ds-tag.md +4 -0
  38. package/docs/agent/feedback/ds-timeline-item.md +8 -0
  39. package/docs/agent/feedback/ds-toast-region.md +8 -0
  40. package/docs/agent/feedback/ds-toast.md +4 -0
  41. package/docs/agent/feedback/ds-tree.md +8 -0
  42. package/docs/agent/forms/ds-autocomplete.md +4 -0
  43. package/docs/agent/forms/ds-button-group.md +8 -0
  44. package/docs/agent/forms/ds-button.md +6 -2
  45. package/docs/agent/forms/ds-checkbox.md +4 -0
  46. package/docs/agent/forms/ds-color-picker.md +8 -0
  47. package/docs/agent/forms/ds-date-picker.md +5 -1
  48. package/docs/agent/forms/ds-dropzone.md +4 -0
  49. package/docs/agent/forms/ds-field-group.md +8 -0
  50. package/docs/agent/forms/ds-filter-bar.md +8 -0
  51. package/docs/agent/forms/ds-icon-button.md +4 -0
  52. package/docs/agent/forms/ds-input.md +13 -1
  53. package/docs/agent/forms/ds-multi-select.md +4 -0
  54. package/docs/agent/forms/ds-number-stepper.md +4 -0
  55. package/docs/agent/forms/ds-otp-input.md +8 -0
  56. package/docs/agent/forms/ds-password-rules.md +8 -0
  57. package/docs/agent/forms/ds-radio-group.md +8 -0
  58. package/docs/agent/forms/ds-radio.md +4 -0
  59. package/docs/agent/forms/ds-search.md +4 -0
  60. package/docs/agent/forms/ds-segmented.md +8 -0
  61. package/docs/agent/forms/ds-select.md +4 -0
  62. package/docs/agent/forms/ds-slider.md +8 -0
  63. package/docs/agent/forms/ds-split-button.md +8 -0
  64. package/docs/agent/forms/ds-switch.md +4 -0
  65. package/docs/agent/forms/ds-textarea.md +5 -1
  66. package/docs/agent/forms/ds-time-picker.md +8 -0
  67. package/docs/agent/forms/ds-toggle-button.md +8 -0
  68. package/docs/agent/forms/filter-item-directive.md +8 -0
  69. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +4 -0
  70. package/docs/agent/navigation/ds-app-layout.md +6 -2
  71. package/docs/agent/navigation/ds-auth-layout.md +5 -1
  72. package/docs/agent/navigation/ds-breadcrumbs.md +4 -0
  73. package/docs/agent/navigation/ds-container.md +8 -0
  74. package/docs/agent/navigation/ds-divider.md +4 -0
  75. package/docs/agent/navigation/ds-inline.md +8 -0
  76. package/docs/agent/navigation/ds-page-footer.md +4 -0
  77. package/docs/agent/navigation/ds-page-header.md +5 -1
  78. package/docs/agent/navigation/ds-pagination.md +5 -1
  79. package/docs/agent/navigation/ds-sidenav-footer.md +8 -0
  80. package/docs/agent/navigation/ds-sidenav-group.md +4 -0
  81. package/docs/agent/navigation/ds-sidenav-item.md +4 -0
  82. package/docs/agent/navigation/ds-sidenav.md +4 -0
  83. package/docs/agent/navigation/ds-stack.md +8 -0
  84. package/docs/agent/navigation/ds-stepper.md +4 -0
  85. package/docs/agent/navigation/ds-tab.md +8 -0
  86. package/docs/agent/navigation/ds-tabs.md +5 -1
  87. package/docs/agent/overlays/ds-bottom-sheet.md +4 -0
  88. package/docs/agent/overlays/ds-drawer.md +4 -0
  89. package/docs/agent/overlays/ds-menu.md +4 -0
  90. package/docs/agent/overlays/ds-modal-card.md +4 -0
  91. package/docs/agent/overlays/ds-modal.md +4 -0
  92. package/docs/agent/overlays/ds-popover.md +4 -0
  93. package/docs/agent/overlays/ds-tooltip-panel.md +8 -0
  94. package/docs/agent/overlays/ds-tooltip.md +4 -0
  95. package/docs/agent/surfaces/ds-accordion-item.md +8 -0
  96. package/docs/agent/surfaces/ds-accordion.md +4 -0
  97. package/docs/agent/surfaces/ds-card.md +6 -2
  98. package/docs/agent/tables/ds-cell-template.md +8 -0
  99. package/docs/agent/tables/ds-table-columns.md +8 -0
  100. package/docs/agent/tables/ds-table-export.md +8 -0
  101. package/docs/agent/tables/ds-table.md +9 -2
  102. package/docs/agent/tables/header-filter-directive.md +8 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +10 -8
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +19 -19
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +7 -6
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +9 -6
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +117 -27
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +3 -3
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +7 -3
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +32 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +14 -2
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +404 -55
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -6
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +27 -10
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +5 -3
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +23 -16
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +20 -10
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +217 -0
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -0
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +181 -500
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +7 -5
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -3
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +391 -0
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -0
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +300 -0
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -0
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +9 -4
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +7 -5
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +2 -2
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +4 -1
  208. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +9 -9
  210. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  212. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  214. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  215. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  216. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  217. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +5 -3
  218. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  219. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  220. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  221. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +34 -21
  222. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  223. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  224. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  225. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +252 -0
  226. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -0
  227. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +271 -8
  228. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  229. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  230. package/fesm2022/ids-group-ltd-ids-design-system.mjs +7 -3
  231. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  232. package/migrations/0.10.0.json +2 -2
  233. package/migrations/0.10.1.json +3 -3
  234. package/migrations/0.10.2.json +8 -28
  235. package/migrations/0.11.0.json +3 -3
  236. package/migrations/0.11.1.json +15 -15
  237. package/migrations/0.11.2.json +9 -9
  238. package/migrations/0.11.3.json +1 -1
  239. package/migrations/0.11.4.json +8 -8
  240. package/migrations/0.12.1.json +1 -1
  241. package/migrations/0.12.2.json +1 -1
  242. package/migrations/0.12.3.json +3 -3
  243. package/migrations/0.13.0.json +24 -32
  244. package/migrations/0.13.1.json +5 -5
  245. package/migrations/0.13.4.json +994 -0
  246. package/migrations/0.5.0.json +1 -1
  247. package/migrations/0.8.0.json +4 -3
  248. package/migrations/0.9.0.json +1 -1
  249. package/package.json +41 -9
  250. package/styles/_chart-frame.scss +16 -3
  251. package/styles/_check-box.scss +12 -12
  252. package/styles/_dropdown-overlay.scss +14 -10
  253. package/styles/_field-box.scss +3 -3
  254. package/styles/_field-label.scss +7 -7
  255. package/styles/_overlay-motion.scss +1 -1
  256. package/styles/_table-controls.scss +3 -3
  257. package/styles/_tokens-charts.scss +40 -7
  258. package/styles/_tokens.scss +2 -2
  259. package/styles/_typography.scss +101 -101
  260. package/themes/dark/_theme.scss +13 -0
  261. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
  262. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
  263. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
  264. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
  265. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
  266. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +37 -4
  267. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
  268. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +8 -4
  269. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +31 -0
  270. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +4 -0
  271. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +230 -44
  272. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
  273. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +6 -2
  274. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
  276. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +5 -2
  277. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
  278. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +85 -139
  279. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
  280. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +13 -1
  281. package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +24 -19
  282. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
  283. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +183 -0
  284. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
  285. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
  286. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
  287. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +11 -11
  288. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  289. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
  290. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
  291. package/types/ids-group-ltd-ids-design-system-components.d.ts +97 -4
  292. package/types/ids-group-ltd-ids-design-system-core.d.ts +30 -7
  293. package/types/ids-group-ltd-ids-design-system.d.ts +14 -10
  294. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -382
  295. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
@@ -19,7 +19,9 @@ class PopoverComponent {
19
19
  triggerElement = null;
20
20
  focusTimer = null;
21
21
  /** Public panel tokens forwarded onto the portaled overlay pane on open so
22
- * a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it. */
22
+ * a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it.
23
+ * Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
24
+ * (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */
23
25
  panelTokens = [
24
26
  '--ds-popover-bg-color',
25
27
  '--ds-popover-border-color',
@@ -140,7 +142,7 @@ class PopoverComponent {
140
142
  provide: DsOverlayCloseRef,
141
143
  useExisting: forwardRef(() => PopoverComponent),
142
144
  },
143
- ], viewQueries: [{ propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "panelTrap", first: true, predicate: CdkTrapFocus, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active \u2014 duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:contents}.popover{--_popover-bg-color: var(--ds-popover-bg-color, var(--surface-overlay));--_popover-border-color: var(--ds-popover-border-color, var(--border-default));--_popover-radius: var(--ds-popover-radius, var(--ds-radius-panel));--_popover-shadow: var(--ds-popover-shadow, var(--ds-elevation-overlay));--_popover-padding: var(--ds-popover-padding, var(--space-3));--_popover-max-width: var(--ds-popover-max-width, var(--popover-maxw));--_popover-min-width: var(--ds-popover-min-width, auto);position:relative;background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);border-radius:var(--_popover-radius);box-shadow:var(--_popover-shadow);padding:var(--_popover-padding);z-index:var(--layer-popover);max-width:var(--_popover-max-width);min-width:var(--_popover-min-width)}.popover:has(ds-menu){padding:0;--ds-menu-clip-radius: calc( var(--_popover-radius) - var(--border-width-default) )}.arrow{--_arrow-size: var(--ds-popover-arrow-size, 7px);position:absolute;width:calc(var(--_arrow-size) * 2);height:calc(var(--_arrow-size) * 2);overflow:hidden;pointer-events:none}.arrow:before{content:\"\";position:absolute;width:var(--_arrow-size);height:var(--_arrow-size);background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);transform:rotate(45deg);transform-origin:center}[data-placement=bottom] .arrow,[data-placement=bottom]>.arrow{top:calc(var(--_arrow-size) * -1);left:var(--space-4)}[data-placement=bottom] .arrow:before,[data-placement=bottom]>.arrow:before{bottom:0;left:50%;translate:-50% 0;border-right:none;border-bottom:none}[data-placement=top] .arrow,[data-placement=top]>.arrow{bottom:calc(var(--_arrow-size) * -1);left:var(--space-4)}[data-placement=top] .arrow:before,[data-placement=top]>.arrow:before{top:0;left:50%;translate:-50% 0;border-left:none;border-top:none}[data-placement=right] .arrow,[data-placement=right]>.arrow{left:calc(var(--_arrow-size) * -1);top:var(--space-4)}[data-placement=right] .arrow:before,[data-placement=right]>.arrow:before{right:0;top:50%;translate:0 -50%;border-right:none;border-top:none}[data-placement=left] .arrow,[data-placement=left]>.arrow{right:calc(var(--_arrow-size) * -1);top:var(--space-4)}[data-placement=left] .arrow:before,[data-placement=left]>.arrow:before{left:0;top:50%;translate:0 -50%;border-left:none;border-bottom:none}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
145
+ ], viewQueries: [{ propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "panelTrap", first: true, predicate: CdkTrapFocus, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active \u2014 duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:contents}.popover{--_popover-bg-color: var(--ds-popover-bg-color, var(--surface-overlay));--_popover-border-color: var(--ds-popover-border-color, var(--border-default));--_popover-radius: var(--ds-popover-radius, var(--ds-radius-panel));--_popover-shadow: var(--ds-popover-shadow, var(--ds-elevation-overlay));--_popover-padding: var(--ds-popover-padding, var(--space-3));--_popover-max-width: var(--ds-popover-max-width, var(--popover-maxw));--_popover-min-width: var(--ds-popover-min-width, auto);position:relative;background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);border-radius:var(--_popover-radius);box-shadow:var(--_popover-shadow);padding:var(--_popover-padding);z-index:var(--layer-popover);max-width:var(--_popover-max-width);min-width:var(--_popover-min-width)}.popover:has(ds-menu){padding:0;--ds-menu-clip-radius: calc( var(--_popover-radius) - var(--border-width-default) )}.arrow{--_popover-arrow-size: var(--ds-popover-arrow-size, 7px);position:absolute;width:calc(var(--_popover-arrow-size) * 2);height:calc(var(--_popover-arrow-size) * 2);overflow:hidden;pointer-events:none}.arrow:before{content:\"\";position:absolute;width:var(--_popover-arrow-size);height:var(--_popover-arrow-size);background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);transform:rotate(45deg);transform-origin:center}[data-placement=bottom] .arrow,[data-placement=bottom]>.arrow{top:calc(var(--_popover-arrow-size) * -1);left:var(--space-4)}[data-placement=bottom] .arrow:before,[data-placement=bottom]>.arrow:before{bottom:0;left:50%;translate:-50% 0;border-right:none;border-bottom:none}[data-placement=top] .arrow,[data-placement=top]>.arrow{bottom:calc(var(--_popover-arrow-size) * -1);left:var(--space-4)}[data-placement=top] .arrow:before,[data-placement=top]>.arrow:before{top:0;left:50%;translate:-50% 0;border-left:none;border-top:none}[data-placement=right] .arrow,[data-placement=right]>.arrow{left:calc(var(--_popover-arrow-size) * -1);top:var(--space-4)}[data-placement=right] .arrow:before,[data-placement=right]>.arrow:before{right:0;top:50%;translate:0 -50%;border-right:none;border-top:none}[data-placement=left] .arrow,[data-placement=left]>.arrow{right:calc(var(--_popover-arrow-size) * -1);top:var(--space-4)}[data-placement=left] .arrow:before,[data-placement=left]>.arrow:before{left:0;top:50%;translate:0 -50%;border-left:none;border-bottom:none}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
144
146
  }
145
147
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PopoverComponent, decorators: [{
146
148
  type: Component,
@@ -149,7 +151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
149
151
  provide: DsOverlayCloseRef,
150
152
  useExisting: forwardRef(() => PopoverComponent),
151
153
  },
152
- ], template: "<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active \u2014 duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:contents}.popover{--_popover-bg-color: var(--ds-popover-bg-color, var(--surface-overlay));--_popover-border-color: var(--ds-popover-border-color, var(--border-default));--_popover-radius: var(--ds-popover-radius, var(--ds-radius-panel));--_popover-shadow: var(--ds-popover-shadow, var(--ds-elevation-overlay));--_popover-padding: var(--ds-popover-padding, var(--space-3));--_popover-max-width: var(--ds-popover-max-width, var(--popover-maxw));--_popover-min-width: var(--ds-popover-min-width, auto);position:relative;background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);border-radius:var(--_popover-radius);box-shadow:var(--_popover-shadow);padding:var(--_popover-padding);z-index:var(--layer-popover);max-width:var(--_popover-max-width);min-width:var(--_popover-min-width)}.popover:has(ds-menu){padding:0;--ds-menu-clip-radius: calc( var(--_popover-radius) - var(--border-width-default) )}.arrow{--_arrow-size: var(--ds-popover-arrow-size, 7px);position:absolute;width:calc(var(--_arrow-size) * 2);height:calc(var(--_arrow-size) * 2);overflow:hidden;pointer-events:none}.arrow:before{content:\"\";position:absolute;width:var(--_arrow-size);height:var(--_arrow-size);background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);transform:rotate(45deg);transform-origin:center}[data-placement=bottom] .arrow,[data-placement=bottom]>.arrow{top:calc(var(--_arrow-size) * -1);left:var(--space-4)}[data-placement=bottom] .arrow:before,[data-placement=bottom]>.arrow:before{bottom:0;left:50%;translate:-50% 0;border-right:none;border-bottom:none}[data-placement=top] .arrow,[data-placement=top]>.arrow{bottom:calc(var(--_arrow-size) * -1);left:var(--space-4)}[data-placement=top] .arrow:before,[data-placement=top]>.arrow:before{top:0;left:50%;translate:-50% 0;border-left:none;border-top:none}[data-placement=right] .arrow,[data-placement=right]>.arrow{left:calc(var(--_arrow-size) * -1);top:var(--space-4)}[data-placement=right] .arrow:before,[data-placement=right]>.arrow:before{right:0;top:50%;translate:0 -50%;border-right:none;border-top:none}[data-placement=left] .arrow,[data-placement=left]>.arrow{right:calc(var(--_arrow-size) * -1);top:var(--space-4)}[data-placement=left] .arrow:before,[data-placement=left]>.arrow:before{left:0;top:50%;translate:0 -50%;border-left:none;border-bottom:none}\n"] }]
154
+ ], template: "<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active \u2014 duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:contents}.popover{--_popover-bg-color: var(--ds-popover-bg-color, var(--surface-overlay));--_popover-border-color: var(--ds-popover-border-color, var(--border-default));--_popover-radius: var(--ds-popover-radius, var(--ds-radius-panel));--_popover-shadow: var(--ds-popover-shadow, var(--ds-elevation-overlay));--_popover-padding: var(--ds-popover-padding, var(--space-3));--_popover-max-width: var(--ds-popover-max-width, var(--popover-maxw));--_popover-min-width: var(--ds-popover-min-width, auto);position:relative;background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);border-radius:var(--_popover-radius);box-shadow:var(--_popover-shadow);padding:var(--_popover-padding);z-index:var(--layer-popover);max-width:var(--_popover-max-width);min-width:var(--_popover-min-width)}.popover:has(ds-menu){padding:0;--ds-menu-clip-radius: calc( var(--_popover-radius) - var(--border-width-default) )}.arrow{--_popover-arrow-size: var(--ds-popover-arrow-size, 7px);position:absolute;width:calc(var(--_popover-arrow-size) * 2);height:calc(var(--_popover-arrow-size) * 2);overflow:hidden;pointer-events:none}.arrow:before{content:\"\";position:absolute;width:var(--_popover-arrow-size);height:var(--_popover-arrow-size);background:var(--_popover-bg-color);border:var(--border-width-default) solid var(--_popover-border-color);transform:rotate(45deg);transform-origin:center}[data-placement=bottom] .arrow,[data-placement=bottom]>.arrow{top:calc(var(--_popover-arrow-size) * -1);left:var(--space-4)}[data-placement=bottom] .arrow:before,[data-placement=bottom]>.arrow:before{bottom:0;left:50%;translate:-50% 0;border-right:none;border-bottom:none}[data-placement=top] .arrow,[data-placement=top]>.arrow{bottom:calc(var(--_popover-arrow-size) * -1);left:var(--space-4)}[data-placement=top] .arrow:before,[data-placement=top]>.arrow:before{top:0;left:50%;translate:-50% 0;border-left:none;border-top:none}[data-placement=right] .arrow,[data-placement=right]>.arrow{left:calc(var(--_popover-arrow-size) * -1);top:var(--space-4)}[data-placement=right] .arrow:before,[data-placement=right]>.arrow:before{right:0;top:50%;translate:0 -50%;border-right:none;border-top:none}[data-placement=left] .arrow,[data-placement=left]>.arrow{right:calc(var(--_popover-arrow-size) * -1);top:var(--space-4)}[data-placement=left] .arrow:before,[data-placement=left]>.arrow:before{left:0;top:50%;translate:0 -50%;border-left:none;border-bottom:none}\n"] }]
153
155
  }], propDecorators: { panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], panelTrap: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkTrapFocus), { isSignal: true }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: false }] }], panelRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelRole", required: false }] }], panelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelLabel", required: false }] }] } });
154
156
  function buildPositions(placement, align, offsetPx) {
155
157
  const crossStart = align === 'start' ? 'start' : 'end';
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-popover.mjs","sources":["../../../src/lib/components/popover/popover.component.ts","../../../src/lib/components/popover/popover.component.html","../../../src/lib/components/popover/ids-group-ltd-ids-design-system-components-popover.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n clearOnDetach,\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\n\nexport type PopoverAlign = 'start' | 'end';\nexport type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';\n\n@Component({\n selector: 'ds-popover',\n standalone: true,\n imports: [CdkTrapFocus, NgTemplateOutlet],\n templateUrl: './popover.component.html',\n styleUrl: './popover.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n // Expose this popover as a DsOverlayCloseRef so projected content (e.g.\n // ds-menu-item) can close it via DI — the popover never references a child.\n providers: [\n {\n provide: DsOverlayCloseRef,\n useExisting: forwardRef(() => PopoverComponent),\n },\n ],\n})\nexport class PopoverComponent implements OnDestroy, DsOverlayCloseRef {\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly preview = inject(DsStaticPreview);\n protected readonly panelTpl = viewChild<TemplateRef<unknown>>('panel');\n private readonly panelTrap = viewChild(CdkTrapFocus);\n private ref: OverlayRef | null = null;\n private triggerElement: HTMLElement | null = null;\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-popover-bg-color',\n '--ds-popover-border-color',\n '--ds-popover-radius',\n '--ds-popover-shadow',\n '--ds-popover-padding',\n '--ds-popover-max-width',\n '--ds-popover-min-width',\n '--ds-popover-arrow-size',\n // Forwarded too: a projected ds-menu is portaled into the pane, so a\n // consumer scoping the menu's width in their own DOM can't reach it.\n '--ds-menu-min-width',\n '--ds-menu-max-width',\n ];\n\n /** Cross-axis alignment of the panel against the trigger. */\n readonly align = input<PopoverAlign>('start');\n /** Which side of the trigger the panel prefers to appear on. */\n readonly placement = input<PopoverPlacement>('bottom');\n /** Render a small caret pointing at the trigger. */\n readonly arrow = input(false, { transform: booleanAttribute });\n\n /** ARIA role for the panel (e.g. 'dialog' for interactive popovers). When set,\n * the panel traps focus and captures it on open; a keyboard (Escape) or\n * in-panel close returns focus to the trigger, while an outside click or\n * scroll leaves focus where it lands (non-modal). Leave null for plain,\n * non-interactive text popovers. */\n readonly panelRole = input<string | null>(null);\n /** Accessible name for the panel; pair with `panelRole`. */\n readonly panelLabel = input<string | null>(null);\n\n /** Open/closed state — for callers binding `aria-expanded` on the trigger. */\n readonly opened = signal(false);\n /** Resolved placement after the overlay positions — drives the arrow direction. */\n readonly resolvedPlacement = signal<PopoverPlacement>('bottom');\n\n toggle(trigger: HTMLElement): void {\n if (this.preview.staticPreview()) {\n return;\n }\n // Reads as \"a second click closes\", and that is also what makes ONE popover serve many\n // triggers: clicking another trigger while open dismisses the overlay through the CDK's\n // outside-pointer listener FIRST, so `ref` is already gone by the time this runs and the\n // call re-opens on the new trigger instead of closing. ds-table's column filters, row menus\n // and clipped-cell text all depend on that order.\n if (this.ref) {\n this.close();\n\n return;\n }\n\n this.triggerElement = trigger;\n const placement = this.placement();\n const arrowOffset = this.arrow() ? 8 : 4;\n\n const positionStrategy: FlexibleConnectedPositionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions(buildPositions(placement, this.align(), arrowOffset))\n .withViewportMargin(8);\n\n positionStrategy.positionChanges.subscribe((change) => {\n this.resolvedPlacement.set(\n overlayPlacementOf(\n change.connectionPair.overlayY,\n change.connectionPair.overlayX,\n ),\n );\n });\n\n const cfg: OverlayConfig = {\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n };\n this.ref = this.overlay.create(cfg);\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n forwardOverlayTokens(this.ref, this.host.nativeElement, this.panelTokens);\n closeOnOutsidePointer(\n this.ref,\n (target) => trigger.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.ref, () =>\n this.close('dismiss'),\n );\n clearOnDetach(this.ref, {\n current: () => this.ref,\n always: removeScrollClose,\n clear: () => {\n this.ref = null;\n this.opened.set(false);\n },\n });\n this.ref.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.ref.attach(new TemplatePortal(this.panelTpl()!, this.vcr));\n this.resolvedPlacement.set(placement);\n this.opened.set(true);\n if (this.panelRole()) {\n // Same initial focus as cdkTrapFocusAutoCapture, minus its destroy-time\n // restore — that restore steals focus on an outside/scroll close.\n this.focusTimer = setTimeout(() => {\n this.focusTimer = null;\n void this.panelTrap()?.focusTrap?.focusInitialElementWhenReady();\n });\n }\n }\n\n close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.ref) {\n return;\n }\n clearTimeout(this.focusTimer ?? undefined);\n this.focusTimer = null;\n const focusWasInPanel = focusIsInside(this.ref);\n disposeWithLeave(this.ref, cause);\n this.ref = null;\n this.opened.set(false);\n if (focusWasInPanel) {\n this.triggerElement?.focus({ preventScroll: true });\n }\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.focusTimer ?? undefined);\n this.ref?.dispose();\n this.ref = null;\n }\n}\n\nfunction buildPositions(\n placement: PopoverPlacement,\n align: PopoverAlign,\n offsetPx: number,\n): ConnectedPosition[] {\n const crossStart = align === 'start' ? 'start' : 'end';\n const crossEnd: 'start' | 'end' = align === 'start' ? 'end' : 'start';\n\n switch (placement) {\n case 'top':\n return [\n {\n originX: crossStart,\n originY: 'top',\n overlayX: crossStart,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n {\n originX: crossStart,\n originY: 'bottom',\n overlayX: crossStart,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n {\n originX: crossEnd,\n originY: 'top',\n overlayX: crossEnd,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n ];\n case 'left':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -offsetPx,\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: offsetPx,\n },\n ];\n case 'right':\n return [\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: offsetPx,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -offsetPx,\n },\n ];\n default: // bottom\n return [\n {\n originX: crossStart,\n originY: 'bottom',\n overlayX: crossStart,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n {\n originX: crossStart,\n originY: 'top',\n overlayX: crossStart,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n {\n originX: crossEnd,\n originY: 'bottom',\n overlayX: crossEnd,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n ];\n }\n}\n","<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active — duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MA0Da,gBAAgB,CAAA;AACV,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAA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,QAAQ;AAClB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA;aACF;;AAEP;;AE5SA;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-popover.mjs","sources":["../../../src/lib/components/popover/popover.component.ts","../../../src/lib/components/popover/popover.component.html","../../../src/lib/components/popover/ids-group-ltd-ids-design-system-components-popover.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n clearOnDetach,\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\n\nexport type PopoverAlign = 'start' | 'end';\nexport type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';\n\n@Component({\n selector: 'ds-popover',\n standalone: true,\n imports: [CdkTrapFocus, NgTemplateOutlet],\n templateUrl: './popover.component.html',\n styleUrl: './popover.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n // Expose this popover as a DsOverlayCloseRef so projected content (e.g.\n // ds-menu-item) can close it via DI — the popover never references a child.\n providers: [\n {\n provide: DsOverlayCloseRef,\n useExisting: forwardRef(() => PopoverComponent),\n },\n ],\n})\nexport class PopoverComponent implements OnDestroy, DsOverlayCloseRef {\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly preview = inject(DsStaticPreview);\n protected readonly panelTpl = viewChild<TemplateRef<unknown>>('panel');\n private readonly panelTrap = viewChild(CdkTrapFocus);\n private ref: OverlayRef | null = null;\n private triggerElement: HTMLElement | null = null;\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it.\n * Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`\n * (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */\n private readonly panelTokens = [\n '--ds-popover-bg-color',\n '--ds-popover-border-color',\n '--ds-popover-radius',\n '--ds-popover-shadow',\n '--ds-popover-padding',\n '--ds-popover-max-width',\n '--ds-popover-min-width',\n '--ds-popover-arrow-size',\n // Forwarded too: a projected ds-menu is portaled into the pane, so a\n // consumer scoping the menu's width in their own DOM can't reach it.\n '--ds-menu-min-width',\n '--ds-menu-max-width',\n ];\n\n /** Cross-axis alignment of the panel against the trigger. */\n readonly align = input<PopoverAlign>('start');\n /** Which side of the trigger the panel prefers to appear on. */\n readonly placement = input<PopoverPlacement>('bottom');\n /** Render a small caret pointing at the trigger. */\n readonly arrow = input(false, { transform: booleanAttribute });\n\n /** ARIA role for the panel (e.g. 'dialog' for interactive popovers). When set,\n * the panel traps focus and captures it on open; a keyboard (Escape) or\n * in-panel close returns focus to the trigger, while an outside click or\n * scroll leaves focus where it lands (non-modal). Leave null for plain,\n * non-interactive text popovers. */\n readonly panelRole = input<string | null>(null);\n /** Accessible name for the panel; pair with `panelRole`. */\n readonly panelLabel = input<string | null>(null);\n\n /** Open/closed state — for callers binding `aria-expanded` on the trigger. */\n readonly opened = signal(false);\n /** Resolved placement after the overlay positions — drives the arrow direction. */\n readonly resolvedPlacement = signal<PopoverPlacement>('bottom');\n\n toggle(trigger: HTMLElement): void {\n if (this.preview.staticPreview()) {\n return;\n }\n // Reads as \"a second click closes\", and that is also what makes ONE popover serve many\n // triggers: clicking another trigger while open dismisses the overlay through the CDK's\n // outside-pointer listener FIRST, so `ref` is already gone by the time this runs and the\n // call re-opens on the new trigger instead of closing. ds-table's column filters, row menus\n // and clipped-cell text all depend on that order.\n if (this.ref) {\n this.close();\n\n return;\n }\n\n this.triggerElement = trigger;\n const placement = this.placement();\n const arrowOffset = this.arrow() ? 8 : 4;\n\n const positionStrategy: FlexibleConnectedPositionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions(buildPositions(placement, this.align(), arrowOffset))\n .withViewportMargin(8);\n\n positionStrategy.positionChanges.subscribe((change) => {\n this.resolvedPlacement.set(\n overlayPlacementOf(\n change.connectionPair.overlayY,\n change.connectionPair.overlayX,\n ),\n );\n });\n\n const cfg: OverlayConfig = {\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n };\n this.ref = this.overlay.create(cfg);\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n forwardOverlayTokens(this.ref, this.host.nativeElement, this.panelTokens);\n closeOnOutsidePointer(\n this.ref,\n (target) => trigger.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.ref, () =>\n this.close('dismiss'),\n );\n clearOnDetach(this.ref, {\n current: () => this.ref,\n always: removeScrollClose,\n clear: () => {\n this.ref = null;\n this.opened.set(false);\n },\n });\n this.ref.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.ref.attach(new TemplatePortal(this.panelTpl()!, this.vcr));\n this.resolvedPlacement.set(placement);\n this.opened.set(true);\n if (this.panelRole()) {\n // Same initial focus as cdkTrapFocusAutoCapture, minus its destroy-time\n // restore — that restore steals focus on an outside/scroll close.\n this.focusTimer = setTimeout(() => {\n this.focusTimer = null;\n void this.panelTrap()?.focusTrap?.focusInitialElementWhenReady();\n });\n }\n }\n\n close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.ref) {\n return;\n }\n clearTimeout(this.focusTimer ?? undefined);\n this.focusTimer = null;\n const focusWasInPanel = focusIsInside(this.ref);\n disposeWithLeave(this.ref, cause);\n this.ref = null;\n this.opened.set(false);\n if (focusWasInPanel) {\n this.triggerElement?.focus({ preventScroll: true });\n }\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.focusTimer ?? undefined);\n this.ref?.dispose();\n this.ref = null;\n }\n}\n\nfunction buildPositions(\n placement: PopoverPlacement,\n align: PopoverAlign,\n offsetPx: number,\n): ConnectedPosition[] {\n const crossStart = align === 'start' ? 'start' : 'end';\n const crossEnd: 'start' | 'end' = align === 'start' ? 'end' : 'start';\n\n switch (placement) {\n case 'top':\n return [\n {\n originX: crossStart,\n originY: 'top',\n overlayX: crossStart,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n {\n originX: crossStart,\n originY: 'bottom',\n overlayX: crossStart,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n {\n originX: crossEnd,\n originY: 'top',\n overlayX: crossEnd,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n ];\n case 'left':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -offsetPx,\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: offsetPx,\n },\n ];\n case 'right':\n return [\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: offsetPx,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -offsetPx,\n },\n ];\n default: // bottom\n return [\n {\n originX: crossStart,\n originY: 'bottom',\n overlayX: crossStart,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n {\n originX: crossStart,\n originY: 'top',\n overlayX: crossStart,\n overlayY: 'bottom',\n offsetY: -offsetPx,\n },\n {\n originX: crossEnd,\n originY: 'bottom',\n overlayX: crossEnd,\n overlayY: 'top',\n offsetY: offsetPx,\n },\n ];\n }\n}\n","<!-- Projected content is captured ONCE here and stamped into whichever render\n site is active — duplicating ng-content across branches breaks projection. -->\n<ng-template #content>\n <ng-content />\n</ng-template>\n\n@if (preview.staticPreview()) {\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? placement() : null\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n}\n\n<ng-template #panel>\n <div\n class=\"popover\"\n [attr.role]=\"panelRole()\"\n [attr.aria-label]=\"panelLabel()\"\n [class.has-arrow]=\"arrow()\"\n [attr.data-placement]=\"arrow() ? resolvedPlacement() : null\"\n [cdkTrapFocus]=\"!!panelRole()\">\n @if (arrow()) {\n <span class=\"arrow\"></span>\n }\n\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MA0Da,gBAAgB,CAAA;AACV,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,EAAC,UAAuB,EAAC;AACpC,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;AACjC,IAAA,QAAQ,GAAG,SAAS,CAAuB,OAAO,+EAAC;AACrD,IAAA,SAAS,GAAG,SAAS,CAAC,YAAY,gFAAC;IAC5C,GAAG,GAAsB,IAAI;IAC7B,cA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AAA,QAAQ,EAAE,KAAK;AACf,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA;aACF;AACH,QAAA,KAAK,OAAO;YACV,OAAO;AACL,gBAAA;AACE,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,QAAQ,EAAE,OAAO;AACjB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA;AACD,gBAAA;AACE,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,QAAQ,EAAE,KAAK;oBACf,OAAO,EAAE,CAAC,QAAQ;AACnB,iBAAA;aACF;AACH,QAAA;YACE,OAAO;AACL,gBAAA;AACE,oBAAA,OAAO,EAAE,UAAU;AACnB,oBAAA,OAAO,EAAE,QAAQ;AACjB,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA;AACD,gBAAA;AACE,oBAAA,OAAO,EAAE,UAAU;AACnB,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,QAAQ,EAAE,QAAQ;oBAClB,OAAO,EAAE,CAAC,QAAQ;AACnB,iBAAA;AACD,gBAAA;AACE,oBAAA,OAAO,EAAE,QAAQ;AACjB,oBAAA,OAAO,EAAE,QAAQ;AACjB,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA;aACF;;AAEP;;AE9SA;;AAEG;;;;"}
@@ -208,7 +208,7 @@ class RadioGroupComponent extends DsControlValueAccessor {
208
208
  provide: RADIO_GROUP,
209
209
  useExisting: forwardRef(() => RadioGroupComponent),
210
210
  },
211
- ], queries: [{ propertyName: "radios", predicate: RadioComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n", styles: [":host{display:flex;flex-direction:column;gap:var(--field-label-gap)}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking)}:host([data-field-state=error]) .label{color:var(--error-text)}:host([data-field-state=warning]) .label{color:var(--warning-text)}.radios{display:flex;flex-direction:column;gap:var(--space-2, 8px)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }] });
211
+ ], queries: [{ propertyName: "radios", predicate: RadioComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n", styles: [":host{display:flex;flex-direction:column;gap:var(--field-label-gap)}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}:host([data-field-state=error]) .label{color:var(--error-text)}:host([data-field-state=warning]) .label{color:var(--warning-text)}.radios{display:flex;flex-direction:column;gap:var(--space-2, 8px)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }] });
212
212
  }
213
213
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: RadioGroupComponent, decorators: [{
214
214
  type: Component,
@@ -229,7 +229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
229
229
  provide: RADIO_GROUP,
230
230
  useExisting: forwardRef(() => RadioGroupComponent),
231
231
  },
232
- ], template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n", styles: [":host{display:flex;flex-direction:column;gap:var(--field-label-gap)}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking)}:host([data-field-state=error]) .label{color:var(--error-text)}:host([data-field-state=warning]) .label{color:var(--warning-text)}.radios{display:flex;flex-direction:column;gap:var(--space-2, 8px)}\n"] }]
232
+ ], template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n", styles: [":host{display:flex;flex-direction:column;gap:var(--field-label-gap)}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}:host([data-field-state=error]) .label{color:var(--error-text)}:host([data-field-state=warning]) .label{color:var(--warning-text)}.radios{display:flex;flex-direction:column;gap:var(--space-2, 8px)}\n"] }]
233
233
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], radios: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => RadioComponent), { isSignal: true }] }] } });
234
234
 
235
235
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-radio-group.mjs","sources":["../../../src/lib/components/radio-group/radio-group.token.ts","../../../src/lib/components/radio-group/radio/radio.component.ts","../../../src/lib/components/radio-group/radio/radio.component.html","../../../src/lib/components/radio-group/radio-group.component.ts","../../../src/lib/components/radio-group/radio-group.component.html","../../../src/lib/components/radio-group/ids-group-ltd-ids-design-system-components-radio-group.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-radio reads from its parent ds-radio-group, injected via\n * token to avoid a circular import (radio-group → RadioComponent for\n * contentChildren; radio → RadioGroupComponent for group injection). */\nexport interface RadioGroupContract {\n readonly value: () => unknown;\n readonly groupName: () => string;\n readonly isDisabled: () => boolean;\n isTabbable(radio: RadioGroupChild): boolean;\n select(value: unknown): void;\n}\n\n/** Contract the radio-group reads back from each projected radio. */\nexport interface RadioGroupChild {\n readonly value: () => unknown;\n readonly effectiveDisabled: () => boolean;\n focus(): void;\n}\n\nexport const RADIO_GROUP = new InjectionToken<RadioGroupContract>(\n 'RADIO_GROUP',\n);\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { DsFieldBase } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { RADIO_GROUP } from '../../radio-group/radio-group.token';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-radio',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './radio.component.html',\n styleUrl: './radio.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class RadioComponent extends DsFieldBase {\n /** The ONLY way to drive a lone radio: this is deliberately not a `ControlValueAccessor`, so\n * `[formControl]` and `ngModel` do not bind to it — inside `ds-radio-group` the GROUP is the\n * form control, and a second accessor on one option would fight it. Inside a group this input\n * is not read at all. */\n readonly checked = model<boolean>(false);\n /** Lets a checked standalone radio be cleared by clicking it again. Off by default, and\n * ignored inside `ds-radio-group`: there a radio is one option of a choice, and clearing it\n * would leave the group with no value through a gesture the group cannot see. */\n readonly deselectable = input(false, { transform: booleanAttribute });\n /** A disabled parent `ds-radio-group` also disables it, whatever this is set to. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */\n readonly name = input<string>('');\n /** Value compared against the group's selection when inside `ds-radio-group`. */\n readonly value = input<unknown>('');\n /** Overrides the auto-generated id used for the input and its label's `for`. */\n readonly inputId = input<string | null>(null);\n /** Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Inline label rendered beside the dot and wired via for/id. Omit to bring\n * your own <label>. */\n readonly label = input<string>('');\n /** Accessible name for a control with no visible label — the row's `<label>` collapses when it\n * is empty, leaving nothing to name it. Set beside a label it OVERRIDES the label, per ARIA. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly uid = nextControlId('ds-radio');\n protected readonly controlId = computed(() => this.inputId() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.effectiveDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n /** Only name via aria-label when there is no visible `<label for>` to do it. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || null,\n );\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n /** Injected via token to avoid circular import with RadioGroupComponent. */\n protected readonly group = inject(RADIO_GROUP, { optional: true });\n\n readonly effectiveDisabled = computed(\n () => this.group?.isDisabled() || this.disabled(),\n );\n protected readonly effectiveName = computed(\n () => this.group?.groupName() ?? this.name(),\n );\n protected readonly isChecked = computed(() =>\n this.group ? this.group.value() === this.value() : this.checked(),\n );\n\n protected readonly fieldClass = computed(\n () => `radio-field size-${this.sizeResolved()}`,\n );\n\n /** Exposed so the group can implement roving tabindex. */\n readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('inputRef');\n\n protected get tabIndexAttr(): 0 | -1 {\n if (!this.group) {\n return 0;\n }\n\n return this.group.isTabbable(this) ? 0 : -1;\n }\n\n /** Called by the group's keyboard handler to focus this radio's input. */\n focus(): void {\n this.inputElement()?.nativeElement.focus();\n }\n\n // A radio fires no `change` when an already-checked one is clicked, so the clear cannot ride on\n // onSelect. Click runs before change, and on an unchecked radio isChecked() is still false here.\n protected onClick(): void {\n if (this.effectiveDisabled() || this.group || !this.deselectable()) {\n return;\n }\n if (this.isChecked()) {\n this.checked.set(false);\n }\n }\n\n protected onSelect(): void {\n if (this.effectiveDisabled()) {\n return;\n }\n if (this.group) {\n this.group.select(this.value());\n } else {\n this.checked.set(true);\n }\n }\n}\n","<div [class]=\"fieldClass()\">\n <span\n class=\"control-line\"\n [class.is-disabled]=\"effectiveDisabled()\">\n <input\n #inputRef\n type=\"radio\"\n class=\"radio\"\n [checked]=\"isChecked()\"\n [disabled]=\"effectiveDisabled()\"\n [attr.name]=\"effectiveName() || null\"\n [attr.value]=\"value() ?? null\"\n [attr.id]=\"controlId()\"\n [attr.tabindex]=\"tabIndexAttr\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n (change)=\"onSelect()\"\n (click)=\"onClick()\" />\n\n <label\n class=\"control-text\"\n [attr.for]=\"controlId()\">\n @if (label()) {\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n }\n } @else {\n <ng-content></ng-content>\n }\n </label>\n </span>\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n forwardRef,\n input,\n model,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { RadioComponent } from './radio/radio.component';\nimport {\n RADIO_GROUP,\n type RadioGroupChild,\n type RadioGroupContract,\n} from './radio-group.token';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-radio-group',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './radio-group.component.html',\n styleUrl: './radio-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'radiogroup',\n '[attr.aria-label]': 'ariaLabel() || label() || null',\n '[attr.aria-describedby]': 'hintId()',\n '[attr.aria-invalid]': \"invalidResolved() ? 'true' : null\",\n '[attr.data-field-state]': 'controlState()',\n '(keydown)': 'onKeydown($event)',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioGroupComponent),\n multi: true,\n },\n {\n provide: RADIO_GROUP,\n useExisting: forwardRef(() => RadioGroupComponent),\n },\n ],\n})\nexport class RadioGroupComponent\n extends DsControlValueAccessor<unknown>\n implements RadioGroupContract\n{\n /** Selected radio value; two-way bound. */\n readonly value = model<unknown>(null);\n /** Native `name` shared by every radio in the group. */\n readonly name = input<string | null>(null);\n /** Disables the whole group. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the group when no visible label is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Visible group label; omit to supply your own. */\n readonly label = input<string>('');\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly uid = nextControlId('ds-radio-group');\n readonly groupName = computed(() => this.name() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n protected readonly controlState = this.fieldMessage.controlState;\n\n private readonly radios = contentChildren(RadioComponent);\n\n private get enabledRadios(): RadioGroupChild[] {\n return (this.radios() as unknown as RadioGroupChild[]).filter(\n (radio) => !radio.effectiveDisabled(),\n );\n }\n\n isTabbable(radio: RadioGroupChild): boolean {\n const currentValue = this.value();\n const allRadios = this.radios() as unknown as RadioGroupChild[];\n\n if (currentValue !== null && currentValue !== undefined) {\n const matchIndex = allRadios.findIndex((r) => r.value() === currentValue);\n if (matchIndex !== -1) {\n return allRadios[matchIndex] === radio;\n }\n }\n\n const firstEnabled = allRadios.find((r) => !r.effectiveDisabled());\n\n return firstEnabled === radio;\n }\n\n select(value: unknown): void {\n this.value.set(value);\n this.markTouched();\n\n const selected = (this.radios() as unknown as RadioGroupChild[]).find(\n (radio) => radio.value() === value,\n );\n selected?.focus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const key = event.key;\n // Enter is deliberately absent: the group sits in forms, where Enter is the\n // submit and swallowing it leaves the form with no keyboard way out.\n if (\n !['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft', ' '].includes(key)\n ) {\n return;\n }\n // A text field beside the radios (the \"Other: ___\" row) types its own keys.\n if (isTextEntryTarget(event)) {\n return;\n }\n\n const enabled = this.enabledRadios;\n if (!enabled.length) {\n return;\n }\n\n event.preventDefault();\n\n if (key === ' ') {\n const allRadios = this.radios() as unknown as RadioGroupChild[];\n const focused = allRadios.find((radio) => {\n const component = radio as unknown as RadioComponent;\n\n return (\n component.inputElement()?.nativeElement === document.activeElement\n );\n });\n if (focused) {\n this.select(focused.value());\n }\n\n return;\n }\n\n const forward = key === 'ArrowDown' || key === 'ArrowRight';\n const currentValue = this.value();\n\n let currentIndex = enabled.findIndex((radio) => {\n const component = radio as unknown as RadioComponent;\n\n return component.inputElement()?.nativeElement === document.activeElement;\n });\n\n if (currentIndex === -1) {\n currentIndex = enabled.findIndex(\n (radio) => radio.value() === currentValue,\n );\n }\n\n let nextIndex: number;\n if (currentIndex === -1) {\n nextIndex = forward ? 0 : enabled.length - 1;\n } else {\n nextIndex = forward\n ? (currentIndex + 1) % enabled.length\n : (currentIndex - 1 + enabled.length) % enabled.length;\n }\n\n const target = enabled[nextIndex];\n this.select(target.value());\n }\n}\n","@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAoBa,WAAW,GAAG,IAAI,cAAc,CAC3C,aAAa;;ACMT,MAAO,cAAe,SAAQ,WAAW,CAAA;AAC7C;;;AAG0B;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AACxC;;AAEkF;IACzE,YAAY,GAAG,KAAK,CAAC,KAAK,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAE5D,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,I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CAAC;AAClD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,WAAW;AACpB,4BAAA,WAAW,EAAE,UAAU,CAAC,yBAAyB,CAAC;AACnD,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,wTAAA,EAAA,MAAA,EAAA,CAAA,k5BAAA,CAAA,EAAA;wlBAsCyC,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtF1D;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-radio-group.mjs","sources":["../../../src/lib/components/radio-group/radio-group.token.ts","../../../src/lib/components/radio-group/radio/radio.component.ts","../../../src/lib/components/radio-group/radio/radio.component.html","../../../src/lib/components/radio-group/radio-group.component.ts","../../../src/lib/components/radio-group/radio-group.component.html","../../../src/lib/components/radio-group/ids-group-ltd-ids-design-system-components-radio-group.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-radio reads from its parent ds-radio-group, injected via\n * token to avoid a circular import (radio-group → RadioComponent for\n * contentChildren; radio → RadioGroupComponent for group injection). */\nexport interface RadioGroupContract {\n readonly value: () => unknown;\n readonly groupName: () => string;\n readonly isDisabled: () => boolean;\n isTabbable(radio: RadioGroupChild): boolean;\n select(value: unknown): void;\n}\n\n/** Contract the radio-group reads back from each projected radio. */\nexport interface RadioGroupChild {\n readonly value: () => unknown;\n readonly effectiveDisabled: () => boolean;\n focus(): void;\n}\n\nexport const RADIO_GROUP = new InjectionToken<RadioGroupContract>(\n 'RADIO_GROUP',\n);\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { DsFieldBase } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { RADIO_GROUP } from '../../radio-group/radio-group.token';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-radio',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './radio.component.html',\n styleUrl: './radio.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class RadioComponent extends DsFieldBase {\n /** The ONLY way to drive a lone radio: this is deliberately not a `ControlValueAccessor`, so\n * `[formControl]` and `ngModel` do not bind to it — inside `ds-radio-group` the GROUP is the\n * form control, and a second accessor on one option would fight it. Inside a group this input\n * is not read at all. */\n readonly checked = model<boolean>(false);\n /** Lets a checked standalone radio be cleared by clicking it again. Off by default, and\n * ignored inside `ds-radio-group`: there a radio is one option of a choice, and clearing it\n * would leave the group with no value through a gesture the group cannot see. */\n readonly deselectable = input(false, { transform: booleanAttribute });\n /** A disabled parent `ds-radio-group` also disables it, whatever this is set to. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */\n readonly name = input<string>('');\n /** Value compared against the group's selection when inside `ds-radio-group`. */\n readonly value = input<unknown>('');\n /** Overrides the auto-generated id used for the input and its label's `for`. */\n readonly inputId = input<string | null>(null);\n /** Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Inline label rendered beside the dot and wired via for/id. Omit to bring\n * your own <label>. */\n readonly label = input<string>('');\n /** Accessible name for a control with no visible label — the row's `<label>` collapses when it\n * is empty, leaving nothing to name it. Set beside a label it OVERRIDES the label, per ARIA. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly uid = nextControlId('ds-radio');\n protected readonly controlId = computed(() => this.inputId() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.effectiveDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n /** Only name via aria-label when there is no visible `<label for>` to do it. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || null,\n );\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n /** Injected via token to avoid circular import with RadioGroupComponent. */\n protected readonly group = inject(RADIO_GROUP, { optional: true });\n\n readonly effectiveDisabled = computed(\n () => this.group?.isDisabled() || this.disabled(),\n );\n protected readonly effectiveName = computed(\n () => this.group?.groupName() ?? this.name(),\n );\n protected readonly isChecked = computed(() =>\n this.group ? this.group.value() === this.value() : this.checked(),\n );\n\n protected readonly fieldClass = computed(\n () => `radio-field size-${this.sizeResolved()}`,\n );\n\n /** Exposed so the group can implement roving tabindex. */\n readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('inputRef');\n\n protected get tabIndexAttr(): 0 | -1 {\n if (!this.group) {\n return 0;\n }\n\n return this.group.isTabbable(this) ? 0 : -1;\n }\n\n /** Called by the group's keyboard handler to focus this radio's input. */\n focus(): void {\n this.inputElement()?.nativeElement.focus();\n }\n\n // A radio fires no `change` when an already-checked one is clicked, so the clear cannot ride on\n // onSelect. Click runs before change, and on an unchecked radio isChecked() is still false here.\n protected onClick(): void {\n if (this.effectiveDisabled() || this.group || !this.deselectable()) {\n return;\n }\n if (this.isChecked()) {\n this.checked.set(false);\n }\n }\n\n protected onSelect(): void {\n if (this.effectiveDisabled()) {\n return;\n }\n if (this.group) {\n this.group.select(this.value());\n } else {\n this.checked.set(true);\n }\n }\n}\n","<div [class]=\"fieldClass()\">\n <span\n class=\"control-line\"\n [class.is-disabled]=\"effectiveDisabled()\">\n <input\n #inputRef\n type=\"radio\"\n class=\"radio\"\n [checked]=\"isChecked()\"\n [disabled]=\"effectiveDisabled()\"\n [attr.name]=\"effectiveName() || null\"\n [attr.value]=\"value() ?? null\"\n [attr.id]=\"controlId()\"\n [attr.tabindex]=\"tabIndexAttr\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n (change)=\"onSelect()\"\n (click)=\"onClick()\" />\n\n <label\n class=\"control-text\"\n [attr.for]=\"controlId()\">\n @if (label()) {\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n }\n } @else {\n <ng-content></ng-content>\n }\n </label>\n </span>\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n forwardRef,\n input,\n model,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { RadioComponent } from './radio/radio.component';\nimport {\n RADIO_GROUP,\n type RadioGroupChild,\n type RadioGroupContract,\n} from './radio-group.token';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-radio-group',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './radio-group.component.html',\n styleUrl: './radio-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'radiogroup',\n '[attr.aria-label]': 'ariaLabel() || label() || null',\n '[attr.aria-describedby]': 'hintId()',\n '[attr.aria-invalid]': \"invalidResolved() ? 'true' : null\",\n '[attr.data-field-state]': 'controlState()',\n '(keydown)': 'onKeydown($event)',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioGroupComponent),\n multi: true,\n },\n {\n provide: RADIO_GROUP,\n useExisting: forwardRef(() => RadioGroupComponent),\n },\n ],\n})\nexport class RadioGroupComponent\n extends DsControlValueAccessor<unknown>\n implements RadioGroupContract\n{\n /** Selected radio value; two-way bound. */\n readonly value = model<unknown>(null);\n /** Native `name` shared by every radio in the group. */\n readonly name = input<string | null>(null);\n /** Disables the whole group. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the group when no visible label is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Visible group label; omit to supply your own. */\n readonly label = input<string>('');\n\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly uid = nextControlId('ds-radio-group');\n readonly groupName = computed(() => this.name() ?? this.uid);\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n protected readonly controlState = this.fieldMessage.controlState;\n\n private readonly radios = contentChildren(RadioComponent);\n\n private get enabledRadios(): RadioGroupChild[] {\n return (this.radios() as unknown as RadioGroupChild[]).filter(\n (radio) => !radio.effectiveDisabled(),\n );\n }\n\n isTabbable(radio: RadioGroupChild): boolean {\n const currentValue = this.value();\n const allRadios = this.radios() as unknown as RadioGroupChild[];\n\n if (currentValue !== null && currentValue !== undefined) {\n const matchIndex = allRadios.findIndex((r) => r.value() === currentValue);\n if (matchIndex !== -1) {\n return allRadios[matchIndex] === radio;\n }\n }\n\n const firstEnabled = allRadios.find((r) => !r.effectiveDisabled());\n\n return firstEnabled === radio;\n }\n\n select(value: unknown): void {\n this.value.set(value);\n this.markTouched();\n\n const selected = (this.radios() as unknown as RadioGroupChild[]).find(\n (radio) => radio.value() === value,\n );\n selected?.focus();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const key = event.key;\n // Enter is deliberately absent: the group sits in forms, where Enter is the\n // submit and swallowing it leaves the form with no keyboard way out.\n if (\n !['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft', ' '].includes(key)\n ) {\n return;\n }\n // A text field beside the radios (the \"Other: ___\" row) types its own keys.\n if (isTextEntryTarget(event)) {\n return;\n }\n\n const enabled = this.enabledRadios;\n if (!enabled.length) {\n return;\n }\n\n event.preventDefault();\n\n if (key === ' ') {\n const allRadios = this.radios() as unknown as RadioGroupChild[];\n const focused = allRadios.find((radio) => {\n const component = radio as unknown as RadioComponent;\n\n return (\n component.inputElement()?.nativeElement === document.activeElement\n );\n });\n if (focused) {\n this.select(focused.value());\n }\n\n return;\n }\n\n const forward = key === 'ArrowDown' || key === 'ArrowRight';\n const currentValue = this.value();\n\n let currentIndex = enabled.findIndex((radio) => {\n const component = radio as unknown as RadioComponent;\n\n return component.inputElement()?.nativeElement === document.activeElement;\n });\n\n if (currentIndex === -1) {\n currentIndex = enabled.findIndex(\n (radio) => radio.value() === currentValue,\n );\n }\n\n let nextIndex: number;\n if (currentIndex === -1) {\n nextIndex = forward ? 0 : enabled.length - 1;\n } else {\n nextIndex = forward\n ? (currentIndex + 1) % enabled.length\n : (currentIndex - 1 + enabled.length) % enabled.length;\n }\n\n const target = enabled[nextIndex];\n this.select(target.value());\n }\n}\n","@if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAoBa,WAAW,GAAG,IAAI,cAAc,CAC3C,aAAa;;ACMT,MAAO,cAAe,SAAQ,WAAW,CAAA;AAC7C;;;AAG0B;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AACxC;;AAEkF;IACzE,YAAY,GAAG,KAAK,CAAC,KAAK,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAE5D,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAU,EAAE,4EAAC;;AAE1B,IAAA,OAAO,GAAG,KAAK,CAAgB,IAAI,8EAAC;;AAEpC,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;;IAEQ,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;AACwB;AACf,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;AAClC;AACiG;AACxF,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAE5B,IAAA,GAAG,GAAG,aAAa,CAAC,UAAU,CAAC;AAC/B,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,gFAAC;IACtD,MAAM,GAAG,QAAQ,CAAC,MACnC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,GAAG,CAAA,EAAG,IAAI,CAAC,GAAG,CAAA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