@molecule/app-settings-panel-angular 0.0.0-stage → 1.1.0

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 (63) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +1992 -2
  3. package/dist/account-section.component.d.ts +123 -0
  4. package/dist/account-section.component.d.ts.map +1 -0
  5. package/dist/account-section.component.js +350 -0
  6. package/dist/account-section.component.js.map +1 -0
  7. package/dist/appearance-section.component.d.ts +52 -0
  8. package/dist/appearance-section.component.d.ts.map +1 -0
  9. package/dist/appearance-section.component.js +128 -0
  10. package/dist/appearance-section.component.js.map +1 -0
  11. package/dist/auth-section.component.d.ts +125 -0
  12. package/dist/auth-section.component.d.ts.map +1 -0
  13. package/dist/auth-section.component.js +667 -0
  14. package/dist/auth-section.component.js.map +1 -0
  15. package/dist/billing-section.component.d.ts +52 -0
  16. package/dist/billing-section.component.d.ts.map +1 -0
  17. package/dist/billing-section.component.js +137 -0
  18. package/dist/billing-section.component.js.map +1 -0
  19. package/dist/context.d.ts +46 -0
  20. package/dist/context.d.ts.map +1 -0
  21. package/dist/context.js +73 -0
  22. package/dist/context.js.map +1 -0
  23. package/dist/controlled-switch.d.ts +38 -0
  24. package/dist/controlled-switch.d.ts.map +1 -0
  25. package/dist/controlled-switch.js +56 -0
  26. package/dist/controlled-switch.js.map +1 -0
  27. package/dist/devices-section.component.d.ts +88 -0
  28. package/dist/devices-section.component.d.ts.map +1 -0
  29. package/dist/devices-section.component.js +374 -0
  30. package/dist/devices-section.component.js.map +1 -0
  31. package/dist/index.d.ts +107 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +107 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/log-out-delete-section.component.d.ts +50 -0
  36. package/dist/log-out-delete-section.component.d.ts.map +1 -0
  37. package/dist/log-out-delete-section.component.js +249 -0
  38. package/dist/log-out-delete-section.component.js.map +1 -0
  39. package/dist/notifications-section.component.d.ts +78 -0
  40. package/dist/notifications-section.component.d.ts.map +1 -0
  41. package/dist/notifications-section.component.js +256 -0
  42. package/dist/notifications-section.component.js.map +1 -0
  43. package/dist/push-toggle.d.ts +12 -0
  44. package/dist/push-toggle.d.ts.map +1 -0
  45. package/dist/push-toggle.js +11 -0
  46. package/dist/push-toggle.js.map +1 -0
  47. package/dist/settings-container.component.d.ts +33 -0
  48. package/dist/settings-container.component.d.ts.map +1 -0
  49. package/dist/settings-container.component.js +64 -0
  50. package/dist/settings-container.component.js.map +1 -0
  51. package/dist/this-device-section.component.d.ts +40 -0
  52. package/dist/this-device-section.component.d.ts.map +1 -0
  53. package/dist/this-device-section.component.js +149 -0
  54. package/dist/this-device-section.component.js.map +1 -0
  55. package/dist/tiers-upgrade-section.component.d.ts +89 -0
  56. package/dist/tiers-upgrade-section.component.d.ts.map +1 -0
  57. package/dist/tiers-upgrade-section.component.js +407 -0
  58. package/dist/tiers-upgrade-section.component.js.map +1 -0
  59. package/dist/types.d.ts +46 -0
  60. package/dist/types.d.ts.map +1 -0
  61. package/dist/types.js +8 -0
  62. package/dist/types.js.map +1 -0
  63. package/package.json +78 -4
@@ -0,0 +1,123 @@
1
+ /**
2
+ * AccountSection component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { type AfterViewInit, ElementRef } from '@angular/core';
7
+ import type { UserProfile } from '@molecule/app-auth';
8
+ import type { UIClassMap } from '@molecule/app-ui';
9
+ import * as i0 from "@angular/core";
10
+ /** The controlled values the account form edits (React's local `AccountValues`). */
11
+ interface AccountValues {
12
+ name: string;
13
+ email: string;
14
+ }
15
+ /**
16
+ * AccountSection component.
17
+ *
18
+ * Account fields over the shared profile lifecycle. Background validation uses
19
+ * the auth client's configured route, mapping and session ownership guards.
20
+ *
21
+ * `UserProfile.email` is optional (phone/handle accounts have none), so email
22
+ * is validated only when non-empty and a blank email is never sent: clearing
23
+ * the field leaves the stored address untouched, and a name-only account can
24
+ * still save its name.
25
+ *
26
+ * The host IS the `<section>` React renders. Blur-to-save is wired on the
27
+ * `<form>` (`focusout` bubbles from the inputs, which the Angular `Input`
28
+ * component does not re-emit) and dispatches on the blurred control's id —
29
+ * exactly React's per-input `saveOnBlur`.
30
+ *
31
+ * The email input's `aria-invalid` / `aria-describedby` are synced onto its
32
+ * native control by an effect, the way React's rest props do
33
+ * (`aria-invalid={emailError ? …} : undefined` — absent when valid, so the
34
+ * attribute must be REMOVED, which the UI `Input`'s own always-on binding
35
+ * cannot express); this mirrors what the UI package's `FormField` does when it
36
+ * patches a control directly.
37
+ */
38
+ export declare class AccountSection implements AfterViewInit {
39
+ /** The account fields over the shared profile lifecycle. */
40
+ protected readonly profile: import("@molecule/app-angular").UseProfileFormResult<UserProfile, AccountValues>;
41
+ /** The name field's registration (its onChange marks the field edited). */
42
+ protected readonly nameReg: Omit<import("@molecule/app-forms").FieldRegistration, "value"> & {
43
+ value: string;
44
+ };
45
+ /** The email field's registration, with the email format validation. */
46
+ protected readonly emailReg: Omit<import("@molecule/app-forms").FieldRegistration, "value"> & {
47
+ value: string;
48
+ };
49
+ /** Reactive translation, read in the injection context. */
50
+ protected readonly i18n: import("@molecule/app-angular").UseTranslationResult;
51
+ private readonly authClient;
52
+ /** The name field's host (the native control is looked up inside it). */
53
+ nameField?: ElementRef<HTMLElement>;
54
+ /** The email field's host. */
55
+ emailField?: ElementRef<HTMLElement>;
56
+ /** The bonded ClassMap (styling tokens resolve at render time). */
57
+ protected readonly cm: UIClassMap;
58
+ /** The translation function for the template. */
59
+ protected t: (key: string, values?: import("@molecule/app-i18n").InterpolationValues, options?: import("@molecule/app-i18n").TranslateOptions) => string;
60
+ /** The name field's controlled value (form state is the change signal). */
61
+ protected readonly nameValue: import("@angular/core").Signal<string>;
62
+ /** The email field's controlled value. */
63
+ protected readonly emailValue: import("@angular/core").Signal<string>;
64
+ /** The email field's validation message, or null when valid. */
65
+ protected readonly emailError: import("@angular/core").Signal<string | null>;
66
+ /** The latest save failure's display text, or null. */
67
+ protected readonly saveError: import("@angular/core").Signal<string | null>;
68
+ /** The cached native email control (re-resolved when the view is rebuilt). */
69
+ private emailControl;
70
+ /**
71
+ * Starts the auth client's background session validation (React's mount
72
+ * effect) and wires the email control's aria sync. The client owns the
73
+ * route, response mapping and stale-read guards; an older account read must
74
+ * not publish over a save or a different session.
75
+ */
76
+ constructor();
77
+ /** Applies the initial rest-prop state (hooks run on the mount passes). */
78
+ ngAfterViewInit(): void;
79
+ /**
80
+ * Forwards the field's `change` (React's text-input onChange).
81
+ * @param event - The native input event the UI Input re-emitted.
82
+ */
83
+ protected nameChange(event: Event): void;
84
+ /**
85
+ * Forwards the field's `change` (React's text-input onChange).
86
+ * @param event - The native input event the UI Input re-emitted.
87
+ */
88
+ protected emailChange(event: Event): void;
89
+ /**
90
+ * Submits the form (React's `profile.formProps` onSubmit).
91
+ * @param event - The native submit event.
92
+ */
93
+ protected submitForm(event: Event): void;
94
+ /**
95
+ * Saves on blur, exactly React's per-input `saveOnBlur`: the field's
96
+ * registration blur first (touch + field validation), then the profile
97
+ * submit.
98
+ * @param event - The bubbling focusout from one of the two inputs.
99
+ */
100
+ protected saveOnFormBlur(event: FocusEvent): void;
101
+ /**
102
+ * React's `saveOnBlur` wrapper: one blur, then one submit.
103
+ * @param registration - The blurred field's registration.
104
+ */
105
+ private saveOnBlur;
106
+ /**
107
+ * Looks the native email control up inside the UI `Input`'s host and
108
+ * registers it as the field ref (React's spread `ref`, so a failed submit
109
+ * focuses the first invalid field).
110
+ */
111
+ private resolveEmailControl;
112
+ /**
113
+ * Applies React's rest-prop state for one error value: `aria-invalid` and
114
+ * `aria-describedby` on the native control while invalid, removed while
115
+ * valid.
116
+ * @param error - The field's validation message, or null.
117
+ */
118
+ private syncEmailAria;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountSection, never>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccountSection, "section[mol-settings-account]", never, {}, {}, never, never, true, never>;
121
+ }
122
+ export {};
123
+ //# sourceMappingURL=account-section.component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C,QAAQ,CAAC,SAAS,gDAQ1B;IAEF,8EAA8E;IAC9E,OAAO,CAAC,YAAY,CAAgC;IAEpD;;;;;OAKG;;IAeH,2EAA2E;IAC3E,eAAe,IAAI,IAAI;IAOvB;;;OAGG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIxC;;;OAGG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIzC;;;OAGG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIxC;;;;;OAKG;IACH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAMjD;;;OAGG;IACH,OAAO,CAAC,UAAU;IAKlB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;;;OAKG;IACH,OAAO,CAAC,aAAa;yCAvJV,cAAc;2CAAd,cAAc;CAmK1B"}
@@ -0,0 +1,350 @@
1
+ /**
2
+ * AccountSection component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { Component, computed, effect, ElementRef, untracked, ViewChild, } from '@angular/core';
7
+ import { useAuthClient, useProfileForm, useTranslation } from '@molecule/app-angular';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { Flex, Input, Spinner } from '@molecule/app-ui-angular';
10
+ import * as i0 from "@angular/core";
11
+ const _c0 = ["nameField"];
12
+ const _c1 = ["emailField"];
13
+ const _c2 = () => ({ defaultValue: "Account" });
14
+ const _c3 = () => ({ defaultValue: "Name" });
15
+ const _c4 = () => ({ defaultValue: "Email" });
16
+ function AccountSection_Conditional_3_Template(rf, ctx) { if (rf & 1) {
17
+ i0.ɵɵelement(0, "div", 3);
18
+ } if (rf & 2) {
19
+ i0.ɵɵproperty("size", "xs");
20
+ } }
21
+ function AccountSection_Conditional_15_Template(rf, ctx) { if (rf & 1) {
22
+ i0.ɵɵelementStart(0, "p", 11);
23
+ i0.ɵɵtext(1);
24
+ i0.ɵɵelementEnd();
25
+ } if (rf & 2) {
26
+ const ctx_r0 = i0.ɵɵnextContext();
27
+ i0.ɵɵclassMap(ctx_r0.cm.cn(ctx_r0.cm.textSize("xs"), ctx_r0.cm.textError, ctx_r0.cm.sp("mt", 1)));
28
+ i0.ɵɵadvance();
29
+ i0.ɵɵtextInterpolate1(" ", ctx, " ");
30
+ } }
31
+ function AccountSection_Conditional_16_Template(rf, ctx) { if (rf & 1) {
32
+ i0.ɵɵelementStart(0, "p", 12);
33
+ i0.ɵɵtext(1);
34
+ i0.ɵɵelementEnd();
35
+ } if (rf & 2) {
36
+ const ctx_r0 = i0.ɵɵnextContext();
37
+ i0.ɵɵclassMap(ctx_r0.cm.cn(ctx_r0.cm.textSize("xs"), ctx_r0.cm.textError, ctx_r0.cm.sp("mt", 1)));
38
+ i0.ɵɵadvance();
39
+ i0.ɵɵtextInterpolate1(" ", ctx, " ");
40
+ } }
41
+ /**
42
+ * AccountSection component.
43
+ *
44
+ * Account fields over the shared profile lifecycle. Background validation uses
45
+ * the auth client's configured route, mapping and session ownership guards.
46
+ *
47
+ * `UserProfile.email` is optional (phone/handle accounts have none), so email
48
+ * is validated only when non-empty and a blank email is never sent: clearing
49
+ * the field leaves the stored address untouched, and a name-only account can
50
+ * still save its name.
51
+ *
52
+ * The host IS the `<section>` React renders. Blur-to-save is wired on the
53
+ * `<form>` (`focusout` bubbles from the inputs, which the Angular `Input`
54
+ * component does not re-emit) and dispatches on the blurred control's id —
55
+ * exactly React's per-input `saveOnBlur`.
56
+ *
57
+ * The email input's `aria-invalid` / `aria-describedby` are synced onto its
58
+ * native control by an effect, the way React's rest props do
59
+ * (`aria-invalid={emailError ? …} : undefined` — absent when valid, so the
60
+ * attribute must be REMOVED, which the UI `Input`'s own always-on binding
61
+ * cannot express); this mirrors what the UI package's `FormField` does when it
62
+ * patches a control directly.
63
+ */
64
+ export class AccountSection {
65
+ /** The account fields over the shared profile lifecycle. */
66
+ profile = useProfileForm({
67
+ defaultValues: { name: '', email: '' },
68
+ toValues: (user) => ({ name: user.name ?? '', email: user.email ?? '' }),
69
+ toPatch: ({ email, ...changes }) => (email ? { ...changes, email } : changes),
70
+ });
71
+ /** The name field's registration (its onChange marks the field edited). */
72
+ nameReg = this.profile.register('name');
73
+ /** The email field's registration, with the email format validation. */
74
+ emailReg = this.profile.register('email', { email: true });
75
+ /** Reactive translation, read in the injection context. */
76
+ i18n = useTranslation();
77
+ authClient = useAuthClient();
78
+ /** The name field's host (the native control is looked up inside it). */
79
+ nameField;
80
+ /** The email field's host. */
81
+ emailField;
82
+ /** The bonded ClassMap (styling tokens resolve at render time). */
83
+ cm = getClassMap();
84
+ /** The translation function for the template. */
85
+ t = this.i18n.t;
86
+ /** The name field's controlled value (form state is the change signal). */
87
+ nameValue = computed(() => {
88
+ void this.profile.formState();
89
+ return this.profile.getValue('name');
90
+ }, /* @ts-ignore */
91
+ ...(ngDevMode ? [{ debugName: "nameValue" }] : /* istanbul ignore next */ []));
92
+ /** The email field's controlled value. */
93
+ emailValue = computed(() => {
94
+ void this.profile.formState();
95
+ return this.profile.getValue('email');
96
+ }, /* @ts-ignore */
97
+ ...(ngDevMode ? [{ debugName: "emailValue" }] : /* istanbul ignore next */ []));
98
+ /** The email field's validation message, or null when valid. */
99
+ emailError = computed(() => {
100
+ void this.profile.formState();
101
+ return this.profile.getError('email') ?? null;
102
+ }, /* @ts-ignore */
103
+ ...(ngDevMode ? [{ debugName: "emailError" }] : /* istanbul ignore next */ []));
104
+ /** The latest save failure's display text, or null. */
105
+ saveError = computed(() => {
106
+ const error = this.profile.error();
107
+ if (!error)
108
+ return null;
109
+ return error instanceof Error
110
+ ? error.message
111
+ : this.t('settings.failedToUpdateProfile', undefined, {
112
+ defaultValue: 'Failed to update profile',
113
+ });
114
+ }, /* @ts-ignore */
115
+ ...(ngDevMode ? [{ debugName: "saveError" }] : /* istanbul ignore next */ []));
116
+ /** The cached native email control (re-resolved when the view is rebuilt). */
117
+ emailControl = null;
118
+ /**
119
+ * Starts the auth client's background session validation (React's mount
120
+ * effect) and wires the email control's aria sync. The client owns the
121
+ * route, response mapping and stale-read guards; an older account read must
122
+ * not publish over a save or a different session.
123
+ */
124
+ constructor() {
125
+ // A provider's background validation must not cause an unhandled
126
+ // rejection: render its auth state while useProfileForm reports mutation
127
+ // failures.
128
+ void this.authClient.validateSession?.().catch((_error) => { });
129
+ // React's rest props on the email input: present with the error target
130
+ // while the field is invalid, REMOVED while valid. An effect (view hooks
131
+ // are skipped by signal-driven refreshes) keeps it exact.
132
+ effect(() => {
133
+ const error = this.emailError();
134
+ untracked(() => this.syncEmailAria(error));
135
+ });
136
+ }
137
+ /** Applies the initial rest-prop state (hooks run on the mount passes). */
138
+ ngAfterViewInit() {
139
+ const name = this.nameField?.nativeElement.querySelector('input');
140
+ if (name)
141
+ this.nameReg.ref?.(name);
142
+ this.resolveEmailControl();
143
+ this.syncEmailAria(this.emailError());
144
+ }
145
+ /**
146
+ * Forwards the field's `change` (React's text-input onChange).
147
+ * @param event - The native input event the UI Input re-emitted.
148
+ */
149
+ nameChange(event) {
150
+ this.nameReg.onChange(event);
151
+ }
152
+ /**
153
+ * Forwards the field's `change` (React's text-input onChange).
154
+ * @param event - The native input event the UI Input re-emitted.
155
+ */
156
+ emailChange(event) {
157
+ this.emailReg.onChange(event);
158
+ }
159
+ /**
160
+ * Submits the form (React's `profile.formProps` onSubmit).
161
+ * @param event - The native submit event.
162
+ */
163
+ submitForm(event) {
164
+ this.profile.formProps.onSubmit(event);
165
+ }
166
+ /**
167
+ * Saves on blur, exactly React's per-input `saveOnBlur`: the field's
168
+ * registration blur first (touch + field validation), then the profile
169
+ * submit.
170
+ * @param event - The bubbling focusout from one of the two inputs.
171
+ */
172
+ saveOnFormBlur(event) {
173
+ const id = event.target?.id;
174
+ if (id === 'settings-name')
175
+ this.saveOnBlur(this.nameReg);
176
+ else if (id === 'settings-email')
177
+ this.saveOnBlur(this.emailReg);
178
+ }
179
+ /**
180
+ * React's `saveOnBlur` wrapper: one blur, then one submit.
181
+ * @param registration - The blurred field's registration.
182
+ */
183
+ saveOnBlur(registration) {
184
+ registration.onBlur();
185
+ void this.profile.submit();
186
+ }
187
+ /**
188
+ * Looks the native email control up inside the UI `Input`'s host and
189
+ * registers it as the field ref (React's spread `ref`, so a failed submit
190
+ * focuses the first invalid field).
191
+ */
192
+ resolveEmailControl() {
193
+ this.emailControl =
194
+ this.emailField?.nativeElement.querySelector('input') ?? null;
195
+ if (this.emailControl)
196
+ this.emailReg.ref?.(this.emailControl);
197
+ }
198
+ /**
199
+ * Applies React's rest-prop state for one error value: `aria-invalid` and
200
+ * `aria-describedby` on the native control while invalid, removed while
201
+ * valid.
202
+ * @param error - The field's validation message, or null.
203
+ */
204
+ syncEmailAria(error) {
205
+ if (!this.emailControl || !this.emailControl.isConnected)
206
+ this.resolveEmailControl();
207
+ const control = this.emailControl;
208
+ if (!control)
209
+ return;
210
+ if (error) {
211
+ control.setAttribute('aria-invalid', 'true');
212
+ control.setAttribute('aria-describedby', 'settings-email-error');
213
+ }
214
+ else {
215
+ control.removeAttribute('aria-invalid');
216
+ control.removeAttribute('aria-describedby');
217
+ }
218
+ }
219
+ static ɵfac = function AccountSection_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccountSection)(); };
220
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccountSection, selectors: [["section", "mol-settings-account", ""]], viewQuery: function AccountSection_Query(rf, ctx) { if (rf & 1) {
221
+ i0.ɵɵviewQuery(_c0, 5, ElementRef)(_c1, 5, ElementRef);
222
+ } if (rf & 2) {
223
+ let _t;
224
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nameField = _t.first);
225
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emailField = _t.first);
226
+ } }, decls: 17, vars: 28, consts: [["nameField", ""], ["emailField", ""], ["mol-flex", "", 3, "align", "gap", "className"], ["mol-spinner", "", 3, "size"], [3, "submit", "focusout"], ["for", "settings-name"], ["mol-input", "", "type", "text", "autocomplete", "name", 3, "change", "id", "size", "value", "name"], ["for", "settings-email"], ["mol-input", "", "type", "email", "autocomplete", "email", 3, "change", "id", "size", "value", "name"], ["id", "settings-email-error", "role", "alert", 3, "class"], ["role", "alert", 3, "class"], ["id", "settings-email-error", "role", "alert"], ["role", "alert"]], template: function AccountSection_Template(rf, ctx) { if (rf & 1) {
227
+ i0.ɵɵelementStart(0, "div", 2)(1, "h3");
228
+ i0.ɵɵtext(2);
229
+ i0.ɵɵelementEnd();
230
+ i0.ɵɵconditionalCreate(3, AccountSection_Conditional_3_Template, 1, 1, "div", 3);
231
+ i0.ɵɵelementEnd();
232
+ i0.ɵɵelementStart(4, "form", 4);
233
+ i0.ɵɵlistener("submit", function AccountSection_Template_form_submit_4_listener($event) { return ctx.submitForm($event); })("focusout", function AccountSection_Template_form_focusout_4_listener($event) { return ctx.saveOnFormBlur($event); });
234
+ i0.ɵɵelementStart(5, "div")(6, "label", 5);
235
+ i0.ɵɵtext(7);
236
+ i0.ɵɵelementEnd();
237
+ i0.ɵɵelementStart(8, "div", 6, 0);
238
+ i0.ɵɵlistener("change", function AccountSection_Template_div_change_8_listener($event) { return ctx.nameChange($event); });
239
+ i0.ɵɵelementEnd()();
240
+ i0.ɵɵelementStart(10, "div")(11, "label", 7);
241
+ i0.ɵɵtext(12);
242
+ i0.ɵɵelementEnd();
243
+ i0.ɵɵelementStart(13, "div", 8, 1);
244
+ i0.ɵɵlistener("change", function AccountSection_Template_div_change_13_listener($event) { return ctx.emailChange($event); });
245
+ i0.ɵɵelementEnd();
246
+ i0.ɵɵconditionalCreate(15, AccountSection_Conditional_15_Template, 2, 3, "p", 9);
247
+ i0.ɵɵconditionalCreate(16, AccountSection_Conditional_16_Template, 2, 3, "p", 10);
248
+ i0.ɵɵelementEnd()();
249
+ } if (rf & 2) {
250
+ let tmp_21_0;
251
+ let tmp_22_0;
252
+ i0.ɵɵproperty("align", "center")("gap", "sm")("className", ctx.cm.sp("mb", 3));
253
+ i0.ɵɵadvance();
254
+ i0.ɵɵclassMap(ctx.cm.sectionHeading);
255
+ i0.ɵɵadvance();
256
+ i0.ɵɵtextInterpolate1(" ", ctx.t("settings.account", undefined, i0.ɵɵpureFunction0(25, _c2)), " ");
257
+ i0.ɵɵadvance();
258
+ i0.ɵɵconditional(ctx.profile.isSubmitting() ? 3 : -1);
259
+ i0.ɵɵadvance();
260
+ i0.ɵɵclassMap(ctx.cm.stack(3));
261
+ i0.ɵɵadvance(2);
262
+ i0.ɵɵclassMap(ctx.cm.formLabelSmall);
263
+ i0.ɵɵadvance();
264
+ i0.ɵɵtextInterpolate(ctx.t("settings.name", undefined, i0.ɵɵpureFunction0(26, _c3)));
265
+ i0.ɵɵadvance();
266
+ i0.ɵɵproperty("id", "settings-name")("size", "sm")("value", ctx.nameValue())("name", "name");
267
+ i0.ɵɵadvance(3);
268
+ i0.ɵɵclassMap(ctx.cm.formLabelSmall);
269
+ i0.ɵɵadvance();
270
+ i0.ɵɵtextInterpolate(ctx.t("settings.email", undefined, i0.ɵɵpureFunction0(27, _c4)));
271
+ i0.ɵɵadvance();
272
+ i0.ɵɵproperty("id", "settings-email")("size", "sm")("value", ctx.emailValue())("name", "email");
273
+ i0.ɵɵadvance(2);
274
+ i0.ɵɵconditional((tmp_21_0 = ctx.emailError()) ? 15 : -1, tmp_21_0);
275
+ i0.ɵɵadvance();
276
+ i0.ɵɵconditional((tmp_22_0 = ctx.saveError()) ? 16 : -1, tmp_22_0);
277
+ } }, dependencies: [Flex, Input, Spinner], encapsulation: 2 });
278
+ }
279
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccountSection, [{
280
+ type: Component,
281
+ args: [{
282
+ selector: 'section[mol-settings-account]',
283
+ standalone: true,
284
+ imports: [Flex, Input, Spinner],
285
+ template: `<div mol-flex [align]="'center'" [gap]="'sm'" [className]="cm.sp('mb', 3)">
286
+ <h3 [class]="cm.sectionHeading">
287
+ {{ t('settings.account', undefined, { defaultValue: 'Account' }) }}
288
+ </h3>
289
+ @if (profile.isSubmitting()) {
290
+ <div mol-spinner [size]="'xs'"></div>
291
+ }
292
+ </div>
293
+ <form [class]="cm.stack(3)" (submit)="submitForm($event)" (focusout)="saveOnFormBlur($event)">
294
+ <div>
295
+ <label for="settings-name" [class]="cm.formLabelSmall">{{
296
+ t('settings.name', undefined, { defaultValue: 'Name' })
297
+ }}</label>
298
+ <div
299
+ mol-input
300
+ #nameField
301
+ [id]="'settings-name'"
302
+ type="text"
303
+ autocomplete="name"
304
+ [size]="'sm'"
305
+ [value]="nameValue()"
306
+ [name]="'name'"
307
+ (change)="nameChange($event)"
308
+ ></div>
309
+ </div>
310
+ <div>
311
+ <label for="settings-email" [class]="cm.formLabelSmall">{{
312
+ t('settings.email', undefined, { defaultValue: 'Email' })
313
+ }}</label>
314
+ <div
315
+ mol-input
316
+ #emailField
317
+ [id]="'settings-email'"
318
+ type="email"
319
+ autocomplete="email"
320
+ [size]="'sm'"
321
+ [value]="emailValue()"
322
+ [name]="'email'"
323
+ (change)="emailChange($event)"
324
+ ></div>
325
+ @if (emailError(); as fieldError) {
326
+ <p
327
+ id="settings-email-error"
328
+ role="alert"
329
+ [class]="cm.cn(cm.textSize('xs'), cm.textError, cm.sp('mt', 1))"
330
+ >
331
+ {{ fieldError }}
332
+ </p>
333
+ }
334
+ @if (saveError(); as submitError) {
335
+ <p role="alert" [class]="cm.cn(cm.textSize('xs'), cm.textError, cm.sp('mt', 1))">
336
+ {{ submitError }}
337
+ </p>
338
+ }
339
+ </div>
340
+ </form>`,
341
+ }]
342
+ }], () => [], { nameField: [{
343
+ type: ViewChild,
344
+ args: ['nameField', { read: ElementRef }]
345
+ }], emailField: [{
346
+ type: ViewChild,
347
+ args: ['emailField', { read: ElementRef }]
348
+ }] }); })();
349
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccountSection, { className: "AccountSection", filePath: "account-section.component.ts", lineNumber: 113 }); })();
350
+ //# sourceMappingURL=account-section.component.js.map
@@ -0,0 +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,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KAC9E,CAAC,CAAA;IAEF,2EAA2E;IAC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;gBAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;gBAC/B,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuDA;aACX;;kBAoBE,SAAS;mBAAC,WAAW,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kBAE3C,SAAS;mBAAC,YAAY,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kFArBlC,cAAc"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * AppearanceSection component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { type AfterViewInit, ElementRef } from '@angular/core';
7
+ import type { UIClassMap } from '@molecule/app-ui';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * AppearanceSection component.
11
+ *
12
+ * Appearance section — dark-mode toggle wired to the theme bond. The host IS
13
+ * the `<section>` React renders.
14
+ *
15
+ * Apps that expose other appearance knobs (font size, density, etc.) can
16
+ * either add more sub-components to this package or render their own section
17
+ * in line with this one.
18
+ *
19
+ * The `id` / `aria-label` rest props of React's `<Switch>` are host
20
+ * attributes here: the UI `Switch` moves host attributes onto its visible
21
+ * trigger on every check, so the label follows the locale the same way. The
22
+ * controlled `checked` is re-synced by an effect (React re-renders the hidden
23
+ * checkbox's property; see {@link ControlledSwitchSync}).
24
+ */
25
+ export declare class AppearanceSection implements AfterViewInit {
26
+ /** The theme bond's state and actions. */
27
+ protected readonly theme: import("@molecule/app-angular").UseThemeResult;
28
+ /** Reactive translation, read in the injection context. */
29
+ protected readonly i18n: import("@molecule/app-angular").UseTranslationResult;
30
+ /** The translation function for the template. */
31
+ protected t: (key: string, values?: import("@molecule/app-i18n").InterpolationValues, options?: import("@molecule/app-i18n").TranslateOptions) => string;
32
+ /** Whether the dark mode is on (React's `mode === 'dark'`). */
33
+ protected readonly isDark: import("@angular/core").Signal<boolean>;
34
+ /** The bonded ClassMap (styling tokens resolve at render time). */
35
+ protected readonly cm: UIClassMap;
36
+ /** The theme switch's host element (the hidden checkbox lives inside). */
37
+ themeSwitch?: ElementRef<HTMLElement>;
38
+ /** The controlled-`checked` sync (created once the host exists). */
39
+ private sync?;
40
+ /** Re-syncs the switch's hidden checkbox whenever the mode changes. */
41
+ constructor();
42
+ /** Captures the mount-time attribute state (hooks run on the mount passes). */
43
+ ngAfterViewInit(): void;
44
+ /**
45
+ * Runs the controlled-`checked` sync once the switch host exists.
46
+ * @param checked - The controlled value this render shows.
47
+ */
48
+ private runSync;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppearanceSection, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppearanceSection, "section[mol-settings-appearance]", never, {}, {}, never, never, true, never>;
51
+ }
52
+ //# sourceMappingURL=appearance-section.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appearance-section.component.d.ts","sourceRoot":"","sources":["../src/appearance-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAIlB,UAAU,EAGX,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAMlD;;;;;;;;;;;;;;;GAeG;AACH,qBAqBa,iBAAkB,YAAW,aAAa;IACrD,0CAA0C;IAC1C,SAAS,CAAC,QAAQ,CAAC,KAAK,iDAAa;IAErC,2DAA2D;IAC3D,SAAS,CAAC,QAAQ,CAAC,IAAI,uDAAmB;IAE1C,iDAAiD;IACjD,SAAS,CAAC,CAAC,8IAAc;IAEzB,+DAA+D;IAC/D,SAAS,CAAC,QAAQ,CAAC,MAAM,0CAA+C;IAExE,mEAAmE;IACnE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAgB;IAEjD,0EAA0E;IAC1B,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAErF,oEAAoE;IACpE,OAAO,CAAC,IAAI,CAAC,CAAsB;IAEnC,uEAAuE;;IAQvE,+EAA+E;IAC/E,eAAe,IAAI,IAAI;IAIvB;;;OAGG;IACH,OAAO,CAAC,OAAO;yCAvCJ,iBAAiB;2CAAjB,iBAAiB;CA6C7B"}