@molecule/app-ui-angular 1.4.2 → 1.5.2

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 +987 -1015
  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 +143 -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 +38 -21
  55. package/dist/components/modal.component.d.ts.map +1 -1
  56. package/dist/components/modal.component.js +55 -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 +46 -41
  91. package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
  92. package/dist/components/responsive-app-shell.component.js +138 -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 +27 -11
  111. package/dist/components/tooltip.component.d.ts.map +1 -1
  112. package/dist/components/tooltip.component.js +62 -47
  113. package/dist/components/tooltip.component.js.map +1 -1
  114. package/dist/components/user-menu-popover.component.d.ts +18 -12
  115. package/dist/components/user-menu-popover.component.d.ts.map +1 -1
  116. package/dist/components/user-menu-popover.component.js +52 -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":"user-menu-popover.component.js","sourceRoot":"","sources":["../../src/components/user-menu-popover.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,iBAAiB,EACjB,SAAS,EAET,MAAM,EACN,UAAU,EACV,MAAM,EAEN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE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B;6DAAtB,sBAAsB;YAAtB,2FAAA,aAAS,IAAa;;;YAAtB,cAAA,aAAS,CAAa;;YAFtB,YAAa;;YAAb,iCAAa;;;iFAEb,sBAAsB;cAZlC,SAAS;eAAC;gBACT,QAAQ,EAAE,wCAAwC;gBAClD,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,CAAC;gBAC9D,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,oBAAoB,EAAE,WAAW;oBACjC,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE,eAAe;aAC1B;;kFACY,sBAAsB;AAkFnC;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAmC,CAAA;IACnF,0EAA0E;IAC1E,qDAAqD;IACrD,OAAO,GAAG,EAAE;QACV,cAAc,CAAyB,EAAE,EAAE,aAAa,IAAI,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;IACnF,CAAC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"user-menu-popover.component.js","sourceRoot":"","sources":["../../src/components/user-menu-popover.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,iBAAiB,EACjB,SAAS,EAET,MAAM,EACN,UAAU,EACV,MAAM,EAEN,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE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,CAAC,CAAA;QAC9B,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAA;QAC1B,CAAC;QAAC,OAAO,MAAM,EAAE,CAAC;YAChB,oEAAoE;YACpE,mDAAmD;QACrD,CAAC;IACH,CAAC;gHA/EU,sBAAsB;6DAAtB,sBAAsB;YAAtB,2FAAA,aAAS,IAAa;;;YAAtB,cAAA,aAAS,CAAa;;YAFtB,YAAa;;YAAb,iCAAa;;;iFAEb,sBAAsB;cAZlC,SAAS;eAAC;gBACT,QAAQ,EAAE,wCAAwC;gBAClD,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,CAAC;gBAC9D,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,oBAAoB,EAAE,WAAW;oBACjC,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE,eAAe;aAC1B;;kFACY,sBAAsB;AAkFnC;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAmC,CAAA;IACnF,0EAA0E;IAC1E,qDAAqD;IACrD,OAAO,GAAG,EAAE;QACV,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,aAAa,IAAI,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;IACnE,CAAC,CAAA;AACH,CAAC;AAED,+DAA+D;AAC/D,MAAM,iBAAiB,GAAG,gBAAgB,CAAyB,mBAAmB,CAAC,CAAA"}
@@ -4,10 +4,11 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- import { type AfterViewInit, ElementRef, type OnDestroy } from '@angular/core';
7
+ import { ElementRef } from '@angular/core';
8
8
  import type { IconName } from '@molecule/app-icons';
9
9
  import type { UIClassMap } from '@molecule/app-ui';
10
10
  import * as i0 from "@angular/core";
11
+ import * as i1 from "@molecule/app-angular";
11
12
  /**
12
13
  * Props for {@link UserMenu} (React's `UserMenuProps`, in Angular's form).
13
14
  * The panel content is projected content, so it has no member.
@@ -35,13 +36,13 @@ export interface UserMenuProps {
35
36
  /**
36
37
  * UserMenu component.
37
38
  *
38
- * React's root is a FRAGMENT (the trigger button plus a drawer), so the host
39
- * is unwrapped (`data-parity-unwrap`, `display: contents`) and the trigger
40
- * button is adopted beside it — the rendered tree and focus paths match
39
+ * React's root is a FRAGMENT (the trigger button plus a drawer), so the trigger
40
+ * button renders in front of the host (`placeElementBefore`) and the host
41
+ * itself leaves the DOM — the rendered tree and focus paths match
41
42
  * React's (a route change must restore focus to the trigger). The panel
42
43
  * content is projected inside the drawer through `PanelCloseProvider`.
43
44
  */
44
- export declare class UserMenu implements AfterViewInit, OnDestroy {
45
+ export declare class UserMenu {
45
46
  /** i18n key for the trigger's aria-label (default `userMenu.open`). */
46
47
  ariaLabelKey?: UserMenuProps['ariaLabelKey'];
47
48
  /** Fallback aria-label (default `Open user menu`). */
@@ -73,7 +74,7 @@ export declare class UserMenu implements AfterViewInit, OnDestroy {
73
74
  /** The trigger button (adopted beside the host). */
74
75
  trigger?: ElementRef<HTMLButtonElement>;
75
76
  private readonly host;
76
- private adopted;
77
+ constructor();
77
78
  private readonly routeEffect;
78
79
  /**
79
80
  * The current class map.
@@ -109,11 +110,7 @@ export declare class UserMenu implements AfterViewInit, OnDestroy {
109
110
  * @param event - The click event.
110
111
  */
111
112
  handleTriggerClick(event: MouseEvent): void;
112
- /** Adopts the trigger beside the host (React's fragment root). */
113
- ngAfterViewInit(): void;
114
- /** Restores the adopted trigger (unmount). */
115
- ngOnDestroy(): void;
116
113
  static ɵfac: i0.ɵɵFactoryDeclaration<UserMenu, never>;
117
- static ɵcmp: i0.ɵɵComponentDeclaration<UserMenu, "mol-user-menu", never, { "ariaLabelKey": { "alias": "ariaLabelKey"; "required": false; }; "ariaLabelDefault": { "alias": "ariaLabelDefault"; "required": false; }; "triggerIcon": { "alias": "triggerIcon"; "required": false; }; "triggerIconSize": { "alias": "triggerIconSize"; "required": false; }; "dataMolId": { "alias": "dataMolId"; "required": false; }; "className": { "alias": "className"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, {}, never, ["*"], true, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserMenu, "mol-user-menu", never, { "ariaLabelKey": { "alias": "ariaLabelKey"; "required": false; }; "ariaLabelDefault": { "alias": "ariaLabelDefault"; "required": false; }; "triggerIcon": { "alias": "triggerIcon"; "required": false; }; "triggerIconSize": { "alias": "triggerIconSize"; "required": false; }; "dataMolId": { "alias": "dataMolId"; "required": false; }; "className": { "alias": "className"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
118
115
  }
119
116
  //# sourceMappingURL=user-menu.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-menu.component.d.ts","sourceRoot":"","sources":["../../src/components/user-menu.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,EAEV,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAQlD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kDAAkD;IAClD,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,oDAAoD;IACpD,eAA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,IAAI,MAAM;IAIxB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAMvB,8DAA8D;IAC9D,UAAU,QAAO,IAAI,CAEpB;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCA/GhC,QAAQ;2CAAR,QAAQ;CAmHpB"}
@@ -4,22 +4,23 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- import { Component, effect, ElementRef, inject, signal, ViewChild, } from '@angular/core';
8
- import { useRouter, useTranslation } from '@molecule/app-angular';
7
+ import { Component, effect, ElementRef, inject, signal, ViewChild } from '@angular/core';
8
+ import { MolPlacement, placeElementBefore, setElementPresent, usePlacement, useRouter, useTranslation, } from '@molecule/app-angular';
9
9
  import { getClassMap } from '@molecule/app-ui';
10
10
  import { Button } from './button.component.js';
11
11
  import { Icon } from './icon.component.js';
12
12
  import { Modal } from './modal.component.js';
13
13
  import { PanelCloseProvider } from './panel-close.component.js';
14
14
  import * as i0 from "@angular/core";
15
+ import * as i1 from "@molecule/app-angular";
15
16
  const _c0 = ["trigger"];
16
17
  const _c1 = ["*"];
17
18
  /**
18
19
  * UserMenu component.
19
20
  *
20
- * React's root is a FRAGMENT (the trigger button plus a drawer), so the host
21
- * is unwrapped (`data-parity-unwrap`, `display: contents`) and the trigger
22
- * button is adopted beside it — the rendered tree and focus paths match
21
+ * React's root is a FRAGMENT (the trigger button plus a drawer), so the trigger
22
+ * button renders in front of the host (`placeElementBefore`) and the host
23
+ * itself leaves the DOM — the rendered tree and focus paths match
23
24
  * React's (a route change must restore focus to the trigger). The panel
24
25
  * content is projected inside the drawer through `PanelCloseProvider`.
25
26
  */
@@ -56,7 +57,15 @@ export class UserMenu {
56
57
  /** The trigger button (adopted beside the host). */
57
58
  trigger;
58
59
  host = inject(ElementRef);
59
- adopted = false;
60
+ constructor() {
61
+ usePlacement(() => {
62
+ const trigger = this.trigger?.nativeElement;
63
+ if (!trigger)
64
+ return;
65
+ placeElementBefore(trigger, this.host.nativeElement);
66
+ setElementPresent(this.host.nativeElement, false);
67
+ });
68
+ }
60
69
  routeEffect = effect(() => {
61
70
  const location = this.router.location();
62
71
  void `${location.pathname}${location.search}`;
@@ -119,27 +128,13 @@ export class UserMenu {
119
128
  else
120
129
  this.isOpen.set(true);
121
130
  }
122
- /** Adopts the trigger beside the host (React's fragment root). */
123
- ngAfterViewInit() {
124
- const trigger = this.trigger?.nativeElement;
125
- const host = this.host.nativeElement;
126
- if (trigger && host.parentNode) {
127
- host.parentNode.insertBefore(trigger, host);
128
- this.adopted = true;
129
- }
130
- }
131
- /** Restores the adopted trigger (unmount). */
132
- ngOnDestroy() {
133
- if (this.adopted)
134
- this.host.nativeElement.appendChild(this.trigger?.nativeElement);
135
- }
136
131
  static ɵfac = function UserMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserMenu)(); };
137
132
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserMenu, selectors: [["mol-user-menu"]], viewQuery: function UserMenu_Query(rf, ctx) { if (rf & 1) {
138
133
  i0.ɵɵviewQuery(_c0, 5, ElementRef);
139
134
  } if (rf & 2) {
140
135
  let _t;
141
136
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
142
- } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { ariaLabelKey: "ariaLabelKey", ariaLabelDefault: "ariaLabelDefault", triggerIcon: "triggerIcon", triggerIconSize: "triggerIconSize", dataMolId: "dataMolId", className: "className", disabled: "disabled", onClick: "onClick", side: "side" }, ngContentSelectors: _c1, decls: 6, vars: 12, consts: [["trigger", ""], ["mol-button", "", 3, "click", "variant", "size", "className", "disabled"], ["mol-icon-root", "", 3, "name", "size"], [3, "close", "open", "className"], [3, "close"]], template: function UserMenu_Template(rf, ctx) { if (rf & 1) {
137
+ } }, inputs: { ariaLabelKey: "ariaLabelKey", ariaLabelDefault: "ariaLabelDefault", triggerIcon: "triggerIcon", triggerIconSize: "triggerIconSize", dataMolId: "dataMolId", className: "className", disabled: "disabled", onClick: "onClick", side: "side" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c1, decls: 6, vars: 12, consts: [["trigger", ""], ["mol-button", "", 3, "click", "variant", "size", "className", "disabled"], ["mol-icon-root", "", 3, "name", "size"], [3, "close", "open", "className"], [3, "close"]], template: function UserMenu_Template(rf, ctx) { if (rf & 1) {
143
138
  i0.ɵɵprojectionDef();
144
139
  i0.ɵɵelementStart(0, "button", 1, 0);
145
140
  i0.ɵɵlistener("click", function UserMenu_Template_button_click_0_listener($event) { return ctx.handleTriggerClick($event); });
@@ -170,6 +165,7 @@ export class UserMenu {
170
165
  selector: 'mol-user-menu',
171
166
  standalone: true,
172
167
  imports: [Button, Icon, Modal, PanelCloseProvider],
168
+ hostDirectives: [MolPlacement],
173
169
  inputs: [
174
170
  'ariaLabelKey',
175
171
  'ariaLabelDefault',
@@ -181,10 +177,6 @@ export class UserMenu {
181
177
  'onClick',
182
178
  'side',
183
179
  ],
184
- host: {
185
- 'data-parity-unwrap': '',
186
- style: 'display: contents',
187
- },
188
180
  template: `<button
189
181
  #trigger
190
182
  mol-button
@@ -210,9 +202,9 @@ export class UserMenu {
210
202
  ><ng-content></ng-content></mol-panel-close-provider
211
203
  ></mol-modal>`,
212
204
  }]
213
- }], null, { trigger: [{
205
+ }], () => [], { trigger: [{
214
206
  type: ViewChild,
215
207
  args: ['trigger', { read: ElementRef }]
216
208
  }] }); })();
217
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenu, { className: "UserMenu", filePath: "components/user-menu.component.ts", lineNumber: 107 }); })();
209
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenu, { className: "UserMenu", filePath: "components/user-menu.component.ts", lineNumber: 102 }); })();
218
210
  //# sourceMappingURL=user-menu.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-men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AAS;eAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,CAAC;gBAClD,MAAM,EAAE;oBACN,cAAc;oBACd,kBAAkB;oBAClB,aAAa;oBACb,iBAAiB;oBACjB,WAAW;oBACX,WAAW;oBACX,UAAU;oBACV,SAAS;oBACT,MAAM;iBACP;gBACD,IAAI,EAAE;oBACJ,oBAAoB,EAAE,EAAE;oBACxB,KAAK,EAAE,mBAAmB;iBAC3B;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;kBAuBM;aACjB;;kBAkCE,SAAS;mBAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kFAjC/B,QAAQ"}
1
+ {"version":3,"file":"user-menu.component.js","sourceRoot":"","sources":["../../src/components/user-menu.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAExF,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,cAAc,GACf,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;;AA2B/D;;;;;;;;GAQG;AA0CH,MAAM,OAAO,QAAQ;IACnB,uEAAuE;IACvE,YAAY,CAAgC;IAC5C,sDAAsD;IACtD,gBAAgB,CAAoC;IACpD,kDAAkD;IAClD,WAAW,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;YAAA,iBACR;;YAAA,oCAKE;YAHD,wFAAS,eAAW,KAAK,CAAC,IAAC;YAG1B,mDACE;YAAA,kBAAyB;YAC7B,AAD6B,iBAC7B,EAAY;;YAjBX,AADA,AADA,AADA,iCAAmB,cACN,mCACiB,4BACP;;YAOrB,eAA8B;YAC9B,AADA,gDAA8B,mCACA;YAGhC,cAAiB;YAEjB,AAFA,mCAAiB,kCAEY;;YAEF,cAAoB;YAApB,sCAAoB;4BAlCzC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB;;iFAsCtC,QAAQ;cAzCpB,SAAS;eAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,CAAC;gBAClD,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,MAAM,EAAE;oBACN,cAAc;oBACd,kBAAkB;oBAClB,aAAa;oBACb,iBAAiB;oBACjB,WAAW;oBACX,WAAW;oBACX,UAAU;oBACV,SAAS;oBACT,MAAM;iBACP;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;kBAuBM;aACjB;;kBAkCE,SAAS;mBAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kFAjC/B,QAAQ"}
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@
4
4
  * Provides standalone Angular components at parity with `@molecule/app-ui-react`:
5
5
  * every React export exists here under the same name, with the same props, the
6
6
  * same rendered DOM (ClassMap classes, attributes, inline styles, text) and the
7
- * same behaviour. The shared conformance kit
8
- * (`@molecule/app-framework-conformance`) proves the parity.
7
+ * same behaviour. Molecule's conformance tests render each component in React and
8
+ * Angular and compare the two.
9
9
  *
10
10
  * React-named exports include `Button`, `Card` (+ `CardHeader`, `CardTitle`,
11
11
  * `CardDescription`, `CardContent`, `CardFooter`), `Input`, `Select`,
@@ -57,9 +57,9 @@
57
57
  * - Components are standalone — add them to the `imports` array of the consuming component or
58
58
  * route; there is no NgModule.
59
59
  * - A component's selector names the native element React renders at its root (an attribute
60
- * selector such as `button[mol-button]`), so the host IS the root element. Components whose
61
- * React root is a fragment or portal use an element selector whose host is
62
- * `display: contents`.
60
+ * selector such as `button[mol-button]`), so the host IS the root element. A component whose
61
+ * React root is a fragment or a portal renders its template in the host's place and leaves the
62
+ * page itself, so no wrapper element stands among React's nodes.
63
63
  * - Hooks (`useToast`, `usePanelClose`, `useIsDesktop`, `useUserMenuPopoverClose`) are called in
64
64
  * an injection context (a component field initializer or constructor).
65
65
  * - Every component whose React export forwards a ref implements `HasElement`: take it with a
package/dist/index.js CHANGED
@@ -4,8 +4,8 @@
4
4
  * Provides standalone Angular components at parity with `@molecule/app-ui-react`:
5
5
  * every React export exists here under the same name, with the same props, the
6
6
  * same rendered DOM (ClassMap classes, attributes, inline styles, text) and the
7
- * same behaviour. The shared conformance kit
8
- * (`@molecule/app-framework-conformance`) proves the parity.
7
+ * same behaviour. Molecule's conformance tests render each component in React and
8
+ * Angular and compare the two.
9
9
  *
10
10
  * React-named exports include `Button`, `Card` (+ `CardHeader`, `CardTitle`,
11
11
  * `CardDescription`, `CardContent`, `CardFooter`), `Input`, `Select`,
@@ -57,9 +57,9 @@
57
57
  * - Components are standalone — add them to the `imports` array of the consuming component or
58
58
  * route; there is no NgModule.
59
59
  * - A component's selector names the native element React renders at its root (an attribute
60
- * selector such as `button[mol-button]`), so the host IS the root element. Components whose
61
- * React root is a fragment or portal use an element selector whose host is
62
- * `display: contents`.
60
+ * selector such as `button[mol-button]`), so the host IS the root element. A component whose
61
+ * React root is a fragment or a portal renders its template in the host's place and leaves the
62
+ * page itself, so no wrapper element stands among React's nodes.
63
63
  * - Hooks (`useToast`, `usePanelClose`, `useIsDesktop`, `useUserMenuPopoverClose`) are called in
64
64
  * an injection context (a component field initializer or constructor).
65
65
  * - Every component whose React export forwards a ref implements `HasElement`: take it with a
@@ -1,42 +1,89 @@
1
1
  /**
2
- * DOM-scoped provider lookup — Angular's stand-in for React context.
2
+ * Context through the rendered tree — Angular's stand-in for React context.
3
3
  *
4
- * React context flows through the rendered tree, including projected
5
- * children. Angular DI does not: `<ng-content>` nodes keep their declaration
6
- * site's injector, so a provider declared on a wrapper component is invisible
7
- * to components projected inside it. Contexts here are therefore registered
8
- * on the provider's host ELEMENT and looked up by walking the DOM ancestors —
9
- * the same "nearest enclosing provider in the rendered tree" semantics React
10
- * has.
4
+ * React context flows through the rendered tree. Angular DI follows the
5
+ * template that declared a node instead, so content a component projects
6
+ * through another component's template (`<mol-user-menu>` projecting the
7
+ * consumer's panel into its own `<mol-panel-close-provider>`) cannot inject
8
+ * what that inner component provides. A context here is registered on the
9
+ * provider's host ELEMENT and found by walking the consumer's ancestors in the
10
+ * rendered tree (`renderedParent` from `@molecule/app-angular`): the DOM
11
+ * parent, except that a host which left the page, a portal and a slot rendered
12
+ * elsewhere keep the parent their component gave them. So a provider registers
13
+ * on its own host and a consumer looks up from its own host, whether or not
14
+ * either host is in the page.
15
+ *
16
+ * Each context has its own key ({@link createDomContext}): a consumer finds the
17
+ * nearest provider of ITS context, whatever other providers stand in between.
11
18
  *
12
19
  * @module
13
20
  */
21
+ /** One context: what React's `createContext` returns, in Angular's form. */
22
+ export interface DomContext<T> {
23
+ /**
24
+ * Registers the value on a provider's host element.
25
+ *
26
+ * @param host - The provider component's host element.
27
+ * @param value - The context value.
28
+ */
29
+ provide(host: Element, value: T): void;
30
+ /**
31
+ * Removes the registration (on provider destroy).
32
+ *
33
+ * @param host - The provider component's host element.
34
+ */
35
+ remove(host: Element): void;
36
+ /**
37
+ * Finds the nearest enclosing value for a consumer's element. The element's
38
+ * own registration is ignored: a provider's children see the provider, the
39
+ * provider does not see itself.
40
+ *
41
+ * @param start - The consumer's host element.
42
+ * @returns The nearest registered value, or `undefined` when there is none.
43
+ */
44
+ find(start: Element | null): T | undefined;
45
+ }
14
46
  /**
15
- * Registers a context value on a provider's host element.
47
+ * Creates a context (React's `createContext`).
48
+ *
49
+ * @param name - The context's name, for debugging.
50
+ * @returns The context.
51
+ */
52
+ export declare function createDomContext<T>(name: string): DomContext<T>;
53
+ /**
54
+ * Registers a value on a provider's host element, in the one context every
55
+ * caller of these three functions shares: a consumer then finds the nearest
56
+ * registration of ANY of them.
16
57
  *
17
58
  * @param host - The provider component's host element.
18
59
  * @param value - The context value.
60
+ * @deprecated Use a context of your own: {@link createDomContext}.
19
61
  */
20
62
  export declare function provideDomContext(host: Element, value: unknown): void;
21
63
  /**
22
64
  * Removes a registration (on provider destroy).
23
65
  *
24
66
  * @param host - The provider component's host element.
67
+ * @deprecated Use a context of your own: {@link createDomContext}.
25
68
  */
26
69
  export declare function removeDomContext(host: Element): void;
27
70
  /**
28
- * Finds the nearest enclosing context value for a consumer's element.
71
+ * Finds the nearest enclosing value for a consumer's element.
29
72
  *
30
- * @param start - The consumer's element (its own registrations are ignored —
31
- * a provider's children see the provider, the provider does not see itself).
73
+ * @param start - The consumer's element (its own registration is ignored).
32
74
  * @returns The nearest registered value, or `undefined` when there is none.
75
+ * @deprecated Use a context of your own: {@link createDomContext}.
33
76
  */
34
77
  export declare function findDomContext<T>(start: Element | null): T | undefined;
35
78
  /**
36
- * Finds the nearest enclosing context INCLUDING the element itself.
79
+ * Finds the value registered on the element itself, or else the nearest
80
+ * enclosing one.
37
81
  *
38
- * @param start - The element to start from.
39
- * @returns The nearest registered value, or `undefined` when there is none.
82
+ * @param start - The consumer's element.
83
+ * @returns The registered value, or `undefined` when there is none.
84
+ * @deprecated Use a context of your own: {@link createDomContext}. A provider
85
+ * registers on its own host and a consumer looks up from its own host, so no
86
+ * lookup needs to include itself.
40
87
  */
41
88
  export declare function findDomContextIncludingSelf<T>(start: Element | null): T | undefined;
42
89
  //# sourceMappingURL=dom-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom-context.d.ts","sourceRoot":"","sources":["../../src/utilities/dom-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GA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G,IAAI,GAAG,CAAC,GAAG,SAAS,CAEtE;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,CAAC,GAAG,SAAS,CAInF"}
@@ -1,66 +1,111 @@
1
1
  /**
2
- * DOM-scoped provider lookup — Angular's stand-in for React context.
2
+ * Context through the rendered tree — Angular's stand-in for React context.
3
3
  *
4
- * React context flows through the rendered tree, including projected
5
- * children. Angular DI does not: `<ng-content>` nodes keep their declaration
6
- * site's injector, so a provider declared on a wrapper component is invisible
7
- * to components projected inside it. Contexts here are therefore registered
8
- * on the provider's host ELEMENT and looked up by walking the DOM ancestors —
9
- * the same "nearest enclosing provider in the rendered tree" semantics React
10
- * has.
4
+ * React context flows through the rendered tree. Angular DI follows the
5
+ * template that declared a node instead, so content a component projects
6
+ * through another component's template (`<mol-user-menu>` projecting the
7
+ * consumer's panel into its own `<mol-panel-close-provider>`) cannot inject
8
+ * what that inner component provides. A context here is registered on the
9
+ * provider's host ELEMENT and found by walking the consumer's ancestors in the
10
+ * rendered tree (`renderedParent` from `@molecule/app-angular`): the DOM
11
+ * parent, except that a host which left the page, a portal and a slot rendered
12
+ * elsewhere keep the parent their component gave them. So a provider registers
13
+ * on its own host and a consumer looks up from its own host, whether or not
14
+ * either host is in the page.
15
+ *
16
+ * Each context has its own key ({@link createDomContext}): a consumer finds the
17
+ * nearest provider of ITS context, whatever other providers stand in between.
11
18
  *
12
19
  * @module
13
20
  */
14
- /** Registrations keyed by host element. */
21
+ import { renderedParent } from '@molecule/app-angular';
22
+ /** Registrations keyed by host element, then by context. */
15
23
  const registrations = new WeakMap();
16
24
  /**
17
- * Registers a context value on a provider's host element.
25
+ * Creates a context (React's `createContext`).
26
+ *
27
+ * @param name - The context's name, for debugging.
28
+ * @returns The context.
29
+ */
30
+ export function createDomContext(name) {
31
+ return contextWithKey({ name });
32
+ }
33
+ /**
34
+ * The context registered and found under `key`.
35
+ *
36
+ * @param key - The context's key.
37
+ * @returns The context.
38
+ */
39
+ function contextWithKey(key) {
40
+ return {
41
+ provide(host, value) {
42
+ let values = registrations.get(host);
43
+ if (values === undefined)
44
+ registrations.set(host, (values = new Map()));
45
+ values.set(key, value);
46
+ },
47
+ remove(host) {
48
+ registrations.get(host)?.delete(key);
49
+ },
50
+ find(start) {
51
+ for (let el = renderedParent(start); el !== null; el = renderedParent(el)) {
52
+ const values = registrations.get(el);
53
+ if (values?.has(key))
54
+ return values.get(key);
55
+ }
56
+ return undefined;
57
+ },
58
+ };
59
+ }
60
+ /** The key of the one context the deprecated functions below share. */
61
+ const sharedKey = { name: 'shared' };
62
+ /** That context. */
63
+ const shared = contextWithKey(sharedKey);
64
+ /**
65
+ * Registers a value on a provider's host element, in the one context every
66
+ * caller of these three functions shares: a consumer then finds the nearest
67
+ * registration of ANY of them.
18
68
  *
19
69
  * @param host - The provider component's host element.
20
70
  * @param value - The context value.
71
+ * @deprecated Use a context of your own: {@link createDomContext}.
21
72
  */
22
73
  export function provideDomContext(host, value) {
23
- registrations.set(host, value);
74
+ shared.provide(host, value);
24
75
  }
25
76
  /**
26
77
  * Removes a registration (on provider destroy).
27
78
  *
28
79
  * @param host - The provider component's host element.
80
+ * @deprecated Use a context of your own: {@link createDomContext}.
29
81
  */
30
82
  export function removeDomContext(host) {
31
- registrations.delete(host);
83
+ shared.remove(host);
32
84
  }
33
85
  /**
34
- * Finds the nearest enclosing context value for a consumer's element.
86
+ * Finds the nearest enclosing value for a consumer's element.
35
87
  *
36
- * @param start - The consumer's element (its own registrations are ignored —
37
- * a provider's children see the provider, the provider does not see itself).
88
+ * @param start - The consumer's element (its own registration is ignored).
38
89
  * @returns The nearest registered value, or `undefined` when there is none.
90
+ * @deprecated Use a context of your own: {@link createDomContext}.
39
91
  */
40
92
  export function findDomContext(start) {
41
- let el = start ? start.parentElement : null;
42
- while (el) {
43
- const value = registrations.get(el);
44
- if (value !== undefined)
45
- return value;
46
- el = el.parentElement;
47
- }
48
- return undefined;
93
+ return shared.find(start);
49
94
  }
50
95
  /**
51
- * Finds the nearest enclosing context INCLUDING the element itself.
96
+ * Finds the value registered on the element itself, or else the nearest
97
+ * enclosing one.
52
98
  *
53
- * @param start - The element to start from.
54
- * @returns The nearest registered value, or `undefined` when there is none.
99
+ * @param start - The consumer's element.
100
+ * @returns The registered value, or `undefined` when there is none.
101
+ * @deprecated Use a context of your own: {@link createDomContext}. A provider
102
+ * registers on its own host and a consumer looks up from its own host, so no
103
+ * lookup needs to include itself.
55
104
  */
56
105
  export function findDomContextIncludingSelf(start) {
57
- let el = start;
58
- while (el) {
59
- const value = registrations.get(el);
60
- if (value !== undefined)
61
- return value;
62
- el = el.parentElement;
63
- }
64
- return undefined;
106
+ const own = start === null ? undefined : registrations.get(start);
107
+ if (own?.has(sharedKey))
108
+ return own.get(sharedKey);
109
+ return findDomContext(start);
65
110
  }
66
111
  //# sourceMappingURL=dom-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom-context.js","sourceRoot":"","sources":["../../src/utilities/dom-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,2CAA2C;AAC3C,MAAM,aAAa,GAAG,IAAI,OAAO,EAAoB,CAAA;AAErD;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAa,EAAE,KAAc;IAC7D,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AAChC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAa;IAC5C,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAI,KAAqB;IACrD,IAAI,EAAE,GAAmB,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAA;IAC3D,OAAO,EAAE,EAAE,CAAC;QACV,MAAM,KAAK,GAAG,aAAa,CAAC,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AAC,SAAS,CAAC;QAAE,OAAO,GAAG,CAAC,GAAG,CAAC,SAAS,CAAM,CAAA;IACvD,OAAO,cAAc,CAAI,KAAK,CAAC,CAAA;AACjC,CAAC"}
@@ -31,4 +31,6 @@ export interface FormFieldContext {
31
31
  * @returns The context, or null outside a `FormField`.
32
32
  */
33
33
  export declare function fieldContext(host: Element | null): FormFieldContext | null;
34
+ /** The context `FormField` registers on its host. */
35
+ export declare const FormFieldDomContext: import("./dom-context.js").DomContext<FormFieldContext>;
34
36
  //# sourceMappingURL=form-field-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-context.d.ts","sourceRoot":"","sources":["../../src/utilities/form-field-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,kEAAkE;AAClE,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,gBAAgB,GAAG,IAAI,CAE1E"}
1
+ {"version":3,"file":"form-field-context.d.ts","sourceRoot":"","sources":["../../src/utilities/form-field-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,kEAAkE;AAClE,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,gBAAgB,GAAG,IAAI,CAE1E;AAED,qDAAqD;AACrD,eAAO,MAAM,mBAAmB,yDAAkD,CAAA"}
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module
13
13
  */
14
- import { findDomContext } from './dom-context.js';
14
+ import { createDomContext } from './dom-context.js';
15
15
  /**
16
16
  * Finds the nearest enclosing `FormField` context for a field's host element.
17
17
  *
@@ -23,6 +23,8 @@ import { findDomContext } from './dom-context.js';
23
23
  * @returns The context, or null outside a `FormField`.
24
24
  */
25
25
  export function fieldContext(host) {
26
- return findDomContext(host) ?? null;
26
+ return FormFieldDomContext.find(host) ?? null;
27
27
  }
28
+ /** The context `FormField` registers on its host. */
29
+ export const FormFieldDomContext = createDomContext('FormField');
28
30
  //# sourceMappingURL=form-field-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-context.js","sourceRoot":"","sources":["../../src/utilities/form-field-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAYjD;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAAC,IAAoB;IAC/C,OAAO,cAAc,CAAmB,IAAI,CAAC,IAAI,IAAI,CAAA;AACvD,CAAC"}
1
+ {"version":3,"file":"form-field-context.js","sourceRoot":"","sources":["../../src/utilities/form-field-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAYnD;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAAC,IAAoB;IAC/C,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAA;AAC/C,CAAC;AAED,qDAAqD;AACrD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAmB,WAAW,CAAC,CAAA"}