@edsis/angular 22.2.17 → 22.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/README.md +8 -4
  2. package/SUPPORT.md +23 -9
  3. package/chart/README.md +1 -1
  4. package/component/README.md +1 -1
  5. package/component/composer/README.md +3 -0
  6. package/component/editor/README.md +3 -0
  7. package/fesm2022/edsis-angular-chart-area.mjs +3 -3
  8. package/fesm2022/edsis-angular-chart-bar.mjs +3 -3
  9. package/fesm2022/edsis-angular-chart-core.mjs +33 -33
  10. package/fesm2022/edsis-angular-chart-line.mjs +3 -3
  11. package/fesm2022/edsis-angular-chart-pie.mjs +3 -3
  12. package/fesm2022/edsis-angular-chart-primitives.mjs +33 -33
  13. package/fesm2022/edsis-angular-chart-radar.mjs +3 -3
  14. package/fesm2022/edsis-angular-chart-radial.mjs +3 -3
  15. package/fesm2022/edsis-angular-chart-scatter.mjs +3 -3
  16. package/fesm2022/edsis-angular-component-accordion.mjs +15 -15
  17. package/fesm2022/edsis-angular-component-alert-dialog.mjs +27 -27
  18. package/fesm2022/edsis-angular-component-alert.mjs +12 -12
  19. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +3 -3
  20. package/fesm2022/edsis-angular-component-avatar.mjs +18 -18
  21. package/fesm2022/edsis-angular-component-badge.mjs +3 -3
  22. package/fesm2022/edsis-angular-component-breadcrumb.mjs +21 -21
  23. package/fesm2022/edsis-angular-component-button-group.mjs +9 -9
  24. package/fesm2022/edsis-angular-component-button.mjs +3 -3
  25. package/fesm2022/edsis-angular-component-calendar.mjs +3 -3
  26. package/fesm2022/edsis-angular-component-card.mjs +21 -21
  27. package/fesm2022/edsis-angular-component-carousel.mjs +18 -18
  28. package/fesm2022/edsis-angular-component-checkbox.mjs +3 -3
  29. package/fesm2022/edsis-angular-component-collapsible.mjs +12 -12
  30. package/fesm2022/edsis-angular-component-combobox.mjs +3 -3
  31. package/fesm2022/edsis-angular-component-command.mjs +27 -27
  32. package/fesm2022/edsis-angular-component-composer.mjs +89 -40
  33. package/fesm2022/edsis-angular-component-context-menu.mjs +3 -3
  34. package/fesm2022/edsis-angular-component-date-picker.mjs +3 -3
  35. package/fesm2022/edsis-angular-component-dialog.mjs +21 -21
  36. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +39 -39
  37. package/fesm2022/edsis-angular-component-editor.mjs +86 -30
  38. package/fesm2022/edsis-angular-component-empty.mjs +18 -18
  39. package/fesm2022/edsis-angular-component-form.mjs +36 -36
  40. package/fesm2022/edsis-angular-component-hover-card.mjs +9 -9
  41. package/fesm2022/edsis-angular-component-icon.mjs +6 -6
  42. package/fesm2022/edsis-angular-component-input-group.mjs +18 -18
  43. package/fesm2022/edsis-angular-component-input-otp.mjs +15 -15
  44. package/fesm2022/edsis-angular-component-input.mjs +3 -3
  45. package/fesm2022/edsis-angular-component-item.mjs +30 -30
  46. package/fesm2022/edsis-angular-component-kanban.mjs +27 -27
  47. package/fesm2022/edsis-angular-component-kbd.mjs +6 -6
  48. package/fesm2022/edsis-angular-component-label.mjs +3 -3
  49. package/fesm2022/edsis-angular-component-menubar.mjs +12 -12
  50. package/fesm2022/edsis-angular-component-native-select.mjs +9 -9
  51. package/fesm2022/edsis-angular-component-navigation-menu.mjs +21 -21
  52. package/fesm2022/edsis-angular-component-pagination.mjs +3 -3
  53. package/fesm2022/edsis-angular-component-pillbox.mjs +15 -15
  54. package/fesm2022/edsis-angular-component-popover.mjs +6 -6
  55. package/fesm2022/edsis-angular-component-progress.mjs +3 -3
  56. package/fesm2022/edsis-angular-component-radio.mjs +6 -6
  57. package/fesm2022/edsis-angular-component-resizable.mjs +12 -12
  58. package/fesm2022/edsis-angular-component-scroll-area.mjs +3 -3
  59. package/fesm2022/edsis-angular-component-segmented-control.mjs +3 -3
  60. package/fesm2022/edsis-angular-component-select.mjs +6 -6
  61. package/fesm2022/edsis-angular-component-separator.mjs +3 -3
  62. package/fesm2022/edsis-angular-component-sheet.mjs +21 -21
  63. package/fesm2022/edsis-angular-component-skeleton.mjs +3 -3
  64. package/fesm2022/edsis-angular-component-slider.mjs +6 -6
  65. package/fesm2022/edsis-angular-component-spinner.mjs +3 -3
  66. package/fesm2022/edsis-angular-component-switch.mjs +3 -3
  67. package/fesm2022/edsis-angular-component-table.mjs +24 -24
  68. package/fesm2022/edsis-angular-component-tabs.mjs +18 -18
  69. package/fesm2022/edsis-angular-component-textarea.mjs +3 -3
  70. package/fesm2022/edsis-angular-component-timeline.mjs +18 -18
  71. package/fesm2022/edsis-angular-component-toast.mjs +3 -3
  72. package/fesm2022/edsis-angular-component-toggle-group.mjs +9 -9
  73. package/fesm2022/edsis-angular-component-toggle.mjs +3 -3
  74. package/fesm2022/edsis-angular-component-tooltip.mjs +15 -15
  75. package/fesm2022/edsis-angular-component-utils-core.mjs +7 -1
  76. package/fesm2022/edsis-angular-component-utils-scale.mjs +3 -3
  77. package/fesm2022/edsis-angular-navigation-icon.mjs +3 -3
  78. package/fesm2022/{edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs → edsis-angular-navigation-navigation-badge-count.component-VP5RtdYf.mjs} +3 -3
  79. package/fesm2022/{edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs → edsis-angular-navigation-navigation-dockbar-menu.component-iqhj7Ky4.mjs} +6 -6
  80. package/fesm2022/{edsis-angular-navigation-navigation-entry-grid.component-CSqoookZ.mjs → edsis-angular-navigation-navigation-entry-grid.component-D6PJHslI.mjs} +7 -4
  81. package/fesm2022/{edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs → edsis-angular-navigation-navigation-flyout-menu.component-C1vop_Yv.mjs} +5 -5
  82. package/fesm2022/{edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs → edsis-angular-navigation-navigation-horizontal.component-B9LbsNoZ.mjs} +6 -6
  83. package/fesm2022/{edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs → edsis-angular-navigation-navigation-item.component-DLmfoIYR.mjs} +13 -10
  84. package/fesm2022/{edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs → edsis-angular-navigation-navigation-list.component-BYQcQql1.mjs} +4 -4
  85. package/fesm2022/edsis-angular-navigation-service.mjs +3 -3
  86. package/fesm2022/edsis-angular-navigation.mjs +62 -62
  87. package/fesm2022/edsis-angular-theme-component-settings.mjs +18 -18
  88. package/fesm2022/edsis-angular-theme-layout-services.mjs +6 -6
  89. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +30 -30
  90. package/fesm2022/edsis-angular-theme-layout.mjs +24 -24
  91. package/fesm2022/edsis-angular-theme-on-fill.mjs +3 -3
  92. package/fesm2022/edsis-angular-theme-page-core.mjs +163 -95
  93. package/fesm2022/edsis-angular-theme-page-filter.mjs +15 -23
  94. package/fesm2022/edsis-angular-theme-page-overview.mjs +3 -3
  95. package/fesm2022/edsis-angular-theme-page-root.mjs +17 -9
  96. package/fesm2022/edsis-angular-theme-page-side.mjs +16 -24
  97. package/fesm2022/edsis-angular-theme-page-slots.mjs +12 -12
  98. package/fesm2022/edsis-angular-theme-shell-services.mjs +3 -3
  99. package/fesm2022/edsis-angular-theme-shell.mjs +9 -9
  100. package/fesm2022/edsis-angular-theme-styles.mjs +19 -19
  101. package/navigation/README.md +2 -1
  102. package/package.json +10 -10
  103. package/sdk/README.md +4 -0
  104. package/sdk/schematics/ng-add/index.js +36 -5
  105. package/sdk/src/parser/ir.js +4 -3
  106. package/sdk/src/writer/index.js +3 -3
  107. package/theme/README.md +1 -1
  108. package/theme/page/README.md +5 -3
  109. package/types/edsis-angular-chart-area.d.ts +3 -0
  110. package/types/edsis-angular-chart-bar.d.ts +3 -0
  111. package/types/edsis-angular-chart-core.d.ts +3 -0
  112. package/types/edsis-angular-chart-line.d.ts +3 -0
  113. package/types/edsis-angular-chart-pie.d.ts +3 -0
  114. package/types/edsis-angular-chart-primitives.d.ts +3 -0
  115. package/types/edsis-angular-chart-radar.d.ts +3 -0
  116. package/types/edsis-angular-chart-radial.d.ts +3 -0
  117. package/types/edsis-angular-chart-scatter.d.ts +3 -0
  118. package/types/edsis-angular-chart.d.ts +3 -0
  119. package/types/edsis-angular-component-accordion.d.ts +3 -0
  120. package/types/edsis-angular-component-alert-dialog.d.ts +3 -0
  121. package/types/edsis-angular-component-alert.d.ts +3 -0
  122. package/types/edsis-angular-component-aspect-ratio.d.ts +3 -0
  123. package/types/edsis-angular-component-avatar.d.ts +3 -0
  124. package/types/edsis-angular-component-badge.d.ts +3 -0
  125. package/types/edsis-angular-component-breadcrumb.d.ts +3 -0
  126. package/types/edsis-angular-component-button-group.d.ts +3 -0
  127. package/types/edsis-angular-component-button.d.ts +3 -0
  128. package/types/edsis-angular-component-calendar.d.ts +3 -0
  129. package/types/edsis-angular-component-card.d.ts +3 -0
  130. package/types/edsis-angular-component-carousel.d.ts +3 -0
  131. package/types/edsis-angular-component-checkbox.d.ts +3 -0
  132. package/types/edsis-angular-component-collapsible.d.ts +3 -0
  133. package/types/edsis-angular-component-combobox.d.ts +3 -0
  134. package/types/edsis-angular-component-command.d.ts +3 -0
  135. package/types/edsis-angular-component-composer.d.ts +8 -1
  136. package/types/edsis-angular-component-context-menu.d.ts +3 -0
  137. package/types/edsis-angular-component-date-picker.d.ts +3 -0
  138. package/types/edsis-angular-component-dialog.d.ts +3 -0
  139. package/types/edsis-angular-component-drawer.d.ts +3 -0
  140. package/types/edsis-angular-component-dropdown-menu.d.ts +3 -0
  141. package/types/edsis-angular-component-editor.d.ts +7 -0
  142. package/types/edsis-angular-component-empty.d.ts +3 -0
  143. package/types/edsis-angular-component-form.d.ts +3 -0
  144. package/types/edsis-angular-component-hover-card.d.ts +3 -0
  145. package/types/edsis-angular-component-icon.d.ts +3 -0
  146. package/types/edsis-angular-component-input-group.d.ts +3 -0
  147. package/types/edsis-angular-component-input-otp.d.ts +3 -0
  148. package/types/edsis-angular-component-input.d.ts +3 -0
  149. package/types/edsis-angular-component-item.d.ts +3 -0
  150. package/types/edsis-angular-component-kanban.d.ts +3 -0
  151. package/types/edsis-angular-component-kbd.d.ts +3 -0
  152. package/types/edsis-angular-component-label.d.ts +3 -0
  153. package/types/edsis-angular-component-menubar.d.ts +3 -0
  154. package/types/edsis-angular-component-native-select.d.ts +3 -0
  155. package/types/edsis-angular-component-navigation-menu.d.ts +3 -0
  156. package/types/edsis-angular-component-pagination.d.ts +3 -0
  157. package/types/edsis-angular-component-pillbox.d.ts +3 -0
  158. package/types/edsis-angular-component-popover.d.ts +3 -0
  159. package/types/edsis-angular-component-progress.d.ts +3 -0
  160. package/types/edsis-angular-component-radio.d.ts +3 -0
  161. package/types/edsis-angular-component-resizable.d.ts +3 -0
  162. package/types/edsis-angular-component-scroll-area.d.ts +3 -0
  163. package/types/edsis-angular-component-segmented-control.d.ts +3 -0
  164. package/types/edsis-angular-component-select.d.ts +3 -0
  165. package/types/edsis-angular-component-separator.d.ts +3 -0
  166. package/types/edsis-angular-component-sheet.d.ts +3 -0
  167. package/types/edsis-angular-component-skeleton.d.ts +3 -0
  168. package/types/edsis-angular-component-slider.d.ts +3 -0
  169. package/types/edsis-angular-component-spinner.d.ts +3 -0
  170. package/types/edsis-angular-component-switch.d.ts +3 -0
  171. package/types/edsis-angular-component-table.d.ts +3 -0
  172. package/types/edsis-angular-component-tabs.d.ts +3 -0
  173. package/types/edsis-angular-component-textarea.d.ts +3 -0
  174. package/types/edsis-angular-component-timeline.d.ts +3 -0
  175. package/types/edsis-angular-component-toast.d.ts +3 -0
  176. package/types/edsis-angular-component-toggle-group.d.ts +3 -0
  177. package/types/edsis-angular-component-toggle.d.ts +3 -0
  178. package/types/edsis-angular-component-tooltip.d.ts +3 -0
  179. package/types/edsis-angular-component-utils-core.d.ts +3 -0
  180. package/types/edsis-angular-component-utils-overlay.d.ts +3 -0
  181. package/types/edsis-angular-component-utils-scale.d.ts +3 -0
  182. package/types/edsis-angular-component-utils.d.ts +3 -0
  183. package/types/edsis-angular-navigation-core.d.ts +3 -0
  184. package/types/edsis-angular-navigation-icon.d.ts +3 -0
  185. package/types/edsis-angular-navigation-service.d.ts +3 -0
  186. package/types/edsis-angular-navigation-types.d.ts +5 -0
  187. package/types/edsis-angular-navigation.d.ts +3 -0
  188. package/types/edsis-angular-sdk.d.ts +3 -0
  189. package/types/edsis-angular-theme-component-settings.d.ts +3 -0
  190. package/types/edsis-angular-theme-layout-services.d.ts +3 -0
  191. package/types/edsis-angular-theme-layout-types.d.ts +3 -0
  192. package/types/edsis-angular-theme-layout-wrapper.d.ts +3 -0
  193. package/types/edsis-angular-theme-layout.d.ts +3 -0
  194. package/types/edsis-angular-theme-on-fill.d.ts +3 -0
  195. package/types/edsis-angular-theme-page-core.d.ts +11 -9
  196. package/types/edsis-angular-theme-page-filter.d.ts +3 -0
  197. package/types/edsis-angular-theme-page-overview.d.ts +3 -0
  198. package/types/edsis-angular-theme-page-root.d.ts +4 -0
  199. package/types/edsis-angular-theme-page-side.d.ts +3 -0
  200. package/types/edsis-angular-theme-page-slots.d.ts +3 -0
  201. package/types/edsis-angular-theme-page.d.ts +3 -0
  202. package/types/edsis-angular-theme-shell-services.d.ts +3 -0
  203. package/types/edsis-angular-theme-shell-types.d.ts +3 -0
  204. package/types/edsis-angular-theme-shell.d.ts +3 -0
  205. package/types/edsis-angular-theme-styles.d.ts +3 -0
  206. package/types/edsis-angular.d.ts +3 -0
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
- import { Service, computed, effect, signal } from "@angular/core";
2
+ import { ElementRef, Injectable, Service, afterRenderEffect, computed, inject, signal } from "@angular/core";
3
+ import { Overlay, OverlayContainer } from "@angular/cdk/overlay";
3
4
  const PAGE_VARIANTS = ["stacked", "side"];
4
5
  const PAGE_SIDE_POSITIONS = ["left", "right"];
5
6
  const PAGE_SIDE_MODES = [
@@ -179,7 +180,7 @@ var PageStateService = class PageStateService {
179
180
  }
180
181
  static ɵfac = i0.ɵɵngDeclareFactory({
181
182
  minVersion: "12.0.0",
182
- version: "22.2.6",
183
+ version: "22.3.0",
183
184
  ngImport: i0,
184
185
  type: PageStateService,
185
186
  deps: [],
@@ -187,7 +188,7 @@ var PageStateService = class PageStateService {
187
188
  });
188
189
  static ɵprov = i0.ɵɵngDeclareService({
189
190
  minVersion: "22.0.0",
190
- version: "22.2.6",
191
+ version: "22.3.0",
191
192
  ngImport: i0,
192
193
  type: PageStateService,
193
194
  autoProvided: false
@@ -195,7 +196,7 @@ var PageStateService = class PageStateService {
195
196
  };
196
197
  i0.ɵɵngDeclareClassMetadata({
197
198
  minVersion: "12.0.0",
198
- version: "22.2.6",
199
+ version: "22.3.0",
199
200
  ngImport: i0,
200
201
  type: PageStateService,
201
202
  decorators: [{
@@ -203,113 +204,180 @@ i0.ɵɵngDeclareClassMetadata({
203
204
  args: [{ autoProvided: false }]
204
205
  }]
205
206
  });
206
- const FOCUSABLE_SELECTOR = [
207
- "a[href]",
208
- "button:not([disabled])",
209
- "input:not([disabled])",
210
- "select:not([disabled])",
211
- "textarea:not([disabled])",
212
- "[tabindex]:not([tabindex=\"-1\"])"
213
- ].join(",");
214
- const inertLocks = /* @__PURE__ */ new WeakMap();
215
- const scrollLocks = /* @__PURE__ */ new WeakMap();
207
+ const FOCUSABLE_SELECTOR = "a[href], button, input, select, textarea, summary, [contenteditable]:not([contenteditable=\"false\"]), [tabindex]";
208
+ const modalStacks = /* @__PURE__ */ new WeakMap();
209
+ function ɵisActivePageOverlay(document, id) {
210
+ return id !== null && modalStacks.get(document)?.active?.id === id;
211
+ }
216
212
  function ɵsetupOverlayFocusManagement(config) {
217
- effect((onCleanup) => {
213
+ afterRenderEffect({ mixedReadWrite: (onCleanup) => {
218
214
  if (!config.isInteractive() || !config.isOpen()) return;
219
- const document = config.document;
215
+ const { document, host } = config;
220
216
  const view = document?.defaultView;
221
- if (!document || !view) return;
217
+ if (!document || !view || !host.isConnected) return;
222
218
  const returnFocus = config.takeReturnFocus?.() ?? document.activeElement;
223
219
  const modal = config.isModal();
224
- const inertSnapshots = modal ? makeBackgroundInert(config.host) : [];
225
- if (modal) lockDocumentScroll(document);
226
- const handleKeydown = (event) => {
227
- if (!modal || event.key !== "Tab") return;
228
- const focusable = getFocusableElements(config.host);
229
- if (focusable.length === 0) {
230
- event.preventDefault();
231
- config.host.focus();
232
- return;
233
- }
234
- const active = document.activeElement;
235
- const first = focusable[0];
236
- const last = focusable.at(-1);
237
- const activeIndex = focusable.indexOf(active);
238
- if (event.shiftKey && activeIndex <= 0) {
239
- event.preventDefault();
240
- last.focus();
241
- } else if (!event.shiftKey && (activeIndex === -1 || active === last)) {
242
- event.preventDefault();
243
- first.focus();
244
- }
220
+ const stack = modal ? getModalStack(document) : void 0;
221
+ stack?.open(host);
222
+ let childEscape;
223
+ const onKeydownCapture = (event) => {
224
+ if (event.key === "Escape" && host.querySelector(".cdk-overlay-pane:not(:empty)")) childEscape = event;
245
225
  };
246
- config.host.addEventListener("keydown", handleKeydown);
226
+ const onKeydown = (event) => {
227
+ const activeModal = modalStacks.get(document)?.active;
228
+ if (event.defaultPrevented || activeModal && activeModal !== host) return;
229
+ if (event.key === "Escape" && config.closeOnEsc?.() && childEscape !== event) {
230
+ if (modal) event.preventDefault();
231
+ config.close?.();
232
+ } else if (modal && event.key === "Tab") trapTab(host, event);
233
+ };
234
+ view.addEventListener("keydown", onKeydownCapture, true);
235
+ view.addEventListener("keydown", onKeydown);
247
236
  const animationFrame = view.requestAnimationFrame(() => {
248
- (config.host.querySelector("[data-page-initial-focus], [autofocus]") ?? getFocusableElements(config.host)[0] ?? config.host).focus();
237
+ const activeModal = modalStacks.get(document)?.active;
238
+ if (!activeModal || activeModal === host) focusPanel(host);
249
239
  });
250
240
  onCleanup(() => {
251
241
  view.cancelAnimationFrame(animationFrame);
252
- config.host.removeEventListener("keydown", handleKeydown);
253
- restoreBackground(inertSnapshots);
254
- if (modal) unlockDocumentScroll(document);
255
- if (returnFocus?.isConnected && typeof returnFocus.focus === "function") view.requestAnimationFrame(() => returnFocus.focus());
242
+ view.removeEventListener("keydown", onKeydownCapture, true);
243
+ view.removeEventListener("keydown", onKeydown);
244
+ const wasTop = !stack || stack.active === host;
245
+ stack?.close(host);
246
+ if (wasTop) view.requestAnimationFrame(() => {
247
+ const active = modalStacks.get(document)?.active;
248
+ if (returnFocus instanceof HTMLElement && returnFocus.isConnected && !returnFocus.closest("[inert]") && (!active || active.contains(returnFocus))) returnFocus.focus({ preventScroll: true });
249
+ else if (active && !active.contains(document.activeElement)) focusPanel(active);
250
+ });
256
251
  });
257
- });
252
+ } });
253
+ }
254
+ function trapTab(host, event) {
255
+ const focusable = getFocusableElements(host);
256
+ const index = focusable.indexOf(host.ownerDocument.activeElement);
257
+ if (index < 0 || (event.shiftKey ? index === 0 : index === focusable.length - 1)) {
258
+ event.preventDefault();
259
+ ((event.shiftKey ? focusable.at(-1) : focusable[0]) ?? host).focus({ preventScroll: true });
260
+ }
261
+ }
262
+ function focusPanel(host) {
263
+ (host.querySelector("[data-page-initial-focus], [autofocus]") ?? getFocusableElements(host)[0] ?? host).focus({ preventScroll: true });
264
+ if (!host.contains(host.ownerDocument.activeElement)) (getFocusableElements(host)[0] ?? host).focus({ preventScroll: true });
258
265
  }
259
266
  function getFocusableElements(host) {
260
- return Array.from(host.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.hidden && !element.inert && element.getAttribute("aria-hidden") !== "true");
267
+ return Array.from(host.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.matches(":disabled, [tabindex=\"-1\"], input[type=\"hidden\"]") && !element.closest("[hidden], [inert], [aria-hidden=\"true\"]") && (element.checkVisibility?.({ visibilityProperty: true }) ?? host.ownerDocument.defaultView?.getComputedStyle(element).visibility !== "hidden"));
261
268
  }
262
- function makeBackgroundInert(host) {
263
- const snapshots = [];
264
- const pageRoot = host.closest("Page");
265
- if (!pageRoot) return snapshots;
266
- let branch = host;
267
- let parent = branch.parentElement;
268
- while (parent) {
269
- for (const sibling of Array.from(parent.children)) {
270
- if (sibling === branch || !(sibling instanceof HTMLElement) || sibling.hasAttribute("data-page-overlay-backdrop")) continue;
271
- const lock = inertLocks.get(sibling);
272
- if (lock) lock.count += 1;
273
- else inertLocks.set(sibling, {
274
- count: 1,
275
- initial: sibling.inert === true
276
- });
277
- snapshots.push({ element: sibling });
278
- sibling.inert = true;
279
- }
280
- if (parent === pageRoot) break;
281
- branch = parent;
282
- parent = parent.parentElement;
269
+ function getModalStack(document) {
270
+ let stack = modalStacks.get(document);
271
+ if (!stack) {
272
+ stack = new PageModalStack(document);
273
+ modalStacks.set(document, stack);
283
274
  }
284
- return snapshots;
275
+ return stack;
285
276
  }
286
- function restoreBackground(snapshots) {
287
- for (const snapshot of snapshots) {
288
- const lock = inertLocks.get(snapshot.element);
289
- if (!lock) continue;
290
- lock.count -= 1;
291
- if (lock.count === 0) {
292
- snapshot.element.inert = lock.initial;
293
- inertLocks.delete(snapshot.element);
277
+ var PageModalStack = class {
278
+ document;
279
+ panels = [];
280
+ background = /* @__PURE__ */ new Set();
281
+ ancestorOverflow = /* @__PURE__ */ new Map();
282
+ observer = new MutationObserver(() => this.isolate());
283
+ constructor(document) {
284
+ this.document = document;
285
+ }
286
+ get active() {
287
+ return this.panels.at(-1);
288
+ }
289
+ open(panel) {
290
+ this.panels.push(panel);
291
+ this.isolate();
292
+ }
293
+ close(panel) {
294
+ this.panels.splice(this.panels.indexOf(panel), 1);
295
+ this.isolate();
296
+ if (!this.active) modalStacks.delete(this.document);
297
+ }
298
+ isolate() {
299
+ this.observer.disconnect();
300
+ const keep = /* @__PURE__ */ new Set();
301
+ const host = this.active;
302
+ if (host?.isConnected) {
303
+ const backdrop = host.closest("[data-page-root]")?.querySelector(":scope > [data-page-overlay-backdrop]");
304
+ for (const node of [host, backdrop]) for (let branch = node; branch && branch !== this.document.body; branch = branch.parentElement) keep.add(branch);
305
+ }
306
+ this.lockAncestorScroll(host);
307
+ const blocked = /* @__PURE__ */ new Set();
308
+ for (const branch of keep) {
309
+ const parent = branch.parentElement;
310
+ if (parent) {
311
+ this.observer.observe(parent, { childList: true });
312
+ for (const sibling of parent.children) if (!keep.has(sibling)) blocked.add(sibling);
313
+ }
314
+ }
315
+ for (const element of this.background) if (!blocked.has(element)) {
316
+ if (!element.matches("[data-page-slot]:is([data-page-side-mode], [data-page-filter-mode])[aria-hidden=\"true\"]")) element.removeAttribute("inert");
317
+ this.background.delete(element);
318
+ }
319
+ for (const element of blocked) if (!element.hasAttribute("inert")) {
320
+ element.setAttribute("inert", "");
321
+ this.background.add(element);
294
322
  }
295
323
  }
296
- }
297
- function lockDocumentScroll(document) {
298
- const lock = scrollLocks.get(document);
299
- if (lock) lock.count += 1;
300
- else scrollLocks.set(document, {
301
- count: 1,
302
- initialOverflow: document.body.style.overflow
303
- });
304
- document.body.style.overflow = "hidden";
305
- }
306
- function unlockDocumentScroll(document) {
307
- const lock = scrollLocks.get(document);
308
- if (!lock) return;
309
- lock.count -= 1;
310
- if (lock.count === 0) {
311
- document.body.style.overflow = lock.initialOverflow;
312
- scrollLocks.delete(document);
324
+ lockAncestorScroll(host) {
325
+ for (const [element, previous] of this.ancestorOverflow) if (!host?.isConnected || !element.contains(host) || element === host) {
326
+ element.style.overflow = previous.value;
327
+ element.style.overflowX = previous.x;
328
+ element.style.overflowY = previous.y;
329
+ this.ancestorOverflow.delete(element);
330
+ }
331
+ for (let element = host?.isConnected ? host.parentElement : null; element && element !== this.document.documentElement; element = element.parentElement) {
332
+ if (this.ancestorOverflow.has(element)) continue;
333
+ const style = this.document.defaultView?.getComputedStyle(element);
334
+ if (element === this.document.body || style && /auto|scroll/.test(`${style.overflowX} ${style.overflowY}`)) {
335
+ this.ancestorOverflow.set(element, {
336
+ value: element.style.overflow,
337
+ x: element.style.overflowX,
338
+ y: element.style.overflowY
339
+ });
340
+ element.style.overflow = "hidden";
341
+ }
342
+ }
313
343
  }
314
- }
315
- export { PAGE_APPEARANCES, PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_POSITION, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PAGE_FILTER_PLACEMENTS, PAGE_HEIGHT_VALUES, PAGE_SCROLL_VALUES, PAGE_SIDE_MODES, PAGE_SIDE_POSITIONS, PAGE_VARIANTS, PageStateService, isUiPageAppearance, isUiPageFilterPlacement, isUiPageHeight, isUiPageScroll, isUiPageSideMode, isUiPageSidePosition, isUiPageVariant, ɵsetupOverlayFocusManagement };
344
+ };
345
+ var PagePanelOverlayContainer = class PagePanelOverlayContainer extends OverlayContainer {
346
+ panel = inject(ElementRef).nativeElement;
347
+ parent = inject(OverlayContainer, { skipSelf: true });
348
+ getContainerElement() {
349
+ return this.panel.getAttribute("aria-modal") === "true" ? super.getContainerElement() : this.parent.getContainerElement();
350
+ }
351
+ _createContainer() {
352
+ const container = this.panel.ownerDocument.createElement("div");
353
+ container.classList.add("cdk-overlay-container");
354
+ this.panel.append(container);
355
+ this._containerElement = container;
356
+ }
357
+ static ɵfac = i0.ɵɵngDeclareFactory({
358
+ minVersion: "12.0.0",
359
+ version: "22.3.0",
360
+ ngImport: i0,
361
+ type: PagePanelOverlayContainer,
362
+ deps: null,
363
+ target: i0.ɵɵFactoryTarget.Injectable
364
+ });
365
+ static ɵprov = i0.ɵɵngDeclareInjectable({
366
+ minVersion: "12.0.0",
367
+ version: "22.3.0",
368
+ ngImport: i0,
369
+ type: PagePanelOverlayContainer
370
+ });
371
+ };
372
+ i0.ɵɵngDeclareClassMetadata({
373
+ minVersion: "12.0.0",
374
+ version: "22.3.0",
375
+ ngImport: i0,
376
+ type: PagePanelOverlayContainer,
377
+ decorators: [{ type: Injectable }]
378
+ });
379
+ const ɵPAGE_PANEL_OVERLAY_PROVIDERS = [Overlay, {
380
+ provide: OverlayContainer,
381
+ useClass: PagePanelOverlayContainer
382
+ }];
383
+ export { PAGE_APPEARANCES, PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_POSITION, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PAGE_FILTER_PLACEMENTS, PAGE_HEIGHT_VALUES, PAGE_SCROLL_VALUES, PAGE_SIDE_MODES, PAGE_SIDE_POSITIONS, PAGE_VARIANTS, PageStateService, isUiPageAppearance, isUiPageFilterPlacement, isUiPageHeight, isUiPageScroll, isUiPageSideMode, isUiPageSidePosition, isUiPageVariant, ɵPAGE_PANEL_OVERLAY_PROVIDERS, ɵisActivePageOverlay, ɵsetupOverlayFocusManagement };
@@ -1,8 +1,8 @@
1
1
  import { DOCUMENT } from "@angular/common";
2
2
  import * as i0 from "@angular/core";
3
- import { Component, ElementRef, booleanAttribute, computed, effect, inject, input, output, untracked } from "@angular/core";
3
+ import { Component, ElementRef, booleanAttribute, computed, effect, inject, input, output } from "@angular/core";
4
4
  import { cn } from "@edsis/angular/component/utils/core";
5
- import { PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_SCROLL, PageStateService, ɵsetupOverlayFocusManagement } from "@edsis/angular/theme/page/core";
5
+ import { PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_SCROLL, PageStateService, ɵPAGE_PANEL_OVERLAY_PROVIDERS, ɵsetupOverlayFocusManagement } from "@edsis/angular/theme/page/core";
6
6
  let nextPageFilterId = 0;
7
7
  const FILTER_BG = "bg-surface/50";
8
8
  const FILTER_BG_OPAQUE = "bg-[color-mix(in_srgb,var(--color-surface)_50%,var(--color-background))]";
@@ -44,7 +44,7 @@ var PageFilterComponent = class PageFilterComponent {
44
44
  const scroll = this.resolvedScroll();
45
45
  const open = this.page.filterOpen();
46
46
  if (this.isStacked()) return cn("block shrink-0 border-b border-border text-surface-foreground", scroll === "page" ? `sticky top-0 z-10 ${FILTER_BG_OPAQUE}` : FILTER_BG, this.class(), this.isCollapsedStacked() && "hidden");
47
- return cn("block min-h-0 border-border text-surface-foreground", this.isSticky() ? FILTER_BG : FILTER_BG_OPAQUE, scroll === "content" && "h-full overflow-auto", scroll === "page" && "overflow-visible", this.isSticky() && "shrink-0 w-[var(--page-filter-width)]", this.isSticky() && position === "left" && "border-r", this.isSticky() && position === "right" && "order-last border-l", this.isDrawer() && "absolute inset-y-0 z-20 w-[var(--page-filter-width)] border shadow-sm transition-transform duration-normal ease-out motion-reduce:transition-none", this.isDrawer() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isDrawer() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.isOverlay() && "absolute inset-y-0 z-30 w-[var(--page-filter-width)] border shadow-md transition-transform duration-normal ease-out motion-reduce:transition-none", this.isOverlay() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isOverlay() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.class());
47
+ return cn("block min-h-0 border-border text-surface-foreground", this.isSticky() ? FILTER_BG : FILTER_BG_OPAQUE, scroll === "content" && "h-full overflow-auto", scroll === "page" && "overflow-visible", this.isSticky() && "shrink-0 w-[var(--page-filter-width)]", this.isSticky() && position === "left" && "border-r", this.isSticky() && position === "right" && "order-last border-l", this.isDrawer() && "absolute inset-y-0 z-20 w-[var(--page-filter-width)] border shadow-sm transition-transform duration-normal ease-out motion-reduce:transition-none", this.isDrawer() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isDrawer() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.isOverlay() && "overflow-auto overscroll-contain [&:not([inert])]:z-40 [&[inert]>.cdk-overlay-container]:hidden", this.isOverlay() && "absolute inset-y-0 z-30 w-[var(--page-filter-width)] border shadow-md transition-transform duration-normal ease-out motion-reduce:transition-none", this.isOverlay() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isOverlay() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.class());
48
48
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
49
49
  constructor() {
50
50
  ɵsetupOverlayFocusManagement({
@@ -53,6 +53,8 @@ var PageFilterComponent = class PageFilterComponent {
53
53
  isOpen: this.page.filterOpen,
54
54
  isInteractive: this.isInteractive,
55
55
  isModal: this.isOverlay,
56
+ closeOnEsc: this.closeOnEsc,
57
+ close: () => this.page.closeFilter(),
56
58
  takeReturnFocus: () => this.page.takeFilterReturnFocus()
57
59
  });
58
60
  effect(() => {
@@ -64,24 +66,10 @@ var PageFilterComponent = class PageFilterComponent {
64
66
  id: this.resolvedId
65
67
  });
66
68
  });
67
- effect((onCleanup) => {
68
- if (!this.closeOnEsc() || this.isSticky()) return;
69
- const defaultView = this.document?.defaultView;
70
- if (!defaultView) return;
71
- const handler = (event) => {
72
- if (event.key !== "Escape") return;
73
- if (!untracked(() => this.page.filterOpen())) return;
74
- untracked(() => {
75
- this.page.closeFilter();
76
- });
77
- };
78
- defaultView.addEventListener("keydown", handler);
79
- onCleanup(() => defaultView.removeEventListener("keydown", handler));
80
- });
81
69
  }
82
70
  static ɵfac = i0.ɵɵngDeclareFactory({
83
71
  minVersion: "12.0.0",
84
- version: "22.2.6",
72
+ version: "22.3.0",
85
73
  ngImport: i0,
86
74
  type: PageFilterComponent,
87
75
  deps: [],
@@ -89,7 +77,7 @@ var PageFilterComponent = class PageFilterComponent {
89
77
  });
90
78
  static ɵcmp = i0.ɵɵngDeclareComponent({
91
79
  minVersion: "17.1.0",
92
- version: "22.2.6",
80
+ version: "22.3.0",
93
81
  type: PageFilterComponent,
94
82
  isStandalone: true,
95
83
  selector: "PageFilter",
@@ -165,8 +153,10 @@ var PageFilterComponent = class PageFilterComponent {
165
153
  "attr.aria-modal": "ariaModal()",
166
154
  "attr.aria-label": "dialogLabel()",
167
155
  "attr.tabindex": "dialogTabindex()",
156
+ "style.translate": "isOverlay() && page.filterOpen() ? \"none\" : null",
168
157
  "style.--page-filter-width": "resolvedWidth()"
169
158
  } },
159
+ providers: ɵPAGE_PANEL_OVERLAY_PROVIDERS,
170
160
  ngImport: i0,
171
161
  template: `<ng-content />`,
172
162
  isInline: true
@@ -174,13 +164,14 @@ var PageFilterComponent = class PageFilterComponent {
174
164
  };
175
165
  i0.ɵɵngDeclareClassMetadata({
176
166
  minVersion: "12.0.0",
177
- version: "22.2.6",
167
+ version: "22.3.0",
178
168
  ngImport: i0,
179
169
  type: PageFilterComponent,
180
170
  decorators: [{
181
171
  type: Component,
182
172
  args: [{
183
173
  selector: "PageFilter",
174
+ providers: ɵPAGE_PANEL_OVERLAY_PROVIDERS,
184
175
  host: {
185
176
  "[class]": "classes()",
186
177
  "[attr.id]": "resolvedId",
@@ -195,6 +186,7 @@ i0.ɵɵngDeclareClassMetadata({
195
186
  "[attr.aria-modal]": "ariaModal()",
196
187
  "[attr.aria-label]": "dialogLabel()",
197
188
  "[attr.tabindex]": "dialogTabindex()",
189
+ "[style.translate]": "isOverlay() && page.filterOpen() ? \"none\" : null",
198
190
  "[style.--page-filter-width]": "resolvedWidth()"
199
191
  },
200
192
  template: `<ng-content />`
@@ -281,7 +273,7 @@ var PageFilterToggleComponent = class PageFilterToggleComponent {
281
273
  }
282
274
  static ɵfac = i0.ɵɵngDeclareFactory({
283
275
  minVersion: "12.0.0",
284
- version: "22.2.6",
276
+ version: "22.3.0",
285
277
  ngImport: i0,
286
278
  type: PageFilterToggleComponent,
287
279
  deps: [],
@@ -289,7 +281,7 @@ var PageFilterToggleComponent = class PageFilterToggleComponent {
289
281
  });
290
282
  static ɵcmp = i0.ɵɵngDeclareComponent({
291
283
  minVersion: "17.1.0",
292
- version: "22.2.6",
284
+ version: "22.3.0",
293
285
  type: PageFilterToggleComponent,
294
286
  isStandalone: true,
295
287
  selector: "PageFilterToggle",
@@ -345,7 +337,7 @@ var PageFilterToggleComponent = class PageFilterToggleComponent {
345
337
  };
346
338
  i0.ɵɵngDeclareClassMetadata({
347
339
  minVersion: "12.0.0",
348
- version: "22.2.6",
340
+ version: "22.3.0",
349
341
  ngImport: i0,
350
342
  type: PageFilterToggleComponent,
351
343
  decorators: [{
@@ -7,7 +7,7 @@ var PageOverviewComponent = class PageOverviewComponent {
7
7
  classes = computed(() => cn("block min-w-0 shrink-0 border-b border-border bg-surface/50 text-surface-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
8
8
  static ɵfac = i0.ɵɵngDeclareFactory({
9
9
  minVersion: "12.0.0",
10
- version: "22.2.6",
10
+ version: "22.3.0",
11
11
  ngImport: i0,
12
12
  type: PageOverviewComponent,
13
13
  deps: [],
@@ -15,7 +15,7 @@ var PageOverviewComponent = class PageOverviewComponent {
15
15
  });
16
16
  static ɵcmp = i0.ɵɵngDeclareComponent({
17
17
  minVersion: "17.1.0",
18
- version: "22.2.6",
18
+ version: "22.3.0",
19
19
  type: PageOverviewComponent,
20
20
  isStandalone: true,
21
21
  selector: "PageOverview",
@@ -50,7 +50,7 @@ var PageOverviewComponent = class PageOverviewComponent {
50
50
  };
51
51
  i0.ɵɵngDeclareClassMetadata({
52
52
  minVersion: "12.0.0",
53
- version: "22.2.6",
53
+ version: "22.3.0",
54
54
  ngImport: i0,
55
55
  type: PageOverviewComponent,
56
56
  decorators: [{
@@ -1,3 +1,4 @@
1
+ import { DOCUMENT } from "@angular/common";
1
2
  import * as i0 from "@angular/core";
2
3
  import { Component, booleanAttribute, computed, contentChild, effect, inject, input, output } from "@angular/core";
3
4
  import { Grip } from "lucide";
@@ -11,7 +12,7 @@ import { PageFilterComponent } from "@edsis/angular/theme/page/filter";
11
12
  import { PageOverviewComponent } from "@edsis/angular/theme/page/overview";
12
13
  import { PageHeaderComponent } from "@edsis/angular/theme/page/slots";
13
14
  import { PageSideComponent } from "@edsis/angular/theme/page/side";
14
- import { PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PageStateService } from "@edsis/angular/theme/page/core";
15
+ import { PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PageStateService, ɵisActivePageOverlay } from "@edsis/angular/theme/page/core";
15
16
  const OVERVIEW_STACKED_ROWS = [
16
17
  "grid-rows-[auto_auto_minmax(0,1fr)]",
17
18
  "[&>[data-page-slot=filter]]:row-start-1",
@@ -28,6 +29,7 @@ const OVERVIEW_ROWS = [
28
29
  let pageAppsLauncherInstanceId = 0;
29
30
  var PageComponent = class PageComponent {
30
31
  page = inject(PageStateService);
32
+ document = inject(DOCUMENT);
31
33
  layout = inject(LayoutService, { optional: true });
32
34
  navigation = inject(NAVIGATION_ADAPTER, { optional: true });
33
35
  identity = inject(LayoutIdentityService, { optional: true });
@@ -77,7 +79,7 @@ var PageComponent = class PageComponent {
77
79
  appsBrand = computed(() => this.identity?.brand() ?? null, ...ngDevMode ? [{ debugName: "appsBrand" }] : /* istanbul ignore next */ []);
78
80
  appsUser = computed(() => this.identity?.user() ?? null, ...ngDevMode ? [{ debugName: "appsUser" }] : /* istanbul ignore next */ []);
79
81
  hostClasses = computed(() => cn("relative block h-full min-h-0 w-full min-w-0 overflow-hidden text-foreground", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
80
- shellClasses = computed(() => cn("relative z-10 h-full min-h-0 w-full min-w-0", this.scroll() === "content" && "grid grid-rows-[auto_minmax(0,1fr)_auto]", this.scroll() === "page" && "overflow-auto"), ...ngDevMode ? [{ debugName: "shellClasses" }] : /* istanbul ignore next */ []);
82
+ shellClasses = computed(() => cn("relative h-full min-h-0 w-full min-w-0", !this.showsOverlayBackdrop() && "z-10", this.scroll() === "content" && "grid grid-rows-[auto_minmax(0,1fr)_auto]", this.scroll() === "page" && "overflow-auto"), ...ngDevMode ? [{ debugName: "shellClasses" }] : /* istanbul ignore next */ []);
81
83
  bodyClasses = computed(() => {
82
84
  if (this.variant() !== "side") return cn("relative min-w-0", this.scroll() === "content" && "min-h-0");
83
85
  const sideMode = this.resolvedSideMode();
@@ -132,12 +134,12 @@ var PageComponent = class PageComponent {
132
134
  });
133
135
  }
134
136
  handleBackdropClick() {
135
- if (this.showsSideOverlayBackdrop()) this.page.closeSide();
136
- if (this.showsFilterOverlayBackdrop()) this.page.closeFilter();
137
+ if (ɵisActivePageOverlay(this.document, this.page.sideId())) this.page.closeSide();
138
+ else if (ɵisActivePageOverlay(this.document, this.page.filterId())) this.page.closeFilter();
137
139
  }
138
140
  static ɵfac = i0.ɵɵngDeclareFactory({
139
141
  minVersion: "12.0.0",
140
- version: "22.2.6",
142
+ version: "22.3.0",
141
143
  ngImport: i0,
142
144
  type: PageComponent,
143
145
  deps: [],
@@ -145,7 +147,7 @@ var PageComponent = class PageComponent {
145
147
  });
146
148
  static ɵcmp = i0.ɵɵngDeclareComponent({
147
149
  minVersion: "17.0.0",
148
- version: "22.2.6",
150
+ version: "22.3.0",
149
151
  type: PageComponent,
150
152
  isStandalone: true,
151
153
  selector: "Page",
@@ -319,9 +321,12 @@ var PageComponent = class PageComponent {
319
321
  @if (showsOverlayBackdrop()) {
320
322
  <button
321
323
  type="button"
324
+ tabindex="-1"
325
+ aria-hidden="true"
322
326
  [attr.aria-label]="overlayCloseLabel()"
323
327
  data-page-overlay-backdrop
324
- class="absolute inset-0 z-20 bg-[hsl(var(--overlay-backdrop))]"
328
+ class="absolute inset-0 z-20 overflow-hidden overscroll-contain bg-[hsl(var(--overlay-backdrop))]"
329
+ (mousedown)="$event.preventDefault()"
325
330
  (click)="handleBackdropClick()"
326
331
  ></button>
327
332
  }
@@ -456,7 +461,7 @@ var PageComponent = class PageComponent {
456
461
  };
457
462
  i0.ɵɵngDeclareClassMetadata({
458
463
  minVersion: "12.0.0",
459
- version: "22.2.6",
464
+ version: "22.3.0",
460
465
  ngImport: i0,
461
466
  type: PageComponent,
462
467
  decorators: [{
@@ -497,9 +502,12 @@ i0.ɵɵngDeclareClassMetadata({
497
502
  @if (showsOverlayBackdrop()) {
498
503
  <button
499
504
  type="button"
505
+ tabindex="-1"
506
+ aria-hidden="true"
500
507
  [attr.aria-label]="overlayCloseLabel()"
501
508
  data-page-overlay-backdrop
502
- class="absolute inset-0 z-20 bg-[hsl(var(--overlay-backdrop))]"
509
+ class="absolute inset-0 z-20 overflow-hidden overscroll-contain bg-[hsl(var(--overlay-backdrop))]"
510
+ (mousedown)="$event.preventDefault()"
503
511
  (click)="handleBackdropClick()"
504
512
  ></button>
505
513
  }