@rolatech/angular-account 19.0.0-beta.8 → 19.1.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/fesm2022/rolatech-angular-account-address-add.component-wa2bcup4.mjs +36 -0
- package/fesm2022/rolatech-angular-account-address-add.component-wa2bcup4.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-billing.component-BQez3wKq.mjs +35 -0
- package/fesm2022/rolatech-angular-account-address-billing.component-BQez3wKq.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-address-detail.component-ZOfWc_yz.mjs → rolatech-angular-account-address-detail.component-BLlet9GE.mjs} +6 -6
- package/fesm2022/rolatech-angular-account-address-detail.component-BLlet9GE.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-address-home.component-C4QYRh5u.mjs → rolatech-angular-account-address-home.component-Cq8df4BZ.mjs} +5 -5
- package/fesm2022/rolatech-angular-account-address-home.component-Cq8df4BZ.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-shipping.component-BoCUP8BP.mjs +40 -0
- package/fesm2022/rolatech-angular-account-address-shipping.component-BoCUP8BP.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-work.component-DZVmQk00.mjs +35 -0
- package/fesm2022/rolatech-angular-account-address-work.component-DZVmQk00.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-address.routes-Ch53Z6As.mjs → rolatech-angular-account-address.routes-BG537bit.mjs} +7 -7
- package/fesm2022/rolatech-angular-account-address.routes-BG537bit.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-email-verification.component-B8pTGyx9.mjs → rolatech-angular-account-email-verification.component-CFXEcDgQ.mjs} +5 -5
- package/fesm2022/rolatech-angular-account-email-verification.component-CFXEcDgQ.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-email.component-Cln1gL9k.mjs +44 -0
- package/fesm2022/rolatech-angular-account-email.component-Cln1gL9k.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-gender.component-BSNLzoVL.mjs +55 -0
- package/fesm2022/rolatech-angular-account-gender.component-BSNLzoVL.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-home.component-DnsqsRNc.mjs → rolatech-angular-account-home.component-BNs5snXX.mjs} +5 -5
- package/fesm2022/rolatech-angular-account-home.component-BNs5snXX.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-info.component-3eu2_7TG.mjs +111 -0
- package/fesm2022/rolatech-angular-account-info.component-3eu2_7TG.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-phone.component-BLHE_waH.mjs +76 -0
- package/fesm2022/rolatech-angular-account-phone.component-BLHE_waH.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-profile.component-CLXgdPX-.mjs +43 -0
- package/fesm2022/rolatech-angular-account-profile.component-CLXgdPX-.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-security.routes-CQH41xZs.mjs +237 -0
- package/fesm2022/rolatech-angular-account-security.routes-CQH41xZs.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-user-CJa0pCxF.mjs +9 -0
- package/fesm2022/rolatech-angular-account-user-CJa0pCxF.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-username.component-BmX7QCbs.mjs +42 -0
- package/fesm2022/rolatech-angular-account-username.component-BmX7QCbs.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account.mjs +511 -1
- package/fesm2022/rolatech-angular-account.mjs.map +1 -1
- package/index.d.ts +29 -4
- package/package.json +6 -6
- package/fesm2022/rolatech-angular-account-address-add.component-Bj6pnCLm.mjs +0 -36
- package/fesm2022/rolatech-angular-account-address-add.component-Bj6pnCLm.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-address-billing.component-P1YV-5wC.mjs +0 -35
- package/fesm2022/rolatech-angular-account-address-billing.component-P1YV-5wC.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-address-detail.component-ZOfWc_yz.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-address-home.component-C4QYRh5u.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-address-shipping.component-DhXX3Ksi.mjs +0 -40
- package/fesm2022/rolatech-angular-account-address-shipping.component-DhXX3Ksi.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-address-work.component-DELZ5ymv.mjs +0 -35
- package/fesm2022/rolatech-angular-account-address-work.component-DELZ5ymv.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-address.routes-Ch53Z6As.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-email-verification.component-B8pTGyx9.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-email.component-Q9ZpDLPX.mjs +0 -44
- package/fesm2022/rolatech-angular-account-email.component-Q9ZpDLPX.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-gender.component-DrxiKHvu.mjs +0 -55
- package/fesm2022/rolatech-angular-account-gender.component-DrxiKHvu.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-home.component-DnsqsRNc.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-info.component-BwS2LI6u.mjs +0 -112
- package/fesm2022/rolatech-angular-account-info.component-BwS2LI6u.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-login.routes-CHrOk4GX.mjs +0 -43
- package/fesm2022/rolatech-angular-account-login.routes-CHrOk4GX.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-phone.component-CYHAQ-Zb.mjs +0 -76
- package/fesm2022/rolatech-angular-account-phone.component-CYHAQ-Zb.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-profile.component-JIuW8kyu.mjs +0 -43
- package/fesm2022/rolatech-angular-account-profile.component-JIuW8kyu.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-rolatech-angular-account-B10UbSq5.mjs +0 -465
- package/fesm2022/rolatech-angular-account-rolatech-angular-account-B10UbSq5.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-security.routes-ezGjJPgA.mjs +0 -237
- package/fesm2022/rolatech-angular-account-security.routes-ezGjJPgA.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-user-CK_zEFn_.mjs +0 -9
- package/fesm2022/rolatech-angular-account-user-CK_zEFn_.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-username.component-C4k-jzFG.mjs +0 -42
- package/fesm2022/rolatech-angular-account-username.component-C4k-jzFG.mjs.map +0 -1
- package/lib/account.routes.d.ts +0 -2
- package/lib/components/avatar-update-dialog/avatar-update-dialog.component.d.ts +0 -22
- package/lib/components/forgot-password/forgot-password.component.d.ts +0 -8
- package/lib/components/index.d.ts +0 -1
- package/lib/components/login/login-wechat/login-wechat.component.d.ts +0 -15
- package/lib/components/login/login.routes.d.ts +0 -3
- package/lib/components/logout/logout.component.d.ts +0 -19
- package/lib/components/passwordreset/passwordreset.component.d.ts +0 -8
- package/lib/components/topbar-login/topbar-login.component.d.ts +0 -20
- package/lib/contant/user.d.ts +0 -5
- package/lib/myaccount.routes.d.ts +0 -2
- package/lib/pages/accounts/signin/signin.component.d.ts +0 -39
- package/lib/pages/accounts/signup/signup.component.d.ts +0 -21
- package/lib/pages/myaccount/address/address-add/address-add.component.d.ts +0 -11
- package/lib/pages/myaccount/address/address-billing/address-billing.component.d.ts +0 -12
- package/lib/pages/myaccount/address/address-detail/address-detail.component.d.ts +0 -14
- package/lib/pages/myaccount/address/address-home/address-home.component.d.ts +0 -12
- package/lib/pages/myaccount/address/address-shipping/address-shipping.component.d.ts +0 -12
- package/lib/pages/myaccount/address/address-work/address-work.component.d.ts +0 -12
- package/lib/pages/myaccount/address/address.routes.d.ts +0 -2
- package/lib/pages/myaccount/email/email.component.d.ts +0 -15
- package/lib/pages/myaccount/email-verification/email-verification.component.d.ts +0 -9
- package/lib/pages/myaccount/gender/gender.component.d.ts +0 -17
- package/lib/pages/myaccount/home/home.component.d.ts +0 -11
- package/lib/pages/myaccount/personal-info/info.component.d.ts +0 -18
- package/lib/pages/myaccount/personal-info/profile/profile.component.d.ts +0 -14
- package/lib/pages/myaccount/personal-info/username/username.component.d.ts +0 -14
- package/lib/pages/myaccount/phone/phone.component.d.ts +0 -19
- package/lib/pages/myaccount/security/security-faceid/security-faceid.component.d.ts +0 -5
- package/lib/pages/myaccount/security/security-index/security-index.component.d.ts +0 -22
- package/lib/pages/myaccount/security/security-password/security-password.component.d.ts +0 -16
- package/lib/pages/myaccount/security/security-verification/security-verification.component.d.ts +0 -24
- package/lib/pages/myaccount/security/security.routes.d.ts +0 -3
- package/lib/services/wechat-login.service.d.ts +0 -9
- package/provider.d.ts +0 -2
- package/themes/_default.scss +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Component } from '@angular/core';
|
|
3
|
+
import { AuthUserService, AddressComponent } from '@rolatech/angular-auth';
|
|
4
|
+
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
5
|
+
import { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
|
|
6
|
+
import { BackButtonDirective } from '@rolatech/angular-services';
|
|
7
|
+
import * as i2 from '@angular/material/button';
|
|
8
|
+
|
|
9
|
+
class AddressAddComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.authUserService = inject(AuthUserService);
|
|
12
|
+
this.address = { type: 'SHIPPING' };
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() { }
|
|
15
|
+
save() {
|
|
16
|
+
this.authUserService.addAddress(this.address).subscribe({
|
|
17
|
+
next: (res) => { },
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressAddComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressAddComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'rolatech-account-address-add', imports: [
|
|
26
|
+
AngularCommonModule,
|
|
27
|
+
AngularComponentsModule,
|
|
28
|
+
BackButtonDirective,
|
|
29
|
+
ContainerComponent,
|
|
30
|
+
ToolbarComponent,
|
|
31
|
+
AddressComponent,
|
|
32
|
+
], 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" }]
|
|
33
|
+
}] });
|
|
34
|
+
|
|
35
|
+
export { AddressAddComponent };
|
|
36
|
+
//# sourceMappingURL=rolatech-angular-account-address-add.component-wa2bcup4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-add.component-wa2bcup4.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address-add/address-add.component.js"],"sourcesContent":["import { Component, inject } 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';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/material/button\";\nexport class AddressAddComponent {\n constructor() {\n this.authUserService = inject(AuthUserService);\n this.address = { type: 'SHIPPING' };\n }\n ngOnInit() { }\n save() {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => { },\n });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressAddComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.3\", 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: i1.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\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressAddComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-account-address-add', imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ], 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)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,EAAE,OAAO,EAAE,CAAC,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACnrD;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,UAAU,EAAE,CAAC;AAC7H,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,8BAA8B,EAAE,OAAO,EAAE;AACxE,wBAAwB,mBAAmB;AAC3C,wBAAwB,uBAAuB;AAC/C,wBAAwB,mBAAmB;AAC3C,wBAAwB,kBAAkB;AAC1C,wBAAwB,gBAAgB;AACxC,wBAAwB,gBAAgB;AACxC,qBAAqB,EAAE,QAAQ,EAAE,4kBAA4kB,EAAE;AAC/mB,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Component } from '@angular/core';
|
|
3
|
+
import { AuthUserService, AddressComponent } from '@rolatech/angular-auth';
|
|
4
|
+
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
5
|
+
import { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
|
|
6
|
+
import { BackButtonDirective } from '@rolatech/angular-services';
|
|
7
|
+
import * as i2 from '@angular/material/button';
|
|
8
|
+
|
|
9
|
+
class AddressBillingComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.authUserService = inject(AuthUserService);
|
|
12
|
+
this.address = { type: 'BILLING' };
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
this.find();
|
|
16
|
+
}
|
|
17
|
+
find() { }
|
|
18
|
+
save() { }
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressBillingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressBillingComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'rolatech-account-address-billing', imports: [
|
|
25
|
+
AngularCommonModule,
|
|
26
|
+
AngularComponentsModule,
|
|
27
|
+
BackButtonDirective,
|
|
28
|
+
ContainerComponent,
|
|
29
|
+
ToolbarComponent,
|
|
30
|
+
AddressComponent,
|
|
31
|
+
], 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" }]
|
|
32
|
+
}] });
|
|
33
|
+
|
|
34
|
+
export { AddressBillingComponent };
|
|
35
|
+
//# sourceMappingURL=rolatech-angular-account-address-billing.component-BQez3wKq.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-billing.component-BQez3wKq.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address-billing/address-billing.component.js"],"sourcesContent":["import { Component, inject } 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';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/material/button\";\nexport class AddressBillingComponent {\n constructor() {\n this.authUserService = inject(AuthUserService);\n this.address = { type: 'BILLING' };\n }\n ngOnInit() {\n this.find();\n }\n find() { }\n save() { }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressBillingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.3\", 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: i1.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\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressBillingComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-account-address-billing', imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ], 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\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy1iaWxsaW5nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItYWNjb3VudC9zcmMvbGliL3BhZ2VzL215YWNjb3VudC9hZGRyZXNzL2FkZHJlc3MtYmlsbGluZy9hZGRyZXNzLWJpbGxpbmcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci1hY2NvdW50L3NyYy9saWIvcGFnZXMvbXlhY2NvdW50L2FkZHJlc3MvYWRkcmVzcy1iaWxsaW5nL2FkZHJlc3MtYmlsbGluZy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDM0UsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDL0QsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGtCQUFrQixFQUFFLGdCQUFnQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDN0csT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7OztBQWVqRSxNQUFNLE9BQU8sdUJBQXVCO0lBYnBDO1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BAAuB,EAAE,UAAU,EAAE,CAAC;AACjI,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,kCAAkC,EAAE,OAAO,EAAE;AAC5E,wBAAwB,mBAAmB;AAC3C,wBAAwB,uBAAuB;AAC/C,wBAAwB,mBAAmB;AAC3C,wBAAwB,kBAAkB;AAC1C,wBAAwB,gBAAgB;AACxC,wBAAwB,gBAAgB;AACxC,qBAAqB,EAAE,QAAQ,EAAE,6iBAA6iB,EAAE;AAChlB,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -31,7 +31,7 @@ class AddressDetailComponent extends BaseComponent {
|
|
|
31
31
|
const options = {
|
|
32
32
|
title: '确认删除吗',
|
|
33
33
|
message: '删除这个地址吗?',
|
|
34
|
-
cancelText: '
|
|
34
|
+
cancelText: 'Cancel',
|
|
35
35
|
confirmText: '确认',
|
|
36
36
|
};
|
|
37
37
|
this.dialogService.open(options);
|
|
@@ -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: "
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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: "
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressDetailComponent, decorators: [{
|
|
60
60
|
type: Component,
|
|
61
61
|
args: [{ selector: 'rolatech-account-address-detail', imports: [
|
|
62
62
|
AngularCommonModule,
|
|
@@ -65,8 +65,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
65
65
|
ContainerComponent,
|
|
66
66
|
ToolbarComponent,
|
|
67
67
|
AddressComponent,
|
|
68
|
-
], template: "<rolatech-container>\n <rolatech-toolbar title=\"\
|
|
68
|
+
], 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" }]
|
|
69
69
|
}] });
|
|
70
70
|
|
|
71
71
|
export { AddressDetailComponent };
|
|
72
|
-
//# sourceMappingURL=rolatech-angular-account-address-detail.component-
|
|
72
|
+
//# sourceMappingURL=rolatech-angular-account-address-detail.component-BLlet9GE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-detail.component-BLlet9GE.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address-detail/address-detail.component.js"],"sourcesContent":["import { Component, inject } 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';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/material/button\";\nexport class AddressDetailComponent extends BaseComponent {\n constructor() {\n super(...arguments);\n this.authUserService = inject(AuthUserService);\n this.address = {};\n }\n ngOnInit() {\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 static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.3\", 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: i1.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\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressDetailComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-account-address-detail', imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ], 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\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy1kZXRhaWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci1hY2NvdW50L3NyYy9saWIvcGFnZXMvbXlhY2NvdW50L2FkZHJlc3MvYWRkcmVzcy1kZXRhaWwvYWRkcmVzcy1kZXRhaWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci1hY2NvdW50L3NyYy9saWIvcGFnZXMvbXlhY2NvdW50L2FkZHJlc3MvYWRkcmVzcy1kZXRhaWwvYWRkcmVzcy1kZXRhaWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDMUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFD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AuB;AAC/C,wBAAwB,mBAAmB;AAC3C,wBAAwB,kBAAkB;AAC1C,wBAAwB,gBAAgB;AACxC,wBAAwB,gBAAgB;AACxC,qBAAqB,EAAE,QAAQ,EAAE,iiBAAiiB,EAAE;AACpkB,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -36,10 +36,10 @@ class AddressHomeComponent {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressHomeComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: 'rolatech-account-address-home', imports: [
|
|
45
45
|
AngularCommonModule,
|
|
@@ -48,8 +48,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
48
48
|
ContainerComponent,
|
|
49
49
|
ToolbarComponent,
|
|
50
50
|
AddressComponent,
|
|
51
|
-
], template: "<rolatech-container>\n <rolatech-toolbar title=\"\
|
|
51
|
+
], 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" }]
|
|
52
52
|
}] });
|
|
53
53
|
|
|
54
54
|
export { AddressHomeComponent };
|
|
55
|
-
//# sourceMappingURL=rolatech-angular-account-address-home.component-
|
|
55
|
+
//# sourceMappingURL=rolatech-angular-account-address-home.component-Cq8df4BZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-home.component-Cq8df4BZ.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address-home/address-home.component.js"],"sourcesContent":["import { Component, inject } 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';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/material/button\";\nexport class AddressHomeComponent {\n constructor() {\n this.authUserService = inject(AuthUserService);\n this.address = { type: 'HOME' };\n }\n ngOnInit() {\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 }\n else {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => { },\n });\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.3\", 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: i1.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\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressHomeComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-account-address-home', imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ], 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\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy1ob21lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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@angular/core';
|
|
3
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
4
|
+
import { AngularCommonModule, AddressFormatPipe } from '@rolatech/angular-common';
|
|
5
|
+
import { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
|
|
6
|
+
import * as i1 from '@angular/router';
|
|
7
|
+
import * as i2 from '@angular/material/button';
|
|
8
|
+
import * as i2$1 from '@angular/material/divider';
|
|
9
|
+
import * as i3 from '@angular/material/icon';
|
|
10
|
+
import * as i4 from '@angular/material/list';
|
|
11
|
+
|
|
12
|
+
class AddressShippingComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.authUserService = inject(AuthUserService);
|
|
15
|
+
this.addresses = [];
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.find();
|
|
19
|
+
}
|
|
20
|
+
find() {
|
|
21
|
+
const options = {
|
|
22
|
+
filter: 'type:SHIPPING',
|
|
23
|
+
};
|
|
24
|
+
this.authUserService.findAllAddress(options).subscribe({
|
|
25
|
+
next: (res) => {
|
|
26
|
+
this.addresses = res.data;
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
save() { }
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressShippingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.3", 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
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressShippingComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
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
|
+
}] });
|
|
38
|
+
|
|
39
|
+
export { AddressShippingComponent };
|
|
40
|
+
//# sourceMappingURL=rolatech-angular-account-address-shipping.component-BoCUP8BP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-shipping.component-BoCUP8BP.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address-shipping/address-shipping.component.js"],"sourcesContent":["import { Component, inject } from '@angular/core';\nimport { AuthUserService } from '@rolatech/angular-auth';\nimport { AddressFormatPipe, AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@angular/material/button\";\nimport * as i3 from \"@angular/material/divider\";\nimport * as i4 from \"@angular/material/icon\";\nimport * as i5 from \"@angular/material/list\";\nexport class AddressShippingComponent {\n constructor() {\n this.authUserService = inject(AuthUserService);\n this.addresses = [];\n }\n ngOnInit() {\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 static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressShippingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.0.3\", 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: i3.MatDivider, selector: \"mat-divider\", inputs: [\"vertical\", \"inset\"] }, { kind: \"component\", type: i4.MatIcon, selector: \"mat-icon\", inputs: [\"color\", \"inline\", \"svgIcon\", \"fontSet\", \"fontIcon\"], exportAs: [\"matIcon\"] }, { kind: \"component\", type: i5.MatNavList, selector: \"mat-nav-list\", exportAs: [\"matNavList\"] }, { kind: \"component\", type: i5.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\" }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressShippingComponent, decorators: [{\n type: Component,\n 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\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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gB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1kF;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,UAAU,EAAE,CAAC;AAClI,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,mCAAmC,EAAE,OAAO,EAAE,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,QAAQ,EAAE,44BAA44B,EAAE;AAC9kC,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Component } from '@angular/core';
|
|
3
|
+
import { AuthUserService, AddressComponent } from '@rolatech/angular-auth';
|
|
4
|
+
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
5
|
+
import { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
|
|
6
|
+
import { BackButtonDirective } from '@rolatech/angular-services';
|
|
7
|
+
import * as i2 from '@angular/material/button';
|
|
8
|
+
|
|
9
|
+
class AddressWorkComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.authUserService = inject(AuthUserService);
|
|
12
|
+
this.address = { type: 'WORK' };
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
this.find();
|
|
16
|
+
}
|
|
17
|
+
find() { }
|
|
18
|
+
save() { }
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressWorkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: AddressWorkComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'rolatech-account-address-work', imports: [
|
|
25
|
+
AngularCommonModule,
|
|
26
|
+
AngularComponentsModule,
|
|
27
|
+
BackButtonDirective,
|
|
28
|
+
ContainerComponent,
|
|
29
|
+
ToolbarComponent,
|
|
30
|
+
AddressComponent,
|
|
31
|
+
], 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" }]
|
|
32
|
+
}] });
|
|
33
|
+
|
|
34
|
+
export { AddressWorkComponent };
|
|
35
|
+
//# sourceMappingURL=rolatech-angular-account-address-work.component-DZVmQk00.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address-work.component-DZVmQk00.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address-work/address-work.component.js"],"sourcesContent":["import { Component, inject } 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';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/material/button\";\nexport class AddressWorkComponent {\n constructor() {\n this.authUserService = inject(AuthUserService);\n this.address = { type: 'WORK' };\n }\n ngOnInit() {\n this.find();\n }\n find() { }\n save() { }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressWorkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.3\", 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: i1.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\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: AddressWorkComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-account-address-work', imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ], 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\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy13b3JrLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItYWNjb3VudC9zcmMvbGliL3BhZ2VzL215YWNjb3VudC9hZGRyZXNzL2FkZHJlc3Mtd29yay9hZGRyZXNzLXdvcmsuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci1hY2NvdW50L3NyYy9saWIvcGFnZXMvbXlhY2NvdW50L2FkZHJlc3MvYWRkcmVzcy13b3JrL2FkZHJlc3Mtd29yay5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDM0UsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDL0QsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGtCQUFrQixFQUFFLGdCQUFnQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDN0csT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7OztBQWVqR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E,oBAAoB,EAAE,UAAU,EAAE,CAAC;AAC9H,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,+BAA+B,EAAE,OAAO,EAAE;AACzE,wBAAwB,mBAAmB;AAC3C,wBAAwB,uBAAuB;AAC/C,wBAAwB,mBAAmB;AAC3C,wBAAwB,kBAAkB;AAC1C,wBAAwB,gBAAgB;AACxC,wBAAwB,gBAAgB;AACxC,qBAAqB,EAAE,QAAQ,EAAE,0iBAA0iB,EAAE;AAC7kB,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -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-Cq8df4BZ.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-DZVmQk00.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-BQez3wKq.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-BoCUP8BP.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-wa2bcup4.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-BLlet9GE.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-BG537bit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-address.routes-BG537bit.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/address/address.routes.js"],"sourcesContent":["export const addressRoutes = [\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//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5yb3V0ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyLWFjY291bnQvc3JjL2xpYi9wYWdlcy9teWFjY291bnQvYWRkcmVzcy9hZGRyZXNzL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AAC;AAC5H,KAAK;AACL,IAAI;AACJ,QAAQ,IAAI,EAAE,KAAK;AACnB,QAAQ,aAAa,EAAE,MAAM,OAAO,+DAAqC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC;AAC7G,KAAK;AACL,IAAI;AACJ,QAAQ,IAAI,EAAE,KAAK;AACnB,QAAQ,aAAa,EAAE,MAAM,OAAO,kEAA2C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC;AACtH,KAAK;AACL;;;;"}
|
|
@@ -11,19 +11,19 @@ class EmailVerificationComponent extends BaseComponent {
|
|
|
11
11
|
const options = {
|
|
12
12
|
title: '确认删除吗',
|
|
13
13
|
message: 'CONFIRM.DOWNLOAD.JOB.MESSAGE',
|
|
14
|
-
cancelText: '
|
|
14
|
+
cancelText: 'Cancel',
|
|
15
15
|
confirmText: '确认',
|
|
16
16
|
};
|
|
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
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: EmailVerificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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: "
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", 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-CFXEcDgQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-email-verification.component-CFXEcDgQ.mjs","sources":["../tmp-esm2022/lib/pages/myaccount/email-verification/email-verification.component.js"],"sourcesContent":["import { Component } from '@angular/core';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent } from '@rolatech/angular-components';\nimport * as i0 from \"@angular/core\";\nexport class EmailVerificationComponent extends BaseComponent {\n ngOnInit() {\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 static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: EmailVerificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.3\", 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 }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: EmailVerificationComponent, decorators: [{\n type: Component,\n args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-account-email-verification', template: \"<div class=\\\"p-3\\\">Email verification</div>\\n\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwtdmVyaWZpY2F0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItYWNjb3VudC9zcmMvbGliL3BhZ2VzL215YWNjb3VudC9lbWFpbC12ZXJpZmljYXRpb24vZW1haWwtdmVyaWZpY2F0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItYWNjb3VudC9zcmMvbGliL3BhZ2VzL215YWNjb3VudC9lbWFpbC12ZXJpZmljYXRpb24vZW1haWwtdmVyaWZpY2F0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWtCLE1BQU0sZUFBZSxDQUFDO0FBQzFELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQy9ELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxhQUFhLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7QUFRdEYsTUFBTSxPQUFPLDBCQUEyQixTQUFRLGFBQWE7SUFDM0QsUUFBUTtRQUNOLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNkLENBQUM7SUFDRCxJQUFJO1FBQ0YsTUFBTSxPQUFPLEdBQUc7WUFDZCxLQUFLLEVB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+
import { inject, effect, Component } from '@angular/core';
|
|
3
|
+
import { AuthUserService, AuthStore } from '@rolatech/angular-auth';
|
|
4
|
+
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
5
|
+
import { BaseComponent, AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
|
|
6
|
+
import { BackButtonDirective } from '@rolatech/angular-services';
|
|
7
|
+
import * as i1 from '@angular/forms';
|
|
8
|
+
import * as i2 from '@angular/material/button';
|
|
9
|
+
import * as i3 from '@angular/material/form-field';
|
|
10
|
+
import * as i4 from '@angular/material/input';
|
|
11
|
+
|
|
12
|
+
class EmailComponent extends BaseComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.authUserService = inject(AuthUserService);
|
|
16
|
+
this.authStore = inject(AuthStore);
|
|
17
|
+
this.user = this.authStore.user;
|
|
18
|
+
this.email = '';
|
|
19
|
+
effect(() => {
|
|
20
|
+
this.email = this.user()?.email;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
ngOnInit() { }
|
|
24
|
+
save() {
|
|
25
|
+
this.authUserService.update({ email: this.email }).subscribe({
|
|
26
|
+
next: (res) => {
|
|
27
|
+
this.snackBarService.open('Update successfully');
|
|
28
|
+
this.authStore.updateEmail(this.email);
|
|
29
|
+
},
|
|
30
|
+
error: (error) => {
|
|
31
|
+
this.snackBarService.open(error.message);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: EmailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", 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
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: EmailComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
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
|
+
}], ctorParameters: () => [] });
|
|
42
|
+
|
|
43
|
+
export { EmailComponent };
|
|
44
|
+
//# sourceMappingURL=rolatech-angular-account-email.component-Cln1gL9k.mjs.map
|