@rolatech/angular-account 19.0.0-beta.9 → 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.
Files changed (106) hide show
  1. package/fesm2022/rolatech-angular-account-address-add.component-wa2bcup4.mjs +36 -0
  2. package/fesm2022/rolatech-angular-account-address-add.component-wa2bcup4.mjs.map +1 -0
  3. package/fesm2022/rolatech-angular-account-address-billing.component-BQez3wKq.mjs +35 -0
  4. package/fesm2022/rolatech-angular-account-address-billing.component-BQez3wKq.mjs.map +1 -0
  5. package/fesm2022/{rolatech-angular-account-address-detail.component-ZOfWc_yz.mjs → rolatech-angular-account-address-detail.component-BLlet9GE.mjs} +6 -6
  6. package/fesm2022/rolatech-angular-account-address-detail.component-BLlet9GE.mjs.map +1 -0
  7. package/fesm2022/{rolatech-angular-account-address-home.component-C4QYRh5u.mjs → rolatech-angular-account-address-home.component-Cq8df4BZ.mjs} +5 -5
  8. package/fesm2022/rolatech-angular-account-address-home.component-Cq8df4BZ.mjs.map +1 -0
  9. package/fesm2022/rolatech-angular-account-address-shipping.component-BoCUP8BP.mjs +40 -0
  10. package/fesm2022/rolatech-angular-account-address-shipping.component-BoCUP8BP.mjs.map +1 -0
  11. package/fesm2022/rolatech-angular-account-address-work.component-DZVmQk00.mjs +35 -0
  12. package/fesm2022/rolatech-angular-account-address-work.component-DZVmQk00.mjs.map +1 -0
  13. package/fesm2022/{rolatech-angular-account-address.routes-Ch53Z6As.mjs → rolatech-angular-account-address.routes-BG537bit.mjs} +7 -7
  14. package/fesm2022/rolatech-angular-account-address.routes-BG537bit.mjs.map +1 -0
  15. package/fesm2022/{rolatech-angular-account-email-verification.component-B8pTGyx9.mjs → rolatech-angular-account-email-verification.component-CFXEcDgQ.mjs} +5 -5
  16. package/fesm2022/rolatech-angular-account-email-verification.component-CFXEcDgQ.mjs.map +1 -0
  17. package/fesm2022/rolatech-angular-account-email.component-Cln1gL9k.mjs +44 -0
  18. package/fesm2022/rolatech-angular-account-email.component-Cln1gL9k.mjs.map +1 -0
  19. package/fesm2022/rolatech-angular-account-gender.component-BSNLzoVL.mjs +55 -0
  20. package/fesm2022/rolatech-angular-account-gender.component-BSNLzoVL.mjs.map +1 -0
  21. package/fesm2022/{rolatech-angular-account-home.component-DnsqsRNc.mjs → rolatech-angular-account-home.component-BNs5snXX.mjs} +5 -5
  22. package/fesm2022/rolatech-angular-account-home.component-BNs5snXX.mjs.map +1 -0
  23. package/fesm2022/rolatech-angular-account-info.component-3eu2_7TG.mjs +111 -0
  24. package/fesm2022/rolatech-angular-account-info.component-3eu2_7TG.mjs.map +1 -0
  25. package/fesm2022/rolatech-angular-account-phone.component-BLHE_waH.mjs +76 -0
  26. package/fesm2022/rolatech-angular-account-phone.component-BLHE_waH.mjs.map +1 -0
  27. package/fesm2022/rolatech-angular-account-profile.component-CLXgdPX-.mjs +43 -0
  28. package/fesm2022/rolatech-angular-account-profile.component-CLXgdPX-.mjs.map +1 -0
  29. package/fesm2022/rolatech-angular-account-security.routes-CQH41xZs.mjs +237 -0
  30. package/fesm2022/rolatech-angular-account-security.routes-CQH41xZs.mjs.map +1 -0
  31. package/fesm2022/rolatech-angular-account-user-CJa0pCxF.mjs +9 -0
  32. package/fesm2022/rolatech-angular-account-user-CJa0pCxF.mjs.map +1 -0
  33. package/fesm2022/rolatech-angular-account-username.component-BmX7QCbs.mjs +42 -0
  34. package/fesm2022/rolatech-angular-account-username.component-BmX7QCbs.mjs.map +1 -0
  35. package/fesm2022/rolatech-angular-account.mjs +511 -1
  36. package/fesm2022/rolatech-angular-account.mjs.map +1 -1
  37. package/index.d.ts +29 -4
  38. package/package.json +6 -6
  39. package/fesm2022/rolatech-angular-account-address-add.component-Bj6pnCLm.mjs +0 -36
  40. package/fesm2022/rolatech-angular-account-address-add.component-Bj6pnCLm.mjs.map +0 -1
  41. package/fesm2022/rolatech-angular-account-address-billing.component-P1YV-5wC.mjs +0 -35
  42. package/fesm2022/rolatech-angular-account-address-billing.component-P1YV-5wC.mjs.map +0 -1
  43. package/fesm2022/rolatech-angular-account-address-detail.component-ZOfWc_yz.mjs.map +0 -1
  44. package/fesm2022/rolatech-angular-account-address-home.component-C4QYRh5u.mjs.map +0 -1
  45. package/fesm2022/rolatech-angular-account-address-shipping.component-DhXX3Ksi.mjs +0 -40
  46. package/fesm2022/rolatech-angular-account-address-shipping.component-DhXX3Ksi.mjs.map +0 -1
  47. package/fesm2022/rolatech-angular-account-address-work.component-DELZ5ymv.mjs +0 -35
  48. package/fesm2022/rolatech-angular-account-address-work.component-DELZ5ymv.mjs.map +0 -1
  49. package/fesm2022/rolatech-angular-account-address.routes-Ch53Z6As.mjs.map +0 -1
  50. package/fesm2022/rolatech-angular-account-email-verification.component-B8pTGyx9.mjs.map +0 -1
  51. package/fesm2022/rolatech-angular-account-email.component-Q9ZpDLPX.mjs +0 -44
  52. package/fesm2022/rolatech-angular-account-email.component-Q9ZpDLPX.mjs.map +0 -1
  53. package/fesm2022/rolatech-angular-account-gender.component-DrxiKHvu.mjs +0 -55
  54. package/fesm2022/rolatech-angular-account-gender.component-DrxiKHvu.mjs.map +0 -1
  55. package/fesm2022/rolatech-angular-account-home.component-DnsqsRNc.mjs.map +0 -1
  56. package/fesm2022/rolatech-angular-account-info.component-BwS2LI6u.mjs +0 -112
  57. package/fesm2022/rolatech-angular-account-info.component-BwS2LI6u.mjs.map +0 -1
  58. package/fesm2022/rolatech-angular-account-login.routes-CHrOk4GX.mjs +0 -43
  59. package/fesm2022/rolatech-angular-account-login.routes-CHrOk4GX.mjs.map +0 -1
  60. package/fesm2022/rolatech-angular-account-phone.component-CYHAQ-Zb.mjs +0 -76
  61. package/fesm2022/rolatech-angular-account-phone.component-CYHAQ-Zb.mjs.map +0 -1
  62. package/fesm2022/rolatech-angular-account-profile.component-JIuW8kyu.mjs +0 -43
  63. package/fesm2022/rolatech-angular-account-profile.component-JIuW8kyu.mjs.map +0 -1
  64. package/fesm2022/rolatech-angular-account-rolatech-angular-account-B10UbSq5.mjs +0 -465
  65. package/fesm2022/rolatech-angular-account-rolatech-angular-account-B10UbSq5.mjs.map +0 -1
  66. package/fesm2022/rolatech-angular-account-security.routes-ezGjJPgA.mjs +0 -237
  67. package/fesm2022/rolatech-angular-account-security.routes-ezGjJPgA.mjs.map +0 -1
  68. package/fesm2022/rolatech-angular-account-user-CK_zEFn_.mjs +0 -9
  69. package/fesm2022/rolatech-angular-account-user-CK_zEFn_.mjs.map +0 -1
  70. package/fesm2022/rolatech-angular-account-username.component-C4k-jzFG.mjs +0 -42
  71. package/fesm2022/rolatech-angular-account-username.component-C4k-jzFG.mjs.map +0 -1
  72. package/lib/account.routes.d.ts +0 -2
  73. package/lib/components/avatar-update-dialog/avatar-update-dialog.component.d.ts +0 -22
  74. package/lib/components/forgot-password/forgot-password.component.d.ts +0 -8
  75. package/lib/components/index.d.ts +0 -1
  76. package/lib/components/login/login-wechat/login-wechat.component.d.ts +0 -15
  77. package/lib/components/login/login.routes.d.ts +0 -3
  78. package/lib/components/logout/logout.component.d.ts +0 -19
  79. package/lib/components/passwordreset/passwordreset.component.d.ts +0 -8
  80. package/lib/components/topbar-login/topbar-login.component.d.ts +0 -20
  81. package/lib/contant/user.d.ts +0 -5
  82. package/lib/myaccount.routes.d.ts +0 -2
  83. package/lib/pages/accounts/signin/signin.component.d.ts +0 -39
  84. package/lib/pages/accounts/signup/signup.component.d.ts +0 -21
  85. package/lib/pages/myaccount/address/address-add/address-add.component.d.ts +0 -11
  86. package/lib/pages/myaccount/address/address-billing/address-billing.component.d.ts +0 -12
  87. package/lib/pages/myaccount/address/address-detail/address-detail.component.d.ts +0 -14
  88. package/lib/pages/myaccount/address/address-home/address-home.component.d.ts +0 -12
  89. package/lib/pages/myaccount/address/address-shipping/address-shipping.component.d.ts +0 -12
  90. package/lib/pages/myaccount/address/address-work/address-work.component.d.ts +0 -12
  91. package/lib/pages/myaccount/address/address.routes.d.ts +0 -2
  92. package/lib/pages/myaccount/email/email.component.d.ts +0 -15
  93. package/lib/pages/myaccount/email-verification/email-verification.component.d.ts +0 -9
  94. package/lib/pages/myaccount/gender/gender.component.d.ts +0 -17
  95. package/lib/pages/myaccount/home/home.component.d.ts +0 -11
  96. package/lib/pages/myaccount/personal-info/info.component.d.ts +0 -18
  97. package/lib/pages/myaccount/personal-info/profile/profile.component.d.ts +0 -14
  98. package/lib/pages/myaccount/personal-info/username/username.component.d.ts +0 -14
  99. package/lib/pages/myaccount/phone/phone.component.d.ts +0 -19
  100. package/lib/pages/myaccount/security/security-faceid/security-faceid.component.d.ts +0 -5
  101. package/lib/pages/myaccount/security/security-index/security-index.component.d.ts +0 -22
  102. package/lib/pages/myaccount/security/security-password/security-password.component.d.ts +0 -16
  103. package/lib/pages/myaccount/security/security-verification/security-verification.component.d.ts +0 -24
  104. package/lib/pages/myaccount/security/security.routes.d.ts +0 -3
  105. package/lib/services/wechat-login.service.d.ts +0 -9
  106. package/provider.d.ts +0 -2
@@ -1,76 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, effect, Component } from '@angular/core';
3
- import * as i2 from '@angular/material/button';
4
- import { MatButtonModule } from '@angular/material/button';
5
- import { AuthService, AuthUserService } from '@rolatech/angular-auth';
6
- import { AngularCommonModule } from '@rolatech/angular-common';
7
- import { BaseComponent, AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
8
- import { BackButtonDirective } from '@rolatech/angular-services';
9
- import * as i1 from '@angular/forms';
10
- import * as i3 from '@angular/material/form-field';
11
- import * as i4 from '@angular/material/input';
12
-
13
- class PhoneComponent extends BaseComponent {
14
- constructor() {
15
- super();
16
- this.user = inject(AuthService).user;
17
- this.authUserService = inject(AuthUserService);
18
- this.phone = '';
19
- this.code = '';
20
- this.countDown = false;
21
- this.countDownTime = 60;
22
- this.showButtonText = '发送验证码';
23
- effect(() => {
24
- this.phone = this.user().phone;
25
- });
26
- }
27
- ngOnInit() { }
28
- sendSMSCode() {
29
- this.countDown = true;
30
- const start = setInterval(() => {
31
- if (this.countDownTime >= 0) {
32
- this.showButtonText = `${this.countDownTime--}秒重发`;
33
- }
34
- else {
35
- clearInterval(start);
36
- this.showButtonText = '重新发送';
37
- this.countDown = false;
38
- this.countDownTime = 60;
39
- }
40
- }, 1000);
41
- this.authUserService.sendSMSCode('+86', this.phone).subscribe({
42
- next: (res) => {
43
- this.snackBarService.open('发送成功');
44
- },
45
- error: (error) => {
46
- this.snackBarService.open(error.message);
47
- },
48
- });
49
- }
50
- save() {
51
- this.authUserService.changePhone(this.phone, this.code).subscribe({
52
- next: (res) => {
53
- this.snackBarService.open('修改成功');
54
- },
55
- error: (error) => {
56
- this.snackBarService.open(error.message);
57
- },
58
- });
59
- }
60
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: PhoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: PhoneComponent, isStandalone: true, selector: "rolatech-account-phone", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u624B\u673A\u53F7\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u624B\u673A\u53F7\u662F\u60A8\u5728\u672C\u7AD9\u7684\u552F\u4E00\u6807\u8BC6, \u66F4\u6539\u540E\u5C06\u540C\u65F6\u66F4\u6539\u7B2C\u4E09\u65B9\u7ED1\u5B9A\u7684\u624B\u673A\u53F7</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <mat-label> \u624B\u673A\u53F7 </mat-label>\n <input matInput [(ngModel)]=\"phone\" required />\n </mat-form-field>\n <div class=\"flex justify-between items-center gap-3\">\n <mat-form-field appearance=\"fill\">\n <mat-label> \u9A8C\u8BC1\u7801 </mat-label>\n <input matInput [(ngModel)]=\"code\" required />\n </mat-form-field>\n <button mat-button (click)=\"sendSMSCode()\" [disabled]=\"countDown\" class=\"w-[128px]\">\n <span class=\"text-sm\">{{ showButtonText }}</span>\n </button>\n </div>\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-[128px] ml-3\" (click)=\"save()\">\u4FDD\u5B58</button>\n </div>\n </div>\n</rolatech-container>\n", styles: ["mat-form-field{width:100%}\n"], 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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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: i3.MatLabel, selector: "mat-label" }, { 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: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }] }); }
62
- }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: PhoneComponent, decorators: [{
64
- type: Component,
65
- args: [{ imports: [
66
- AngularCommonModule,
67
- AngularComponentsModule,
68
- ContainerComponent,
69
- ToolbarComponent,
70
- MatButtonModule,
71
- BackButtonDirective,
72
- ], selector: 'rolatech-account-phone', template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u624B\u673A\u53F7\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u624B\u673A\u53F7\u662F\u60A8\u5728\u672C\u7AD9\u7684\u552F\u4E00\u6807\u8BC6, \u66F4\u6539\u540E\u5C06\u540C\u65F6\u66F4\u6539\u7B2C\u4E09\u65B9\u7ED1\u5B9A\u7684\u624B\u673A\u53F7</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <mat-label> \u624B\u673A\u53F7 </mat-label>\n <input matInput [(ngModel)]=\"phone\" required />\n </mat-form-field>\n <div class=\"flex justify-between items-center gap-3\">\n <mat-form-field appearance=\"fill\">\n <mat-label> \u9A8C\u8BC1\u7801 </mat-label>\n <input matInput [(ngModel)]=\"code\" required />\n </mat-form-field>\n <button mat-button (click)=\"sendSMSCode()\" [disabled]=\"countDown\" class=\"w-[128px]\">\n <span class=\"text-sm\">{{ showButtonText }}</span>\n </button>\n </div>\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-[128px] ml-3\" (click)=\"save()\">\u4FDD\u5B58</button>\n </div>\n </div>\n</rolatech-container>\n", styles: ["mat-form-field{width:100%}\n"] }]
73
- }], ctorParameters: () => [] });
74
-
75
- export { PhoneComponent };
76
- //# sourceMappingURL=rolatech-angular-account-phone.component-CYHAQ-Zb.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolatech-angular-account-phone.component-CYHAQ-Zb.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/phone/phone.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/phone/phone.component.html"],"sourcesContent":["import { Component, OnInit, effect, inject } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\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';\n\n@Component({\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n ContainerComponent,\n ToolbarComponent,\n MatButtonModule,\n BackButtonDirective,\n ],\n selector: 'rolatech-account-phone',\n templateUrl: './phone.component.html',\n styleUrls: ['./phone.component.scss'],\n})\nexport class PhoneComponent extends BaseComponent implements OnInit {\n user = inject(AuthService).user;\n authUserService = inject(AuthUserService);\n phone = '';\n code = '';\n countDown = false;\n countDownTime = 60;\n showButtonText = '发送验证码';\n constructor() {\n super();\n effect(() => {\n this.phone = this.user()!.phone;\n });\n }\n ngOnInit(): void {}\n\n sendSMSCode() {\n this.countDown = true;\n const start = setInterval(() => {\n if (this.countDownTime >= 0) {\n this.showButtonText = `${this.countDownTime--}秒重发`;\n } else {\n clearInterval(start);\n this.showButtonText = '重新发送';\n this.countDown = false;\n this.countDownTime = 60;\n }\n }, 1000);\n\n this.authUserService.sendSMSCode('+86', this.phone).subscribe({\n next: (res) => {\n this.snackBarService.open('发送成功');\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n save() {\n this.authUserService.changePhone(this.phone, this.code).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 <p class=\"text-md\">手机号是您在本站的唯一标识, 更改后将同时更改第三方绑定的手机号</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <mat-label> 手机号 </mat-label>\n <input matInput [(ngModel)]=\"phone\" required />\n </mat-form-field>\n <div class=\"flex justify-between items-center gap-3\">\n <mat-form-field appearance=\"fill\">\n <mat-label> 验证码 </mat-label>\n <input matInput [(ngModel)]=\"code\" required />\n </mat-form-field>\n <button mat-button (click)=\"sendSMSCode()\" [disabled]=\"countDown\" class=\"w-[128px]\">\n <span class=\"text-sm\">{{ showButtonText }}</span>\n </button>\n </div>\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-[128px] ml-3\" (click)=\"save()\">保存</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;;AAoBM,MAAO,cAAe,SAAQ,aAAa,CAAA;AAQ/C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AART,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI;AAC/B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAK,CAAA,KAAA,GAAG,EAAE;QACV,IAAI,CAAA,IAAA,GAAG,EAAE;QACT,IAAS,CAAA,SAAA,GAAG,KAAK;QACjB,IAAa,CAAA,aAAA,GAAG,EAAE;QAClB,IAAc,CAAA,cAAA,GAAG,OAAO;QAGtB,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAG,CAAC,KAAK;AACjC,SAAC,CAAC;;AAEJ,IAAA,QAAQ;IAER,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI;AACrB,QAAA,M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- import * as i0 from '@angular/core';
2
- import { inject, effect, Component } from '@angular/core';
3
- import * as i2 from '@angular/material/button';
4
- import { MatButton } from '@angular/material/button';
5
- import { AuthUserService, AuthService } from '@rolatech/angular-auth';
6
- import { AngularCommonModule } from '@rolatech/angular-common';
7
- import { BaseComponent, AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
8
- import { BackButtonDirective } from '@rolatech/angular-services';
9
- import * as i1 from '@angular/forms';
10
- import * as i3 from '@angular/material/form-field';
11
- import * as i4 from '@angular/material/input';
12
-
13
- class ProfileComponent extends BaseComponent {
14
- constructor() {
15
- super();
16
- this.authUserService = inject(AuthUserService);
17
- this.user = inject(AuthService).user;
18
- this.name = '';
19
- effect(() => {
20
- this.name = this.user().name;
21
- });
22
- }
23
- ngOnInit() { }
24
- save() {
25
- this.authUserService.changeName(this.name).subscribe({
26
- next: (res) => {
27
- this.snackBarService.open('修改成功');
28
- },
29
- error: (error) => {
30
- this.snackBarService.open(error.message);
31
- },
32
- });
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: ProfileComponent, isStandalone: true, selector: "rolatech-account-profile", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u59D3\u540D\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u7528\u6237\u540D\u662F\u60A8\u5728\u672C\u7AD9\u7684\u7B80\u79F0, \u53EF\u4EE5\u662F\u771F\u5B9E\u59D3\u540D, \u4E5F\u53EF\u4EE5\u662F\u6635\u79F0</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"name\" />\n </mat-form-field>\n <div class=\"flex justify-end items-center p-2\">\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 </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"] }] }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ProfileComponent, decorators: [{
38
- type: Component,
39
- args: [{ imports: [AngularCommonModule, AngularComponentsModule, MatButton, BackButtonDirective, ContainerComponent, ToolbarComponent], selector: 'rolatech-account-profile', template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u59D3\u540D\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\">\u7528\u6237\u540D\u662F\u60A8\u5728\u672C\u7AD9\u7684\u7B80\u79F0, \u53EF\u4EE5\u662F\u771F\u5B9E\u59D3\u540D, \u4E5F\u53EF\u4EE5\u662F\u6635\u79F0</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"name\" />\n </mat-form-field>\n <div class=\"flex justify-end items-center p-2\">\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 </div>\n</rolatech-container>\n" }]
40
- }], ctorParameters: () => [] });
41
-
42
- export { ProfileComponent };
43
- //# sourceMappingURL=rolatech-angular-account-profile.component-JIuW8kyu.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolatech-angular-account-profile.component-JIuW8kyu.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/personal-info/profile/profile.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/personal-info/profile/profile.component.html"],"sourcesContent":["import { Component, OnInit, effect, inject } from '@angular/core';\nimport { MatButton } from '@angular/material/button';\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';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, MatButton, BackButtonDirective, ContainerComponent, ToolbarComponent],\n selector: 'rolatech-account-profile',\n templateUrl: './profile.component.html',\n styleUrls: ['./profile.component.scss'],\n})\nexport class ProfileComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n user = inject(AuthService).user;\n name = '';\n constructor() {\n super();\n effect(() => {\n this.name = this.user()!.name!;\n });\n }\n ngOnInit(): void {}\n\n save() {\n this.authUserService.changeName(this.name).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 <p class=\"text-md\">用户名是您在本站的简称, 可以是真实姓名, 也可以是昵称</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"name\" />\n </mat-form-field>\n <div class=\"flex justify-end items-center p-2\">\n <button mat-button rolatechBackButton>取消</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\">保存</button>\n </div>\n </div>\n </div>\n</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;;AAaM,MAAO,gBAAiB,SAAQ,aAAa,CAAA;AAIjD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAJT,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI;QAC/B,IAAI,CAAA,IAAA,GAAG,EAAE;QAGP,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAG,CAAC,IAAK;AAChC,SAAC,CAAC;;AAEJ,IAAA,QAAQ;IAER,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC;AACnD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;AACZ,gBAAA,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;aAClC;AACD,YAAA,KAAK,EAAE,CAAC,KAAK,KAAI;gBACf,IAAI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