@ids-group-ltd/ids-design-system 0.13.4 → 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 (247) hide show
  1. package/CHANGELOG.md +584 -0
  2. package/components.md +100 -52
  3. package/design-system.md +2 -0
  4. package/docs/agent/INDEX.md +3 -2
  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 +3 -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/charts/line-series-component.md +1 -1
  12. package/docs/agent/feedback/ds-alert.md +1 -0
  13. package/docs/agent/feedback/ds-badge.md +1 -1
  14. package/docs/agent/feedback/ds-banner.md +1 -0
  15. package/docs/agent/feedback/ds-skeleton.md +2 -2
  16. package/docs/agent/feedback/ds-tag.md +1 -1
  17. package/docs/agent/forms/ds-autocomplete.md +2 -2
  18. package/docs/agent/forms/ds-button.md +1 -1
  19. package/docs/agent/forms/ds-color-picker.md +1 -1
  20. package/docs/agent/forms/ds-date-picker.md +2 -2
  21. package/docs/agent/forms/ds-filter-bar.md +1 -1
  22. package/docs/agent/forms/ds-icon-button.md +1 -1
  23. package/docs/agent/forms/ds-input.md +1 -1
  24. package/docs/agent/forms/ds-multi-select.md +2 -2
  25. package/docs/agent/forms/ds-otp-input.md +1 -1
  26. package/docs/agent/forms/ds-search.md +3 -3
  27. package/docs/agent/forms/ds-split-button.md +1 -1
  28. package/docs/agent/forms/ds-switch.md +4 -2
  29. package/docs/agent/forms/ds-textarea.md +2 -1
  30. package/docs/agent/foundations/tokens.md +1 -1
  31. package/docs/agent/navigation/ds-app-layout.md +2 -2
  32. package/docs/agent/navigation/ds-auth-layout.md +4 -4
  33. package/docs/agent/navigation/ds-page-header.md +1 -1
  34. package/docs/agent/navigation/ds-pagination.md +2 -2
  35. package/docs/agent/platform/ds-config.md +3 -3
  36. package/docs/agent/platform/ds-intl.md +33 -0
  37. package/docs/agent/surfaces/ds-accordion.md +2 -2
  38. package/docs/agent/tables/ds-cell-template.md +1 -1
  39. package/docs/agent/tables/ds-table.md +5 -4
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +21 -10
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +13 -8
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +21 -10
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +56 -32
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +15 -3
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +5 -3
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +45 -39
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +414 -105
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +22 -18
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +16 -9
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +13 -7
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +40 -42
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +13 -9
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +27 -23
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +62 -13
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +15 -10
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -4
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +13 -7
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +22 -13
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +55 -29
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +41 -12
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +13 -6
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +4 -3
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +37 -4
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +8 -7
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +20 -5
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +18 -15
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +47 -38
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +5 -3
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +26 -4
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -10
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +14 -15
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +345 -66
  161. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +361 -6
  163. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  166. package/migrations/0.10.0.json +1 -1
  167. package/migrations/0.10.1.json +1 -1
  168. package/migrations/0.12.2.json +4 -1
  169. package/migrations/0.13.3.json +32 -10
  170. package/migrations/0.13.4.json +1630 -132
  171. package/migrations/0.14.0.json +615 -0
  172. package/migrations/0.14.1.json +856 -0
  173. package/migrations/0.5.0.json +10 -4
  174. package/migrations/0.7.0.json +5 -2
  175. package/migrations/0.9.0.json +5 -2
  176. package/migrations/README.md +7 -2
  177. package/package.json +1 -1
  178. package/schematics/check-overrides/index.cjs +56 -0
  179. package/schematics/check-overrides/scan.cjs +74 -0
  180. package/schematics/check-overrides/schema.json +19 -0
  181. package/schematics/check-overrides/surface.json +2304 -0
  182. package/schematics/collection.json +5 -0
  183. package/styles/_chart-frame.scss +4 -4
  184. package/styles/_chart-interactive.scss +33 -0
  185. package/styles/_chart-motion.scss +17 -10
  186. package/styles/_field-box.scss +12 -0
  187. package/styles/_overlay-motion.scss +20 -10
  188. package/styles/_skeleton-shimmer.scss +4 -1
  189. package/styles/_tokens-charts.scss +1 -1
  190. package/styles/_tokens.scss +1 -1
  191. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
  192. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
  193. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
  194. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
  195. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
  196. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
  197. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
  198. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
  199. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
  200. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +20 -14
  201. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
  202. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  203. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -0
  204. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +2 -0
  205. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +11 -6
  206. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +155 -36
  207. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
  208. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +11 -8
  209. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
  210. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +2 -0
  211. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
  212. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
  213. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
  214. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +13 -13
  215. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +7 -5
  216. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  217. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +17 -11
  218. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +6 -0
  219. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
  220. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
  221. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
  222. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +17 -10
  223. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
  224. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +25 -14
  225. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +15 -6
  226. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +9 -3
  227. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
  228. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
  229. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
  230. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +6 -1
  231. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  232. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
  233. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
  234. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
  235. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +10 -1
  236. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
  237. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +44 -28
  238. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +2 -0
  239. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
  240. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +15 -0
  241. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
  242. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
  243. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
  244. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +7 -5
  245. package/types/ids-group-ltd-ids-design-system-components.d.ts +83 -17
  246. package/types/ids-group-ltd-ids-design-system-core.d.ts +420 -14
  247. package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
@@ -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,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAY;IAE3C,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,4EAAC;AAE5C,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAErC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AAE7B,QAAA,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ;aAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC;aACtD,SAAS,CAAC,MAAK;AACd,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;AACjC,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACxB,QAAA,CAAC,CAAC;IACN;IAEQ,YAAY,GAAA;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;QAChD,KAAK,CAAC,KAAK,CAAC,OAAO;AACjB,YAAA,wEAAwE;QAC1E,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AAChD,QAAA,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,uBAAuB;AAC7C,QAAA,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC;AAExB,QAAA,MAAM,KAA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;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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ACrE,wBAAA,SAAS,EAAE,UAAU;AACtB,qBAAA;AACF,iBAAA;;;ACvCD;;AAEG;;;;"}
@@ -18,7 +18,7 @@ import { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';
18
18
  * projects a two-tone wordmark (import `BrandNameDirective` 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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-auth-layout.mjs","sources":["../../../src/lib/components/auth-layout/auth-layout.component.ts","../../../src/lib/components/auth-layout/auth-layout.component.html","../../../src/lib/components/auth-layout/ids-group-ltd-ids-design-system-components-auth-layout.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { CardComponent } from '@ids-group-ltd/ids-design-system/components/card';\nimport type {\n CardElevation,\n CardPadding,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/sidenav';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Scaffold for the UNauthenticated screens — sign-in, forgot password, reset,\n * MFA — and the counterpart to `ds-app-layout`, which only ever covers the\n * screens behind the login.\n *\n * The host is the ONLY full-height box — nesting a `100vh` wrapper inside a\n * `100dvh` one scrolls a page whose content fits — and it carries the safe-area\n * insets a notched phone in landscape needs.\n *\n * The brand row takes the same CONTRACT as `ds-sidenav` — a `brand` string gets a\n * letter-mark tile plus wordmark, `logoLetter` overrides the glyph, `[dsBrandName]`\n * projects a two-tone wordmark (import `BrandNameDirective` alongside this\n * component, or the attribute is inert and the wordmark lands in the card), and\n * `[brand]` projects a real logo. The two are not pixel-identical: the rail's tile\n * is a fixed 28px at weight 800, this one 24-32px at 700, and each has its own\n * `--ds-*-mark-*` hooks, so retinting the mark means setting both.\n *\n * Projecting into `[brand]` does NOT suppress the tile — leave `brand`/`logoLetter`\n * unset when you supply a logo.\n *\n * ```html\n * <ds-auth-layout brand=\"AppAdmin\" logoLetter=\"A\" tagline=\"Workspace administration\">\n * <h1 class=\"title\">Sign in</h1>\n * <form class=\"form\">…</form>\n *\n * <p dsAuthSupport>\n * Need a hand? <a href=\"mailto:support@example.com\">Contact support</a>\n * </p>\n * </ds-auth-layout>\n * ```\n */\n@Component({\n selector: 'ds-auth-layout',\n standalone: true,\n imports: [CardComponent],\n templateUrl: './auth-layout.component.html',\n styleUrl: './auth-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AuthLayoutComponent {\n /** Wordmark beside the letter-mark tile. For a logo image/SVG, project it into\n * the `[brand]` slot instead; for a two-tone wordmark use `[dsBrandName]`.\n * Unset falls back to `DS_CONFIG.brand.name`. Each field resolves on its own, so\n * `brand=\"\"` drops the wordmark but a `logoLetter` in the config still paints its\n * tile; clear both to give one screen no brand row. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter (e.g. an\n * \"A\" tile beside the \"AppAdmin\" wordmark). Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** One line under the wordmark naming the product or audience. Unset falls back\n * to `DS_CONFIG.brand.tagline`. */\n readonly tagline = input<string | null>(null);\n\n /** The template must read THIS, never the input beside it — that one is null\n * until bound, and the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n readonly taglineText = resolveBrandValue(this.tagline, 'tagline');\n /** Card treatment. `flat` suits a screen that already sits on a tinted canvas. */\n readonly cardElevation = input<CardElevation>('raised');\n /** Card padding, passed through to `ds-card`. `md` tightens a short form. */\n readonly cardPadding = input<CardPadding>('lg');\n /** Announce the card as the page's `main` landmark. `ds-card` renders an\n * `<article>`, which is NOT a landmark, so by default a screen-reader user has\n * nothing to jump to — set `'main'` on a standalone auth page. Opt-in because\n * the layout is also embedded inside pages that already own a `main`, and two\n * `main`s is its own violation. */\n readonly landmark = input<'main' | 'none'>('none');\n\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand\n * starting with an astral character (an emoji, a rarer CJK glyph) yields half\n * a surrogate pair and paints as tofu. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n}\n","<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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\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ECvFnE,ygCA2CA,u8EDOY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAMZ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAT/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,UAAA,EACd,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ygCAAA,EAAA,MAAA,EAAA,CAAA,+4EAAA,CAAA,EAAA;6qBAiCA,kBAAkB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvFnE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-auth-layout.mjs","sources":["../../../src/lib/components/auth-layout/auth-layout.component.ts","../../../src/lib/components/auth-layout/auth-layout.component.html","../../../src/lib/components/auth-layout/ids-group-ltd-ids-design-system-components-auth-layout.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { CardComponent } from '@ids-group-ltd/ids-design-system/components/card';\nimport type {\n CardElevation,\n CardPadding,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/sidenav';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Scaffold for the UNauthenticated screens — sign-in, forgot password, reset,\n * MFA — and the counterpart to `ds-app-layout`, which only ever covers the\n * screens behind the login.\n *\n * The host is the ONLY full-height box — nesting a `100vh` wrapper inside a\n * `100dvh` one scrolls a page whose content fits — and it carries the safe-area\n * insets a notched phone in landscape needs.\n *\n * The brand row takes the same CONTRACT as `ds-sidenav` — a `brand` string gets a\n * letter-mark tile plus wordmark, `logoLetter` overrides the glyph, `[dsBrandName]`\n * projects a two-tone wordmark (import `BrandNameDirective` alongside this\n * component, or the attribute is inert and the wordmark lands in the card), and\n * `[brand]` projects a real logo. The two are not pixel-identical: the rail's tile\n * is a fixed 28px at weight 800, this one 28px at 700, and each has its own\n * `--ds-*-mark-*` hooks, so retinting the mark means setting both.\n *\n * Projecting into `[brand]` does NOT suppress the tile — leave `brand`/`logoLetter`\n * unset when you supply a logo.\n *\n * ```html\n * <ds-auth-layout brand=\"AppAdmin\" logoLetter=\"A\" tagline=\"Workspace administration\">\n * <h1 class=\"title\">Sign in</h1>\n * <form class=\"form\">…</form>\n *\n * <p dsAuthSupport>\n * Need a hand? <a href=\"mailto:support@example.com\">Contact support</a>\n * </p>\n * </ds-auth-layout>\n * ```\n */\n@Component({\n selector: 'ds-auth-layout',\n standalone: true,\n imports: [CardComponent],\n templateUrl: './auth-layout.component.html',\n styleUrl: './auth-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AuthLayoutComponent {\n /** Wordmark beside the letter-mark tile. For a logo image/SVG, project it into\n * the `[brand]` slot instead; for a two-tone wordmark use `[dsBrandName]`.\n * Unset falls back to `DS_CONFIG.brand.name`. Each field resolves on its own, so\n * `brand=\"\"` drops the wordmark but a `logoLetter` in the config still paints its\n * tile; clear both to give one screen no brand row. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter (e.g. an\n * \"A\" tile beside the \"AppAdmin\" wordmark). Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** One line under the wordmark naming the product or audience. Unset falls back\n * to `DS_CONFIG.brand.tagline`. */\n readonly tagline = input<string | null>(null);\n\n /** The template must read THIS, never the input beside it — that one is null\n * until bound, and the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n readonly taglineText = resolveBrandValue(this.tagline, 'tagline');\n /** Card treatment. `flat` suits a screen that already sits on a tinted canvas. */\n readonly cardElevation = input<CardElevation>('raised');\n /** Card padding, passed through to `ds-card`. `md` tightens a short form. */\n readonly cardPadding = input<CardPadding>('lg');\n /** Announce the card as the page's `main` landmark. `ds-card` renders an\n * `<article>`, which is not a landmark, so this is what lets a screen-reader\n * user jump to the form. Set `'none'` where the layout sits inside a page\n * that already owns a `main`, such as `ds-app-layout`: two `main` landmarks\n * is its own violation. */\n readonly landmark = input<'main' | 'none'>('main');\n\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand\n * starting with an astral character (an emoji, a rarer CJK glyph) yields half\n * a surrogate pair and paints as tofu. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n}\n","<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=\"[d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