@abp/ng.account 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.
- package/README.md +3 -3
- package/abp-ng.account.d.ts +5 -5
- package/bundles/abp-ng.account-config.umd.js +78 -78
- package/bundles/abp-ng.account-config.umd.js.map +1 -1
- package/bundles/abp-ng.account.umd.js +893 -893
- package/bundles/abp-ng.account.umd.js.map +1 -1
- package/config/abp-ng.account-config.d.ts +5 -5
- package/config/account-config.module.d.ts +8 -8
- package/config/enums/index.d.ts +1 -1
- package/config/enums/route-names.d.ts +8 -8
- package/config/providers/index.d.ts +1 -1
- package/config/providers/route.provider.d.ts +8 -8
- package/config/public-api.d.ts +3 -3
- package/config/utils/factories.d.ts +2 -2
- package/esm2015/abp-ng.account.js +4 -4
- package/esm2015/config/abp-ng.account-config.js +4 -4
- package/esm2015/config/account-config.module.js +27 -27
- package/esm2015/config/enums/index.js +2 -2
- package/esm2015/config/enums/route-names.js +2 -2
- package/esm2015/config/providers/index.js +2 -2
- package/esm2015/config/providers/route.provider.js +50 -50
- package/esm2015/config/public-api.js +4 -4
- package/esm2015/config/utils/factories.js +11 -11
- package/esm2015/lib/account-routing.module.js +89 -89
- package/esm2015/lib/account.module.js +85 -85
- package/esm2015/lib/components/change-password/change-password.component.js +90 -90
- package/esm2015/lib/components/forgot-password/forgot-password.component.js +46 -46
- package/esm2015/lib/components/index.js +8 -8
- package/esm2015/lib/components/login/login.component.js +68 -68
- package/esm2015/lib/components/manage-profile/manage-profile.component.js +50 -50
- package/esm2015/lib/components/personal-settings/personal-settings.component.js +59 -59
- package/esm2015/lib/components/register/register.component.js +87 -87
- package/esm2015/lib/components/reset-password/reset-password.component.js +71 -71
- package/esm2015/lib/enums/components.js +2 -2
- package/esm2015/lib/enums/index.js +2 -2
- package/esm2015/lib/guards/authentication-flow.guard.js +21 -21
- package/esm2015/lib/guards/index.js +2 -2
- package/esm2015/lib/models/account.js +3 -3
- package/esm2015/lib/models/config-options.js +2 -2
- package/esm2015/lib/models/index.js +3 -3
- package/esm2015/lib/services/index.js +2 -2
- package/esm2015/lib/services/manage-profile.state.service.js +27 -27
- package/esm2015/lib/tokens/config-options.token.js +3 -3
- package/esm2015/lib/tokens/index.js +2 -2
- package/esm2015/lib/utils/auth-utils.js +8 -8
- package/esm2015/lib/utils/factory-utils.js +4 -4
- package/esm2015/public-api.js +8 -8
- package/fesm2015/abp-ng.account-config.js +75 -75
- package/fesm2015/abp-ng.account-config.js.map +1 -1
- package/fesm2015/abp-ng.account.js +545 -545
- package/fesm2015/abp-ng.account.js.map +1 -1
- package/lib/account-routing.module.d.ts +7 -7
- package/lib/account.module.d.ts +22 -22
- package/lib/components/change-password/change-password.component.d.ts +24 -24
- package/lib/components/forgot-password/forgot-password.component.d.ts +14 -14
- package/lib/components/index.d.ts +7 -7
- package/lib/components/login/login.component.d.ts +24 -24
- package/lib/components/manage-profile/manage-profile.component.d.ts +18 -18
- package/lib/components/personal-settings/personal-settings.component.d.ts +21 -21
- package/lib/components/register/register.component.d.ts +26 -26
- package/lib/components/reset-password/reset-password.component.d.ts +22 -22
- package/lib/enums/components.d.ts +11 -11
- package/lib/enums/index.d.ts +1 -1
- package/lib/guards/authentication-flow.guard.d.ts +10 -10
- package/lib/guards/index.d.ts +1 -1
- package/lib/models/account.d.ts +14 -14
- package/lib/models/config-options.d.ts +3 -3
- package/lib/models/index.d.ts +2 -2
- package/lib/services/index.d.ts +1 -1
- package/lib/services/manage-profile.state.service.d.ts +29 -29
- package/lib/tokens/config-options.token.d.ts +3 -3
- package/lib/tokens/index.d.ts +1 -1
- package/lib/utils/auth-utils.d.ts +2 -2
- package/lib/utils/factory-utils.d.ts +4 -4
- package/package.json +4 -4
- package/public-api.d.ts +7 -7
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<h1> @abp/ng.account </h1>
|
|
2
|
-
|
|
3
|
-
[docs.abp.io](https://docs.abp.io)
|
|
1
|
+
<h1> @abp/ng.account </h1>
|
|
2
|
+
|
|
3
|
+
[docs.abp.io](https://docs.abp.io)
|
package/abp-ng.account.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@abp/ng.account" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@abp/ng.account" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -24,90 +24,90 @@
|
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
26
|
|
|
27
|
-
var ACCOUNT_ROUTE_PROVIDERS = [
|
|
28
|
-
{ provide: i0.APP_INITIALIZER, useFactory: configureRoutes, deps: [ng_core.RoutesService], multi: true },
|
|
29
|
-
];
|
|
30
|
-
function configureRoutes(routes) {
|
|
31
|
-
return function () {
|
|
32
|
-
routes.add([
|
|
33
|
-
{
|
|
34
|
-
path: undefined,
|
|
35
|
-
name: "AbpAccount::Menu:Account" /* Account */,
|
|
36
|
-
invisible: true,
|
|
37
|
-
layout: "account" /* account */,
|
|
38
|
-
order: 1,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
path: '/account/login',
|
|
42
|
-
name: "AbpAccount::Login" /* Login */,
|
|
43
|
-
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
44
|
-
order: 1,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
path: '/account/register',
|
|
48
|
-
name: "AbpAccount::Register" /* Register */,
|
|
49
|
-
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
50
|
-
order: 2,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
path: '/account/manage',
|
|
54
|
-
name: "AbpAccount::MyAccount" /* ManageProfile */,
|
|
55
|
-
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
56
|
-
layout: "application" /* application */,
|
|
57
|
-
order: 3,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
path: '/account/forgot-password',
|
|
61
|
-
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
62
|
-
name: "AbpAccount::ForgotPassword" /* ForgotPassword */,
|
|
63
|
-
invisible: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
path: '/account/reset-password',
|
|
67
|
-
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
68
|
-
name: "AbpAccount::ResetPassword" /* ResetPassword */,
|
|
69
|
-
invisible: true,
|
|
70
|
-
},
|
|
71
|
-
]);
|
|
72
|
-
};
|
|
27
|
+
var ACCOUNT_ROUTE_PROVIDERS = [
|
|
28
|
+
{ provide: i0.APP_INITIALIZER, useFactory: configureRoutes, deps: [ng_core.RoutesService], multi: true },
|
|
29
|
+
];
|
|
30
|
+
function configureRoutes(routes) {
|
|
31
|
+
return function () {
|
|
32
|
+
routes.add([
|
|
33
|
+
{
|
|
34
|
+
path: undefined,
|
|
35
|
+
name: "AbpAccount::Menu:Account" /* Account */,
|
|
36
|
+
invisible: true,
|
|
37
|
+
layout: "account" /* account */,
|
|
38
|
+
order: 1,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: '/account/login',
|
|
42
|
+
name: "AbpAccount::Login" /* Login */,
|
|
43
|
+
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
44
|
+
order: 1,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: '/account/register',
|
|
48
|
+
name: "AbpAccount::Register" /* Register */,
|
|
49
|
+
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
50
|
+
order: 2,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
path: '/account/manage',
|
|
54
|
+
name: "AbpAccount::MyAccount" /* ManageProfile */,
|
|
55
|
+
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
56
|
+
layout: "application" /* application */,
|
|
57
|
+
order: 3,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
path: '/account/forgot-password',
|
|
61
|
+
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
62
|
+
name: "AbpAccount::ForgotPassword" /* ForgotPassword */,
|
|
63
|
+
invisible: true,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
path: '/account/reset-password',
|
|
67
|
+
parentName: "AbpAccount::Menu:Account" /* Account */,
|
|
68
|
+
name: "AbpAccount::ResetPassword" /* ResetPassword */,
|
|
69
|
+
invisible: true,
|
|
70
|
+
},
|
|
71
|
+
]);
|
|
72
|
+
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
function navigateToManageProfileFactory(injector) {
|
|
76
|
-
return function () {
|
|
77
|
-
var router$1 = injector.get(router.Router);
|
|
78
|
-
var routes = injector.get(ng_core.RoutesService);
|
|
79
|
-
var path = routes.find(function (item) { return item.name === "AbpAccount::MyAccount"; } /* ManageProfile */).path;
|
|
80
|
-
router$1.navigateByUrl(path);
|
|
81
|
-
};
|
|
75
|
+
function navigateToManageProfileFactory(injector) {
|
|
76
|
+
return function () {
|
|
77
|
+
var router$1 = injector.get(router.Router);
|
|
78
|
+
var routes = injector.get(ng_core.RoutesService);
|
|
79
|
+
var path = routes.find(function (item) { return item.name === "AbpAccount::MyAccount"; } /* ManageProfile */).path;
|
|
80
|
+
router$1.navigateByUrl(path);
|
|
81
|
+
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
var AccountConfigModule = /** @class */ (function () {
|
|
85
|
-
function AccountConfigModule() {
|
|
86
|
-
}
|
|
87
|
-
AccountConfigModule.forRoot = function () {
|
|
88
|
-
return {
|
|
89
|
-
ngModule: AccountConfigModule,
|
|
90
|
-
providers: [
|
|
91
|
-
ACCOUNT_ROUTE_PROVIDERS,
|
|
92
|
-
{
|
|
93
|
-
provide: ng_core.NAVIGATE_TO_MANAGE_PROFILE,
|
|
94
|
-
useFactory: navigateToManageProfileFactory,
|
|
95
|
-
deps: [i0.Injector],
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
return AccountConfigModule;
|
|
101
|
-
}());
|
|
102
|
-
AccountConfigModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
103
|
-
AccountConfigModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule });
|
|
104
|
-
AccountConfigModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule });
|
|
105
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule, decorators: [{
|
|
106
|
-
type: i0.NgModule
|
|
84
|
+
var AccountConfigModule = /** @class */ (function () {
|
|
85
|
+
function AccountConfigModule() {
|
|
86
|
+
}
|
|
87
|
+
AccountConfigModule.forRoot = function () {
|
|
88
|
+
return {
|
|
89
|
+
ngModule: AccountConfigModule,
|
|
90
|
+
providers: [
|
|
91
|
+
ACCOUNT_ROUTE_PROVIDERS,
|
|
92
|
+
{
|
|
93
|
+
provide: ng_core.NAVIGATE_TO_MANAGE_PROFILE,
|
|
94
|
+
useFactory: navigateToManageProfileFactory,
|
|
95
|
+
deps: [i0.Injector],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
return AccountConfigModule;
|
|
101
|
+
}());
|
|
102
|
+
AccountConfigModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
103
|
+
AccountConfigModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule });
|
|
104
|
+
AccountConfigModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule });
|
|
105
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountConfigModule, decorators: [{
|
|
106
|
+
type: i0.NgModule
|
|
107
107
|
}] });
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* Generated bundle index. Do not edit.
|
|
109
|
+
/**
|
|
110
|
+
* Generated bundle index. Do not edit.
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
exports.ACCOUNT_ROUTE_PROVIDERS = ACCOUNT_ROUTE_PROVIDERS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abp-ng.account-config.umd.js","sources":["../../../../packages/account/config/src/providers/route.provider.ts","../../../../packages/account/config/src/utils/factories.ts","../../../../packages/account/config/src/account-config.module.ts","../../../../packages/account/config/src/abp-ng.account-config.ts"],"sourcesContent":["import { eLayoutType, RoutesService } from '@abp/ng.core';\
|
|
1
|
+
{"version":3,"file":"abp-ng.account-config.umd.js","sources":["../../../../packages/account/config/src/providers/route.provider.ts","../../../../packages/account/config/src/utils/factories.ts","../../../../packages/account/config/src/account-config.module.ts","../../../../packages/account/config/src/abp-ng.account-config.ts"],"sourcesContent":["import { eLayoutType, RoutesService } from '@abp/ng.core';\nimport { APP_INITIALIZER } from '@angular/core';\nimport { eAccountRouteNames } from '../enums/route-names';\n\nexport const ACCOUNT_ROUTE_PROVIDERS = [\n { provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },\n];\n\nexport function configureRoutes(routes: RoutesService) {\n return () => {\n routes.add([\n {\n path: undefined,\n name: eAccountRouteNames.Account,\n invisible: true,\n layout: eLayoutType.account,\n order: 1,\n },\n {\n path: '/account/login',\n name: eAccountRouteNames.Login,\n parentName: eAccountRouteNames.Account,\n order: 1,\n },\n {\n path: '/account/register',\n name: eAccountRouteNames.Register,\n parentName: eAccountRouteNames.Account,\n order: 2,\n },\n {\n path: '/account/manage',\n name: eAccountRouteNames.ManageProfile,\n parentName: eAccountRouteNames.Account,\n layout: eLayoutType.application,\n order: 3,\n },\n {\n path: '/account/forgot-password',\n parentName: eAccountRouteNames.Account,\n name: eAccountRouteNames.ForgotPassword,\n invisible: true,\n },\n {\n path: '/account/reset-password',\n parentName: eAccountRouteNames.Account,\n name: eAccountRouteNames.ResetPassword,\n invisible: true,\n },\n ]);\n };\n}\n","import { Injector } from '@angular/core';\nimport { RoutesService } from '@abp/ng.core';\nimport { Router } from '@angular/router';\nimport { eAccountRouteNames } from '../enums/route-names';\n\nexport function navigateToManageProfileFactory(injector: Injector) {\n return () => {\n const router = injector.get(Router);\n const routes = injector.get(RoutesService);\n const { path } = routes.find(item => item.name === eAccountRouteNames.ManageProfile);\n router.navigateByUrl(path);\n };\n}\n","import { Injector, ModuleWithProviders, NgModule } from '@angular/core';\nimport { NAVIGATE_TO_MANAGE_PROFILE } from '@abp/ng.core';\nimport { ACCOUNT_ROUTE_PROVIDERS } from './providers/route.provider';\nimport { navigateToManageProfileFactory } from './utils/factories';\n\n@NgModule()\nexport class AccountConfigModule {\n static forRoot(): ModuleWithProviders<AccountConfigModule> {\n return {\n ngModule: AccountConfigModule,\n providers: [\n ACCOUNT_ROUTE_PROVIDERS,\n {\n provide: NAVIGATE_TO_MANAGE_PROFILE,\n useFactory: navigateToManageProfileFactory,\n deps: [Injector],\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["APP_INITIALIZER","RoutesService","router","Router","NAVIGATE_TO_MANAGE_PROFILE","Injector","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;QAIa,uB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