@rolatech/angular-account 17.3.0 → 19.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/rolatech-angular-account-address-add.component-Ce3hAH2I.mjs +36 -0
- package/fesm2022/rolatech-angular-account-address-add.component-Ce3hAH2I.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-billing.component-iJ9e714P.mjs +35 -0
- package/fesm2022/rolatech-angular-account-address-billing.component-iJ9e714P.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-detail.component-YrEBTrX3.mjs +72 -0
- package/fesm2022/rolatech-angular-account-address-detail.component-YrEBTrX3.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-home.component-ChXk3WBo.mjs +55 -0
- package/fesm2022/rolatech-angular-account-address-home.component-ChXk3WBo.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-shipping.component-DIHcCOMD.mjs +40 -0
- package/fesm2022/rolatech-angular-account-address-shipping.component-DIHcCOMD.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address-work.component-D_J4DR-s.mjs +35 -0
- package/fesm2022/rolatech-angular-account-address-work.component-D_J4DR-s.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-address.routes-B7dDMeuH.mjs +29 -0
- package/fesm2022/rolatech-angular-account-address.routes-B7dDMeuH.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-email-verification.component-j5MMlpq4.mjs → rolatech-angular-account-email-verification.component-CkRt0ILC.mjs} +5 -5
- package/fesm2022/rolatech-angular-account-email-verification.component-CkRt0ILC.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-email.component-OLqoOYNY.mjs → rolatech-angular-account-email.component-DuA61oxk.mjs} +5 -5
- package/fesm2022/rolatech-angular-account-email.component-DuA61oxk.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-gender.component-RKepKjrL.mjs +55 -0
- package/fesm2022/rolatech-angular-account-gender.component-RKepKjrL.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-home.component-CIvRJUb9.mjs +23 -0
- package/fesm2022/rolatech-angular-account-home.component-CIvRJUb9.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-info.component-D2dwWQTF.mjs +112 -0
- package/fesm2022/rolatech-angular-account-info.component-D2dwWQTF.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-login.routes-DFKK13HD.mjs → rolatech-angular-account-login.routes-C97QVyJ0.mjs} +6 -14
- package/fesm2022/rolatech-angular-account-login.routes-C97QVyJ0.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-phone.component-CS_cOB8a.mjs → rolatech-angular-account-phone.component-Kxe2MDen.mjs} +6 -6
- package/fesm2022/rolatech-angular-account-phone.component-Kxe2MDen.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-profile.component-C9lE8mss.mjs → rolatech-angular-account-profile.component-CKN-gbiM.mjs} +6 -6
- package/fesm2022/rolatech-angular-account-profile.component-CKN-gbiM.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-account-rolatech-angular-account-CUq5mgrn.mjs → rolatech-angular-account-rolatech-angular-account-BNEg6V8a.mjs} +101 -58
- package/fesm2022/rolatech-angular-account-rolatech-angular-account-BNEg6V8a.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-security.routes-KlF9MNKj.mjs +237 -0
- package/fesm2022/rolatech-angular-account-security.routes-KlF9MNKj.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account-user-CK_zEFn_.mjs.map +1 -1
- package/fesm2022/{rolatech-angular-account-username.component-C3uU1lYv.mjs → rolatech-angular-account-username.component-DyUMdNt7.mjs} +6 -6
- package/fesm2022/rolatech-angular-account-username.component-DyUMdNt7.mjs.map +1 -0
- package/fesm2022/rolatech-angular-account.mjs +1 -13
- package/fesm2022/rolatech-angular-account.mjs.map +1 -1
- package/lib/components/topbar-login/topbar-login.component.d.ts +9 -2
- package/lib/pages/myaccount/address/address-add/address-add.component.d.ts +11 -0
- package/lib/pages/myaccount/address/address-billing/address-billing.component.d.ts +12 -0
- package/lib/pages/myaccount/address/address-detail/address-detail.component.d.ts +14 -0
- package/lib/pages/myaccount/address/address-home/address-home.component.d.ts +12 -0
- package/lib/pages/myaccount/address/address-shipping/address-shipping.component.d.ts +12 -0
- package/lib/pages/myaccount/address/address-work/address-work.component.d.ts +12 -0
- package/lib/pages/myaccount/address/address.routes.d.ts +2 -0
- package/lib/pages/myaccount/email/email.component.d.ts +1 -1
- package/lib/pages/myaccount/email-verification/email-verification.component.d.ts +1 -1
- package/lib/pages/myaccount/gender/gender.component.d.ts +1 -1
- package/lib/pages/myaccount/home/home.component.d.ts +3 -2
- package/lib/pages/myaccount/personal-info/info.component.d.ts +5 -1
- package/lib/pages/myaccount/personal-info/profile/profile.component.d.ts +1 -1
- package/lib/pages/myaccount/personal-info/username/username.component.d.ts +1 -1
- package/lib/pages/myaccount/phone/phone.component.d.ts +1 -1
- package/lib/pages/myaccount/security/security-index/security-index.component.d.ts +4 -0
- package/lib/services/wechat-login.service.d.ts +1 -1
- package/package.json +21 -7
- package/themes/_default.scss +1 -1
- package/esm2022/index.mjs +0 -5
- package/esm2022/lib/account.routes.mjs +0 -36
- package/esm2022/lib/components/avatar-update-dialog/avatar-update-dialog.component.mjs +0 -63
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +0 -13
- package/esm2022/lib/components/index.mjs +0 -3
- package/esm2022/lib/components/login/login-wechat/login-wechat.component.mjs +0 -38
- package/esm2022/lib/components/login/login.routes.mjs +0 -4
- package/esm2022/lib/components/logout/logout.component.mjs +0 -46
- package/esm2022/lib/components/passwordreset/passwordreset.component.mjs +0 -13
- package/esm2022/lib/components/topbar-login/topbar-login.component.mjs +0 -29
- package/esm2022/lib/components/user-item/user-item.component.mjs +0 -31
- package/esm2022/lib/contant/user.mjs +0 -7
- package/esm2022/lib/myaccount.routes.mjs +0 -37
- package/esm2022/lib/pages/accounts/signin/signin.component.mjs +0 -159
- package/esm2022/lib/pages/accounts/signup/signup.component.mjs +0 -82
- package/esm2022/lib/pages/myaccount/email/email.component.mjs +0 -41
- package/esm2022/lib/pages/myaccount/email-verification/email-verification.component.mjs +0 -26
- package/esm2022/lib/pages/myaccount/gender/gender.component.mjs +0 -52
- package/esm2022/lib/pages/myaccount/home/home.component.mjs +0 -31
- package/esm2022/lib/pages/myaccount/personal-info/info.component.mjs +0 -38
- package/esm2022/lib/pages/myaccount/personal-info/profile/profile.component.mjs +0 -40
- package/esm2022/lib/pages/myaccount/personal-info/username/username.component.mjs +0 -39
- package/esm2022/lib/pages/myaccount/phone/phone.component.mjs +0 -73
- package/esm2022/lib/pages/myaccount/security/security-faceid/security-faceid.component.mjs +0 -13
- package/esm2022/lib/pages/myaccount/security/security-index/security-index.component.mjs +0 -64
- package/esm2022/lib/pages/myaccount/security/security-password/security-password.component.mjs +0 -47
- package/esm2022/lib/pages/myaccount/security/security-verification/security-verification.component.mjs +0 -86
- package/esm2022/lib/pages/myaccount/security/security.routes.mjs +0 -20
- package/esm2022/lib/services/wechat-login.service.mjs +0 -19
- package/esm2022/provider.mjs +0 -14
- package/esm2022/rolatech-angular-account.mjs +0 -5
- package/fesm2022/rolatech-angular-account-email-verification.component-j5MMlpq4.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-email.component-OLqoOYNY.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-gender.component-OBCSGcJl.mjs +0 -55
- package/fesm2022/rolatech-angular-account-gender.component-OBCSGcJl.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-home.component-DX7IrKro.mjs +0 -42
- package/fesm2022/rolatech-angular-account-home.component-DX7IrKro.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-info.component-Bq6h7lOh.mjs +0 -98
- package/fesm2022/rolatech-angular-account-info.component-Bq6h7lOh.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-login.routes-DFKK13HD.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-phone.component-CS_cOB8a.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-profile.component-C9lE8mss.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-rolatech-angular-account-CUq5mgrn.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-security.routes-0-TC-2OQ.mjs +0 -203
- package/fesm2022/rolatech-angular-account-security.routes-0-TC-2OQ.mjs.map +0 -1
- package/fesm2022/rolatech-angular-account-username.component-C3uU1lYv.mjs.map +0 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Component, Renderer2, viewChild } from '@angular/core';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import * as i2$1 from '@rolatech/angular-auth';
|
|
5
|
+
import { AuthService, FaceidDetectDialogComponent } from '@rolatech/angular-auth';
|
|
6
|
+
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
7
|
+
import { WechatConnectDialogComponent, AngularComponentsModule, ContainerComponent, ToolbarComponent, SpinnerComponent } from '@rolatech/angular-components';
|
|
8
|
+
import { DialogService, SnackBarService, BackButtonDirective } from '@rolatech/angular-services';
|
|
9
|
+
import * as i1 from '@angular/router';
|
|
10
|
+
import * as i2 from '@angular/material/divider';
|
|
11
|
+
import * as i3 from '@angular/material/icon';
|
|
12
|
+
import * as i4 from '@angular/material/list';
|
|
13
|
+
import * as i1$1 from '@angular/forms';
|
|
14
|
+
import { Validators } from '@angular/forms';
|
|
15
|
+
import * as i3$1 from '@angular/material/snack-bar';
|
|
16
|
+
import * as i2$2 from '@angular/material/button';
|
|
17
|
+
import * as i3$2 from '@angular/material/form-field';
|
|
18
|
+
import * as i4$1 from '@angular/material/input';
|
|
19
|
+
import * as QRCode from 'qrcode';
|
|
20
|
+
|
|
21
|
+
class SecurityIndexComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.dialog = inject(MatDialog);
|
|
24
|
+
this.authService = inject(AuthService);
|
|
25
|
+
this.dialogService = inject(DialogService);
|
|
26
|
+
this.snackBarService = inject(SnackBarService);
|
|
27
|
+
this.bind = false;
|
|
28
|
+
this.verified = false;
|
|
29
|
+
}
|
|
30
|
+
ngOnInit() {
|
|
31
|
+
this.wechatStatus();
|
|
32
|
+
}
|
|
33
|
+
faceId() {
|
|
34
|
+
const options = {
|
|
35
|
+
title: '实名认证',
|
|
36
|
+
message: '使用微信扫描二维码, 实名认证',
|
|
37
|
+
component: FaceidDetectDialogComponent,
|
|
38
|
+
cancelText: '取消',
|
|
39
|
+
confirmText: '确认',
|
|
40
|
+
};
|
|
41
|
+
this.dialogService.open(options);
|
|
42
|
+
this.dialogService.confirmed().subscribe({
|
|
43
|
+
next: (result) => {
|
|
44
|
+
if (result) {
|
|
45
|
+
this.checkFaceIdStatus();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
checkFaceIdStatus() {
|
|
51
|
+
this.authService.faceIdStatus().subscribe({
|
|
52
|
+
next: (res) => {
|
|
53
|
+
this.verified = res.data.verified;
|
|
54
|
+
if (!res.data.verified) {
|
|
55
|
+
this.snackBarService.open('未认证');
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
error: (error) => {
|
|
59
|
+
this.snackBarService.open(error.message);
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
connectWeChat() {
|
|
64
|
+
// const redirectUri = 'https://accounts.pinxiaoke.cn/login';
|
|
65
|
+
const redirectUri = `${window.location.origin}/login`;
|
|
66
|
+
const options = {
|
|
67
|
+
title: '微信绑定',
|
|
68
|
+
message: '扫码绑定微信,提升账号安全和使用便利性',
|
|
69
|
+
cancelText: '取消',
|
|
70
|
+
confirmText: '确认',
|
|
71
|
+
component: WechatConnectDialogComponent,
|
|
72
|
+
data: {
|
|
73
|
+
appId: 'wx567acbea73439828',
|
|
74
|
+
redirectUri: redirectUri,
|
|
75
|
+
state: 'add',
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
this.dialogService.open(options);
|
|
79
|
+
this.dialogService.confirmed().subscribe({
|
|
80
|
+
next: (result) => {
|
|
81
|
+
if (result) {
|
|
82
|
+
this.wechatStatus();
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
disconnectWeChat() {
|
|
88
|
+
this.authService.wechatDisconnect().subscribe({
|
|
89
|
+
next: (res) => {
|
|
90
|
+
this.bind = false;
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
wechatStatus() {
|
|
95
|
+
this.authService.wechatStatus({ id: 'me' }).subscribe({
|
|
96
|
+
next: (res) => {
|
|
97
|
+
this.bind = res.data?.openid !== undefined;
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SecurityIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
102
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: SecurityIndexComponent, isStandalone: true, selector: "rolatech-account-security-index", ngImport: i0, template: "<rolatech-container>\n <div class=\"max-w-[820px] m-3\">\n <div class=\"flex flex-col justify-center items-center p-3 mb-12\">\n <p class=\"text-3xl\">\u5B89\u5168\u8BBE\u7F6E</p>\n <p class=\"text-md\">\u7528\u6237\u4FE1\u606F\u7684\u5B89\u5168\u8BBE\u7F6E</p>\n </div>\n <div class=\"border border-[--rt-border-color] rounded px-3 pt-3\">\n <div class=\"p-3 text-xl\">\u57FA\u672C\u8BBE\u7F6E</div>\n <mat-nav-list>\n <mat-list-item (click)=\"faceId()\">\n <div class=\"flex items-center justify-between\">\n <span>\u5B9E\u540D\u8BA4\u8BC1</span>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n @if (!verified) {\n <span class=\"mr-3\"> \u672A\u8BA4\u8BC1 </span>\n }\n @if (verified) {\n <a class=\"mr-3\"> \u5DF2\u8BA4\u8BC1 </a>\n }\n <!-- @if (bind) {\n <a class=\"mr-3\" (click)=\"disconnectWeChat()\"> \u89E3\u7ED1 </a>\n } -->\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n <mat-list-item (click)=\"connectWeChat()\">\n <div class=\"flex items-center justify-between\">\n <span>\u5FAE\u4FE1\u7ED1\u5B9A</span>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n @if (!bind) {\n <span class=\"mr-3\"> \u7ED1\u5B9A </span>\n }\n @if (bind) {\n <a class=\"mr-3\"> \u5DF2\u7ED1\u5B9A </a>\n }\n <!-- @if (bind) {\n <a class=\"mr-3\" (click)=\"disconnectWeChat()\"> \u89E3\u7ED1 </a>\n } -->\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n <mat-list-item routerLink=\"./password\">\n <div class=\"flex items-center justify-between\">\n <span>\u5BC6\u7801\u8BBE\u7F6E</span>\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-nav-list>\n </div>\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.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" }] }); }
|
|
103
|
+
}
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SecurityIndexComponent, decorators: [{
|
|
105
|
+
type: Component,
|
|
106
|
+
args: [{ imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent], selector: 'rolatech-account-security-index', template: "<rolatech-container>\n <div class=\"max-w-[820px] m-3\">\n <div class=\"flex flex-col justify-center items-center p-3 mb-12\">\n <p class=\"text-3xl\">\u5B89\u5168\u8BBE\u7F6E</p>\n <p class=\"text-md\">\u7528\u6237\u4FE1\u606F\u7684\u5B89\u5168\u8BBE\u7F6E</p>\n </div>\n <div class=\"border border-[--rt-border-color] rounded px-3 pt-3\">\n <div class=\"p-3 text-xl\">\u57FA\u672C\u8BBE\u7F6E</div>\n <mat-nav-list>\n <mat-list-item (click)=\"faceId()\">\n <div class=\"flex items-center justify-between\">\n <span>\u5B9E\u540D\u8BA4\u8BC1</span>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n @if (!verified) {\n <span class=\"mr-3\"> \u672A\u8BA4\u8BC1 </span>\n }\n @if (verified) {\n <a class=\"mr-3\"> \u5DF2\u8BA4\u8BC1 </a>\n }\n <!-- @if (bind) {\n <a class=\"mr-3\" (click)=\"disconnectWeChat()\"> \u89E3\u7ED1 </a>\n } -->\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n <mat-list-item (click)=\"connectWeChat()\">\n <div class=\"flex items-center justify-between\">\n <span>\u5FAE\u4FE1\u7ED1\u5B9A</span>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n @if (!bind) {\n <span class=\"mr-3\"> \u7ED1\u5B9A </span>\n }\n @if (bind) {\n <a class=\"mr-3\"> \u5DF2\u7ED1\u5B9A </a>\n }\n <!-- @if (bind) {\n <a class=\"mr-3\" (click)=\"disconnectWeChat()\"> \u89E3\u7ED1 </a>\n } -->\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n <mat-list-item routerLink=\"./password\">\n <div class=\"flex items-center justify-between\">\n <span>\u5BC6\u7801\u8BBE\u7F6E</span>\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-nav-list>\n </div>\n </div>\n</rolatech-container>\n" }]
|
|
107
|
+
}], ctorParameters: () => [] });
|
|
108
|
+
|
|
109
|
+
class SecurityPasswordComponent {
|
|
110
|
+
constructor(formBuilder, authService, snackBar) {
|
|
111
|
+
this.formBuilder = formBuilder;
|
|
112
|
+
this.authService = authService;
|
|
113
|
+
this.snackBar = snackBar;
|
|
114
|
+
}
|
|
115
|
+
ngOnInit() {
|
|
116
|
+
this.passwordForm = this.formBuilder.group({
|
|
117
|
+
oldPassword: ['', Validators.required],
|
|
118
|
+
newPassword: ['', Validators.required],
|
|
119
|
+
ne2Password: ['', Validators.required],
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
save() {
|
|
123
|
+
if (!this.passwordForm.valid) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this.authService.changePassword(this.passwordForm.value).subscribe({
|
|
127
|
+
next: (res) => {
|
|
128
|
+
this.snackBar.open(res.message);
|
|
129
|
+
},
|
|
130
|
+
error: (e) => {
|
|
131
|
+
this.snackBar.open(e.message);
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SecurityPasswordComponent, deps: [{ token: i1$1.FormBuilder }, { token: i2$1.AuthService }, { token: i3$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: SecurityPasswordComponent, isStandalone: true, selector: "rolatech-account-security-password", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u5BC6\u7801\" subtitle=\"\u4FEE\u6539\u5BC6\u7801\" link=\"/security\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <form [formGroup]=\"passwordForm\">\n <div class=\"flex flex-col\">\n <mat-form-field appearance=\"fill\">\n <mat-label> \u539F\u5BC6\u7801</mat-label>\n <input matInput type=\"password\" formControlName=\"oldPassword\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> \u65B0\u5BC6\u7801 </mat-label>\n <input matInput type=\"password\" formControlName=\"newPassword\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> \u65B0\u5BC6\u7801 </mat-label>\n <input matInput type=\"password\" formControlName=\"ne2Password\" required />\n </mat-form-field>\n </div>\n </form>\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] p-2 ml-3\" (click)=\"save()\">\u4FDD\u5B58</button>\n </div>\n </div>\n</rolatech-container>\n<div class=\"max-w-[1120px] m-auto px-6\"></div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.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: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }] }); }
|
|
137
|
+
}
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SecurityPasswordComponent, decorators: [{
|
|
139
|
+
type: Component,
|
|
140
|
+
args: [{ imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, BackButtonDirective], selector: 'rolatech-account-security-password', template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u5BC6\u7801\" subtitle=\"\u4FEE\u6539\u5BC6\u7801\" link=\"/security\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <form [formGroup]=\"passwordForm\">\n <div class=\"flex flex-col\">\n <mat-form-field appearance=\"fill\">\n <mat-label> \u539F\u5BC6\u7801</mat-label>\n <input matInput type=\"password\" formControlName=\"oldPassword\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> \u65B0\u5BC6\u7801 </mat-label>\n <input matInput type=\"password\" formControlName=\"newPassword\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> \u65B0\u5BC6\u7801 </mat-label>\n <input matInput type=\"password\" formControlName=\"ne2Password\" required />\n </mat-form-field>\n </div>\n </form>\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] p-2 ml-3\" (click)=\"save()\">\u4FDD\u5B58</button>\n </div>\n </div>\n</rolatech-container>\n<div class=\"max-w-[1120px] m-auto px-6\"></div>\n" }]
|
|
141
|
+
}], ctorParameters: () => [{ type: i1$1.FormBuilder }, { type: i2$1.AuthService }, { type: i3$1.MatSnackBar }] });
|
|
142
|
+
|
|
143
|
+
class SecurityVerificationComponent {
|
|
144
|
+
constructor() {
|
|
145
|
+
this.dialog = inject(MatDialog);
|
|
146
|
+
this.authService = inject(AuthService);
|
|
147
|
+
this.verified = false;
|
|
148
|
+
this.renderer = inject(Renderer2);
|
|
149
|
+
this.qrcElement = viewChild.required('qrcode');
|
|
150
|
+
this.loading = false;
|
|
151
|
+
this.BizToken = '';
|
|
152
|
+
this.identification = {};
|
|
153
|
+
}
|
|
154
|
+
ngOnInit() {
|
|
155
|
+
this.checkFaceIdStatus();
|
|
156
|
+
}
|
|
157
|
+
checkFaceIdStatus() {
|
|
158
|
+
this.authService.faceIdStatus().subscribe({
|
|
159
|
+
next: (res) => {
|
|
160
|
+
this.verified = res.data.verified;
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
verify() {
|
|
165
|
+
this.loading = true;
|
|
166
|
+
this.authService.requestFaceIdDetect().subscribe({
|
|
167
|
+
next: ({ data }) => {
|
|
168
|
+
this.genQRCode(data.url);
|
|
169
|
+
// this.loop();
|
|
170
|
+
},
|
|
171
|
+
error: () => {
|
|
172
|
+
this.loading = false;
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
loop() {
|
|
177
|
+
const interval = setInterval(() => {
|
|
178
|
+
this.authService.faceIdStatus().subscribe({
|
|
179
|
+
next: (res) => {
|
|
180
|
+
if (res) {
|
|
181
|
+
clearInterval(interval);
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
}, 2000);
|
|
186
|
+
}
|
|
187
|
+
genQRCode(url) {
|
|
188
|
+
const element = this.renderer.createElement('canvas');
|
|
189
|
+
this.toCanvas(element, url)
|
|
190
|
+
.then(() => {
|
|
191
|
+
this.renderElement(element);
|
|
192
|
+
})
|
|
193
|
+
.catch((e) => {
|
|
194
|
+
this.removeElementChildren();
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
toCanvas(canvas, url) {
|
|
198
|
+
return QRCode.toCanvas(canvas, url, {
|
|
199
|
+
errorCorrectionLevel: 'M',
|
|
200
|
+
width: 200,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
renderElement(element) {
|
|
204
|
+
this.removeElementChildren();
|
|
205
|
+
this.renderer.appendChild(this.qrcElement().nativeElement, element);
|
|
206
|
+
}
|
|
207
|
+
removeElementChildren() {
|
|
208
|
+
for (const node of this.qrcElement().nativeElement.childNodes) {
|
|
209
|
+
this.renderer.removeChild(this.qrcElement().nativeElement, node);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SecurityVerificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
213
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: SecurityVerificationComponent, isStandalone: true, selector: "rolatech-account-security-verification", viewQueries: [{ propertyName: "qrcElement", first: true, predicate: ["qrcode"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"max-w-[1120px] m-auto\">\n <div class=\"max-w-[820px]\">\n <div class=\"flex flex-col justify-center items-center p-3 mb-12\">\n <p class=\"text-3xl\">\u5B9E\u540D\u8BA4\u8BC1</p>\n <p class=\"text-md\">\u5B9E\u540D\u8BA4\u8BC1, \u4F1A\u8BA9\u4F60\u7684\u8D26\u6237\u66F4\u52A0\u5B89\u5168</p>\n </div>\n </div>\n @if (verified) {\n <div class=\"p-3\">\n <div class=\"text-md font-bold py-3\">\u60A8\u5DF2\u7ECF\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1</div>\n <div class=\"flex flex-col\">\n <div><span class=\"text-[--rt-text-secondary]\">\u59D3\u540D: </span> <span>22</span></div>\n <div><span class=\"text-[--rt-text-secondary]\">\u8EAB\u4EFD\u8BC1: </span><span>22</span></div>\n </div>\n </div>\n } @else {\n <div>\u672A\u8BA4\u8BC1</div>\n <button mat-raised-button (click)=\"verify()\" color=\"primary\">\u8BF7\u6C42\u8BA4\u8BC1</button>\n <div #qrcode>\n @if (loading) {\n <div>\n <rolatech-spinner></rolatech-spinner>\n </div>\n }\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: SpinnerComponent, selector: "rolatech-spinner", inputs: ["title"] }] }); }
|
|
214
|
+
}
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SecurityVerificationComponent, decorators: [{
|
|
216
|
+
type: Component,
|
|
217
|
+
args: [{ imports: [AngularCommonModule, AngularComponentsModule, SpinnerComponent], selector: 'rolatech-account-security-verification', template: "<div class=\"max-w-[1120px] m-auto\">\n <div class=\"max-w-[820px]\">\n <div class=\"flex flex-col justify-center items-center p-3 mb-12\">\n <p class=\"text-3xl\">\u5B9E\u540D\u8BA4\u8BC1</p>\n <p class=\"text-md\">\u5B9E\u540D\u8BA4\u8BC1, \u4F1A\u8BA9\u4F60\u7684\u8D26\u6237\u66F4\u52A0\u5B89\u5168</p>\n </div>\n </div>\n @if (verified) {\n <div class=\"p-3\">\n <div class=\"text-md font-bold py-3\">\u60A8\u5DF2\u7ECF\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1</div>\n <div class=\"flex flex-col\">\n <div><span class=\"text-[--rt-text-secondary]\">\u59D3\u540D: </span> <span>22</span></div>\n <div><span class=\"text-[--rt-text-secondary]\">\u8EAB\u4EFD\u8BC1: </span><span>22</span></div>\n </div>\n </div>\n } @else {\n <div>\u672A\u8BA4\u8BC1</div>\n <button mat-raised-button (click)=\"verify()\" color=\"primary\">\u8BF7\u6C42\u8BA4\u8BC1</button>\n <div #qrcode>\n @if (loading) {\n <div>\n <rolatech-spinner></rolatech-spinner>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
218
|
+
}] });
|
|
219
|
+
|
|
220
|
+
const securityRoutes = [
|
|
221
|
+
{
|
|
222
|
+
path: '',
|
|
223
|
+
component: SecurityIndexComponent,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
path: 'verification',
|
|
227
|
+
component: SecurityVerificationComponent,
|
|
228
|
+
},
|
|
229
|
+
// {
|
|
230
|
+
// path: 'faceid',
|
|
231
|
+
// component: SecurityFaceidComponent,
|
|
232
|
+
// },
|
|
233
|
+
{ path: 'password', component: SecurityPasswordComponent },
|
|
234
|
+
];
|
|
235
|
+
|
|
236
|
+
export { securityRoutes as default };
|
|
237
|
+
//# sourceMappingURL=rolatech-angular-account-security.routes-KlF9MNKj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-security.routes-KlF9MNKj.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/security/security-index/security-index.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/security/security-index/security-index.component.html","../../../../packages/angular-account/src/lib/pages/myaccount/security/security-password/security-password.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/security/security-password/security-password.component.html","../../../../packages/angular-account/src/lib/pages/myaccount/security/security-verification/security-verification.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/security/security-verification/security-verification.component.html","../../../../packages/angular-account/src/lib/pages/myaccount/security/security.routes.ts"],"sourcesContent":["import { Component, OnInit, inject } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AuthService, FaceidDetectDialogComponent } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, WechatConnectDialogComponent } from '@rolatech/angular-components';\nimport { DialogService, SnackBarService } from '@rolatech/angular-services';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent],\n selector: 'rolatech-account-security-index',\n templateUrl: './security-index.component.html',\n styleUrls: ['./security-index.component.scss'],\n})\nexport class SecurityIndexComponent implements OnInit {\n dialog = inject(MatDialog);\n authService = inject(AuthService);\n dialogService = inject(DialogService);\n snackBarService = inject(SnackBarService);\n\n bind = false;\n verified = false;\n\n constructor() {}\n\n ngOnInit(): void {\n this.wechatStatus();\n }\n faceId() {\n const options = {\n title: '实名认证',\n message: '使用微信扫描二维码, 实名认证',\n component: FaceidDetectDialogComponent,\n cancelText: '取消',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe({\n next: (result) => {\n if (result) {\n this.checkFaceIdStatus();\n }\n },\n });\n }\n checkFaceIdStatus() {\n this.authService.faceIdStatus().subscribe({\n next: (res) => {\n this.verified = res.data.verified;\n if (!res.data.verified) {\n this.snackBarService.open('未认证');\n }\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n connectWeChat() {\n // const redirectUri = 'https://accounts.pinxiaoke.cn/login';\n const redirectUri = `${window.location.origin}/login`;\n\n const options = {\n title: '微信绑定',\n message: '扫码绑定微信,提升账号安全和使用便利性',\n cancelText: '取消',\n confirmText: '确认',\n component: WechatConnectDialogComponent,\n data: {\n appId: 'wx567acbea73439828',\n redirectUri: redirectUri,\n state: 'add',\n },\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe({\n next: (result) => {\n if (result) {\n this.wechatStatus();\n }\n },\n });\n }\n disconnectWeChat() {\n this.authService.wechatDisconnect().subscribe({\n next: (res) => {\n this.bind = false;\n },\n });\n }\n wechatStatus() {\n this.authService.wechatStatus({ id: 'me' }).subscribe({\n next: (res) => {\n this.bind = res.data?.openid !== undefined;\n },\n });\n }\n}\n","<rolatech-container>\n <div class=\"max-w-[820px] m-3\">\n <div class=\"flex flex-col justify-center items-center p-3 mb-12\">\n <p class=\"text-3xl\">安全设置</p>\n <p class=\"text-md\">用户信息的安全设置</p>\n </div>\n <div class=\"border border-[--rt-border-color] rounded px-3 pt-3\">\n <div class=\"p-3 text-xl\">基本设置</div>\n <mat-nav-list>\n <mat-list-item (click)=\"faceId()\">\n <div class=\"flex items-center justify-between\">\n <span>实名认证</span>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n @if (!verified) {\n <span class=\"mr-3\"> 未认证 </span>\n }\n @if (verified) {\n <a class=\"mr-3\"> 已认证 </a>\n }\n <!-- @if (bind) {\n <a class=\"mr-3\" (click)=\"disconnectWeChat()\"> 解绑 </a>\n } -->\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n <mat-list-item (click)=\"connectWeChat()\">\n <div class=\"flex items-center justify-between\">\n <span>微信绑定</span>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n @if (!bind) {\n <span class=\"mr-3\"> 绑定 </span>\n }\n @if (bind) {\n <a class=\"mr-3\"> 已绑定 </a>\n }\n <!-- @if (bind) {\n <a class=\"mr-3\" (click)=\"disconnectWeChat()\"> 解绑 </a>\n } -->\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n <mat-list-item routerLink=\"./password\">\n <div class=\"flex items-center justify-between\">\n <span>密码设置</span>\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-nav-list>\n </div>\n </div>\n</rolatech-container>\n","import { Component, OnInit } from '@angular/core';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { AuthService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, BackButtonDirective],\n selector: 'rolatech-account-security-password',\n templateUrl: './security-password.component.html',\n styleUrls: ['./security-password.component.scss'],\n})\nexport class SecurityPasswordComponent implements OnInit {\n passwordForm!: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder,\n private authService: AuthService,\n private snackBar: MatSnackBar,\n ) {}\n\n ngOnInit(): void {\n this.passwordForm = this.formBuilder.group({\n oldPassword: ['', Validators.required],\n newPassword: ['', Validators.required],\n ne2Password: ['', Validators.required],\n });\n }\n save() {\n if (!this.passwordForm.valid) {\n return;\n }\n this.authService.changePassword(this.passwordForm.value).subscribe({\n next: (res: any) => {\n this.snackBar.open(res.message);\n },\n error: (e) => {\n this.snackBar.open(e.message);\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"修改密码\" subtitle=\"修改密码\" link=\"/security\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <form [formGroup]=\"passwordForm\">\n <div class=\"flex flex-col\">\n <mat-form-field appearance=\"fill\">\n <mat-label> 原密码</mat-label>\n <input matInput type=\"password\" formControlName=\"oldPassword\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> 新密码 </mat-label>\n <input matInput type=\"password\" formControlName=\"newPassword\" required />\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> 新密码 </mat-label>\n <input matInput type=\"password\" formControlName=\"ne2Password\" required />\n </mat-form-field>\n </div>\n </form>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton>取消</button>\n <button mat-flat-button class=\"w-[128px] p-2 ml-3\" (click)=\"save()\">保存</button>\n </div>\n </div>\n</rolatech-container>\n<div class=\"max-w-[1120px] m-auto px-6\"></div>\n","import { Component, ElementRef, OnInit, Renderer2, inject, viewChild } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AuthService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, SpinnerComponent } from '@rolatech/angular-components';\nimport * as QRCode from 'qrcode';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, SpinnerComponent],\n selector: 'rolatech-account-security-verification',\n templateUrl: './security-verification.component.html',\n styleUrls: ['./security-verification.component.scss'],\n})\nexport class SecurityVerificationComponent implements OnInit {\n dialog = inject(MatDialog);\n authService = inject(AuthService);\n verified = false;\n renderer = inject(Renderer2);\n qrcElement = viewChild.required<ElementRef>('qrcode');\n loading = false;\n BizToken = '';\n identification = {};\n ngOnInit(): void {\n this.checkFaceIdStatus();\n }\n checkFaceIdStatus() {\n this.authService.faceIdStatus().subscribe({\n next: (res) => {\n this.verified = res.data.verified;\n },\n });\n }\n verify() {\n this.loading = true;\n this.authService.requestFaceIdDetect().subscribe({\n next: ({ data }) => {\n this.genQRCode(data.url);\n // this.loop();\n },\n error: () => {\n this.loading = false;\n },\n });\n }\n loop() {\n const interval = setInterval(() => {\n this.authService.faceIdStatus().subscribe({\n next: (res) => {\n if (res) {\n clearInterval(interval);\n }\n },\n });\n }, 2000);\n }\n\n genQRCode(url: string) {\n const element: Element = this.renderer.createElement('canvas');\n this.toCanvas(element, url)\n .then(() => {\n this.renderElement(element);\n })\n .catch((e) => {\n this.removeElementChildren();\n });\n }\n\n private toCanvas(canvas: any, url: any): Promise<any> {\n return QRCode.toCanvas(canvas, url, {\n errorCorrectionLevel: 'M',\n width: 200,\n });\n }\n private renderElement(element: any): void {\n this.removeElementChildren();\n this.renderer.appendChild(this.qrcElement().nativeElement, element);\n }\n private removeElementChildren(): void {\n for (const node of this.qrcElement().nativeElement.childNodes) {\n this.renderer.removeChild(this.qrcElement().nativeElement, node);\n }\n }\n}\n","<div class=\"max-w-[1120px] m-auto\">\n <div class=\"max-w-[820px]\">\n <div class=\"flex flex-col justify-center items-center p-3 mb-12\">\n <p class=\"text-3xl\">实名认证</p>\n <p class=\"text-md\">实名认证, 会让你的账户更加安全</p>\n </div>\n </div>\n @if (verified) {\n <div class=\"p-3\">\n <div class=\"text-md font-bold py-3\">您已经完成实名认证</div>\n <div class=\"flex flex-col\">\n <div><span class=\"text-[--rt-text-secondary]\">姓名: </span> <span>22</span></div>\n <div><span class=\"text-[--rt-text-secondary]\">身份证: </span><span>22</span></div>\n </div>\n </div>\n } @else {\n <div>未认证</div>\n <button mat-raised-button (click)=\"verify()\" color=\"primary\">请求认证</button>\n <div #qrcode>\n @if (loading) {\n <div>\n <rolatech-spinner></rolatech-spinner>\n </div>\n }\n </div>\n }\n</div>\n","import { Routes } from '@angular/router';\nimport { SecurityIndexComponent } from './security-index/security-index.component';\nimport { SecurityPasswordComponent } from './security-password/security-password.component';\nimport { SecurityFaceidComponent } from './security-faceid/security-faceid.component';\nimport { SecurityVerificationComponent } from './security-verification/security-verification.component';\n\nconst securityRoutes: Routes = [\n {\n path: '',\n component: SecurityIndexComponent,\n },\n {\n path: 'verification',\n component: SecurityVerificationComponent,\n },\n // {\n // path: 'faceid',\n // component: SecurityFaceidComponent,\n // },\n { path: 'password', component: SecurityPasswordComponent },\n];\n\nexport default securityRoutes;\n"],"names":["i1","i2","i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;MAaa,sBAAsB,CAAA;AASjC,IAAA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,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,uBAAuB,8NAAE,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAK7D,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,gBAAgB,CAAC,YAC/D,wCAAwC,EAAA,QAAA,EAAA,mjCAAA,EAAA;;;AEHpD,MAAM,cAAc,GAAW;AAC7B,IAAA;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,sBAAsB;AAClC,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,SAAS,EAAE,6BAA6B;AACzC,KAAA;;;;;AAKD,IAAA,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,yBAAyB,EAAE;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account-user-CK_zEFn_.mjs","sources":["../../../../
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-user-CK_zEFn_.mjs","sources":["../../../../packages/angular-account/src/lib/contant/user.ts"],"sourcesContent":["export enum UserGender {\n MALE = <any>'男',\n FEMALE = <any>'女',\n RATHER_NOT_SAY = <any>'不公开',\n}\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,UAAU,EAAA;IACpB,UAAY,CAAA,UAAA,CAAA,MAAA,CAAA,GAAA,GAAG,UAAA;IACf,UAAc,CAAA,UAAA,CAAA,QAAA,CAAA,GAAA,GAAG,YAAA;IACjB,UAAsB,CAAA,UAAA,CAAA,gBAAA,CAAA,GAAA,KAAK,oBAAA;AAC7B,CAAC,EAJW,UAAU,KAAV,UAAU,GAIrB,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -16,7 +16,7 @@ class UsernameComponent extends BaseComponent {
|
|
|
16
16
|
this.user = inject(AuthService).user;
|
|
17
17
|
this.username = '';
|
|
18
18
|
effect(() => {
|
|
19
|
-
this.username = this.user()
|
|
19
|
+
this.username = this.user().username;
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
ngOnInit() { }
|
|
@@ -30,13 +30,13 @@ class UsernameComponent extends BaseComponent {
|
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: UsernameComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: UsernameComponent, isStandalone: true, selector: "rolatech-account-username", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u7528\u6237\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\u552F\u4E00\u6807\u8BC6</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <span matTextPrefix>@</span>\n <input matInput [(ngModel)]=\"username\" />\n </mat-form-field>\n </div>\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</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: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { 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"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: UsernameComponent, decorators: [{
|
|
37
37
|
type: Component,
|
|
38
|
-
args: [{
|
|
38
|
+
args: [{ imports: [AngularCommonModule, AngularComponentsModule, BackButtonDirective, ContainerComponent, ToolbarComponent], selector: 'rolatech-account-username', encapsulation: ViewEncapsulation.None, template: "<rolatech-container>\n <rolatech-toolbar title=\"\u4FEE\u6539\u7528\u6237\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\u552F\u4E00\u6807\u8BC6</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <span matTextPrefix>@</span>\n <input matInput [(ngModel)]=\"username\" />\n </mat-form-field>\n </div>\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</rolatech-container>\n" }]
|
|
39
39
|
}], ctorParameters: () => [] });
|
|
40
40
|
|
|
41
41
|
export { UsernameComponent };
|
|
42
|
-
//# sourceMappingURL=rolatech-angular-account-username.component-
|
|
42
|
+
//# sourceMappingURL=rolatech-angular-account-username.component-DyUMdNt7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account-username.component-DyUMdNt7.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/personal-info/username/username.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/personal-info/username/username.component.html"],"sourcesContent":["import { Component, OnInit, ViewEncapsulation, effect, inject } from '@angular/core';\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, BackButtonDirective, ContainerComponent, ToolbarComponent],\n selector: 'rolatech-account-username',\n templateUrl: './username.component.html',\n styleUrls: ['./username.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class UsernameComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n user = inject(AuthService).user;\n username = '';\n constructor() {\n super();\n effect(() => {\n this.username = this.user()!.username!;\n });\n }\n ngOnInit(): void {}\n\n save() {\n this.authUserService.changeUsername(this.username).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","<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 <span matTextPrefix>@</span>\n <input matInput [(ngModel)]=\"username\" />\n </mat-form-field>\n </div>\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</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;AAaM,MAAO,iBAAkB,SAAQ,aAAa,CAAA;AAIlD,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,IAAQ,CAAA,QAAA,GAAG,EAAE;QAGX,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAG,CAAC,QAAS;AACxC,SAAC,CAAC;;AAEJ,IAAA,QAAQ;IAER,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;AAC3D,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;gBACZ,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;aACpC;AACD,YAAA,KAAK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AAA,EAAA,0uBAAA,EAAA;;;;;"}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
export { T as TopbarLoginComponent, U as UserItemComponent, a as accountRoutes, m as myaccountRoutes, p as provideAngularAuthRoutes } from './rolatech-angular-account-rolatech-angular-account-
|
|
2
|
-
import '@angular/core';
|
|
3
|
-
import '@angular/common';
|
|
4
|
-
import '@angular/material/button';
|
|
5
|
-
import '@rolatech/angular-common';
|
|
6
|
-
import '@rolatech/angular-auth';
|
|
7
|
-
import '@angular/material/snack-bar';
|
|
8
|
-
import '@angular/router';
|
|
9
|
-
import '@rolatech/angular-components';
|
|
10
|
-
import '@angular/forms';
|
|
11
|
-
import '@angular/platform-browser';
|
|
12
|
-
import '@angular/material/form-field';
|
|
13
|
-
import '@angular/material/input';
|
|
1
|
+
export { T as TopbarLoginComponent, U as UserItemComponent, a as accountRoutes, m as myaccountRoutes, p as provideAngularAuthRoutes } from './rolatech-angular-account-rolatech-angular-account-BNEg6V8a.mjs';
|
|
14
2
|
//# sourceMappingURL=rolatech-angular-account.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-account.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rolatech-angular-account.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Router, ActivatedRoute, Route } from '@angular/router';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TopbarLoginComponent implements OnInit {
|
|
4
|
+
export declare class TopbarLoginComponent implements OnInit, OnDestroy {
|
|
4
5
|
environment: any;
|
|
5
6
|
platformId: Object;
|
|
7
|
+
route: ActivatedRoute;
|
|
8
|
+
router: Router;
|
|
9
|
+
private routerSubscription;
|
|
6
10
|
service: import("@angular/core").InputSignal<string>;
|
|
7
11
|
signinUrl: string;
|
|
8
12
|
signupUrl: string;
|
|
9
13
|
logoutUrl: string;
|
|
10
14
|
ngOnInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
findRouteConfig(url: string): Route | undefined;
|
|
17
|
+
matchRoute(route: Route, url: string): boolean;
|
|
11
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TopbarLoginComponent, never>;
|
|
12
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<TopbarLoginComponent, "rolatech-account-topbar-login", never, { "service": { "alias": "service"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddressAddComponent implements OnInit {
|
|
5
|
+
authUserService: AuthUserService;
|
|
6
|
+
address: any;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
save(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressAddComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressAddComponent, "rolatech-account-address-add", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddressBillingComponent implements OnInit {
|
|
5
|
+
authUserService: AuthUserService;
|
|
6
|
+
address: any;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
find(): void;
|
|
9
|
+
save(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressBillingComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressBillingComponent, "rolatech-account-address-billing", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AddressDetailComponent extends BaseComponent implements OnInit {
|
|
6
|
+
authUserService: AuthUserService;
|
|
7
|
+
address: any;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
find(): void;
|
|
10
|
+
save(): void;
|
|
11
|
+
delete(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressDetailComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressDetailComponent, "rolatech-account-address-detail", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddressHomeComponent implements OnInit {
|
|
5
|
+
authUserService: AuthUserService;
|
|
6
|
+
address: any;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
find(): void;
|
|
9
|
+
save(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressHomeComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressHomeComponent, "rolatech-account-address-home", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddressShippingComponent implements OnInit {
|
|
5
|
+
authUserService: AuthUserService;
|
|
6
|
+
addresses: any;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
find(): void;
|
|
9
|
+
save(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressShippingComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressShippingComponent, "rolatech-account-address-shipping", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddressWorkComponent implements OnInit {
|
|
5
|
+
authUserService: AuthUserService;
|
|
6
|
+
address: any;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
find(): void;
|
|
9
|
+
save(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressWorkComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressWorkComponent, "rolatech-account-address-work", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class EmailComponent extends BaseComponent implements OnInit {
|
|
6
6
|
authUserService: AuthUserService;
|
|
7
7
|
authStore: AuthStore;
|
|
8
|
-
user: import("@angular/core").Signal<import("dist/
|
|
8
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
9
9
|
email: string | undefined;
|
|
10
10
|
constructor();
|
|
11
11
|
ngOnInit(): void;
|
|
@@ -5,5 +5,5 @@ export declare class EmailVerificationComponent extends BaseComponent implements
|
|
|
5
5
|
ngOnInit(): void;
|
|
6
6
|
show(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmailVerificationComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EmailVerificationComponent, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmailVerificationComponent, "rolatech-account-email-verification", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -7,7 +7,7 @@ export declare class GenderComponent extends BaseComponent implements OnInit {
|
|
|
7
7
|
GENDERS: string[];
|
|
8
8
|
gender: any;
|
|
9
9
|
selectedGender: string;
|
|
10
|
-
user: import("@angular/core").Signal<import("dist/
|
|
10
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
11
11
|
email: string | undefined;
|
|
12
12
|
constructor();
|
|
13
13
|
ngOnInit(): void;
|
|
@@ -2,9 +2,10 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { BaseComponent } from '@rolatech/angular-components';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class HomeComponent extends BaseComponent implements OnInit {
|
|
5
|
-
user: import("@angular/core").Signal<import("dist/
|
|
5
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
6
|
+
selectIndex: import("@angular/core").ModelSignal<number>;
|
|
6
7
|
constructor();
|
|
7
8
|
ngOnInit(): void;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "rolatech-account-home", never, {}, {}, never, never, true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "rolatech-account-home", never, { "selectIndex": { "alias": "selectIndex"; "required": false; "isSignal": true; }; }, { "selectIndex": "selectIndexChange"; }, never, never, true, never>;
|
|
10
11
|
}
|
|
@@ -5,10 +5,14 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class InfoComponent implements OnInit {
|
|
6
6
|
authUserService: AuthUserService;
|
|
7
7
|
dialog: MatDialog;
|
|
8
|
-
user: import("@angular/core").Signal<import("dist/
|
|
8
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
9
9
|
gender: any;
|
|
10
|
+
homeAddress: {};
|
|
11
|
+
workAddress: {};
|
|
12
|
+
billingAddress: {};
|
|
10
13
|
ngOnInit(): void;
|
|
11
14
|
updateAvatar(avatar: any): void;
|
|
15
|
+
findUserAddress(): void;
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoComponent, never>;
|
|
13
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "rolatech-account-info", never, {}, {}, never, never, true, never>;
|
|
14
18
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseComponent } from '@rolatech/angular-components';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ProfileComponent extends BaseComponent implements OnInit {
|
|
6
6
|
authUserService: AuthUserService;
|
|
7
|
-
user: import("@angular/core").Signal<import("dist/
|
|
7
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
8
8
|
name: string;
|
|
9
9
|
constructor();
|
|
10
10
|
ngOnInit(): void;
|
|
@@ -4,7 +4,7 @@ import { BaseComponent } from '@rolatech/angular-components';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class UsernameComponent extends BaseComponent implements OnInit {
|
|
6
6
|
authUserService: AuthUserService;
|
|
7
|
-
user: import("@angular/core").Signal<import("dist/
|
|
7
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
8
8
|
username: string;
|
|
9
9
|
constructor();
|
|
10
10
|
ngOnInit(): void;
|
|
@@ -3,7 +3,7 @@ import { AuthUserService } from '@rolatech/angular-auth';
|
|
|
3
3
|
import { BaseComponent } from '@rolatech/angular-components';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PhoneComponent extends BaseComponent implements OnInit {
|
|
6
|
-
user: import("@angular/core").Signal<import("dist/
|
|
6
|
+
user: import("@angular/core").Signal<import("dist/packages/angular-auth/lib/interfaces/auth.interface").User | null>;
|
|
7
7
|
authUserService: AuthUserService;
|
|
8
8
|
phone: string;
|
|
9
9
|
code: string;
|