@ids-group-ltd/ids-design-system 0.14.0 → 0.14.1

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 (227) hide show
  1. package/CHANGELOG.md +330 -4
  2. package/components.md +81 -43
  3. package/design-system.md +2 -0
  4. package/docs/agent/INDEX.md +2 -1
  5. package/docs/agent/charts/column-series-component.md +1 -1
  6. package/docs/agent/charts/ds-bar-chart.md +2 -1
  7. package/docs/agent/charts/ds-chart.md +1 -1
  8. package/docs/agent/charts/ds-config.md +3 -1
  9. package/docs/agent/charts/ds-line-chart.md +3 -3
  10. package/docs/agent/charts/ds-pie-chart.md +4 -3
  11. package/docs/agent/feedback/ds-alert.md +1 -0
  12. package/docs/agent/feedback/ds-badge.md +1 -1
  13. package/docs/agent/feedback/ds-banner.md +1 -0
  14. package/docs/agent/feedback/ds-skeleton.md +2 -2
  15. package/docs/agent/feedback/ds-tag.md +1 -1
  16. package/docs/agent/forms/ds-autocomplete.md +2 -2
  17. package/docs/agent/forms/ds-button.md +1 -1
  18. package/docs/agent/forms/ds-color-picker.md +1 -1
  19. package/docs/agent/forms/ds-date-picker.md +2 -2
  20. package/docs/agent/forms/ds-filter-bar.md +1 -1
  21. package/docs/agent/forms/ds-icon-button.md +1 -1
  22. package/docs/agent/forms/ds-input.md +1 -1
  23. package/docs/agent/forms/ds-multi-select.md +2 -2
  24. package/docs/agent/forms/ds-otp-input.md +1 -1
  25. package/docs/agent/forms/ds-search.md +2 -2
  26. package/docs/agent/forms/ds-split-button.md +1 -1
  27. package/docs/agent/forms/ds-textarea.md +1 -1
  28. package/docs/agent/foundations/tokens.md +1 -1
  29. package/docs/agent/navigation/ds-app-layout.md +2 -2
  30. package/docs/agent/navigation/ds-auth-layout.md +4 -4
  31. package/docs/agent/navigation/ds-page-header.md +1 -1
  32. package/docs/agent/platform/ds-config.md +2 -3
  33. package/docs/agent/platform/ds-intl.md +33 -0
  34. package/docs/agent/surfaces/ds-accordion.md +2 -2
  35. package/docs/agent/tables/ds-table.md +2 -2
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +21 -10
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +13 -8
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +21 -10
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +35 -18
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +5 -3
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +22 -29
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +91 -67
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +20 -16
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +16 -9
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -2
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +13 -7
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +36 -29
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +13 -9
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +23 -20
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +15 -10
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -4
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +13 -7
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +7 -6
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +51 -16
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +17 -10
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +4 -3
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +20 -6
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +19 -18
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +5 -3
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +5 -4
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -10
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +14 -15
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +271 -73
  153. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +359 -3
  155. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  158. package/migrations/0.10.0.json +1 -1
  159. package/migrations/0.10.1.json +1 -1
  160. package/migrations/0.14.0.json +28 -4
  161. package/migrations/0.14.1.json +856 -0
  162. package/package.json +1 -1
  163. package/schematics/check-overrides/index.cjs +56 -0
  164. package/schematics/check-overrides/scan.cjs +74 -0
  165. package/schematics/check-overrides/schema.json +19 -0
  166. package/schematics/check-overrides/surface.json +2304 -0
  167. package/schematics/collection.json +5 -0
  168. package/styles/_chart-interactive.scss +33 -0
  169. package/styles/_field-box.scss +12 -0
  170. package/styles/_overlay-motion.scss +6 -4
  171. package/styles/_tokens-charts.scss +1 -1
  172. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
  173. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
  174. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
  175. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
  176. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
  177. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
  178. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
  179. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
  180. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
  181. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +18 -10
  182. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
  183. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  184. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
  185. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +2 -0
  186. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +1 -4
  187. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +38 -18
  188. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
  189. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +9 -8
  190. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
  191. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +2 -0
  192. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
  193. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
  194. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
  195. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +11 -9
  196. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +7 -5
  197. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  198. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +13 -10
  199. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
  200. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
  201. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
  202. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
  203. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
  204. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
  205. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +24 -10
  206. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +8 -5
  207. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
  208. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
  209. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
  210. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
  211. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
  212. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  213. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
  214. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
  215. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
  216. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
  217. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +10 -5
  218. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +2 -0
  219. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
  220. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
  221. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
  222. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
  223. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
  224. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +7 -5
  225. package/types/ids-group-ltd-ids-design-system-components.d.ts +44 -21
  226. package/types/ids-group-ltd-ids-design-system-core.d.ts +408 -11
  227. package/types/ids-group-ltd-ids-design-system.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multiple: () => boolean;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n name=\"chevronRight\"\n class=\"chev\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multiple = input(true, { transform: booleanAttribute });\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multiple()) {\n return;\n }\n for (const item of this.items() as unknown as AccordionItemRef[]) {\n if (item !== opened) {\n item.closeItem();\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAea,SAAS,GAAG,IAAI,cAAc,CAAoB,WAAW;;ACH1E,IAAI,MAAM,GAAG,CAAC;MAaD,sBAAsB,CAAA;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAEhC,IAAA,QAAQ,GAAG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,wBAAA;AACE,4BAAA,OAAO,EAAE,SAAS;AAClB,4BAAA,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC;AAClD,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,sIAAA,CAAA,EAAA;6LAMwC,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC1CjE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-accordion.mjs","sources":["../../../src/lib/components/accordion/accordion.token.ts","../../../src/lib/components/accordion/accordion-item.component.ts","../../../src/lib/components/accordion/accordion-item.component.html","../../../src/lib/components/accordion/accordion.component.ts","../../../src/lib/components/accordion/ids-group-ltd-ids-design-system-components-accordion.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { AccordionChevron } from './accordion.types';\n\n/** Contract that ds-accordion-item reads from its parent ds-accordion. */\nexport interface AccordionContract {\n readonly multiple: () => boolean;\n readonly chevron: () => AccordionChevron;\n /** Called when an item opens; coordinator may close other items. */\n notifyOpen(item: AccordionItemRef): void;\n}\n\n/** Contract ds-accordion reads back from each projected item. */\nexport interface AccordionItemRef {\n /** Closes this item (sets expanded to false). */\n closeItem(): void;\n}\n\nexport const ACCORDION = new InjectionToken<AccordionContract>('ACCORDION');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { ACCORDION, type AccordionItemRef } from './accordion.token';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-accordion-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null', '[class.chevron-down]': 'chevronDown()' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AccordionItemComponent implements AccordionItemRef {\n /** Header text shown in the toggle button. */\n readonly title = input.required<string>();\n /** Open state, two-way bound. */\n readonly expanded = model<boolean>(false);\n /** Disables the toggle button; state stays as-is. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly uid = `ds-accordion-${++nextId}`;\n protected readonly headId = `${this.uid}-head`;\n protected readonly bodyId = `${this.uid}-body`;\n\n private readonly accordion = inject(ACCORDION, { optional: true });\n\n protected readonly chevronDown = computed(\n () => (this.accordion?.chevron() ?? 'right') === 'down',\n );\n protected readonly chevronName = computed<IconName>(() =>\n this.chevronDown() ? 'chevronDown' : 'chevronRight',\n );\n\n /** Tracks last expanded state so we only notify on a true open transition. */\n private previousExpanded = false;\n\n constructor() {\n effect(() => {\n const isExpanded = this.expanded();\n if (isExpanded && !this.previousExpanded) {\n this.accordion?.notifyOpen(this);\n }\n this.previousExpanded = isExpanded;\n });\n }\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.expanded.set(!this.expanded());\n }\n\n /** Called by the accordion coordinator to enforce single-open mode. */\n closeItem(): void {\n this.expanded.set(false);\n }\n}\n","<button\n type=\"button\"\n class=\"head\"\n [id]=\"headId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"bodyId\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"toggle()\">\n <span>\n {{ title() }}\n </span>\n\n <ng-content select=\"[badge]\"></ng-content>\n\n <ds-icon\n class=\"chev\"\n [name]=\"chevronName()\"\n [size]=\"16\" />\n</button>\n\n<div\n class=\"body\"\n role=\"region\"\n [id]=\"bodyId\"\n [attr.aria-labelledby]=\"headId\"\n [class.is-open]=\"expanded()\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"body-inner\">\n <div class=\"body-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n contentChildren,\n forwardRef,\n input,\n} from '@angular/core';\nimport {\n ACCORDION,\n type AccordionContract,\n type AccordionItemRef,\n} from './accordion.token';\nimport { AccordionItemComponent } from './accordion-item.component';\nimport type { AccordionChevron } from './accordion.types';\n\n@Component({\n selector: 'ds-accordion',\n standalone: true,\n imports: [],\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n border: var(--border-width-default) solid var(--border-divider);\n border-radius: var(--radius-lg);\n overflow: hidden;\n }\n `,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: ACCORDION,\n useExisting: forwardRef(() => AccordionComponent),\n },\n ],\n})\nexport class AccordionComponent implements AccordionContract {\n /** When false, opening one item automatically closes all others. */\n readonly multiple = input(true, { transform: booleanAttribute });\n\n /** Which way the closed chevron points on every item: `right` turns down when an item opens, `down` turns up. */\n readonly chevron = input<AccordionChevron>('right');\n\n private readonly items = contentChildren(AccordionItemComponent);\n\n notifyOpen(opened: AccordionItemRef): void {\n if (this.multiple()) {\n return;\n }\n for (const item of this.items() as unknown as AccordionItemRef[]) {\n if (item !== opened) {\n item.closeItem();\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAiBa,SAAS,GAAG,IAAI,cAAc,CAAoB,WAAW;;ACH1E,IAAI,MAAM,GAAG,CAAC;MAaD,sBAAsB,CAAA;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAEhC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;IAEhC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE9C,IAAA,GAAG,GAAG,CAAA,aAAA,EAAgB,EAAE,MAAM,EAAE;AAChC,IAAA,MAAM,GAAG,CAAA,EAAG,IAAI,CAAC,GAAG,OAAO;AAC3B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AA;;4FAmB1B,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAvB9B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EACD,2BAA2B,EAAA,aAAA,EAWtB,iBAAiB,CAAC,QAAQ,EAAA,SAAA,EAC9B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,SAAS;AAClB,4BAAA,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC;AAClD,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,sIAAA,CAAA,EAAA;2RASwC,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC9CjE;;AAEG;;;;"}
@@ -1,9 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, computed, HostBinding, ViewEncapsulation, Component } from '@angular/core';
2
+ import { inject, input, booleanAttribute, output, computed, HostBinding, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
4
- import { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';
4
+ import { DS_INTL, resolveWithConfig, warnAnnounceOversight } from '@ids-group-ltd/ids-design-system/core';
5
5
 
6
6
  class AlertComponent {
7
+ intl = inject(DS_INTL);
7
8
  /** Severity — drives colour, the default icon and the ARIA role/live. */
8
9
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
9
10
  /** Optional bold heading above the message. */
@@ -19,18 +20,28 @@ class AlertComponent {
19
20
  * and prefer `ToastService` for anything transient. */
20
21
  announce = input(null, { ...(ngDevMode ? { debugName: "announce" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
21
22
  announceResolved = resolveWithConfig(this.announce, (config) => config.alert?.announce, false);
22
- get ariaRole() {
23
- if (!this.announceResolved()) {
24
- return null;
25
- }
23
+ liveRole = computed(() => {
26
24
  const value = this.variant();
27
25
  return value === 'error' || value === 'warning' ? 'alert' : 'status';
26
+ }, ...(ngDevMode ? [{ debugName: "liveRole" }] : /* istanbul ignore next */ []));
27
+ get ariaRole() {
28
+ return this.announceResolved() ? this.liveRole() : null;
28
29
  }
29
30
  get ariaLive() {
30
31
  if (!this.announceResolved()) {
31
32
  return null;
32
33
  }
33
- return this.ariaRole === 'alert' ? 'assertive' : 'polite';
34
+ return this.liveRole() === 'alert' ? 'assertive' : 'polite';
35
+ }
36
+ constructor() {
37
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
38
+ warnAnnounceOversight('ds-alert', 'alert', () => ({
39
+ variant: this.variant(),
40
+ title: this.title(),
41
+ assertive: this.liveRole() === 'alert',
42
+ announce: this.announce(),
43
+ }));
44
+ }
34
45
  }
35
46
  classes = computed(() => `alert ${this.variant()}`, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
36
47
  defaultIcon = computed(() => {
@@ -51,12 +62,12 @@ class AlertComponent {
51
62
  this.closed.emit();
52
63
  }
53
64
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
54
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AlertComponent, isStandalone: true, selector: "ds-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null", "attr.role": "this.ariaRole", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
65
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AlertComponent, isStandalone: true, selector: "ds-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null", "attr.role": "this.ariaRole", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
55
66
  }
56
67
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AlertComponent, decorators: [{
57
68
  type: Component,
58
- args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"] }]
59
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], ariaRole: [{
69
+ args: [{ selector: 'ds-alert', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n", styles: [":host{display:inline-flex}.alert{--_alert-bg-color: var(--ds-alert-bg-color, var(--info-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--info-text));--_alert-title-text-color: var(--ds-alert-title-text-color, var(--text-primary));--_alert-close-icon-color: var(--ds-alert-close-icon-color, var(--icon-default));--_alert-close-icon-color-hover: var(--ds-alert-close-icon-color-hover, var(--icon-strong));--_alert-padding-y: var(--ds-alert-padding-y, var(--space-2));--_alert-padding-x: var(--ds-alert-padding-x, var(--space-3));--_alert-radius: var(--ds-alert-radius, var(--ds-radius-control));--_alert-enter-keyframes: var(--ds-alert-enter-keyframes, ds-scale-in);--_alert-enter-duration: var(--ds-alert-enter-duration, var(--ds-motion-enter-surface-duration));--_alert-enter-easing: var(--ds-alert-enter-easing, var(--ds-motion-enter-surface-easing));--_alert-enter-offset: var(--ds-alert-enter-offset, 2px);--_ds-enter-y: calc(-1 * var(--_alert-enter-offset));--_ds-enter-scale: var(--ds-alert-enter-scale, .96);display:inline-flex;align-items:flex-start;gap:var(--space-2);padding:var(--_alert-padding-y) var(--_alert-padding-x);border-radius:var(--_alert-radius);background-color:var(--_alert-bg-color);color:var(--_alert-text-color);animation-name:var(--_alert-enter-keyframes);animation-duration:var(--_alert-enter-duration);animation-timing-function:var(--_alert-enter-easing)}@media(prefers-reduced-motion:reduce){.alert{--_alert-enter-duration: 0ms}}.alert.success{--_alert-bg-color: var(--ds-alert-bg-color, var(--success-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--success-text))}.alert.warning{--_alert-bg-color: var(--ds-alert-bg-color, var(--warning-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--warning-text))}.alert.error{--_alert-bg-color: var(--ds-alert-bg-color, var(--error-subtitle));--_alert-text-color: var(--ds-alert-text-color, var(--error-text))}.alert.neutral{--_alert-bg-color: var(--ds-alert-bg-color, var(--surface-secondary));--_alert-text-color: var(--ds-alert-text-color, var(--text-secondary))}.alert .a-icon{flex-shrink:0;color:inherit;align-self:center}.alert .a-body{flex:1;min-width:0}.alert .a-title{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_alert-title-text-color);margin:0 0 var(--space-1)}.alert .a-actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.alert .a-actions:empty{display:none}.alert .a-close{background:none;border:0;cursor:pointer;padding:0;color:var(--_alert-close-icon-color);flex-shrink:0}.alert .a-close:hover{color:var(--_alert-close-icon-color-hover)}.alert .a-close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}\n"] }]
70
+ }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], ariaRole: [{
60
71
  type: HostBinding,
61
72
  args: ['attr.role']
62
73
  }], ariaLive: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-alert.mjs","sources":["../../../src/lib/components/alert/alert.component.ts","../../../src/lib/components/alert/alert.component.html","../../../src/lib/components/alert/ids-group-ltd-ids-design-system-components-alert.ts"],"sourcesContent":["import {\n Component,\n HostBinding,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { AlertVariant } from './alert.types';\n\n@Component({\n selector: 'ds-alert',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './alert.component.html',\n styleUrl: './alert.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AlertComponent {\n /** Severity — drives colour, the default icon and the ARIA role/live. */\n readonly variant = input<AlertVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Fires when the user dismisses the alert. */\n readonly closed = output<void>();\n\n /** Announce this alert to a screen reader when it appears. Unset follows\n * `DS_CONFIG.alert.announce`, then `false` — see `ds-banner`'s `announce` for why,\n * and prefer `ToastService` for anything transient. */\n readonly announce = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n readonly announceResolved = resolveWithConfig(\n this.announce,\n (config) => config.alert?.announce,\n false,\n );\n\n @HostBinding('attr.role')\n protected get ariaRole(): 'alert' | 'status' | null {\n if (!this.announceResolved()) {\n return null;\n }\n const value = this.variant();\n\n return value === 'error' || value === 'warning' ? 'alert' : 'status';\n }\n\n @HostBinding('attr.aria-live')\n protected get ariaLive(): 'assertive' | 'polite' | null {\n if (!this.announceResolved()) {\n return null;\n }\n\n return this.ariaRole === 'alert' ? 'assertive' : 'polite';\n }\n\n protected readonly classes = computed(() => `alert ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n const variant = this.variant();\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'warning') {\n return 'warn';\n }\n if (variant === 'error') {\n return 'error';\n }\n\n return 'info';\n });\n\n protected readonly resolvedIcon = computed<IconName>(\n () => this.icon() ?? this.defaultIcon(),\n );\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n aria-label=\"Dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAyBa,cAAc,CAAA;;AAEhB,IAAA,OAAO,GAAG,KAAK,CAAe,MAAM,8EAAC;;AAErC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE3D,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;IAEnC,MAAM,GAAG,MAAM,EAAQ;AAEhC;;AAEwD;AAC/C,IAAA,QAAQ,GAAG,KAAK,CAA0B,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,UAAA,EAAA,8BAAA,EAAA,CAAA,EACrD,SAAS,EAAE,CAAC,KAAK,MAAM,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,GACtE;IAEO,gBAAgB,GAAG,iBAAiB,CAC3C,IAAI,CAAC,QAAQ,EACb,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,EAAE,QAAQ,EAClC,KAAK,CACN;AAED,IAAA,IACc,QAA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Z,cAAc,EAAA,UAAA,EAAA,CAAA;kBAX1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,IAAA,EAKlB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAA,aAAA,EACjB,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,+pBAAA,EAAA,MAAA,EAAA,CAAA,kvFAAA,CAAA,EAAA;;sBA2BxC,WAAW;uBAAC,WAAW;;sBAUvB,WAAW;uBAAC,gBAAgB;;;AE5D/B;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-alert.mjs","sources":["../../../src/lib/components/alert/alert.component.ts","../../../src/lib/components/alert/alert.component.html","../../../src/lib/components/alert/ids-group-ltd-ids-design-system-components-alert.ts"],"sourcesContent":["import {\n Component,\n HostBinding,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport {\n DS_INTL,\n resolveWithConfig,\n warnAnnounceOversight,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { AlertVariant } from './alert.types';\n\n@Component({\n selector: 'ds-alert',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './alert.component.html',\n styleUrl: './alert.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class AlertComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Severity — drives colour, the default icon and the ARIA role/live. */\n readonly variant = input<AlertVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Fires when the user dismisses the alert. */\n readonly closed = output<void>();\n\n /** Announce this alert to a screen reader when it appears. Unset follows\n * `DS_CONFIG.alert.announce`, then `false` — see `ds-banner`'s `announce` for why,\n * and prefer `ToastService` for anything transient. */\n readonly announce = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n readonly announceResolved = resolveWithConfig(\n this.announce,\n (config) => config.alert?.announce,\n false,\n );\n\n private readonly liveRole = computed<'alert' | 'status'>(() => {\n const value = this.variant();\n\n return value === 'error' || value === 'warning' ? 'alert' : 'status';\n });\n\n @HostBinding('attr.role')\n protected get ariaRole(): 'alert' | 'status' | null {\n return this.announceResolved() ? this.liveRole() : null;\n }\n\n @HostBinding('attr.aria-live')\n protected get ariaLive(): 'assertive' | 'polite' | null {\n if (!this.announceResolved()) {\n return null;\n }\n\n return this.liveRole() === 'alert' ? 'assertive' : 'polite';\n }\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n warnAnnounceOversight('ds-alert', 'alert', () => ({\n variant: this.variant(),\n title: this.title(),\n assertive: this.liveRole() === 'alert',\n announce: this.announce(),\n }));\n }\n }\n\n protected readonly classes = computed(() => `alert ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n const variant = this.variant();\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'warning') {\n return 'warn';\n }\n if (variant === 'error') {\n return 'error';\n }\n\n return 'info';\n });\n\n protected readonly resolvedIcon = computed<IconName>(\n () => this.icon() ?? this.defaultIcon(),\n );\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<div [class]=\"classes()\">\n <ds-icon\n class=\"a-icon\"\n [name]=\"resolvedIcon()\"\n [size]=\"16\">\n </ds-icon>\n\n <div class=\"a-body\">\n @if (title()) {\n <div class=\"a-title\">\n {{ title() }}\n </div>\n }\n\n <div class=\"a-msg\">\n <ng-content />\n </div>\n\n <div class=\"a-actions\">\n <ng-content select=\"[actions]\" />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n class=\"a-close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA8Ba,cAAc,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,OAAO,GAAG,KAAK,CAAe,MAAM,8EAAC;;AAErC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE3D,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;IAEnC,MAAM,GAAG,MAAM,EAAQ;AAEhC;;AAEwD;AAC/C,IAAA,QAAQ,GAAG,KAAK,CAA0B,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,UAAA,EAAA,8BAAA,EAAA,CAAA,EACrD,SAAS,EAAE,CAAC,KAAK,MAAM,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,GACtE;IAEO,gBAAgB,GAAG,iBAAiB,CAC3C,IAAI,CAAC,QAAQ,EACb,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,EAAE,QAAQ,EAClC,KAAK,CACN;AAEgB,IAAA,QAAQ,GAAG,QAAQ,CAAqB,MAAK;AAC5D,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE;AAE5B,QAAA,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,SAAS,GAAG,OAAO,GAAG,QAAQ;AACtE,IAAA,CAAC,+EAAC;AAEF,IAAA,IACc,QAAQ,GAAA;AACpB,QAAA,OAAO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,CAAA,kvFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDdY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQZ,cAAc,EAAA,UAAA,EAAA,CAAA;kBAX1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,IAAA,EAKlB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAA,aAAA,EACjB,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,orBAAA,EAAA,MAAA,EAAA,CAAA,kvFAAA,CAAA,EAAA;;sBAmCxC,WAAW;uBAAC,WAAW;;sBAKvB,WAAW;uBAAC,gBAAgB;;;AEpE/B;;AAEG;;;;"}
@@ -1,8 +1,9 @@
1
1
  import * as i1 from '@angular/cdk/a11y';
2
2
  import { A11yModule } from '@angular/cdk/a11y';
3
3
  import * as i0 from '@angular/core';
4
- import { inject, signal, DestroyRef, Injectable, input, model, booleanAttribute, viewChild, effect, afterNextRender, isDevMode, ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
4
+ import { inject, signal, DestroyRef, Injectable, input, model, computed, booleanAttribute, viewChild, effect, afterNextRender, isDevMode, ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
5
5
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
+ import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
6
7
  import { DOCUMENT } from '@angular/common';
7
8
  import { fromEvent, debounceTime, filter, map, distinctUntilChanged } from 'rxjs';
8
9
  import { Router, NavigationEnd, NavigationStart } from '@angular/router';
@@ -399,8 +400,11 @@ class AppLayoutComponent {
399
400
  * ignored. Two-way, so a burger in your topbar can drive it.
400
401
  */
401
402
  railOpen = model(false, ...(ngDevMode ? [{ debugName: "railOpen" }] : /* istanbul ignore next */ []));
402
- /** Accessible name for the rail while it is a modal overlay. */
403
- railLabel = input('Navigation', ...(ngDevMode ? [{ debugName: "railLabel" }] : /* istanbul ignore next */ []));
403
+ /** Accessible name for the rail while it is a modal overlay. Unset falls back to
404
+ * `DS_INTL.appLayout.railLabel`. */
405
+ railLabel = input(null, ...(ngDevMode ? [{ debugName: "railLabel" }] : /* istanbul ignore next */ []));
406
+ intl = inject(DS_INTL);
407
+ railLabelResolved = computed(() => this.railLabel() ?? this.intl().appLayout.railLabel, ...(ngDevMode ? [{ debugName: "railLabelResolved" }] : /* istanbul ignore next */ []));
404
408
  /**
405
409
  * Remember the content scroll per path and restore it on the way BACK. Off by
406
410
  * default: a layout that silently moved the scroll would surprise every existing
@@ -504,7 +508,7 @@ class AppLayoutComponent {
504
508
  this.destroyRef.onDestroy(() => desktop.removeEventListener('change', sync));
505
509
  }
506
510
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
507
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AppLayoutComponent, isStandalone: true, selector: "ds-app-layout", inputs: { topbarSpan: { classPropertyName: "topbarSpan", publicName: "topbarSpan", isSignal: true, isRequired: false, transformFunction: null }, railOpen: { classPropertyName: "railOpen", publicName: "railOpen", isSignal: true, isRequired: false, transformFunction: null }, railLabel: { classPropertyName: "railLabel", publicName: "railLabel", isSignal: true, isRequired: false, transformFunction: null }, restoreScroll: { classPropertyName: "restoreScroll", publicName: "restoreScroll", isSignal: true, isRequired: false, transformFunction: null }, restoreScrollTimeout: { classPropertyName: "restoreScrollTimeout", publicName: "restoreScrollTimeout", isSignal: true, isRequired: false, transformFunction: null }, scrollReset: { classPropertyName: "scrollReset", publicName: "scrollReset", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { railOpen: "railOpenChange" }, host: { listeners: { "document:keydown.escape": "closeRail()" }, properties: { "class.app-layout": "true", "class.topbar-full": "topbarSpan() === 'full'", "class.rail-open": "railOpen()" } }, providers: [AppLayoutScrollService], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabel() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":host{--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
511
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AppLayoutComponent, isStandalone: true, selector: "ds-app-layout", inputs: { topbarSpan: { classPropertyName: "topbarSpan", publicName: "topbarSpan", isSignal: true, isRequired: false, transformFunction: null }, railOpen: { classPropertyName: "railOpen", publicName: "railOpen", isSignal: true, isRequired: false, transformFunction: null }, railLabel: { classPropertyName: "railLabel", publicName: "railLabel", isSignal: true, isRequired: false, transformFunction: null }, restoreScroll: { classPropertyName: "restoreScroll", publicName: "restoreScroll", isSignal: true, isRequired: false, transformFunction: null }, restoreScrollTimeout: { classPropertyName: "restoreScrollTimeout", publicName: "restoreScrollTimeout", isSignal: true, isRequired: false, transformFunction: null }, scrollReset: { classPropertyName: "scrollReset", publicName: "scrollReset", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { railOpen: "railOpenChange" }, host: { listeners: { "document:keydown.escape": "closeRail()" }, properties: { "class.app-layout": "true", "class.topbar-full": "topbarSpan() === 'full'", "class.rail-open": "railOpen()" } }, providers: [AppLayoutScrollService], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":host{--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
508
512
  }
509
513
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AppLayoutComponent, decorators: [{
510
514
  type: Component,
@@ -513,7 +517,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
513
517
  '[class.topbar-full]': "topbarSpan() === 'full'",
514
518
  '[class.rail-open]': 'railOpen()',
515
519
  '(document:keydown.escape)': 'closeRail()',
516
- }, providers: [AppLayoutScrollService], template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabel() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":host{--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"] }]
520
+ }, providers: [AppLayoutScrollService], template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":host{--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"] }]
517
521
  }], ctorParameters: () => [], propDecorators: { topbarSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "topbarSpan", required: false }] }], railOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "railOpen", required: false }] }, { type: i0.Output, args: ["railOpenChange"] }], railLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "railLabel", required: false }] }], restoreScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreScroll", required: false }] }], restoreScrollTimeout: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreScrollTimeout", required: false }] }], scrollReset: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollReset", required: false }] }], content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
518
522
 
519
523
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-app-layout.mjs","sources":["../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/app-layout/ids-group-ltd-ids-design-system-components-app-layout.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize).\n * `ds-app-layout` subtracts it from the content region's right padding so the\n * visual inset stays equal on both sides whether the scrollbar area is a real\n * bar (classic scrollbars), a reserved gutter, or nothing (overlay\n * scrollbars, where the measured width is 0). Internal — instantiated by\n * `ds-app-layout`; not part of the public API.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one. A query- or\n * fragment-only navigation is a search, sort or page step on the same screen, and\n * everything that reacts to \"went somewhere else\" must agree on that — the scroll\n * reset, the responsive rail, and now your own code — so they read one source\n * instead of each deciding for itself.\n *\n * PUBLIC since 0.8.x, because consumers were re-deriving it and disagreeing: one\n * consumer had three separate answers to \"did the path change?\" — route snapshots\n * in a view-transition skip, this stream inside the layout, and a `split('?')`\n * in a tab helper that ignored the fragment this one strips. Inject it and read\n * `pathChanged` rather than writing a fourth:\n *\n * ```ts\n * private readonly navigation = inject(AppLayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A PATH change is not always a page change. An app whose URL mirrors the\n * reader's position — a docs layout rewriting `/area/section` from a scroll spy,\n * a wizard that names its step — changes the path while staying on the screen,\n * and resetting the scroll there fights the user: the reset moves the scroll,\n * the spy rewrites the path again, and the page ping-pongs. Such a navigation\n * must carry `state: { dsSamePage: true }`, which is skipped here.\n *\n * Root-provided, which is also what makes it safe to expose: the stream is\n * derived from the router and holds no state, so one instance serves every\n * reader. `AppLayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class AppLayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\n// Enough for a reader's back-stack without letting one tab's history grow unbounded.\nconst MAX_ENTRIES = 20;\n\n// Input events only. NOT `scroll`: our own restore writes emit one, so listening\n// for it would cancel the restore we are performing.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default) is today's behaviour: only when navigation lands on a\n * different PATH, so a search, a sort or a page step on the same screen keeps\n * the reader's place. `'always'` resets on every navigation, which is what a\n * server-paged list usually wants — a new page should start at the top.\n * `'never'` hands the decision back to the screen, which can still call\n * `AppLayoutScrollService.scrollToTop()` itself.\n */\nexport type DsAppLayoutScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. In the fixed-frame layout the window never\n * scrolls, so the router's built-in window-based scrolling no-ops — this service\n * resets the registered container to the top when navigation lands on a different\n * PATH instead. Provided by `ds-app-layout`, so routed pages can\n * `inject(AppLayoutScrollService)` and call `scrollToTop()` manually (e.g. list pages\n * that DO want the top after a filter change).\n *\n * With `restoreScroll` on the layout it also restores the reader's place. Only\n * when ARMED, which is the whole design: going BACK to a list should return to\n * where the reader was, while following a link into a new screen should not.\n */\n@Injectable()\nexport class AppLayoutScrollService {\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /**\n * The content scroller, once the layout has rendered it. Exposed so a host that\n * must measure or drive the scroll itself — a scroll-spy, a virtualizer — can\n * ask the layout for it instead of guessing the layout's internal markup with\n * `document.querySelector`.\n */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off, which is the default.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsAppLayoutScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed for this very navigation: the reset would\n // undo the offset we are about to apply.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /**\n * Wiring, called by `ds-app-layout` once its content region exists. Public only\n * because the component and the service sit in different files - a consumer has\n * no reason to call it, and calling it points the service at the wrong element.\n */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsAppLayoutScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /**\n * Scroll the content region to an absolute offset. Assigns `scrollTop` rather\n * than calling `scrollTo`, so a themed `scroll-behavior: smooth` cannot turn a\n * positioning jump into an animation.\n */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Take the offset this navigation is going to restore, and cancel the restore.\n *\n * For a host that renders its own scroll position — a virtualizer needs the\n * offset BEFORE it decides which rows to build, so letting the service assign\n * `scrollTop` afterwards would scroll a list that has not been built yet.\n * Returns null when nothing is pending, which is every navigation that is not a\n * back.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /**\n * Optional accelerator: tell the layout the content for this route is in the\n * DOM. Without it the restore still lands — it waits for the container to grow\n * and clamps at the deadline — but a host that knows when its data arrived can\n * end the wait early instead of paying the growth watch.\n */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n // Save where we are LEAVING from, while the old content is still mounted.\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n // Armed by a history traversal (back, forward, the mouse side button, Alt+←,\n // an edge swipe — all arrive as popstate), by a host that pushes instead of\n // traversing and says so, or by the first navigation of a reload, where the\n // reader expects the page they left.\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // 'always' resets on navigations `pathChanged` deliberately ignores — a query\n // or fragment step on the same screen. Guarded by `armed` for the same reason\n // the path reset is: a restore about to run must not be undone first.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n // Out of patience: land as close as the content allows rather than not at\n // all. A list that loaded 8 of 40 rows still returns near the reader's row.\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // The CONTAINER's own box does not change as content arrives — its child's\n // does, which is what makes scrollHeight grow. No fixed frame count: native\n // timing differs between engines, so watch for the growth instead of guessing\n // how many frames it takes.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back; fighting it would\n // move the page under a reader who never asked.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n // The content may already be tall enough — a cached list renders synchronously.\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // sessionStorage, not local: a remembered scroll position is worthless in a\n // tab that outlives the visit. Every access is guarded — Safari's private mode\n // throws on write, and a quota error must not take the navigation down with it.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end: JSON object order is insertion\n // order, which is what makes the oldest entry droppable below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: a lost scroll position is not worth an error.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\nimport {\n AppLayoutScrollService,\n type DsAppLayoutScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport\n * (`100dvh` + `overflow: hidden`) and ONLY the content region scrolls, so\n * the sidenav rail and the topbar stay put on pages taller than the\n * viewport. Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself — do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)\n * and fires when navigation changes the PATH, so a URL-driven list can page\n * and filter without losing the reader's place; inject the service and call\n * `scrollToTop()` for the changes that do want the top. The content padding\n * auto-compensates the native scrollbar width so the right inset always\n * equals the left one. The layout requires the application router\n * (`provideRouter`) because its scroll-to-top service subscribes to\n * navigation events.\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [AppLayoutScrollService],\n})\nexport class AppLayoutComponent {\n /**\n * `'content'` (default): the rail spans the full viewport height on the\n * left and the topbar sits above the content column only. `'full'`: the\n * topbar spans the full width and the rail + content sit below it.\n */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /**\n * Whether the rail is open as an overlay. Only meaningful below the `lg`\n * breakpoint — above it the rail is always in the layout and this is\n * ignored. Two-way, so a burger in your topbar can drive it.\n */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. */\n readonly railLabel = input<string>('Navigation');\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default: a layout that silently moved the scroll would surprise every existing\n * consumer. Only a history traversal restores — following a link into a screen\n * still lands at the top — plus a host that pushes its own \"back to list\" and\n * says so with `state: { dsRestoreScroll: true }`, and the first navigation after\n * a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /**\n * How long to wait for the restored screen's content to grow tall enough before\n * landing as close as it allows. Only meaningful with `restoreScroll`.\n */\n readonly restoreScrollTimeout = input(2000);\n\n /**\n * When the content scroll resets to the top. `'path'` (default) is what the\n * layout has always done; `'always'` also resets on a query- or fragment-only\n * navigation, which is what a server-paged list wants; `'never'` hands the\n * decision to the screen, which can still call `AppLayoutScrollService.scrollToTop()`.\n *\n * It exists because the layout owning the scroll CONTAINER also meant it owned\n * the POLICY: a screen could add a reset but had no way to suppress one.\n */\n readonly scrollReset = input<DsAppLayoutScrollReset>('path');\n\n /**\n * True only while the rail is an overlay. Gates the dialog semantics: above\n * the breakpoint the rail is an ordinary region, and a permanent\n * `role=\"dialog\"` there would lie to a screen reader.\n */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(AppLayoutScrollService);\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): navigating is not a dismissal. The reader activated a link,\n // so focus belongs wherever the router put it - handing it back to the burger\n // would announce \"Open navigation\" instead of the page they asked for.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only when the directive is DESTROYED, not when it flips\n // off, so without this the caret stays inside the now off-canvas panel. Whatever control claims\n // the rail through aria-controls owns it — dsRailTrigger and the DS-button forwarding both set it.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // Single source of truth: the stylesheet's media block and this query both\n // resolve to `--bp-lg`. There is deliberately NO literal fallback — one here\n // could disagree with the scale and the rail would flip at a different width\n // than the CSS, silently. A missing value means the DS global styles were\n // never included, which breaks far more than this component, so say so.\n const lg = getComputedStyle(document.documentElement)\n .getPropertyValue('--bp-lg')\n .trim();\n if (!lg) {\n if (isDevMode()) {\n console.error(\n '[ds-app-layout] --bp-lg is not defined, so the responsive rail cannot know its breakpoint and stays in desktop layout. Include the DS global styles (@use \"…/styles/ds\") — or, à la carte, the partial that emits the breakpoint vars.',\n );\n }\n\n return;\n }\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Crossing UP drops the overlay state: leaving it set would re-open the\n // rail unprompted the next time the viewport narrows. Set the model\n // directly rather than calling closeRail(), whose focus restore has no\n // business firing here - the trigger it would focus is hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabel() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: the attributes go on the\n * host element, and on `<ds-icon-button>` that is the wrapper, whose inner\n * `<button>` is what a screen reader actually reads. With a DS button, skip this\n * directive and bind its forwarding inputs instead —\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"` and\n * `[ariaControls]=\"layout.railId\"` off a `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay: above the\n * breakpoint the rail is permanently in the layout, so `aria-expanded=\"false\"`\n * would state the opposite of what the user sees.\n *\n * Must sit inside a `ds-app-layout` — the injector walks the declaration tree, so\n * anywhere in the projected chrome works. Outside one, DI fails naming\n * `AppLayoutComponent`, which says what is missing.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["filter"],"mappings":";;;;;;;;;;;AAKA;;;;;;;;AAQG;MAEU,qBAAqB,CAAA;AACf,IA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C,EAAA,QAAA,EAAA,89BAAA,EAAA,MAAA,EAAA,CAAA,ozDAAA,CAAA,EAAA;4vBAgEW,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjIzD;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;MAUU,oBAAoB,CAAA;AACZ,IAAA,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAE5C,MAAM,GAAA;AACd,QAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC;IAC9C;wGALW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,iDAAA,EAAA,oBAAA,EAAA,6CAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAThC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,iDAAiD;AACzE,wBAAA,sBAAsB,EAAE,6CAA6C;AACrE,wBAAA,SAAS,EAAE,UAAU;AACtB,qBAAA;AACF,iBAAA;;;ACvCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-app-layout.mjs","sources":["../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/app-layout/ids-group-ltd-ids-design-system-components-app-layout.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize).\n * `ds-app-layout` subtracts it from the content region's right padding so the\n * visual inset stays equal on both sides whether the scrollbar area is a real\n * bar (classic scrollbars), a reserved gutter, or nothing (overlay\n * scrollbars, where the measured width is 0). Internal — instantiated by\n * `ds-app-layout`; not part of the public API.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one. A query- or\n * fragment-only navigation is a search, sort or page step on the same screen, and\n * everything that reacts to \"went somewhere else\" must agree on that — the scroll\n * reset, the responsive rail, and now your own code — so they read one source\n * instead of each deciding for itself.\n *\n * PUBLIC since 0.8.x, because consumers were re-deriving it and disagreeing: one\n * consumer had three separate answers to \"did the path change?\" — route snapshots\n * in a view-transition skip, this stream inside the layout, and a `split('?')`\n * in a tab helper that ignored the fragment this one strips. Inject it and read\n * `pathChanged` rather than writing a fourth:\n *\n * ```ts\n * private readonly navigation = inject(AppLayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A PATH change is not always a page change. An app whose URL mirrors the\n * reader's position — a docs layout rewriting `/area/section` from a scroll spy,\n * a wizard that names its step — changes the path while staying on the screen,\n * and resetting the scroll there fights the user: the reset moves the scroll,\n * the spy rewrites the path again, and the page ping-pongs. Such a navigation\n * must carry `state: { dsSamePage: true }`, which is skipped here.\n *\n * Root-provided, which is also what makes it safe to expose: the stream is\n * derived from the router and holds no state, so one instance serves every\n * reader. `AppLayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class AppLayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\n// Enough for a reader's back-stack without letting one tab's history grow unbounded.\nconst MAX_ENTRIES = 20;\n\n// Input events only. NOT `scroll`: our own restore writes emit one, so listening\n// for it would cancel the restore we are performing.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default) is today's behaviour: only when navigation lands on a\n * different PATH, so a search, a sort or a page step on the same screen keeps\n * the reader's place. `'always'` resets on every navigation, which is what a\n * server-paged list usually wants — a new page should start at the top.\n * `'never'` hands the decision back to the screen, which can still call\n * `AppLayoutScrollService.scrollToTop()` itself.\n */\nexport type DsAppLayoutScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. In the fixed-frame layout the window never\n * scrolls, so the router's built-in window-based scrolling no-ops — this service\n * resets the registered container to the top when navigation lands on a different\n * PATH instead. Provided by `ds-app-layout`, so routed pages can\n * `inject(AppLayoutScrollService)` and call `scrollToTop()` manually (e.g. list pages\n * that DO want the top after a filter change).\n *\n * With `restoreScroll` on the layout it also restores the reader's place. Only\n * when ARMED, which is the whole design: going BACK to a list should return to\n * where the reader was, while following a link into a new screen should not.\n */\n@Injectable()\nexport class AppLayoutScrollService {\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /**\n * The content scroller, once the layout has rendered it. Exposed so a host that\n * must measure or drive the scroll itself — a scroll-spy, a virtualizer — can\n * ask the layout for it instead of guessing the layout's internal markup with\n * `document.querySelector`.\n */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off, which is the default.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsAppLayoutScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed for this very navigation: the reset would\n // undo the offset we are about to apply.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /**\n * Wiring, called by `ds-app-layout` once its content region exists. Public only\n * because the component and the service sit in different files - a consumer has\n * no reason to call it, and calling it points the service at the wrong element.\n */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsAppLayoutScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /**\n * Scroll the content region to an absolute offset. Assigns `scrollTop` rather\n * than calling `scrollTo`, so a themed `scroll-behavior: smooth` cannot turn a\n * positioning jump into an animation.\n */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Take the offset this navigation is going to restore, and cancel the restore.\n *\n * For a host that renders its own scroll position — a virtualizer needs the\n * offset BEFORE it decides which rows to build, so letting the service assign\n * `scrollTop` afterwards would scroll a list that has not been built yet.\n * Returns null when nothing is pending, which is every navigation that is not a\n * back.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /**\n * Optional accelerator: tell the layout the content for this route is in the\n * DOM. Without it the restore still lands — it waits for the container to grow\n * and clamps at the deadline — but a host that knows when its data arrived can\n * end the wait early instead of paying the growth watch.\n */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n // Save where we are LEAVING from, while the old content is still mounted.\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n // Armed by a history traversal (back, forward, the mouse side button, Alt+←,\n // an edge swipe — all arrive as popstate), by a host that pushes instead of\n // traversing and says so, or by the first navigation of a reload, where the\n // reader expects the page they left.\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // 'always' resets on navigations `pathChanged` deliberately ignores — a query\n // or fragment step on the same screen. Guarded by `armed` for the same reason\n // the path reset is: a restore about to run must not be undone first.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n // Out of patience: land as close as the content allows rather than not at\n // all. A list that loaded 8 of 40 rows still returns near the reader's row.\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // The CONTAINER's own box does not change as content arrives — its child's\n // does, which is what makes scrollHeight grow. No fixed frame count: native\n // timing differs between engines, so watch for the growth instead of guessing\n // how many frames it takes.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back; fighting it would\n // move the page under a reader who never asked.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n // The content may already be tall enough — a cached list renders synchronously.\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // sessionStorage, not local: a remembered scroll position is worthless in a\n // tab that outlives the visit. Every access is guarded — Safari's private mode\n // throws on write, and a quota error must not take the navigation down with it.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end: JSON object order is insertion\n // order, which is what makes the oldest entry droppable below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: a lost scroll position is not worth an error.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\nimport {\n AppLayoutScrollService,\n type DsAppLayoutScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport\n * (`100dvh` + `overflow: hidden`) and ONLY the content region scrolls, so\n * the sidenav rail and the topbar stay put on pages taller than the\n * viewport. Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself — do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)\n * and fires when navigation changes the PATH, so a URL-driven list can page\n * and filter without losing the reader's place; inject the service and call\n * `scrollToTop()` for the changes that do want the top. The content padding\n * auto-compensates the native scrollbar width so the right inset always\n * equals the left one. The layout requires the application router\n * (`provideRouter`) because its scroll-to-top service subscribes to\n * navigation events.\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [AppLayoutScrollService],\n})\nexport class AppLayoutComponent {\n /**\n * `'content'` (default): the rail spans the full viewport height on the\n * left and the topbar sits above the content column only. `'full'`: the\n * topbar spans the full width and the rail + content sit below it.\n */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /**\n * Whether the rail is open as an overlay. Only meaningful below the `lg`\n * breakpoint — above it the rail is always in the layout and this is\n * ignored. Two-way, so a burger in your topbar can drive it.\n */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. Unset falls back to\n * `DS_INTL.appLayout.railLabel`. */\n readonly railLabel = input<string | null>(null);\n private readonly intl = inject(DS_INTL);\n protected readonly railLabelResolved = computed(\n () => this.railLabel() ?? this.intl().appLayout.railLabel,\n );\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default: a layout that silently moved the scroll would surprise every existing\n * consumer. Only a history traversal restores — following a link into a screen\n * still lands at the top — plus a host that pushes its own \"back to list\" and\n * says so with `state: { dsRestoreScroll: true }`, and the first navigation after\n * a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /**\n * How long to wait for the restored screen's content to grow tall enough before\n * landing as close as it allows. Only meaningful with `restoreScroll`.\n */\n readonly restoreScrollTimeout = input(2000);\n\n /**\n * When the content scroll resets to the top. `'path'` (default) is what the\n * layout has always done; `'always'` also resets on a query- or fragment-only\n * navigation, which is what a server-paged list wants; `'never'` hands the\n * decision to the screen, which can still call `AppLayoutScrollService.scrollToTop()`.\n *\n * It exists because the layout owning the scroll CONTAINER also meant it owned\n * the POLICY: a screen could add a reset but had no way to suppress one.\n */\n readonly scrollReset = input<DsAppLayoutScrollReset>('path');\n\n /**\n * True only while the rail is an overlay. Gates the dialog semantics: above\n * the breakpoint the rail is an ordinary region, and a permanent\n * `role=\"dialog\"` there would lie to a screen reader.\n */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(AppLayoutScrollService);\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): navigating is not a dismissal. The reader activated a link,\n // so focus belongs wherever the router put it - handing it back to the burger\n // would announce \"Open navigation\" instead of the page they asked for.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only when the directive is DESTROYED, not when it flips\n // off, so without this the caret stays inside the now off-canvas panel. Whatever control claims\n // the rail through aria-controls owns it — dsRailTrigger and the DS-button forwarding both set it.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // Single source of truth: the stylesheet's media block and this query both\n // resolve to `--bp-lg`. There is deliberately NO literal fallback — one here\n // could disagree with the scale and the rail would flip at a different width\n // than the CSS, silently. A missing value means the DS global styles were\n // never included, which breaks far more than this component, so say so.\n const lg = getComputedStyle(document.documentElement)\n .getPropertyValue('--bp-lg')\n .trim();\n if (!lg) {\n if (isDevMode()) {\n console.error(\n '[ds-app-layout] --bp-lg is not defined, so the responsive rail cannot know its breakpoint and stays in desktop layout. Include the DS global styles (@use \"…/styles/ds\") — or, à la carte, the partial that emits the breakpoint vars.',\n );\n }\n\n return;\n }\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Crossing UP drops the overlay state: leaving it set would re-open the\n // rail unprompted the next time the viewport narrows. Set the model\n // directly rather than calling closeRail(), whose focus restore has no\n // business firing here - the trigger it would focus is hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: the attributes go on the\n * host element, and on `<ds-icon-button>` that is the wrapper, whose inner\n * `<button>` is what a screen reader actually reads. With a DS button, skip this\n * directive and bind its forwarding inputs instead —\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"` and\n * `[ariaControls]=\"layout.railId\"` off a `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay: above the\n * breakpoint the rail is permanently in the layout, so `aria-expanded=\"false\"`\n * would state the opposite of what the user sees.\n *\n * Must sit inside a `ds-app-layout` — the injector walks the declaration tree, so\n * anywhere in the projected chrome works. Outside one, DI fails naming\n * `AppLayoutComponent`, which says what is missing.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["filter"],"mappings":";;;;;;;;;;;;AAKA;;;;;;;;AAQG;MAEU,qBAAqB,CAAA;AACf,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAY;IAE3C,KAAK,GAAG,MAAM,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ameDirective` alongside this
19
19
  * component, or the attribute is inert and the wordmark lands in the card), and
20
20
  * `[brand]` projects a real logo. The two are not pixel-identical: the rail's tile
21
- * is a fixed 28px at weight 800, this one 24-32px at 700, and each has its own
21
+ * is a fixed 28px at weight 800, this one 28px at 700, and each has its own
22
22
  * `--ds-*-mark-*` hooks, so retinting the mark means setting both.
23
23
  *
24
24
  * Projecting into `[brand]` does NOT suppress the tile — leave `brand`/`logoLetter`
@@ -59,11 +59,11 @@ class AuthLayoutComponent {
59
59
  /** Card padding, passed through to `ds-card`. `md` tightens a short form. */
60
60
  cardPadding = input('lg', ...(ngDevMode ? [{ debugName: "cardPadding" }] : /* istanbul ignore next */ []));
61
61
  /** Announce the card as the page's `main` landmark. `ds-card` renders an
62
- * `<article>`, which is NOT a landmark, so by default a screen-reader user has
63
- * nothing to jump to — set `'main'` on a standalone auth page. Opt-in because
64
- * the layout is also embedded inside pages that already own a `main`, and two
65
- * `main`s is its own violation. */
66
- landmark = input('none', ...(ngDevMode ? [{ debugName: "landmark" }] : /* istanbul ignore next */ []));
62
+ * `<article>`, which is not a landmark, so this is what lets a screen-reader
63
+ * user jump to the form. Set `'none'` where the layout sits inside a page
64
+ * that already owns a `main`, such as `ds-app-layout`: two `main` landmarks
65
+ * is its own violation. */
66
+ landmark = input('main', ...(ngDevMode ? [{ debugName: "landmark" }] : /* istanbul ignore next */ []));
67
67
  brandNameRef = contentChild(BrandNameDirective, ...(ngDevMode ? [{ debugName: "brandNameRef" }] : /* istanbul ignore next */ []));
68
68
  hasBrandName = computed(() => !!this.brandNameRef(), ...(ngDevMode ? [{ debugName: "hasBrandName" }] : /* istanbul ignore next */ []));
69
69
  /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand
@@ -71,11 +71,11 @@ class AuthLayoutComponent {
71
71
  * a surrogate pair and paints as tofu. */
72
72
  markGlyph = computed(() => this.letterGlyph() || [...this.brandName()][0] || '', ...(ngDevMode ? [{ debugName: "markGlyph" }] : /* istanbul ignore next */ []));
73
73
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AuthLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
74
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AuthLayoutComponent, isStandalone: true, selector: "ds-auth-layout", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, logoLetter: { classPropertyName: "logoLetter", publicName: "logoLetter", isSignal: true, isRequired: false, transformFunction: null }, tagline: { classPropertyName: "tagline", publicName: "tagline", isSignal: true, isRequired: false, transformFunction: null }, cardElevation: { classPropertyName: "cardElevation", publicName: "cardElevation", isSignal: true, isRequired: false, transformFunction: null }, cardPadding: { classPropertyName: "cardPadding", publicName: "cardPadding", isSignal: true, isRequired: false, transformFunction: null }, landmark: { classPropertyName: "landmark", publicName: "landmark", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "brandNameRef", first: true, predicate: BrandNameDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"auth\">\n <header class=\"masthead\">\n <div class=\"brand\">\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n </div>\n\n @if (taglineText()) {\n <p class=\"tagline\">\n {{ taglineText() }}\n </p>\n }\n </header>\n\n <ds-card\n class=\"card\"\n [attr.role]=\"landmark() === 'main' ? 'main' : null\"\n [elevation]=\"cardElevation()\"\n [padding]=\"cardPadding()\">\n <ng-content></ng-content>\n </ds-card>\n\n <footer class=\"support\">\n <ng-content select=\"[dsAuthSupport]\"></ng-content>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_auth-layout-min-height: var(--ds-auth-layout-min-height, 100dvh);--_auth-layout-bg-color: var(--ds-auth-layout-bg-color, var(--surface-canvas));--_auth-layout-gap: var(--ds-auth-layout-gap, clamp(var(--space-4), 4svh, var(--space-8)));--_auth-layout-padding-block: var(--ds-auth-layout-padding-block, clamp(var(--space-4), 5svh, var(--space-10)));--_auth-layout-mark-size: var(--ds-auth-layout-mark-size, clamp(var(--space-6), 4svh, var(--space-8)));--_auth-layout-mark-radius: var(--ds-auth-layout-mark-radius, var(--ds-radius-control));--_auth-layout-card-max-width: var(--ds-auth-layout-card-max-width, var(--auth-card-w));--_auth-layout-mark-bg-color: var(--ds-auth-layout-mark-bg-color, var(--accent));--_auth-layout-mark-label-color: var(--ds-auth-layout-mark-label-color, var(--accent-on));box-sizing:border-box;display:flex;min-height:var(--_auth-layout-min-height);background-color:var(--_auth-layout-bg-color);padding-block:calc(var(--_auth-layout-padding-block) + env(safe-area-inset-top,0px)) calc(var(--_auth-layout-padding-block) + env(safe-area-inset-bottom,0px));padding-left:calc(var(--space-4) + env(safe-area-inset-left,0px));padding-right:calc(var(--space-4) + env(safe-area-inset-right,0px))}.auth{display:flex;flex-direction:column;align-items:center;gap:var(--_auth-layout-gap);margin:auto;width:100%;max-width:var(--_auth-layout-card-max-width)}.masthead{display:flex;flex-direction:column;align-items:center;gap:clamp(var(--space-1),1svh,var(--space-2))}.masthead:has(>.brand:not(:has(*))):not(:has(>.tagline)){display:none}.brand{display:inline-flex;align-items:center;gap:var(--space-2)}.brand:not(:has(*)){display:none}.brand ::ng-deep>[brand]{max-height:var(--ds-auth-layout-brand-max-height, none)}.mark{display:grid;place-items:center;width:var(--_auth-layout-mark-size);height:var(--_auth-layout-mark-size);flex-shrink:0;border-radius:var(--_auth-layout-mark-radius);background-color:var(--_auth-layout-mark-bg-color);color:var(--_auth-layout-mark-label-color);font:var(--font-weight-bold) var(--font-size-m)/1 var(--font-sans)}.brand-name{font:var(--font-weight-extrabold) var(--font-size-h4)/var(--line-height-snug) var(--font-sans);color:var(--text-primary)}.tagline{margin:0;color:var(--text-secondary);font-size:var(--font-size-s);text-align:center}.card{width:100%}.support{color:var(--text-tertiary);font-size:var(--font-size-xs);text-align:center}.support:empty{display:none}\n"], dependencies: [{ kind: "component", type: CardComponent, selector: "ds-card", inputs: ["elevation", "padding"], outputs: ["pressed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
74
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AuthLayoutComponent, isStandalone: true, selector: "ds-auth-layout", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, logoLetter: { classPropertyName: "logoLetter", publicName: "logoLetter", isSignal: true, isRequired: false, transformFunction: null }, tagline: { classPropertyName: "tagline", publicName: "tagline", isSignal: true, isRequired: false, transformFunction: null }, cardElevation: { classPropertyName: "cardElevation", publicName: "cardElevation", isSignal: true, isRequired: false, transformFunction: null }, cardPadding: { classPropertyName: "cardPadding", publicName: "cardPadding", isSignal: true, isRequired: false, transformFunction: null }, landmark: { classPropertyName: "landmark", publicName: "landmark", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "brandNameRef", first: true, predicate: BrandNameDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"auth\">\n <header class=\"masthead\">\n <div class=\"brand\">\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n </div>\n\n @if (taglineText()) {\n <p class=\"tagline\">\n {{ taglineText() }}\n </p>\n }\n </header>\n\n <ds-card\n class=\"card\"\n [attr.role]=\"landmark() === 'main' ? 'main' : null\"\n [elevation]=\"cardElevation()\"\n [padding]=\"cardPadding()\">\n <ng-content></ng-content>\n </ds-card>\n\n <footer class=\"support\">\n <ng-content select=\"[dsAuthSupport]\"></ng-content>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_auth-layout-min-height: var(--ds-auth-layout-min-height, 100dvh);--_auth-layout-bg-color: var(--ds-auth-layout-bg-color, var(--surface-canvas));--_auth-layout-gap: var(--ds-auth-layout-gap, clamp(var(--space-4), 4svh, var(--space-8)));--_auth-layout-padding-block: var(--ds-auth-layout-padding-block, clamp(var(--space-4), 5svh, var(--space-10)));--_auth-layout-mark-size: var(--ds-auth-layout-mark-size, var(--sidenav-logo-size));--_auth-layout-mark-font-size: var(--ds-auth-layout-mark-font-size, var(--font-size-m));--_auth-layout-brand-name-font-size: var(--ds-auth-layout-brand-name-font-size, var(--font-size-h5));--_auth-layout-mark-radius: var(--ds-auth-layout-mark-radius, var(--ds-radius-control));--_auth-layout-card-max-width: var(--ds-auth-layout-card-max-width, var(--auth-card-w));--_auth-layout-mark-bg-color: var(--ds-auth-layout-mark-bg-color, var(--accent));--_auth-layout-mark-label-color: var(--ds-auth-layout-mark-label-color, var(--accent-on));box-sizing:border-box;display:flex;min-height:var(--_auth-layout-min-height);background-color:var(--_auth-layout-bg-color);padding-block:calc(var(--_auth-layout-padding-block) + env(safe-area-inset-top,0px)) calc(var(--_auth-layout-padding-block) + env(safe-area-inset-bottom,0px));padding-left:calc(var(--space-4) + env(safe-area-inset-left,0px));padding-right:calc(var(--space-4) + env(safe-area-inset-right,0px))}.auth{display:flex;flex-direction:column;align-items:center;gap:var(--_auth-layout-gap);margin:auto;width:100%;max-width:var(--_auth-layout-card-max-width)}.masthead{display:flex;flex-direction:column;align-items:center;gap:clamp(var(--space-1),1svh,var(--space-2))}.masthead:has(>.brand:not(:has(*))):not(:has(>.tagline)){display:none}.brand{display:inline-flex;align-items:center;gap:var(--space-2)}.brand:not(:has(*)){display:none}.brand ::ng-deep>[brand]{max-height:var(--ds-auth-layout-brand-max-height, var(--_auth-layout-mark-size))}.mark{display:grid;place-items:center;width:var(--_auth-layout-mark-size);height:var(--_auth-layout-mark-size);flex-shrink:0;border-radius:var(--_auth-layout-mark-radius);background-color:var(--_auth-layout-mark-bg-color);color:var(--_auth-layout-mark-label-color);font:var(--font-weight-bold) var(--_auth-layout-mark-font-size)/1 var(--font-sans)}.brand-name{font:var(--font-weight-extrabold) var(--_auth-layout-brand-name-font-size)/var(--line-height-snug) var(--font-sans);color:var(--text-primary)}.tagline{margin:0;color:var(--text-secondary);font-size:var(--font-size-s);text-align:center}.card{width:100%}.support{color:var(--text-tertiary);font-size:var(--font-size-xs);text-align:center}.support:empty{display:none}\n"], dependencies: [{ kind: "component", type: CardComponent, selector: "ds-card", inputs: ["elevation", "padding"], outputs: ["pressed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
75
75
  }
76
76
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AuthLayoutComponent, decorators: [{
77
77
  type: Component,
78
- args: [{ selector: 'ds-auth-layout', standalone: true, imports: [CardComponent], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"auth\">\n <header class=\"masthead\">\n <div class=\"brand\">\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n </div>\n\n @if (taglineText()) {\n <p class=\"tagline\">\n {{ taglineText() }}\n </p>\n }\n </header>\n\n <ds-card\n class=\"card\"\n [attr.role]=\"landmark() === 'main' ? 'main' : null\"\n [elevation]=\"cardElevation()\"\n [padding]=\"cardPadding()\">\n <ng-content></ng-content>\n </ds-card>\n\n <footer class=\"support\">\n <ng-content select=\"[dsAuthSupport]\"></ng-content>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_auth-layout-min-height: var(--ds-auth-layout-min-height, 100dvh);--_auth-layout-bg-color: var(--ds-auth-layout-bg-color, var(--surface-canvas));--_auth-layout-gap: var(--ds-auth-layout-gap, clamp(var(--space-4), 4svh, var(--space-8)));--_auth-layout-padding-block: var(--ds-auth-layout-padding-block, clamp(var(--space-4), 5svh, var(--space-10)));--_auth-layout-mark-size: var(--ds-auth-layout-mark-size, clamp(var(--space-6), 4svh, var(--space-8)));--_auth-layout-mark-radius: var(--ds-auth-layout-mark-radius, var(--ds-radius-control));--_auth-layout-card-max-width: var(--ds-auth-layout-card-max-width, var(--auth-card-w));--_auth-layout-mark-bg-color: var(--ds-auth-layout-mark-bg-color, var(--accent));--_auth-layout-mark-label-color: var(--ds-auth-layout-mark-label-color, var(--accent-on));box-sizing:border-box;display:flex;min-height:var(--_auth-layout-min-height);background-color:var(--_auth-layout-bg-color);padding-block:calc(var(--_auth-layout-padding-block) + env(safe-area-inset-top,0px)) calc(var(--_auth-layout-padding-block) + env(safe-area-inset-bottom,0px));padding-left:calc(var(--space-4) + env(safe-area-inset-left,0px));padding-right:calc(var(--space-4) + env(safe-area-inset-right,0px))}.auth{display:flex;flex-direction:column;align-items:center;gap:var(--_auth-layout-gap);margin:auto;width:100%;max-width:var(--_auth-layout-card-max-width)}.masthead{display:flex;flex-direction:column;align-items:center;gap:clamp(var(--space-1),1svh,var(--space-2))}.masthead:has(>.brand:not(:has(*))):not(:has(>.tagline)){display:none}.brand{display:inline-flex;align-items:center;gap:var(--space-2)}.brand:not(:has(*)){display:none}.brand ::ng-deep>[brand]{max-height:var(--ds-auth-layout-brand-max-height, none)}.mark{display:grid;place-items:center;width:var(--_auth-layout-mark-size);height:var(--_auth-layout-mark-size);flex-shrink:0;border-radius:var(--_auth-layout-mark-radius);background-color:var(--_auth-layout-mark-bg-color);color:var(--_auth-layout-mark-label-color);font:var(--font-weight-bold) var(--font-size-m)/1 var(--font-sans)}.brand-name{font:var(--font-weight-extrabold) var(--font-size-h4)/var(--line-height-snug) var(--font-sans);color:var(--text-primary)}.tagline{margin:0;color:var(--text-secondary);font-size:var(--font-size-s);text-align:center}.card{width:100%}.support{color:var(--text-tertiary);font-size:var(--font-size-xs);text-align:center}.support:empty{display:none}\n"] }]
78
+ args: [{ selector: 'ds-auth-layout', standalone: true, imports: [CardComponent], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"auth\">\n <header class=\"masthead\">\n <div class=\"brand\">\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n </div>\n\n @if (taglineText()) {\n <p class=\"tagline\">\n {{ taglineText() }}\n </p>\n }\n </header>\n\n <ds-card\n class=\"card\"\n [attr.role]=\"landmark() === 'main' ? 'main' : null\"\n [elevation]=\"cardElevation()\"\n [padding]=\"cardPadding()\">\n <ng-content></ng-content>\n </ds-card>\n\n <footer class=\"support\">\n <ng-content select=\"[dsAuthSupport]\"></ng-content>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_auth-layout-min-height: var(--ds-auth-layout-min-height, 100dvh);--_auth-layout-bg-color: var(--ds-auth-layout-bg-color, var(--surface-canvas));--_auth-layout-gap: var(--ds-auth-layout-gap, clamp(var(--space-4), 4svh, var(--space-8)));--_auth-layout-padding-block: var(--ds-auth-layout-padding-block, clamp(var(--space-4), 5svh, var(--space-10)));--_auth-layout-mark-size: var(--ds-auth-layout-mark-size, var(--sidenav-logo-size));--_auth-layout-mark-font-size: var(--ds-auth-layout-mark-font-size, var(--font-size-m));--_auth-layout-brand-name-font-size: var(--ds-auth-layout-brand-name-font-size, var(--font-size-h5));--_auth-layout-mark-radius: var(--ds-auth-layout-mark-radius, var(--ds-radius-control));--_auth-layout-card-max-width: var(--ds-auth-layout-card-max-width, var(--auth-card-w));--_auth-layout-mark-bg-color: var(--ds-auth-layout-mark-bg-color, var(--accent));--_auth-layout-mark-label-color: var(--ds-auth-layout-mark-label-color, var(--accent-on));box-sizing:border-box;display:flex;min-height:var(--_auth-layout-min-height);background-color:var(--_auth-layout-bg-color);padding-block:calc(var(--_auth-layout-padding-block) + env(safe-area-inset-top,0px)) calc(var(--_auth-layout-padding-block) + env(safe-area-inset-bottom,0px));padding-left:calc(var(--space-4) + env(safe-area-inset-left,0px));padding-right:calc(var(--space-4) + env(safe-area-inset-right,0px))}.auth{display:flex;flex-direction:column;align-items:center;gap:var(--_auth-layout-gap);margin:auto;width:100%;max-width:var(--_auth-layout-card-max-width)}.masthead{display:flex;flex-direction:column;align-items:center;gap:clamp(var(--space-1),1svh,var(--space-2))}.masthead:has(>.brand:not(:has(*))):not(:has(>.tagline)){display:none}.brand{display:inline-flex;align-items:center;gap:var(--space-2)}.brand:not(:has(*)){display:none}.brand ::ng-deep>[brand]{max-height:var(--ds-auth-layout-brand-max-height, var(--_auth-layout-mark-size))}.mark{display:grid;place-items:center;width:var(--_auth-layout-mark-size);height:var(--_auth-layout-mark-size);flex-shrink:0;border-radius:var(--_auth-layout-mark-radius);background-color:var(--_auth-layout-mark-bg-color);color:var(--_auth-layout-mark-label-color);font:var(--font-weight-bold) var(--_auth-layout-mark-font-size)/1 var(--font-sans)}.brand-name{font:var(--font-weight-extrabold) var(--_auth-layout-brand-name-font-size)/var(--line-height-snug) var(--font-sans);color:var(--text-primary)}.tagline{margin:0;color:var(--text-secondary);font-size:var(--font-size-s);text-align:center}.card{width:100%}.support{color:var(--text-tertiary);font-size:var(--font-size-xs);text-align:center}.support:empty{display:none}\n"] }]
79
79
  }], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], logoLetter: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoLetter", required: false }] }], tagline: [{ type: i0.Input, args: [{ isSignal: true, alias: "tagline", required: false }] }], cardElevation: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardElevation", required: false }] }], cardPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardPadding", required: false }] }], landmark: [{ type: i0.Input, args: [{ isSignal: true, alias: "landmark", required: false }] }], brandNameRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BrandNameDirective), { isSignal: true }] }] } });
80
80
 
81
81
  /**