@molecule/app-settings-panel-angular 2.0.1 → 2.0.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 +44 -34
- package/dist/account-section.component.js +1 -2
- package/dist/account-section.component.js.map +1 -1
- package/dist/auth-section.component.d.ts +7 -4
- package/dist/auth-section.component.d.ts.map +1 -1
- package/dist/auth-section.component.js +19 -15
- package/dist/auth-section.component.js.map +1 -1
- package/dist/container-context.d.ts +7 -4
- package/dist/container-context.d.ts.map +1 -1
- package/dist/container-context.js +9 -7
- package/dist/container-context.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +2 -2
- package/dist/context.js.map +1 -1
- package/dist/controlled-switch.d.ts +0 -2
- package/dist/controlled-switch.d.ts.map +1 -1
- package/dist/controlled-switch.js +1 -6
- package/dist/controlled-switch.js.map +1 -1
- package/dist/log-out-delete-section.component.d.ts +8 -4
- package/dist/log-out-delete-section.component.d.ts.map +1 -1
- package/dist/log-out-delete-section.component.js +24 -14
- package/dist/log-out-delete-section.component.js.map +1 -1
- package/dist/tiers-upgrade-section.component.d.ts +5 -4
- package/dist/tiers-upgrade-section.component.d.ts.map +1 -1
- package/dist/tiers-upgrade-section.component.js +15 -11
- package/dist/tiers-upgrade-section.component.js.map +1 -1
- package/package.json +7 -7
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-
|
|
6
|
+
Generated: 2026-11-23T14:53:42.502Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-settings-panel-angular
|
|
@@ -521,7 +521,7 @@ export class AccountSection implements AfterViewInit {
|
|
|
521
521
|
* @param error - The field's validation message, or null.
|
|
522
522
|
*/
|
|
523
523
|
private syncEmailAria(error: string | null): void {
|
|
524
|
-
|
|
524
|
+
this.resolveEmailControl()
|
|
525
525
|
const control = this.emailControl
|
|
526
526
|
if (!control) return
|
|
527
527
|
if (error) {
|
|
@@ -629,9 +629,9 @@ export class AppearanceSection implements AfterViewInit {
|
|
|
629
629
|
AuthSection component.
|
|
630
630
|
|
|
631
631
|
Authentication section — change password (modal) + two-factor (TOTP) setup.
|
|
632
|
-
React's root is a fragment (the `<section>` plus two modals)
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
React's root is a fragment (the `<section>` plus two modals) or nothing at
|
|
633
|
+
all for an OAuth-only user (React's `return null`); those nodes render in the
|
|
634
|
+
host's place and the host itself never appears in the page.
|
|
635
635
|
|
|
636
636
|
Two-factor uses the real enrollment flow against the user resource's
|
|
637
637
|
`POST /users/:id/verify-two-factor` endpoint (`@molecule/api-two-factor`):
|
|
@@ -655,13 +655,9 @@ mediated by a version signal the handlers bump at React's re-render points.
|
|
|
655
655
|
@Component({
|
|
656
656
|
selector: 'mol-auth-section',
|
|
657
657
|
standalone: true,
|
|
658
|
+
hostDirectives: [MolPlacement],
|
|
658
659
|
imports: [Alert, Button, Flex, Input, Modal],
|
|
659
|
-
|
|
660
|
-
'data-parity-unwrap': '',
|
|
661
|
-
style: 'display: contents',
|
|
662
|
-
},
|
|
663
|
-
template: `@if (!isOauthOnly()) {
|
|
664
|
-
<section>
|
|
660
|
+
template: `@if (!isOauthOnly()) {<section>
|
|
665
661
|
<h3 [class]="cm.cn(cm.sectionHeading, cm.sp('mb', 3))">
|
|
666
662
|
{{ t('settings.authentication', undefined, { defaultValue: 'Authentication' }) }}
|
|
667
663
|
</h3>
|
|
@@ -813,8 +809,7 @@ mediated by a version signal the handlers bump at React's re-render points.
|
|
|
813
809
|
</button>
|
|
814
810
|
</form>
|
|
815
811
|
}
|
|
816
|
-
</mol-modal>
|
|
817
|
-
}`,
|
|
812
|
+
</mol-modal>}`,
|
|
818
813
|
})
|
|
819
814
|
export class AuthSection {
|
|
820
815
|
protected readonly auth = useAuth<UserProfile>()
|
|
@@ -859,6 +854,9 @@ export class AuthSection {
|
|
|
859
854
|
|
|
860
855
|
private readonly twoFactorRead = { cancelled: false }
|
|
861
856
|
|
|
857
|
+
private readonly host: ElementRef<HTMLElement> = inject(ElementRef)
|
|
858
|
+
|
|
859
|
+
|
|
862
860
|
protected readonly cm: UIClassMap = getClassMap()
|
|
863
861
|
|
|
864
862
|
protected isOauthOnly(): boolean {
|
|
@@ -1199,9 +1197,8 @@ export class DevicesSection {
|
|
|
1199
1197
|
LogOutDeleteSection component.
|
|
1200
1198
|
|
|
1201
1199
|
Bottom actions section — Log out + Delete account. React's root is a
|
|
1202
|
-
fragment (the `<section>` plus the delete-account modal), so
|
|
1203
|
-
|
|
1204
|
-
fragment-like.
|
|
1200
|
+
fragment (the `<section>` plus the delete-account modal), so those nodes
|
|
1201
|
+
render in the host's place and the host itself never appears in the page.
|
|
1205
1202
|
|
|
1206
1203
|
Owns the delete-account modal internally (the trigger lives in the
|
|
1207
1204
|
same section so the modal lives here too). Reads `onClose` from
|
|
@@ -1212,11 +1209,8 @@ action and navigates to `/login`.
|
|
|
1212
1209
|
@Component({
|
|
1213
1210
|
selector: 'mol-log-out-delete-section',
|
|
1214
1211
|
standalone: true,
|
|
1212
|
+
hostDirectives: [MolPlacement],
|
|
1215
1213
|
imports: [Alert, Button, Input, Modal],
|
|
1216
|
-
host: {
|
|
1217
|
-
'data-parity-unwrap': '',
|
|
1218
|
-
style: 'display: contents',
|
|
1219
|
-
},
|
|
1220
1214
|
template: `<section [class]="cm.stack(3)">
|
|
1221
1215
|
<button
|
|
1222
1216
|
mol-button
|
|
@@ -1310,10 +1304,25 @@ export class LogOutDeleteSection {
|
|
|
1310
1304
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
1311
1305
|
protected readonly cm: UIClassMap = getClassMap()
|
|
1312
1306
|
|
|
1307
|
+
private readonly host: ElementRef<HTMLElement> = inject(ElementRef)
|
|
1308
|
+
constructor() {
|
|
1309
|
+
usePlacement(() => {
|
|
1310
|
+
// React's fragment (the section plus the delete-account modal) renders in
|
|
1311
|
+
// the host's place; the host itself leaves the page.
|
|
1312
|
+
placeContentBefore(this.host.nativeElement, this.host.nativeElement)
|
|
1313
|
+
setElementPresent(this.host.nativeElement, false)
|
|
1314
|
+
})
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/** Closes the settings panel (the container context's callback). */
|
|
1318
|
+
private closePanel(): void {
|
|
1319
|
+
this.panel.onClose()
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1313
1322
|
/** Signs out, closes the panel and returns to `/login` (React's `handleLogout`). */
|
|
1314
1323
|
protected async logout(): Promise<void> {
|
|
1315
1324
|
await this.auth.logout()
|
|
1316
|
-
this.
|
|
1325
|
+
this.closePanel()
|
|
1317
1326
|
this.router.navigate('/login')
|
|
1318
1327
|
}
|
|
1319
1328
|
|
|
@@ -1332,7 +1341,7 @@ export class LogOutDeleteSection {
|
|
|
1332
1341
|
data: { password: this.password() },
|
|
1333
1342
|
})
|
|
1334
1343
|
await this.auth.logout()
|
|
1335
|
-
this.
|
|
1344
|
+
this.closePanel()
|
|
1336
1345
|
this.router.navigate('/login')
|
|
1337
1346
|
} catch (err) {
|
|
1338
1347
|
this.deleteError.set(
|
|
@@ -1691,9 +1700,8 @@ export class ThisDeviceSection {
|
|
|
1691
1700
|
TiersUpgradeSection component.
|
|
1692
1701
|
|
|
1693
1702
|
Billing section with full multi-tier upgrade flow. React's root is a
|
|
1694
|
-
fragment (the `<section>` plus the upgrade modal), so
|
|
1695
|
-
|
|
1696
|
-
fragment-like.
|
|
1703
|
+
fragment (the `<section>` plus the upgrade modal), so those nodes render in
|
|
1704
|
+
the host's place and the host itself never appears in the page.
|
|
1697
1705
|
|
|
1698
1706
|
Replaces the simpler `BillingSection` for apps backed by
|
|
1699
1707
|
`@molecule/api-payments-stripe` + `@molecule/api-resource-payment` — loads
|
|
@@ -1708,12 +1716,9 @@ message.
|
|
|
1708
1716
|
@Component({
|
|
1709
1717
|
selector: 'mol-tiers-upgrade-section',
|
|
1710
1718
|
standalone: true,
|
|
1719
|
+
hostDirectives: [MolPlacement],
|
|
1711
1720
|
imports: [Alert, Button, ConfirmButton, Flex, Modal],
|
|
1712
1721
|
inputs: ['redirectToCheckout'],
|
|
1713
|
-
host: {
|
|
1714
|
-
'data-parity-unwrap': '',
|
|
1715
|
-
style: 'display: contents',
|
|
1716
|
-
},
|
|
1717
1722
|
template: `<section>
|
|
1718
1723
|
<h3 [class]="cm.cn(cm.sectionHeading, cm.sp('mb', 3))">
|
|
1719
1724
|
{{ t('settings.billing', undefined, { defaultValue: 'Billing' }) }}
|
|
@@ -1817,6 +1822,8 @@ export class TiersUpgradeSection {
|
|
|
1817
1822
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
1818
1823
|
protected readonly cm: UIClassMap = getClassMap()
|
|
1819
1824
|
|
|
1825
|
+
private readonly host: ElementRef<HTMLElement> = inject(ElementRef)
|
|
1826
|
+
|
|
1820
1827
|
protected subscribeEntries(): { key: string; tier: Tier; price: TierPrice }[] {
|
|
1821
1828
|
const entries: { key: string; tier: Tier; price: TierPrice }[] = []
|
|
1822
1829
|
for (const tier of this.tiers()) {
|
|
@@ -1830,12 +1837,16 @@ export class TiersUpgradeSection {
|
|
|
1830
1837
|
}
|
|
1831
1838
|
|
|
1832
1839
|
constructor() {
|
|
1840
|
+
usePlacement(() => {
|
|
1841
|
+
// host's place; the host itself leaves the page.
|
|
1842
|
+
placeContentBefore(this.host.nativeElement, this.host.nativeElement)
|
|
1843
|
+
setElementPresent(this.host.nativeElement, false)
|
|
1844
|
+
})
|
|
1833
1845
|
let cancelled = false
|
|
1834
1846
|
inject(DestroyRef).onDestroy(() => {
|
|
1835
1847
|
cancelled = true
|
|
1836
1848
|
})
|
|
1837
1849
|
void Promise.all([
|
|
1838
|
-
// Each fetch resolves null on failure; the .then handler then keeps the
|
|
1839
1850
|
// defaults ('Free', empty tier list) instead of throwing.
|
|
1840
1851
|
this.http
|
|
1841
1852
|
.get<{ planKey?: string; name?: string }>('/api/billing/status')
|
|
@@ -1876,7 +1887,6 @@ export class TiersUpgradeSection {
|
|
|
1876
1887
|
})
|
|
1877
1888
|
}
|
|
1878
1889
|
|
|
1879
|
-
/** Starts the checkout for one price (React's `handleStartCheckout`). */
|
|
1880
1890
|
protected async startCheckout(stripePriceId: string | undefined): Promise<void> {
|
|
1881
1891
|
if (!stripePriceId) return
|
|
1882
1892
|
this.upgradeError.set('')
|
|
@@ -1930,7 +1940,7 @@ export class TiersUpgradeSection {
|
|
|
1930
1940
|
}
|
|
1931
1941
|
```
|
|
1932
1942
|
|
|
1933
|
-
_(Member comments are shortened to their first sentence, and the
|
|
1943
|
+
_(Member comments are shortened to their first sentence, and the 6 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-settings-panel-angular/dist/tiers-upgrade-section.component.d.ts`.)_
|
|
1934
1944
|
|
|
1935
1945
|
### Functions
|
|
1936
1946
|
|
|
@@ -2054,12 +2064,12 @@ Peer dependencies:
|
|
|
2054
2064
|
- `@angular/common` ^22.0.0
|
|
2055
2065
|
- `@angular/core` ^22.0.0
|
|
2056
2066
|
- `@angular/platform-browser` ^22.0.0
|
|
2057
|
-
- `@molecule/app-angular` ^3.
|
|
2067
|
+
- `@molecule/app-angular` ^3.13.0
|
|
2058
2068
|
- `@molecule/app-auth` ^3.0.0
|
|
2059
2069
|
- `@molecule/app-http` ^1.8.0
|
|
2060
2070
|
- `@molecule/app-push` ^1.1.0
|
|
2061
2071
|
- `@molecule/app-ui` ^1.3.11
|
|
2062
|
-
- `@molecule/app-ui-angular` ^1.
|
|
2072
|
+
- `@molecule/app-ui-angular` ^1.5.0
|
|
2063
2073
|
- `@molecule/app-utilities` ^1.0.6
|
|
2064
2074
|
|
|
2065
2075
|
### Runtime Dependencies
|
|
@@ -202,8 +202,7 @@ export class AccountSection {
|
|
|
202
202
|
* @param error - The field's validation message, or null.
|
|
203
203
|
*/
|
|
204
204
|
syncEmailAria(error) {
|
|
205
|
-
|
|
206
|
-
this.resolveEmailControl();
|
|
205
|
+
this.resolveEmailControl();
|
|
207
206
|
const control = this.emailControl;
|
|
208
207
|
if (!control)
|
|
209
208
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-section.component.js","sourceRoot":"","sources":["../src/account-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGrF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;;;;;;;;IAwCvD,yBAAqC;;IAApB,2BAAa;;;IAoC5B,6BAIC;IACC,YACF;IAAA,iBAAI;;;IAHF,iGAAgE;IAEhE,cACF;IADE,oCACF;;;IAGA,6BAAiF;IAC/E,YACF;IAAA,iBAAI;;;IAFY,iGAAgE;IAC9E,cACF;IADE,oCACF;;AA/EV;;;;;;;;;;;;;;;;;;;;;;GAsBG;AA8DH,MAAM,OAAO,cAAc;IACzB,4DAA4D;IACzC,OAAO,GAAG,cAAc,CAA6B;QACtE,aAAa,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;QACxE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,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;;OAGG;IACO,UAAU,CAAC,KAAY;QAC/B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAED;;;OAGG;IACO,WAAW,CAAC,KAAY;QAChC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACO,UAAU,CAAC,KAAY;QAC/B,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IACxC,CAAC;IAED;;;;;OAKG;IACO,cAAc,CAAC,KAAiB;QACxC,MAAM,EAAE,GAAI,KAAK,CAAC,MAA6B,EAAE,EAAE,CAAA;QACnD,IAAI,EAAE,KAAK,eAAe;YAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;aACpD,IAAI,EAAE,KAAK,gBAAgB;YAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAClE,CAAC;IAED;;;OAGG;IACK,UAAU,CAAC,YAAoC;QACrD,YAAY,CAAC,MAAM,EAAE,CAAA;QACrB,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAA;IAC5B,CAAC;IAED;;;;OAIG;IACK,mBAAmB;QACzB,IAAI,CAAC,YAAY;YACd,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,aAAa,CAAC,OAAO,CAA6B,IAAI,IAAI,CAAA;QAC5F,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IAC/D,CAAC;IAED;;;;;OAKG;IACK,aAAa,CAAC,KAAoB;QACxC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"account-section.component.js","sourceRoot":"","sources":["../src/account-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,QAAQ,EACR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U,EAAE;;kFArBlC,cAAc"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { UserProfile } from '@molecule/app-auth';
|
|
2
2
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@molecule/app-angular";
|
|
4
5
|
/** The two-factor enrollment data `POST /users/:id/verify-two-factor` returns. */
|
|
5
6
|
export interface TwoFactorSetup {
|
|
6
7
|
QRImageUrl?: string;
|
|
@@ -11,9 +12,9 @@ export interface TwoFactorSetup {
|
|
|
11
12
|
* AuthSection component.
|
|
12
13
|
*
|
|
13
14
|
* Authentication section — change password (modal) + two-factor (TOTP) setup.
|
|
14
|
-
* React's root is a fragment (the `<section>` plus two modals)
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* React's root is a fragment (the `<section>` plus two modals) or nothing at
|
|
16
|
+
* all for an OAuth-only user (React's `return null`); those nodes render in the
|
|
17
|
+
* host's place and the host itself never appears in the page.
|
|
17
18
|
*
|
|
18
19
|
* Two-factor uses the real enrollment flow against the user resource's
|
|
19
20
|
* `POST /users/:id/verify-two-factor` endpoint (`@molecule/api-two-factor`):
|
|
@@ -67,6 +68,8 @@ export declare class AuthSection {
|
|
|
67
68
|
/** The change-password flow's error (version-mediated). */
|
|
68
69
|
protected readonly pwError: import("@angular/core").Signal<string | null>;
|
|
69
70
|
private readonly twoFactorRead;
|
|
71
|
+
private readonly host;
|
|
72
|
+
/** The section (React's `<section>` root). */
|
|
70
73
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
71
74
|
protected readonly cm: UIClassMap;
|
|
72
75
|
/**
|
|
@@ -119,6 +122,6 @@ export declare class AuthSection {
|
|
|
119
122
|
*/
|
|
120
123
|
protected submitPassword(event: Event): Promise<void>;
|
|
121
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthSection, never>;
|
|
122
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthSection, "mol-auth-section", never, {}, {}, never, never, true,
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthSection, "mol-auth-section", never, {}, {}, never, never, true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
123
126
|
}
|
|
124
127
|
//# sourceMappingURL=auth-section.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-section.component.d.ts","sourceRoot":"","sources":["../src/auth-section.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-section.component.d.ts","sourceRoot":"","sources":["../src/auth-section.component.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;;AAIlD,kFAAkF;AAClF,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAgKa,WAAW;IACtB,qDAAqD;IACrD,SAAS,CAAC,QAAQ,CAAC,IAAI,mFAAyB;IAEhD,2DAA2D;IAC3D,SAAS,CAAC,QAAQ,CAAC,IAAI,uDAAmB;IAE1C,iDAAiD;IACjD,SAAS,CAAC,CAAC,8IAAc;IAEzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IAEvC,wDAAwD;IACxD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAsB;IAEzC,iDAAiD;IACjD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,kDAAgB;IACpD,0CAA0C;IAC1C,SAAS,CAAC,QAAQ,CAAC,eAAe,iDAAa;IAC/C,sCAAsC;IACtC,SAAS,CAAC,QAAQ,CAAC,WAAW,iDAAa;IAE3C,6DAA6D;IAC7D,SAAS,CAAC,QAAQ,CAAC,gBAAgB,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3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, computed, DestroyRef, inject, signal } from '@angular/core';
|
|
7
|
-
import { useAuth, useChangePassword, useHttpClient, useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, computed, DestroyRef, ElementRef, inject, signal } from '@angular/core';
|
|
7
|
+
import { MolPlacement, placeContentBefore, setElementPresent, useAuth, useChangePassword, useHttpClient, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
8
8
|
import { serverErrorMessage } from '@molecule/app-http';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { Alert, Button, Flex, Input, Modal } from '@molecule/app-ui-angular';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@molecule/app-angular";
|
|
12
13
|
const _c0 = () => ({ defaultValue: "Authentication" });
|
|
13
14
|
const _c1 = () => ({ defaultValue: "Change password" });
|
|
14
15
|
const _c2 = () => ({ defaultValue: "Two-factor authentication" });
|
|
@@ -258,9 +259,9 @@ function AuthSection_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
258
259
|
* AuthSection component.
|
|
259
260
|
*
|
|
260
261
|
* Authentication section — change password (modal) + two-factor (TOTP) setup.
|
|
261
|
-
* React's root is a fragment (the `<section>` plus two modals)
|
|
262
|
-
*
|
|
263
|
-
*
|
|
262
|
+
* React's root is a fragment (the `<section>` plus two modals) or nothing at
|
|
263
|
+
* all for an OAuth-only user (React's `return null`); those nodes render in the
|
|
264
|
+
* host's place and the host itself never appears in the page.
|
|
264
265
|
*
|
|
265
266
|
* Two-factor uses the real enrollment flow against the user resource's
|
|
266
267
|
* `POST /users/:id/verify-two-factor` endpoint (`@molecule/api-two-factor`):
|
|
@@ -338,6 +339,8 @@ export class AuthSection {
|
|
|
338
339
|
}, /* @ts-ignore */
|
|
339
340
|
...(ngDevMode ? [{ debugName: "pwError" }] : /* istanbul ignore next */ []));
|
|
340
341
|
twoFactorRead = { cancelled: false };
|
|
342
|
+
host = inject(ElementRef);
|
|
343
|
+
/** The section (React's `<section>` root). */
|
|
341
344
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
342
345
|
cm = getClassMap();
|
|
343
346
|
/**
|
|
@@ -366,6 +369,12 @@ export class AuthSection {
|
|
|
366
369
|
* that lands after unmount is dropped like React's cancelled one.
|
|
367
370
|
*/
|
|
368
371
|
constructor() {
|
|
372
|
+
usePlacement(() => {
|
|
373
|
+
// React's fragment (the section plus two modals) or nothing: the whole
|
|
374
|
+
// template renders in the host's place and the host leaves the page.
|
|
375
|
+
placeContentBefore(this.host.nativeElement, this.host.nativeElement);
|
|
376
|
+
setElementPresent(this.host.nativeElement, false);
|
|
377
|
+
});
|
|
369
378
|
const read = this.twoFactorRead;
|
|
370
379
|
inject(DestroyRef).onDestroy(() => {
|
|
371
380
|
read.cancelled = true;
|
|
@@ -489,7 +498,7 @@ export class AuthSection {
|
|
|
489
498
|
}
|
|
490
499
|
}
|
|
491
500
|
static ɵfac = function AuthSection_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AuthSection)(); };
|
|
492
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AuthSection, selectors: [["mol-auth-section"]],
|
|
501
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AuthSection, selectors: [["mol-auth-section"]], features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], decls: 1, vars: 1, consts: [["mol-button", "", 3, "click", "variant", "size"], ["mol-flex", "", 3, "align", "justify"], [3, "class"], ["mol-button", "", "data-mol-id", "two-factor-disable", 3, "variant", "size"], ["mol-button", "", "data-mol-id", "two-factor-enable", 3, "variant", "size"], [3, "close", "open", "title"], ["mol-alert", "", 3, "status", "className"], [3, "submit"], ["for", "current-pw"], ["mol-input", "", "type", "password", "autocomplete", "current-password", 3, "change", "id", "required", "value"], ["for", "new-pw"], ["mol-input", "", "type", "password", "autocomplete", "new-password", 3, "change", "id", "required", "value"], ["mol-button", "", "type", "submit", 3, "fullWidth", "loading"], ["mol-button", "", "data-mol-id", "two-factor-disable", 3, "click", "variant", "size"], ["mol-button", "", "data-mol-id", "two-factor-enable", 3, "click", "variant", "size"], ["for", "tf-token"], ["mol-input", "", "type", "text", "autocomplete", "one-time-code", 3, "change", "id", "required", "value"], ["mol-button", "", "type", "submit", 3, "color", "fullWidth", "loading"]], template: function AuthSection_Template(rf, ctx) { if (rf & 1) {
|
|
493
502
|
i0.ɵɵconditionalCreate(0, AuthSection_Conditional_0_Template, 30, 46);
|
|
494
503
|
} if (rf & 2) {
|
|
495
504
|
i0.ɵɵconditional(!ctx.isOauthOnly() ? 0 : -1);
|
|
@@ -500,14 +509,10 @@ export class AuthSection {
|
|
|
500
509
|
args: [{
|
|
501
510
|
selector: 'mol-auth-section',
|
|
502
511
|
standalone: true,
|
|
512
|
+
hostDirectives: [MolPlacement],
|
|
503
513
|
imports: [Alert, Button, Flex, Input, Modal],
|
|
504
|
-
host: {
|
|
505
|
-
'data-parity-unwrap': '',
|
|
506
|
-
style: 'display: contents',
|
|
507
|
-
},
|
|
508
514
|
// prettier-ignore
|
|
509
|
-
template: `@if (!isOauthOnly()) {
|
|
510
|
-
<section>
|
|
515
|
+
template: `@if (!isOauthOnly()) {<section>
|
|
511
516
|
<h3 [class]="cm.cn(cm.sectionHeading, cm.sp('mb', 3))">
|
|
512
517
|
{{ t('settings.authentication', undefined, { defaultValue: 'Authentication' }) }}
|
|
513
518
|
</h3>
|
|
@@ -659,9 +664,8 @@ export class AuthSection {
|
|
|
659
664
|
</button>
|
|
660
665
|
</form>
|
|
661
666
|
}
|
|
662
|
-
</mol-modal>
|
|
663
|
-
}`,
|
|
667
|
+
</mol-modal>}`,
|
|
664
668
|
}]
|
|
665
669
|
}], () => [], null); })();
|
|
666
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthSection, { className: "AuthSection", filePath: "auth-section.component.ts", lineNumber:
|
|
670
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthSection, { className: "AuthSection", filePath: "auth-section.component.ts", lineNumber: 217 }); })();
|
|
667
671
|
//# sourceMappingURL=auth-section.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-section.component.js","sourceRoot":"","sources":["../src/auth-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"auth-section.component.js","sourceRoot":"","sources":["../src/auth-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3F,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;;;;;;;;;;;;;;;;;;IAsDiF,4BAAwE;IAAA,YAAkE;IAAA,iBAAO;;;IAA3I,kGAAiE;IAAC,cAAkE;IAAlE,6FAAkE;;;;IAE3R,kCAMC;IAFC,+LAAS,sBAAe,KAAC;IAGzB,YACF;IAAA,iBAAS;;;IALP,AADA,mCAAqB,cACR;IAIb,cACF;IADE,6GACF;;;;IAEA,kCAMC;IAFC,+LAAS,oBAAa,KAAC;IAGvB,YACF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6,13 +6,16 @@
|
|
|
6
6
|
* children. Angular DI does not: `<ng-content>` nodes keep their declaration
|
|
7
7
|
* site's injector, so a provider on the container is invisible to sections
|
|
8
8
|
* projected inside it. The container therefore registers the context value on
|
|
9
|
-
* its own host ELEMENT
|
|
10
|
-
* `@molecule/app-ui-angular`
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* its own host ELEMENT, in a context of its own (`createDomContext` from
|
|
10
|
+
* `@molecule/app-ui-angular`), and sections look it up from their own host
|
|
11
|
+
* through the rendered tree: the same "nearest enclosing provider" semantics
|
|
12
|
+
* React has, with either host in or out of the page.
|
|
13
13
|
*
|
|
14
14
|
* @module
|
|
15
15
|
*/
|
|
16
|
+
import type { SettingsPanelContextValue } from './types.js';
|
|
17
|
+
/** React's `SettingsPanelContext`, in the rendered tree. */
|
|
18
|
+
export declare const settingsPanelContext: import("@molecule/app-ui-angular").DomContext<SettingsPanelContextValue>;
|
|
16
19
|
/**
|
|
17
20
|
* Registers the container context on `SettingsContainer`'s host element. The
|
|
18
21
|
* value closes over the container instance, so the context always exposes the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-context.d.ts","sourceRoot":"","sources":["../src/container-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"container-context.d.ts","sourceRoot":"","sources":["../src/container-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAE3D,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,0EACoC,CAAA;AAErE;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,GAC1C,MAAM,IAAI,CAWZ"}
|
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
* children. Angular DI does not: `<ng-content>` nodes keep their declaration
|
|
7
7
|
* site's injector, so a provider on the container is invisible to sections
|
|
8
8
|
* projected inside it. The container therefore registers the context value on
|
|
9
|
-
* its own host ELEMENT
|
|
10
|
-
* `@molecule/app-ui-angular`
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* its own host ELEMENT, in a context of its own (`createDomContext` from
|
|
10
|
+
* `@molecule/app-ui-angular`), and sections look it up from their own host
|
|
11
|
+
* through the rendered tree: the same "nearest enclosing provider" semantics
|
|
12
|
+
* React has, with either host in or out of the page.
|
|
13
13
|
*
|
|
14
14
|
* @module
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { createDomContext } from '@molecule/app-ui-angular';
|
|
17
|
+
/** React's `SettingsPanelContext`, in the rendered tree. */
|
|
18
|
+
export const settingsPanelContext = createDomContext('SettingsPanelContext');
|
|
17
19
|
/**
|
|
18
20
|
* Registers the container context on `SettingsContainer`'s host element. The
|
|
19
21
|
* value closes over the container instance, so the context always exposes the
|
|
@@ -32,9 +34,9 @@ export function provideSettingsPanelContext(host, readOnClose) {
|
|
|
32
34
|
onClose();
|
|
33
35
|
},
|
|
34
36
|
};
|
|
35
|
-
|
|
37
|
+
settingsPanelContext.provide(host, value);
|
|
36
38
|
return () => {
|
|
37
|
-
|
|
39
|
+
settingsPanelContext.remove(host);
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
//# sourceMappingURL=container-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-context.js","sourceRoot":"","sources":["../src/container-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"container-context.js","sourceRoot":"","sources":["../src/container-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAI3D,4DAA4D;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAC/B,gBAAgB,CAA4B,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CACzC,IAAa,EACb,WAA2C;IAE3C,MAAM,KAAK,GAA8B;QACvC,OAAO,EAAE,GAAG,EAAE;YACZ,MAAM,OAAO,GAAG,WAAW,EAAE,CAAA;YAC7B,IAAI,OAAO;gBAAE,OAAO,EAAE,CAAA;QACxB,CAAC;KACF,CAAA;IACD,oBAAoB,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACzC,OAAO,GAAG,EAAE;QACV,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACnC,CAAC,CAAA;AACH,CAAC"}
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,oCAAoC,CAAA;AAErE;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,IAAI,yBAAyB,CAgBnE"}
|
package/dist/context.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
12
|
import { ElementRef, inject } from '@angular/core';
|
|
13
|
-
import {
|
|
13
|
+
import { settingsPanelContext } from './container-context.js';
|
|
14
14
|
/**
|
|
15
15
|
* Names the container context `SettingsContainer` publishes and sections
|
|
16
16
|
* consume (React's `SettingsPanelContext` object). Angular's counterpart is
|
|
@@ -31,7 +31,7 @@ export const SettingsPanelContext = 'molecule-settings-panel-context';
|
|
|
31
31
|
export function useSettingsPanelContext() {
|
|
32
32
|
const host = inject(ElementRef).nativeElement;
|
|
33
33
|
const resolve = () => {
|
|
34
|
-
const value =
|
|
34
|
+
const value = settingsPanelContext.find(host);
|
|
35
35
|
if (!value) {
|
|
36
36
|
throw new Error('Settings panel section components must be rendered inside <SettingsContainer>.');
|
|
37
37
|
}
|
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,iCAAiC,CAAA;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,aAA4B,CAAA;IAC5D,MAAM,OAAO,GAAG,GAA8B,EAAE;QAC9C,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC7C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAA;QACH,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC,CAAA;IACD,OAAO;QACL,IAAI,OAAO;YACT,OAAO,OAAO,EAAE,CAAC,OAAO,CAAA;QAC1B,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -19,8 +19,6 @@ export declare class ControlledSwitchSync {
|
|
|
19
19
|
private readonly switchHost;
|
|
20
20
|
/** The attribute state React froze at mount (null until the first sync). */
|
|
21
21
|
private mountedAttrChecked;
|
|
22
|
-
/** The hidden native checkbox (re-resolved while the view is rebuilt). */
|
|
23
|
-
private input;
|
|
24
22
|
/**
|
|
25
23
|
* Creates the sync for one switch.
|
|
26
24
|
* @param switchHost - The switch's host element (`mol-switch`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controlled-switch.d.ts","sourceRoot":"","sources":["../src/controlled-switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH,qBAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"controlled-switch.d.ts","sourceRoot":"","sources":["../src/controlled-switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH,qBAAa,oBAAoB;IAQnB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAPvC,4EAA4E;IAC5E,OAAO,CAAC,kBAAkB,CAAuB;IAEjD;;;OAGG;gBAC0B,UAAU,EAAE,WAAW;IAEpD;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAU7B"}
|
|
@@ -19,8 +19,6 @@ export class ControlledSwitchSync {
|
|
|
19
19
|
switchHost;
|
|
20
20
|
/** The attribute state React froze at mount (null until the first sync). */
|
|
21
21
|
mountedAttrChecked = null;
|
|
22
|
-
/** The hidden native checkbox (re-resolved while the view is rebuilt). */
|
|
23
|
-
input = null;
|
|
24
22
|
/**
|
|
25
23
|
* Creates the sync for one switch.
|
|
26
24
|
* @param switchHost - The switch's host element (`mol-switch`).
|
|
@@ -36,10 +34,7 @@ export class ControlledSwitchSync {
|
|
|
36
34
|
* @param checked - The controlled `checked` value this render shows.
|
|
37
35
|
*/
|
|
38
36
|
sync(checked) {
|
|
39
|
-
|
|
40
|
-
this.input = this.switchHost.querySelector('input');
|
|
41
|
-
}
|
|
42
|
-
const input = this.input;
|
|
37
|
+
const input = this.switchHost.querySelector('input');
|
|
43
38
|
if (!input)
|
|
44
39
|
return;
|
|
45
40
|
if (this.mountedAttrChecked === null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controlled-switch.js","sourceRoot":"","sources":["../src/controlled-switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH,MAAM,OAAO,oBAAoB;
|
|
1
|
+
{"version":3,"file":"controlled-switch.js","sourceRoot":"","sources":["../src/controlled-switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAQF;IAP7B,4EAA4E;IACpE,kBAAkB,GAAmB,IAAI,CAAA;IAEjD;;;OAGG;IACH,YAA6B,UAAuB;QAAvB,eAAU,GAAV,UAAU,CAAa;IAAG,CAAC;IAExD;;;;;;OAMG;IACH,IAAI,CAAC,OAAgB;QACnB,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QACpD,IAAI,CAAC,KAAK;YAAE,OAAM;QAClB,IAAI,IAAI,CAAC,kBAAkB,KAAK,IAAI;YAAE,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAA;QACvE,oDAAoD;QACpD,KAAK,CAAC,OAAO,GAAG,OAAO,CAAA;QACvB,iDAAiD;QACjD,IAAI,IAAI,CAAC,kBAAkB;YAAE,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,CAAC,CAAA;;YACzD,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@molecule/app-angular";
|
|
3
4
|
/**
|
|
4
5
|
* LogOutDeleteSection component.
|
|
5
6
|
*
|
|
6
7
|
* Bottom actions section — Log out + Delete account. React's root is a
|
|
7
|
-
* fragment (the `<section>` plus the delete-account modal), so
|
|
8
|
-
*
|
|
9
|
-
* fragment-like.
|
|
8
|
+
* fragment (the `<section>` plus the delete-account modal), so those nodes
|
|
9
|
+
* render in the host's place and the host itself never appears in the page.
|
|
10
10
|
*
|
|
11
11
|
* Owns the delete-account modal internally (the trigger lives in the
|
|
12
12
|
* same section so the modal lives here too). Reads `onClose` from
|
|
@@ -35,6 +35,10 @@ export declare class LogOutDeleteSection {
|
|
|
35
35
|
protected readonly deleteError: import("@angular/core").WritableSignal<string>;
|
|
36
36
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
37
37
|
protected readonly cm: UIClassMap;
|
|
38
|
+
private readonly host;
|
|
39
|
+
constructor();
|
|
40
|
+
/** Closes the settings panel (the container context's callback). */
|
|
41
|
+
private closePanel;
|
|
38
42
|
/** Signs out, closes the panel and returns to `/login` (React's `handleLogout`). */
|
|
39
43
|
protected logout(): Promise<void>;
|
|
40
44
|
/**
|
|
@@ -45,6 +49,6 @@ export declare class LogOutDeleteSection {
|
|
|
45
49
|
*/
|
|
46
50
|
protected deleteAccount(event: Event): Promise<void>;
|
|
47
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<LogOutDeleteSection, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LogOutDeleteSection, "mol-log-out-delete-section", never, {}, {}, never, never, true,
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LogOutDeleteSection, "mol-log-out-delete-section", never, {}, {}, never, never, true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
49
53
|
}
|
|
50
54
|
//# sourceMappingURL=log-out-delete-section.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-out-delete-section.component.d.ts","sourceRoot":"","sources":["../src/log-out-delete-section.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log-out-delete-section.component.d.ts","sourceRoot":"","sources":["../src/log-out-delete-section.component.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;;AAMlD;;;;;;;;;;;GAWG;AACH,qBAoEa,mBAAmB;IAC9B,2DAA2D;IAC3D,SAAS,CAAC,QAAQ,CAAC,IAAI,uDAAmB;IAE1C,iDAAiD;IACjD,SAAS,CAAC,CAAC,8IAAc;IAEzB,kFAAkF;IAClF,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IAErC,+CAA+C;IAC/C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAE9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IAEvC,0EAA0E;IAC1E,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA4B;IAElD,gDAAgD;IAChD,SAAS,CAAC,QAAQ,CAAC,SAAS,kDAAgB;IAC5C,iDAAiD;IACjD,SAAS,CAAC,QAAQ,CAAC,QAAQ,iDAAa;IACxC,6CAA6C;IAC7C,SAAS,CAAC,QAAQ,CAAC,OAAO,kDAAgB;IAC1C,gDAAgD;IAChD,SAAS,CAAC,QAAQ,CAAC,WAAW,iDAAa;IAE3C,mEAAmE;IACnE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAgB;IAEjD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;;IAUnE,oEAAoE;IACpE,OAAO,CAAC,UAAU;IAIlB,oFAAoF;cACpE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;OAKG;cACa,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;yCA1D/C,mBAAmB;2CAAnB,mBAAmB;CAgF/B"}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, signal } from '@angular/core';
|
|
7
|
-
import { useAuth, useHttpClient, useRouter, useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, ElementRef, inject, signal } from '@angular/core';
|
|
7
|
+
import { MolPlacement, placeContentBefore, setElementPresent, useAuth, useHttpClient, usePlacement, useRouter, useTranslation, } from '@molecule/app-angular';
|
|
8
8
|
import { serverErrorMessage } from '@molecule/app-http';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { Alert, Button, Input, Modal } from '@molecule/app-ui-angular';
|
|
11
11
|
import { useSettingsPanelContext } from './context.js';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@molecule/app-angular";
|
|
13
14
|
const _c0 = () => ({ defaultValue: "Sign out" });
|
|
14
15
|
const _c1 = () => ({ defaultValue: "Delete account" });
|
|
15
16
|
const _c2 = () => ({ defaultValue: "Delete Account" });
|
|
@@ -42,9 +43,8 @@ function LogOutDeleteSection_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
42
43
|
* LogOutDeleteSection component.
|
|
43
44
|
*
|
|
44
45
|
* Bottom actions section — Log out + Delete account. React's root is a
|
|
45
|
-
* fragment (the `<section>` plus the delete-account modal), so
|
|
46
|
-
*
|
|
47
|
-
* fragment-like.
|
|
46
|
+
* fragment (the `<section>` plus the delete-account modal), so those nodes
|
|
47
|
+
* render in the host's place and the host itself never appears in the page.
|
|
48
48
|
*
|
|
49
49
|
* Owns the delete-account modal internally (the trigger lives in the
|
|
50
50
|
* same section so the modal lives here too). Reads `onClose` from
|
|
@@ -77,10 +77,23 @@ export class LogOutDeleteSection {
|
|
|
77
77
|
...(ngDevMode ? [{ debugName: "deleteError" }] : /* istanbul ignore next */ []));
|
|
78
78
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
79
79
|
cm = getClassMap();
|
|
80
|
+
host = inject(ElementRef);
|
|
81
|
+
constructor() {
|
|
82
|
+
usePlacement(() => {
|
|
83
|
+
// React's fragment (the section plus the delete-account modal) renders in
|
|
84
|
+
// the host's place; the host itself leaves the page.
|
|
85
|
+
placeContentBefore(this.host.nativeElement, this.host.nativeElement);
|
|
86
|
+
setElementPresent(this.host.nativeElement, false);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/** Closes the settings panel (the container context's callback). */
|
|
90
|
+
closePanel() {
|
|
91
|
+
this.panel.onClose();
|
|
92
|
+
}
|
|
80
93
|
/** Signs out, closes the panel and returns to `/login` (React's `handleLogout`). */
|
|
81
94
|
async logout() {
|
|
82
95
|
await this.auth.logout();
|
|
83
|
-
this.
|
|
96
|
+
this.closePanel();
|
|
84
97
|
this.router.navigate('/login');
|
|
85
98
|
}
|
|
86
99
|
/**
|
|
@@ -98,7 +111,7 @@ export class LogOutDeleteSection {
|
|
|
98
111
|
data: { password: this.password() },
|
|
99
112
|
});
|
|
100
113
|
await this.auth.logout();
|
|
101
|
-
this.
|
|
114
|
+
this.closePanel();
|
|
102
115
|
this.router.navigate('/login');
|
|
103
116
|
}
|
|
104
117
|
catch (err) {
|
|
@@ -112,7 +125,7 @@ export class LogOutDeleteSection {
|
|
|
112
125
|
}
|
|
113
126
|
}
|
|
114
127
|
static ɵfac = function LogOutDeleteSection_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LogOutDeleteSection)(); };
|
|
115
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LogOutDeleteSection, selectors: [["mol-log-out-delete-section"]],
|
|
128
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LogOutDeleteSection, selectors: [["mol-log-out-delete-section"]], features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], decls: 17, vars: 31, consts: [["mol-button", "", "data-mol-id", "user-menu-logout", 3, "click", "color", "fullWidth"], ["mol-button", "", "data-mol-id", "user-menu-delete-account", 3, "click", "variant", "fullWidth"], [3, "close", "open", "title"], ["mol-alert", "", 3, "status", "className"], [3, "submit"], ["for", "delete-pw"], ["mol-input", "", "type", "password", 3, "change", "id", "required", "value"], ["mol-button", "", "type", "submit", 3, "color", "fullWidth", "loading"]], template: function LogOutDeleteSection_Template(rf, ctx) { if (rf & 1) {
|
|
116
129
|
i0.ɵɵelementStart(0, "section")(1, "button", 0);
|
|
117
130
|
i0.ɵɵlistener("click", function LogOutDeleteSection_Template_button_click_1_listener() { return ctx.logout(); });
|
|
118
131
|
i0.ɵɵtext(2);
|
|
@@ -176,11 +189,8 @@ export class LogOutDeleteSection {
|
|
|
176
189
|
args: [{
|
|
177
190
|
selector: 'mol-log-out-delete-section',
|
|
178
191
|
standalone: true,
|
|
192
|
+
hostDirectives: [MolPlacement],
|
|
179
193
|
imports: [Alert, Button, Input, Modal],
|
|
180
|
-
host: {
|
|
181
|
-
'data-parity-unwrap': '',
|
|
182
|
-
style: 'display: contents',
|
|
183
|
-
},
|
|
184
194
|
template: `<section [class]="cm.stack(3)">
|
|
185
195
|
<button
|
|
186
196
|
mol-button
|
|
@@ -244,6 +254,6 @@ export class LogOutDeleteSection {
|
|
|
244
254
|
</form>
|
|
245
255
|
</mol-modal>`,
|
|
246
256
|
}]
|
|
247
|
-
}],
|
|
248
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LogOutDeleteSection, { className: "LogOutDeleteSection", filePath: "log-out-delete-section.component.ts", lineNumber:
|
|
257
|
+
}], () => [], null); })();
|
|
258
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LogOutDeleteSection, { className: "LogOutDeleteSection", filePath: "log-out-delete-section.component.ts", lineNumber: 107 }); })();
|
|
249
259
|
//# sourceMappingURL=log-out-delete-section.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-out-delete-section.component.js","sourceRoot":"","sources":["../src/log-out-delete-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"log-out-delete-section.component.js","sourceRoot":"","sources":["../src/log-out-delete-section.component.ts"],"names":[],"mappings":"A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sB;YAAtB,+BAAsB;YAAC,cAE5C;YAF4C,2GAE5C;YAGA,cAAkB;YAGlB,AADA,AAFA,gCAAkB,kBAED,yBACG;YAIS,cAAiB;YAAoB,AAAnB,AAAlB,+BAAiB,mBAAmB,0BAAsB;YACzF,cAMC;YAND,yCAMC;4BA3DC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;;iFAgE1B,mBAAmB;cApE/B,SAAS;eAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;gBACtC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6DK;aAChB;;kFACY,mBAAmB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@molecule/app-angular";
|
|
3
4
|
/** One tier price as the section renders it (React's local `TierPrice`). */
|
|
4
5
|
export interface TierPrice {
|
|
5
6
|
stripePriceId?: string;
|
|
@@ -16,9 +17,8 @@ export interface Tier {
|
|
|
16
17
|
* TiersUpgradeSection component.
|
|
17
18
|
*
|
|
18
19
|
* Billing section with full multi-tier upgrade flow. React's root is a
|
|
19
|
-
* fragment (the `<section>` plus the upgrade modal), so
|
|
20
|
-
*
|
|
21
|
-
* fragment-like.
|
|
20
|
+
* fragment (the `<section>` plus the upgrade modal), so those nodes render in
|
|
21
|
+
* the host's place and the host itself never appears in the page.
|
|
22
22
|
*
|
|
23
23
|
* Replaces the simpler `BillingSection` for apps backed by
|
|
24
24
|
* `@molecule/api-payments-stripe` + `@molecule/api-resource-payment` — loads
|
|
@@ -55,6 +55,7 @@ export declare class TiersUpgradeSection {
|
|
|
55
55
|
protected readonly upgradeError: import("@angular/core").WritableSignal<string>;
|
|
56
56
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
57
57
|
protected readonly cm: UIClassMap;
|
|
58
|
+
private readonly host;
|
|
58
59
|
/**
|
|
59
60
|
* The (tier, price) pairs the modal lists: every paid tier's prices that
|
|
60
61
|
* carry a stripe price id (React's filter + flatMap).
|
|
@@ -83,6 +84,6 @@ export declare class TiersUpgradeSection {
|
|
|
83
84
|
*/
|
|
84
85
|
protected cancelSubscription: () => Promise<void>;
|
|
85
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<TiersUpgradeSection, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TiersUpgradeSection, "mol-tiers-upgrade-section", never, { "redirectToCheckout": { "alias": "redirectToCheckout"; "required": false; }; }, {}, never, never, true,
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TiersUpgradeSection, "mol-tiers-upgrade-section", never, { "redirectToCheckout": { "alias": "redirectToCheckout"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
87
88
|
}
|
|
88
89
|
//# sourceMappingURL=tiers-upgrade-section.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiers-upgrade-section.component.d.ts","sourceRoot":"","sources":["../src/tiers-upgrade-section.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tiers-upgrade-section.component.d.ts","sourceRoot":"","sources":["../src/tiers-upgrade-section.component.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;;AAKlD,4EAA4E;AAC5E,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,8EAA8E;AAC9E,MAAM,WAAW,IAAI;IACnB,OAAO,E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AwK/B"}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, DestroyRef, inject, signal } from '@angular/core';
|
|
7
|
-
import { useHttpClient, useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, DestroyRef, ElementRef, inject, signal } from '@angular/core';
|
|
7
|
+
import { MolPlacement, placeContentBefore, setElementPresent, useHttpClient, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
8
8
|
import { serverErrorMessage } from '@molecule/app-http';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { Alert, Button, ConfirmButton, Flex, Modal } from '@molecule/app-ui-angular';
|
|
11
11
|
import { openUrl } from '@molecule/app-utilities';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@molecule/app-angular";
|
|
13
14
|
const _c0 = () => ({ defaultValue: "Billing" });
|
|
14
15
|
const _c1 = () => ({ defaultValue: "Plan: " });
|
|
15
16
|
const _c2 = () => ({ defaultValue: "Upgrade your plan" });
|
|
@@ -113,9 +114,8 @@ function TiersUpgradeSection_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
113
114
|
* TiersUpgradeSection component.
|
|
114
115
|
*
|
|
115
116
|
* Billing section with full multi-tier upgrade flow. React's root is a
|
|
116
|
-
* fragment (the `<section>` plus the upgrade modal), so
|
|
117
|
-
*
|
|
118
|
-
* fragment-like.
|
|
117
|
+
* fragment (the `<section>` plus the upgrade modal), so those nodes render in
|
|
118
|
+
* the host's place and the host itself never appears in the page.
|
|
119
119
|
*
|
|
120
120
|
* Replaces the simpler `BillingSection` for apps backed by
|
|
121
121
|
* `@molecule/api-payments-stripe` + `@molecule/api-resource-payment` — loads
|
|
@@ -158,6 +158,7 @@ export class TiersUpgradeSection {
|
|
|
158
158
|
...(ngDevMode ? [{ debugName: "upgradeError" }] : /* istanbul ignore next */ []));
|
|
159
159
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
160
160
|
cm = getClassMap();
|
|
161
|
+
host = inject(ElementRef);
|
|
161
162
|
/**
|
|
162
163
|
* The (tier, price) pairs the modal lists: every paid tier's prices that
|
|
163
164
|
* carry a stripe price id (React's filter + flatMap).
|
|
@@ -183,6 +184,12 @@ export class TiersUpgradeSection {
|
|
|
183
184
|
* dropped like React's cancelled one.
|
|
184
185
|
*/
|
|
185
186
|
constructor() {
|
|
187
|
+
usePlacement(() => {
|
|
188
|
+
// React's fragment (the section plus the upgrade modal) renders in the
|
|
189
|
+
// host's place; the host itself leaves the page.
|
|
190
|
+
placeContentBefore(this.host.nativeElement, this.host.nativeElement);
|
|
191
|
+
setElementPresent(this.host.nativeElement, false);
|
|
192
|
+
});
|
|
186
193
|
let cancelled = false;
|
|
187
194
|
inject(DestroyRef).onDestroy(() => {
|
|
188
195
|
cancelled = true;
|
|
@@ -276,7 +283,7 @@ export class TiersUpgradeSection {
|
|
|
276
283
|
}
|
|
277
284
|
};
|
|
278
285
|
static ɵfac = function TiersUpgradeSection_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TiersUpgradeSection)(); };
|
|
279
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TiersUpgradeSection, selectors: [["mol-tiers-upgrade-section"]],
|
|
286
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TiersUpgradeSection, selectors: [["mol-tiers-upgrade-section"]], inputs: { redirectToCheckout: "redirectToCheckout" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], decls: 14, vars: 17, consts: [["mol-flex", "", 3, "align", "justify"], ["mol-button", "", 3, "variant", "size"], ["mol-confirm-button", "", "data-mol-id", "billing-cancel-subscription", 3, "variant", "size", "onConfirm"], [3, "close", "open", "title"], ["mol-alert", "", 3, "status", "className"], [3, "class"], ["mol-button", "", 3, "click", "variant", "size"], ["ngProjectAs", "[slot=label]", 5, ["", "slot", "label"]], ["ngProjectAs", "[slot=confirmLabel]", 5, ["", "slot", "confirmlabel"]], ["mol-button", "", 3, "click", "size", "loading"]], template: function TiersUpgradeSection_Template(rf, ctx) { if (rf & 1) {
|
|
280
287
|
i0.ɵɵelementStart(0, "section")(1, "h3");
|
|
281
288
|
i0.ɵɵtext(2);
|
|
282
289
|
i0.ɵɵelementEnd();
|
|
@@ -321,12 +328,9 @@ export class TiersUpgradeSection {
|
|
|
321
328
|
args: [{
|
|
322
329
|
selector: 'mol-tiers-upgrade-section',
|
|
323
330
|
standalone: true,
|
|
331
|
+
hostDirectives: [MolPlacement],
|
|
324
332
|
imports: [Alert, Button, ConfirmButton, Flex, Modal],
|
|
325
333
|
inputs: ['redirectToCheckout'],
|
|
326
|
-
host: {
|
|
327
|
-
'data-parity-unwrap': '',
|
|
328
|
-
style: 'display: contents',
|
|
329
|
-
},
|
|
330
334
|
template: `<section>
|
|
331
335
|
<h3 [class]="cm.cn(cm.sectionHeading, cm.sp('mb', 3))">
|
|
332
336
|
{{ t('settings.billing', undefined, { defaultValue: 'Billing' }) }}
|
|
@@ -403,5 +407,5 @@ export class TiersUpgradeSection {
|
|
|
403
407
|
</mol-modal>`,
|
|
404
408
|
}]
|
|
405
409
|
}], () => [], null); })();
|
|
406
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TiersUpgradeSection, { className: "TiersUpgradeSection", filePath: "tiers-upgrade-section.component.ts", lineNumber:
|
|
410
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TiersUpgradeSection, { className: "TiersUpgradeSection", filePath: "tiers-upgrade-section.component.ts", lineNumber: 134 }); })();
|
|
407
411
|
//# sourceMappingURL=tiers-upgrade-section.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiers-upgrade-section.component.js","sourceRoot":"","sources":["../src/tiers-upgrade-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"tiers-upgrade-section.component.js","sourceRoot":"","sources":["../src/tiers-upgrade-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEjF,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;IAgDvC,iCAAuF;IAAhC,uLAAS,uBAAgB,IAAI,CAAC,KAAC;IACpF,YACF;IAAA,iBAAS;;;IAFgC,AAAtB,mCAAqB,cAAc;IACpD,cACF;IADE,oGACF;;;IAEA,iCAMC;IACC,gCAAyC;IAAA,YAEvC;;IACD,gCAAgD;IAAA,YAI/C;;IACJ,iBAAS;;;IAXP,AADA,AADA,mCAAqB,cACR,wCACmB;IAGS,eAEvC;IAFuC,gGAEvC;IAC+C,eAI/C;IAJ+C,uGAI/C;;;IAWN,8BAA+D;IAAA,YAAmB;IAAA,iBAAM;;;IAAtD,AAAnB,gCAAkB,oCAA6B;IAAC,cAAmB;IAAnB,yBAAmB;;;IAGlF,yBAAoD;IAClD,YAGF;IAAA,iBAAI;;;IAJD,0EAAgD;IACjD,cAGF;IAHE,4GAGF;;;;IAOU,AADF,AADF,AADF,0BAA4B,aAC6B,UAChD,QACoC;IACrC,YACF;IAAA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,EAAE,IAAI,EAAE,KAAK,CAAC;gBACpD,MAAM,EAAE,CAAC,oBAAoB,CAAC;gBAC9B,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyEK;aAChB;;kFACY,mBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-settings-panel-angular",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Composable settings panel — a SettingsContainer + family of section sub-components (Account, Auth, Notifications, Billing, Devices, ThisDevice, LogOutDelete). Apps compose via content projection, picking which sections to include and what order.",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-settings-panel-angular",
|
|
6
6
|
"type": "module",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"@angular/common": "^22.0.0",
|
|
47
47
|
"@angular/core": "^22.0.0",
|
|
48
48
|
"@angular/platform-browser": "^22.0.0",
|
|
49
|
-
"@molecule/app-angular": "^3.
|
|
49
|
+
"@molecule/app-angular": "^3.13.0",
|
|
50
50
|
"@molecule/app-auth": "^3.0.0",
|
|
51
51
|
"@molecule/app-http": "^1.8.0",
|
|
52
52
|
"@molecule/app-push": "^1.1.0",
|
|
53
53
|
"@molecule/app-ui": "^1.3.11",
|
|
54
|
-
"@molecule/app-ui-angular": "^1.
|
|
54
|
+
"@molecule/app-ui-angular": "^1.5.0",
|
|
55
55
|
"@molecule/app-utilities": "^1.0.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
"@angular/compiler-cli": "22.2.3",
|
|
61
61
|
"@angular/core": "22.2.3",
|
|
62
62
|
"@angular/platform-browser": "22.2.3",
|
|
63
|
-
"@molecule/app-angular": "3.
|
|
63
|
+
"@molecule/app-angular": "3.13.0",
|
|
64
64
|
"@molecule/app-auth": "3.6.0",
|
|
65
65
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
66
66
|
"@molecule/app-http": "1.10.0",
|
|
67
67
|
"@molecule/app-i18n": "1.2.2",
|
|
68
68
|
"@molecule/app-icons": "1.0.4",
|
|
69
|
-
"@molecule/app-push": "1.
|
|
69
|
+
"@molecule/app-push": "1.2.0",
|
|
70
70
|
"@molecule/app-ui": "1.5.0",
|
|
71
|
-
"@molecule/app-ui-angular": "1.
|
|
71
|
+
"@molecule/app-ui-angular": "1.5.1",
|
|
72
72
|
"@molecule/app-utilities": "1.0.7",
|
|
73
73
|
"@types/node": "26.6.5",
|
|
74
|
-
"jsdom": "
|
|
74
|
+
"jsdom": "31.0.1",
|
|
75
75
|
"rxjs": "7.8.2",
|
|
76
76
|
"typescript": "6.0.3",
|
|
77
77
|
"vitest": "4.1.12",
|