@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":"auth-guard.component.js","sourceRoot":"","sources":["../../src/components/auth-guard.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,SAAS,EACT,MAAM,EAEN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtF,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4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AAO,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC;IAED;;;OAGG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAChB,IAAI,CAAC,UAAU,IAAI,gBAAgB,EACnC,EAAE,EACF;YACE,YAAY,EAAE,IAAI,CAAC,cAAc,IAAI,YAAY;SAClD,CACF,CAAA;IACH,CAAC;mGA1JU,SAAS;6DAAT,SAAS;;;;;;;;;;YAXT,iCAAsD;YAAA,YAAmB;YAAA,iBAAM;YACxF,qCACG;YAAA,2BACA;YAAA,YAA+B;YAAA,iBACjC;YACD,qCAAoB;YAAA,kBAAyD;YAAA,iBAAO;YACpF,sCAAoB;YAAA,sBAAyB;YAAA,iBAAO;YACpD,sFAAgB;;YAP+C,eAAmB;YAAnB,uCAAmB;YAEjE,eAAiD;YAAjD,uEAAiD;YAC/D,cAA+B;YAA/B,uDAA+B;YAIlC,eAEC;YAFD,wCAEC;4BAXO,iBAAiB,EAAE,UAAU;;iFAa5B,SAAS;cAjBrB,SAAS;eAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,OAAO,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC;gBACxC,MAAM,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,CAAC;gBAC3F,QAAQ,EAAE;;;;;;;;;MASN;aACL;;kBAyBE,SAAS;mBAAC,gBAAgB;;kBAE1B,SAAS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,cAAc;;kFA9Bd,SAAS"}
@@ -3,11 +3,12 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { type AfterViewChecked, ElementRef } from '@angular/core';
6
+ import { ElementRef } from '@angular/core';
7
7
  import type { UIClassMap } from '@molecule/app-ui';
8
8
  import { type HasElement } from '../utilities/element.js';
9
9
  import { type ResolvedIcon } from '../utilities/render-icon.js';
10
10
  import * as i0 from "@angular/core";
11
+ import * as i1 from "@molecule/app-angular";
11
12
  /**
12
13
  * Avatar component.
13
14
  *
@@ -15,10 +16,10 @@ import * as i0 from "@angular/core";
15
16
  * fallback: projected `[slot=fallback]` content, the name's initials, or a
16
17
  * user glyph. The image/fallback swap is a signal-driven `@if` (an error
17
18
  * re-renders); the three fallback variants are always-mounted capture points
18
- * detached from the DOM per React's ternary, since projected-content presence
19
- * is only knowable at view init ({@link SlotWrapper}).
19
+ * taken out of the DOM per React's ternary, since projected-content presence
20
+ * is read in the placement function (`setElementPresent`).
20
21
  */
21
- export declare class Avatar implements AfterViewChecked, HasElement<HTMLDivElement> {
22
+ export declare class Avatar implements HasElement<HTMLDivElement> {
22
23
  /** Image source. */
23
24
  src?: string;
24
25
  /** Image alt text. */
@@ -53,10 +54,11 @@ export declare class Avatar implements AfterViewChecked, HasElement<HTMLDivEleme
53
54
  * does not).
54
55
  */
55
56
  private readonly i18n;
56
- private readonly sync;
57
57
  private readonly host;
58
58
  /** The element a caller's ref receives: the host `<div>`. */
59
59
  readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
60
+ /** Applies the fallback ternary; projected content wins over initials and glyph. */
61
+ constructor();
60
62
  /**
61
63
  * The current class map.
62
64
  * @returns The UIClassMap.
@@ -99,12 +101,13 @@ export declare class Avatar implements AfterViewChecked, HasElement<HTMLDivEleme
99
101
  hostStyle(): string | null;
100
102
  /**
101
103
  * Applies React's fallback ternary (`fallback ? fallback : name ? initials
102
- * : glyph`) after view queries have resolved for this pass. Projected
103
- * fallback nodes are exactly the container's children that are not the two
104
- * always-mounted template children.
104
+ * : glyph`). The capture holds the initials span and the user glyph first,
105
+ * then the projected fallback.
106
+ *
107
+ * @param hasContent - Reads whether a slot has content.
105
108
  */
106
- ngAfterViewChecked(): void;
109
+ private reconcile;
107
110
  static ɵfac: i0.ɵɵFactoryDeclaration<Avatar, never>;
108
- static ɵcmp: i0.ɵɵComponentDeclaration<Avatar, "div[mol-avatar]", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["[slot=fallback]"], true, never>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<Avatar, "div[mol-avatar]", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["[slot=fallback]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
109
112
  }
110
113
  //# sourceMappingURL=avatar.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.component.d.ts","sourceRoot":"","sources":["../../src/components/avatar.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EAKX,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAc,KAAK,YAAY,EAAe,MAAM,6BAA6B,CAAA;;AAIxF;;;;;;;;;GASG;AACH,qBAqCa,MAAO,YAAW,gBAAgB,EAAE,UAAU,CAAC,cAAc,CAAC;IACzE,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CA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CAAC,CAAA;IAChE,wEAAwE;IAC/C,UAAU,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAA;IACjE,qEAAqE;IACvB,SAAS,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;IAEnF;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiD;IACtE,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,wDAAyB;IAEzC,oFAAoF;;IAKpF;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,YAAY,IAAI,OAAO;IAIvB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAMjB;;;OAGG;IACH,QAAQ,IAAI,MAAM;IAIlB;;;OAGG;IACH,QAAQ,IAAI,YAAY;IAIxB;;;OAGG;IACH,OAAO,IAAI,MAAM;IASjB;;;OAGG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAS3B;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAM1B;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;yCArIN,MAAM;2CAAN,MAAM;CA4IlB"}
@@ -3,15 +3,15 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { Component, ElementRef, inject, Renderer2, signal, ViewChild, } from '@angular/core';
7
- import { useTranslation } from '@molecule/app-angular';
6
+ import { Component, ElementRef, inject, signal, ViewChild } from '@angular/core';
7
+ import { MolPlacement, setElementPresent, usePlacement, useTranslation, } from '@molecule/app-angular';
8
8
  import { getClassMap } from '@molecule/app-ui';
9
9
  import { hostElement } from '../utilities/element.js';
10
10
  import { getInitials } from '../utilities/initials.js';
11
11
  import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
12
12
  import { styleText } from '../utilities/style.js';
13
- import { SlotWrapper } from './button.component.js';
14
13
  import * as i0 from "@angular/core";
14
+ import * as i1 from "@molecule/app-angular";
15
15
  const _c0 = ["fallbackEl"];
16
16
  const _c1 = ["initialsEl"];
17
17
  const _c2 = ["userGlyph"];
@@ -29,18 +29,17 @@ function Avatar_Conditional_0_Template(rf, ctx) { if (rf & 1) {
29
29
  i0.ɵɵattribute("alt", ctx_r1.altText());
30
30
  } }
31
31
  function Avatar_Conditional_1_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵelementStart(0, "div", null, 0);
33
- i0.ɵɵprojection(2);
34
- i0.ɵɵelementStart(3, "span", null, 1);
35
- i0.ɵɵtext(5);
32
+ i0.ɵɵelementStart(0, "div", null, 0)(2, "span", null, 1);
33
+ i0.ɵɵtext(4);
36
34
  i0.ɵɵelementEnd();
37
35
  i0.ɵɵnamespaceSVG();
38
- i0.ɵɵelement(6, "svg", 6, 2);
36
+ i0.ɵɵelement(5, "svg", 6, 2);
37
+ i0.ɵɵprojection(7);
39
38
  i0.ɵɵelementEnd();
40
39
  } if (rf & 2) {
41
40
  const ctx_r1 = i0.ɵɵnextContext();
42
41
  i0.ɵɵclassMap(ctx_r1.cm().avatarFallback);
43
- i0.ɵɵadvance(3);
42
+ i0.ɵɵadvance(2);
44
43
  i0.ɵɵclassMap(ctx_r1.cm().avatarInitials);
45
44
  i0.ɵɵadvance(2);
46
45
  i0.ɵɵtextInterpolate(ctx_r1.initials());
@@ -54,8 +53,8 @@ function Avatar_Conditional_1_Template(rf, ctx) { if (rf & 1) {
54
53
  * fallback: projected `[slot=fallback]` content, the name's initials, or a
55
54
  * user glyph. The image/fallback swap is a signal-driven `@if` (an error
56
55
  * re-renders); the three fallback variants are always-mounted capture points
57
- * detached from the DOM per React's ternary, since projected-content presence
58
- * is only knowable at view init ({@link SlotWrapper}).
56
+ * taken out of the DOM per React's ternary, since projected-content presence
57
+ * is read in the placement function (`setElementPresent`).
59
58
  */
60
59
  export class Avatar {
61
60
  /** Image source. */
@@ -93,10 +92,13 @@ export class Avatar {
93
92
  * does not).
94
93
  */
95
94
  i18n = useTranslation();
96
- sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
97
95
  host = inject(ElementRef);
98
96
  /** The element a caller's ref receives: the host `<div>`. */
99
97
  element = hostElement(this.host);
98
+ /** Applies the fallback ternary; projected content wins over initials and glyph. */
99
+ constructor() {
100
+ usePlacement((hasContent) => this.reconcile(hasContent));
101
+ }
100
102
  /**
101
103
  * The current class map.
102
104
  * @returns The UIClassMap.
@@ -160,19 +162,18 @@ export class Avatar {
160
162
  }
161
163
  /**
162
164
  * Applies React's fallback ternary (`fallback ? fallback : name ? initials
163
- * : glyph`) after view queries have resolved for this pass. Projected
164
- * fallback nodes are exactly the container's children that are not the two
165
- * always-mounted template children.
165
+ * : glyph`). The capture holds the initials span and the user glyph first,
166
+ * then the projected fallback.
167
+ *
168
+ * @param hasContent - Reads whether a slot has content.
166
169
  */
167
- ngAfterViewChecked() {
170
+ reconcile(hasContent) {
168
171
  const fallbackHost = this.fallbackEl?.nativeElement;
169
172
  if (!fallbackHost)
170
173
  return;
171
- const projected = Array.from(fallbackHost.childNodes).some((node) => node !== this.initialsEl?.nativeElement &&
172
- node !== this.userGlyph?.nativeElement &&
173
- (node.nodeType === 1 || (node.nodeType === 3 && (node.textContent ?? '').trim())));
174
- this.sync.sync(this.initialsEl?.nativeElement, !projected && !!this.name, fallbackHost);
175
- this.sync.sync(this.userGlyph?.nativeElement, !projected && !this.name, fallbackHost);
174
+ const projected = hasContent(fallbackHost, 2);
175
+ setElementPresent(this.initialsEl?.nativeElement, !projected && !!this.name);
176
+ setElementPresent(this.userGlyph?.nativeElement, !projected && !this.name);
176
177
  }
177
178
  static ɵfac = function Avatar_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Avatar)(); };
178
179
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Avatar, selectors: [["div", "mol-avatar", ""]], viewQuery: function Avatar_Query(rf, ctx) { if (rf & 1) {
@@ -186,7 +187,7 @@ export class Avatar {
186
187
  i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId());
187
188
  i0.ɵɵstyleMap(ctx.hostStyle());
188
189
  i0.ɵɵclassMap(ctx.classes());
189
- } }, inputs: { src: "src", alt: "alt", name: "name", size: "size", rounded: "rounded", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, ngContentSelectors: _c4, decls: 2, vars: 1, consts: [["fallbackEl", ""], ["initialsEl", ""], ["userGlyph", ""], [3, "src", "class"], [3, "class"], [3, "error", "src"], ["mol-icon", "", 3, "data"]], template: function Avatar_Template(rf, ctx) { if (rf & 1) {
190
+ } }, inputs: { src: "src", alt: "alt", name: "name", size: "size", rounded: "rounded", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c4, decls: 2, vars: 1, consts: [["fallbackEl", ""], ["initialsEl", ""], ["userGlyph", ""], [3, "src", "class"], [3, "class"], [3, "error", "src"], ["mol-icon", "", 3, "data"]], template: function Avatar_Template(rf, ctx) { if (rf & 1) {
190
191
  i0.ɵɵprojectionDef(_c3);
191
192
  i0.ɵɵconditionalCreate(0, Avatar_Conditional_0_Template, 1, 4, "img", 3)(1, Avatar_Conditional_1_Template, 8, 6, "div", 4);
192
193
  } if (rf & 2) {
@@ -198,6 +199,7 @@ export class Avatar {
198
199
  args: [{
199
200
  selector: 'div[mol-avatar]',
200
201
  standalone: true,
202
+ hostDirectives: [MolPlacement],
201
203
  imports: [MolIconSvg],
202
204
  inputs: [
203
205
  'src',
@@ -226,13 +228,13 @@ export class Avatar {
226
228
  />
227
229
  } @else {
228
230
  <div [class]="cm().avatarFallback" #fallbackEl>
229
- <ng-content select="[slot=fallback]"></ng-content>
230
231
  <span [class]="cm().avatarInitials" #initialsEl>{{ initials() }}</span>
231
232
  <svg mol-icon [data]="userIcon()" #userGlyph />
233
+ <ng-content select="[slot=fallback]"></ng-content>
232
234
  </div>
233
235
  }`,
234
236
  }]
235
- }], null, { fallbackEl: [{
237
+ }], () => [], { fallbackEl: [{
236
238
  type: ViewChild,
237
239
  args: ['fallbackEl']
238
240
  }], initialsEl: [{
@@ -242,5 +244,5 @@ export class Avatar {
242
244
  type: ViewChild,
243
245
  args: ['userGlyph', { read: ElementRef }]
244
246
  }] }); })();
245
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Avatar, { className: "Avatar", filePath: "components/avatar.component.ts", lineNumber: 74 }); })();
247
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Avatar, { className: "Avatar", filePath: "components/avatar.component.ts", lineNumber: 72 }); })();
246
248
  //# sourceMappingURL=avatar.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.component.js","sourceRoot":"","sources":["../../src/components/avatar.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,UAAU,EAAqB,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;;IAmC7C,8BAKE;IADA,uKAAS,sBAAe,IAAI,CAAC,KAAC;IAJhC,iBAKE;;;IAFA,sCAA0B;IAF1B,gCAAW;;;;IAMb,oCAA+C;IAC7C,kBAAkD;IAClD,qCAAgD;IAAA,YAAgB;IAAA,iBAAO;;IACvE,4BAA+C;IACjD,iBAAM;;;IAJD,yCA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M,SAAS,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;QAC7C,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5E,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC5E,CAAC;gGA3IU,MAAM;6DAAN,MAAM;mDA8Be,UAAU;;;;;;;qEA9B/B,WAAO;YAAP,cAAA,eAAW,CAAL;YAAN,cAAA,aAAS,CAAH;;;YARb,AAPO,wEAAuB,kDAOvB;;YAPA,6CAaR;4BAhCO,UAAU;;iFAkCT,MAAM;cAtClB,SAAS;eAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,OAAO,EAAE,CAAC,UAAU,CAAC;gBACrB,MAAM,EAAE;oBACN,KAAK;oBACL,KAAK;oBACL,MAAM;oBACN,MAAM;oBACN,SAAS;oBACT,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,cAAc;oBACd,wBAAwB;iBACzB;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,SAAS;iBAChC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;MAaN;aACL;;kBA2BE,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,WAAW,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kFA9BjC,MAAM"}
@@ -3,46 +3,49 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { type AfterViewInit, type DoCheck, ElementRef, Renderer2 } from '@angular/core';
6
+ import { ElementRef, type Renderer2 } from '@angular/core';
7
7
  import type { ButtonVariant, ColorVariant, Size, UIClassMap } from '@molecule/app-ui';
8
8
  import { type HasElement } from '../utilities/element.js';
9
9
  import * as i0 from "@angular/core";
10
+ import * as i1 from "@molecule/app-angular";
10
11
  /**
11
- * Whether an ng-content wrapper captured any element or text node.
12
+ * Whether an ng-content wrapper captured any element or text node, read from a
13
+ * lifecycle hook, which can lag the content: a hook runs before the consumer's
14
+ * `@if` adds its node, and no hook runs at all when the content comes through an
15
+ * `OnPush` component in between.
12
16
  *
13
17
  * @param el - The wrapper element.
14
18
  * @returns True when at least one projected node exists.
19
+ * @deprecated Read the slot with the reader `usePlacement` from `@molecule/app-angular` passes to the placement function.
15
20
  */
16
21
  export declare function hasNodes(el: Element | undefined | null): boolean;
17
22
  /**
18
23
  * Attaches or detaches an always-mounted projection wrapper element from its
19
- * parent, remembering the re-insertion position with a comment anchor the DOM
20
- * normalizer strips.
24
+ * parent. React renders `{cond && <span>{slot}</span>}` — nothing when the
25
+ * condition is false. Angular needs the `<ng-content>` capture point to stay
26
+ * mounted, so the wrapper span always exists in the template and this helper
27
+ * removes it from the DOM whenever React would not render it.
21
28
  *
22
- * React renders `{cond && <span>{slot}</span>}` — nothing when the condition
23
- * is false. Angular needs the `<ng-content>` capture point to stay mounted,
24
- * so the wrapper span always exists in the template and this helper removes
25
- * it from the DOM whenever React would not render it.
29
+ * It is a thin delegate to `setElementPresent`, kept for callers' signatures.
30
+ *
31
+ * @deprecated Use setElementPresent from `@molecule/app-angular`.
26
32
  */
27
33
  export declare class SlotWrapper {
28
- private readonly host;
29
- private readonly renderer;
30
- private readonly anchors;
31
34
  /**
32
35
  * Creates the wrapper helper.
33
36
  *
34
- * @param host - The component host element (default detach parent).
35
- * @param renderer - The DOM renderer.
37
+ * @param _host - Kept for callers' constructor signature.
38
+ * @param _renderer - Kept for callers' constructor signature.
36
39
  */
37
- constructor(host: ElementRef<HTMLElement>, renderer: Renderer2);
40
+ constructor(_host: ElementRef<HTMLElement>, _renderer: Renderer2);
38
41
  /**
39
- * Attaches or detaches the element (default parent: the component host).
42
+ * Attaches or detaches the element.
40
43
  *
41
44
  * @param el - The wrapper element.
42
45
  * @param shouldAttach - Whether it should be in the DOM.
43
- * @param parent - Where the element lives when attached (default: host).
46
+ * @param _parent - Ignored; the element's own place holds it.
44
47
  */
45
- sync(el: Element | undefined | null, shouldAttach: boolean, parent?: Node): void;
48
+ sync(el: Element | undefined | null, shouldAttach: boolean, _parent?: Node): void;
46
49
  }
47
50
  /**
48
51
  * Button component.
@@ -56,7 +59,7 @@ export declare class SlotWrapper {
56
59
  * wrapper from the DOM (the projected nodes must have an always-mounted
57
60
  * capture point, so the wrapper lives in the template unconditionally).
58
61
  */
59
- export declare class Button implements AfterViewInit, DoCheck, HasElement<HTMLButtonElement> {
62
+ export declare class Button implements HasElement<HTMLButtonElement> {
60
63
  /** Button variant. */
61
64
  variant: ButtonVariant;
62
65
  /** Button color. */
@@ -90,7 +93,6 @@ export declare class Button implements AfterViewInit, DoCheck, HasElement<HTMLBu
90
93
  leftSlot?: ElementRef<HTMLSpanElement>;
91
94
  /** The right icon wrapper. */
92
95
  rightSlot?: ElementRef<HTMLSpanElement>;
93
- private readonly sync;
94
96
  private readonly host;
95
97
  /** The element a caller's ref receives: the host `<button>`. */
96
98
  readonly element: import("@angular/core").Signal<HTMLButtonElement | null>;
@@ -118,21 +120,15 @@ export declare class Button implements AfterViewInit, DoCheck, HasElement<HTMLBu
118
120
  hostStyle(): string | null;
119
121
  private hasLeft;
120
122
  private hasRight;
121
- /**
122
- * Detects slot content and detaches the wrappers React would not render.
123
- * View queries resolve only by view init (the first pass), so presence is
124
- * read here rather than at content init.
125
- */
126
- ngAfterViewInit(): void;
127
- /**
128
- * Re-reconciles the wrappers when `loading` changes.
129
- */
130
- ngDoCheck(): void;
123
+ /** Detaches the icon wrappers React would not render. */
124
+ constructor();
131
125
  /**
132
126
  * Applies React's `{!loading && !!icon}` wrapper conditions.
127
+ *
128
+ * @param hasContent - Reads whether a slot has content.
133
129
  */
134
130
  private syncWrappers;
135
131
  static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[mol-button]", never, { "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["[slot=leftIcon]", "*", "[slot=rightIcon]"], true, never>;
132
+ static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[mol-button]", never, { "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["[slot=leftIcon]", "*", "[slot=rightIcon]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
137
133
  }
138
134
  //# sourceMappingURL=button.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EAEV,SAAS,EAE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;IACzE,gEAAgE;IAChE,QAAQ,CAAC,OAAO,2DAAyB;IAEzC;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;;;OAKG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAS3B;;;OAGG;IACH,OAAO,IAAI,MAAM;IAYjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,QAAQ,CAAQ;IAExB,yDAAyD;;IAKzD;;;;OAIG;IACH,OAAO,CAAC,YAAY;yCApGT,MAAM;2CAAN,MAAM;CA4GlB"}
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { Component, ElementRef, inject, Renderer2, ViewChild, } from '@angular/core';
6
+ import { Component, ElementRef, inject, ViewChild } from '@angular/core';
7
+ import {
8
+ // eslint-disable-next-line no-restricted-imports -- the deprecated hasNodes below delegates to it; both go in the next major
9
+ hasContent, MolPlacement, setElementPresent, usePlacement, } from '@molecule/app-angular';
7
10
  import { getClassMap } from '@molecule/app-ui';
8
11
  import { hostElement } from '../utilities/element.js';
9
12
  import { styleText } from '../utilities/style.js';
10
13
  import { Spinner } from './spinner.component.js';
11
14
  import * as i0 from "@angular/core";
15
+ import * as i1 from "@molecule/app-angular";
12
16
  const _c0 = ["leftSlot"];
13
17
  const _c1 = ["rightSlot"];
14
18
  const _c2 = [[["", "slot", "lefticon"]], [["", "slot", "righticon"]], "*"];
@@ -32,76 +36,46 @@ function Button_Conditional_5_Template(rf, ctx) { if (rf & 1) {
32
36
  i0.ɵɵprojection(0, 2);
33
37
  } }
34
38
  /**
35
- * Whether an ng-content wrapper captured any element or text node.
39
+ * Whether an ng-content wrapper captured any element or text node, read from a
40
+ * lifecycle hook, which can lag the content: a hook runs before the consumer's
41
+ * `@if` adds its node, and no hook runs at all when the content comes through an
42
+ * `OnPush` component in between.
36
43
  *
37
44
  * @param el - The wrapper element.
38
45
  * @returns True when at least one projected node exists.
46
+ * @deprecated Read the slot with the reader `usePlacement` from `@molecule/app-angular` passes to the placement function.
39
47
  */
40
48
  export function hasNodes(el) {
41
- if (!el)
42
- return false;
43
- for (const node of Array.from(el.childNodes)) {
44
- if (node.nodeType === 1)
45
- return true;
46
- if (node.nodeType === 3 && (node.textContent ?? '').trim())
47
- return true;
48
- }
49
- return false;
49
+ return hasContent(el);
50
50
  }
51
51
  /**
52
52
  * Attaches or detaches an always-mounted projection wrapper element from its
53
- * parent, remembering the re-insertion position with a comment anchor the DOM
54
- * normalizer strips.
53
+ * parent. React renders `{cond && <span>{slot}</span>}` — nothing when the
54
+ * condition is false. Angular needs the `<ng-content>` capture point to stay
55
+ * mounted, so the wrapper span always exists in the template and this helper
56
+ * removes it from the DOM whenever React would not render it.
57
+ *
58
+ * It is a thin delegate to `setElementPresent`, kept for callers' signatures.
55
59
  *
56
- * React renders `{cond && <span>{slot}</span>}` — nothing when the condition
57
- * is false. Angular needs the `<ng-content>` capture point to stay mounted,
58
- * so the wrapper span always exists in the template and this helper removes
59
- * it from the DOM whenever React would not render it.
60
+ * @deprecated Use setElementPresent from `@molecule/app-angular`.
60
61
  */
61
62
  export class SlotWrapper {
62
- host;
63
- renderer;
64
- anchors = new Map();
65
63
  /**
66
64
  * Creates the wrapper helper.
67
65
  *
68
- * @param host - The component host element (default detach parent).
69
- * @param renderer - The DOM renderer.
66
+ * @param _host - Kept for callers' constructor signature.
67
+ * @param _renderer - Kept for callers' constructor signature.
70
68
  */
71
- constructor(host, renderer) {
72
- this.host = host;
73
- this.renderer = renderer;
74
- }
69
+ constructor(_host, _renderer) { }
75
70
  /**
76
- * Attaches or detaches the element (default parent: the component host).
71
+ * Attaches or detaches the element.
77
72
  *
78
73
  * @param el - The wrapper element.
79
74
  * @param shouldAttach - Whether it should be in the DOM.
80
- * @param parent - Where the element lives when attached (default: host).
75
+ * @param _parent - Ignored; the element's own place holds it.
81
76
  */
82
- sync(el, shouldAttach, parent) {
83
- if (!el)
84
- return;
85
- const host = parent ?? this.host.nativeElement;
86
- if (shouldAttach && !el.isConnected) {
87
- const anchor = this.anchors.get(el);
88
- if (anchor?.isConnected) {
89
- host.insertBefore(el, anchor);
90
- this.renderer.removeChild(host, anchor);
91
- this.anchors.delete(el);
92
- }
93
- else {
94
- host.appendChild(el);
95
- }
96
- }
97
- else if (!shouldAttach && el.isConnected) {
98
- // Placeholder comment keeps the re-insertion position stable; the
99
- // normalizer strips comment nodes, so it never shows in snapshots.
100
- const placeholder = this.renderer.createComment('slot');
101
- host.insertBefore(placeholder, el);
102
- this.anchors.set(el, placeholder);
103
- this.renderer.removeChild(host, el);
104
- }
77
+ sync(el, shouldAttach, _parent) {
78
+ setElementPresent(el, shouldAttach);
105
79
  }
106
80
  }
107
81
  /**
@@ -150,7 +124,6 @@ export class Button {
150
124
  leftSlot;
151
125
  /** The right icon wrapper. */
152
126
  rightSlot;
153
- sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
154
127
  host = inject(ElementRef);
155
128
  /** The element a caller's ref receives: the host `<button>`. */
156
129
  element = hostElement(this.host);
@@ -194,30 +167,22 @@ export class Button {
194
167
  }
195
168
  hasLeft = false;
196
169
  hasRight = false;
197
- /**
198
- * Detects slot content and detaches the wrappers React would not render.
199
- * View queries resolve only by view init (the first pass), so presence is
200
- * read here rather than at content init.
201
- */
202
- ngAfterViewInit() {
203
- const left = this.leftSlot?.nativeElement;
204
- const right = this.rightSlot?.nativeElement;
205
- this.hasLeft = left ? hasNodes(left) : false;
206
- this.hasRight = right ? hasNodes(right) : false;
207
- this.syncWrappers();
208
- }
209
- /**
210
- * Re-reconciles the wrappers when `loading` changes.
211
- */
212
- ngDoCheck() {
213
- this.syncWrappers();
170
+ /** Detaches the icon wrappers React would not render. */
171
+ constructor() {
172
+ usePlacement((hasContent) => this.syncWrappers(hasContent));
214
173
  }
215
174
  /**
216
175
  * Applies React's `{!loading && !!icon}` wrapper conditions.
176
+ *
177
+ * @param hasContent - Reads whether a slot has content.
217
178
  */
218
- syncWrappers() {
219
- this.sync.sync(this.leftSlot?.nativeElement, this.hasLeft && !this.loading);
220
- this.sync.sync(this.rightSlot?.nativeElement, this.hasRight && !this.loading);
179
+ syncWrappers(hasContent) {
180
+ const left = this.leftSlot?.nativeElement;
181
+ const right = this.rightSlot?.nativeElement;
182
+ this.hasLeft = left ? hasContent(left) : false;
183
+ this.hasRight = right ? hasContent(right) : false;
184
+ setElementPresent(left, this.hasLeft && !this.loading);
185
+ setElementPresent(right, this.hasRight && !this.loading);
221
186
  }
222
187
  static ɵfac = function Button_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Button)(); };
223
188
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Button, selectors: [["button", "mol-button", ""]], viewQuery: function Button_Query(rf, ctx) { if (rf & 1) {
@@ -231,7 +196,7 @@ export class Button {
231
196
  i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId())("type", ctx.type)("aria-busy", ctx.loading ? "true" : "false");
232
197
  i0.ɵɵstyleMap(ctx.hostStyle());
233
198
  i0.ɵɵclassMap(ctx.classes());
234
- } }, inputs: { variant: "variant", color: "color", size: "size", loading: "loading", loadingText: "loadingText", fullWidth: "fullWidth", className: "className", style: "style", testId: "testId", disabled: "disabled", type: "type", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, ngContentSelectors: _c3, decls: 9, vars: 6, consts: [["leftSlot", ""], ["rightSlot", ""], ["mol-spinner", "", 3, "size", "className"]], template: function Button_Template(rf, ctx) { if (rf & 1) {
199
+ } }, inputs: { variant: "variant", color: "color", size: "size", loading: "loading", loadingText: "loadingText", fullWidth: "fullWidth", className: "className", style: "style", testId: "testId", disabled: "disabled", type: "type", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c3, decls: 9, vars: 6, consts: [["leftSlot", ""], ["rightSlot", ""], ["mol-spinner", "", 3, "size", "className"]], template: function Button_Template(rf, ctx) { if (rf & 1) {
235
200
  i0.ɵɵprojectionDef(_c2);
236
201
  i0.ɵɵconditionalCreate(0, Button_Conditional_0_Template, 1, 2, "div", 2);
237
202
  i0.ɵɵelementStart(1, "span", null, 0);
@@ -256,6 +221,7 @@ export class Button {
256
221
  args: [{
257
222
  selector: 'button[mol-button]',
258
223
  standalone: true,
224
+ hostDirectives: [MolPlacement],
259
225
  imports: [Spinner],
260
226
  inputs: [
261
227
  'variant',
@@ -296,12 +262,12 @@ export class Button {
296
262
  ><ng-content select="[slot=rightIcon]"></ng-content
297
263
  ></span>`,
298
264
  }]
299
- }], null, { leftSlot: [{
265
+ }], () => [], { leftSlot: [{
300
266
  type: ViewChild,
301
267
  args: ['leftSlot']
302
268
  }], rightSlot: [{
303
269
  type: ViewChild,
304
270
  args: ['rightSlot']
305
271
  }] }); })();
306
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Button, { className: "Button", filePath: "components/button.component.ts", lineNumber: 148 }); })();
272
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Button, { className: "Button", filePath: "components/button.component.ts", lineNumber: 126 }); })();
307
273
  //# sourceMappingURL=button.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;;;;;;;IAgH1C,yBAAuE;;;IAAxC,AAAd,2BAAa,yCAAkC;;;IA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