@rolatech/angular-account 20.2.5 → 20.2.7-beta.1
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/fesm2022/{rolatech-angular-account-address-add.component-CbT9H3P_.mjs → rolatech-angular-account-address-add.component-BEgWg_no.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-add.component-CbT9H3P_.mjs.map → rolatech-angular-account-address-add.component-BEgWg_no.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs → rolatech-angular-account-address-billing.component-Ctvgeea9.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs.map → rolatech-angular-account-address-billing.component-Ctvgeea9.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-detail.component-BOhVYiNE.mjs → rolatech-angular-account-address-detail.component-78h4m9-h.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-detail.component-BOhVYiNE.mjs.map → rolatech-angular-account-address-detail.component-78h4m9-h.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-home.component-BSZNuGEJ.mjs → rolatech-angular-account-address-home.component-DfEsaB1k.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-home.component-BSZNuGEJ.mjs.map → rolatech-angular-account-address-home.component-DfEsaB1k.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs → rolatech-angular-account-address-shipping.component-mkK154C4.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs.map → rolatech-angular-account-address-shipping.component-mkK154C4.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-work.component-IX2zTWxc.mjs → rolatech-angular-account-address-work.component-BtMlK__N.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-work.component-IX2zTWxc.mjs.map → rolatech-angular-account-address-work.component-BtMlK__N.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address.routes-fnshCuFj.mjs → rolatech-angular-account-address.routes-D5E3MO2k.mjs} +7 -7
- package/fesm2022/{rolatech-angular-account-address.routes-fnshCuFj.mjs.map → rolatech-angular-account-address.routes-D5E3MO2k.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-email-verification.component-Bsy6ZdCU.mjs → rolatech-angular-account-email-verification.component-UzTBlGxH.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-email-verification.component-Bsy6ZdCU.mjs.map → rolatech-angular-account-email-verification.component-UzTBlGxH.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-email.component-cAEhB6ZQ.mjs → rolatech-angular-account-email.component-BIJH10kH.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-email.component-cAEhB6ZQ.mjs.map → rolatech-angular-account-email.component-BIJH10kH.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-gender.component-C-0x9sI0.mjs → rolatech-angular-account-gender.component-DfCw15Dj.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-gender.component-C-0x9sI0.mjs.map → rolatech-angular-account-gender.component-DfCw15Dj.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-home.component-B1YNtE-j.mjs → rolatech-angular-account-home.component-CsNpoHq_.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-home.component-B1YNtE-j.mjs.map → rolatech-angular-account-home.component-CsNpoHq_.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-info.component-1s2Ab1r_.mjs → rolatech-angular-account-info.component-BBNpSZeR.mjs} +7 -7
- package/fesm2022/{rolatech-angular-account-info.component-1s2Ab1r_.mjs.map → rolatech-angular-account-info.component-BBNpSZeR.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-phone.component-BCi_YLwF.mjs → rolatech-angular-account-phone.component-DdGvrN0V.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-phone.component-BCi_YLwF.mjs.map → rolatech-angular-account-phone.component-DdGvrN0V.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-profile.component-CWvjxZ94.mjs → rolatech-angular-account-profile.component-DmGkFTUx.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-profile.component-CWvjxZ94.mjs.map → rolatech-angular-account-profile.component-DmGkFTUx.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-security.routes-AVoRPb_g.mjs → rolatech-angular-account-security.routes-FUsaVReF.mjs} +10 -10
- package/fesm2022/{rolatech-angular-account-security.routes-AVoRPb_g.mjs.map → rolatech-angular-account-security.routes-FUsaVReF.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-username.component-B2ZnicXO.mjs → rolatech-angular-account-username.component-D8La3yTd.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-username.component-B2ZnicXO.mjs.map → rolatech-angular-account-username.component-D8La3yTd.mjs.map} +1 -1
- package/fesm2022/rolatech-angular-account.mjs +32 -32
- package/fesm2022/rolatech-angular-account.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -17,10 +17,10 @@ class AddressAddComponent {
|
|
|
17
17
|
next: (res) => { },
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressAddComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AddressAddComponent, isStandalone: true, selector: "rolatech-account-address-add", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Add address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\" i18n>Manage addresses associated with your Account.</p>\n </div>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressAddComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ selector: 'rolatech-account-address-add', imports: [
|
|
26
26
|
AngularCommonModule,
|
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
33
33
|
}] });
|
|
34
34
|
|
|
35
35
|
export { AddressAddComponent };
|
|
36
|
-
//# sourceMappingURL=rolatech-angular-account-address-add.component-
|
|
36
|
+
//# sourceMappingURL=rolatech-angular-account-address-add.component-BEgWg_no.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-add.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-add.component-BEgWg_no.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-add/address-add.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-add/address-add.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-add',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-add.component.html',\n styleUrl: './address-add.component.scss',\n})\nexport class AddressAddComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'SHIPPING' };\n\n ngOnInit(): void {}\n\n save() {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => {},\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Add address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\" i18n>Manage addresses associated with your Account.</p>\n </div>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,mBAAmB,CAAA;AAbhC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;AASpC,IAAA;AAPC,IAAA,QAAQ,KAAU;IAElB,IAAI,GA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AA,CAAA,EAAA,CAAA,CAAA;;2FAKP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,8BAA8B,EAAA,OAAA,EAC/B;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,4kBAAA,EAAA;;;;;"}
|
|
@@ -16,10 +16,10 @@ class AddressBillingComponent {
|
|
|
16
16
|
}
|
|
17
17
|
find() { }
|
|
18
18
|
save() { }
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressBillingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AddressBillingComponent, isStandalone: true, selector: "rolatech-account-address-billing", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Billing address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressBillingComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{ selector: 'rolatech-account-address-billing', imports: [
|
|
25
25
|
AngularCommonModule,
|
|
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
32
32
|
}] });
|
|
33
33
|
|
|
34
34
|
export { AddressBillingComponent };
|
|
35
|
-
//# sourceMappingURL=rolatech-angular-account-address-billing.component-
|
|
35
|
+
//# sourceMappingURL=rolatech-angular-account-address-billing.component-Ctvgeea9.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-billing.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-billing.component-Ctvgeea9.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-billing/address-billing.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-billing/address-billing.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-billing',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-billing.component.html',\n styleUrl: './address-billing.component.scss',\n})\nexport class AddressBillingComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'BILLING' };\n\n ngOnInit(): void {\n this.find();\n }\n find() {}\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Billing address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,uBAAuB,CAAA;AAbpC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;AAOnC,IAAA;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;AACA,IAAA,IAAI,KAAI;AACR,IAAA,IAAI,KAAI;8GARG,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EA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"21.0.
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AddressDetailComponent, isStandalone: true, selector: "rolatech-account-address-detail", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Edit address\" link=\"/personal-info\" divider>\n <button mat-stroked-button (click)=\"delete()\" i18n>Delete</button>\n </rolatech-toolbar>\n <div class=\"py-3\">\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressDetailComponent, decorators: [{
|
|
60
60
|
type: Component,
|
|
61
61
|
args: [{ selector: 'rolatech-account-address-detail', imports: [
|
|
62
62
|
AngularCommonModule,
|
|
@@ -69,4 +69,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
69
69
|
}] });
|
|
70
70
|
|
|
71
71
|
export { AddressDetailComponent };
|
|
72
|
-
//# sourceMappingURL=rolatech-angular-account-address-detail.component-
|
|
72
|
+
//# sourceMappingURL=rolatech-angular-account-address-detail.component-78h4m9-h.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-detail.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-detail.component-78h4m9-h.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-detail/address-detail.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-detail/address-detail.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-detail',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-detail.component.html',\n styleUrl: './address-detail.component.scss',\n})\nexport class AddressDetailComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = {};\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n this.authUserService.getAddress(this.id).subscribe({\n next: (res) => {\n this.address = res.data;\n },\n });\n }\n save() {\n this.authUserService.updateAddress(this.address.id, this.address).subscribe({\n next: (res) => {},\n });\n }\n delete() {\n const options = {\n title: '确认删除吗',\n message: '删除这个地址吗?',\n cancelText: 'Cancel',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe({\n next: (res) => {\n if (res) {\n const data = {\n name: res,\n };\n this.authUserService.deleteAddressById(this.id).subscribe({\n next: (res) => {\n this.snackBarService.open(res.data);\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Edit address\" link=\"/personal-info\" divider>\n <button mat-stroked-button (click)=\"delete()\" i18n>Delete</button>\n </rolatech-toolbar>\n <div class=\"py-3\">\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;AAmBM,MAAO,sBAAuB,SAAQ,aAAa,CAAA;AAbzD,IAAA,WAAA,GAAA;;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,OAAO,GAAQ,EAAE;AA2ClB,IAAA;IAzCC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;AACZ,gBAAA,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,IAAI;YACzB,CAAC;AACF,SAAA,CAAC;IACJ;IACA,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AAC1E,YAAA,IAAI,EAAE,CAAC,GAA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BAYA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDHI,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,uBAAuB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,iOAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,gBAAgB,gIAChB,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAblC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iCAAiC,EAAA,OAAA,EAClC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,iiBAAA,EAAA;;;;;"}
|
|
@@ -36,10 +36,10 @@ class AddressHomeComponent {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AddressHomeComponent, isStandalone: true, selector: "rolatech-account-address-home", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Home\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Cancel</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressHomeComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: 'rolatech-account-address-home', imports: [
|
|
45
45
|
AngularCommonModule,
|
|
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
52
52
|
}] });
|
|
53
53
|
|
|
54
54
|
export { AddressHomeComponent };
|
|
55
|
-
//# sourceMappingURL=rolatech-angular-account-address-home.component-
|
|
55
|
+
//# sourceMappingURL=rolatech-angular-account-address-home.component-DfEsaB1k.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-home.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-home.component-DfEsaB1k.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-home/address-home.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-home/address-home.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-home',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-home.component.html',\n styleUrl: './address-home.component.scss',\n})\nexport class AddressHomeComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'HOME' };\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n const options = {\n filter: 'type:HOME',\n };\n this.authUserService.findAllAddress(options).subscribe({\n next: (res) => {\n this.address = res.data[0];\n },\n });\n }\n save() {\n if (this.address.id) {\n this.authUserService.updateAddress(this.address.id, this.address).subscribe({\n next: (res) => {},\n });\n } else {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => {},\n });\n }\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Home\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Cancel</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;AA0BhC,IAAA;IAxBC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,MAAM,EAAE,WAAW;SACpB;QACD,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACrD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;gBACZ,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;YAC5B,CAAC;AACF,SAAA,CAAC;IACJ;IACA,IAAI,GAAA;AACF,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE;AACnB,YAAA,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AAC1E,gBAAA,IAAI,EAAE,CAAC,GAAG,OAAM,CAAC;AAClB,aAAA,CAAC;QACJ;aAAO;YACL,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACtD,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,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,oiBAAA,EAAA;;;;;"}
|
|
@@ -28,13 +28,13 @@ class AddressShippingComponent {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
save() { }
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressShippingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: AddressShippingComponent, isStandalone: true, selector: "rolatech-account-address-shipping", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i4.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "pipe", type: AddressFormatPipe, name: "address" }] }); }
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressShippingComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{ selector: 'rolatech-account-address-shipping', imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, AddressFormatPipe], template: "<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n" }]
|
|
37
37
|
}] });
|
|
38
38
|
|
|
39
39
|
export { AddressShippingComponent };
|
|
40
|
-
//# sourceMappingURL=rolatech-angular-account-address-shipping.component-
|
|
40
|
+
//# sourceMappingURL=rolatech-angular-account-address-shipping.component-mkK154C4.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-shipping.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-shipping.component-mkK154C4.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-shipping/address-shipping.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-shipping/address-shipping.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AuthUserService } from '@rolatech/angular-auth';\nimport { AddressFormatPipe, AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-account-address-shipping',\n imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, AddressFormatPipe],\n templateUrl: './address-shipping.component.html',\n styleUrl: './address-shipping.component.scss',\n})\nexport class AddressShippingComponent implements OnInit {\n authUserService = inject(AuthUserService);\n addresses: any = [];\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n const options = {\n filter: 'type:SHIPPING',\n };\n this.authUserService.findAllAddress(options).subscribe({\n next: (res) => {\n this.addresses = res.data;\n },\n });\n }\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n"],"names":["i3","i4","i5"],"mappings":";;;;;;;;;;;MAWa,wBAAwB,CAAA;AANrC,IAAA,WAAA,GAAA;AAOE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,SAAS,GAAQ,EAAE;AAgBpB,IAAA;IAdC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,MAAM,EAAE,eAAe;SACxB;QACD,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACrD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;AACZ,gBAAA,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,IAAI;YAC3B,CAAC;AACF,SAAA,CAAC;IACJ;AACA,IAAA,IAAI,KAAI;8GAjBG,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXrC,44BAyBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EA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AA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIpG,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACE,mCAAmC,EAAA,OAAA,EACpC,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,44BAAA,EAAA;;;;;"}
|
|
@@ -16,10 +16,10 @@ class AddressWorkComponent {
|
|
|
16
16
|
}
|
|
17
17
|
find() { }
|
|
18
18
|
save() { }
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressWorkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AddressWorkComponent, isStandalone: true, selector: "rolatech-account-address-work", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Work address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AddressWorkComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{ selector: 'rolatech-account-address-work', imports: [
|
|
25
25
|
AngularCommonModule,
|
|
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
32
32
|
}] });
|
|
33
33
|
|
|
34
34
|
export { AddressWorkComponent };
|
|
35
|
-
//# sourceMappingURL=rolatech-angular-account-address-work.component-
|
|
35
|
+
//# sourceMappingURL=rolatech-angular-account-address-work.component-BtMlK__N.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-work.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-work.component-BtMlK__N.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-work/address-work.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-work/address-work.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-work',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-work.component.html',\n styleUrl: './address-work.component.scss',\n})\nexport class AddressWorkComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'WORK' };\n ngOnInit(): void {\n this.find();\n }\n find() {}\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Work address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;AAMhC,IAAA;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;AACA,IAAA,IAAI,KAAI;AACR,IAAA,IAAI,KAAI;8GAPG,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EA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AClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,0iBAAA,EAAA;;;;;"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
const addressRoutes = [
|
|
2
2
|
{
|
|
3
3
|
path: 'home',
|
|
4
|
-
loadComponent: () => import('./rolatech-angular-account-address-home.component-
|
|
4
|
+
loadComponent: () => import('./rolatech-angular-account-address-home.component-DfEsaB1k.mjs').then((c) => c.AddressHomeComponent),
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
path: 'work',
|
|
8
|
-
loadComponent: () => import('./rolatech-angular-account-address-work.component-
|
|
8
|
+
loadComponent: () => import('./rolatech-angular-account-address-work.component-BtMlK__N.mjs').then((c) => c.AddressWorkComponent),
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
path: 'billing',
|
|
12
|
-
loadComponent: () => import('./rolatech-angular-account-address-billing.component-
|
|
12
|
+
loadComponent: () => import('./rolatech-angular-account-address-billing.component-Ctvgeea9.mjs').then((c) => c.AddressBillingComponent),
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
path: 'shipping',
|
|
16
|
-
loadComponent: () => import('./rolatech-angular-account-address-shipping.component-
|
|
16
|
+
loadComponent: () => import('./rolatech-angular-account-address-shipping.component-mkK154C4.mjs').then((c) => c.AddressShippingComponent),
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
path: 'add',
|
|
20
|
-
loadComponent: () => import('./rolatech-angular-account-address-add.component-
|
|
20
|
+
loadComponent: () => import('./rolatech-angular-account-address-add.component-BEgWg_no.mjs').then((c) => c.AddressAddComponent),
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
path: ':id',
|
|
24
|
-
loadComponent: () => import('./rolatech-angular-account-address-detail.component-
|
|
24
|
+
loadComponent: () => import('./rolatech-angular-account-address-detail.component-78h4m9-h.mjs').then((c) => c.AddressDetailComponent),
|
|
25
25
|
},
|
|
26
26
|
];
|
|
27
27
|
|
|
28
28
|
export { addressRoutes };
|
|
29
|
-
//# sourceMappingURL=rolatech-angular-account-address.routes-
|
|
29
|
+
//# sourceMappingURL=rolatech-angular-account-address.routes-D5E3MO2k.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address.routes-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address.routes-D5E3MO2k.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address.routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport const addressRoutes: Route[] = [\n {\n path: 'home',\n loadComponent: () => import('./address-home/address-home.component').then((c) => c.AddressHomeComponent),\n },\n {\n path: 'work',\n loadComponent: () => import('./address-work/address-work.component').then((c) => c.AddressWorkComponent),\n },\n {\n path: 'billing',\n loadComponent: () => import('./address-billing/address-billing.component').then((c) => c.AddressBillingComponent),\n },\n {\n path: 'shipping',\n loadComponent: () => import('./address-shipping/address-shipping.component').then((c) => c.AddressShippingComponent),\n },\n {\n path: 'add',\n loadComponent: () => import('./address-add/address-add.component').then((c) => c.AddressAddComponent),\n },\n {\n path: ':id',\n loadComponent: () => import('./address-detail/address-detail.component').then((c) => c.AddressDetailComponent),\n },\n];\n"],"names":[],"mappings":"AAEO,MAAM,aAAa,GAAY;AACpC,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,aAAa,EAAE,MAAM,OAAO,gEAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,aAAa,EAAE,MAAM,OAAO,gEAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,aAAa,EAAE,MAAM,OAAO,mEAA6C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,CAAC;AAClH,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,aAAa,EAAE,MAAM,OAAO,oEAA+C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,CAAC;AACrH,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,+DAAqC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC;AACtG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,kEAA2C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC;AAC/G,KAAA;;;;;"}
|
|
@@ -17,13 +17,13 @@ class EmailVerificationComponent extends BaseComponent {
|
|
|
17
17
|
this.dialogService.open(options);
|
|
18
18
|
this.dialogService.confirmed().subscribe((confirmed) => { });
|
|
19
19
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: EmailVerificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: EmailVerificationComponent, isStandalone: true, selector: "rolatech-account-email-verification", usesInheritance: true, ngImport: i0, template: "<div class=\"p-3\">Email verification</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }] }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: EmailVerificationComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-account-email-verification', template: "<div class=\"p-3\">Email verification</div>\n" }]
|
|
26
26
|
}] });
|
|
27
27
|
|
|
28
28
|
export { EmailVerificationComponent };
|
|
29
|
-
//# sourceMappingURL=rolatech-angular-account-email-verification.component-
|
|
29
|
+
//# sourceMappingURL=rolatech-angular-account-email-verification.component-UzTBlGxH.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-email-verification.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-email-verification.component-UzTBlGxH.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/email-verification/email-verification.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/email-verification/email-verification.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent } from '@rolatech/angular-components';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule],\n selector: 'rolatech-account-email-verification',\n templateUrl: './email-verification.component.html',\n styleUrls: ['./email-verification.component.scss'],\n})\nexport class EmailVerificationComponent extends BaseComponent implements OnInit {\n ngOnInit(): void {\n this.show();\n }\n show() {\n const options = {\n title: '确认删除吗',\n message: 'CONFIRM.DOWNLOAD.JOB.MESSAGE',\n cancelText: 'Cancel',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe((confirmed) => {});\n }\n}\n","<div class=\"p-3\">Email verification</div>\n"],"names":[],"mappings":";;;;;AAUM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;IAC3D,QAAQ,GAAA;QACN,IAAI,CAAC,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"21.0.
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: EmailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: EmailComponent, isStandalone: true, selector: "rolatech-account-email", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }] }); }
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: EmailComponent, decorators: [{
|
|
39
39
|
type: Component,
|
|
40
40
|
args: [{ imports: [AngularCommonModule, AngularComponentsModule, BackButtonDirective, ContainerComponent, ToolbarComponent], selector: 'rolatech-account-email', template: "<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n" }]
|
|
41
41
|
}], ctorParameters: () => [] });
|
|
42
42
|
|
|
43
43
|
export { EmailComponent };
|
|
44
|
-
//# sourceMappingURL=rolatech-angular-account-email.component-
|
|
44
|
+
//# sourceMappingURL=rolatech-angular-account-email.component-BIJH10kH.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-email.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-email.component-BIJH10kH.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/email/email.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/email/email.component.html"],"sourcesContent":["import { Component, OnInit, PLATFORM_ID, computed, effect, inject, model, signal } from '@angular/core';\nimport { AuthService, AuthStore, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, BaseComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, BackButtonDirective, ContainerComponent, ToolbarComponent],\n selector: 'rolatech-account-email',\n templateUrl: './email.component.html',\n styleUrls: ['./email.component.scss'],\n})\nexport class EmailComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n authStore = inject(AuthStore);\n protected user = this.authStore.user;\n email: string | undefined = '';\n constructor() {\n super();\n effect(() => {\n this.email = this.user()?.email;\n });\n }\n ngOnInit(): void {}\n\n save() {\n this.authUserService.update({ email: this.email }).subscribe({\n next: (res) => {\n this.snackBarService.open('Update successfully');\n this.authStore.updateEmail(this.email!);\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\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AA,UAAA,EAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKtG,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;8BACC,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,EAAA,QAAA,EACxG,wBAAwB,EAAA,QAAA,EAAA,upBAAA,EAAA;;;;;"}
|
|
@@ -35,10 +35,10 @@ class GenderComponent extends BaseComponent {
|
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: GenderComponent, isStandalone: true, selector: "rolatech-account-gender", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Gender\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <span class=\"px-2\" i18n>Your gender may be used for personalizations, including how we refer to you.</span>\n <mat-radio-group class=\"flex flex-col\" [(ngModel)]=\"selectedGender\">\n @for (gender of GENDERS; track gender) {\n <mat-radio-button [value]=\"gender\">{{ gender }}</mat-radio-button>\n }\n </mat-radio-group>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 p-2 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "ngmodule", type: MatButtonModule }] }); }
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenderComponent, decorators: [{
|
|
42
42
|
type: Component,
|
|
43
43
|
args: [{ imports: [
|
|
44
44
|
AngularCommonModule,
|
|
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
52
52
|
}], ctorParameters: () => [] });
|
|
53
53
|
|
|
54
54
|
export { GenderComponent };
|
|
55
|
-
//# sourceMappingURL=rolatech-angular-account-gender.component-
|
|
55
|
+
//# sourceMappingURL=rolatech-angular-account-gender.component-DfCw15Dj.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-gender.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-gender.component-DfCw15Dj.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/gender/gender.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/gender/gender.component.html"],"sourcesContent":["import { Component, OnInit, effect, inject } from '@angular/core';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { AuthService, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, BaseComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\nimport { UserGender } from '../../../contant/user';\nimport { MatButtonModule } from '@angular/material/button';\n\n@Component({\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n MatRadioModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n MatButtonModule,\n ],\n selector: 'rolatech-account-gender',\n templateUrl: './gender.component.html',\n styleUrls: ['./gender.component.scss'],\n})\nexport class GenderComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n GENDERS: string[] = ['Male', 'Female', 'Rather not say'];\n gender: any = UserGender;\n selectedGender = '';\n user = inject(AuthService).user;\n email: string | undefined = '';\n constructor() {\n super();\n effect(() => {\n this.selectedGender = this.gender[this.user()!.gender!];\n });\n }\n ngOnInit(): void {}\n\n save() {\n this.authUserService.update({ gender: this.gender[this.selectedGender] }).subscribe({\n next: (res) => {\n this.snackBarService.open('Update successfully');\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Gender\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <span class=\"px-2\" i18n>Your gender may be used for personalizations, including how we refer to you.</span>\n <mat-radio-group class=\"flex flex-col\" [(ngModel)]=\"selectedGender\">\n @for (gender of GENDERS; track gender) {\n <mat-radio-button [value]=\"gender\">{{ gender }}</mat-radio-button>\n }\n </mat-radio-group>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 p-2 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAuBM,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAOhD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAPT,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,OAAO,GAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,CAAC;QACxD,IAAA,CAAA,MAAM,GAAQ,UAAU;QACxB,IAAA,CAAA,cAAc,GAAG,EAAE;AACnB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI;QAC/B,IAAA,CAAA,KAAK,GAAuB,EAAE;QAG5B,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,MAA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