@abp/ng.account.core 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +3 -3
  2. package/abp-ng.account.core.d.ts +5 -5
  3. package/bundles/abp-ng.account.core-proxy.umd.js +98 -98
  4. package/bundles/abp-ng.account.core-proxy.umd.js.map +1 -1
  5. package/bundles/abp-ng.account.core.umd.js +417 -417
  6. package/bundles/abp-ng.account.core.umd.js.map +1 -1
  7. package/esm2015/abp-ng.account.core.js +4 -4
  8. package/esm2015/lib/auth-wrapper.service.js +43 -43
  9. package/esm2015/lib/tenant-box.service.js +57 -57
  10. package/esm2015/proxy/abp-ng.account.core-proxy.js +4 -4
  11. package/esm2015/proxy/lib/index.js +3 -3
  12. package/esm2015/proxy/lib/proxy/account/account.service.js +34 -34
  13. package/esm2015/proxy/lib/proxy/account/index.js +6 -6
  14. package/esm2015/proxy/lib/proxy/account/models.js +2 -2
  15. package/esm2015/proxy/lib/proxy/account/profile.service.js +33 -33
  16. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/account.service.js +33 -33
  17. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/index.js +4 -4
  18. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/models/index.js +3 -3
  19. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.js +11 -11
  20. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/models/models.js +2 -2
  21. package/esm2015/proxy/lib/proxy/account/web/areas/account/index.js +3 -3
  22. package/esm2015/proxy/lib/proxy/account/web/areas/index.js +3 -3
  23. package/esm2015/proxy/lib/proxy/account/web/index.js +3 -3
  24. package/esm2015/proxy/lib/proxy/identity/index.js +2 -2
  25. package/esm2015/proxy/lib/proxy/identity/models.js +2 -2
  26. package/esm2015/proxy/public-api.js +2 -2
  27. package/esm2015/public-api.js +6 -6
  28. package/fesm2015/abp-ng.account.core-proxy.js +92 -92
  29. package/fesm2015/abp-ng.account.core-proxy.js.map +1 -1
  30. package/fesm2015/abp-ng.account.core.js +86 -86
  31. package/fesm2015/abp-ng.account.core.js.map +1 -1
  32. package/lib/auth-wrapper.service.d.ts +19 -19
  33. package/lib/tenant-box.service.d.ts +20 -20
  34. package/package.json +3 -3
  35. package/proxy/abp-ng.account.core-proxy.d.ts +5 -5
  36. package/proxy/lib/index.d.ts +2 -2
  37. package/proxy/lib/proxy/account/account.service.d.ts +14 -14
  38. package/proxy/lib/proxy/account/index.d.ts +5 -5
  39. package/proxy/lib/proxy/account/models.d.ts +40 -40
  40. package/proxy/lib/proxy/account/profile.service.d.ts +13 -13
  41. package/proxy/lib/proxy/account/web/areas/account/controllers/account.service.d.ts +13 -13
  42. package/proxy/lib/proxy/account/web/areas/account/controllers/index.d.ts +3 -3
  43. package/proxy/lib/proxy/account/web/areas/account/controllers/models/index.d.ts +2 -2
  44. package/proxy/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.d.ts +8 -8
  45. package/proxy/lib/proxy/account/web/areas/account/controllers/models/models.d.ts +10 -10
  46. package/proxy/lib/proxy/account/web/areas/account/index.d.ts +2 -2
  47. package/proxy/lib/proxy/account/web/areas/index.d.ts +2 -2
  48. package/proxy/lib/proxy/account/web/index.d.ts +2 -2
  49. package/proxy/lib/proxy/identity/index.d.ts +1 -1
  50. package/proxy/lib/proxy/identity/models.d.ts +15 -15
  51. package/proxy/public-api.d.ts +1 -1
  52. package/public-api.d.ts +2 -2
@@ -6,98 +6,98 @@ import * as i2 from '@abp/ng.core';
6
6
  import { __rest } from 'tslib';
7
7
  import * as i1 from '@abp/ng.theme.shared';
8
8
 
9
- class AuthWrapperService {
10
- constructor(multiTenancy, configState, injector) {
11
- this.multiTenancy = multiTenancy;
12
- this.configState = configState;
13
- this.isMultiTenancyEnabled$ = this.configState.getDeep$('multiTenancy.isEnabled');
14
- this.tenantBoxKey = 'Account.TenantBoxComponent';
15
- this.route = injector.get(ActivatedRoute);
16
- }
17
- get enableLocalLogin$() {
18
- return this.configState
19
- .getSetting$('Abp.Account.EnableLocalLogin')
20
- .pipe(map(value => (value === null || value === void 0 ? void 0 : value.toLowerCase()) !== 'false'));
21
- }
22
- get isTenantBoxVisibleForCurrentRoute() {
23
- var _a;
24
- return (_a = this.getMostInnerChild().data.tenantBoxVisible) !== null && _a !== void 0 ? _a : true;
25
- }
26
- get isTenantBoxVisible() {
27
- return this.isTenantBoxVisibleForCurrentRoute && this.multiTenancy.isTenantBoxVisible;
28
- }
29
- getMostInnerChild() {
30
- let child = this.route.snapshot;
31
- let depth = 0;
32
- const depthLimit = 10;
33
- while (child.firstChild && depth < depthLimit) {
34
- child = child.firstChild;
35
- depth++;
36
- }
37
- return child;
38
- }
39
- }
40
- AuthWrapperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthWrapperService, deps: [{ token: i2.MultiTenancyService }, { token: i2.ConfigStateService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
41
- AuthWrapperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthWrapperService });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthWrapperService, decorators: [{
43
- type: Injectable
9
+ class AuthWrapperService {
10
+ constructor(multiTenancy, configState, injector) {
11
+ this.multiTenancy = multiTenancy;
12
+ this.configState = configState;
13
+ this.isMultiTenancyEnabled$ = this.configState.getDeep$('multiTenancy.isEnabled');
14
+ this.tenantBoxKey = 'Account.TenantBoxComponent';
15
+ this.route = injector.get(ActivatedRoute);
16
+ }
17
+ get enableLocalLogin$() {
18
+ return this.configState
19
+ .getSetting$('Abp.Account.EnableLocalLogin')
20
+ .pipe(map(value => (value === null || value === void 0 ? void 0 : value.toLowerCase()) !== 'false'));
21
+ }
22
+ get isTenantBoxVisibleForCurrentRoute() {
23
+ var _a;
24
+ return (_a = this.getMostInnerChild().data.tenantBoxVisible) !== null && _a !== void 0 ? _a : true;
25
+ }
26
+ get isTenantBoxVisible() {
27
+ return this.isTenantBoxVisibleForCurrentRoute && this.multiTenancy.isTenantBoxVisible;
28
+ }
29
+ getMostInnerChild() {
30
+ let child = this.route.snapshot;
31
+ let depth = 0;
32
+ const depthLimit = 10;
33
+ while (child.firstChild && depth < depthLimit) {
34
+ child = child.firstChild;
35
+ depth++;
36
+ }
37
+ return child;
38
+ }
39
+ }
40
+ AuthWrapperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthWrapperService, deps: [{ token: i2.MultiTenancyService }, { token: i2.ConfigStateService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
41
+ AuthWrapperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthWrapperService });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthWrapperService, decorators: [{
43
+ type: Injectable
44
44
  }], ctorParameters: function () { return [{ type: i2.MultiTenancyService }, { type: i2.ConfigStateService }, { type: i0.Injector }]; } });
45
45
 
46
- class TenantBoxService {
47
- constructor(toasterService, tenantService, sessionState, configState) {
48
- this.toasterService = toasterService;
49
- this.tenantService = tenantService;
50
- this.sessionState = sessionState;
51
- this.configState = configState;
52
- this.currentTenant$ = this.sessionState.getTenant$();
53
- }
54
- onSwitch() {
55
- const tenant = this.sessionState.getTenant();
56
- this.name = tenant === null || tenant === void 0 ? void 0 : tenant.name;
57
- this.isModalVisible = true;
58
- }
59
- save() {
60
- if (!this.name) {
61
- this.setTenant(null);
62
- this.isModalVisible = false;
63
- return;
64
- }
65
- this.modalBusy = true;
66
- this.tenantService
67
- .findTenantByName(this.name, {})
68
- .pipe(finalize(() => (this.modalBusy = false)))
69
- .subscribe((_a) => {
70
- var { success, tenantId: id } = _a, tenant = __rest(_a, ["success", "tenantId"]);
71
- if (!success) {
72
- this.showError();
73
- return;
74
- }
75
- this.setTenant(Object.assign(Object.assign({}, tenant), { id, isAvailable: true }));
76
- this.isModalVisible = false;
77
- });
78
- }
79
- setTenant(tenant) {
80
- this.sessionState.setTenant(tenant);
81
- this.configState.refreshAppState();
82
- }
83
- showError() {
84
- this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {
85
- messageLocalizationParams: [this.name],
86
- });
87
- }
88
- }
89
- TenantBoxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TenantBoxService, deps: [{ token: i1.ToasterService }, { token: i2.AbpTenantService }, { token: i2.SessionStateService }, { token: i2.ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
90
- TenantBoxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TenantBoxService });
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TenantBoxService, decorators: [{
92
- type: Injectable
46
+ class TenantBoxService {
47
+ constructor(toasterService, tenantService, sessionState, configState) {
48
+ this.toasterService = toasterService;
49
+ this.tenantService = tenantService;
50
+ this.sessionState = sessionState;
51
+ this.configState = configState;
52
+ this.currentTenant$ = this.sessionState.getTenant$();
53
+ }
54
+ onSwitch() {
55
+ const tenant = this.sessionState.getTenant();
56
+ this.name = tenant === null || tenant === void 0 ? void 0 : tenant.name;
57
+ this.isModalVisible = true;
58
+ }
59
+ save() {
60
+ if (!this.name) {
61
+ this.setTenant(null);
62
+ this.isModalVisible = false;
63
+ return;
64
+ }
65
+ this.modalBusy = true;
66
+ this.tenantService
67
+ .findTenantByName(this.name, {})
68
+ .pipe(finalize(() => (this.modalBusy = false)))
69
+ .subscribe((_a) => {
70
+ var { success, tenantId: id } = _a, tenant = __rest(_a, ["success", "tenantId"]);
71
+ if (!success) {
72
+ this.showError();
73
+ return;
74
+ }
75
+ this.setTenant(Object.assign(Object.assign({}, tenant), { id, isAvailable: true }));
76
+ this.isModalVisible = false;
77
+ });
78
+ }
79
+ setTenant(tenant) {
80
+ this.sessionState.setTenant(tenant);
81
+ this.configState.refreshAppState();
82
+ }
83
+ showError() {
84
+ this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {
85
+ messageLocalizationParams: [this.name],
86
+ });
87
+ }
88
+ }
89
+ TenantBoxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TenantBoxService, deps: [{ token: i1.ToasterService }, { token: i2.AbpTenantService }, { token: i2.SessionStateService }, { token: i2.ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
90
+ TenantBoxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TenantBoxService });
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TenantBoxService, decorators: [{
92
+ type: Injectable
93
93
  }], ctorParameters: function () { return [{ type: i1.ToasterService }, { type: i2.AbpTenantService }, { type: i2.SessionStateService }, { type: i2.ConfigStateService }]; } });
94
94
 
95
- /*
96
- * Public API Surface of account-core
95
+ /*
96
+ * Public API Surface of account-core
97
97
  */
98
98
 
99
- /**
100
- * Generated bundle index. Do not edit.
99
+ /**
100
+ * Generated bundle index. Do not edit.
101
101
  */
102
102
 
103
103
  export { AuthWrapperService, TenantBoxService };
@@ -1 +1 @@
1
- {"version":3,"file":"abp-ng.account.core.js","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) {\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":[],"mappings":"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"}
1
+ {"version":3,"file":"abp-ng.account.core.js","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';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { ActivatedRoute } from '@angular/router';\nimport { ConfigStateService, MultiTenancyService } from '@abp/ng.core';\n\n@Injectable()\nexport class AuthWrapperService {\n isMultiTenancyEnabled$ = this.configState.getDeep$('multiTenancy.isEnabled');\n\n get enableLocalLogin$(): Observable<boolean> {\n return this.configState\n .getSetting$('Abp.Account.EnableLocalLogin')\n .pipe(map(value => value?.toLowerCase() !== 'false'));\n }\n\n tenantBoxKey = 'Account.TenantBoxComponent';\n route: ActivatedRoute;\n\n get isTenantBoxVisibleForCurrentRoute() {\n return this.getMostInnerChild().data.tenantBoxVisible ?? true;\n }\n\n get isTenantBoxVisible() {\n return this.isTenantBoxVisibleForCurrentRoute && this.multiTenancy.isTenantBoxVisible;\n }\n\n constructor(\n public readonly multiTenancy: MultiTenancyService,\n private configState: ConfigStateService,\n injector: Injector,\n ) {\n this.route = injector.get(ActivatedRoute);\n }\n\n private getMostInnerChild() {\n let child = this.route.snapshot;\n let depth = 0;\n const depthLimit = 10;\n while (child.firstChild && depth < depthLimit) {\n child = child.firstChild;\n depth++;\n }\n return child;\n }\n}\n","import {\n AbpTenantService,\n ConfigStateService,\n CurrentTenantDto,\n SessionStateService,\n} from '@abp/ng.core';\nimport { ToasterService } from '@abp/ng.theme.shared';\nimport { Injectable } from '@angular/core';\nimport { finalize } from 'rxjs/operators';\n\n@Injectable()\nexport class TenantBoxService {\n currentTenant$ = this.sessionState.getTenant$();\n\n name: string;\n\n isModalVisible: boolean;\n\n modalBusy: boolean;\n\n constructor(\n private toasterService: ToasterService,\n private tenantService: AbpTenantService,\n private sessionState: SessionStateService,\n private configState: ConfigStateService,\n ) {}\n\n onSwitch() {\n const tenant = this.sessionState.getTenant();\n this.name = tenant?.name;\n this.isModalVisible = true;\n }\n\n save() {\n if (!this.name) {\n this.setTenant(null);\n this.isModalVisible = false;\n return;\n }\n\n this.modalBusy = true;\n this.tenantService\n .findTenantByName(this.name, {})\n .pipe(finalize(() => (this.modalBusy = false)))\n .subscribe(({ success, tenantId: id, ...tenant }) => {\n if (!success) {\n this.showError();\n return;\n }\n\n this.setTenant({ ...tenant, id, isAvailable: true });\n this.isModalVisible = false;\n });\n }\n\n private setTenant(tenant: CurrentTenantDto) {\n this.sessionState.setTenant(tenant);\n this.configState.refreshAppState();\n }\n\n private showError() {\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\n messageLocalizationParams: [this.name],\n });\n }\n}\n","/*\n * Public API Surface of account-core\n */\n\nexport * from './lib/auth-wrapper.service';\nexport * from './lib/tenant-box.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
@@ -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": "5.0.1",
3
+ "version": "5.0.2",
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": "~5.0.0",
11
- "@abp/ng.theme.shared": "~5.0.0",
10
+ "@abp/ng.core": "~5.0.1",
11
+ "@abp/ng.theme.shared": "~5.0.1",
12
12
  "@angular/common": ">=12.0.0",
13
13
  "@angular/core": ">=12.0.0"
14
14
  },
@@ -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';
@@ -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';
@@ -1,8 +1,8 @@
1
- export declare enum LoginResultType {
2
- Success = 1,
3
- InvalidUserNameOrPassword = 2,
4
- NotAllowed = 3,
5
- LockedOut = 4,
6
- RequiresTwoFactor = 5
7
- }
8
- export declare const loginResultTypeOptions: import("@abp/ng.core").ABP.Option<typeof LoginResultType>[];
1
+ export declare enum LoginResultType {
2
+ Success = 1,
3
+ InvalidUserNameOrPassword = 2,
4
+ NotAllowed = 3,
5
+ LockedOut = 4,
6
+ RequiresTwoFactor = 5
7
+ }
8
+ export declare const loginResultTypeOptions: import("@abp/ng.core").ABP.Option<typeof LoginResultType>[];
@@ -1,10 +1,10 @@
1
- import type { LoginResultType } from './login-result-type.enum';
2
- export interface AbpLoginResult {
3
- result: LoginResultType;
4
- description?: string;
5
- }
6
- export interface UserLoginInfo {
7
- userNameOrEmailAddress: string;
8
- password: string;
9
- rememberMe: boolean;
10
- }
1
+ import type { LoginResultType } from './login-result-type.enum';
2
+ export interface AbpLoginResult {
3
+ result: LoginResultType;
4
+ description?: string;
5
+ }
6
+ export interface UserLoginInfo {
7
+ userNameOrEmailAddress: string;
8
+ password: string;
9
+ rememberMe: boolean;
10
+ }
@@ -1,2 +1,2 @@
1
- import * as Controllers from './controllers';
2
- export { Controllers };
1
+ import * as Controllers from './controllers';
2
+ export { Controllers };
@@ -1,2 +1,2 @@
1
- import * as Account from './account';
2
- export { Account };
1
+ import * as Account from './account';
2
+ export { Account };
@@ -1,2 +1,2 @@
1
- import * as Areas from './areas';
2
- export { Areas };
1
+ import * as Areas from './areas';
2
+ export { Areas };
@@ -1 +1 @@
1
- export * from './models';
1
+ export * from './models';
@@ -1,15 +1,15 @@
1
- import type { ExtensibleFullAuditedEntityDto } from '@abp/ng.core';
2
- export interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string> {
3
- tenantId?: string;
4
- userName?: string;
5
- name?: string;
6
- surname?: string;
7
- email?: string;
8
- emailConfirmed: boolean;
9
- phoneNumber?: string;
10
- phoneNumberConfirmed: boolean;
11
- isActive: boolean;
12
- lockoutEnabled: boolean;
13
- lockoutEnd?: string;
14
- concurrencyStamp?: string;
15
- }
1
+ import type { ExtensibleFullAuditedEntityDto } from '@abp/ng.core';
2
+ export interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string> {
3
+ tenantId?: string;
4
+ userName?: string;
5
+ name?: string;
6
+ surname?: string;
7
+ email?: string;
8
+ emailConfirmed: boolean;
9
+ phoneNumber?: string;
10
+ phoneNumberConfirmed: boolean;
11
+ isActive: boolean;
12
+ lockoutEnabled: boolean;
13
+ lockoutEnd?: string;
14
+ concurrencyStamp?: string;
15
+ }
@@ -1 +1 @@
1
- export * from './lib/index';
1
+ export * from './lib/index';
package/public-api.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './lib/auth-wrapper.service';
2
- export * from './lib/tenant-box.service';
1
+ export * from './lib/auth-wrapper.service';
2
+ export * from './lib/tenant-box.service';