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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +846 -14
  2. package/components.md +552 -29
  3. package/design-system.md +9 -0
  4. package/docs/agent/INDEX.md +57 -15
  5. package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +1 -1
  6. package/docs/agent/charts/column-series-component.md +8 -0
  7. package/docs/agent/charts/ds-bar-chart.md +6 -1
  8. package/docs/agent/charts/ds-chart-data-table.md +10 -0
  9. package/docs/agent/charts/ds-chart.md +8 -0
  10. package/docs/agent/charts/ds-column-chart.md +5 -1
  11. package/docs/agent/charts/ds-funnel-chart.md +5 -1
  12. package/docs/agent/charts/ds-heatmap-chart.md +20 -0
  13. package/docs/agent/charts/ds-line-chart.md +8 -4
  14. package/docs/agent/charts/{ds-donut-chart.md → ds-pie-chart.md} +10 -6
  15. package/docs/agent/charts/ds-scatter-chart.md +20 -0
  16. package/docs/agent/charts/ds-waterfall-chart.md +20 -0
  17. package/docs/agent/charts/line-series-component.md +8 -0
  18. package/docs/agent/charts/reference-label-component.md +8 -0
  19. package/docs/agent/charts/reference-line-component.md +8 -0
  20. package/docs/agent/charts/series-annotation-component.md +10 -0
  21. package/docs/agent/feedback/ds-alert.md +4 -0
  22. package/docs/agent/feedback/ds-avatar-group.md +4 -0
  23. package/docs/agent/feedback/ds-avatar.md +4 -0
  24. package/docs/agent/feedback/ds-badge.md +4 -0
  25. package/docs/agent/feedback/ds-banner.md +5 -1
  26. package/docs/agent/feedback/ds-bar.md +4 -0
  27. package/docs/agent/feedback/ds-description-item.md +8 -0
  28. package/docs/agent/feedback/ds-description-list.md +8 -0
  29. package/docs/agent/feedback/ds-empty-state.md +4 -0
  30. package/docs/agent/feedback/ds-list-item.md +8 -0
  31. package/docs/agent/feedback/ds-list.md +8 -0
  32. package/docs/agent/feedback/ds-loading-overlay.md +8 -0
  33. package/docs/agent/feedback/ds-skeleton.md +4 -0
  34. package/docs/agent/feedback/ds-spinner.md +4 -0
  35. package/docs/agent/feedback/ds-stat.md +4 -0
  36. package/docs/agent/feedback/ds-status-dot.md +4 -0
  37. package/docs/agent/feedback/ds-tag.md +4 -0
  38. package/docs/agent/feedback/ds-timeline-item.md +8 -0
  39. package/docs/agent/feedback/ds-toast-region.md +8 -0
  40. package/docs/agent/feedback/ds-toast.md +4 -0
  41. package/docs/agent/feedback/ds-tree.md +8 -0
  42. package/docs/agent/forms/ds-autocomplete.md +4 -0
  43. package/docs/agent/forms/ds-button-group.md +8 -0
  44. package/docs/agent/forms/ds-button.md +6 -2
  45. package/docs/agent/forms/ds-checkbox.md +4 -0
  46. package/docs/agent/forms/ds-color-picker.md +8 -0
  47. package/docs/agent/forms/ds-date-picker.md +5 -1
  48. package/docs/agent/forms/ds-dropzone.md +4 -0
  49. package/docs/agent/forms/ds-field-group.md +8 -0
  50. package/docs/agent/forms/ds-filter-bar.md +8 -0
  51. package/docs/agent/forms/ds-icon-button.md +4 -0
  52. package/docs/agent/forms/ds-input.md +13 -1
  53. package/docs/agent/forms/ds-multi-select.md +4 -0
  54. package/docs/agent/forms/ds-number-stepper.md +4 -0
  55. package/docs/agent/forms/ds-otp-input.md +8 -0
  56. package/docs/agent/forms/ds-password-rules.md +8 -0
  57. package/docs/agent/forms/ds-radio-group.md +8 -0
  58. package/docs/agent/forms/ds-radio.md +4 -0
  59. package/docs/agent/forms/ds-search.md +4 -0
  60. package/docs/agent/forms/ds-segmented.md +8 -0
  61. package/docs/agent/forms/ds-select.md +4 -0
  62. package/docs/agent/forms/ds-slider.md +8 -0
  63. package/docs/agent/forms/ds-split-button.md +8 -0
  64. package/docs/agent/forms/ds-switch.md +4 -0
  65. package/docs/agent/forms/ds-textarea.md +5 -1
  66. package/docs/agent/forms/ds-time-picker.md +8 -0
  67. package/docs/agent/forms/ds-toggle-button.md +8 -0
  68. package/docs/agent/forms/filter-item-directive.md +8 -0
  69. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +4 -0
  70. package/docs/agent/navigation/ds-app-layout.md +6 -2
  71. package/docs/agent/navigation/ds-auth-layout.md +5 -1
  72. package/docs/agent/navigation/ds-breadcrumbs.md +4 -0
  73. package/docs/agent/navigation/ds-container.md +8 -0
  74. package/docs/agent/navigation/ds-divider.md +4 -0
  75. package/docs/agent/navigation/ds-inline.md +8 -0
  76. package/docs/agent/navigation/ds-page-footer.md +4 -0
  77. package/docs/agent/navigation/ds-page-header.md +5 -1
  78. package/docs/agent/navigation/ds-pagination.md +5 -1
  79. package/docs/agent/navigation/ds-sidenav-footer.md +8 -0
  80. package/docs/agent/navigation/ds-sidenav-group.md +4 -0
  81. package/docs/agent/navigation/ds-sidenav-item.md +4 -0
  82. package/docs/agent/navigation/ds-sidenav.md +4 -0
  83. package/docs/agent/navigation/ds-stack.md +8 -0
  84. package/docs/agent/navigation/ds-stepper.md +4 -0
  85. package/docs/agent/navigation/ds-tab.md +8 -0
  86. package/docs/agent/navigation/ds-tabs.md +5 -1
  87. package/docs/agent/overlays/ds-bottom-sheet.md +4 -0
  88. package/docs/agent/overlays/ds-drawer.md +4 -0
  89. package/docs/agent/overlays/ds-menu.md +4 -0
  90. package/docs/agent/overlays/ds-modal-card.md +4 -0
  91. package/docs/agent/overlays/ds-modal.md +4 -0
  92. package/docs/agent/overlays/ds-popover.md +4 -0
  93. package/docs/agent/overlays/ds-tooltip-panel.md +8 -0
  94. package/docs/agent/overlays/ds-tooltip.md +4 -0
  95. package/docs/agent/surfaces/ds-accordion-item.md +8 -0
  96. package/docs/agent/surfaces/ds-accordion.md +4 -0
  97. package/docs/agent/surfaces/ds-card.md +6 -2
  98. package/docs/agent/tables/ds-cell-template.md +8 -0
  99. package/docs/agent/tables/ds-table-columns.md +8 -0
  100. package/docs/agent/tables/ds-table-export.md +8 -0
  101. package/docs/agent/tables/ds-table.md +9 -2
  102. package/docs/agent/tables/header-filter-directive.md +8 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +10 -8
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +19 -19
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +7 -6
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +9 -6
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +117 -27
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +3 -3
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +7 -3
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +32 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +14 -2
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +404 -55
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -6
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +27 -10
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +5 -3
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +23 -16
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +20 -10
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +217 -0
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -0
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +181 -500
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +7 -5
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -3
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +391 -0
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -0
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +300 -0
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -0
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +9 -4
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +7 -5
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +2 -2
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +4 -1
  208. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +9 -9
  210. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  212. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  214. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  215. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  216. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  217. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +5 -3
  218. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  219. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  220. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  221. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +34 -21
  222. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  223. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  224. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  225. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +252 -0
  226. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -0
  227. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +271 -8
  228. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  229. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  230. package/fesm2022/ids-group-ltd-ids-design-system.mjs +7 -3
  231. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  232. package/migrations/0.10.0.json +2 -2
  233. package/migrations/0.10.1.json +3 -3
  234. package/migrations/0.10.2.json +8 -28
  235. package/migrations/0.11.0.json +3 -3
  236. package/migrations/0.11.1.json +15 -15
  237. package/migrations/0.11.2.json +9 -9
  238. package/migrations/0.11.3.json +1 -1
  239. package/migrations/0.11.4.json +8 -8
  240. package/migrations/0.12.1.json +1 -1
  241. package/migrations/0.12.2.json +1 -1
  242. package/migrations/0.12.3.json +3 -3
  243. package/migrations/0.13.0.json +24 -32
  244. package/migrations/0.13.1.json +5 -5
  245. package/migrations/0.13.4.json +994 -0
  246. package/migrations/0.5.0.json +1 -1
  247. package/migrations/0.8.0.json +4 -3
  248. package/migrations/0.9.0.json +1 -1
  249. package/package.json +41 -9
  250. package/styles/_chart-frame.scss +16 -3
  251. package/styles/_check-box.scss +12 -12
  252. package/styles/_dropdown-overlay.scss +14 -10
  253. package/styles/_field-box.scss +3 -3
  254. package/styles/_field-label.scss +7 -7
  255. package/styles/_overlay-motion.scss +1 -1
  256. package/styles/_table-controls.scss +3 -3
  257. package/styles/_tokens-charts.scss +40 -7
  258. package/styles/_tokens.scss +2 -2
  259. package/styles/_typography.scss +101 -101
  260. package/themes/dark/_theme.scss +13 -0
  261. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
  262. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
  263. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
  264. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
  265. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
  266. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +37 -4
  267. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
  268. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +8 -4
  269. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +31 -0
  270. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +4 -0
  271. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +230 -44
  272. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
  273. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +6 -2
  274. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
  276. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +5 -2
  277. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
  278. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +85 -139
  279. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
  280. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +13 -1
  281. package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +24 -19
  282. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
  283. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +183 -0
  284. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
  285. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
  286. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
  287. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +11 -11
  288. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  289. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
  290. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
  291. package/types/ids-group-ltd-ids-design-system-components.d.ts +97 -4
  292. package/types/ids-group-ltd-ids-design-system-core.d.ts +30 -7
  293. package/types/ids-group-ltd-ids-design-system.d.ts +14 -10
  294. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -382
  295. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // The host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button,\n // so mark it presentational to keep the menu→menuitem ownership intact.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy {\n // The containing overlay (e.g. popover), if any — selecting an item closes it.\n // Optional, so menu-items also work standalone.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays\n * keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s\n * roving order, so a `[dsTooltip]` explaining why can be reached and shown. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted — a secondary row like \"Sign out\" under a divider,\n * still actionable but not competing with the items above it. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label — a limitation the action carries\n * (\"will not be saved\", \"read-only in this workspace\"). Visible without hover\n * or focus, which is what separates it from a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the projected label names the action, and a caveat is a description of it.\n * That is why the line is `aria-hidden` in the DOM and referenced by id — inside\n * the button and visible, it would otherwise be concatenated into the name. */\n readonly description = input<string>('');\n /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the\n * rest -1. Defaults true so a standalone item (outside ds-menu) stays\n * reachable. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control (used by ds-menu to find\n * the currently focused item during keyboard nav). */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text — used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled()) {\n return;\n }\n this.clearCloseTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n // Delay close so moving into the submenu panel doesn't close it immediately.\n this.closeTimer = setTimeout(() => {\n // If focus/mouse is now inside the submenu panel, keep it open.\n const submenuElement = this.submenuRef?.overlayElement;\n if (\n submenuElement &&\n submenuElement.contains(event.relatedTarget as Node)\n ) {\n return;\n }\n this.closeSubmenu();\n }, 150);\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n\n this.submenuRef.attach(new TemplatePortal(this.submenu()!, this.vcr));\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.clearCloseTimer(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', () =>\n this.closeSubmenu(),\n );\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.clearCloseTimer();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n\n private clearCloseTimer(): void {\n if (this.closeTimer !== null) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n signal,\n} from '@angular/core';\nimport { MenuItemComponent } from './menu-item.component';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keyboard nav bubbles up from the focused menuitem button. Hand-rolled roving\n // (mirrors ds-tabs) — kept signal-based and consistent with the rest of the DS.\n // data-focus=\"inset\": the panel clips, so a ring drawn outward is lost. Belongs on the\n // clipping element — see styles/_focus.scss.\n host: {\n '(keydown)': 'onKeydown($event)',\n 'data-focus': 'inset',\n '[class.has-icons]': 'anyIcon()',\n },\n})\nexport class MenuComponent {\n private readonly items = contentChildren(MenuItemComponent);\n\n /** One item with an icon makes every item reserve the slot, so the labels share one axis. The\n * menu owns the decision because an item would have to know its siblings to take it. */\n protected readonly anyIcon = computed(() =>\n this.items().some((item) => item.icon() !== null),\n );\n /** Index of the roving-focus item — the single item reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled\n // items stay in the order (APG menu practice) — they're focusable so a\n // tooltip explaining why can be read; activation is blocked in menu-item.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search/filter field owns its typing — type-ahead below would\n // eat every character it receives.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n const from = focused >= 0 ? focused : this.activeIndex();\n\n // Single-character type-ahead: jump to the next item whose label starts\n // with the typed character.\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n // Disabled items are NOT skipped — they stay reachable (APG); onClick blocks\n // their activation.\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiCa,iBAAiB,CAAA;;;IAGX,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxD,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,WAAW,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC7C,IAAA,MAAM,GACrB,SAAS,CAAC,QAAQ,CAAgC,QAAQ,CAAC;;AAGpD,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;AAC5C;;AAEgF;IACvE,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;AACkE;IACzD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;;;;;;;AAOgF;AACvE,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;AAE/B,IAAA,OAAO,GAAG,KAAK,CAA8B,IAAI,8EAAC;;IAElD,OAAO,GAAG,MAAM,EAAc;AAEpB,IAAA,aAAa,GAAG,aAAa,CAAC,mBAAmB,CAAC;AAErE;;AAEiB;AACR,IAAA,QAAQ,GAAG,MAAM,CAAC,IAAI,+EAAC;AACvB,IAAA,WAAW,GAAG,MAAM,CAAC,KAAK,kFAAC;IAE5B,UAAU,GAAsB,IAAI;IACpC,SAAS,GAAyC,IAAI;IACtD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AA,EAAA,+EAAA,EAAA,MAAA,EAAA,CAAA,+wBAAA,CAAA,EAAA;uHAGwC,iBAAiB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;MElB/C,oBAAoB,CAAA;wGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,4JALrB,2CAA2C,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wVAAA,CAAA,EAAA,CAAA;;4FAK1C,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,cACf,IAAI,EAAA,QAAA,EACN,2CAA2C,EAAA,aAAA,EAEtC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,EAAA,MAAA,EAAA,CAAA,wVAAA,CAAA,EAAA;;;ACR/D;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // The host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button,\n // so mark it presentational to keep the menu→menuitem ownership intact.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy {\n // The containing overlay (e.g. popover), if any — selecting an item closes it.\n // Optional, so menu-items also work standalone.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays\n * keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s\n * roving order, so a `[dsTooltip]` explaining why can be reached and shown. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted — a secondary row like \"Sign out\" under a divider,\n * still actionable but not competing with the items above it. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label — a limitation the action carries\n * (\"will not be saved\", \"read-only in this workspace\"). Visible without hover\n * or focus, which is what separates it from a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the projected label names the action, and a caveat is a description of it.\n * That is why the line is `aria-hidden` in the DOM and referenced by id — inside\n * the button and visible, it would otherwise be concatenated into the name. */\n readonly description = input<string>('');\n /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the\n * rest -1. Defaults true so a standalone item (outside ds-menu) stays\n * reachable. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control (used by ds-menu to find\n * the currently focused item during keyboard nav). */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text — used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled()) {\n return;\n }\n this.clearCloseTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n // Delay close so moving into the submenu panel doesn't close it immediately.\n this.closeTimer = setTimeout(() => {\n // If focus/mouse is now inside the submenu panel, keep it open.\n const submenuElement = this.submenuRef?.overlayElement;\n if (\n submenuElement &&\n submenuElement.contains(event.relatedTarget as Node)\n ) {\n return;\n }\n this.closeSubmenu();\n }, 150);\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n\n this.submenuRef.attach(new TemplatePortal(this.submenu()!, this.vcr));\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.clearCloseTimer(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', () =>\n this.closeSubmenu(),\n );\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.clearCloseTimer();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n\n private clearCloseTimer(): void {\n if (this.closeTimer !== null) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n signal,\n} from '@angular/core';\nimport { MenuItemComponent } from './menu-item.component';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keyboard nav bubbles up from the focused menuitem button. Hand-rolled roving\n // (mirrors ds-tabs) — kept signal-based and consistent with the rest of the DS.\n // data-focus=\"inset\": the panel clips, so a ring drawn outward is lost. Belongs on the\n // clipping element — see styles/_focus.scss.\n host: {\n '(keydown)': 'onKeydown($event)',\n 'data-focus': 'inset',\n '[class.has-icons]': 'anyIcon()',\n },\n})\nexport class MenuComponent {\n private readonly items = contentChildren(MenuItemComponent);\n\n /** One item with an icon makes every item reserve the slot, so the labels share one axis. The\n * menu owns the decision because an item would have to know its siblings to take it. */\n protected readonly anyIcon = computed(() =>\n this.items().some((item) => item.icon() !== null),\n );\n /** Index of the roving-focus item — the single item reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled\n // items stay in the order (APG menu practice) — they're focusable so a\n // tooltip explaining why can be read; activation is blocked in menu-item.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search/filter field owns its typing — type-ahead below would\n // eat every character it receives.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n const from = focused >= 0 ? focused : this.activeIndex();\n\n // Single-character type-ahead: jump to the next item whose label starts\n // with the typed character.\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n // Disabled items are NOT skipped — they stay reachable (APG); onClick blocks\n // their activation.\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiCa,iBAAiB,CAAA;;;IAGX,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxD,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,WAAW,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC7C,IAAA,MAAM,GACrB,SAAS,CAAC,QAAQ,CAAgC,QAAQ,CAAC;;AAGpD,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;AAC5C;;AAEgF;IACvE,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;AACkE;IACzD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;;;;;;;AAOgF;AACvE,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;AAE/B,IAAA,OAAO,GAAG,KAAK,CAA8B,IAAI,8EAAC;;IAElD,OAAO,GAAG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A,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,cACP,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EAKnC;AACJ,wBAAA,WAAW,EAAE,mBAAmB;AAChC,wBAAA,YAAY,EAAE,OAAO;AACrB,wBAAA,mBAAmB,EAAE,WAAW;AACjC,qBAAA,EAAA,QAAA,EAAA,+EAAA,EAAA,MAAA,EAAA,CAAA,+wBAAA,CAAA,EAAA;uHAGwC,iBAAiB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;MElB/C,oBAAoB,CAAA;wGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,4JALrB,2CAA2C,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wVAAA,CAAA,EAAA,CAAA;;4FAK1C,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,cACf,IAAI,EAAA,QAAA,EACN,2CAA2C,EAAA,aAAA,EAEtC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,EAAA,MAAA,EAAA,CAAA,wVAAA,CAAA,EAAA;;;ACR/D;;AAEG;;;;"}
@@ -100,11 +100,11 @@ class ModalCardComponent {
100
100
  this.closed.emit();
101
101
  }
102
102
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
103
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
103
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
104
104
  }
105
105
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, decorators: [{
106
106
  type: Component,
107
- args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
107
+ args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
108
108
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], dialogRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogRole", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
109
109
 
110
110
  class ModalComponent {
@@ -224,11 +224,11 @@ class ModalComponent {
224
224
  this.onClose();
225
225
  }
226
226
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
227
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
227
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
228
228
  }
229
229
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, decorators: [{
230
230
  type: Component,
231
- args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-weight: var(--ds-modal-title-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-weight: var(--ds-modal-eyebrow-weight, var(--font-weight-bold));--_modal-eyebrow-tracking: var(--ds-modal-eyebrow-tracking, var(--letter-spacing-wide));--_modal-eyebrow-transform: var(--ds-modal-eyebrow-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-pad-x: var(--ds-modal-pad-x, var(--space-5));--_modal-header-pad-y: var(--ds-modal-header-pad-y, var(--space-4));--_modal-body-pad-y: var(--ds-modal-body-pad-y, var(--space-5));--_modal-actions-pad-y: var(--ds-modal-actions-pad-y, var(--space-4));--_modal-header-pad-top: var(--ds-modal-header-pad-top, var(--_modal-header-pad-y));--_modal-header-pad-bottom: var(--ds-modal-header-pad-bottom, var(--_modal-header-pad-y));--_modal-body-pad-top: var(--ds-modal-body-pad-top, var(--_modal-body-pad-y));--_modal-body-pad-bottom: var(--ds-modal-body-pad-bottom, var(--_modal-body-pad-y));--_modal-actions-pad-top: var(--ds-modal-actions-pad-top, var(--_modal-actions-pad-y));--_modal-actions-pad-bottom: var(--ds-modal-actions-pad-bottom, var(--_modal-actions-pad-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-pad-top) var(--_modal-pad-x) var(--_modal-header-pad-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-tracking);text-transform:var(--_modal-eyebrow-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-pad-top) var(--_modal-pad-x) var(--_modal-body-pad-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-pad-top) var(--_modal-pad-x) var(--_modal-actions-pad-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-pad-y: var(--ds-modal-body-pad-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
231
+ args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-scale-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards}\n"] }]
232
232
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], persistent: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistent", required: false }] }] } });
233
233
 
234
234
  const MODAL_CONFIRM_DATA = new InjectionToken('MODAL_CONFIRM_DATA');
@@ -259,11 +259,11 @@ class ModalConfirmComponent {
259
259
  this.context.resolve(false);
260
260
  }
261
261
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
262
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalConfirmComponent, isStandalone: true, selector: "ds-modal-confirm", ngImport: i0, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "size", "routerLink", "href", "fragment", "queryParams", "queryParamsHandling", "target", "rel", "routerLinkActiveOptions", "ariaCurrent", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }] });
262
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalConfirmComponent, isStandalone: true, selector: "ds-modal-confirm", ngImport: i0, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "align", "size", "routerLink", "href", "fragment", "queryParams", "queryParamsHandling", "target", "rel", "routerLinkActiveOptions", "ariaCurrent", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }] });
263
263
  }
264
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, decorators: [{
265
265
  type: Component,
266
- args: [{ selector: 'ds-modal-confirm', standalone: true, imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent], encapsulation: ViewEncapsulation.Emulated, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"] }]
266
+ args: [{ selector: 'ds-modal-confirm', standalone: true, imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent], encapsulation: ViewEncapsulation.Emulated, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"] }]
267
267
  }] });
268
268
 
269
269
  class ModalService {
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-modal.mjs","sources":["../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/modal/ids-group-ltd-ids-design-system-components-modal.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Resolve `dividers` against the app-level default — same `null`-means-unset\n * shape as `resolveReserveMessage`, and see it for why.\n *\n * Both `ds-modal` and `ds-modal-card` call this, which is the point: a\n * `ModalService` confirm renders a card with no `ds-modal` ancestor, so an\n * attribute on the element cannot reach it and only the injected default can.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n /** Card width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity — drives the icon-badge tint, the title colour, the DEFAULT icon and\n * the ARIA role, which is the same set `ds-alert`'s variant drives. Null (the\n * default) is a neutral dialog. It picks an icon as well as a tint because a tint\n * alone signals by colour only; `icon` overrides the pick.\n *\n * `false` and `undefined` land on null too, so a template can bind the short\n * `[status]=\"isDangerous && 'error'\"` instead of spelling out the ternary. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog` — the role for a\n * dialog that interrupts with something the reader must act on — and anything\n * else stays `dialog`. Same split `ds-alert` makes between `alert` and `status`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n /** Status picks the glyph so a severity is never carried by colour alone. */\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card — drives its icon-badge tint, title colour,\n * default icon and ARIA role. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card is told rather than resolving a\n * second time — the two would disagree if a provider sat between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal — only programmatic or explicit close button. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n /** Dialog is in the DOM (kept true through the leave animation). */\n protected readonly rendered = signal(false);\n /** Playing the scrim fade-out leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted\n // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview\n // (always shown). Reduced-motion zeroes the durations → close is instant.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with drawer/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The animated element is the one with the handler, so its OWN animationend is\n // the signal; anything bubbling from inside is not. This replaces matching the\n // keyframes NAME, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase — a guard for high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // Paint the scrim via the DS token rather than relying on CDK's prebuilt\n // dark-backdrop CSS (which the library doesn't ship). Matches ds-modal.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n 'var(--surface-scrim)';\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["nextId"],"mappings":";;;;;;;;;;;;;AAGA;;;;;;;AAOG;AACG,SAAU,eAAe,CAC7B,QAAgC,EAAA;AAEhC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAEhC,IAAA,OAAO,QAAQ,CAAC,MAAM,QAAQ,EAAE,IAAI,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,IAAI,CAAC;AACrE;;ACHA,IAAIA,QAAM,GAAG,CAAC;MAaD,kBAAkB,CAAA;;AAEpB,IAAA,IAAI,GAAG,KAAK,CAAY,IAAI,2EAAC;AACtC;;;;;;AAM+E;AACtE,IAAA,MAAM,GAAG,KAAK,CACrB,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,CAAA,EACF,SAAS,EAAE,CAAC,KAAK,KAAK,KAAK,IAAI,IAAI,GACtC;;AAEQ,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAEhC,IA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C,cAAc,EAAE;oBACtB,MAAM,CAAC,KAAK,CAAC;gBACf;AACF,YAAA,CAAC,CAAC;AACF,YAAA,UAAU,CAAC,MAAM,CACf,IAAI,eAAe,CAAC,qBAAqB,EAAE,IAAI,EAAE,QAAQ,CAAC,CAC3D;;;AAID,YAAA,IAAI,UAAU,CAAC,eAAe,EAAE;AAC9B,gBAAA,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,eAAe;AAC9C,oBAAA,sBAAsB;YAC1B;AACF,QAAA,CAAC,CAAC;IACJ;wGArDW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA;;4FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACXlC;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-modal.mjs","sources":["../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/modal/ids-group-ltd-ids-design-system-components-modal.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Resolve `dividers` against the app-level default — same `null`-means-unset\n * shape as `resolveReserveMessage`, and see it for why.\n *\n * Both `ds-modal` and `ds-modal-card` call this, which is the point: a\n * `ModalService` confirm renders a card with no `ds-modal` ancestor, so an\n * attribute on the element cannot reach it and only the injected default can.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n /** Card width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity — drives the icon-badge tint, the title colour, the DEFAULT icon and\n * the ARIA role, which is the same set `ds-alert`'s variant drives. Null (the\n * default) is a neutral dialog. It picks an icon as well as a tint because a tint\n * alone signals by colour only; `icon` overrides the pick.\n *\n * `false` and `undefined` land on null too, so a template can bind the short\n * `[status]=\"isDangerous && 'error'\"` instead of spelling out the ternary. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog` — the role for a\n * dialog that interrupts with something the reader must act on — and anything\n * else stays `dialog`. Same split `ds-alert` makes between `alert` and `status`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n /** Status picks the glyph so a severity is never carried by colour alone. */\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width — sm/md/lg/xl/fullscreen. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card — drives its icon-badge tint, title colour,\n * default icon and ARIA role. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions. Turning them off also\n * tightens the vertical padding they were sized for. Unset falls back to\n * `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card is told rather than resolving a\n * second time — the two would disagree if a provider sat between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal — only programmatic or explicit close button. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n /** Dialog is in the DOM (kept true through the leave animation). */\n protected readonly rendered = signal(false);\n /** Playing the scrim fade-out leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted\n // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview\n // (always shown). Reduced-motion zeroes the durations → close is instant.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with drawer/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The animated element is the one with the handler, so its OWN animationend is\n // the signal; anything bubbling from inside is not. This replaces matching the\n // keyframes NAME, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase — a guard for high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n Type <b>{{ phrase }}</b> to confirm\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? 'Cancel' }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? 'Confirm' }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // Paint the scrim via the DS token rather than relying on CDK's prebuilt\n // dark-backdrop CSS (which the library doesn't ship). Matches ds-modal.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n '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