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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/CHANGELOG.md +214 -20
  2. package/{docs/agent → agent}/charts/ds-bar-chart.md +1 -1
  3. package/agent/charts/ds-chart.md +10 -0
  4. package/{docs/agent → agent}/charts/ds-column-chart.md +1 -1
  5. package/{docs/agent → agent}/charts/ds-funnel-chart.md +1 -1
  6. package/{docs/agent → agent}/charts/ds-heatmap-chart.md +1 -1
  7. package/{docs/agent → agent}/charts/ds-line-chart.md +1 -1
  8. package/{docs/agent → agent}/charts/ds-pie-chart.md +1 -1
  9. package/{docs/agent → agent}/charts/ds-scatter-chart.md +1 -1
  10. package/{docs/agent → agent}/charts/ds-waterfall-chart.md +1 -1
  11. package/{docs/agent → agent}/feedback/ds-empty-state.md +1 -1
  12. package/agent/forms/ds-autocomplete.md +13 -0
  13. package/{docs/agent → agent}/forms/ds-button.md +1 -1
  14. package/{docs/agent → agent}/forms/ds-checkbox.md +1 -1
  15. package/agent/forms/ds-color-picker.md +8 -0
  16. package/{docs/agent → agent}/forms/ds-date-picker.md +1 -1
  17. package/{docs/agent → agent}/forms/ds-input.md +1 -1
  18. package/{docs/agent → agent}/forms/ds-multi-select.md +1 -1
  19. package/agent/forms/ds-otp-input.md +8 -0
  20. package/{docs/agent → agent}/forms/ds-radio-group.md +1 -1
  21. package/{docs/agent → agent}/forms/ds-radio.md +1 -1
  22. package/{docs/agent → agent}/forms/ds-search.md +1 -1
  23. package/{docs/agent → agent}/forms/ds-segmented.md +1 -1
  24. package/{docs/agent → agent}/forms/ds-select.md +1 -1
  25. package/{docs/agent → agent}/forms/ds-slider.md +1 -1
  26. package/{docs/agent → agent}/forms/ds-switch.md +1 -1
  27. package/{docs/agent → agent}/forms/ds-textarea.md +1 -1
  28. package/agent/forms/ds-time-picker.md +8 -0
  29. package/{docs/agent → agent}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  30. package/{docs/agent → agent}/overlays/ds-definition-term.md +1 -1
  31. package/agent/overlays/ds-tooltip.md +12 -0
  32. package/{docs/agent → agent}/platform/ds-config.md +2 -1
  33. package/{docs/agent → agent}/tables/ds-table.md +1 -1
  34. package/components.md +36 -35
  35. package/design-system.md +2 -2
  36. package/eslint/deprecated-api.json +224 -0
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +9 -6
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +12 -11
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +12 -12
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -4
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -4
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +2 -2
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +17 -22
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +3 -11
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +7 -3
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +4 -4
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +4 -4
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -4
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +7 -3
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +6 -6
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +17 -8
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +9 -6
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -4
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -7
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +5 -3
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -4
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -6
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +4 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -4
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +7 -4
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +52 -0
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +1 -0
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -4
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +71 -25
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -4
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +276 -15
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -6
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +84 -31
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +4 -4
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +76 -45
  208. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -2
  210. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  212. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -1
  214. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  215. package/migrations/0.10.0.json +21 -23
  216. package/migrations/0.10.2.json +3 -5
  217. package/migrations/0.10.3.json +1 -3
  218. package/migrations/0.11.0.json +4 -6
  219. package/migrations/0.11.1.json +1 -3
  220. package/migrations/0.13.0.json +4 -4
  221. package/migrations/0.13.4.json +20 -4
  222. package/migrations/0.14.0.json +1 -2
  223. package/migrations/0.15.1.json +5 -5
  224. package/migrations/0.15.3.json +175 -0
  225. package/migrations/0.6.2.json +5 -3
  226. package/migrations/0.7.1.json +1 -2
  227. package/migrations/0.8.0.json +2 -2
  228. package/migrations/0.9.0.json +14 -19
  229. package/migrations/1.0.0.json +374 -0
  230. package/migrations/README.md +11 -11
  231. package/package.json +9 -1
  232. package/schematics/check-overrides/surface.json +12 -1
  233. package/styles/_component-base.scss +29 -39
  234. package/styles/_dropdown-overlay.scss +7 -3
  235. package/styles/_focus.scss +4 -4
  236. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  237. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +2 -0
  238. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +1 -1
  239. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +1 -2
  240. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +6 -2
  241. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +1 -0
  242. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
  243. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -0
  244. package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +27 -0
  245. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -9
  246. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +48 -3
  247. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +1 -0
  248. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +44 -12
  249. package/types/ids-group-ltd-ids-design-system-components.d.ts +36 -21
  250. package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
  251. package/types/ids-group-ltd-ids-design-system.d.ts +5 -4
  252. package/docs/agent/charts/ds-chart.md +0 -10
  253. package/docs/agent/forms/ds-autocomplete.md +0 -13
  254. package/docs/agent/forms/ds-color-picker.md +0 -8
  255. package/docs/agent/forms/ds-otp-input.md +0 -8
  256. package/docs/agent/forms/ds-time-picker.md +0 -8
  257. package/docs/agent/overlays/ds-tooltip.md +0 -12
  258. /package/{docs/agent → agent}/INDEX.md +0 -0
  259. /package/{docs/agent → agent}/charts/chart-colour-which-palette-a-chart-takes.md +0 -0
  260. /package/{docs/agent → agent}/charts/chart-frame-the-box-a-chart-draws-around-itself.md +0 -0
  261. /package/{docs/agent → agent}/charts/column-series-component.md +0 -0
  262. /package/{docs/agent → agent}/charts/ds-chart-data-table.md +0 -0
  263. /package/{docs/agent → agent}/charts/ds-config.md +0 -0
  264. /package/{docs/agent → agent}/charts/line-series-component.md +0 -0
  265. /package/{docs/agent → agent}/charts/reference-label-component.md +0 -0
  266. /package/{docs/agent → agent}/charts/reference-line-component.md +0 -0
  267. /package/{docs/agent → agent}/charts/series-annotation-component.md +0 -0
  268. /package/{docs/agent → agent}/domain/ds-w3w.md +0 -0
  269. /package/{docs/agent → agent}/feedback/ds-alert.md +0 -0
  270. /package/{docs/agent → agent}/feedback/ds-avatar-group.md +0 -0
  271. /package/{docs/agent → agent}/feedback/ds-avatar.md +0 -0
  272. /package/{docs/agent → agent}/feedback/ds-badge.md +0 -0
  273. /package/{docs/agent → agent}/feedback/ds-banner.md +0 -0
  274. /package/{docs/agent → agent}/feedback/ds-bar.md +0 -0
  275. /package/{docs/agent → agent}/feedback/ds-description-item.md +0 -0
  276. /package/{docs/agent → agent}/feedback/ds-description-list.md +0 -0
  277. /package/{docs/agent → agent}/feedback/ds-list-item.md +0 -0
  278. /package/{docs/agent → agent}/feedback/ds-list.md +0 -0
  279. /package/{docs/agent → agent}/feedback/ds-loading-overlay.md +0 -0
  280. /package/{docs/agent → agent}/feedback/ds-skeleton.md +0 -0
  281. /package/{docs/agent → agent}/feedback/ds-spinner.md +0 -0
  282. /package/{docs/agent → agent}/feedback/ds-stat.md +0 -0
  283. /package/{docs/agent → agent}/feedback/ds-status-dot.md +0 -0
  284. /package/{docs/agent → agent}/feedback/ds-tag.md +0 -0
  285. /package/{docs/agent → agent}/feedback/ds-timeline-item.md +0 -0
  286. /package/{docs/agent → agent}/feedback/ds-toast-region.md +0 -0
  287. /package/{docs/agent → agent}/feedback/ds-toast.md +0 -0
  288. /package/{docs/agent → agent}/feedback/ds-tree.md +0 -0
  289. /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
  290. /package/{docs/agent → agent}/forms/ds-dropzone.md +0 -0
  291. /package/{docs/agent → agent}/forms/ds-field-group.md +0 -0
  292. /package/{docs/agent → agent}/forms/ds-filter-bar.md +0 -0
  293. /package/{docs/agent → agent}/forms/ds-icon-button.md +0 -0
  294. /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
  295. /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
  296. /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
  297. /package/{docs/agent → agent}/forms/ds-toggle-button.md +0 -0
  298. /package/{docs/agent → agent}/forms/filter-item-directive.md +0 -0
  299. /package/{docs/agent → agent}/foundations/global-helper-classes.md +0 -0
  300. /package/{docs/agent → agent}/foundations/grid.md +0 -0
  301. /package/{docs/agent → agent}/foundations/tokens.md +0 -0
  302. /package/{docs/agent → agent}/navigation/ds-app-layout.md +0 -0
  303. /package/{docs/agent → agent}/navigation/ds-auth-layout.md +0 -0
  304. /package/{docs/agent → agent}/navigation/ds-breadcrumbs.md +0 -0
  305. /package/{docs/agent → agent}/navigation/ds-container.md +0 -0
  306. /package/{docs/agent → agent}/navigation/ds-divider.md +0 -0
  307. /package/{docs/agent → agent}/navigation/ds-inline.md +0 -0
  308. /package/{docs/agent → agent}/navigation/ds-page-footer.md +0 -0
  309. /package/{docs/agent → agent}/navigation/ds-page-header.md +0 -0
  310. /package/{docs/agent → agent}/navigation/ds-pagination.md +0 -0
  311. /package/{docs/agent → agent}/navigation/ds-sidenav-footer.md +0 -0
  312. /package/{docs/agent → agent}/navigation/ds-sidenav-group.md +0 -0
  313. /package/{docs/agent → agent}/navigation/ds-sidenav-item.md +0 -0
  314. /package/{docs/agent → agent}/navigation/ds-sidenav.md +0 -0
  315. /package/{docs/agent → agent}/navigation/ds-stack.md +0 -0
  316. /package/{docs/agent → agent}/navigation/ds-stepper.md +0 -0
  317. /package/{docs/agent → agent}/navigation/ds-tab.md +0 -0
  318. /package/{docs/agent → agent}/navigation/ds-tabs.md +0 -0
  319. /package/{docs/agent → agent}/navigation/ds-topbar.md +0 -0
  320. /package/{docs/agent → agent}/overlays/ds-bottom-sheet.md +0 -0
  321. /package/{docs/agent → agent}/overlays/ds-drawer.md +0 -0
  322. /package/{docs/agent → agent}/overlays/ds-info-hint.md +0 -0
  323. /package/{docs/agent → agent}/overlays/ds-menu.md +0 -0
  324. /package/{docs/agent → agent}/overlays/ds-modal-card.md +0 -0
  325. /package/{docs/agent → agent}/overlays/ds-modal.md +0 -0
  326. /package/{docs/agent → agent}/overlays/ds-popover.md +0 -0
  327. /package/{docs/agent → agent}/overlays/ds-tooltip-panel.md +0 -0
  328. /package/{docs/agent → agent}/platform/body-scroll-lock-service.md +0 -0
  329. /package/{docs/agent → agent}/platform/breadcrumbs-service.md +0 -0
  330. /package/{docs/agent → agent}/platform/ds-icon-registry.md +0 -0
  331. /package/{docs/agent → agent}/platform/ds-intl.md +0 -0
  332. /package/{docs/agent → agent}/platform/toast-service.md +0 -0
  333. /package/{docs/agent → agent}/surfaces/ds-accordion-item.md +0 -0
  334. /package/{docs/agent → agent}/surfaces/ds-accordion.md +0 -0
  335. /package/{docs/agent → agent}/surfaces/ds-card.md +0 -0
  336. /package/{docs/agent → agent}/tables/ds-cell-template.md +0 -0
  337. /package/{docs/agent → agent}/tables/ds-table-columns.md +0 -0
  338. /package/{docs/agent → agent}/tables/ds-table-export.md +0 -0
  339. /package/{docs/agent → agent}/tables/header-filter-directive.md +0 -0
@@ -135,7 +135,7 @@ class PopoverComponent {
135
135
  provide: DsOverlayCloseRef,
136
136
  useExisting: forwardRef(() => PopoverComponent),
137
137
  },
138
- ], 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 and stamped into the active render site; 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: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display: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"] }] });
138
+ ], 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 and stamped into the active render site; 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display: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:\"\";box-sizing:border-box;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"] }] });
139
139
  }
140
140
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PopoverComponent, decorators: [{
141
141
  type: Component,
@@ -144,7 +144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
144
144
  provide: DsOverlayCloseRef,
145
145
  useExisting: forwardRef(() => PopoverComponent),
146
146
  },
147
- ], template: "<!-- Projected content is captured once and stamped into the active render site; 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: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display: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"] }]
147
+ ], template: "<!-- Projected content is captured once and stamped into the active render site; 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display: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:\"\";box-sizing:border-box;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"] }]
148
148
  }], 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 }] }] } });
149
149
  function buildPositions(placement, align, offsetPx) {
150
150
  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 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 a\n * 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 // A projected ds-menu is portaled into the pane, out of reach of a scoped width.\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'). When set, the panel traps focus and captures it\n * on open; Escape or an in-panel close returns focus to the trigger, an outside click or\n * scroll does not (non-modal). Leave null for plain text popovers. A panel holding a\n * `role=\"menu\"` (a `ds-menu`) captures focus on open without it, untrapped. */\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 // Clicking another trigger while open dismisses the overlay through the CDK's outside-pointer\n // listener FIRST, so `ref` is already gone here and this re-opens on the new trigger.\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 // CDK's scroll strategies miss a plain 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 // A menu is operated from inside (APG menu button), so it takes focus without a panelRole.\n if (\n this.panelRole() ||\n this.ref.overlayElement.querySelector('[role=\"menu\"]')\n ) {\n // cdkTrapFocusAutoCapture without its destroy-time restore, which 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 and stamped into the active render site; 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":";;;;;;;;;;MAwDa,gBAAgB,CAAA;AACV,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,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AAO,EAAE,QAAQ;AACjB,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA;aACF;;AAEP;;AEvSA;;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 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 a\n * 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 // A projected ds-menu is portaled into the pane, out of reach of a scoped width.\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'). When set, the panel traps focus and captures it\n * on open; Escape or an in-panel close returns focus to the trigger, an outside click or\n * scroll does not (non-modal). Leave null for plain text popovers. A panel holding a\n * `role=\"menu\"` (a `ds-menu`) captures focus on open without it, untrapped. */\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 // Clicking another trigger while open dismisses the overlay through the CDK's outside-pointer\n // listener FIRST, so `ref` is already gone here and this re-opens on the new trigger.\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 // CDK's scroll strategies miss a plain 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 // A menu is operated from inside (APG menu button), so it takes focus without a panelRole.\n if (\n this.panelRole() ||\n this.ref.overlayElement.querySelector('[role=\"menu\"]')\n ) {\n // cdkTrapFocusAutoCapture without its destroy-time restore, which 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 and stamped into the active render site; 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":";;;;;;;;;;MAwDa,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,cAAc,GAAuB,IAAI;IACzC,UAAU,GAAyC,IAAI;AAC/D;AACwE;AACvD,IAAA,WAAW,GAAG;QAC7B,uBAAuB;QACvB,2BAA2B;QAC3B,qBAAqB;QACrB,qBAAqB;QACrB,sBAAsB;QACtB,wBAAwB;QACxB,wBAAwB;QACxB,yBAAy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d,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;;AEvSA;;AAEG;;;;"}
@@ -42,7 +42,6 @@ class RadioComponent extends DsFieldBase {
42
42
  error: this.error,
43
43
  errors: this.errors,
44
44
  invalid: this.invalid,
45
- touched: this.touched,
46
45
  });
47
46
  message = this.fieldMessage.message;
48
47
  resolvedAriaLabel = computed(() => this.label() ? null : this.ariaLabel() || null, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
@@ -84,11 +83,11 @@ class RadioComponent extends DsFieldBase {
84
83
  }
85
84
  }
86
85
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: RadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: RadioComponent, isStandalone: true, selector: "ds-radio", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, deselectable: { classPropertyName: "deselectable", publicName: "deselectable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<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", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_radio-accent-color: var(--ds-radio-accent-color, var(--accent));--_radio-bg-color: var(--ds-radio-bg-color, var(--surface-default));--_radio-border-color: var(--ds-radio-border-color, var(--border-strong));--_radio-label-color: var(--ds-radio-label-color, var(--text-primary));--_radio-glyph: var(--check-size);--_radio-label-fs: var(--font-size-s);display:inline-flex}.radio-field{display:inline-flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap)}.radio-field.size-sm{--_radio-glyph: var(--radio-glyph-sm);--_radio-label-fs: var(--font-size-xs)}.radio-field.size-lg{--_radio-glyph: var(--radio-glyph-lg);--_radio-label-fs: var(--font-size-m)}.control-line:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.control-line .radio:where(:focus-visible){outline:none}}.control-line{border-radius:var(--focus-ring-radius)}.control-line:has(.control-text:empty){--focus-ring-offset: var(--space-1-5)}.control-line{display:inline-flex;align-items:center}.control-line .control-text{padding-inline-start:var(--space-2);padding-block:var(--space-1);margin-block:calc(var(--space-1) * -1);font:var(--font-weight-regular) var(--ds-radio-label-font-size, var(--_radio-label-fs))/var(--line-height-base) var(--font-sans);color:var(--_radio-label-color);cursor:pointer;-webkit-user-select:none;user-select:none}.control-line .control-text:empty{display:none}.control-line .control-text .req{color:var(--error);font-weight:var(--font-weight-semibold);margin-inline-start:var(--space-1)}.control-line.is-disabled .control-text{color:var(--text-disabled);cursor:not-allowed}.radio{appearance:none;width:var(--_radio-glyph);height:var(--_radio-glyph);border:var(--check-bw) solid var(--_radio-border-color);background:var(--_radio-bg-color);cursor:pointer;display:inline-grid;place-items:center;flex-shrink:0;margin:0;border-radius:var(--radius-pill);transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),border-width var(--duration-fast) var(--ease-standard)}.radio:hover:not(:disabled){border-color:var(--accent)}.radio:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.radio:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.radio:after{content:\"\";transform:scale(0);opacity:0;transform-origin:center;transition:transform var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.radio:checked{border-color:var(--_radio-accent-color);border-width:var(--radio-bw-checked)}.radio:checked:after{content:\"\";width:var(--radio-dot-size);height:var(--radio-dot-size);border-radius:var(--radius-pill);background:var(--_radio-accent-color);transform:scale(1);opacity:1}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }] });
86
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: RadioComponent, isStandalone: true, selector: "ds-radio", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, deselectable: { classPropertyName: "deselectable", publicName: "deselectable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<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", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_radio-accent-color: var(--ds-radio-accent-color, var(--accent));--_radio-bg-color: var(--ds-radio-bg-color, var(--surface-default));--_radio-border-color: var(--ds-radio-border-color, var(--border-strong));--_radio-label-color: var(--ds-radio-label-color, var(--text-primary));--_radio-glyph: var(--check-size);--_radio-label-fs: var(--font-size-s);display:inline-flex}.radio-field{display:inline-flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap)}.radio-field.size-sm{--_radio-glyph: var(--radio-glyph-sm);--_radio-label-fs: var(--font-size-xs)}.radio-field.size-lg{--_radio-glyph: var(--radio-glyph-lg);--_radio-label-fs: var(--font-size-m)}.control-line:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.control-line .radio:where(:focus-visible){outline:none}}.control-line{border-radius:var(--focus-ring-radius)}.control-line:has(.control-text:empty){--focus-ring-offset: var(--space-1-5)}.control-line{display:inline-flex;align-items:center}.control-line .control-text{padding-inline-start:var(--space-2);padding-block:var(--space-1);margin-block:calc(var(--space-1) * -1);font:var(--font-weight-regular) var(--ds-radio-label-font-size, var(--_radio-label-fs))/var(--line-height-base) var(--font-sans);color:var(--_radio-label-color);cursor:pointer;-webkit-user-select:none;user-select:none}.control-line .control-text:empty{display:none}.control-line .control-text .req{color:var(--error);font-weight:var(--font-weight-semibold);margin-inline-start:var(--space-1)}.control-line.is-disabled .control-text{color:var(--text-disabled);cursor:not-allowed}.radio{appearance:none;width:var(--_radio-glyph);height:var(--_radio-glyph);border:var(--check-bw) solid var(--_radio-border-color);background:var(--_radio-bg-color);cursor:pointer;display:inline-grid;place-items:center;flex-shrink:0;margin:0;border-radius:var(--radius-pill);transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),border-width var(--duration-fast) var(--ease-standard)}.radio:hover:not(:disabled){border-color:var(--accent)}.radio:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.radio:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.radio:after{content:\"\";transform:scale(0);opacity:0;transform-origin:center;transition:transform var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.radio:checked{border-color:var(--_radio-accent-color);border-width:var(--radio-bw-checked)}.radio:checked:after{content:\"\";width:var(--radio-dot-size);height:var(--radio-dot-size);border-radius:var(--radius-pill);background:var(--_radio-accent-color);transform:scale(1);opacity:1}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }] });
88
87
  }
89
88
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: RadioComponent, decorators: [{
90
89
  type: Component,
91
- args: [{ selector: 'ds-radio', standalone: true, imports: [FieldMessageComponent], encapsulation: ViewEncapsulation.Emulated, template: "<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", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_radio-accent-color: var(--ds-radio-accent-color, var(--accent));--_radio-bg-color: var(--ds-radio-bg-color, var(--surface-default));--_radio-border-color: var(--ds-radio-border-color, var(--border-strong));--_radio-label-color: var(--ds-radio-label-color, var(--text-primary));--_radio-glyph: var(--check-size);--_radio-label-fs: var(--font-size-s);display:inline-flex}.radio-field{display:inline-flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap)}.radio-field.size-sm{--_radio-glyph: var(--radio-glyph-sm);--_radio-label-fs: var(--font-size-xs)}.radio-field.size-lg{--_radio-glyph: var(--radio-glyph-lg);--_radio-label-fs: var(--font-size-m)}.control-line:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.control-line .radio:where(:focus-visible){outline:none}}.control-line{border-radius:var(--focus-ring-radius)}.control-line:has(.control-text:empty){--focus-ring-offset: var(--space-1-5)}.control-line{display:inline-flex;align-items:center}.control-line .control-text{padding-inline-start:var(--space-2);padding-block:var(--space-1);margin-block:calc(var(--space-1) * -1);font:var(--font-weight-regular) var(--ds-radio-label-font-size, var(--_radio-label-fs))/var(--line-height-base) var(--font-sans);color:var(--_radio-label-color);cursor:pointer;-webkit-user-select:none;user-select:none}.control-line .control-text:empty{display:none}.control-line .control-text .req{color:var(--error);font-weight:var(--font-weight-semibold);margin-inline-start:var(--space-1)}.control-line.is-disabled .control-text{color:var(--text-disabled);cursor:not-allowed}.radio{appearance:none;width:var(--_radio-glyph);height:var(--_radio-glyph);border:var(--check-bw) solid var(--_radio-border-color);background:var(--_radio-bg-color);cursor:pointer;display:inline-grid;place-items:center;flex-shrink:0;margin:0;border-radius:var(--radius-pill);transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),border-width var(--duration-fast) var(--ease-standard)}.radio:hover:not(:disabled){border-color:var(--accent)}.radio:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.radio:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.radio:after{content:\"\";transform:scale(0);opacity:0;transform-origin:center;transition:transform var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.radio:checked{border-color:var(--_radio-accent-color);border-width:var(--radio-bw-checked)}.radio:checked:after{content:\"\";width:var(--radio-dot-size);height:var(--radio-dot-size);border-radius:var(--radius-pill);background:var(--_radio-accent-color);transform:scale(1);opacity:1}\n"] }]
90
+ args: [{ selector: 'ds-radio', standalone: true, imports: [FieldMessageComponent], encapsulation: ViewEncapsulation.Emulated, template: "<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", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_radio-accent-color: var(--ds-radio-accent-color, var(--accent));--_radio-bg-color: var(--ds-radio-bg-color, var(--surface-default));--_radio-border-color: var(--ds-radio-border-color, var(--border-strong));--_radio-label-color: var(--ds-radio-label-color, var(--text-primary));--_radio-glyph: var(--check-size);--_radio-label-fs: var(--font-size-s);display:inline-flex}.radio-field{display:inline-flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap)}.radio-field.size-sm{--_radio-glyph: var(--radio-glyph-sm);--_radio-label-fs: var(--font-size-xs)}.radio-field.size-lg{--_radio-glyph: var(--radio-glyph-lg);--_radio-label-fs: var(--font-size-m)}.control-line:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.control-line .radio:where(:focus-visible){outline:none}}.control-line{border-radius:var(--focus-ring-radius)}.control-line:has(.control-text:empty){--focus-ring-offset: var(--space-1-5)}.control-line{display:inline-flex;align-items:center}.control-line .control-text{padding-inline-start:var(--space-2);padding-block:var(--space-1);margin-block:calc(var(--space-1) * -1);font:var(--font-weight-regular) var(--ds-radio-label-font-size, var(--_radio-label-fs))/var(--line-height-base) var(--font-sans);color:var(--_radio-label-color);cursor:pointer;-webkit-user-select:none;user-select:none}.control-line .control-text:empty{display:none}.control-line .control-text .req{color:var(--error);font-weight:var(--font-weight-semibold);margin-inline-start:var(--space-1)}.control-line.is-disabled .control-text{color:var(--text-disabled);cursor:not-allowed}.radio{appearance:none;width:var(--_radio-glyph);height:var(--_radio-glyph);border:var(--check-bw) solid var(--_radio-border-color);background:var(--_radio-bg-color);cursor:pointer;display:inline-grid;place-items:center;flex-shrink:0;margin:0;border-radius:var(--radius-pill);transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),border-width var(--duration-fast) var(--ease-standard)}.radio:hover:not(:disabled){border-color:var(--accent)}.radio:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.radio:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);cursor:not-allowed}.radio:after{content:\"\";transform:scale(0);opacity:0;transform-origin:center;transition:transform var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.radio:checked{border-color:var(--_radio-accent-color);border-width:var(--radio-bw-checked)}.radio:checked:after{content:\"\";width:var(--radio-dot-size);height:var(--radio-dot-size);border-radius:var(--radius-pill);background:var(--_radio-accent-color);transform:scale(1);opacity:1}\n"] }]
92
91
  }], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], deselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deselectable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], inputElement: [{ type: i0.ViewChild, args: ['inputRef', { isSignal: true }] }] } });
93
92
 
94
93
  class RadioGroupComponent extends DsControlValueAccessor {
@@ -116,8 +115,6 @@ class RadioGroupComponent extends DsControlValueAccessor {
116
115
  error: this.error,
117
116
  errors: this.errors,
118
117
  invalid: this.invalid,
119
- touchedSelf: this.touchedSelf,
120
- touched: this.touched,
121
118
  });
122
119
  message = this.fieldMessage.message;
123
120
  pendingShown = this.fieldMessage.pending;
@@ -204,7 +201,7 @@ class RadioGroupComponent extends DsControlValueAccessor {
204
201
  provide: RADIO_GROUP,
205
202
  useExisting: forwardRef(() => RadioGroupComponent),
206
203
  },
207
- ], queries: [{ propertyName: "radios", predicate: RadioComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n@if (!label()) {\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n}\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{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", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }] });
204
+ ], queries: [{ propertyName: "radios", predicate: RadioComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n@if (!label()) {\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n}\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display: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", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }] });
208
205
  }
209
206
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: RadioGroupComponent, decorators: [{
210
207
  type: Component,
@@ -225,7 +222,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
225
222
  provide: RADIO_GROUP,
226
223
  useExisting: forwardRef(() => RadioGroupComponent),
227
224
  },
228
- ], template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n@if (!label()) {\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n}\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{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"] }]
225
+ ], template: "@if (label()) {\n <span class=\"label\">\n {{ label() }}\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n@if (!label()) {\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n}\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display: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"] }]
229
226
  }], 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 }] }] } });
230
227
 
231
228
  /**
@@ -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 ds-radio reads from its parent ds-radio-group; a token avoids the circular import. */\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\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: it is not a `ControlValueAccessor`, so `[formControl]`\n * and `ngModel` do not bind to it (inside `ds-radio-group` the group is the form control).\n * Not read inside a group. */\n readonly checked = model<boolean>(false);\n /** Lets a checked standalone radio be cleared by clicking it again. Ignored inside\n * `ds-radio-group`, which cannot see that gesture. */\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`; the group's name overrides it 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 generated id of 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 /** Shows an asterisk on the label and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Label beside the dot, wired via for/id. Omit to bring your own <label>. */\n readonly label = input<string>('');\n /** Accessible name for a control with no visible label; overrides `label` when both are set. */\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 protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || null,\n );\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\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 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 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 {\n FieldMessageComponent,\n FieldStatusComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\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, FieldStatusComponent],\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 /** Value of the selected radio. */\n readonly value = model<unknown>(null);\n /** Native `name` shared by every radio. */\n readonly name = input<string | null>(null);\n /** Disables the whole group. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name when there is no visible `label`. */\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.changedShown() ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n pending: this.pending,\n dirty: this.dirty,\n showDirty: this.showDirtyResolved,\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly pendingShown = this.fieldMessage.pending;\n protected readonly changedShown = this.fieldMessage.changed;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n 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: swallowing it would remove the form's keyboard submit.\n if (\n !['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft', ' '].includes(key)\n ) {\n return;\n }\n // A text field beside the radios (an \"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 <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n@if (!label()) {\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n}\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAiBa,WAAW,GAAG,IAAI,cAAc,CAC3C,aAAa;;ACST,MAAO,cAAe,SAAQ,WAAW,CAAA;AAC7C;;AAE+B;AACtB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AACxC;AACuD;IAC9C,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;;AAExD,IAAA,KA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DAAA,CAAA,EAAA;wlBA2CyC,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9F1D;;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 ds-radio reads from its parent ds-radio-group; a token avoids the circular import. */\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\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: it is not a `ControlValueAccessor`, so `[formControl]`\n * and `ngModel` do not bind to it (inside `ds-radio-group` the group is the form control).\n * Not read inside a group. */\n readonly checked = model<boolean>(false);\n /** Lets a checked standalone radio be cleared by clicking it again. Ignored inside\n * `ds-radio-group`, which cannot see that gesture. */\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`; the group's name overrides it 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 generated id of 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 /** Shows an asterisk on the label and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Label beside the dot, wired via for/id. Omit to bring your own <label>. */\n readonly label = input<string>('');\n /** Accessible name for a control with no visible label; overrides `label` when both are set. */\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 });\n protected readonly message = this.fieldMessage.message;\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || null,\n );\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\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 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 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 {\n FieldMessageComponent,\n FieldStatusComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\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, FieldStatusComponent],\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 /** Value of the selected radio. */\n readonly value = model<unknown>(null);\n /** Native `name` shared by every radio. */\n readonly name = input<string | null>(null);\n /** Disables the whole group. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name when there is no visible `label`. */\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.changedShown() ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n pending: this.pending,\n dirty: this.dirty,\n showDirty: this.showDirtyResolved,\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly pendingShown = this.fieldMessage.pending;\n protected readonly changedShown = this.fieldMessage.changed;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n 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: swallowing it would remove the form's keyboard submit.\n if (\n !['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft', ' '].includes(key)\n ) {\n return;\n }\n // A text field beside the radios (an \"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 <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </span>\n}\n\n<div class=\"radios\">\n <ng-content />\n</div>\n\n@if (!label()) {\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n}\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAiBa,WAAW,GAAG,IAAI,cAAc,CAC3C,aAAa;;ACST,MAAO,cAAe,SAAQ,WAAW,CAAA;AAC7C;;AAE+B;AACtB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AACxC;AACuD;IAC9C,YAAY,GAAG,KAAK,CAAC,KAAK,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAE5D,QAAQ,GAAG,KAAK,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