@rolatech/angular-account 19.0.0-beta.1 → 19.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/fesm2022/{rolatech-angular-account-address-add.component-Ce3hAH2I.mjs → rolatech-angular-account-address-add.component-BfoGlx8b.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-add.component-Ce3hAH2I.mjs.map → rolatech-angular-account-address-add.component-BfoGlx8b.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-billing.component-iJ9e714P.mjs → rolatech-angular-account-address-billing.component-A6IAiXAc.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-billing.component-iJ9e714P.mjs.map → rolatech-angular-account-address-billing.component-A6IAiXAc.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-detail.component-YrEBTrX3.mjs → rolatech-angular-account-address-detail.component-qudS0GCI.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-detail.component-YrEBTrX3.mjs.map → rolatech-angular-account-address-detail.component-qudS0GCI.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-home.component-ChXk3WBo.mjs → rolatech-angular-account-address-home.component-D3Xuk7wq.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-home.component-ChXk3WBo.mjs.map → rolatech-angular-account-address-home.component-D3Xuk7wq.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-shipping.component-DIHcCOMD.mjs → rolatech-angular-account-address-shipping.component-BLhmNs5x.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-shipping.component-DIHcCOMD.mjs.map → rolatech-angular-account-address-shipping.component-BLhmNs5x.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address-work.component-D_J4DR-s.mjs → rolatech-angular-account-address-work.component-DTUVt6So.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-address-work.component-D_J4DR-s.mjs.map → rolatech-angular-account-address-work.component-DTUVt6So.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-address.routes-B7dDMeuH.mjs → rolatech-angular-account-address.routes-DmjTWnGO.mjs} +7 -7
- package/fesm2022/{rolatech-angular-account-address.routes-B7dDMeuH.mjs.map → rolatech-angular-account-address.routes-DmjTWnGO.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-email-verification.component-CkRt0ILC.mjs → rolatech-angular-account-email-verification.component-BG--wf5Z.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-email-verification.component-CkRt0ILC.mjs.map → rolatech-angular-account-email-verification.component-BG--wf5Z.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-email.component-DuA61oxk.mjs → rolatech-angular-account-email.component-YHQJc3CF.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-email.component-DuA61oxk.mjs.map → rolatech-angular-account-email.component-YHQJc3CF.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-gender.component-RKepKjrL.mjs → rolatech-angular-account-gender.component-BrBHrTXG.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-gender.component-RKepKjrL.mjs.map → rolatech-angular-account-gender.component-BrBHrTXG.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-home.component-CIvRJUb9.mjs → rolatech-angular-account-home.component-Cf8iNSab.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-home.component-CIvRJUb9.mjs.map → rolatech-angular-account-home.component-Cf8iNSab.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-info.component-D2dwWQTF.mjs → rolatech-angular-account-info.component-DX9YQeVY.mjs} +7 -7
- package/fesm2022/{rolatech-angular-account-info.component-D2dwWQTF.mjs.map → rolatech-angular-account-info.component-DX9YQeVY.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-login.routes-C97QVyJ0.mjs → rolatech-angular-account-login.routes-ChIOcwYU.mjs} +5 -5
- package/fesm2022/{rolatech-angular-account-login.routes-C97QVyJ0.mjs.map → rolatech-angular-account-login.routes-ChIOcwYU.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-phone.component-Kxe2MDen.mjs → rolatech-angular-account-phone.component-CAQNMmca.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-phone.component-Kxe2MDen.mjs.map → rolatech-angular-account-phone.component-CAQNMmca.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-profile.component-CKN-gbiM.mjs → rolatech-angular-account-profile.component-e-VSJ6qX.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-profile.component-CKN-gbiM.mjs.map → rolatech-angular-account-profile.component-e-VSJ6qX.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-rolatech-angular-account-BNEg6V8a.mjs → rolatech-angular-account-rolatech-angular-account-j9wP4xmE.mjs} +39 -39
- package/fesm2022/rolatech-angular-account-rolatech-angular-account-j9wP4xmE.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-security.routes-KlF9MNKj.mjs → rolatech-angular-account-security.routes-BVzP8Y6a.mjs} +10 -10
- package/fesm2022/{rolatech-angular-account-security.routes-KlF9MNKj.mjs.map → rolatech-angular-account-security.routes-BVzP8Y6a.mjs.map} +1 -1
- package/fesm2022/{rolatech-angular-account-username.component-DyUMdNt7.mjs → rolatech-angular-account-username.component-D5yPB-kQ.mjs} +4 -4
- package/fesm2022/{rolatech-angular-account-username.component-DyUMdNt7.mjs.map → rolatech-angular-account-username.component-D5yPB-kQ.mjs.map} +1 -1
- package/fesm2022/rolatech-angular-account.mjs +1 -1
- package/package.json +6 -6
- package/fesm2022/rolatech-angular-account-rolatech-angular-account-BNEg6V8a.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -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: "19.0.
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AddressAddComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: AddressAddComponent, isStandalone: true, selector: "rolatech-account-address-add", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u65B0\u589E\u5730\u5740\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\">\u586B\u5199\u60A8\u7684\u5730\u5740, \u53EF\u4EE5\u5728\u5176\u4ED6\u670D\u52A1\u4E2D\u5FEB\u901F\u4F7F\u7528.</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>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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: "19.0.3", 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-BfoGlx8b.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-add.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-add.component-BfoGlx8b.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=\"新增地址\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\">填写您的地址, 可以在其他服务中快速使用.</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>取消</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"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;AAPC,IAAA,QAAQ;IAER,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACtD,YAAA,IAAI,EAAE,CAAC,GAAG,QAAO;AAClB,SAAA,CAAC;;8GATO,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,ECnBhC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,ypBAaA,EDJI,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,EACnB,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,uBAAuB,EACvB,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,6GAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,EACnB,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,EAClB,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,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,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,8BAA8B,EAC/B,OAAA,EAAA;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,ypBAAA,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: "19.0.
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AddressBillingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: AddressBillingComponent, isStandalone: true, selector: "rolatech-account-address-billing", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4F4F\u5B85\u5730\u5740\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u586B\u5199\u60A8\u7684\u5730\u5740, \u53EF\u4EE5\u5728\u5176\u4ED6\u670D\u52A1\u4E2D\u5FEB\u901F\u4F7F\u7528.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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: "19.0.3", 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-A6IAiXAc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-billing.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-billing.component-A6IAiXAc.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=\"住宅地址\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">填写您的地址, 可以在其他服务中快速使用.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>取消</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"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;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAA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BAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,inBAAA,EAAA;;;;;"}
|
|
@@ -53,10 +53,10 @@ class AddressDetailComponent extends BaseComponent {
|
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AddressDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: AddressDetailComponent, isStandalone: true, selector: "rolatech-account-address-detail", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u7F16\u8F91\u5730\u5740\" link=\"/personal-info\" divider></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>\u53D6\u6D88</button>\n <button mat-stroked-button (click)=\"delete()\">\u5220\u9664</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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: "19.0.3", 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-qudS0GCI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-detail.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-detail.component-qudS0GCI.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: '取消',\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=\"编辑地址\" link=\"/personal-info\" divider></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>取消</button>\n <button mat-stroked-button (click)=\"delete()\">删除</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"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,IAAO,CAAA,OAAA,GAAQ,EAAE;AA2ClB;IAzCC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;;IAEb,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;aACxB;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|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AddressHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: AddressHomeComponent, isStandalone: true, selector: "rolatech-account-address-home", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4F4F\u5B85\u5730\u5740\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u586B\u5199\u60A8\u7684\u5730\u5740, \u53EF\u4EE5\u5728\u5176\u4ED6\u670D\u52A1\u4E2D\u5FEB\u901F\u4F7F\u7528.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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: "19.0.3", 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-D3Xuk7wq.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-home.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-home.component-D3Xuk7wq.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=\"住宅地址\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">填写您的地址, 可以在其他服务中快速使用.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>取消</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"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;AA0BhC;IAxBC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;;IAEb,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;aAC3B;AACF,SAAA,CAAC;;IAEJ,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,QAAO;AAClB,aAAA,C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UAAA,EAAA,CAAA;kBAbhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAChC,OAAA,EAAA;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,inBAAA,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: "19.0.
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AddressShippingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: AddressShippingComponent, isStandalone: true, selector: "rolatech-account-address-shipping", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u8D2D\u7269\u5730\u5740\" 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 \u6DFB\u52A0\u5730\u5740\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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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=\"\u8D2D\u7269\u5730\u5740\" 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 \u6DFB\u52A0\u5730\u5740\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-BLhmNs5x.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-shipping.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-shipping.component-BLhmNs5x.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=\"购物地址\" 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 添加地址\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,IAAS,CAAA,SAAA,GAAQ,EAAE;AAgBpB;IAdC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;;IAEb,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;aAC1B;AACF,SAAA,CAAC;;AAEJ,IAAA,IAAI;8GAjBO,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,+4BAyBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDlBY,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A,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,+4BAAA,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: "19.0.
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AddressWorkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: AddressWorkComponent, isStandalone: true, selector: "rolatech-account-address-work", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u5DE5\u4F5C\u5730\u5740\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u586B\u5199\u60A8\u7684\u5730\u5740, \u53EF\u4EE5\u5728\u5176\u4ED6\u670D\u52A1\u4E2D\u5FEB\u901F\u4F7F\u7528.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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: "19.0.3", 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-DTUVt6So.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address-work.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-work.component-DTUVt6So.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=\"工作地址\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">填写您的地址, 可以在其他服务中快速使用.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>取消</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"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;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;;AAEb,IAAA,IAAI;AACJ,IAAA,IAAI;8GAPO,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,I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utes = [
|
|
2
2
|
{
|
|
3
3
|
path: 'home',
|
|
4
|
-
loadComponent: () => import('./rolatech-angular-account-address-home.component-
|
|
4
|
+
loadComponent: () => import('./rolatech-angular-account-address-home.component-D3Xuk7wq.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-DTUVt6So.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-A6IAiXAc.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-BLhmNs5x.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-BfoGlx8b.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-qudS0GCI.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-DmjTWnGO.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-address.routes-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address.routes-DmjTWnGO.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":"AAEa,MAAA,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: "19.0.
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: EmailVerificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", 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: "19.0.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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-BG--wf5Z.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-email-verification.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-email-verification.component-BG--wf5Z.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: '取消',\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,IAAI,EAAE;;IAEb,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,OAAO,EAAE,8BAA8B;AACvC,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,WAAW,EAAE,IAAI;SAClB;AACD,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC;AAChC,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,CAAC,SAAS,KAAM,GAAC,CAAC;;8GAZlD,0BAA0B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,ECVvC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,+CACA,EDIY,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,8BAAE,uBAAuB,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAK3C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,YAC7C,qCAAqC,EAAA,QAAA,EAAA,+CAAA,EAAA;;;;;"}
|
|
@@ -32,13 +32,13 @@ class EmailComponent extends BaseComponent {
|
|
|
32
32
|
},
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: EmailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: EmailComponent, isStandalone: true, selector: "rolatech-account-email", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u90AE\u7BB1\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u60A8\u53EF\u4EE5\u901A\u8FC7\u90AE\u7BB1\u83B7\u5F97\u66F4\u591A\u6211\u4EEC\u7684\u4EA7\u54C1\u4FE1\u606F</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>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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=\"\u4FEE\u6539\u90AE\u7BB1\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u60A8\u53EF\u4EE5\u901A\u8FC7\u90AE\u7BB1\u83B7\u5F97\u66F4\u591A\u6211\u4EEC\u7684\u4EA7\u54C1\u4FE1\u606F</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>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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-YHQJc3CF.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-email.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-email.component-YHQJc3CF.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 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('修改成功');\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=\"修改邮箱\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">您可以通过邮箱获得更多我们的产品信息</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>取消</button>\n <button mat-flat-button class=\"w-20 ml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,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,stBAAA,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: "19.0.
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: GenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: GenderComponent, isStandalone: true, selector: "rolatech-account-gender", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u8BBE\u7F6E\u6027\u522B\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <span class=\"px-2\">\u6027\u522B\u9009\u62E9</span>\n <mat-radio-group class=\"flex flex-col\" color=\"primary\" [(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>\u53D6\u6D88</button>\n <button mat-flat-button class=\"w-20 p-2 ml-3\" (click)=\"save()\">\u4FDD\u5B58</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[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: "19.0.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", 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: "19.0.3", ngImpor
|
|
|
52
52
|
}], ctorParameters: () => [] });
|
|
53
53
|
|
|
54
54
|
export { GenderComponent };
|
|
55
|
-
//# sourceMappingURL=rolatech-angular-account-gender.component-
|
|
55
|
+
//# sourceMappingURL=rolatech-angular-account-gender.component-BrBHrTXG.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-gender.component-
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-gender.component-BrBHrTXG.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[] = ['男', '女', '不公开'];\n gender: any = UserGender;\n selectedGender = '';\n\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('修改成功');\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"设置性别\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <span class=\"px-2\">性别选择</span>\n <mat-radio-group class=\"flex flex-col\" color=\"primary\" [(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>取消</button>\n <button mat-flat-button class=\"w-20 p-2 ml-3\" (click)=\"save()\">保存</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAuBM,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAQhD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AART,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAO,CAAA,OAAA,GAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC;QACrC,IAAM,CAAA,MAAA,GAAQ,UAAU;QACxB,IAAc,CAAA,cAAA,GAAG,EAAE;AAEnB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI;QAC/B,IAAK,CAAA,KAAA,GAAuB,EAAE;QAG5B,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAG,CAAC,MAAO,CAAC;AACzD,SAAC,CAAC;;AAEJ,IAAA,QAAQ;IAER,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,MAAM,CAA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