@ids-group-ltd/ids-design-system 0.14.7 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +735 -230
  2. package/components.md +64 -25
  3. package/docs/agent/INDEX.md +3 -1
  4. package/docs/agent/charts/ds-bar-chart.md +7 -4
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +1 -1
  7. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  8. package/docs/agent/charts/ds-pie-chart.md +1 -1
  9. package/docs/agent/charts/ds-waterfall-chart.md +2 -2
  10. package/docs/agent/feedback/ds-loading-overlay.md +2 -0
  11. package/docs/agent/feedback/ds-skeleton.md +1 -1
  12. package/docs/agent/forms/ds-button.md +2 -2
  13. package/docs/agent/forms/ds-date-picker.md +1 -0
  14. package/docs/agent/foundations/global-helper-classes.md +3 -3
  15. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  16. package/docs/agent/overlays/ds-definition-term.md +10 -0
  17. package/docs/agent/overlays/ds-drawer.md +1 -1
  18. package/docs/agent/overlays/ds-info-hint.md +10 -0
  19. package/docs/agent/overlays/ds-menu.md +1 -1
  20. package/docs/agent/overlays/ds-modal-card.md +1 -1
  21. package/docs/agent/overlays/ds-modal.md +19 -1
  22. package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
  23. package/docs/agent/overlays/ds-tooltip.md +3 -3
  24. package/docs/agent/tables/ds-table.md +3 -2
  25. package/eslint/deprecated-api.json +889 -0
  26. package/eslint/index.mjs +394 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +6 -12
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +19 -7
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +169 -37
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +195 -27
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +23 -20
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +9 -9
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +107 -0
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -0
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +5 -15
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +11 -8
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +4 -3
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +44 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +10 -4
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +136 -29
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +21 -26
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +19 -7
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +8 -6
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -4
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +19 -5
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +21 -7
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +2 -2
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +223 -8
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +4 -4
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +410 -145
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +14 -11
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +86 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +18 -81
  198. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +1 -0
  202. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -0
  204. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  205. package/migrations/0.10.0.json +79 -21
  206. package/migrations/0.10.1.json +38 -21
  207. package/migrations/0.10.2.json +44 -7
  208. package/migrations/0.10.3.json +7 -5
  209. package/migrations/0.11.0.json +10 -7
  210. package/migrations/0.11.1.json +25 -14
  211. package/migrations/0.11.2.json +3 -3
  212. package/migrations/0.11.3.json +9 -6
  213. package/migrations/0.11.4.json +13 -12
  214. package/migrations/0.12.1.json +41 -14
  215. package/migrations/0.12.2.json +7 -6
  216. package/migrations/0.12.3.json +3 -3
  217. package/migrations/0.13.0.json +11 -11
  218. package/migrations/0.13.1.json +60 -8
  219. package/migrations/0.13.2.json +98 -44
  220. package/migrations/0.13.3.json +46 -16
  221. package/migrations/0.13.4.json +23 -22
  222. package/migrations/0.14.0.json +5 -5
  223. package/migrations/0.14.1.json +5 -5
  224. package/migrations/0.14.2.json +1 -1
  225. package/migrations/0.14.4.json +6 -5
  226. package/migrations/0.14.5.json +13 -7
  227. package/migrations/0.14.6.json +2 -2
  228. package/migrations/0.14.8.json +56 -0
  229. package/migrations/0.15.0.json +999 -0
  230. package/migrations/0.2.0.json +2 -2
  231. package/migrations/0.3.0.json +43 -6
  232. package/migrations/0.4.0.json +95 -13
  233. package/migrations/0.5.0.json +116 -10
  234. package/migrations/0.5.1.json +97 -11
  235. package/migrations/0.6.0.json +30 -1
  236. package/migrations/0.6.1.json +22 -1
  237. package/migrations/0.6.2.json +8 -4
  238. package/migrations/0.6.3.json +17 -5
  239. package/migrations/0.7.0.json +58 -9
  240. package/migrations/0.7.1.json +62 -8
  241. package/migrations/0.8.0.json +60 -12
  242. package/migrations/0.9.0.json +68 -25
  243. package/migrations/0.9.1.json +1 -1
  244. package/migrations/README.md +57 -3
  245. package/package.json +19 -1
  246. package/schematics/check-overrides/index.cjs +4 -11
  247. package/schematics/check-overrides/scan.cjs +12 -1
  248. package/schematics/check-overrides/surface.json +51 -10
  249. package/schematics/ng-add/index.cjs +7 -1
  250. package/stylelint/deprecated-tokens.json +2697 -0
  251. package/stylelint/index.mjs +94 -0
  252. package/stylelint/since-version.mjs +26 -0
  253. package/styles/_chart-motion.scss +3 -9
  254. package/styles/_chip-row.scss +5 -2
  255. package/styles/_clear-button.scss +2 -0
  256. package/styles/_component-base.scss +56 -0
  257. package/styles/_dismiss-button.scss +16 -0
  258. package/styles/_dropdown-overlay.scss +19 -0
  259. package/styles/_focus.scss +4 -1
  260. package/styles/_overlay-motion.scss +4 -6
  261. package/styles/_pinned.scss +43 -0
  262. package/styles/_skeleton-shimmer.scss +2 -8
  263. package/styles/_table-controls.scss +4 -0
  264. package/styles/_target.scss +40 -0
  265. package/styles/_text-clip.scss +23 -4
  266. package/styles/_tokens.scss +0 -1
  267. package/styles/_typography.scss +2 -0
  268. package/styles/_visually-hidden.scss +2 -0
  269. package/styles/ds.scss +0 -1
  270. package/themes/README.md +7 -7
  271. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +4 -1
  272. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +74 -4
  273. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  274. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +40 -4
  275. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +8 -3
  276. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +4 -3
  277. package/types/ids-group-ltd-ids-design-system-components-definition-term.d.ts +22 -0
  278. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +0 -1
  279. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +7 -3
  280. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +1 -0
  281. package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +14 -0
  282. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +5 -0
  283. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +8 -3
  284. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +0 -2
  285. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +4 -1
  286. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +5 -3
  287. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +13 -3
  288. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +4 -1
  289. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -3
  290. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +48 -17
  291. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +6 -2
  292. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -2
  293. package/types/ids-group-ltd-ids-design-system-core.d.ts +7 -11
  294. package/types/ids-group-ltd-ids-design-system.d.ts +3 -1
@@ -3,7 +3,7 @@ import { inject, computed, input, booleanAttribute, output, viewChild, afterRend
3
3
  import * as i2 from '@angular/cdk/a11y';
4
4
  import { A11yModule, CdkTrapFocus } from '@angular/cdk/a11y';
5
5
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
6
- import { DS_CONFIG, DS_INTL, warnUnslottedContent, backdropDismiss } from '@ids-group-ltd/ids-design-system/core';
6
+ import { DS_CONFIG, DS_INTL, backdropDismiss } from '@ids-group-ltd/ids-design-system/core';
7
7
  import * as i1 from '@ids-group-ltd/ids-design-system/components';
8
8
  import { DsStaticPreview, disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';
9
9
  import { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';
@@ -20,15 +20,18 @@ function resolveDividers(dividers) {
20
20
  const config = inject(DS_CONFIG);
21
21
  return computed(() => dividers() ?? config.modal?.dividers ?? true);
22
22
  }
23
- const MODAL_SLOTS = [
24
- 'eyebrow',
25
- 'title-badge',
26
- 'body',
27
- 'impact',
28
- 'actions',
29
- ];
30
23
 
31
24
  let nextId$1 = 0;
25
+ function* flexItems(parent) {
26
+ for (const child of parent.children) {
27
+ if (getComputedStyle(child).display === 'contents') {
28
+ yield* flexItems(child);
29
+ }
30
+ else {
31
+ yield child;
32
+ }
33
+ }
34
+ }
32
35
  class ModalCardComponent {
33
36
  intl = inject(DS_INTL);
34
37
  /** Card width. */
@@ -56,11 +59,7 @@ class ModalCardComponent {
56
59
  titleId = `ds-modal-title-${++nextId$1}`;
57
60
  header = viewChild.required('header');
58
61
  actionsRow = viewChild.required('actions');
59
- unslotted = viewChild('unslotted', ...(ngDevMode ? [{ debugName: "unslotted" }] : /* istanbul ignore next */ []));
60
62
  constructor() {
61
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
62
- warnUnslottedContent('ds-modal-card', 'body', MODAL_SLOTS, () => this.unslotted()?.nativeElement);
63
- }
64
63
  afterRenderEffect((onCleanup) => {
65
64
  this.stackOverflowingActions();
66
65
  let frame = 0;
@@ -96,8 +95,8 @@ class ModalCardComponent {
96
95
  parseFloat(styles.paddingRight);
97
96
  const gap = parseFloat(styles.columnGap) || 0;
98
97
  let needed = -gap;
99
- for (const child of row.children) {
100
- needed += child.getBoundingClientRect().width + gap;
98
+ for (const item of flexItems(row)) {
99
+ needed += item.getBoundingClientRect().width + gap;
101
100
  }
102
101
  row.classList.toggle('stacked', needed > available);
103
102
  }
@@ -144,12 +143,12 @@ class ModalCardComponent {
144
143
  this.closed.emit();
145
144
  }
146
145
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
147
- 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" } }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "actionsRow", first: true, predicate: ["actions"], descendants: true, isSignal: true }, { propertyName: "unslotted", first: true, predicate: ["unslotted"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n 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 [attr.aria-label]=\"intl().dialog.closeDialog\"\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\n #unslotted\n class=\"unslotted\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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,.disabled,[aria-disabled=true]){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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.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,.unslotted{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;pointer-events:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
146
+ 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" } }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "actionsRow", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n 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 [attr.aria-label]=\"intl().dialog.closeDialog\"\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 <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_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-fade-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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.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)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.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;pointer-events:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
148
147
  }
149
148
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, decorators: [{
150
149
  type: Component,
151
- 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\n #header\n 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 [attr.aria-label]=\"intl().dialog.closeDialog\"\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\n #unslotted\n class=\"unslotted\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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,.disabled,[aria-disabled=true]){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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.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,.unslotted{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;pointer-events:none}\n"] }]
152
- }], ctorParameters: () => [], 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"] }], header: [{ type: i0.ViewChild, args: ['header', { isSignal: true }] }], actionsRow: [{ type: i0.ViewChild, args: ['actions', { isSignal: true }] }], unslotted: [{ type: i0.ViewChild, args: ['unslotted', { isSignal: true }] }] } });
150
+ 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\n #header\n 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 [attr.aria-label]=\"intl().dialog.closeDialog\"\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 <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_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-fade-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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.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)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.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;pointer-events:none}\n"] }]
151
+ }], ctorParameters: () => [], 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"] }], header: [{ type: i0.ViewChild, args: ['header', { isSignal: true }] }], actionsRow: [{ type: i0.ViewChild, args: ['actions', { isSignal: true }] }] } });
153
152
 
154
153
  class ModalComponent {
155
154
  scrollLock = inject(BodyScrollLockService);
@@ -182,11 +181,7 @@ class ModalComponent {
182
181
  closing = signal(false, ...(ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []));
183
182
  wasOpen = false;
184
183
  closeFallbackTimer = null;
185
- unslotted = viewChild('unslotted', ...(ngDevMode ? [{ debugName: "unslotted" }] : /* istanbul ignore next */ []));
186
184
  constructor() {
187
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
188
- warnUnslottedContent('ds-modal', 'body', MODAL_SLOTS, () => this.unslotted()?.nativeElement);
189
- }
190
185
  // Skipped in preview, which is always shown.
191
186
  effect(() => {
192
187
  if (this.preview.staticPreview()) {
@@ -261,12 +256,12 @@ class ModalComponent {
261
256
  this.onClose();
262
257
  }
263
258
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
264
- 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" } }, viewQueries: [{ propertyName: "unslotted", first: true, predicate: ["unslotted"], descendants: true, isSignal: true }], 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\n <div\n #unslotted\n class=\"unslotted\">\n <ng-content></ng-content>\n </div>\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: [":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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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,.disabled,[aria-disabled=true]){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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.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,.unslotted{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;pointer-events:none}\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"] }] });
259
+ 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\n <ng-content></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: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_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-fade-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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.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)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.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;pointer-events:none}\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"] }] });
265
260
  }
266
261
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, decorators: [{
267
262
  type: Component,
268
- 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\n <div\n #unslotted\n class=\"unslotted\">\n <ng-content></ng-content>\n </div>\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: [":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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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,.disabled,[aria-disabled=true]){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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.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,.unslotted{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;pointer-events:none}\n"] }]
269
- }], 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 }] }], unslotted: [{ type: i0.ViewChild, args: ['unslotted', { isSignal: true }] }] } });
263
+ 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\n <ng-content></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: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_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-fade-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));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_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{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.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 .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.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)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.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;pointer-events:none}\n"] }]
264
+ }], 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 }] }] } });
270
265
 
271
266
  /**
272
267
  * Marks the confirm action inside a `ds-modal`; pressing it fires the modal's `confirmed`.
@@ -334,11 +329,11 @@ class ModalConfirmComponent {
334
329
  this.context.resolve(false);
335
330
  }
336
331
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
337
- 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 {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\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 ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":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"] }] });
332
+ 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 {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\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 ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:contents}.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"] }] });
338
333
  }
339
334
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, decorators: [{
340
335
  type: Component,
341
- 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 {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\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 ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":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"] }]
336
+ 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 {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\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 ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:contents}.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"] }]
342
337
  }] });
343
338
 
344
339
  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-action.directive.ts","../../../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 * Resolves `dividers` against the app-level default; `null` means unset.\n * Both `ds-modal` and `ds-modal-card` call this: a `ModalService` confirm renders a\n * card with no `ds-modal` ancestor.\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\nexport const MODAL_SLOTS = [\n 'eyebrow',\n 'title-badge',\n 'body',\n 'impact',\n 'actions',\n] as const;\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport {\n DS_INTL,\n warnUnslottedContent,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { MODAL_SLOTS, 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 // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Card width. */\n readonly size = input<ModalSize>('md');\n /** Severity: drives the icon-badge tint, title colour, DEFAULT icon and ARIA role.\n * Null (default) is a neutral dialog; `icon` overrides the picked icon.\n * `false` and `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 /** 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; off also tightens the vertical padding.\n * Unset falls back to `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`; anything else stays `dialog`. */\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 private readonly header =\n viewChild.required<ElementRef<HTMLElement>>('header');\n private readonly actionsRow =\n viewChild.required<ElementRef<HTMLElement>>('actions');\n private readonly unslotted = viewChild<ElementRef<HTMLElement>>('unslotted');\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n warnUnslottedContent(\n 'ds-modal-card',\n 'body',\n MODAL_SLOTS,\n () => this.unslotted()?.nativeElement,\n );\n }\n afterRenderEffect((onCleanup) => {\n this.stackOverflowingActions();\n let frame = 0;\n // Deferred a frame: a layout change inside a ResizeObserver callback is reported as an observer loop.\n const remeasure = () => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => this.stackOverflowingActions());\n };\n const observer = new ResizeObserver(remeasure);\n // The header, not the actions row: its box does not move when the row stacks.\n observer.observe(this.header().nativeElement);\n // A label change leaves every observed box unchanged; attributes stay unobserved so toggling `stacked` never loops.\n const contentObserver = new MutationObserver(remeasure);\n contentObserver.observe(this.actionsRow().nativeElement, {\n childList: true,\n subtree: true,\n characterData: true,\n });\n onCleanup(() => {\n cancelAnimationFrame(frame);\n observer.disconnect();\n contentObserver.disconnect();\n });\n });\n }\n\n // Measured unstacked: stacked, every child is full-width and its natural width is gone.\n private stackOverflowingActions(): void {\n const row = this.actionsRow().nativeElement;\n row.classList.remove('stacked');\n const styles = getComputedStyle(row);\n const available =\n row.clientWidth -\n parseFloat(styles.paddingLeft) -\n parseFloat(styles.paddingRight);\n const gap = parseFloat(styles.columnGap) || 0;\n let needed = -gap;\n for (const child of row.children) {\n needed += child.getBoundingClientRect().width + gap;\n }\n row.classList.toggle('stacked', needed > available);\n }\n\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\n #header\n 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 [attr.aria-label]=\"intl().dialog.closeDialog\"\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\n #unslotted\n class=\"unslotted\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n ElementRef,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_SLOTS, 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 {\n backdropDismiss,\n warnUnslottedContent,\n} 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 // Keeps a static `title` attribute from becoming a native tooltip on the host.\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. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card. 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 /** Fires when the projected `dsModalConfirm` action is pressed. The modal stays open. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions; off also tightens the vertical padding.\n * Unset falls back to `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 cannot disagree if a provider sits 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. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n private readonly unslotted = viewChild<ElementRef<HTMLElement>>('unslotted');\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n warnUnslottedContent(\n 'ds-modal',\n 'body',\n MODAL_SLOTS,\n () => this.unslotted()?.nativeElement,\n );\n }\n // Skipped in preview, which is always shown.\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 // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\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 // Host's OWN animationend only; matching the keyframes name would make 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\n <div\n #unslotted\n class=\"unslotted\">\n <ng-content></ng-content>\n </div>\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 { Directive, inject } from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalComponent } from './modal.component';\n\n/**\n * Marks the confirm action inside a `ds-modal`; pressing it fires the modal's `confirmed`.\n * On a `ds-button` it follows `pressed`, so a disabled or loading button never confirms; on any\n * other element it follows `click` and skips `aria-disabled=\"true\"`. The modal stays open:\n * close it from the `confirmed` handler once the work is done.\n */\n@Directive({\n selector: '[dsModalConfirm]',\n standalone: true,\n host: { '(click)': 'onClick($event)' },\n})\nexport class ModalConfirmActionDirective {\n private readonly modal = inject(ModalComponent);\n private readonly button = inject(ButtonComponent, {\n self: true,\n optional: true,\n });\n\n constructor() {\n this.button?.pressed.subscribe(() => this.modal.confirmed.emit());\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.button) {\n return;\n }\n const target = event.currentTarget as HTMLElement;\n if (target.getAttribute('aria-disabled') === 'true') {\n return;\n }\n this.modal.confirmed.emit();\n }\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, guarding 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 { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\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 protected readonly intl = inject(DS_INTL);\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 {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\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 ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.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 // No CDK backdrop CSS ships; paint the scrim from the DS token.\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;;;;AAIG;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;AAEO,MAAM,WAAW,GAAG;IACzB,SAAS;IACT,aAAa;IACb,MAAM;IACN,QAAQ;IACR,SAAS;CACD;;ACAV,IAAIA,QAAM,GAAG,CAAC;MAYD,kBAAkB,CAAA;AACV,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAAY,IAAI,2EAAC;AACtC;;AAE8F;AACrF,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,IAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI,+EAAC;;IAErC,SAAS,GAAG,KAAK,CAAC,IAAI,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;AACmE;AAC1D,IAAA,QAAQ,GAAG,KAAK,CAA0B,IAAI,EAAA,EA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/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-action.directive.ts","../../../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 * Resolves `dividers` against the app-level default; `null` means unset.\n * Both `ds-modal` and `ds-modal-card` call this: a `ModalService` confirm renders a\n * card with no `ds-modal` ancestor.\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 ElementRef,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\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\nfunction* flexItems(parent: Element): Generator<Element> {\n for (const child of parent.children) {\n if (getComputedStyle(child).display === 'contents') {\n yield* flexItems(child);\n } else {\n yield child;\n }\n }\n}\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 // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Card width. */\n readonly size = input<ModalSize>('md');\n /** Severity: drives the icon-badge tint, title colour, DEFAULT icon and ARIA role.\n * Null (default) is a neutral dialog; `icon` overrides the picked icon.\n * `false` and `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 /** 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; off also tightens the vertical padding.\n * Unset falls back to `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`; anything else stays `dialog`. */\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 private readonly header =\n viewChild.required<ElementRef<HTMLElement>>('header');\n private readonly actionsRow =\n viewChild.required<ElementRef<HTMLElement>>('actions');\n\n constructor() {\n afterRenderEffect((onCleanup) => {\n this.stackOverflowingActions();\n let frame = 0;\n // Deferred a frame: a layout change inside a ResizeObserver callback is reported as an observer loop.\n const remeasure = () => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => this.stackOverflowingActions());\n };\n const observer = new ResizeObserver(remeasure);\n // The header, not the actions row: its box does not move when the row stacks.\n observer.observe(this.header().nativeElement);\n // A label change leaves every observed box unchanged; attributes stay unobserved so toggling `stacked` never loops.\n const contentObserver = new MutationObserver(remeasure);\n contentObserver.observe(this.actionsRow().nativeElement, {\n childList: true,\n subtree: true,\n characterData: true,\n });\n onCleanup(() => {\n cancelAnimationFrame(frame);\n observer.disconnect();\n contentObserver.disconnect();\n });\n });\n }\n\n // Measured unstacked: stacked, every child is full-width and its natural width is gone.\n private stackOverflowingActions(): void {\n const row = this.actionsRow().nativeElement;\n row.classList.remove('stacked');\n const styles = getComputedStyle(row);\n const available =\n row.clientWidth -\n parseFloat(styles.paddingLeft) -\n parseFloat(styles.paddingRight);\n const gap = parseFloat(styles.columnGap) || 0;\n let needed = -gap;\n for (const item of flexItems(row)) {\n needed += item.getBoundingClientRect().width + gap;\n }\n row.classList.toggle('stacked', needed > available);\n }\n\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\n #header\n 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 [attr.aria-label]=\"intl().dialog.closeDialog\"\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 <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n 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 // Keeps a static `title` attribute from becoming a native tooltip on the host.\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. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card. 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 /** Fires when the projected `dsModalConfirm` action is pressed. The modal stays open. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions; off also tightens the vertical padding.\n * Unset falls back to `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 cannot disagree if a provider sits 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. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // Skipped in preview, which is always shown.\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 // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\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 // Host's OWN animationend only; matching the keyframes name would make 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\n <ng-content></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 { Directive, inject } from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalComponent } from './modal.component';\n\n/**\n * Marks the confirm action inside a `ds-modal`; pressing it fires the modal's `confirmed`.\n * On a `ds-button` it follows `pressed`, so a disabled or loading button never confirms; on any\n * other element it follows `click` and skips `aria-disabled=\"true\"`. The modal stays open:\n * close it from the `confirmed` handler once the work is done.\n */\n@Directive({\n selector: '[dsModalConfirm]',\n standalone: true,\n host: { '(click)': 'onClick($event)' },\n})\nexport class ModalConfirmActionDirective {\n private readonly modal = inject(ModalComponent);\n private readonly button = inject(ButtonComponent, {\n self: true,\n optional: true,\n });\n\n constructor() {\n this.button?.pressed.subscribe(() => this.modal.confirmed.emit());\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.button) {\n return;\n }\n const target = event.currentTarget as HTMLElement;\n if (target.getAttribute('aria-disabled') === 'true') {\n return;\n }\n this.modal.confirmed.emit();\n }\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, guarding 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 { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\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 protected readonly intl = inject(DS_INTL);\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 {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\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 ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.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 // No CDK backdrop CSS ships; paint the scrim from the DS token.\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;;;;AAIG;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;;ACKA,IAAIA,QAAM,GAAG,CAAC;AAEd,UAAU,SAAS,CAAC,MAAe,EAAA;AACjC,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE;QACnC,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,UAAU,EAAE;AAClD,YAAA,OAAO,SAAS,CAAC,KAAK,CAAC;QACzB;aAAO;AACL,YAAA,MAAM,KAAK;QACb;IACF;AACF;MAYa,kBAAkB,CAAA;AACV,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAAY,IAAI,2EAAC;AACtC;;AAE8F;AACrF,IAAA,MAAM,GAAG,KAAK,CACrB,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,CAAA,EACF,SAAS,EAAE,CAAC,KAAK,KAA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