@molecule/app-ui-angular 1.4.2 → 1.5.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 (138) hide show
  1. package/README.md +966 -1013
  2. package/dist/components/alert.component.d.ts +11 -16
  3. package/dist/components/alert.component.d.ts.map +1 -1
  4. package/dist/components/alert.component.js +22 -51
  5. package/dist/components/alert.component.js.map +1 -1
  6. package/dist/components/auth-guard.component.d.ts +36 -28
  7. package/dist/components/auth-guard.component.d.ts.map +1 -1
  8. package/dist/components/auth-guard.component.js +59 -67
  9. package/dist/components/auth-guard.component.js.map +1 -1
  10. package/dist/components/avatar.component.d.ts +13 -10
  11. package/dist/components/avatar.component.d.ts.map +1 -1
  12. package/dist/components/avatar.component.js +27 -25
  13. package/dist/components/avatar.component.js.map +1 -1
  14. package/dist/components/button.component.d.ts +26 -30
  15. package/dist/components/button.component.d.ts.map +1 -1
  16. package/dist/components/button.component.js +41 -75
  17. package/dist/components/button.component.js.map +1 -1
  18. package/dist/components/checkbox.component.d.ts +5 -4
  19. package/dist/components/checkbox.component.d.ts.map +1 -1
  20. package/dist/components/checkbox.component.js +14 -9
  21. package/dist/components/checkbox.component.js.map +1 -1
  22. package/dist/components/confirm-button.component.d.ts +11 -28
  23. package/dist/components/confirm-button.component.d.ts.map +1 -1
  24. package/dist/components/confirm-button.component.js +31 -63
  25. package/dist/components/confirm-button.component.js.map +1 -1
  26. package/dist/components/confirm-dialog.component.d.ts +28 -17
  27. package/dist/components/confirm-dialog.component.d.ts.map +1 -1
  28. package/dist/components/confirm-dialog.component.js +98 -69
  29. package/dist/components/confirm-dialog.component.js.map +1 -1
  30. package/dist/components/dropdown.component.d.ts +29 -16
  31. package/dist/components/dropdown.component.d.ts.map +1 -1
  32. package/dist/components/dropdown.component.js +134 -105
  33. package/dist/components/dropdown.component.js.map +1 -1
  34. package/dist/components/empty-state.component.d.ts +10 -15
  35. package/dist/components/empty-state.component.d.ts.map +1 -1
  36. package/dist/components/empty-state.component.js +23 -27
  37. package/dist/components/empty-state.component.js.map +1 -1
  38. package/dist/components/form-field.component.d.ts +26 -11
  39. package/dist/components/form-field.component.d.ts.map +1 -1
  40. package/dist/components/form-field.component.js +86 -25
  41. package/dist/components/form-field.component.js.map +1 -1
  42. package/dist/components/input.component.d.ts +20 -23
  43. package/dist/components/input.component.d.ts.map +1 -1
  44. package/dist/components/input.component.js +45 -54
  45. package/dist/components/input.component.js.map +1 -1
  46. package/dist/components/language-picker.component.d.ts +15 -18
  47. package/dist/components/language-picker.component.d.ts.map +1 -1
  48. package/dist/components/language-picker.component.js +25 -35
  49. package/dist/components/language-picker.component.js.map +1 -1
  50. package/dist/components/load-error-banner.component.d.ts +14 -26
  51. package/dist/components/load-error-banner.component.d.ts.map +1 -1
  52. package/dist/components/load-error-banner.component.js +28 -62
  53. package/dist/components/load-error-banner.component.js.map +1 -1
  54. package/dist/components/modal.component.d.ts +25 -21
  55. package/dist/components/modal.component.d.ts.map +1 -1
  56. package/dist/components/modal.component.js +42 -78
  57. package/dist/components/modal.component.js.map +1 -1
  58. package/dist/components/molecule/button.component.d.ts +13 -2
  59. package/dist/components/molecule/button.component.d.ts.map +1 -1
  60. package/dist/components/molecule/button.component.js +45 -15
  61. package/dist/components/molecule/button.component.js.map +1 -1
  62. package/dist/components/molecule/toast.component.d.ts +2 -1
  63. package/dist/components/molecule/toast.component.d.ts.map +1 -1
  64. package/dist/components/molecule/toast.component.js +9 -7
  65. package/dist/components/molecule/toast.component.js.map +1 -1
  66. package/dist/components/molecule/tooltip.component.d.ts +4 -2
  67. package/dist/components/molecule/tooltip.component.d.ts.map +1 -1
  68. package/dist/components/molecule/tooltip.component.js +19 -14
  69. package/dist/components/molecule/tooltip.component.js.map +1 -1
  70. package/dist/components/optimistic-toggle-button.component.d.ts +13 -25
  71. package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
  72. package/dist/components/optimistic-toggle-button.component.js +33 -63
  73. package/dist/components/optimistic-toggle-button.component.js.map +1 -1
  74. package/dist/components/page-header.component.d.ts +8 -13
  75. package/dist/components/page-header.component.d.ts.map +1 -1
  76. package/dist/components/page-header.component.js +16 -24
  77. package/dist/components/page-header.component.js.map +1 -1
  78. package/dist/components/page-shell.component.d.ts +8 -14
  79. package/dist/components/page-shell.component.d.ts.map +1 -1
  80. package/dist/components/page-shell.component.js +18 -28
  81. package/dist/components/page-shell.component.js.map +1 -1
  82. package/dist/components/panel-close.component.d.ts +14 -8
  83. package/dist/components/panel-close.component.d.ts.map +1 -1
  84. package/dist/components/panel-close.component.js +28 -17
  85. package/dist/components/panel-close.component.js.map +1 -1
  86. package/dist/components/prompt-dialog.component.d.ts +32 -10
  87. package/dist/components/prompt-dialog.component.d.ts.map +1 -1
  88. package/dist/components/prompt-dialog.component.js +110 -73
  89. package/dist/components/prompt-dialog.component.js.map +1 -1
  90. package/dist/components/responsive-app-shell.component.d.ts +34 -41
  91. package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
  92. package/dist/components/responsive-app-shell.component.js +126 -147
  93. package/dist/components/responsive-app-shell.component.js.map +1 -1
  94. package/dist/components/sidebar-user-card.component.d.ts +8 -12
  95. package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
  96. package/dist/components/sidebar-user-card.component.js +19 -35
  97. package/dist/components/sidebar-user-card.component.js.map +1 -1
  98. package/dist/components/switch.component.d.ts +13 -8
  99. package/dist/components/switch.component.d.ts.map +1 -1
  100. package/dist/components/switch.component.js +29 -20
  101. package/dist/components/switch.component.js.map +1 -1
  102. package/dist/components/table.component.d.ts +22 -14
  103. package/dist/components/table.component.d.ts.map +1 -1
  104. package/dist/components/table.component.js +34 -32
  105. package/dist/components/table.component.js.map +1 -1
  106. package/dist/components/toast.component.d.ts +34 -30
  107. package/dist/components/toast.component.d.ts.map +1 -1
  108. package/dist/components/toast.component.js +74 -84
  109. package/dist/components/toast.component.js.map +1 -1
  110. package/dist/components/tooltip.component.d.ts +14 -11
  111. package/dist/components/tooltip.component.d.ts.map +1 -1
  112. package/dist/components/tooltip.component.js +47 -47
  113. package/dist/components/tooltip.component.js.map +1 -1
  114. package/dist/components/user-menu-popover.component.d.ts +6 -12
  115. package/dist/components/user-menu-popover.component.d.ts.map +1 -1
  116. package/dist/components/user-menu-popover.component.js +40 -77
  117. package/dist/components/user-menu-popover.component.js.map +1 -1
  118. package/dist/components/user-menu.component.d.ts +8 -11
  119. package/dist/components/user-menu.component.d.ts.map +1 -1
  120. package/dist/components/user-menu.component.js +19 -27
  121. package/dist/components/user-menu.component.js.map +1 -1
  122. package/dist/index.d.ts +5 -5
  123. package/dist/index.js +5 -5
  124. package/dist/utilities/dom-context.d.ts +62 -15
  125. package/dist/utilities/dom-context.d.ts.map +1 -1
  126. package/dist/utilities/dom-context.js +79 -34
  127. package/dist/utilities/dom-context.js.map +1 -1
  128. package/dist/utilities/form-field-context.d.ts +2 -0
  129. package/dist/utilities/form-field-context.d.ts.map +1 -1
  130. package/dist/utilities/form-field-context.js +4 -2
  131. package/dist/utilities/form-field-context.js.map +1 -1
  132. package/dist/utilities/node-value.d.ts +8 -0
  133. package/dist/utilities/node-value.d.ts.map +1 -1
  134. package/dist/utilities/node-value.js +10 -0
  135. package/dist/utilities/node-value.js.map +1 -1
  136. package/dist/utilities/rest-attrs.d.ts +2 -2
  137. package/dist/utilities/rest-attrs.js +1 -1
  138. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"responsive-app-shell.component.d.ts","sourceRoot":"","sources":["../../src/components/responsive-app-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,OAAO,EAEZ,UAAU,EAIV,KAAK,SAAS,EACd,KAAK,MAAM,EAGX,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAOlD,OAAO,EAAE,UAAU,EAAW,QAAQ,EAAE,MAAM,4BAA4B,C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C,YAAY;IAcpB,yEAAyE;IACzE,OAAO,CAAC,QAAQ;IA0BhB,8EAA8E;IAC9E,OAAO,CAAC,SAAS;IAmBjB,mDAAmD;IACnD,OAAO,CAAC,YAAY;IAQpB,qDAAqD;IACrD,OAAO,CAAC,YAAY;IASpB,qDAAqD;IACrD,OAAO,CAAC,YAAY;IAOpB,sCAAsC;IACtC,OAAO,CAAC,eAAe;IAKvB;;;;OAIG;IACH,OAAO,CAAC,aAAa;yCAvUV,wBAAwB;2CAAxB,wBAAwB;CAkWpC;AAED;;GAEG;AACH,qBAYa,yBAAyB;IACpC,qCAAqC;IACrC,SAAS,CAAC,EAAE,8BAA8B,CAAC,WAAW,CAAC,CAAA;IACvD,qCAAqC;IACrC,KAAK,CAAC,EAAE,8BAA8B,CAAC,OAAO,CAAC,CAAA;IAC/C,+CAA+C;IAC/C,SAAS,CAAC,EAAE,8BAA8B,CAAC,WAAW,CAAC,CAAkB;IACzE,qBAAqB;IACrB,MAAM,CAAC,EAAE,8BAA8B,CAAC,QAAQ,CAAC,CAAA;IAEjD;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;yCA9Bf,yBAAyB;2CAAzB,yBAAyB;CAiCrC"}
@@ -4,19 +4,19 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- import { afterNextRender, Component, effect, ElementRef, EnvironmentInjector, inject, Injector, Renderer2, signal, ViewChild, } from '@angular/core';
8
- import { useHostPresence, useRouter, useTranslation } from '@molecule/app-angular';
7
+ import { afterNextRender, Component, effect, ElementRef, EnvironmentInjector, inject, Injector, signal, ViewChild, } from '@angular/core';
8
+ import { MolPlacement, placeElement, setElementPresent, useHostPresence, usePlacement, useRouter, useTranslation, } from '@molecule/app-angular';
9
9
  import { getClassMap } from '@molecule/app-ui';
10
10
  import { useIsDesktop } from '../hooks/use-is-desktop.js';
11
- import { findDomContext, provideDomContext, removeDomContext } from '../utilities/dom-context.js';
11
+ import { createDomContext } from '../utilities/dom-context.js';
12
12
  import { createScrollLock, getFocusableElements } from '../utilities/focus.js';
13
13
  import { nextInstanceId } from '../utilities/ids.js';
14
14
  import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
15
15
  import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
16
16
  import { styleText } from '../utilities/style.js';
17
- import { hasNodes, SlotWrapper } from './button.component.js';
18
17
  import { MolTemplateOutlet } from './template-outlet.directive.js';
19
18
  import * as i0 from "@angular/core";
19
+ import * as i1 from "@molecule/app-angular";
20
20
  const _c0 = ["*"];
21
21
  const _c1 = ["brandSlot"];
22
22
  const _c2 = ["actionsSlot"];
@@ -125,7 +125,7 @@ export class ResponsiveAppShell {
125
125
  ...(ngDevMode ? [{ debugName: "desktopEffect" }] : /* istanbul ignore next */ []));
126
126
  /** Registers the shell context on the host before any projected child resolves it. */
127
127
  constructor() {
128
- provideDomContext(this.host.nativeElement, new ShellContextValueImpl(this));
128
+ ShellDomContext.provide(this.host.nativeElement, new ShellContextValueImpl(this));
129
129
  }
130
130
  /**
131
131
  * The current class map.
@@ -154,7 +154,7 @@ export class ResponsiveAppShell {
154
154
  }
155
155
  /** Removes the context registration (unmount). */
156
156
  ngOnDestroy() {
157
- removeDomContext(this.host.nativeElement);
157
+ ShellDomContext.remove(this.host.nativeElement);
158
158
  }
159
159
  static ɵfac = function ResponsiveAppShell_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ResponsiveAppShell)(); };
160
160
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResponsiveAppShell, selectors: [["div", "mol-responsive-app-shell", ""]], hostVars: 5, hostBindings: function ResponsiveAppShell_HostBindings(rf, ctx) { if (rf & 2) {
@@ -180,7 +180,7 @@ export class ResponsiveAppShell {
180
180
  template: `<ng-content></ng-content>`,
181
181
  }]
182
182
  }], () => [], null); })();
183
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShell, { className: "ResponsiveAppShell", filePath: "components/responsive-app-shell.component.ts", lineNumber: 193 }); })();
183
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShell, { className: "ResponsiveAppShell", filePath: "components/responsive-app-shell.component.ts", lineNumber: 200 }); })();
184
184
  /** The shell context a `ResponsiveAppShell` root registers. */
185
185
  class ShellContextValueImpl {
186
186
  root;
@@ -260,29 +260,35 @@ export class ResponsiveAppShellTopBar {
260
260
  * does not).
261
261
  */
262
262
  i18n = useTranslation();
263
- renderer = inject(Renderer2);
264
- sync = new SlotWrapper(this.host, this.renderer);
265
- brandParent = null;
266
- actionsParent = null;
267
263
  hasBrand = false;
268
264
  hasActions = false;
269
265
  /** Prepares the header's mount condition (React's `mobileOnly`). */
270
266
  constructor() {
267
+ usePlacement((hasContent) => {
268
+ // Resolve the shell context while the host is still in the page: a mobileOnly header
269
+ // leaves it on desktop, and its ancestors are the only way to the shell root.
270
+ void this.shell();
271
+ this.syncWrappers(hasContent);
272
+ });
271
273
  // Leaves no element in the page while the bar is hidden on desktop (React renders null).
272
274
  useHostPresence(() => !(this.mobileOnly && this.shell().isDesktop));
273
275
  }
274
276
  /**
275
277
  * The nearest shell context.
276
- * @returns The context (null outside the shell).
278
+ * @returns The context (its defaults outside the shell).
277
279
  */
278
280
  shell() {
279
281
  // Cached: a detached (mobileOnly) header loses its DOM ancestors, so the
280
282
  // lookup must not be repeated after the element leaves the tree.
281
- this.context ??= contextOrDefault(this.host.nativeElement);
282
- return this.context;
283
+ return this.readContext() ?? contextOrDefault(null);
284
+ }
285
+ /**
286
+ * Reads the shell context from the host's place in the rendered tree.
287
+ * @returns The context, or null outside the shell.
288
+ */
289
+ readContext() {
290
+ return ShellDomContext.find(this.host.nativeElement) ?? null;
283
291
  }
284
- /** The resolved shell context. */
285
- context = null;
286
292
  /**
287
293
  * The current class map.
288
294
  * @returns The UIClassMap.
@@ -333,30 +339,14 @@ export class ResponsiveAppShellTopBar {
333
339
  * Refuses to render outside a shell (React's `useShellContext` throws).
334
340
  */
335
341
  ngOnInit() {
336
- requireShell(this.host.nativeElement, 'ResponsiveAppShell.TopBar');
337
- }
338
- /** Reads slot presence and applies the conditional brand/actions wrappers. */
339
- ngAfterViewInit() {
340
- this.brandParent = this.brandSlot?.nativeElement.parentElement ?? null;
341
- this.actionsParent = this.actionsSlot?.nativeElement.parentElement ?? null;
342
- this.hasBrand = isGiven(this.brand) || hasNodes(this.brandSlot?.nativeElement);
343
- this.hasActions = isGiven(this.actions) || hasNodes(this.actionsSlot?.nativeElement);
344
- this.syncWrappers();
345
- }
346
- /** Re-reconciles the wrappers. */
347
- ngDoCheck() {
348
- this.hasBrand = isGiven(this.brand) || hasNodes(this.brandSlot?.nativeElement);
349
- this.hasActions = isGiven(this.actions) || hasNodes(this.actionsSlot?.nativeElement);
350
- this.syncWrappers();
342
+ requireShell(this.readContext(), 'ResponsiveAppShell.TopBar');
351
343
  }
352
344
  /** Applies React's conditional brand/actions wrappers. */
353
- syncWrappers() {
354
- // While the header is detached (mobileOnly on desktop) every node reads as
355
- // disconnected; attempting a re-attach would append it in the wrong place.
356
- if (!this.host.nativeElement.isConnected)
357
- return;
358
- this.sync.sync(this.brandSlot?.nativeElement, this.hasBrand, this.brandParent ?? undefined);
359
- this.sync.sync(this.actionsSlot?.nativeElement, this.hasActions, this.actionsParent ?? undefined);
345
+ syncWrappers(hasContent) {
346
+ this.hasBrand = isGiven(this.brand) || hasContent(this.brandSlot?.nativeElement);
347
+ this.hasActions = isGiven(this.actions) || hasContent(this.actionsSlot?.nativeElement);
348
+ setElementPresent(this.brandSlot?.nativeElement, this.hasBrand);
349
+ setElementPresent(this.actionsSlot?.nativeElement, this.hasActions);
360
350
  }
361
351
  static ɵfac = function ResponsiveAppShellTopBar_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ResponsiveAppShellTopBar)(); };
362
352
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResponsiveAppShellTopBar, selectors: [["header", "mol-responsive-app-shell-topbar", ""]], viewQuery: function ResponsiveAppShellTopBar_Query(rf, ctx) { if (rf & 1) {
@@ -369,7 +359,7 @@ export class ResponsiveAppShellTopBar {
369
359
  i0.ɵɵattribute("data-mol-id", ctx.dataMolId)("data-testid", ctx.testId);
370
360
  i0.ɵɵstyleMap(ctx.hostStyle());
371
361
  i0.ɵɵclassMap(ctx.classes());
372
- } }, inputs: { brand: "brand", actions: "actions", mobileOnly: "mobileOnly", className: "className", dataMolId: "dataMolId", testId: "testId" }, ngContentSelectors: _c4, decls: 12, vars: 15, consts: [["brandSlot", ""], ["actionsSlot", ""], ["type", "button", "data-mol-id", "shell-drawer-open", 3, "class", "style"], [3, "molTemplateOutlet"], ["type", "button", "data-mol-id", "shell-drawer-open", 3, "click"], ["mol-icon", "", 3, "data"]], template: function ResponsiveAppShellTopBar_Template(rf, ctx) { if (rf & 1) {
362
+ } }, inputs: { brand: "brand", actions: "actions", mobileOnly: "mobileOnly", className: "className", dataMolId: "dataMolId", testId: "testId" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c4, decls: 12, vars: 15, consts: [["brandSlot", ""], ["actionsSlot", ""], ["type", "button", "data-mol-id", "shell-drawer-open", 3, "class", "style"], [3, "molTemplateOutlet"], ["type", "button", "data-mol-id", "shell-drawer-open", 3, "click"], ["mol-icon", "", 3, "data"]], template: function ResponsiveAppShellTopBar_Template(rf, ctx) { if (rf & 1) {
373
363
  i0.ɵɵprojectionDef(_c3);
374
364
  i0.ɵɵelementStart(0, "div");
375
365
  i0.ɵɵconditionalCreate(1, ResponsiveAppShellTopBar_Conditional_1_Template, 2, 8, "button", 2);
@@ -407,6 +397,7 @@ export class ResponsiveAppShellTopBar {
407
397
  args: [{
408
398
  selector: 'header[mol-responsive-app-shell-topbar]',
409
399
  standalone: true,
400
+ hostDirectives: [MolPlacement],
410
401
  imports: [MolIconSvg, MolTemplateOutlet],
411
402
  inputs: ['brand', 'actions', 'mobileOnly', 'className', 'dataMolId', 'testId'],
412
403
  host: {
@@ -451,7 +442,7 @@ export class ResponsiveAppShellTopBar {
451
442
  type: ViewChild,
452
443
  args: ['actionsSlot']
453
444
  }] }); })();
454
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellTopBar, { className: "ResponsiveAppShellTopBar", filePath: "components/responsive-app-shell.component.ts", lineNumber: 368 }); })();
445
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellTopBar, { className: "ResponsiveAppShellTopBar", filePath: "components/responsive-app-shell.component.ts", lineNumber: 376 }); })();
455
446
  /**
456
447
  * The desktop sidebar (`<aside>` + `<nav>` landmarks); renders nothing below
457
448
  * the breakpoint (the Drawer carries the nav there).
@@ -480,26 +471,33 @@ export class ResponsiveAppShellSidebar {
480
471
  * does not).
481
472
  */
482
473
  i18n = useTranslation();
483
- renderer = inject(Renderer2);
484
- sync = new SlotWrapper(this.host, this.renderer);
485
- footerParent = null;
486
474
  hasFooter = false;
487
475
  /** Prepares the aside's mount condition (React's breakpoint check). */
488
476
  constructor() {
477
+ usePlacement((hasContent) => {
478
+ // Resolve the shell context while the host is still in the page: below the breakpoint
479
+ // it leaves the page, and its ancestors are the only way to the shell root.
480
+ void this.shell();
481
+ this.syncWrapper(hasContent);
482
+ });
489
483
  // Leaves no element in the page below the breakpoint (React renders null).
490
484
  useHostPresence(() => this.shell().isDesktop);
491
485
  }
492
486
  /**
493
487
  * The nearest shell context.
494
- * @returns The context (defaults outside the shell).
488
+ * @returns The context (its defaults outside the shell).
495
489
  */
496
490
  shell() {
497
491
  // Cached: a detached (mobile) sidebar loses its DOM ancestors.
498
- this.context ??= contextOrDefault(this.host.nativeElement);
499
- return this.context;
492
+ return this.readContext() ?? contextOrDefault(null);
493
+ }
494
+ /**
495
+ * Reads the shell context from the host's place in the rendered tree.
496
+ * @returns The context, or null outside the shell.
497
+ */
498
+ readContext() {
499
+ return ShellDomContext.find(this.host.nativeElement) ?? null;
500
500
  }
501
- /** The resolved shell context. */
502
- context = null;
503
501
  /**
504
502
  * The current class map.
505
503
  * @returns The UIClassMap.
@@ -533,25 +531,12 @@ export class ResponsiveAppShellSidebar {
533
531
  * Refuses to render outside a shell (React's `useShellContext` throws).
534
532
  */
535
533
  ngOnInit() {
536
- requireShell(this.host.nativeElement, 'ResponsiveAppShell.Sidebar');
537
- }
538
- /** Reads footer presence and applies the conditional footer wrapper. */
539
- ngAfterViewInit() {
540
- this.footerParent = this.footerSlot?.nativeElement.parentElement ?? null;
541
- this.hasFooter = isGiven(this.footer) || hasNodes(this.footerSlot?.nativeElement);
542
- this.syncWrapper();
543
- }
544
- /** Re-reconciles the footer wrapper. */
545
- ngDoCheck() {
546
- this.hasFooter = isGiven(this.footer) || hasNodes(this.footerSlot?.nativeElement);
547
- this.syncWrapper();
534
+ requireShell(this.readContext(), 'ResponsiveAppShell.Sidebar');
548
535
  }
549
536
  /** Applies React's conditional footer wrapper. */
550
- syncWrapper() {
551
- // While the aside is detached (mobile) every node reads as disconnected.
552
- if (!this.host.nativeElement.isConnected)
553
- return;
554
- this.sync.sync(this.footerSlot?.nativeElement, this.hasFooter, this.footerParent ?? undefined);
537
+ syncWrapper(hasContent) {
538
+ this.hasFooter = isGiven(this.footer) || hasContent(this.footerSlot?.nativeElement);
539
+ setElementPresent(this.footerSlot?.nativeElement, this.hasFooter);
555
540
  }
556
541
  static ɵfac = function ResponsiveAppShellSidebar_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ResponsiveAppShellSidebar)(); };
557
542
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResponsiveAppShellSidebar, selectors: [["aside", "mol-responsive-app-shell-sidebar", ""]], viewQuery: function ResponsiveAppShellSidebar_Query(rf, ctx) { if (rf & 1) {
@@ -563,7 +548,7 @@ export class ResponsiveAppShellSidebar {
563
548
  i0.ɵɵattribute("data-mol-id", ctx.dataMolId)("data-testid", ctx.testId);
564
549
  i0.ɵɵstyleMap(ctx.hostStyle());
565
550
  i0.ɵɵclassMap(ctx.classes());
566
- } }, inputs: { navLabel: "navLabel", footer: "footer", className: "className", dataMolId: "dataMolId", testId: "testId" }, ngContentSelectors: _c8, decls: 7, vars: 8, consts: [["footerSlot", ""], [3, "molTemplateOutlet"]], template: function ResponsiveAppShellSidebar_Template(rf, ctx) { if (rf & 1) {
551
+ } }, inputs: { navLabel: "navLabel", footer: "footer", className: "className", dataMolId: "dataMolId", testId: "testId" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c8, decls: 7, vars: 8, consts: [["footerSlot", ""], [3, "molTemplateOutlet"]], template: function ResponsiveAppShellSidebar_Template(rf, ctx) { if (rf & 1) {
567
552
  i0.ɵɵprojectionDef(_c7);
568
553
  i0.ɵɵelementStart(0, "nav");
569
554
  i0.ɵɵprojection(1);
@@ -589,6 +574,7 @@ export class ResponsiveAppShellSidebar {
589
574
  args: [{
590
575
  selector: 'aside[mol-responsive-app-shell-sidebar]',
591
576
  standalone: true,
577
+ hostDirectives: [MolPlacement],
592
578
  imports: [MolTemplateOutlet],
593
579
  inputs: ['navLabel', 'footer', 'className', 'dataMolId', 'testId'],
594
580
  host: {
@@ -619,7 +605,7 @@ export class ResponsiveAppShellSidebar {
619
605
  type: ViewChild,
620
606
  args: ['footerSlot']
621
607
  }] }); })();
622
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellSidebar, { className: "ResponsiveAppShellSidebar", filePath: "components/responsive-app-shell.component.ts", lineNumber: 564 }); })();
608
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellSidebar, { className: "ResponsiveAppShellSidebar", filePath: "components/responsive-app-shell.component.ts", lineNumber: 558 }); })();
623
609
  /**
624
610
  * The mobile nav drawer (<768px): a left-anchored dialog panel over a
625
611
  * backdrop, portaled into `document.body`.
@@ -667,32 +653,43 @@ export class ResponsiveAppShellDrawer {
667
653
  * does not).
668
654
  */
669
655
  i18n = useTranslation();
670
- renderer = inject(Renderer2);
671
656
  /** Schedules the deferred focus moves from the change-detection hooks. */
672
657
  injector = inject(Injector);
673
658
  /** Schedules the focus restore of a destroyed open drawer (the component's own injector is gone). */
674
659
  environmentInjector = inject(EnvironmentInjector);
675
- sync = new SlotWrapper(this.host, this.renderer);
676
660
  scrollLock = createScrollLock();
677
661
  hasFooter = false;
678
- footerParent = null;
679
- headerParent = null;
680
- headerRowParent = null;
681
- attached = false;
682
662
  locked = false;
683
663
  lastOpen = false;
684
664
  previouslyFocused = null;
685
665
  listeners = [];
666
+ /** Applies React's conditional header/footer wrappers, and takes the host out of the page. */
667
+ constructor() {
668
+ usePlacement((hasContent) => {
669
+ // Resolve the shell context while the host is still in the page: it leaves the page
670
+ // below, and its ancestors are the only way to the shell root.
671
+ void this.shell();
672
+ this.syncWrappers(hasContent);
673
+ // Read through the placement function so the drawer's portal follows the shell's open
674
+ // state: the state is a signal on the shell root, and only a read here (or in the
675
+ // template) marks this component for a check.
676
+ this.syncOpen();
677
+ });
678
+ }
686
679
  /**
687
680
  * The nearest shell context.
688
- * @returns The context (defaults outside the shell).
681
+ * @returns The context (its defaults outside the shell).
689
682
  */
690
683
  shell() {
691
- this.context ??= contextOrDefault(this.host.nativeElement);
692
- return this.context;
684
+ return this.readContext() ?? contextOrDefault(null);
685
+ }
686
+ /**
687
+ * Reads the shell context from the host's place in the rendered tree.
688
+ * @returns The context, or null outside the shell.
689
+ */
690
+ readContext() {
691
+ return ShellDomContext.find(this.host.nativeElement) ?? null;
693
692
  }
694
- /** The resolved shell context. */
695
- context = null;
696
693
  /**
697
694
  * The current class map.
698
695
  * @returns The UIClassMap.
@@ -766,20 +763,16 @@ export class ResponsiveAppShellDrawer {
766
763
  this.shell().closeDrawer();
767
764
  }
768
765
  /**
769
- * Refuses to render outside a shell (React's `useShellContext` throws).
766
+ * Refuses to render outside a shell (React's `useShellContext` throws). The
767
+ * host may already have left the page (the placement function runs first), so
768
+ * the context resolved there is the one to check.
770
769
  */
771
770
  ngOnInit() {
772
- requireShell(this.host.nativeElement, 'ResponsiveAppShell.Drawer');
771
+ requireShell(this.readContext(), 'ResponsiveAppShell.Drawer');
773
772
  }
774
773
  /** Registers the drawer, reads slots and applies the initial open state. */
775
774
  ngAfterViewInit() {
776
775
  this.shell().registerDrawer(true);
777
- this.headerParent = this.headerSlot?.nativeElement.parentElement ?? null;
778
- this.headerRowParent = this.headerRow?.nativeElement.parentElement ?? null;
779
- this.footerParent = this.footerSlot?.nativeElement.parentElement ?? null;
780
- this.headerPresent.set(isGiven(this.header) || hasNodes(this.headerSlot?.nativeElement));
781
- this.hasFooter = isGiven(this.footer) || hasNodes(this.footerSlot?.nativeElement);
782
- this.syncWrappers();
783
776
  const open = this.shell().drawerOpen && !this.shell().isDesktop;
784
777
  this.lastOpen = open;
785
778
  if (open)
@@ -787,16 +780,13 @@ export class ResponsiveAppShellDrawer {
787
780
  else
788
781
  this.detachPortal();
789
782
  }
790
- /** Reconciles the open state, the wrappers and the drawer registration. */
783
+ /** Reconciles the open state and the drawer registration. */
791
784
  ngDoCheck() {
792
- this.headerPresent.set(isGiven(this.header) || hasNodes(this.headerSlot?.nativeElement));
793
- this.hasFooter = isGiven(this.footer) || hasNodes(this.footerSlot?.nativeElement);
794
- this.syncWrappers();
795
785
  this.syncOpen();
796
786
  }
797
787
  /**
798
- * Unregisters the drawer, unlocks scroll, restores the portal nodes and, when it was open, puts
799
- * focus back on whatever opened it (React's effect cleanup does on unmount).
788
+ * Unregisters the drawer, unlocks scroll and, when it was open, puts focus back on whatever
789
+ * opened it (React's effect cleanup does on unmount).
800
790
  */
801
791
  ngOnDestroy() {
802
792
  this.shell().registerDrawer(false);
@@ -814,26 +804,17 @@ export class ResponsiveAppShellDrawer {
814
804
  this.scrollLock.unlock();
815
805
  this.locked = false;
816
806
  }
817
- const host = this.host.nativeElement;
818
- if (this.attached) {
819
- const overlay = this.overlay?.nativeElement;
820
- const wrapper = this.wrapper?.nativeElement;
821
- if (overlay?.parentNode === document.body)
822
- host.appendChild(overlay);
823
- if (wrapper?.parentNode === document.body)
824
- host.appendChild(wrapper);
825
- this.attached = false;
826
- }
827
807
  }
828
- /** Applies React's conditional header/footer wrappers. */
829
- syncWrappers() {
830
- // The whole panel lives in a detached portal while the drawer is closed;
831
- // a "re-attach" there would append the wrapper at the panel's end.
832
- if (!this.attached)
833
- return;
834
- this.sync.sync(this.headerRow?.nativeElement, this.headerPresent() || (this.showCloseButton ?? true), this.headerRowParent ?? undefined);
835
- this.sync.sync(this.headerSlot?.nativeElement, this.headerPresent(), this.headerParent ?? undefined);
836
- this.sync.sync(this.footerSlot?.nativeElement, this.hasFooter, this.footerParent ?? undefined);
808
+ /** Applies React's conditional header/footer wrappers, and takes the host out of the page. */
809
+ syncWrappers(hasContent) {
810
+ this.headerPresent.set(isGiven(this.header) || hasContent(this.headerSlot?.nativeElement));
811
+ this.hasFooter = isGiven(this.footer) || hasContent(this.footerSlot?.nativeElement);
812
+ setElementPresent(this.headerRow?.nativeElement, this.headerPresent() || (this.showCloseButton ?? true));
813
+ setElementPresent(this.headerSlot?.nativeElement, this.headerPresent());
814
+ setElementPresent(this.footerSlot?.nativeElement, this.hasFooter);
815
+ // React renders the drawer's portal in `document.body` while open and nothing while closed:
816
+ // no element at the sub-component's place either way.
817
+ setElementPresent(this.host.nativeElement, false);
837
818
  }
838
819
  /** Applies the open transition (portal mounting, focus, scroll lock). */
839
820
  syncOpen() {
@@ -865,9 +846,6 @@ export class ResponsiveAppShellDrawer {
865
846
  openPanel() {
866
847
  this.previouslyFocused = document.activeElement ?? null;
867
848
  this.attachPortal();
868
- // The wrappers could not be reconciled while the portal was detached
869
- // (every node read as disconnected); apply them now that it is mounted.
870
- this.syncWrappers();
871
849
  // After the render, so the panel's `focusin` listeners settle after the
872
850
  // view check (a state change made during it is never rendered).
873
851
  afterNextRender(() => {
@@ -881,21 +859,23 @@ export class ResponsiveAppShellDrawer {
881
859
  this.locked = true;
882
860
  this.addListeners();
883
861
  }
884
- /** Moves the portal nodes into `document.body`. */
862
+ /** Renders the portal nodes in `document.body`. */
885
863
  attachPortal() {
886
864
  const overlay = this.overlay?.nativeElement;
887
865
  const wrapper = this.wrapper?.nativeElement;
888
866
  if (!overlay || !wrapper)
889
867
  return;
890
- document.body.appendChild(overlay);
891
- document.body.appendChild(wrapper);
892
- this.attached = true;
868
+ placeElement(overlay, document.body);
869
+ placeElement(wrapper, document.body);
893
870
  }
894
871
  /** Removes the portal nodes (React renders null). */
895
872
  detachPortal() {
896
- this.overlay?.nativeElement.remove();
897
- this.wrapper?.nativeElement.remove();
898
- this.attached = false;
873
+ const overlay = this.overlay?.nativeElement;
874
+ const wrapper = this.wrapper?.nativeElement;
875
+ placeElement(overlay, null);
876
+ setElementPresent(overlay, false);
877
+ placeElement(wrapper, null);
878
+ setElementPresent(wrapper, false);
899
879
  }
900
880
  /** Adds Escape and the Tab focus trap while open. */
901
881
  addListeners() {
@@ -956,9 +936,7 @@ export class ResponsiveAppShellDrawer {
956
936
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerRow = _t.first);
957
937
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerSlot = _t.first);
958
938
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerSlot = _t.first);
959
- } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], hostVars: 1, hostBindings: function ResponsiveAppShellDrawer_HostBindings(rf, ctx) { if (rf & 2) {
960
- i0.ɵɵattribute("data-open", ctx.shell().drawerOpen ? "true" : null);
961
- } }, inputs: { header: "header", navLabel: "navLabel", footer: "footer", showCloseButton: "showCloseButton", className: "className", dataMolId: "dataMolId", closeDataMolId: "closeDataMolId", testId: "testId" }, ngContentSelectors: _c16, decls: 22, vars: 31, consts: [["overlay", ""], ["wrapper", ""], ["panel", ""], ["headerRow", ""], ["headerSlot", ""], ["footerSlot", ""], ["aria-hidden", "true"], ["role", "presentation", 3, "click"], ["role", "dialog", "aria-modal", "true", "tabindex", "-1", 3, "id"], [3, "molTemplateOutlet"], ["type", "button", 3, "class"], ["type", "button", 3, "click"], ["mol-icon", "", 3, "data"]], template: function ResponsiveAppShellDrawer_Template(rf, ctx) { if (rf & 1) {
939
+ } }, inputs: { header: "header", navLabel: "navLabel", footer: "footer", showCloseButton: "showCloseButton", className: "className", dataMolId: "dataMolId", closeDataMolId: "closeDataMolId", testId: "testId" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c16, decls: 22, vars: 31, consts: [["overlay", ""], ["wrapper", ""], ["panel", ""], ["headerRow", ""], ["headerSlot", ""], ["footerSlot", ""], ["aria-hidden", "true"], ["role", "presentation", 3, "click"], ["role", "dialog", "aria-modal", "true", "tabindex", "-1", 3, "id"], [3, "molTemplateOutlet"], ["type", "button", 3, "class"], ["type", "button", 3, "click"], ["mol-icon", "", 3, "data"]], template: function ResponsiveAppShellDrawer_Template(rf, ctx) { if (rf & 1) {
962
940
  i0.ɵɵprojectionDef(_c15);
963
941
  i0.ɵɵelement(0, "div", 6, 0);
964
942
  i0.ɵɵelementStart(2, "div", 7, 1);
@@ -1017,6 +995,7 @@ export class ResponsiveAppShellDrawer {
1017
995
  args: [{
1018
996
  selector: 'mol-responsive-app-shell-drawer',
1019
997
  standalone: true,
998
+ hostDirectives: [MolPlacement],
1020
999
  imports: [MolIconSvg, MolTemplateOutlet],
1021
1000
  inputs: [
1022
1001
  'header',
@@ -1028,11 +1007,6 @@ export class ResponsiveAppShellDrawer {
1028
1007
  'closeDataMolId',
1029
1008
  'testId',
1030
1009
  ],
1031
- host: {
1032
- 'data-parity-unwrap': '',
1033
- style: 'display: contents',
1034
- '[attr.data-open]': 'shell().drawerOpen ? "true" : null',
1035
- },
1036
1010
  template: `<div #overlay [class]="cm().overlay" aria-hidden="true"></div>
1037
1011
  <div
1038
1012
  #wrapper
@@ -1104,7 +1078,7 @@ export class ResponsiveAppShellDrawer {
1104
1078
  </div>
1105
1079
  </div>`,
1106
1080
  }]
1107
- }], null, { overlay: [{
1081
+ }], () => [], { overlay: [{
1108
1082
  type: ViewChild,
1109
1083
  args: ['overlay']
1110
1084
  }], wrapper: [{
@@ -1123,7 +1097,7 @@ export class ResponsiveAppShellDrawer {
1123
1097
  type: ViewChild,
1124
1098
  args: ['footerSlot']
1125
1099
  }] }); })();
1126
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellDrawer, { className: "ResponsiveAppShellDrawer", filePath: "components/responsive-app-shell.component.ts", lineNumber: 782 }); })();
1100
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellDrawer, { className: "ResponsiveAppShellDrawer", filePath: "components/responsive-app-shell.component.ts", lineNumber: 765 }); })();
1127
1101
  /**
1128
1102
  * The shell's `<main>` landmark.
1129
1103
  */
@@ -1182,38 +1156,43 @@ export class ResponsiveAppShellContent {
1182
1156
  template: `<ng-content></ng-content>`,
1183
1157
  }]
1184
1158
  }], null, null); })();
1185
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellContent, { className: "ResponsiveAppShellContent", filePath: "components/responsive-app-shell.component.ts", lineNumber: 1160 }); })();
1159
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResponsiveAppShellContent, { className: "ResponsiveAppShellContent", filePath: "components/responsive-app-shell.component.ts", lineNumber: 1136 }); })();
1160
+ /** The safe default a sub-component reads outside a shell (one object, so a spy sees its methods). */
1161
+ const NO_SHELL_CONTEXT = {
1162
+ isDesktop: false,
1163
+ sidebarWidthPx: SIDEBAR_WIDTH_PX.md,
1164
+ drawerOpen: false,
1165
+ openDrawer: () => undefined,
1166
+ closeDrawer: () => undefined,
1167
+ drawerId: '',
1168
+ hasDrawer: false,
1169
+ registerDrawer: () => undefined,
1170
+ };
1186
1171
  /**
1187
1172
  * The nearest shell context, or a safe default outside the shell.
1188
1173
  *
1189
- * @param element - The reading element.
1174
+ * @param element - The reading element, or null.
1190
1175
  * @returns The context.
1191
1176
  */
1192
1177
  function contextOrDefault(element) {
1193
- return (findDomContext(element) ?? {
1194
- isDesktop: false,
1195
- sidebarWidthPx: SIDEBAR_WIDTH_PX.md,
1196
- drawerOpen: false,
1197
- openDrawer: () => undefined,
1198
- closeDrawer: () => undefined,
1199
- drawerId: '',
1200
- hasDrawer: false,
1201
- registerDrawer: () => undefined,
1202
- });
1178
+ return ShellDomContext.find(element) ?? NO_SHELL_CONTEXT;
1203
1179
  }
1204
1180
  /**
1205
1181
  * Refuses to render a sub-component that has no enclosing shell — React's
1206
1182
  * `useShellContext`, which throws `<…> must be rendered inside
1207
1183
  * <ResponsiveAppShell>`. Angular has no context consumer to throw from during
1208
1184
  * render, so the same refusal happens in the component's `ngOnInit` (its
1209
- * first render pass).
1185
+ * first render pass), from the context the sub-component read while its host
1186
+ * was still in the page.
1210
1187
  *
1211
- * @param element - The sub-component's host element.
1188
+ * @param context - The sub-component's shell context, or null outside a shell.
1212
1189
  * @param name - The React component name the error names.
1213
1190
  */
1214
- function requireShell(element, name) {
1215
- if (!findDomContext(element)) {
1191
+ function requireShell(context, name) {
1192
+ if (context === null) {
1216
1193
  throw new Error(`<${name}> must be rendered inside <ResponsiveAppShell>`);
1217
1194
  }
1218
1195
  }
1196
+ /** The context a provider registers and its consumers find. */
1197
+ const ShellDomContext = createDomContext('ShellDomContext');
1219
1198
  //# sourceMappingURL=responsive-app-shell.component.js.map