@abp/ng.account.core 7.2.2 → 7.3.0-rc.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/{esm2020 → esm2022}/abp-ng.account.core.mjs +4 -4
- package/esm2022/lib/auth-wrapper.service.mjs +43 -0
- package/esm2022/lib/tenant-box.service.mjs +56 -0
- package/{esm2020 → esm2022}/proxy/abp-ng.account.core-proxy.mjs +4 -4
- package/{esm2020 → esm2022}/proxy/lib/index.mjs +2 -2
- package/esm2022/proxy/lib/proxy/account/account.service.mjs +35 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/index.mjs +5 -5
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/account/profile.service.mjs +34 -0
- package/esm2022/proxy/lib/proxy/account/web/areas/account/controllers/account.service.mjs +34 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/areas/account/controllers/index.mjs +3 -3
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/areas/account/controllers/models/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.mjs +10 -10
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/areas/account/controllers/models/models.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/areas/account/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/areas/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/account/web/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/identity/index.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/lib/proxy/identity/models.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/public-api.mjs +1 -1
- package/{esm2020 → esm2022}/public-api.mjs +5 -5
- package/{fesm2020 → fesm2022}/abp-ng.account.core-proxy.mjs +92 -92
- package/{fesm2020 → fesm2022}/abp-ng.account.core-proxy.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/abp-ng.account.core.mjs +84 -84
- package/{fesm2020 → fesm2022}/abp-ng.account.core.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/auth-wrapper.service.d.ts +19 -19
- package/lib/tenant-box.service.d.ts +20 -20
- package/package.json +10 -18
- package/proxy/index.d.ts +5 -5
- package/proxy/lib/index.d.ts +2 -2
- package/proxy/lib/proxy/account/account.service.d.ts +14 -14
- package/proxy/lib/proxy/account/index.d.ts +5 -5
- package/proxy/lib/proxy/account/models.d.ts +40 -40
- package/proxy/lib/proxy/account/profile.service.d.ts +13 -13
- package/proxy/lib/proxy/account/web/areas/account/controllers/account.service.d.ts +13 -13
- package/proxy/lib/proxy/account/web/areas/account/controllers/index.d.ts +3 -3
- package/proxy/lib/proxy/account/web/areas/account/controllers/models/index.d.ts +2 -2
- package/proxy/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.d.ts +8 -8
- package/proxy/lib/proxy/account/web/areas/account/controllers/models/models.d.ts +10 -10
- package/proxy/lib/proxy/account/web/areas/account/index.d.ts +2 -2
- package/proxy/lib/proxy/account/web/areas/index.d.ts +2 -2
- package/proxy/lib/proxy/account/web/index.d.ts +2 -2
- package/proxy/lib/proxy/identity/index.d.ts +1 -1
- package/proxy/lib/proxy/identity/models.d.ts +15 -15
- package/proxy/public-api.d.ts +1 -1
- package/public-api.d.ts +2 -2
- package/esm2020/lib/auth-wrapper.service.mjs +0 -42
- package/esm2020/lib/tenant-box.service.mjs +0 -55
- package/esm2020/proxy/lib/proxy/account/account.service.mjs +0 -34
- package/esm2020/proxy/lib/proxy/account/profile.service.mjs +0 -33
- package/esm2020/proxy/lib/proxy/account/web/areas/account/controllers/account.service.mjs +0 -33
- package/fesm2015/abp-ng.account.core-proxy.mjs +0 -136
- package/fesm2015/abp-ng.account.core-proxy.mjs.map +0 -1
- package/fesm2015/abp-ng.account.core.mjs +0 -104
- package/fesm2015/abp-ng.account.core.mjs.map +0 -1
- package/proxy/src/lib/proxy/README.md +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abp-ng.account.core-proxy.mjs","sources":["../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/profile.service.ts","../../../../packages/account-core/proxy/src/abp-ng.account.core-proxy.ts"],"sourcesContent":["import { mapEnumToOptions } from '@abp/ng.core';\r\n\r\nexport enum LoginResultType {\r\n Success = 1,\r\n InvalidUserNameOrPassword = 2,\r\n NotAllowed = 3,\r\n LockedOut = 4,\r\n RequiresTwoFactor = 5,\r\n}\r\n\r\nexport const loginResultTypeOptions = mapEnumToOptions(LoginResultType);\r\n","import type { AbpLoginResult, UserLoginInfo } from './models/models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n apiName = 'AbpAccount';\r\n\r\n checkPasswordByLogin = (login: UserLoginInfo) =>\r\n this.restService.request<any, AbpLoginResult>({\r\n method: 'POST',\r\n url: '/api/account/check-password',\r\n body: login,\r\n },\r\n { apiName: this.apiName });\r\n\r\n loginByLogin = (login: UserLoginInfo) =>\r\n this.restService.request<any, AbpLoginResult>({\r\n method: 'POST',\r\n url: '/api/account/login',\r\n body: login,\r\n },\r\n { apiName: this.apiName });\r\n\r\n logout = () =>\r\n this.restService.request<any, void>({\r\n method: 'GET',\r\n url: '/api/account/logout',\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { RegisterDto, ResetPasswordDto, SendPasswordResetCodeDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport type { IdentityUserDto } from '../identity/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n apiName = 'AbpAccount';\r\n\r\n register = (input: RegisterDto) =>\r\n this.restService.request<any, IdentityUserDto>({\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n resetPassword = (input: ResetPasswordDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/reset-password',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n sendPasswordResetCode = (input: SendPasswordResetCodeDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/send-password-reset-code',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ProfileService {\r\n apiName = 'AbpAccount';\r\n\r\n changePassword = (input: ChangePasswordInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/my-profile/change-password',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n get = () =>\r\n this.restService.request<any, ProfileDto>({\r\n method: 'GET',\r\n url: '/api/account/my-profile',\r\n },\r\n { apiName: this.apiName });\r\n\r\n update = (input: UpdateProfileDto) =>\r\n this.restService.request<any, ProfileDto>({\r\n method: 'PUT',\r\n url: '/api/account/my-profile',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AccountService"],"mappings":";;;;;AAEA,IAAY,eAMX,CAAA;AAND,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,eAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAW,CAAA;AACX,IAAA,eAAA,CAAA,eAAA,CAAA,2BAAA,CAAA,GAAA,CAAA,CAAA,GAAA,2BAA6B,CAAA;AAC7B,IAAA,eAAA,CAAA,eAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAc,CAAA;AACd,IAAA,eAAA,CAAA,eAAA,CAAA,WAAA,CAAA,GAAA,CAAA,CAAA,GAAA,WAAa,CAAA;AACb,IAAA,eAAA,CAAA,eAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,mBAAqB,CAAA;AACvB,CAAC,EANW,eAAe,KAAf,eAAe,GAM1B,EAAA,CAAA,CAAA,CAAA;AAEM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,eAAe,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"abp-ng.account.core-proxy.mjs","sources":["../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/profile.service.ts","../../../../packages/account-core/proxy/src/abp-ng.account.core-proxy.ts"],"sourcesContent":["import { mapEnumToOptions } from '@abp/ng.core';\r\n\r\nexport enum LoginResultType {\r\n Success = 1,\r\n InvalidUserNameOrPassword = 2,\r\n NotAllowed = 3,\r\n LockedOut = 4,\r\n RequiresTwoFactor = 5,\r\n}\r\n\r\nexport const loginResultTypeOptions = mapEnumToOptions(LoginResultType);\r\n","import type { AbpLoginResult, UserLoginInfo } from './models/models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n apiName = 'AbpAccount';\r\n\r\n checkPasswordByLogin = (login: UserLoginInfo) =>\r\n this.restService.request<any, AbpLoginResult>({\r\n method: 'POST',\r\n url: '/api/account/check-password',\r\n body: login,\r\n },\r\n { apiName: this.apiName });\r\n\r\n loginByLogin = (login: UserLoginInfo) =>\r\n this.restService.request<any, AbpLoginResult>({\r\n method: 'POST',\r\n url: '/api/account/login',\r\n body: login,\r\n },\r\n { apiName: this.apiName });\r\n\r\n logout = () =>\r\n this.restService.request<any, void>({\r\n method: 'GET',\r\n url: '/api/account/logout',\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { RegisterDto, ResetPasswordDto, SendPasswordResetCodeDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport type { IdentityUserDto } from '../identity/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n apiName = 'AbpAccount';\r\n\r\n register = (input: RegisterDto) =>\r\n this.restService.request<any, IdentityUserDto>({\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n resetPassword = (input: ResetPasswordDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/reset-password',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n sendPasswordResetCode = (input: SendPasswordResetCodeDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/send-password-reset-code',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ProfileService {\r\n apiName = 'AbpAccount';\r\n\r\n changePassword = (input: ChangePasswordInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/my-profile/change-password',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n get = () =>\r\n this.restService.request<any, ProfileDto>({\r\n method: 'GET',\r\n url: '/api/account/my-profile',\r\n },\r\n { apiName: this.apiName });\r\n\r\n update = (input: UpdateProfileDto) =>\r\n this.restService.request<any, ProfileDto>({\r\n method: 'PUT',\r\n url: '/api/account/my-profile',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AccountService"],"mappings":";;;;;AAEA,IAAY,eAMX,CAAA;AAND,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,eAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAW,CAAA;AACX,IAAA,eAAA,CAAA,eAAA,CAAA,2BAAA,CAAA,GAAA,CAAA,CAAA,GAAA,2BAA6B,CAAA;AAC7B,IAAA,eAAA,CAAA,eAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAc,CAAA;AACd,IAAA,eAAA,CAAA,eAAA,CAAA,WAAA,CAAA,GAAA,CAAA,CAAA,GAAA,WAAa,CAAA;AACb,IAAA,eAAA,CAAA,eAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,mBAAqB,CAAA;AACvB,CAAC,EANW,eAAe,KAAf,eAAe,GAM1B,EAAA,CAAA,CAAA,CAAA;AAEM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,eAAe,CAAC;;;;;;;;uBCNvE,MAGa,cAAc,CAAA;AA0BzB,IAAA,WAAA,CAAoB,WAAwB,EAAA;QAAxB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QAzB5C,IAAO,CAAA,OAAA,GAAG,YAAY,CAAC;QAEvB,IAAoB,CAAA,oBAAA,GAAG,CAAC,KAAoB,KAC1C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;AAC5C,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,GAAG,EAAE,6BAA6B;AAClC,YAAA,IA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AAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -5,96 +5,96 @@ import { ActivatedRoute } from '@angular/router';
|
|
|
5
5
|
import * as i2 from '@abp/ng.core';
|
|
6
6
|
import * as i1 from '@abp/ng.theme.shared';
|
|
7
7
|
|
|
8
|
-
class AuthWrapperService {
|
|
9
|
-
|
|
10
|
-
this.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
getMostInnerChild() {
|
|
28
|
-
let child = this.route.snapshot;
|
|
29
|
-
let depth = 0;
|
|
30
|
-
const depthLimit = 10;
|
|
31
|
-
while (child.firstChild && depth < depthLimit) {
|
|
32
|
-
child = child.firstChild;
|
|
33
|
-
depth++;
|
|
34
|
-
}
|
|
35
|
-
return child;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
-
type: Injectable
|
|
8
|
+
class AuthWrapperService {
|
|
9
|
+
get enableLocalLogin$() {
|
|
10
|
+
return this.configState
|
|
11
|
+
.getSetting$('Abp.Account.EnableLocalLogin')
|
|
12
|
+
.pipe(map(value => value?.toLowerCase() !== 'false'));
|
|
13
|
+
}
|
|
14
|
+
get isTenantBoxVisibleForCurrentRoute() {
|
|
15
|
+
return this.getMostInnerChild().data.tenantBoxVisible ?? true;
|
|
16
|
+
}
|
|
17
|
+
get isTenantBoxVisible() {
|
|
18
|
+
return this.isTenantBoxVisibleForCurrentRoute && this.multiTenancy.isTenantBoxVisible;
|
|
19
|
+
}
|
|
20
|
+
constructor(multiTenancy, configState, injector) {
|
|
21
|
+
this.multiTenancy = multiTenancy;
|
|
22
|
+
this.configState = configState;
|
|
23
|
+
this.isMultiTenancyEnabled$ = this.configState.getDeep$('multiTenancy.isEnabled');
|
|
24
|
+
this.tenantBoxKey = 'Account.TenantBoxComponent';
|
|
25
|
+
this.route = injector.get(ActivatedRoute);
|
|
26
|
+
}
|
|
27
|
+
getMostInnerChild() {
|
|
28
|
+
let child = this.route.snapshot;
|
|
29
|
+
let depth = 0;
|
|
30
|
+
const depthLimit = 10;
|
|
31
|
+
while (child.firstChild && depth < depthLimit) {
|
|
32
|
+
child = child.firstChild;
|
|
33
|
+
depth++;
|
|
34
|
+
}
|
|
35
|
+
return child;
|
|
36
|
+
}
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: AuthWrapperService, deps: [{ token: i2.MultiTenancyService }, { token: i2.ConfigStateService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
38
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: AuthWrapperService }); }
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: AuthWrapperService, decorators: [{
|
|
41
|
+
type: Injectable
|
|
42
42
|
}], ctorParameters: function () { return [{ type: i2.MultiTenancyService }, { type: i2.ConfigStateService }, { type: i0.Injector }]; } });
|
|
43
43
|
|
|
44
|
-
class TenantBoxService {
|
|
45
|
-
constructor(toasterService, tenantService, sessionState, configState) {
|
|
46
|
-
this.toasterService = toasterService;
|
|
47
|
-
this.tenantService = tenantService;
|
|
48
|
-
this.sessionState = sessionState;
|
|
49
|
-
this.configState = configState;
|
|
50
|
-
this.currentTenant$ = this.sessionState.getTenant$();
|
|
51
|
-
}
|
|
52
|
-
onSwitch() {
|
|
53
|
-
const tenant = this.sessionState.getTenant();
|
|
54
|
-
this.name = tenant?.name || '';
|
|
55
|
-
this.isModalVisible = true;
|
|
56
|
-
}
|
|
57
|
-
save() {
|
|
58
|
-
if (!this.name) {
|
|
59
|
-
this.setTenant(null);
|
|
60
|
-
this.isModalVisible = false;
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
this.modalBusy = true;
|
|
64
|
-
this.tenantService
|
|
65
|
-
.findTenantByName(this.name)
|
|
66
|
-
.pipe(finalize(() => (this.modalBusy = false)))
|
|
67
|
-
.subscribe(({ success, tenantId: id, ...tenant }) => {
|
|
68
|
-
if (!success) {
|
|
69
|
-
this.showError();
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
this.setTenant({ ...tenant, id, isAvailable: true });
|
|
73
|
-
this.isModalVisible = false;
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
setTenant(tenant) {
|
|
77
|
-
this.sessionState.setTenant(tenant);
|
|
78
|
-
this.configState.refreshAppState();
|
|
79
|
-
}
|
|
80
|
-
showError() {
|
|
81
|
-
this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {
|
|
82
|
-
messageLocalizationParams: [this.name || ''],
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
89
|
-
type: Injectable
|
|
44
|
+
class TenantBoxService {
|
|
45
|
+
constructor(toasterService, tenantService, sessionState, configState) {
|
|
46
|
+
this.toasterService = toasterService;
|
|
47
|
+
this.tenantService = tenantService;
|
|
48
|
+
this.sessionState = sessionState;
|
|
49
|
+
this.configState = configState;
|
|
50
|
+
this.currentTenant$ = this.sessionState.getTenant$();
|
|
51
|
+
}
|
|
52
|
+
onSwitch() {
|
|
53
|
+
const tenant = this.sessionState.getTenant();
|
|
54
|
+
this.name = tenant?.name || '';
|
|
55
|
+
this.isModalVisible = true;
|
|
56
|
+
}
|
|
57
|
+
save() {
|
|
58
|
+
if (!this.name) {
|
|
59
|
+
this.setTenant(null);
|
|
60
|
+
this.isModalVisible = false;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.modalBusy = true;
|
|
64
|
+
this.tenantService
|
|
65
|
+
.findTenantByName(this.name)
|
|
66
|
+
.pipe(finalize(() => (this.modalBusy = false)))
|
|
67
|
+
.subscribe(({ success, tenantId: id, ...tenant }) => {
|
|
68
|
+
if (!success) {
|
|
69
|
+
this.showError();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
this.setTenant({ ...tenant, id, isAvailable: true });
|
|
73
|
+
this.isModalVisible = false;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
setTenant(tenant) {
|
|
77
|
+
this.sessionState.setTenant(tenant);
|
|
78
|
+
this.configState.refreshAppState();
|
|
79
|
+
}
|
|
80
|
+
showError() {
|
|
81
|
+
this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {
|
|
82
|
+
messageLocalizationParams: [this.name || ''],
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TenantBoxService, deps: [{ token: i1.ToasterService }, { token: i2.AbpTenantService }, { token: i2.SessionStateService }, { token: i2.ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
86
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TenantBoxService }); }
|
|
87
|
+
}
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TenantBoxService, decorators: [{
|
|
89
|
+
type: Injectable
|
|
90
90
|
}], ctorParameters: function () { return [{ type: i1.ToasterService }, { type: i2.AbpTenantService }, { type: i2.SessionStateService }, { type: i2.ConfigStateService }]; } });
|
|
91
91
|
|
|
92
|
-
/*
|
|
93
|
-
* Public API Surface of account-core
|
|
92
|
+
/*
|
|
93
|
+
* Public API Surface of account-core
|
|
94
94
|
*/
|
|
95
95
|
|
|
96
|
-
/**
|
|
97
|
-
* Generated bundle index. Do not edit.
|
|
96
|
+
/**
|
|
97
|
+
* Generated bundle index. Do not edit.
|
|
98
98
|
*/
|
|
99
99
|
|
|
100
100
|
export { AuthWrapperService, TenantBoxService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abp-ng.account.core.mjs","sources":["../../../../packages/account-core/src/lib/auth-wrapper.service.ts","../../../../packages/account-core/src/lib/tenant-box.service.ts","../../../../packages/account-core/src/public-api.ts","../../../../packages/account-core/src/abp-ng.account.core.ts"],"sourcesContent":["import { Injectable, Injector } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ConfigStateService, MultiTenancyService } from '@abp/ng.core';\r\n\r\n@Injectable()\r\nexport class AuthWrapperService {\r\n isMultiTenancyEnabled$ = this.configState.getDeep$('multiTenancy.isEnabled');\r\n\r\n get enableLocalLogin$(): Observable<boolean> {\r\n return this.configState\r\n .getSetting$('Abp.Account.EnableLocalLogin')\r\n .pipe(map(value => value?.toLowerCase() !== 'false'));\r\n }\r\n\r\n tenantBoxKey = 'Account.TenantBoxComponent';\r\n route: ActivatedRoute;\r\n\r\n get isTenantBoxVisibleForCurrentRoute() {\r\n return this.getMostInnerChild().data.tenantBoxVisible ?? true;\r\n }\r\n\r\n get isTenantBoxVisible() {\r\n return this.isTenantBoxVisibleForCurrentRoute && this.multiTenancy.isTenantBoxVisible;\r\n }\r\n\r\n constructor(\r\n public readonly multiTenancy: MultiTenancyService,\r\n private configState: ConfigStateService,\r\n injector: Injector,\r\n ) {\r\n this.route = injector.get(ActivatedRoute);\r\n }\r\n\r\n private getMostInnerChild() {\r\n let child = this.route.snapshot;\r\n let depth = 0;\r\n const depthLimit = 10;\r\n while (child.firstChild && depth < depthLimit) {\r\n child = child.firstChild;\r\n depth++;\r\n }\r\n return child;\r\n }\r\n}\r\n","import {\r\n AbpTenantService,\r\n ConfigStateService,\r\n CurrentTenantDto,\r\n SessionStateService,\r\n} from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Injectable } from '@angular/core';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class TenantBoxService {\r\n currentTenant$ = this.sessionState.getTenant$();\r\n\r\n name?: string;\r\n\r\n isModalVisible!: boolean;\r\n\r\n modalBusy!: boolean;\r\n\r\n constructor(\r\n private toasterService: ToasterService,\r\n private tenantService: AbpTenantService,\r\n private sessionState: SessionStateService,\r\n private configState: ConfigStateService,\r\n ) {}\r\n\r\n onSwitch() {\r\n const tenant = this.sessionState.getTenant();\r\n this.name = tenant?.name || '';\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (!this.name) {\r\n this.setTenant(null);\r\n this.isModalVisible = false;\r\n return;\r\n }\r\n\r\n this.modalBusy = true;\r\n this.tenantService\r\n .findTenantByName(this.name)\r\n .pipe(finalize(() => (this.modalBusy = false)))\r\n .subscribe(({ success, tenantId: id, ...tenant }) => {\r\n if (!success) {\r\n this.showError();\r\n return;\r\n }\r\n\r\n this.setTenant({ ...tenant, id, isAvailable: true });\r\n this.isModalVisible = false;\r\n });\r\n }\r\n\r\n private setTenant(tenant: CurrentTenantDto | null) {\r\n this.sessionState.setTenant(tenant);\r\n this.configState.refreshAppState();\r\n }\r\n\r\n private showError() {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.name || ''],\r\n });\r\n }\r\n}\r\n","/*\r\n * Public API Surface of account-core\r\n */\r\n\r\nexport * from './lib/auth-wrapper.service';\r\nexport * from './lib/tenant-box.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"abp-ng.account.core.mjs","sources":["../../../../packages/account-core/src/lib/auth-wrapper.service.ts","../../../../packages/account-core/src/lib/tenant-box.service.ts","../../../../packages/account-core/src/public-api.ts","../../../../packages/account-core/src/abp-ng.account.core.ts"],"sourcesContent":["import { Injectable, Injector } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ConfigStateService, MultiTenancyService } from '@abp/ng.core';\r\n\r\n@Injectable()\r\nexport class AuthWrapperService {\r\n isMultiTenancyEnabled$ = this.configState.getDeep$('multiTenancy.isEnabled');\r\n\r\n get enableLocalLogin$(): Observable<boolean> {\r\n return this.configState\r\n .getSetting$('Abp.Account.EnableLocalLogin')\r\n .pipe(map(value => value?.toLowerCase() !== 'false'));\r\n }\r\n\r\n tenantBoxKey = 'Account.TenantBoxComponent';\r\n route: ActivatedRoute;\r\n\r\n get isTenantBoxVisibleForCurrentRoute() {\r\n return this.getMostInnerChild().data.tenantBoxVisible ?? true;\r\n }\r\n\r\n get isTenantBoxVisible() {\r\n return this.isTenantBoxVisibleForCurrentRoute && this.multiTenancy.isTenantBoxVisible;\r\n }\r\n\r\n constructor(\r\n public readonly multiTenancy: MultiTenancyService,\r\n private configState: ConfigStateService,\r\n injector: Injector,\r\n ) {\r\n this.route = injector.get(ActivatedRoute);\r\n }\r\n\r\n private getMostInnerChild() {\r\n let child = this.route.snapshot;\r\n let depth = 0;\r\n const depthLimit = 10;\r\n while (child.firstChild && depth < depthLimit) {\r\n child = child.firstChild;\r\n depth++;\r\n }\r\n return child;\r\n }\r\n}\r\n","import {\r\n AbpTenantService,\r\n ConfigStateService,\r\n CurrentTenantDto,\r\n SessionStateService,\r\n} from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Injectable } from '@angular/core';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class TenantBoxService {\r\n currentTenant$ = this.sessionState.getTenant$();\r\n\r\n name?: string;\r\n\r\n isModalVisible!: boolean;\r\n\r\n modalBusy!: boolean;\r\n\r\n constructor(\r\n private toasterService: ToasterService,\r\n private tenantService: AbpTenantService,\r\n private sessionState: SessionStateService,\r\n private configState: ConfigStateService,\r\n ) {}\r\n\r\n onSwitch() {\r\n const tenant = this.sessionState.getTenant();\r\n this.name = tenant?.name || '';\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (!this.name) {\r\n this.setTenant(null);\r\n this.isModalVisible = false;\r\n return;\r\n }\r\n\r\n this.modalBusy = true;\r\n this.tenantService\r\n .findTenantByName(this.name)\r\n .pipe(finalize(() => (this.modalBusy = false)))\r\n .subscribe(({ success, tenantId: id, ...tenant }) => {\r\n if (!success) {\r\n this.showError();\r\n return;\r\n }\r\n\r\n this.setTenant({ ...tenant, id, isAvailable: true });\r\n this.isModalVisible = false;\r\n });\r\n }\r\n\r\n private setTenant(tenant: CurrentTenantDto | null) {\r\n this.sessionState.setTenant(tenant);\r\n this.configState.refreshAppState();\r\n }\r\n\r\n private showError() {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.name || ''],\r\n });\r\n }\r\n}\r\n","/*\r\n * Public API Surface of account-core\r\n */\r\n\r\nexport * from './lib/auth-wrapper.service';\r\nexport * from './lib/tenant-box.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;AAMA,MACa,kBAAkB,CAAA;AAG7B,IAAA,IAAI,iBAAiB,GAAA;QACnB,OAAO,IAAI,CAAC,WAAW;aACpB,WAAW,CAAC,8BAA8B,CAAC;AAC3C,aAAA,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,EAAE,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC,CAA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AS,EAAE,CAAC;gBACjB,OAAO;AACR,aAAA;AAED,YAAA,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;AACrD,YAAA,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;AAC9B,SAAC,CAAC,CAAC;KACN;AAEO,IAAA,SAAS,CAAC,MAA+B,EAAA;AAC/C,QAAA,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AACpC,QAAA,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;KACpC;IAEO,SAAS,GAAA;QACf,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,8CAA8C,EAAE,cAAc,EAAE;AACxF,YAAA,yBAAyB,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;AAC7C,SAAA,CAAC,CAAC;KACJ;8GArDU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;kHAAhB,gBAAgB,EAAA,CAAA,CAAA,EAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,UAAU;;;ACVX;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@abp/ng.account.core" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@abp/ng.account.core" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { ConfigStateService, MultiTenancyService } from '@abp/ng.core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AuthWrapperService {
|
|
7
|
-
readonly multiTenancy: MultiTenancyService;
|
|
8
|
-
private configState;
|
|
9
|
-
isMultiTenancyEnabled$: Observable<any>;
|
|
10
|
-
get enableLocalLogin$(): Observable<boolean>;
|
|
11
|
-
tenantBoxKey: string;
|
|
12
|
-
route: ActivatedRoute;
|
|
13
|
-
get isTenantBoxVisibleForCurrentRoute(): any;
|
|
14
|
-
get isTenantBoxVisible(): boolean;
|
|
15
|
-
constructor(multiTenancy: MultiTenancyService, configState: ConfigStateService, injector: Injector);
|
|
16
|
-
private getMostInnerChild;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthWrapperService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthWrapperService>;
|
|
19
|
-
}
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { ConfigStateService, MultiTenancyService } from '@abp/ng.core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AuthWrapperService {
|
|
7
|
+
readonly multiTenancy: MultiTenancyService;
|
|
8
|
+
private configState;
|
|
9
|
+
isMultiTenancyEnabled$: Observable<any>;
|
|
10
|
+
get enableLocalLogin$(): Observable<boolean>;
|
|
11
|
+
tenantBoxKey: string;
|
|
12
|
+
route: ActivatedRoute;
|
|
13
|
+
get isTenantBoxVisibleForCurrentRoute(): any;
|
|
14
|
+
get isTenantBoxVisible(): boolean;
|
|
15
|
+
constructor(multiTenancy: MultiTenancyService, configState: ConfigStateService, injector: Injector);
|
|
16
|
+
private getMostInnerChild;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthWrapperService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthWrapperService>;
|
|
19
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { AbpTenantService, ConfigStateService, CurrentTenantDto, SessionStateService } from '@abp/ng.core';
|
|
2
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TenantBoxService {
|
|
5
|
-
private toasterService;
|
|
6
|
-
private tenantService;
|
|
7
|
-
private sessionState;
|
|
8
|
-
private configState;
|
|
9
|
-
currentTenant$: import("rxjs").Observable<CurrentTenantDto>;
|
|
10
|
-
name?: string;
|
|
11
|
-
isModalVisible: boolean;
|
|
12
|
-
modalBusy: boolean;
|
|
13
|
-
constructor(toasterService: ToasterService, tenantService: AbpTenantService, sessionState: SessionStateService, configState: ConfigStateService);
|
|
14
|
-
onSwitch(): void;
|
|
15
|
-
save(): void;
|
|
16
|
-
private setTenant;
|
|
17
|
-
private showError;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TenantBoxService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TenantBoxService>;
|
|
20
|
-
}
|
|
1
|
+
import { AbpTenantService, ConfigStateService, CurrentTenantDto, SessionStateService } from '@abp/ng.core';
|
|
2
|
+
import { ToasterService } from '@abp/ng.theme.shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TenantBoxService {
|
|
5
|
+
private toasterService;
|
|
6
|
+
private tenantService;
|
|
7
|
+
private sessionState;
|
|
8
|
+
private configState;
|
|
9
|
+
currentTenant$: import("rxjs").Observable<CurrentTenantDto>;
|
|
10
|
+
name?: string;
|
|
11
|
+
isModalVisible: boolean;
|
|
12
|
+
modalBusy: boolean;
|
|
13
|
+
constructor(toasterService: ToasterService, tenantService: AbpTenantService, sessionState: SessionStateService, configState: ConfigStateService);
|
|
14
|
+
onSwitch(): void;
|
|
15
|
+
save(): void;
|
|
16
|
+
private setTenant;
|
|
17
|
+
private showError;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TenantBoxService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TenantBoxService>;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.account.core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-rc.1",
|
|
4
4
|
"homepage": "https://abp.io",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/abpframework/abp.git"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@abp/ng.core": "~7.
|
|
11
|
-
"@abp/ng.theme.shared": "~7.
|
|
10
|
+
"@abp/ng.core": "~7.3.0-rc.1",
|
|
11
|
+
"@abp/ng.theme.shared": "~7.3.0-rc.1",
|
|
12
12
|
"@angular/common": ">=12.0.0",
|
|
13
13
|
"@angular/core": ">=12.0.0"
|
|
14
14
|
},
|
|
@@ -18,11 +18,7 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"module": "
|
|
22
|
-
"es2020": "fesm2020/abp-ng.account.core.mjs",
|
|
23
|
-
"esm2020": "esm2020/abp-ng.account.core.mjs",
|
|
24
|
-
"fesm2020": "fesm2020/abp-ng.account.core.mjs",
|
|
25
|
-
"fesm2015": "fesm2015/abp-ng.account.core.mjs",
|
|
21
|
+
"module": "fesm2022/abp-ng.account.core.mjs",
|
|
26
22
|
"typings": "index.d.ts",
|
|
27
23
|
"exports": {
|
|
28
24
|
"./package.json": {
|
|
@@ -30,19 +26,15 @@
|
|
|
30
26
|
},
|
|
31
27
|
".": {
|
|
32
28
|
"types": "./index.d.ts",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"node": "./fesm2015/abp-ng.account.core.mjs",
|
|
37
|
-
"default": "./fesm2020/abp-ng.account.core.mjs"
|
|
29
|
+
"esm2022": "./esm2022/abp-ng.account.core.mjs",
|
|
30
|
+
"esm": "./esm2022/abp-ng.account.core.mjs",
|
|
31
|
+
"default": "./fesm2022/abp-ng.account.core.mjs"
|
|
38
32
|
},
|
|
39
33
|
"./proxy": {
|
|
40
34
|
"types": "./proxy/index.d.ts",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"node": "./fesm2015/abp-ng.account.core-proxy.mjs",
|
|
45
|
-
"default": "./fesm2020/abp-ng.account.core-proxy.mjs"
|
|
35
|
+
"esm2022": "./esm2022/proxy/abp-ng.account.core-proxy.mjs",
|
|
36
|
+
"esm": "./esm2022/proxy/abp-ng.account.core-proxy.mjs",
|
|
37
|
+
"default": "./fesm2022/abp-ng.account.core-proxy.mjs"
|
|
46
38
|
}
|
|
47
39
|
},
|
|
48
40
|
"sideEffects": false
|
package/proxy/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@abp/ng.account.core/proxy" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@abp/ng.account.core/proxy" />
|
|
5
|
+
export * from './public-api';
|
package/proxy/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './proxy/account';
|
|
2
|
-
export * from './proxy/identity';
|
|
1
|
+
export * from './proxy/account';
|
|
2
|
+
export * from './proxy/identity';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { RegisterDto, ResetPasswordDto, SendPasswordResetCodeDto } from './models';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import type { IdentityUserDto } from '../identity/models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AccountService {
|
|
6
|
-
private restService;
|
|
7
|
-
apiName: string;
|
|
8
|
-
register: (input: RegisterDto) => import("rxjs").Observable<IdentityUserDto>;
|
|
9
|
-
resetPassword: (input: ResetPasswordDto) => import("rxjs").Observable<void>;
|
|
10
|
-
sendPasswordResetCode: (input: SendPasswordResetCodeDto) => import("rxjs").Observable<void>;
|
|
11
|
-
constructor(restService: RestService);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
14
|
-
}
|
|
1
|
+
import type { RegisterDto, ResetPasswordDto, SendPasswordResetCodeDto } from './models';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
import type { IdentityUserDto } from '../identity/models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AccountService {
|
|
6
|
+
private restService;
|
|
7
|
+
apiName: string;
|
|
8
|
+
register: (input: RegisterDto) => import("rxjs").Observable<IdentityUserDto>;
|
|
9
|
+
resetPassword: (input: ResetPasswordDto) => import("rxjs").Observable<void>;
|
|
10
|
+
sendPasswordResetCode: (input: SendPasswordResetCodeDto) => import("rxjs").Observable<void>;
|
|
11
|
+
constructor(restService: RestService);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as Web from './web';
|
|
2
|
-
export * from './account.service';
|
|
3
|
-
export * from './models';
|
|
4
|
-
export * from './profile.service';
|
|
5
|
-
export { Web };
|
|
1
|
+
import * as Web from './web';
|
|
2
|
+
export * from './account.service';
|
|
3
|
+
export * from './models';
|
|
4
|
+
export * from './profile.service';
|
|
5
|
+
export { Web };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import type { ExtensibleObject } from '@abp/ng.core';
|
|
2
|
-
export interface ChangePasswordInput {
|
|
3
|
-
currentPassword?: string;
|
|
4
|
-
newPassword: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ProfileDto extends ExtensibleObject {
|
|
7
|
-
userName?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
surname?: string;
|
|
11
|
-
phoneNumber?: string;
|
|
12
|
-
isExternal: boolean;
|
|
13
|
-
hasPassword: boolean;
|
|
14
|
-
concurrencyStamp?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface RegisterDto extends ExtensibleObject {
|
|
17
|
-
userName: string;
|
|
18
|
-
emailAddress: string;
|
|
19
|
-
password: string;
|
|
20
|
-
appName: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ResetPasswordDto {
|
|
23
|
-
userId?: string;
|
|
24
|
-
resetToken: string;
|
|
25
|
-
password: string;
|
|
26
|
-
}
|
|
27
|
-
export interface SendPasswordResetCodeDto {
|
|
28
|
-
email: string;
|
|
29
|
-
appName: string;
|
|
30
|
-
returnUrl?: string;
|
|
31
|
-
returnUrlHash?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface UpdateProfileDto extends ExtensibleObject {
|
|
34
|
-
userName?: string;
|
|
35
|
-
email?: string;
|
|
36
|
-
name?: string;
|
|
37
|
-
surname?: string;
|
|
38
|
-
phoneNumber?: string;
|
|
39
|
-
concurrencyStamp?: string;
|
|
40
|
-
}
|
|
1
|
+
import type { ExtensibleObject } from '@abp/ng.core';
|
|
2
|
+
export interface ChangePasswordInput {
|
|
3
|
+
currentPassword?: string;
|
|
4
|
+
newPassword: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ProfileDto extends ExtensibleObject {
|
|
7
|
+
userName?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
surname?: string;
|
|
11
|
+
phoneNumber?: string;
|
|
12
|
+
isExternal: boolean;
|
|
13
|
+
hasPassword: boolean;
|
|
14
|
+
concurrencyStamp?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface RegisterDto extends ExtensibleObject {
|
|
17
|
+
userName: string;
|
|
18
|
+
emailAddress: string;
|
|
19
|
+
password: string;
|
|
20
|
+
appName: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ResetPasswordDto {
|
|
23
|
+
userId?: string;
|
|
24
|
+
resetToken: string;
|
|
25
|
+
password: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SendPasswordResetCodeDto {
|
|
28
|
+
email: string;
|
|
29
|
+
appName: string;
|
|
30
|
+
returnUrl?: string;
|
|
31
|
+
returnUrlHash?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface UpdateProfileDto extends ExtensibleObject {
|
|
34
|
+
userName?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
surname?: string;
|
|
38
|
+
phoneNumber?: string;
|
|
39
|
+
concurrencyStamp?: string;
|
|
40
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ProfileService {
|
|
5
|
-
private restService;
|
|
6
|
-
apiName: string;
|
|
7
|
-
changePassword: (input: ChangePasswordInput) => import("rxjs").Observable<void>;
|
|
8
|
-
get: () => import("rxjs").Observable<ProfileDto>;
|
|
9
|
-
update: (input: UpdateProfileDto) => import("rxjs").Observable<ProfileDto>;
|
|
10
|
-
constructor(restService: RestService);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
13
|
-
}
|
|
1
|
+
import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ProfileService {
|
|
5
|
+
private restService;
|
|
6
|
+
apiName: string;
|
|
7
|
+
changePassword: (input: ChangePasswordInput) => import("rxjs").Observable<void>;
|
|
8
|
+
get: () => import("rxjs").Observable<ProfileDto>;
|
|
9
|
+
update: (input: UpdateProfileDto) => import("rxjs").Observable<ProfileDto>;
|
|
10
|
+
constructor(restService: RestService);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { AbpLoginResult, UserLoginInfo } from './models/models';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AccountService {
|
|
5
|
-
private restService;
|
|
6
|
-
apiName: string;
|
|
7
|
-
checkPasswordByLogin: (login: UserLoginInfo) => import("rxjs").Observable<AbpLoginResult>;
|
|
8
|
-
loginByLogin: (login: UserLoginInfo) => import("rxjs").Observable<AbpLoginResult>;
|
|
9
|
-
logout: () => import("rxjs").Observable<void>;
|
|
10
|
-
constructor(restService: RestService);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
13
|
-
}
|
|
1
|
+
import type { AbpLoginResult, UserLoginInfo } from './models/models';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AccountService {
|
|
5
|
+
private restService;
|
|
6
|
+
apiName: string;
|
|
7
|
+
checkPasswordByLogin: (login: UserLoginInfo) => import("rxjs").Observable<AbpLoginResult>;
|
|
8
|
+
loginByLogin: (login: UserLoginInfo) => import("rxjs").Observable<AbpLoginResult>;
|
|
9
|
+
logout: () => import("rxjs").Observable<void>;
|
|
10
|
+
constructor(restService: RestService);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
13
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as Models from './models';
|
|
2
|
-
export * from './account.service';
|
|
3
|
-
export { Models };
|
|
1
|
+
import * as Models from './models';
|
|
2
|
+
export * from './account.service';
|
|
3
|
+
export { Models };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './login-result-type.enum';
|
|
2
|
-
export * from './models';
|
|
1
|
+
export * from './login-result-type.enum';
|
|
2
|
+
export * from './models';
|