@molecule/app-pricing-page-angular 1.1.0 → 1.1.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-21T12:46:59.259Z
6
+ Generated: 2026-11-23T18:23:50.333Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-pricing-page-angular
@@ -52,8 +52,13 @@ import { PlanUpdatedPage, PricingPage } from '@molecule/app-pricing-page-angular
52
52
  standalone: true,
53
53
  imports: [PlanUpdatedPage, PricingPage],
54
54
  template: `
55
- <section mol-pricing-page />
56
- <section mol-plan-updated-page planName="Pro" ctaHref="/dashboard" ctaLabel="Go to dashboard" />
55
+ <section mol-pricing-page></section>
56
+ <section
57
+ mol-plan-updated-page
58
+ planName="Pro"
59
+ ctaHref="/dashboard"
60
+ ctaLabel="Go to dashboard"
61
+ ></section>
57
62
  `,
58
63
  })
59
64
  export class PricingRoute {}
@@ -183,6 +188,7 @@ This is the Angular counterpart of `@molecule/app-pricing-page-react`'s
183
188
  @Component({
184
189
  selector: 'section[mol-plan-updated-page]',
185
190
  standalone: true,
191
+ hostDirectives: [MolPlacement],
186
192
  inputs: ['planName', 'ctaLabel', 'onCta', 'ctaHref', 'className'],
187
193
  host: {
188
194
  '[class]': 'className ?? null',
@@ -194,18 +200,16 @@ This is the Angular counterpart of `@molecule/app-pricing-page-react`'s
194
200
  <h1 [class]="cm.cardTitle">@if (planName) {{{ t('pricingPage.planUpdated.headingNamed', { planName: planName }, { defaultValue: "You're now on the {{planName}} plan" }) }}}@else {{{ t('pricingPage.planUpdated.heading', undefined, { defaultValue: 'Your plan has been updated' }) }}}</h1>
195
201
  <p [class]="cm.cardDescription">{{ t('pricingPage.planUpdated.body', undefined, { defaultValue: 'Thanks for upgrading. Your new plan is active immediately and a receipt has been emailed to you.' }) }}</p>
196
202
  </header>
197
- @if (showCta) {
198
- <footer [class]="cm.cardFooter">
199
- @if (ctaHref) {
200
- <a [href]="ctaHref" [class]="cm.button({ variant: 'solid', size: 'md' })" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></a>
201
- } @else {
202
- <button type="button" [class]="cm.button({ variant: 'solid', size: 'md' })" (click)="fireCta($event)" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></button>
203
- }
204
- </footer>
205
- }
203
+ <footer #footerEl [class]="cm.cardFooter">
204
+ @if (ctaHref) {
205
+ <a [href]="ctaHref" [class]="cm.button({ variant: 'solid', size: 'md' })" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></a>
206
+ } @else {
207
+ <button type="button" [class]="cm.button({ variant: 'solid', size: 'md' })" (click)="fireCta($event)" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></button>
208
+ }
209
+ </footer>
206
210
  `,
207
211
  })
208
- export class PlanUpdatedPage implements AfterViewInit, PlanUpdatedPageProps {
212
+ export class PlanUpdatedPage implements PlanUpdatedPageProps {
209
213
  /**
210
214
  * Optional new plan name to include in the heading (e.g. `'Pro'`).
211
215
  * When omitted, a generic heading is rendered.
@@ -236,23 +240,28 @@ export class PlanUpdatedPage implements AfterViewInit, PlanUpdatedPageProps {
236
240
  /** The bonded ClassMap (styling tokens resolve at render time). */
237
241
  protected readonly cm: UIClassMap = getClassMap()
238
242
 
239
- /** The CTA's label region (projected content lands here; read once). */
243
+ /** The CTA's footer (present while the label renders). */
244
+ @ViewChild('footerEl', { static: true }) private footerEl?: ElementRef<HTMLElement>
245
+ /** The CTA's label region: the anchor or the button (inside the `ctaHref` branch). */
240
246
  @ViewChild('ctaLabelEl') private ctaLabelEl?: ElementRef<HTMLElement>
241
247
 
242
248
  /**
243
- * Whether a `[slot=ctaLabel]` projection landed: true (optimistically)
244
- * until the first view proves otherwise.
249
+ * Whether a `[slot=ctaLabel]` projection landed: placement decides, so a
250
+ * label taken away and given back returns.
245
251
  */
246
- private readonly ctaProjected = signal(true)
252
+ private readonly ctaShown = signal(false)
247
253
 
248
254
  /**
249
- * Reads the CTA label region's first render: when neither a text input nor
250
- * projected content landed, React would not render the CTA at all, so the
251
- * optimistic render is withdrawn.
255
+ * Keeps the CTA footer on the page only while the label renders a text input
256
+ * or projected `[slot=ctaLabel]` content, re-decided whenever either changes.
252
257
  */
253
- ngAfterViewInit(): void {
254
- const el = this.ctaLabelEl?.nativeElement
255
- if (el) this.ctaProjected.set(hasRenderableContent(el))
258
+ constructor() {
259
+ usePlacement((hasContent) => {
260
+ const ctaLabelEl = this.ctaLabelEl?.nativeElement
261
+ const showCta = this.hasCtaLabel || (ctaLabelEl ? hasContent(ctaLabelEl) : false)
262
+ this.ctaShown.set(showCta)
263
+ setElementPresent(this.footerEl?.nativeElement, showCta)
264
+ })
256
265
  }
257
266
 
258
267
  /**
@@ -271,7 +280,7 @@ export class PlanUpdatedPage implements AfterViewInit, PlanUpdatedPageProps {
271
280
  * @returns True when the CTA shows.
272
281
  */
273
282
  get showCta(): boolean {
274
- return this.hasCtaLabel || this.ctaProjected()
283
+ return this.hasCtaLabel || this.ctaShown()
275
284
  }
276
285
 
277
286
  /**
@@ -510,7 +519,7 @@ Peer dependencies:
510
519
  - `@angular/common` ^22.0.0
511
520
  - `@angular/core` ^22.0.0
512
521
  - `@angular/platform-browser` ^22.0.0
513
- - `@molecule/app-angular` ^3.5.0
522
+ - `@molecule/app-angular` ^3.13.0
514
523
  - `@molecule/app-billing-angular` ^1.0.0
515
524
  - `@molecule/app-subscription-plan-card-angular` ^1.0.0
516
525
  - `@molecule/app-ui` ^1.1.0
package/dist/index.d.ts CHANGED
@@ -38,8 +38,8 @@
38
38
  * standalone: true,
39
39
  * imports: [PlanUpdatedPage, PricingPage],
40
40
  * template: `
41
- * <section mol-pricing-page />
42
- * <section mol-plan-updated-page planName="Pro" ctaHref="/dashboard" ctaLabel="Go to dashboard" />
41
+ * <section mol-pricing-page></section>
42
+ * <section mol-plan-updated-page planName="Pro" ctaHref="/dashboard" ctaLabel="Go to dashboard"></section>
43
43
  * `,
44
44
  * })
45
45
  * export class PricingRoute {}
package/dist/index.js CHANGED
@@ -38,8 +38,8 @@
38
38
  * standalone: true,
39
39
  * imports: [PlanUpdatedPage, PricingPage],
40
40
  * template: `
41
- * <section mol-pricing-page />
42
- * <section mol-plan-updated-page planName="Pro" ctaHref="/dashboard" ctaLabel="Go to dashboard" />
41
+ * <section mol-pricing-page></section>
42
+ * <section mol-plan-updated-page planName="Pro" ctaHref="/dashboard" ctaLabel="Go to dashboard"></section>
43
43
  * `,
44
44
  * })
45
45
  * export class PricingRoute {}
@@ -1,12 +1,7 @@
1
- /**
2
- * PlanUpdatedPage component (React parity).
3
- *
4
- * @module
5
- */
6
- import type { AfterViewInit } from '@angular/core';
7
1
  import type { UIClassMap } from '@molecule/app-ui';
8
2
  import type { PlanUpdatedPageProps } from './types.js';
9
3
  import * as i0 from "@angular/core";
4
+ import * as i1 from "@molecule/app-angular";
10
5
  /**
11
6
  * PlanUpdatedPage component.
12
7
  *
@@ -20,11 +15,12 @@ import * as i0 from "@angular/core";
20
15
  * `PlanUpdatedPage`.
21
16
  *
22
17
  * @remarks
23
- * Angular projection needs the `<ng-content>` capture point mounted, so the
24
- * CTA renders optimistically and {@link PlanUpdatedPage.ngAfterViewInit}
25
- * withdraws it when nothing was supplied (React would not render it at all).
18
+ * Angular projection needs the `<ng-content>` capture point mounted, so the CTA
19
+ * footer stays in the template and leaves the page while the label has nothing
20
+ * to render; the placement function re-decides it whenever the slot changes
21
+ * (React would not render it at all).
26
22
  */
27
- export declare class PlanUpdatedPage implements AfterViewInit, PlanUpdatedPageProps {
23
+ export declare class PlanUpdatedPage implements PlanUpdatedPageProps {
28
24
  /**
29
25
  * Optional new plan name to include in the heading (e.g. `'Pro'`).
30
26
  * When omitted, a generic heading is rendered.
@@ -47,19 +43,20 @@ export declare class PlanUpdatedPage implements AfterViewInit, PlanUpdatedPagePr
47
43
  protected t: (key: string, values?: import("@molecule/app-i18n").InterpolationValues, options?: import("@molecule/app-i18n").TranslateOptions) => string;
48
44
  /** The bonded ClassMap (styling tokens resolve at render time). */
49
45
  protected readonly cm: UIClassMap;
50
- /** The CTA's label region (projected content lands here; read once). */
46
+ /** The CTA's footer (present while the label renders). */
47
+ private footerEl?;
48
+ /** The CTA's label region: the anchor or the button (inside the `ctaHref` branch). */
51
49
  private ctaLabelEl?;
52
50
  /**
53
- * Whether a `[slot=ctaLabel]` projection landed: true (optimistically)
54
- * until the first view proves otherwise.
51
+ * Whether a `[slot=ctaLabel]` projection landed: placement decides, so a
52
+ * label taken away and given back returns.
55
53
  */
56
- private readonly ctaProjected;
54
+ private readonly ctaShown;
57
55
  /**
58
- * Reads the CTA label region's first render: when neither a text input nor
59
- * projected content landed, React would not render the CTA at all, so the
60
- * optimistic render is withdrawn.
56
+ * Keeps the CTA footer on the page only while the label renders a text input
57
+ * or projected `[slot=ctaLabel]` content, re-decided whenever either changes.
61
58
  */
62
- ngAfterViewInit(): void;
59
+ constructor();
63
60
  /**
64
61
  * Whether a text CTA label input renders (a projected label is not).
65
62
  *
@@ -81,6 +78,6 @@ export declare class PlanUpdatedPage implements AfterViewInit, PlanUpdatedPagePr
81
78
  */
82
79
  fireCta(event: unknown): void;
83
80
  static ɵfac: i0.ɵɵFactoryDeclaration<PlanUpdatedPage, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<PlanUpdatedPage, "section[mol-plan-updated-page]", never, { "planName": { "alias": "planName"; "required": false; }; "ctaLabel": { "alias": "ctaLabel"; "required": false; }; "onCta": { "alias": "onCta"; "required": false; }; "ctaHref": { "alias": "ctaHref"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["[slot=ctaLabel]", "[slot=ctaLabel]"], true, never>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlanUpdatedPage, "section[mol-plan-updated-page]", never, { "planName": { "alias": "planName"; "required": false; }; "ctaLabel": { "alias": "ctaLabel"; "required": false; }; "onCta": { "alias": "onCta"; "required": false; }; "ctaHref": { "alias": "ctaHref"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["[slot=ctaLabel]", "[slot=ctaLabel]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
85
82
  }
86
83
  //# sourceMappingURL=plan-updated-page.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-updated-page.component.d.ts","sourceRoot":"","sources":["../src/plan-updated-page.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,eAAe,CAAA;AAI9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;;AAuBtD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAyBa,eAAgB,YAAW,aAAa,EAAE,oBAAoB;IACzE;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,oEAAoE;IACpE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAEhC,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,uEAAuE;IACvE,OAAO,CAAC,QAAQ,CAAC,IA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A0D;IACjB,OAAO,CAAC,QAAQ,CAAC,CAAyB;IACnF,sFAAsF;IAC7D,OAAO,CAAC,UAAU,CAAC,CAAyB;IAErE;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IAEzC;;;OAGG;;IAUH;;;;OAIG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;;;OAKG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;;OAKG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;yCAhFlB,eAAe;2CAAf,eAAe;CAmF3B"}
@@ -1,91 +1,66 @@
1
1
  import { Component, signal, ViewChild } from '@angular/core';
2
- import { useTranslation } from '@molecule/app-angular';
2
+ import { MolPlacement, setElementPresent, usePlacement, useTranslation, } from '@molecule/app-angular';
3
3
  import { getClassMap } from '@molecule/app-ui';
4
4
  import * as i0 from "@angular/core";
5
- const _c0 = ["ctaLabelEl"];
6
- const _c1 = [[["", "slot", "ctalabel"]], [["", "slot", "ctalabel"]]];
7
- const _c2 = ["[slot=ctaLabel]", "[slot=ctaLabel]"];
8
- const _c3 = () => ({ defaultValue: "Thanks for upgrading. Your new plan is active immediately and a receipt has been emailed to you." });
9
- const _c4 = a0 => ({ planName: a0 });
10
- const _c5 = () => ({ defaultValue: "You're now on the {{planName}} plan" });
11
- const _c6 = () => ({ defaultValue: "Your plan has been updated" });
12
- const _c7 = () => ({ variant: "solid", size: "md" });
5
+ import * as i1 from "@molecule/app-angular";
6
+ const _c0 = ["footerEl"];
7
+ const _c1 = ["ctaLabelEl"];
8
+ const _c2 = [[["", "slot", "ctalabel"]], [["", "slot", "ctalabel"]]];
9
+ const _c3 = ["[slot=ctaLabel]", "[slot=ctaLabel]"];
10
+ const _c4 = () => ({ defaultValue: "Thanks for upgrading. Your new plan is active immediately and a receipt has been emailed to you." });
11
+ const _c5 = a0 => ({ planName: a0 });
12
+ const _c6 = () => ({ defaultValue: "You're now on the {{planName}} plan" });
13
+ const _c7 = () => ({ defaultValue: "Your plan has been updated" });
14
+ const _c8 = () => ({ variant: "solid", size: "md" });
13
15
  function PlanUpdatedPage_Conditional_2_Template(rf, ctx) { if (rf & 1) {
14
16
  i0.ɵɵtext(0);
15
17
  } if (rf & 2) {
16
18
  const ctx_r0 = i0.ɵɵnextContext();
17
- i0.ɵɵtextInterpolate(ctx_r0.t("pricingPage.planUpdated.headingNamed", i0.ɵɵpureFunction1(1, _c4, ctx_r0.planName), i0.ɵɵpureFunction0(3, _c5)));
19
+ i0.ɵɵtextInterpolate(ctx_r0.t("pricingPage.planUpdated.headingNamed", i0.ɵɵpureFunction1(1, _c5, ctx_r0.planName), i0.ɵɵpureFunction0(3, _c6)));
18
20
  } }
19
21
  function PlanUpdatedPage_Conditional_3_Template(rf, ctx) { if (rf & 1) {
20
22
  i0.ɵɵtext(0);
21
23
  } if (rf & 2) {
22
24
  const ctx_r0 = i0.ɵɵnextContext();
23
- i0.ɵɵtextInterpolate(ctx_r0.t("pricingPage.planUpdated.heading", undefined, i0.ɵɵpureFunction0(1, _c6)));
25
+ i0.ɵɵtextInterpolate(ctx_r0.t("pricingPage.planUpdated.heading", undefined, i0.ɵɵpureFunction0(1, _c7)));
24
26
  } }
25
- function PlanUpdatedPage_Conditional_6_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
27
+ function PlanUpdatedPage_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
26
28
  i0.ɵɵtext(0);
27
29
  } if (rf & 2) {
28
- const ctx_r0 = i0.ɵɵnextContext(3);
30
+ const ctx_r0 = i0.ɵɵnextContext(2);
29
31
  i0.ɵɵtextInterpolate(ctx_r0.ctaLabel);
30
32
  } }
31
- function PlanUpdatedPage_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵdomElementStart(0, "a", 4, 0);
33
- i0.ɵɵconditionalCreate(2, PlanUpdatedPage_Conditional_6_Conditional_1_Conditional_2_Template, 1, 1);
33
+ function PlanUpdatedPage_Conditional_8_Template(rf, ctx) { if (rf & 1) {
34
+ i0.ɵɵdomElementStart(0, "a", 4, 1);
35
+ i0.ɵɵconditionalCreate(2, PlanUpdatedPage_Conditional_8_Conditional_2_Template, 1, 1);
34
36
  i0.ɵɵprojection(3);
35
37
  i0.ɵɵdomElementEnd();
36
38
  } if (rf & 2) {
37
- const ctx_r0 = i0.ɵɵnextContext(2);
38
- i0.ɵɵclassMap(ctx_r0.cm.button(i0.ɵɵpureFunction0(4, _c7)));
39
+ const ctx_r0 = i0.ɵɵnextContext();
40
+ i0.ɵɵclassMap(ctx_r0.cm.button(i0.ɵɵpureFunction0(4, _c8)));
39
41
  i0.ɵɵdomProperty("href", ctx_r0.ctaHref, i0.ɵɵsanitizeUrl);
40
42
  i0.ɵɵadvance(2);
41
43
  i0.ɵɵconditional(ctx_r0.hasCtaLabel ? 2 : -1);
42
44
  } }
43
- function PlanUpdatedPage_Conditional_6_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
45
+ function PlanUpdatedPage_Conditional_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
44
46
  i0.ɵɵtext(0);
45
47
  } if (rf & 2) {
46
- const ctx_r0 = i0.ɵɵnextContext(3);
48
+ const ctx_r0 = i0.ɵɵnextContext(2);
47
49
  i0.ɵɵtextInterpolate(ctx_r0.ctaLabel);
48
50
  } }
49
- function PlanUpdatedPage_Conditional_6_Conditional_2_Template(rf, ctx) { if (rf & 1) {
51
+ function PlanUpdatedPage_Conditional_9_Template(rf, ctx) { if (rf & 1) {
50
52
  const _r2 = i0.ɵɵgetCurrentView();
51
- i0.ɵɵdomElementStart(0, "button", 5, 0);
52
- i0.ɵɵdomListener("click", function PlanUpdatedPage_Conditional_6_Conditional_2_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.fireCta($event)); });
53
- i0.ɵɵconditionalCreate(2, PlanUpdatedPage_Conditional_6_Conditional_2_Conditional_2_Template, 1, 1);
53
+ i0.ɵɵdomElementStart(0, "button", 5, 1);
54
+ i0.ɵɵdomListener("click", function PlanUpdatedPage_Conditional_9_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.fireCta($event)); });
55
+ i0.ɵɵconditionalCreate(2, PlanUpdatedPage_Conditional_9_Conditional_2_Template, 1, 1);
54
56
  i0.ɵɵprojection(3, 1);
55
57
  i0.ɵɵdomElementEnd();
56
58
  } if (rf & 2) {
57
- const ctx_r0 = i0.ɵɵnextContext(2);
58
- i0.ɵɵclassMap(ctx_r0.cm.button(i0.ɵɵpureFunction0(3, _c7)));
59
+ const ctx_r0 = i0.ɵɵnextContext();
60
+ i0.ɵɵclassMap(ctx_r0.cm.button(i0.ɵɵpureFunction0(3, _c8)));
59
61
  i0.ɵɵadvance(2);
60
62
  i0.ɵɵconditional(ctx_r0.hasCtaLabel ? 2 : -1);
61
63
  } }
62
- function PlanUpdatedPage_Conditional_6_Template(rf, ctx) { if (rf & 1) {
63
- i0.ɵɵdomElementStart(0, "footer");
64
- i0.ɵɵconditionalCreate(1, PlanUpdatedPage_Conditional_6_Conditional_1_Template, 4, 5, "a", 2)(2, PlanUpdatedPage_Conditional_6_Conditional_2_Template, 4, 4, "button", 3);
65
- i0.ɵɵdomElementEnd();
66
- } if (rf & 2) {
67
- const ctx_r0 = i0.ɵɵnextContext();
68
- i0.ɵɵclassMap(ctx_r0.cm.cardFooter);
69
- i0.ɵɵadvance();
70
- i0.ɵɵconditional(ctx_r0.ctaHref ? 1 : 2);
71
- } }
72
- /**
73
- * Whether a node is something a caller can see (an element, or a non-blank
74
- * text node).
75
- *
76
- * @param node - The DOM node.
77
- * @returns True when it renders anything.
78
- */
79
- const hasRenderable = (node) => node.nodeType === Node.ELEMENT_NODE ||
80
- (node.nodeType === Node.TEXT_NODE && (node.textContent ?? '').trim().length > 0);
81
- /**
82
- * Whether an element carries renderable content (a projected slot landed, or
83
- * its text input rendered).
84
- *
85
- * @param el - The element.
86
- * @returns True when its children render anything.
87
- */
88
- const hasRenderableContent = (el) => Array.from(el.childNodes).some(hasRenderable);
89
64
  /**
90
65
  * PlanUpdatedPage component.
91
66
  *
@@ -99,9 +74,10 @@ const hasRenderableContent = (el) => Array.from(el.childNodes).some(hasRenderabl
99
74
  * `PlanUpdatedPage`.
100
75
  *
101
76
  * @remarks
102
- * Angular projection needs the `<ng-content>` capture point mounted, so the
103
- * CTA renders optimistically and {@link PlanUpdatedPage.ngAfterViewInit}
104
- * withdraws it when nothing was supplied (React would not render it at all).
77
+ * Angular projection needs the `<ng-content>` capture point mounted, so the CTA
78
+ * footer stays in the template and leaves the page while the label has nothing
79
+ * to render; the placement function re-decides it whenever the slot changes
80
+ * (React would not render it at all).
105
81
  */
106
82
  export class PlanUpdatedPage {
107
83
  /**
@@ -126,23 +102,27 @@ export class PlanUpdatedPage {
126
102
  t = this.i18n.t;
127
103
  /** The bonded ClassMap (styling tokens resolve at render time). */
128
104
  cm = getClassMap();
129
- /** The CTA's label region (projected content lands here; read once). */
105
+ /** The CTA's footer (present while the label renders). */
106
+ footerEl;
107
+ /** The CTA's label region: the anchor or the button (inside the `ctaHref` branch). */
130
108
  ctaLabelEl;
131
109
  /**
132
- * Whether a `[slot=ctaLabel]` projection landed: true (optimistically)
133
- * until the first view proves otherwise.
110
+ * Whether a `[slot=ctaLabel]` projection landed: placement decides, so a
111
+ * label taken away and given back returns.
134
112
  */
135
- ctaProjected = signal(true, /* @ts-ignore */
136
- ...(ngDevMode ? [{ debugName: "ctaProjected" }] : /* istanbul ignore next */ []));
113
+ ctaShown = signal(false, /* @ts-ignore */
114
+ ...(ngDevMode ? [{ debugName: "ctaShown" }] : /* istanbul ignore next */ []));
137
115
  /**
138
- * Reads the CTA label region's first render: when neither a text input nor
139
- * projected content landed, React would not render the CTA at all, so the
140
- * optimistic render is withdrawn.
116
+ * Keeps the CTA footer on the page only while the label renders a text input
117
+ * or projected `[slot=ctaLabel]` content, re-decided whenever either changes.
141
118
  */
142
- ngAfterViewInit() {
143
- const el = this.ctaLabelEl?.nativeElement;
144
- if (el)
145
- this.ctaProjected.set(hasRenderableContent(el));
119
+ constructor() {
120
+ usePlacement((hasContent) => {
121
+ const ctaLabelEl = this.ctaLabelEl?.nativeElement;
122
+ const showCta = this.hasCtaLabel || (ctaLabelEl ? hasContent(ctaLabelEl) : false);
123
+ this.ctaShown.set(showCta);
124
+ setElementPresent(this.footerEl?.nativeElement, showCta);
125
+ });
146
126
  }
147
127
  /**
148
128
  * Whether a text CTA label input renders (a projected label is not).
@@ -159,7 +139,7 @@ export class PlanUpdatedPage {
159
139
  * @returns True when the CTA shows.
160
140
  */
161
141
  get showCta() {
162
- return this.hasCtaLabel || this.ctaProjected();
142
+ return this.hasCtaLabel || this.ctaShown();
163
143
  }
164
144
  /**
165
145
  * Passes the click event to the caller's handler, as React's
@@ -172,21 +152,24 @@ export class PlanUpdatedPage {
172
152
  }
173
153
  static ɵfac = function PlanUpdatedPage_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PlanUpdatedPage)(); };
174
154
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlanUpdatedPage, selectors: [["section", "mol-plan-updated-page", ""]], viewQuery: function PlanUpdatedPage_Query(rf, ctx) { if (rf & 1) {
175
- i0.ɵɵviewQuery(_c0, 5);
155
+ i0.ɵɵviewQuery(_c0, 7)(_c1, 5);
176
156
  } if (rf & 2) {
177
157
  let _t;
158
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerEl = _t.first);
178
159
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ctaLabelEl = _t.first);
179
160
  } }, hostAttrs: ["data-mol-id", "plan-updated-page"], hostVars: 2, hostBindings: function PlanUpdatedPage_HostBindings(rf, ctx) { if (rf & 2) {
180
161
  i0.ɵɵclassMap(ctx.className ?? null);
181
- } }, inputs: { planName: "planName", ctaLabel: "ctaLabel", onCta: "onCta", ctaHref: "ctaHref", className: "className" }, ngContentSelectors: _c2, decls: 7, vars: 10, consts: [["ctaLabelEl", ""], [3, "class"], ["data-mol-id", "plan-updated-cta", 3, "href", "class"], ["type", "button", "data-mol-id", "plan-updated-cta", 3, "class"], ["data-mol-id", "plan-updated-cta", 3, "href"], ["type", "button", "data-mol-id", "plan-updated-cta", 3, "click"]], template: function PlanUpdatedPage_Template(rf, ctx) { if (rf & 1) {
182
- i0.ɵɵprojectionDef(_c1);
162
+ } }, inputs: { planName: "planName", ctaLabel: "ctaLabel", onCta: "onCta", ctaHref: "ctaHref", className: "className" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c3, decls: 10, vars: 12, consts: [["footerEl", ""], ["ctaLabelEl", ""], ["data-mol-id", "plan-updated-cta", 3, "href", "class"], ["type", "button", "data-mol-id", "plan-updated-cta", 3, "class"], ["data-mol-id", "plan-updated-cta", 3, "href"], ["type", "button", "data-mol-id", "plan-updated-cta", 3, "click"]], template: function PlanUpdatedPage_Template(rf, ctx) { if (rf & 1) {
163
+ i0.ɵɵprojectionDef(_c2);
183
164
  i0.ɵɵdomElementStart(0, "header")(1, "h1");
184
165
  i0.ɵɵconditionalCreate(2, PlanUpdatedPage_Conditional_2_Template, 1, 4)(3, PlanUpdatedPage_Conditional_3_Template, 1, 2);
185
166
  i0.ɵɵdomElementEnd();
186
167
  i0.ɵɵdomElementStart(4, "p");
187
168
  i0.ɵɵtext(5);
188
169
  i0.ɵɵdomElementEnd()();
189
- i0.ɵɵconditionalCreate(6, PlanUpdatedPage_Conditional_6_Template, 3, 3, "footer", 1);
170
+ i0.ɵɵdomElementStart(6, "footer", null, 0);
171
+ i0.ɵɵconditionalCreate(8, PlanUpdatedPage_Conditional_8_Template, 4, 5, "a", 2)(9, PlanUpdatedPage_Conditional_9_Template, 4, 4, "button", 3);
172
+ i0.ɵɵdomElementEnd();
190
173
  } if (rf & 2) {
191
174
  i0.ɵɵclassMap(ctx.cm.cardHeader);
192
175
  i0.ɵɵadvance();
@@ -196,9 +179,11 @@ export class PlanUpdatedPage {
196
179
  i0.ɵɵadvance(2);
197
180
  i0.ɵɵclassMap(ctx.cm.cardDescription);
198
181
  i0.ɵɵadvance();
199
- i0.ɵɵtextInterpolate(ctx.t("pricingPage.planUpdated.body", undefined, i0.ɵɵpureFunction0(9, _c3)));
182
+ i0.ɵɵtextInterpolate(ctx.t("pricingPage.planUpdated.body", undefined, i0.ɵɵpureFunction0(11, _c4)));
200
183
  i0.ɵɵadvance();
201
- i0.ɵɵconditional(ctx.showCta ? 6 : -1);
184
+ i0.ɵɵclassMap(ctx.cm.cardFooter);
185
+ i0.ɵɵadvance(2);
186
+ i0.ɵɵconditional(ctx.ctaHref ? 8 : 9);
202
187
  } }, encapsulation: 2 });
203
188
  }
204
189
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PlanUpdatedPage, [{
@@ -206,6 +191,7 @@ export class PlanUpdatedPage {
206
191
  args: [{
207
192
  selector: 'section[mol-plan-updated-page]',
208
193
  standalone: true,
194
+ hostDirectives: [MolPlacement],
209
195
  inputs: ['planName', 'ctaLabel', 'onCta', 'ctaHref', 'className'],
210
196
  host: {
211
197
  '[class]': 'className ?? null',
@@ -217,20 +203,21 @@ export class PlanUpdatedPage {
217
203
  <h1 [class]="cm.cardTitle">@if (planName) {{{ t('pricingPage.planUpdated.headingNamed', { planName: planName }, { defaultValue: "You're now on the {{planName}} plan" }) }}}@else {{{ t('pricingPage.planUpdated.heading', undefined, { defaultValue: 'Your plan has been updated' }) }}}</h1>
218
204
  <p [class]="cm.cardDescription">{{ t('pricingPage.planUpdated.body', undefined, { defaultValue: 'Thanks for upgrading. Your new plan is active immediately and a receipt has been emailed to you.' }) }}</p>
219
205
  </header>
220
- @if (showCta) {
221
- <footer [class]="cm.cardFooter">
222
- @if (ctaHref) {
223
- <a [href]="ctaHref" [class]="cm.button({ variant: 'solid', size: 'md' })" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></a>
224
- } @else {
225
- <button type="button" [class]="cm.button({ variant: 'solid', size: 'md' })" (click)="fireCta($event)" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></button>
226
- }
227
- </footer>
228
- }
206
+ <footer #footerEl [class]="cm.cardFooter">
207
+ @if (ctaHref) {
208
+ <a [href]="ctaHref" [class]="cm.button({ variant: 'solid', size: 'md' })" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></a>
209
+ } @else {
210
+ <button type="button" [class]="cm.button({ variant: 'solid', size: 'md' })" (click)="fireCta($event)" data-mol-id="plan-updated-cta" #ctaLabelEl>@if (hasCtaLabel) {{{ ctaLabel }}}<ng-content select="[slot=ctaLabel]" /></button>
211
+ }
212
+ </footer>
229
213
  `,
230
214
  }]
231
- }], null, { ctaLabelEl: [{
215
+ }], () => [], { footerEl: [{
216
+ type: ViewChild,
217
+ args: ['footerEl', { static: true }]
218
+ }], ctaLabelEl: [{
232
219
  type: ViewChild,
233
220
  args: ['ctaLabelEl']
234
221
  }] }); })();
235
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PlanUpdatedPage, { className: "PlanUpdatedPage", filePath: "plan-updated-page.component.ts", lineNumber: 79 }); })();
222
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PlanUpdatedPage, { className: "PlanUpdatedPage", filePath: "plan-updated-page.component.ts", lineNumber: 63 }); })();
236
223
  //# sourceMappingURL=plan-updated-page.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-updated-page.component.js","sourceRoot":"","sources":["../src/plan-updated-page.component.ts"],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AAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAA;IACrB,CAAC;yGAlFU,eAAe;6DAAf,eAAe;;;;;;;YAAf,+BAAa,IAAI,CAAF;;;YAZtB,AADF,iCAAgC,SACH;YAAiJ,AAAjJ,uEAAgB,iDAAwI;YAAsG,oBAAK;YAC9R,4BAAgC;YAAA,YAAwK;YAC1M,AAD0M,oBAAI,EACrM;YACT,0CAA0C;YAGtC,AAFF,+EAAe,8DAEN;YAGX,oBAAS;;YAVD,gCAAuB;YACzB,cAAsB;YAAtB,+BAAsB;YAAC,cAA8P;YAA9P,sCAA8P;YACtR,eAA4B;YAA5B,qCAA4B;YAAC,cAAwK;YAAxK,mGAAwK;YAExL,cAAuB;YAAvB,gCAAuB;YACvC,eAIC;YAJD,qCAIC;;;iFAIM,eAAe;cAxB3B,SAAS;eAAC;gBACT,QAAQ,EAAE,gCAAgC;gBAC1C,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC;gBACjE,IAAI,EAAE;oBACJ,SAAS,EAAE,mBAAmB;oBAC9B,aAAa,EAAE,mBAAmB;iBACnC;gBACD,kBAAkB;gBAClB,QAAQ,EAAE;;;;;;;;;;;;GAYT;aACF;;kBAiCE,SAAS;mBAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kBAEtC,SAAS;mBAAC,YAAY;;kFAlCZ,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-pricing-page-angular",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Standalone public pricing page — tier cards, period toggle, checkout handoff (distinct from billing-react's PricingPage)",
5
5
  "homepage": "https://www.molecule.dev/packages/app-pricing-page-angular",
6
6
  "type": "module",
@@ -47,7 +47,7 @@
47
47
  "@angular/common": "^22.0.0",
48
48
  "@angular/core": "^22.0.0",
49
49
  "@angular/platform-browser": "^22.0.0",
50
- "@molecule/app-angular": "^3.5.0",
50
+ "@molecule/app-angular": "^3.13.0",
51
51
  "@molecule/app-billing-angular": "^1.0.0",
52
52
  "@molecule/app-subscription-plan-card-angular": "^1.0.0",
53
53
  "@molecule/app-ui": "^1.1.0",
@@ -59,16 +59,16 @@
59
59
  "@angular/compiler-cli": "22.2.3",
60
60
  "@angular/core": "22.2.3",
61
61
  "@angular/platform-browser": "22.2.3",
62
- "@molecule/app-angular": "3.9.0",
63
- "@molecule/app-billing-angular": "1.1.0",
62
+ "@molecule/app-angular": "3.13.0",
63
+ "@molecule/app-billing-angular": "1.1.1",
64
64
  "@molecule/app-framework-conformance": "0.0.0",
65
65
  "@molecule/app-i18n": "1.2.2",
66
66
  "@molecule/app-icons": "1.0.4",
67
- "@molecule/app-subscription-plan-card-angular": "1.1.0",
67
+ "@molecule/app-subscription-plan-card-angular": "1.1.1",
68
68
  "@molecule/app-ui": "1.5.0",
69
- "@molecule/app-ui-angular": "1.3.1",
69
+ "@molecule/app-ui-angular": "1.5.1",
70
70
  "@types/node": "26.6.5",
71
- "jsdom": "30.1.3",
71
+ "jsdom": "31.0.1",
72
72
  "rxjs": "7.8.2",
73
73
  "typescript": "6.0.3",
74
74
  "vitest": "4.1.12",