@abp/ng.account 5.0.1 → 5.1.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/config/package.json +5 -5
- package/{esm2015/abp-ng.account.js → esm2020/abp-ng.account.mjs} +0 -0
- package/{esm2015/config/abp-ng.account-config.js → esm2020/config/abp-ng.account-config.mjs} +0 -0
- package/{esm2015/config/account-config.module.js → esm2020/config/account-config.module.mjs} +5 -5
- package/{esm2015/config/enums/index.js → esm2020/config/enums/index.mjs} +0 -0
- package/{esm2015/config/enums/route-names.js → esm2020/config/enums/route-names.mjs} +0 -0
- package/{esm2015/config/providers/index.js → esm2020/config/providers/index.mjs} +0 -0
- package/{esm2015/config/providers/route.provider.js → esm2020/config/providers/route.provider.mjs} +0 -0
- package/{esm2015/config/public-api.js → esm2020/config/public-api.mjs} +0 -0
- package/{esm2015/config/utils/factories.js → esm2020/config/utils/factories.mjs} +0 -0
- package/{esm2015/lib/account-routing.module.js → esm2020/lib/account-routing.module.mjs} +5 -5
- package/{esm2015/lib/account.module.js → esm2020/lib/account.module.mjs} +5 -5
- package/esm2020/lib/components/change-password/change-password.component.mjs +87 -0
- package/esm2020/lib/components/forgot-password/forgot-password.component.mjs +43 -0
- package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
- package/esm2020/lib/components/login/login.component.mjs +64 -0
- package/esm2020/lib/components/manage-profile/manage-profile.component.mjs +45 -0
- package/esm2020/lib/components/personal-settings/personal-settings.component.mjs +55 -0
- package/esm2020/lib/components/register/register.component.mjs +83 -0
- package/esm2020/lib/components/reset-password/reset-password.component.mjs +68 -0
- package/{esm2015/lib/enums/components.js → esm2020/lib/enums/components.mjs} +0 -0
- package/{esm2015/lib/enums/index.js → esm2020/lib/enums/index.mjs} +0 -0
- package/{esm2015/lib/guards/authentication-flow.guard.js → esm2020/lib/guards/authentication-flow.guard.mjs} +4 -4
- package/{esm2015/lib/guards/index.js → esm2020/lib/guards/index.mjs} +0 -0
- package/{esm2015/lib/models/account.js → esm2020/lib/models/account.mjs} +0 -0
- package/{esm2015/lib/models/config-options.js → esm2020/lib/models/config-options.mjs} +0 -0
- package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +0 -0
- package/{esm2015/lib/services/index.js → esm2020/lib/services/index.mjs} +0 -0
- package/{esm2015/lib/services/manage-profile.state.service.js → esm2020/lib/services/manage-profile.state.service.mjs} +4 -4
- package/{esm2015/lib/tokens/config-options.token.js → esm2020/lib/tokens/config-options.token.mjs} +0 -0
- package/{esm2015/lib/tokens/index.js → esm2020/lib/tokens/index.mjs} +0 -0
- package/{esm2015/lib/utils/auth-utils.js → esm2020/lib/utils/auth-utils.mjs} +0 -0
- package/esm2020/lib/utils/factory-utils.mjs +7 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/{abp-ng.account-config.js → abp-ng.account-config.mjs} +5 -5
- package/fesm2015/abp-ng.account-config.mjs.map +1 -0
- package/fesm2015/abp-ng.account.mjs +571 -0
- package/fesm2015/abp-ng.account.mjs.map +1 -0
- package/fesm2020/abp-ng.account-config.mjs +90 -0
- package/fesm2020/abp-ng.account-config.mjs.map +1 -0
- package/fesm2020/abp-ng.account.mjs +575 -0
- package/fesm2020/abp-ng.account.mjs.map +1 -0
- package/package.json +30 -9
- package/bundles/abp-ng.account-config.umd.js +0 -120
- package/bundles/abp-ng.account-config.umd.js.map +0 -1
- package/bundles/abp-ng.account.umd.js +0 -974
- package/bundles/abp-ng.account.umd.js.map +0 -1
- package/esm2015/lib/components/change-password/change-password.component.js +0 -90
- package/esm2015/lib/components/forgot-password/forgot-password.component.js +0 -46
- package/esm2015/lib/components/login/login.component.js +0 -68
- package/esm2015/lib/components/manage-profile/manage-profile.component.js +0 -50
- package/esm2015/lib/components/personal-settings/personal-settings.component.js +0 -59
- package/esm2015/lib/components/register/register.component.js +0 -87
- package/esm2015/lib/components/reset-password/reset-password.component.js +0 -71
- package/esm2015/lib/utils/factory-utils.js +0 -4
- package/fesm2015/abp-ng.account-config.js.map +0 -1
- package/fesm2015/abp-ng.account.js +0 -598
- package/fesm2015/abp-ng.account.js.map +0 -1
|
@@ -1,974 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@angular/core'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-validate/core'), require('@angular/router'), require('@angular/forms'), require('rxjs/operators'), require('@abp/ng.account.core/proxy'), require('@angular/common'), require('rxjs'), require('@angular/animations')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@abp/ng.account', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@angular/core', '@ng-bootstrap/ng-bootstrap', '@ngx-validate/core', '@angular/router', '@angular/forms', 'rxjs/operators', '@abp/ng.account.core/proxy', '@angular/common', 'rxjs', '@angular/animations'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.account = {}), global.i3, global.i2$1, global.ng.core, global.ngBootstrap, global.i6$1, global.ng.router, global.ng.forms, global.rxjs.operators, global.i2, global.ng.common, global.rxjs, global.ng.animations));
|
|
5
|
-
})(this, (function (exports, i3, i2$1, i0, ngBootstrap, i6$1, i3$1, i1, operators, i2, i6, rxjs, animations) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
26
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
29
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
31
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
32
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
33
|
-
|
|
34
|
-
/*! *****************************************************************************
|
|
35
|
-
Copyright (c) Microsoft Corporation.
|
|
36
|
-
|
|
37
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
38
|
-
purpose with or without fee is hereby granted.
|
|
39
|
-
|
|
40
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
41
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
42
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
43
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
44
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
45
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
47
|
-
***************************************************************************** */
|
|
48
|
-
/* global Reflect, Promise */
|
|
49
|
-
var extendStatics = function (d, b) {
|
|
50
|
-
extendStatics = Object.setPrototypeOf ||
|
|
51
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
52
|
-
function (d, b) { for (var p in b)
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
54
|
-
d[p] = b[p]; };
|
|
55
|
-
return extendStatics(d, b);
|
|
56
|
-
};
|
|
57
|
-
function __extends(d, b) {
|
|
58
|
-
if (typeof b !== "function" && b !== null)
|
|
59
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
60
|
-
extendStatics(d, b);
|
|
61
|
-
function __() { this.constructor = d; }
|
|
62
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
63
|
-
}
|
|
64
|
-
var __assign = function () {
|
|
65
|
-
__assign = Object.assign || function __assign(t) {
|
|
66
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
67
|
-
s = arguments[i];
|
|
68
|
-
for (var p in s)
|
|
69
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
70
|
-
t[p] = s[p];
|
|
71
|
-
}
|
|
72
|
-
return t;
|
|
73
|
-
};
|
|
74
|
-
return __assign.apply(this, arguments);
|
|
75
|
-
};
|
|
76
|
-
function __rest(s, e) {
|
|
77
|
-
var t = {};
|
|
78
|
-
for (var p in s)
|
|
79
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
80
|
-
t[p] = s[p];
|
|
81
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
82
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
83
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
84
|
-
t[p[i]] = s[p[i]];
|
|
85
|
-
}
|
|
86
|
-
return t;
|
|
87
|
-
}
|
|
88
|
-
function __decorate(decorators, target, key, desc) {
|
|
89
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
90
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
91
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
92
|
-
else
|
|
93
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
94
|
-
if (d = decorators[i])
|
|
95
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
96
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
97
|
-
}
|
|
98
|
-
function __param(paramIndex, decorator) {
|
|
99
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
100
|
-
}
|
|
101
|
-
function __metadata(metadataKey, metadataValue) {
|
|
102
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
103
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
104
|
-
}
|
|
105
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
106
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
107
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
108
|
-
function fulfilled(value) { try {
|
|
109
|
-
step(generator.next(value));
|
|
110
|
-
}
|
|
111
|
-
catch (e) {
|
|
112
|
-
reject(e);
|
|
113
|
-
} }
|
|
114
|
-
function rejected(value) { try {
|
|
115
|
-
step(generator["throw"](value));
|
|
116
|
-
}
|
|
117
|
-
catch (e) {
|
|
118
|
-
reject(e);
|
|
119
|
-
} }
|
|
120
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
121
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function __generator(thisArg, body) {
|
|
125
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
126
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
127
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
128
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
129
|
-
function step(op) {
|
|
130
|
-
if (f)
|
|
131
|
-
throw new TypeError("Generator is already executing.");
|
|
132
|
-
while (_)
|
|
133
|
-
try {
|
|
134
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
135
|
-
return t;
|
|
136
|
-
if (y = 0, t)
|
|
137
|
-
op = [op[0] & 2, t.value];
|
|
138
|
-
switch (op[0]) {
|
|
139
|
-
case 0:
|
|
140
|
-
case 1:
|
|
141
|
-
t = op;
|
|
142
|
-
break;
|
|
143
|
-
case 4:
|
|
144
|
-
_.label++;
|
|
145
|
-
return { value: op[1], done: false };
|
|
146
|
-
case 5:
|
|
147
|
-
_.label++;
|
|
148
|
-
y = op[1];
|
|
149
|
-
op = [0];
|
|
150
|
-
continue;
|
|
151
|
-
case 7:
|
|
152
|
-
op = _.ops.pop();
|
|
153
|
-
_.trys.pop();
|
|
154
|
-
continue;
|
|
155
|
-
default:
|
|
156
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
157
|
-
_ = 0;
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
161
|
-
_.label = op[1];
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
165
|
-
_.label = t[1];
|
|
166
|
-
t = op;
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
if (t && _.label < t[2]) {
|
|
170
|
-
_.label = t[2];
|
|
171
|
-
_.ops.push(op);
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
if (t[2])
|
|
175
|
-
_.ops.pop();
|
|
176
|
-
_.trys.pop();
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
op = body.call(thisArg, _);
|
|
180
|
-
}
|
|
181
|
-
catch (e) {
|
|
182
|
-
op = [6, e];
|
|
183
|
-
y = 0;
|
|
184
|
-
}
|
|
185
|
-
finally {
|
|
186
|
-
f = t = 0;
|
|
187
|
-
}
|
|
188
|
-
if (op[0] & 5)
|
|
189
|
-
throw op[1];
|
|
190
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
194
|
-
if (k2 === undefined)
|
|
195
|
-
k2 = k;
|
|
196
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
197
|
-
}) : (function (o, m, k, k2) {
|
|
198
|
-
if (k2 === undefined)
|
|
199
|
-
k2 = k;
|
|
200
|
-
o[k2] = m[k];
|
|
201
|
-
});
|
|
202
|
-
function __exportStar(m, o) {
|
|
203
|
-
for (var p in m)
|
|
204
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
205
|
-
__createBinding(o, m, p);
|
|
206
|
-
}
|
|
207
|
-
function __values(o) {
|
|
208
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
209
|
-
if (m)
|
|
210
|
-
return m.call(o);
|
|
211
|
-
if (o && typeof o.length === "number")
|
|
212
|
-
return {
|
|
213
|
-
next: function () {
|
|
214
|
-
if (o && i >= o.length)
|
|
215
|
-
o = void 0;
|
|
216
|
-
return { value: o && o[i++], done: !o };
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
220
|
-
}
|
|
221
|
-
function __read(o, n) {
|
|
222
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
223
|
-
if (!m)
|
|
224
|
-
return o;
|
|
225
|
-
var i = m.call(o), r, ar = [], e;
|
|
226
|
-
try {
|
|
227
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
228
|
-
ar.push(r.value);
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
e = { error: error };
|
|
232
|
-
}
|
|
233
|
-
finally {
|
|
234
|
-
try {
|
|
235
|
-
if (r && !r.done && (m = i["return"]))
|
|
236
|
-
m.call(i);
|
|
237
|
-
}
|
|
238
|
-
finally {
|
|
239
|
-
if (e)
|
|
240
|
-
throw e.error;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return ar;
|
|
244
|
-
}
|
|
245
|
-
/** @deprecated */
|
|
246
|
-
function __spread() {
|
|
247
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
248
|
-
ar = ar.concat(__read(arguments[i]));
|
|
249
|
-
return ar;
|
|
250
|
-
}
|
|
251
|
-
/** @deprecated */
|
|
252
|
-
function __spreadArrays() {
|
|
253
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
254
|
-
s += arguments[i].length;
|
|
255
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
256
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
257
|
-
r[k] = a[j];
|
|
258
|
-
return r;
|
|
259
|
-
}
|
|
260
|
-
function __spreadArray(to, from, pack) {
|
|
261
|
-
if (pack || arguments.length === 2)
|
|
262
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
263
|
-
if (ar || !(i in from)) {
|
|
264
|
-
if (!ar)
|
|
265
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
266
|
-
ar[i] = from[i];
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
270
|
-
}
|
|
271
|
-
function __await(v) {
|
|
272
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
273
|
-
}
|
|
274
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
275
|
-
if (!Symbol.asyncIterator)
|
|
276
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
277
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
278
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
279
|
-
function verb(n) { if (g[n])
|
|
280
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
281
|
-
function resume(n, v) { try {
|
|
282
|
-
step(g[n](v));
|
|
283
|
-
}
|
|
284
|
-
catch (e) {
|
|
285
|
-
settle(q[0][3], e);
|
|
286
|
-
} }
|
|
287
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
288
|
-
function fulfill(value) { resume("next", value); }
|
|
289
|
-
function reject(value) { resume("throw", value); }
|
|
290
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
291
|
-
resume(q[0][0], q[0][1]); }
|
|
292
|
-
}
|
|
293
|
-
function __asyncDelegator(o) {
|
|
294
|
-
var i, p;
|
|
295
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
296
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
297
|
-
}
|
|
298
|
-
function __asyncValues(o) {
|
|
299
|
-
if (!Symbol.asyncIterator)
|
|
300
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
301
|
-
var m = o[Symbol.asyncIterator], i;
|
|
302
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
303
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
304
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
305
|
-
}
|
|
306
|
-
function __makeTemplateObject(cooked, raw) {
|
|
307
|
-
if (Object.defineProperty) {
|
|
308
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
cooked.raw = raw;
|
|
312
|
-
}
|
|
313
|
-
return cooked;
|
|
314
|
-
}
|
|
315
|
-
;
|
|
316
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
317
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
318
|
-
}) : function (o, v) {
|
|
319
|
-
o["default"] = v;
|
|
320
|
-
};
|
|
321
|
-
function __importStar(mod) {
|
|
322
|
-
if (mod && mod.__esModule)
|
|
323
|
-
return mod;
|
|
324
|
-
var result = {};
|
|
325
|
-
if (mod != null)
|
|
326
|
-
for (var k in mod)
|
|
327
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
328
|
-
__createBinding(result, mod, k);
|
|
329
|
-
__setModuleDefault(result, mod);
|
|
330
|
-
return result;
|
|
331
|
-
}
|
|
332
|
-
function __importDefault(mod) {
|
|
333
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
334
|
-
}
|
|
335
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
336
|
-
if (kind === "a" && !f)
|
|
337
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
338
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
339
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
340
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
341
|
-
}
|
|
342
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
343
|
-
if (kind === "m")
|
|
344
|
-
throw new TypeError("Private method is not writable");
|
|
345
|
-
if (kind === "a" && !f)
|
|
346
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
347
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
348
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
349
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
var ForgotPasswordComponent = /** @class */ (function () {
|
|
353
|
-
function ForgotPasswordComponent(fb, accountService) {
|
|
354
|
-
this.fb = fb;
|
|
355
|
-
this.accountService = accountService;
|
|
356
|
-
this.isEmailSent = false;
|
|
357
|
-
this.form = this.fb.group({
|
|
358
|
-
email: ['', [i1.Validators.required, i1.Validators.email]],
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
ForgotPasswordComponent.prototype.onSubmit = function () {
|
|
362
|
-
var _this = this;
|
|
363
|
-
if (this.form.invalid)
|
|
364
|
-
return;
|
|
365
|
-
this.inProgress = true;
|
|
366
|
-
this.accountService
|
|
367
|
-
.sendPasswordResetCode({
|
|
368
|
-
email: this.form.get('email').value,
|
|
369
|
-
appName: 'Angular',
|
|
370
|
-
})
|
|
371
|
-
.pipe(operators.finalize(function () { return (_this.inProgress = false); }))
|
|
372
|
-
.subscribe(function () {
|
|
373
|
-
_this.isEmailSent = true;
|
|
374
|
-
});
|
|
375
|
-
};
|
|
376
|
-
return ForgotPasswordComponent;
|
|
377
|
-
}());
|
|
378
|
-
ForgotPasswordComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ForgotPasswordComponent, deps: [{ token: i1__namespace.FormBuilder }, { token: i2__namespace.AccountService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
379
|
-
ForgotPasswordComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ForgotPasswordComponent, selector: "abp-forgot-password", ngImport: i0__namespace, template: "<h4>{{ 'AbpAccount::ForgotPassword' | abpLocalization }}</h4>\r\n\r\n<form\r\n *ngIf=\"!isEmailSent; else emailSentTemplate\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"onSubmit()\"\r\n validateOnSubmit\r\n>\r\n <p>{{ 'AbpAccount::SendPasswordResetLink_Information' | abpLocalization }}</p>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"input-email-address\" class=\"form-label\">{{\r\n 'AbpAccount::EmailAddress' | abpLocalization\r\n }}</label\r\n ><span> * </span>\r\n <input type=\"email\" id=\"input-email-address\" class=\"form-control\" formControlName=\"email\" />\r\n </div>\r\n <abp-button\r\n class=\"d-block\"\r\n buttonClass=\"mt-2 mb-3 btn btn-primary btn-block\"\r\n [loading]=\"inProgress\"\r\n buttonType=\"submit\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpAccount::Submit' | abpLocalization }}\r\n </abp-button>\r\n <a routerLink=\"/account/login\"\r\n ><i class=\"fa fa-long-arrow-left me-1\"></i>{{ 'AbpAccount::Login' | abpLocalization }}</a\r\n >\r\n</form>\r\n\r\n<ng-template #emailSentTemplate>\r\n <p>\r\n {{ 'AbpAccount::PasswordResetMailSentMessage' | abpLocalization }}\r\n </p>\r\n\r\n <a routerLink=\"/account/login\">\r\n <button class=\"d-block mt-2 mb-3 btn btn-primary btn-block\">\r\n <i class=\"fa fa-long-arrow-left me-1\"></i>\r\n {{ 'AbpAccount::BackToLogin' | abpLocalization }}\r\n </button>\r\n </a>\r\n</ng-template>\r\n", components: [{ type: i2__namespace$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i1__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i3__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "abpLocalization": i3__namespace.LocalizationPipe } });
|
|
380
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ForgotPasswordComponent, decorators: [{
|
|
381
|
-
type: i0.Component,
|
|
382
|
-
args: [{
|
|
383
|
-
selector: 'abp-forgot-password',
|
|
384
|
-
templateUrl: 'forgot-password.component.html',
|
|
385
|
-
}]
|
|
386
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.FormBuilder }, { type: i2__namespace.AccountService }]; } });
|
|
387
|
-
|
|
388
|
-
var ACCOUNT_CONFIG_OPTIONS = new i0.InjectionToken('ACCOUNT_CONFIG_OPTIONS');
|
|
389
|
-
|
|
390
|
-
function getRedirectUrl(injector) {
|
|
391
|
-
var route = injector.get(i3$1.ActivatedRoute);
|
|
392
|
-
var options = injector.get(ACCOUNT_CONFIG_OPTIONS);
|
|
393
|
-
return route.snapshot.queryParams.returnUrl || options.redirectUrl || '/';
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
var maxLength$2 = i1.Validators.maxLength, required$3 = i1.Validators.required;
|
|
397
|
-
var LoginComponent = /** @class */ (function () {
|
|
398
|
-
function LoginComponent(injector, fb, toasterService, authService, configState) {
|
|
399
|
-
this.injector = injector;
|
|
400
|
-
this.fb = fb;
|
|
401
|
-
this.toasterService = toasterService;
|
|
402
|
-
this.authService = authService;
|
|
403
|
-
this.configState = configState;
|
|
404
|
-
this.isSelfRegistrationEnabled = true;
|
|
405
|
-
this.authWrapperKey = "Account.AuthWrapperComponent" /* AuthWrapper */;
|
|
406
|
-
}
|
|
407
|
-
LoginComponent.prototype.ngOnInit = function () {
|
|
408
|
-
this.init();
|
|
409
|
-
this.buildForm();
|
|
410
|
-
};
|
|
411
|
-
LoginComponent.prototype.init = function () {
|
|
412
|
-
this.isSelfRegistrationEnabled =
|
|
413
|
-
(this.configState.getSetting('Abp.Account.IsSelfRegistrationEnabled') || '').toLowerCase() !== 'false';
|
|
414
|
-
};
|
|
415
|
-
LoginComponent.prototype.buildForm = function () {
|
|
416
|
-
this.form = this.fb.group({
|
|
417
|
-
username: ['', [required$3, maxLength$2(255)]],
|
|
418
|
-
password: ['', [required$3, maxLength$2(128)]],
|
|
419
|
-
rememberMe: [false],
|
|
420
|
-
});
|
|
421
|
-
};
|
|
422
|
-
LoginComponent.prototype.onSubmit = function () {
|
|
423
|
-
var _this = this;
|
|
424
|
-
if (this.form.invalid)
|
|
425
|
-
return;
|
|
426
|
-
this.inProgress = true;
|
|
427
|
-
var _c = this.form.value, username = _c.username, password = _c.password, rememberMe = _c.rememberMe;
|
|
428
|
-
var redirectUrl = getRedirectUrl(this.injector);
|
|
429
|
-
this.authService
|
|
430
|
-
.login({ username: username, password: password, rememberMe: rememberMe, redirectUrl: redirectUrl })
|
|
431
|
-
.pipe(operators.catchError(function (err) {
|
|
432
|
-
var _a, _b;
|
|
433
|
-
_this.toasterService.error(((_a = err.error) === null || _a === void 0 ? void 0 : _a.error_description) ||
|
|
434
|
-
((_b = err.error) === null || _b === void 0 ? void 0 : _b.error.message) ||
|
|
435
|
-
'AbpAccount::DefaultErrorMessage', null, { life: 7000 });
|
|
436
|
-
return rxjs.throwError(err);
|
|
437
|
-
}), operators.finalize(function () { return (_this.inProgress = false); }))
|
|
438
|
-
.subscribe();
|
|
439
|
-
};
|
|
440
|
-
return LoginComponent;
|
|
441
|
-
}());
|
|
442
|
-
LoginComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.FormBuilder }, { token: i2__namespace$1.ToasterService }, { token: i3__namespace.AuthService }, { token: i3__namespace.ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
443
|
-
LoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: LoginComponent, selector: "abp-login", ngImport: i0__namespace, template: "<h4>{{ 'AbpAccount::Login' | abpLocalization }}</h4>\r\n<strong *ngIf=\"isSelfRegistrationEnabled\">\r\n {{ 'AbpAccount::AreYouANewUser' | abpLocalization }}\r\n <a class=\"text-decoration-none\" routerLink=\"/account/register\" queryParamsHandling=\"preserve\">{{\r\n 'AbpAccount::Register' | abpLocalization\r\n }}</a>\r\n</strong>\r\n<form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\" validateOnSubmit class=\"mt-4\">\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"login-input-user-name-or-email-address\" class=\"form-label\">{{\r\n 'AbpAccount::UserNameOrEmailAddress' | abpLocalization\r\n }}</label>\r\n <input\r\n class=\"form-control\"\r\n type=\"text\"\r\n id=\"login-input-user-name-or-email-address\"\r\n formControlName=\"username\"\r\n autocomplete=\"username\"\r\n autofocus\r\n />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"login-input-password\" class=\"form-label\">{{ 'AbpAccount::Password' | abpLocalization }}</label>\r\n <input\r\n class=\"form-control\"\r\n type=\"password\"\r\n id=\"login-input-password\"\r\n formControlName=\"password\"\r\n autocomplete=\"current-password\"\r\n />\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <div class=\"form-check\">\r\n <label class=\"form-check-label mb-2\" for=\"login-input-remember-me\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"login-input-remember-me\"\r\n formControlName=\"rememberMe\"\r\n />\r\n {{ 'AbpAccount::RememberMe' | abpLocalization }}\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"text-end col\">\r\n <a routerLink=\"/account/forgot-password\">{{\r\n 'AbpAccount::ForgotPassword' | abpLocalization\r\n }}</a>\r\n </div>\r\n </div>\r\n\r\n <abp-button\r\n [loading]=\"inProgress\"\r\n buttonType=\"submit\"\r\n name=\"Action\"\r\n buttonClass=\"btn-block btn-lg mt-3 btn btn-primary\"\r\n >\r\n {{ 'AbpAccount::Login' | abpLocalization }}\r\n </abp-button>\r\n</form>\r\n", components: [{ type: i2__namespace$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i1__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i3__namespace.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { type: i1__namespace.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }], pipes: { "abpLocalization": i3__namespace.LocalizationPipe } });
|
|
444
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent, decorators: [{
|
|
445
|
-
type: i0.Component,
|
|
446
|
-
args: [{
|
|
447
|
-
selector: 'abp-login',
|
|
448
|
-
templateUrl: './login.component.html',
|
|
449
|
-
}]
|
|
450
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i1__namespace.FormBuilder }, { type: i2__namespace$1.ToasterService }, { type: i3__namespace.AuthService }, { type: i3__namespace.ConfigStateService }]; } });
|
|
451
|
-
|
|
452
|
-
var ManageProfileStateService = /** @class */ (function () {
|
|
453
|
-
function ManageProfileStateService() {
|
|
454
|
-
this.store = new i3.InternalStore({});
|
|
455
|
-
}
|
|
456
|
-
Object.defineProperty(ManageProfileStateService.prototype, "createOnUpdateStream", {
|
|
457
|
-
get: function () {
|
|
458
|
-
return this.store.sliceUpdate;
|
|
459
|
-
},
|
|
460
|
-
enumerable: false,
|
|
461
|
-
configurable: true
|
|
462
|
-
});
|
|
463
|
-
ManageProfileStateService.prototype.getProfile$ = function () {
|
|
464
|
-
return this.store.sliceState(function (state) { return state.profile; });
|
|
465
|
-
};
|
|
466
|
-
ManageProfileStateService.prototype.getProfile = function () {
|
|
467
|
-
return this.store.state.profile;
|
|
468
|
-
};
|
|
469
|
-
ManageProfileStateService.prototype.setProfile = function (profile) {
|
|
470
|
-
this.store.patch({ profile: profile });
|
|
471
|
-
};
|
|
472
|
-
return ManageProfileStateService;
|
|
473
|
-
}());
|
|
474
|
-
ManageProfileStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ManageProfileStateService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
475
|
-
ManageProfileStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ManageProfileStateService, providedIn: 'root' });
|
|
476
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ManageProfileStateService, decorators: [{
|
|
477
|
-
type: i0.Injectable,
|
|
478
|
-
args: [{ providedIn: 'root' }]
|
|
479
|
-
}] });
|
|
480
|
-
|
|
481
|
-
var required$2 = i1.Validators.required;
|
|
482
|
-
var PASSWORD_FIELDS$1 = ['newPassword', 'repeatNewPassword'];
|
|
483
|
-
var ChangePasswordComponent = /** @class */ (function () {
|
|
484
|
-
function ChangePasswordComponent(fb, injector, toasterService, profileService, manageProfileState) {
|
|
485
|
-
this.fb = fb;
|
|
486
|
-
this.injector = injector;
|
|
487
|
-
this.toasterService = toasterService;
|
|
488
|
-
this.profileService = profileService;
|
|
489
|
-
this.manageProfileState = manageProfileState;
|
|
490
|
-
this.mapErrorsFn = function (errors, groupErrors, control) {
|
|
491
|
-
if (PASSWORD_FIELDS$1.indexOf(String(control.name)) < 0)
|
|
492
|
-
return errors;
|
|
493
|
-
return errors.concat(groupErrors.filter(function (_c) {
|
|
494
|
-
var key = _c.key;
|
|
495
|
-
return key === 'passwordMismatch';
|
|
496
|
-
}));
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
ChangePasswordComponent.prototype.ngOnInit = function () {
|
|
500
|
-
var _a;
|
|
501
|
-
this.hideCurrentPassword = !((_a = this.manageProfileState.getProfile()) === null || _a === void 0 ? void 0 : _a.hasPassword);
|
|
502
|
-
var passwordValidations = i2$1.getPasswordValidators(this.injector);
|
|
503
|
-
this.form = this.fb.group({
|
|
504
|
-
password: ['', required$2],
|
|
505
|
-
newPassword: [
|
|
506
|
-
'',
|
|
507
|
-
{
|
|
508
|
-
validators: __spreadArray([required$2], __read(passwordValidations)),
|
|
509
|
-
},
|
|
510
|
-
],
|
|
511
|
-
repeatNewPassword: [
|
|
512
|
-
'',
|
|
513
|
-
{
|
|
514
|
-
validators: __spreadArray([required$2], __read(passwordValidations)),
|
|
515
|
-
},
|
|
516
|
-
],
|
|
517
|
-
}, {
|
|
518
|
-
validators: [i6$1.comparePasswords(PASSWORD_FIELDS$1)],
|
|
519
|
-
});
|
|
520
|
-
if (this.hideCurrentPassword)
|
|
521
|
-
this.form.removeControl('password');
|
|
522
|
-
};
|
|
523
|
-
ChangePasswordComponent.prototype.onSubmit = function () {
|
|
524
|
-
var _this = this;
|
|
525
|
-
if (this.form.invalid)
|
|
526
|
-
return;
|
|
527
|
-
this.inProgress = true;
|
|
528
|
-
this.profileService
|
|
529
|
-
.changePassword(Object.assign(Object.assign({}, (!this.hideCurrentPassword && { currentPassword: this.form.get('password').value })), { newPassword: this.form.get('newPassword').value }))
|
|
530
|
-
.pipe(operators.finalize(function () { return (_this.inProgress = false); }))
|
|
531
|
-
.subscribe({
|
|
532
|
-
next: function () {
|
|
533
|
-
_this.form.reset();
|
|
534
|
-
_this.toasterService.success('AbpAccount::PasswordChangedMessage', '', {
|
|
535
|
-
life: 5000,
|
|
536
|
-
});
|
|
537
|
-
if (_this.hideCurrentPassword) {
|
|
538
|
-
_this.hideCurrentPassword = false;
|
|
539
|
-
_this.form.addControl('password', new i1.FormControl('', [required$2]));
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
error: function (err) {
|
|
543
|
-
var _a, _b;
|
|
544
|
-
_this.toasterService.error(((_b = (_a = err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'AbpAccount::DefaultErrorMessage');
|
|
545
|
-
},
|
|
546
|
-
});
|
|
547
|
-
};
|
|
548
|
-
return ChangePasswordComponent;
|
|
549
|
-
}());
|
|
550
|
-
ChangePasswordComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ChangePasswordComponent, deps: [{ token: i1__namespace.FormBuilder }, { token: i0__namespace.Injector }, { token: i2__namespace$1.ToasterService }, { token: i2__namespace.ProfileService }, { token: ManageProfileStateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
551
|
-
ChangePasswordComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ChangePasswordComponent, selector: "abp-change-password-form", exportAs: ["abpChangePasswordForm"], ngImport: i0__namespace, template: "<form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\" [mapErrorsFn]=\"mapErrorsFn\" validateOnSubmit>\r\n <div *ngIf=\"!hideCurrentPassword\" class=\"mb-3 form-group\">\r\n <label for=\"current-password\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:CurrentPassword' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input\r\n type=\"password\"\r\n id=\"current-password\"\r\n class=\"form-control\"\r\n formControlName=\"password\"\r\n autofocus\r\n autocomplete=\"current-password\"\r\n />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"new-password\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:NewPassword' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input\r\n type=\"password\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n formControlName=\"newPassword\"\r\n autocomplete=\"new-password\"\r\n />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"confirm-new-password\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:NewPasswordConfirm' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input\r\n type=\"password\"\r\n id=\"confirm-new-password\"\r\n class=\"form-control\"\r\n formControlName=\"repeatNewPassword\"\r\n autocomplete=\"new-password\"\r\n />\r\n </div>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n buttonClass=\"btn btn-primary color-white\"\r\n buttonType=\"submit\"\r\n [loading]=\"inProgress\"\r\n [disabled]=\"form?.invalid\"\r\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\r\n >\r\n</form>\r\n", components: [{ type: i2__namespace$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i1__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i3__namespace.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }], pipes: { "abpLocalization": i3__namespace.LocalizationPipe } });
|
|
552
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ChangePasswordComponent, decorators: [{
|
|
553
|
-
type: i0.Component,
|
|
554
|
-
args: [{
|
|
555
|
-
selector: 'abp-change-password-form',
|
|
556
|
-
templateUrl: './change-password.component.html',
|
|
557
|
-
exportAs: 'abpChangePasswordForm',
|
|
558
|
-
}]
|
|
559
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.FormBuilder }, { type: i0__namespace.Injector }, { type: i2__namespace$1.ToasterService }, { type: i2__namespace.ProfileService }, { type: ManageProfileStateService }]; } });
|
|
560
|
-
|
|
561
|
-
var maxLength$1 = i1.Validators.maxLength, required$1 = i1.Validators.required, email$1 = i1.Validators.email;
|
|
562
|
-
var PersonalSettingsComponent = /** @class */ (function () {
|
|
563
|
-
function PersonalSettingsComponent(fb, toasterService, profileService, manageProfileState) {
|
|
564
|
-
this.fb = fb;
|
|
565
|
-
this.toasterService = toasterService;
|
|
566
|
-
this.profileService = profileService;
|
|
567
|
-
this.manageProfileState = manageProfileState;
|
|
568
|
-
}
|
|
569
|
-
PersonalSettingsComponent.prototype.ngOnInit = function () {
|
|
570
|
-
this.buildForm();
|
|
571
|
-
};
|
|
572
|
-
PersonalSettingsComponent.prototype.buildForm = function () {
|
|
573
|
-
var profile = this.manageProfileState.getProfile();
|
|
574
|
-
this.form = this.fb.group({
|
|
575
|
-
userName: [profile.userName, [required$1, maxLength$1(256)]],
|
|
576
|
-
email: [profile.email, [required$1, email$1, maxLength$1(256)]],
|
|
577
|
-
name: [profile.name || '', [maxLength$1(64)]],
|
|
578
|
-
surname: [profile.surname || '', [maxLength$1(64)]],
|
|
579
|
-
phoneNumber: [profile.phoneNumber || '', [maxLength$1(16)]],
|
|
580
|
-
});
|
|
581
|
-
};
|
|
582
|
-
PersonalSettingsComponent.prototype.submit = function () {
|
|
583
|
-
var _this = this;
|
|
584
|
-
if (this.form.invalid)
|
|
585
|
-
return;
|
|
586
|
-
this.inProgress = true;
|
|
587
|
-
this.profileService
|
|
588
|
-
.update(this.form.value)
|
|
589
|
-
.pipe(operators.finalize(function () { return (_this.inProgress = false); }))
|
|
590
|
-
.subscribe(function (profile) {
|
|
591
|
-
_this.manageProfileState.setProfile(profile);
|
|
592
|
-
_this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });
|
|
593
|
-
});
|
|
594
|
-
};
|
|
595
|
-
return PersonalSettingsComponent;
|
|
596
|
-
}());
|
|
597
|
-
PersonalSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PersonalSettingsComponent, deps: [{ token: i1__namespace.FormBuilder }, { token: i2__namespace$1.ToasterService }, { token: i2__namespace.ProfileService }, { token: ManageProfileStateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
598
|
-
PersonalSettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: PersonalSettingsComponent, selector: "abp-personal-settings-form", exportAs: ["abpPersonalSettingsForm"], ngImport: i0__namespace, template: "<form validateOnSubmit *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"submit()\">\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"username\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:UserName' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input\r\n type=\"text\"\r\n id=\"username\"\r\n class=\"form-control\"\r\n formControlName=\"userName\"\r\n autofocus\r\n (keydown.space)=\"$event.preventDefault()\"\r\n />\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col col-md-6\">\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"name\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Name' | abpLocalization\r\n }}</label\r\n ><input type=\"text\" id=\"name\" class=\"form-control\" formControlName=\"name\" />\r\n </div>\r\n </div>\r\n <div class=\"col col-md-6\">\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"surname\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Surname' | abpLocalization\r\n }}</label\r\n ><input type=\"text\" id=\"surname\" class=\"form-control\" formControlName=\"surname\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"email-address\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Email' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input type=\"text\" id=\"email-address\" class=\"form-control\" formControlName=\"email\" />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"phone-number\" class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:PhoneNumber' | abpLocalization\r\n }}</label\r\n ><input type=\"text\" id=\"phone-number\" class=\"form-control\" formControlName=\"phoneNumber\" />\r\n </div>\r\n <abp-button\r\n buttonType=\"submit\"\r\n iconClass=\"fa fa-check\"\r\n buttonClass=\"btn btn-primary color-white\"\r\n [loading]=\"inProgress\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\r\n >\r\n</form>\r\n", components: [{ type: i2__namespace$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i1__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i3__namespace.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }], pipes: { "abpLocalization": i3__namespace.LocalizationPipe } });
|
|
599
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PersonalSettingsComponent, decorators: [{
|
|
600
|
-
type: i0.Component,
|
|
601
|
-
args: [{
|
|
602
|
-
selector: 'abp-personal-settings-form',
|
|
603
|
-
templateUrl: './personal-settings.component.html',
|
|
604
|
-
exportAs: 'abpPersonalSettingsForm',
|
|
605
|
-
}]
|
|
606
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.FormBuilder }, { type: i2__namespace$1.ToasterService }, { type: i2__namespace.ProfileService }, { type: ManageProfileStateService }]; } });
|
|
607
|
-
|
|
608
|
-
var ManageProfileComponent = /** @class */ (function () {
|
|
609
|
-
function ManageProfileComponent(profileService, manageProfileState) {
|
|
610
|
-
this.profileService = profileService;
|
|
611
|
-
this.manageProfileState = manageProfileState;
|
|
612
|
-
this.selectedTab = 0;
|
|
613
|
-
this.changePasswordKey = "Account.ChangePasswordComponent" /* ChangePassword */;
|
|
614
|
-
this.personalSettingsKey = "Account.PersonalSettingsComponent" /* PersonalSettings */;
|
|
615
|
-
this.profile$ = this.manageProfileState.getProfile$();
|
|
616
|
-
}
|
|
617
|
-
ManageProfileComponent.prototype.ngOnInit = function () {
|
|
618
|
-
var _this = this;
|
|
619
|
-
this.profileService.get().subscribe(function (profile) {
|
|
620
|
-
_this.manageProfileState.setProfile(profile);
|
|
621
|
-
if (profile.isExternal) {
|
|
622
|
-
_this.hideChangePasswordTab = true;
|
|
623
|
-
_this.selectedTab = 1;
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
};
|
|
627
|
-
return ManageProfileComponent;
|
|
628
|
-
}());
|
|
629
|
-
ManageProfileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ManageProfileComponent, deps: [{ token: i2__namespace.ProfileService }, { token: ManageProfileStateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
630
|
-
ManageProfileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ManageProfileComponent, selector: "abp-manage-profile", ngImport: i0__namespace, template: "<div id=\"AbpContentToolbar\"></div>\r\n\r\n<div class=\"card border-0 shadow-sm min-h-400\" [abpLoading]=\"!(profile$ | async)?.userName\">\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <ul class=\"nav flex-column nav-pills\" id=\"nav-tab\" role=\"tablist\">\r\n <li\r\n *ngIf=\"!hideChangePasswordTab && (profile$ | async)\"\r\n class=\"nav-item\"\r\n (click)=\"selectedTab = 0\"\r\n >\r\n <a\r\n class=\"nav-link\"\r\n [ngClass]=\"{ active: selectedTab === 0 }\"\r\n role=\"tab\"\r\n href=\"javascript:void(0)\"\r\n >{{ 'AbpUi::ChangePassword' | abpLocalization }}</a\r\n >\r\n </li>\r\n <li class=\"nav-item mb-2\" (click)=\"selectedTab = 1\">\r\n <a\r\n class=\"nav-link\"\r\n [ngClass]=\"{ active: selectedTab === 1 }\"\r\n role=\"tab\"\r\n href=\"javascript:void(0)\"\r\n >{{ 'AbpAccount::PersonalSettings' | abpLocalization }}</a\r\n >\r\n </li>\r\n </ul>\r\n </div>\r\n <div *ngIf=\"profile$ | async\" class=\"col-12 col-md-9\">\r\n <div class=\"tab-content\" *ngIf=\"selectedTab === 0\" [@fadeIn]>\r\n <div class=\"tab-pane active\" role=\"tabpanel\">\r\n <h4>\r\n {{ 'AbpIdentity::ChangePassword' | abpLocalization }}\r\n <hr />\r\n </h4>\r\n <abp-change-password-form\r\n *abpReplaceableTemplate=\"{\r\n componentKey: changePasswordKey\r\n }\"\r\n ></abp-change-password-form>\r\n </div>\r\n </div>\r\n <div class=\"tab-content\" *ngIf=\"selectedTab === 1\" [@fadeIn]>\r\n <div class=\"tab-pane active\" role=\"tabpanel\">\r\n <h4>\r\n {{ 'AbpIdentity::PersonalSettings' | abpLocalization }}\r\n <hr />\r\n </h4>\r\n <abp-personal-settings-form\r\n *abpReplaceableTemplate=\"{\r\n componentKey: personalSettingsKey\r\n }\"\r\n ></abp-personal-settings-form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["\n .min-h-400 {\n min-height: 400px;\n }\n "], components: [{ type: ChangePasswordComponent, selector: "abp-change-password-form", exportAs: ["abpChangePasswordForm"] }, { type: PersonalSettingsComponent, selector: "abp-personal-settings-form", exportAs: ["abpPersonalSettingsForm"] }], directives: [{ type: i2__namespace$1.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }], pipes: { "async": i6__namespace.AsyncPipe, "abpLocalization": i3__namespace.LocalizationPipe }, animations: [animations.trigger('fadeIn', [animations.transition(':enter', animations.useAnimation(i2$1.fadeIn))])] });
|
|
631
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ManageProfileComponent, decorators: [{
|
|
632
|
-
type: i0.Component,
|
|
633
|
-
args: [{
|
|
634
|
-
selector: 'abp-manage-profile',
|
|
635
|
-
templateUrl: './manage-profile.component.html',
|
|
636
|
-
animations: [animations.trigger('fadeIn', [animations.transition(':enter', animations.useAnimation(i2$1.fadeIn))])],
|
|
637
|
-
styles: [
|
|
638
|
-
"\n .min-h-400 {\n min-height: 400px;\n }\n ",
|
|
639
|
-
],
|
|
640
|
-
}]
|
|
641
|
-
}], ctorParameters: function () { return [{ type: i2__namespace.ProfileService }, { type: ManageProfileStateService }]; } });
|
|
642
|
-
|
|
643
|
-
var maxLength = i1.Validators.maxLength, required = i1.Validators.required, email = i1.Validators.email;
|
|
644
|
-
var RegisterComponent = /** @class */ (function () {
|
|
645
|
-
function RegisterComponent(fb, accountService, configState, toasterService, authService, injector) {
|
|
646
|
-
this.fb = fb;
|
|
647
|
-
this.accountService = accountService;
|
|
648
|
-
this.configState = configState;
|
|
649
|
-
this.toasterService = toasterService;
|
|
650
|
-
this.authService = authService;
|
|
651
|
-
this.injector = injector;
|
|
652
|
-
this.isSelfRegistrationEnabled = true;
|
|
653
|
-
this.authWrapperKey = "Account.AuthWrapperComponent" /* AuthWrapper */;
|
|
654
|
-
}
|
|
655
|
-
RegisterComponent.prototype.ngOnInit = function () {
|
|
656
|
-
this.init();
|
|
657
|
-
this.buildForm();
|
|
658
|
-
};
|
|
659
|
-
RegisterComponent.prototype.init = function () {
|
|
660
|
-
this.isSelfRegistrationEnabled =
|
|
661
|
-
(this.configState.getSetting('Abp.Account.IsSelfRegistrationEnabled') || '').toLowerCase() !==
|
|
662
|
-
'false';
|
|
663
|
-
if (!this.isSelfRegistrationEnabled) {
|
|
664
|
-
this.toasterService.warn({
|
|
665
|
-
key: 'AbpAccount::SelfRegistrationDisabledMessage',
|
|
666
|
-
defaultValue: 'Self registration is disabled.',
|
|
667
|
-
}, null, { life: 10000 });
|
|
668
|
-
return;
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
RegisterComponent.prototype.buildForm = function () {
|
|
672
|
-
this.form = this.fb.group({
|
|
673
|
-
username: ['', [required, maxLength(255)]],
|
|
674
|
-
password: ['', __spreadArray([required], __read(i2$1.getPasswordValidators(this.injector)))],
|
|
675
|
-
email: ['', [required, email]],
|
|
676
|
-
});
|
|
677
|
-
};
|
|
678
|
-
RegisterComponent.prototype.onSubmit = function () {
|
|
679
|
-
var _this = this;
|
|
680
|
-
if (this.form.invalid)
|
|
681
|
-
return;
|
|
682
|
-
this.inProgress = true;
|
|
683
|
-
var newUser = {
|
|
684
|
-
userName: this.form.get('username').value,
|
|
685
|
-
password: this.form.get('password').value,
|
|
686
|
-
emailAddress: this.form.get('email').value,
|
|
687
|
-
appName: 'Angular',
|
|
688
|
-
};
|
|
689
|
-
this.accountService
|
|
690
|
-
.register(newUser)
|
|
691
|
-
.pipe(operators.switchMap(function () { return _this.authService.login({
|
|
692
|
-
username: newUser.userName,
|
|
693
|
-
password: newUser.password,
|
|
694
|
-
redirectUrl: getRedirectUrl(_this.injector),
|
|
695
|
-
}); }), operators.catchError(function (err) {
|
|
696
|
-
var _a, _b;
|
|
697
|
-
_this.toasterService.error(((_a = err.error) === null || _a === void 0 ? void 0 : _a.error_description) ||
|
|
698
|
-
((_b = err.error) === null || _b === void 0 ? void 0 : _b.error.message) ||
|
|
699
|
-
'AbpAccount::DefaultErrorMessage', null, { life: 7000 });
|
|
700
|
-
return rxjs.throwError(err);
|
|
701
|
-
}), operators.finalize(function () { return (_this.inProgress = false); }))
|
|
702
|
-
.subscribe();
|
|
703
|
-
};
|
|
704
|
-
return RegisterComponent;
|
|
705
|
-
}());
|
|
706
|
-
RegisterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RegisterComponent, deps: [{ token: i1__namespace.FormBuilder }, { token: i2__namespace.AccountService }, { token: i3__namespace.ConfigStateService }, { token: i2__namespace$1.ToasterService }, { token: i3__namespace.AuthService }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
707
|
-
RegisterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: RegisterComponent, selector: "abp-register", ngImport: i0__namespace, template: "<h4>{{ 'AbpAccount::Register' | abpLocalization }}</h4>\r\n<strong>\r\n {{ 'AbpAccount::AlreadyRegistered' | abpLocalization }}\r\n <a class=\"text-decoration-none\" routerLink=\"/account/login\">{{\r\n 'AbpAccount::Login' | abpLocalization\r\n }}</a>\r\n</strong>\r\n<form\r\n *ngIf=\"isSelfRegistrationEnabled\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"onSubmit()\"\r\n validateOnSubmit\r\n class=\"mt-4\"\r\n>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"input-user-name\" class=\"form-label\">{{\r\n 'AbpAccount::UserName' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input\r\n autofocus\r\n type=\"text\"\r\n id=\"input-user-name\"\r\n class=\"form-control\"\r\n formControlName=\"username\"\r\n autocomplete=\"username\"\r\n />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"input-email-address\" class=\"form-label\">{{\r\n 'AbpAccount::EmailAddress' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input type=\"email\" id=\"input-email-address\" class=\"form-control\" formControlName=\"email\" />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"input-password\" class=\"form-label\">{{\r\n 'AbpAccount::Password' | abpLocalization\r\n }}</label\r\n ><span> * </span\r\n ><input\r\n type=\"password\"\r\n id=\"input-password\"\r\n class=\"form-control\"\r\n formControlName=\"password\"\r\n autocomplete=\"current-password\"\r\n />\r\n </div>\r\n <abp-button\r\n [loading]=\"inProgress\"\r\n buttonType=\"submit\"\r\n name=\"Action\"\r\n buttonClass=\"btn-block btn-lg mt-3 btn btn-primary\"\r\n >\r\n {{ 'AbpAccount::Register' | abpLocalization }}\r\n </abp-button>\r\n</form>\r\n", components: [{ type: i2__namespace$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i3__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i1__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3__namespace.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { type: i1__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }], pipes: { "abpLocalization": i3__namespace.LocalizationPipe } });
|
|
708
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RegisterComponent, decorators: [{
|
|
709
|
-
type: i0.Component,
|
|
710
|
-
args: [{
|
|
711
|
-
selector: 'abp-register',
|
|
712
|
-
templateUrl: './register.component.html',
|
|
713
|
-
}]
|
|
714
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.FormBuilder }, { type: i2__namespace.AccountService }, { type: i3__namespace.ConfigStateService }, { type: i2__namespace$1.ToasterService }, { type: i3__namespace.AuthService }, { type: i0__namespace.Injector }]; } });
|
|
715
|
-
|
|
716
|
-
var PASSWORD_FIELDS = ['password', 'confirmPassword'];
|
|
717
|
-
var ResetPasswordComponent = /** @class */ (function () {
|
|
718
|
-
function ResetPasswordComponent(fb, accountService, route, router, injector) {
|
|
719
|
-
this.fb = fb;
|
|
720
|
-
this.accountService = accountService;
|
|
721
|
-
this.route = route;
|
|
722
|
-
this.router = router;
|
|
723
|
-
this.injector = injector;
|
|
724
|
-
this.inProgress = false;
|
|
725
|
-
this.isPasswordReset = false;
|
|
726
|
-
this.mapErrorsFn = function (errors, groupErrors, control) {
|
|
727
|
-
if (PASSWORD_FIELDS.indexOf(String(control.name)) < 0)
|
|
728
|
-
return errors;
|
|
729
|
-
return errors.concat(groupErrors.filter(function (_a) {
|
|
730
|
-
var key = _a.key;
|
|
731
|
-
return key === 'passwordMismatch';
|
|
732
|
-
}));
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
ResetPasswordComponent.prototype.ngOnInit = function () {
|
|
736
|
-
var _this = this;
|
|
737
|
-
this.route.queryParams.subscribe(function (_a) {
|
|
738
|
-
var userId = _a.userId, resetToken = _a.resetToken;
|
|
739
|
-
if (!userId || !resetToken)
|
|
740
|
-
_this.router.navigateByUrl('/account/login');
|
|
741
|
-
_this.form = _this.fb.group({
|
|
742
|
-
userId: [userId, [i1.Validators.required]],
|
|
743
|
-
resetToken: [resetToken, [i1.Validators.required]],
|
|
744
|
-
password: ['', __spreadArray([i1.Validators.required], __read(i2$1.getPasswordValidators(_this.injector)))],
|
|
745
|
-
confirmPassword: ['', __spreadArray([i1.Validators.required], __read(i2$1.getPasswordValidators(_this.injector)))],
|
|
746
|
-
}, {
|
|
747
|
-
validators: [i6$1.comparePasswords(PASSWORD_FIELDS)],
|
|
748
|
-
});
|
|
749
|
-
});
|
|
750
|
-
};
|
|
751
|
-
ResetPasswordComponent.prototype.onSubmit = function () {
|
|
752
|
-
var _this = this;
|
|
753
|
-
if (this.form.invalid || this.inProgress)
|
|
754
|
-
return;
|
|
755
|
-
this.inProgress = true;
|
|
756
|
-
this.accountService
|
|
757
|
-
.resetPassword({
|
|
758
|
-
userId: this.form.get('userId').value,
|
|
759
|
-
resetToken: this.form.get('resetToken').value,
|
|
760
|
-
password: this.form.get('password').value,
|
|
761
|
-
})
|
|
762
|
-
.pipe(operators.finalize(function () { return (_this.inProgress = false); }))
|
|
763
|
-
.subscribe(function () {
|
|
764
|
-
_this.isPasswordReset = true;
|
|
765
|
-
});
|
|
766
|
-
};
|
|
767
|
-
return ResetPasswordComponent;
|
|
768
|
-
}());
|
|
769
|
-
ResetPasswordComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ResetPasswordComponent, deps: [{ token: i1__namespace.FormBuilder }, { token: i2__namespace.AccountService }, { token: i3__namespace$1.ActivatedRoute }, { token: i3__namespace$1.Router }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
770
|
-
ResetPasswordComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ResetPasswordComponent, selector: "abp-reset-password", ngImport: i0__namespace, template: "<h4>{{ 'AbpAccount::ResetPassword' | abpLocalization }}</h4>\r\n\r\n<form\r\n *ngIf=\"!isPasswordReset; else passwordResetTemplate\"\r\n [formGroup]=\"form\"\r\n [mapErrorsFn]=\"mapErrorsFn\"\r\n (ngSubmit)=\"onSubmit()\"\r\n validateOnSubmit\r\n>\r\n <p>{{ 'AbpAccount::ResetPassword_Information' | abpLocalization }}</p>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"input-password\" class=\"form-label\">{{\r\n 'AbpAccount::Password' | abpLocalization\r\n }}</label\r\n ><span> * </span>\r\n <input type=\"password\" id=\"input-password\" class=\"form-control\" formControlName=\"password\" />\r\n </div>\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"input-confirm-password\" class=\"form-label\">{{\r\n 'AbpAccount::ConfirmPassword' | abpLocalization\r\n }}</label\r\n ><span> * </span>\r\n <input\r\n type=\"password\"\r\n id=\"input-confirm-password\"\r\n class=\"form-control\"\r\n formControlName=\"confirmPassword\"\r\n />\r\n </div>\r\n <button class=\"me-2 btn btn-secondary\" type=\"button\" routerLink=\"/account/login\">\r\n {{ 'AbpAccount::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"me-2 btn btn-primary\"\r\n [loading]=\"inProgress\"\r\n (click)=\"onSubmit()\"\r\n >\r\n {{ 'AbpAccount::Submit' | abpLocalization }}\r\n </abp-button>\r\n</form>\r\n\r\n<ng-template #passwordResetTemplate>\r\n <p>\r\n {{ 'AbpAccount::YourPasswordIsSuccessfullyReset' | abpLocalization }}\r\n </p>\r\n\r\n <a routerLink=\"/account/login\">\r\n <button class=\"d-block mt-2 mb-3 btn btn-primary\">\r\n {{ 'AbpAccount::BackToLogin' | abpLocalization }}\r\n </button>\r\n </a>\r\n</ng-template>\r\n", components: [{ type: i2__namespace$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i1__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6__namespace$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i3__namespace$1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "abpLocalization": i3__namespace.LocalizationPipe } });
|
|
771
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ResetPasswordComponent, decorators: [{
|
|
772
|
-
type: i0.Component,
|
|
773
|
-
args: [{
|
|
774
|
-
selector: 'abp-reset-password',
|
|
775
|
-
templateUrl: './reset-password.component.html',
|
|
776
|
-
}]
|
|
777
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.FormBuilder }, { type: i2__namespace.AccountService }, { type: i3__namespace$1.ActivatedRoute }, { type: i3__namespace$1.Router }, { type: i0__namespace.Injector }]; } });
|
|
778
|
-
|
|
779
|
-
var AuthenticationFlowGuard = /** @class */ (function () {
|
|
780
|
-
function AuthenticationFlowGuard(authService) {
|
|
781
|
-
this.authService = authService;
|
|
782
|
-
}
|
|
783
|
-
AuthenticationFlowGuard.prototype.canActivate = function () {
|
|
784
|
-
if (this.authService.isInternalAuth)
|
|
785
|
-
return true;
|
|
786
|
-
this.authService.navigateToLogin();
|
|
787
|
-
return false;
|
|
788
|
-
};
|
|
789
|
-
return AuthenticationFlowGuard;
|
|
790
|
-
}());
|
|
791
|
-
AuthenticationFlowGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthenticationFlowGuard, deps: [{ token: i3__namespace.AuthService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
792
|
-
AuthenticationFlowGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthenticationFlowGuard });
|
|
793
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthenticationFlowGuard, decorators: [{
|
|
794
|
-
type: i0.Injectable
|
|
795
|
-
}], ctorParameters: function () { return [{ type: i3__namespace.AuthService }]; } });
|
|
796
|
-
|
|
797
|
-
var routes = [
|
|
798
|
-
{ path: '', pathMatch: 'full', redirectTo: 'login' },
|
|
799
|
-
{
|
|
800
|
-
path: '',
|
|
801
|
-
component: i3.RouterOutletComponent,
|
|
802
|
-
children: [
|
|
803
|
-
{
|
|
804
|
-
path: 'login',
|
|
805
|
-
component: i3.ReplaceableRouteContainerComponent,
|
|
806
|
-
canActivate: [AuthenticationFlowGuard],
|
|
807
|
-
data: {
|
|
808
|
-
replaceableComponent: {
|
|
809
|
-
key: "Account.LoginComponent" /* Login */,
|
|
810
|
-
defaultComponent: LoginComponent,
|
|
811
|
-
},
|
|
812
|
-
},
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
path: 'register',
|
|
816
|
-
component: i3.ReplaceableRouteContainerComponent,
|
|
817
|
-
canActivate: [AuthenticationFlowGuard],
|
|
818
|
-
data: {
|
|
819
|
-
replaceableComponent: {
|
|
820
|
-
key: "Account.RegisterComponent" /* Register */,
|
|
821
|
-
defaultComponent: RegisterComponent,
|
|
822
|
-
},
|
|
823
|
-
},
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
path: 'forgot-password',
|
|
827
|
-
component: i3.ReplaceableRouteContainerComponent,
|
|
828
|
-
canActivate: [AuthenticationFlowGuard],
|
|
829
|
-
data: {
|
|
830
|
-
replaceableComponent: {
|
|
831
|
-
key: "Account.ForgotPasswordComponent" /* ForgotPassword */,
|
|
832
|
-
defaultComponent: ForgotPasswordComponent,
|
|
833
|
-
},
|
|
834
|
-
},
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
path: 'reset-password',
|
|
838
|
-
component: i3.ReplaceableRouteContainerComponent,
|
|
839
|
-
canActivate: [],
|
|
840
|
-
data: {
|
|
841
|
-
tenantBoxVisible: false,
|
|
842
|
-
replaceableComponent: {
|
|
843
|
-
key: "Account.ResetPasswordComponent" /* ResetPassword */,
|
|
844
|
-
defaultComponent: ResetPasswordComponent,
|
|
845
|
-
},
|
|
846
|
-
},
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
path: 'manage',
|
|
850
|
-
component: i3.ReplaceableRouteContainerComponent,
|
|
851
|
-
canActivate: [i3.AuthGuard],
|
|
852
|
-
data: {
|
|
853
|
-
replaceableComponent: {
|
|
854
|
-
key: "Account.ManageProfileComponent" /* ManageProfile */,
|
|
855
|
-
defaultComponent: ManageProfileComponent,
|
|
856
|
-
},
|
|
857
|
-
},
|
|
858
|
-
},
|
|
859
|
-
],
|
|
860
|
-
},
|
|
861
|
-
];
|
|
862
|
-
var AccountRoutingModule = /** @class */ (function () {
|
|
863
|
-
function AccountRoutingModule() {
|
|
864
|
-
}
|
|
865
|
-
return AccountRoutingModule;
|
|
866
|
-
}());
|
|
867
|
-
AccountRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
868
|
-
AccountRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountRoutingModule, imports: [i3__namespace$1.RouterModule], exports: [i3$1.RouterModule] });
|
|
869
|
-
AccountRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountRoutingModule, imports: [[i3$1.RouterModule.forChild(routes)], i3$1.RouterModule] });
|
|
870
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountRoutingModule, decorators: [{
|
|
871
|
-
type: i0.NgModule,
|
|
872
|
-
args: [{
|
|
873
|
-
imports: [i3$1.RouterModule.forChild(routes)],
|
|
874
|
-
exports: [i3$1.RouterModule],
|
|
875
|
-
}]
|
|
876
|
-
}] });
|
|
877
|
-
|
|
878
|
-
function accountConfigOptionsFactory(options) {
|
|
879
|
-
return Object.assign({ redirectUrl: '/' }, options);
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
var declarations = [
|
|
883
|
-
LoginComponent,
|
|
884
|
-
RegisterComponent,
|
|
885
|
-
ChangePasswordComponent,
|
|
886
|
-
ManageProfileComponent,
|
|
887
|
-
PersonalSettingsComponent,
|
|
888
|
-
ForgotPasswordComponent,
|
|
889
|
-
ResetPasswordComponent,
|
|
890
|
-
];
|
|
891
|
-
var AccountModule = /** @class */ (function () {
|
|
892
|
-
function AccountModule() {
|
|
893
|
-
}
|
|
894
|
-
AccountModule.forChild = function (options) {
|
|
895
|
-
if (options === void 0) { options = {}; }
|
|
896
|
-
return {
|
|
897
|
-
ngModule: AccountModule,
|
|
898
|
-
providers: [
|
|
899
|
-
AuthenticationFlowGuard,
|
|
900
|
-
{ provide: ACCOUNT_CONFIG_OPTIONS, useValue: options },
|
|
901
|
-
{
|
|
902
|
-
provide: 'ACCOUNT_OPTIONS',
|
|
903
|
-
useFactory: accountConfigOptionsFactory,
|
|
904
|
-
deps: [ACCOUNT_CONFIG_OPTIONS],
|
|
905
|
-
},
|
|
906
|
-
],
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
AccountModule.forLazy = function (options) {
|
|
910
|
-
if (options === void 0) { options = {}; }
|
|
911
|
-
return new i3.LazyModuleFactory(AccountModule.forChild(options));
|
|
912
|
-
};
|
|
913
|
-
return AccountModule;
|
|
914
|
-
}());
|
|
915
|
-
AccountModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
916
|
-
AccountModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountModule, declarations: [LoginComponent,
|
|
917
|
-
RegisterComponent,
|
|
918
|
-
ChangePasswordComponent,
|
|
919
|
-
ManageProfileComponent,
|
|
920
|
-
PersonalSettingsComponent,
|
|
921
|
-
ForgotPasswordComponent,
|
|
922
|
-
ResetPasswordComponent], imports: [i3.CoreModule,
|
|
923
|
-
AccountRoutingModule,
|
|
924
|
-
i2$1.ThemeSharedModule,
|
|
925
|
-
ngBootstrap.NgbDropdownModule,
|
|
926
|
-
i6$1.NgxValidateCoreModule], exports: [LoginComponent,
|
|
927
|
-
RegisterComponent,
|
|
928
|
-
ChangePasswordComponent,
|
|
929
|
-
ManageProfileComponent,
|
|
930
|
-
PersonalSettingsComponent,
|
|
931
|
-
ForgotPasswordComponent,
|
|
932
|
-
ResetPasswordComponent] });
|
|
933
|
-
AccountModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountModule, imports: [[
|
|
934
|
-
i3.CoreModule,
|
|
935
|
-
AccountRoutingModule,
|
|
936
|
-
i2$1.ThemeSharedModule,
|
|
937
|
-
ngBootstrap.NgbDropdownModule,
|
|
938
|
-
i6$1.NgxValidateCoreModule,
|
|
939
|
-
]] });
|
|
940
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountModule, decorators: [{
|
|
941
|
-
type: i0.NgModule,
|
|
942
|
-
args: [{
|
|
943
|
-
declarations: __spreadArray([], __read(declarations)),
|
|
944
|
-
imports: [
|
|
945
|
-
i3.CoreModule,
|
|
946
|
-
AccountRoutingModule,
|
|
947
|
-
i2$1.ThemeSharedModule,
|
|
948
|
-
ngBootstrap.NgbDropdownModule,
|
|
949
|
-
i6$1.NgxValidateCoreModule,
|
|
950
|
-
],
|
|
951
|
-
exports: __spreadArray([], __read(declarations)),
|
|
952
|
-
}]
|
|
953
|
-
}] });
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Generated bundle index. Do not edit.
|
|
957
|
-
*/
|
|
958
|
-
|
|
959
|
-
exports.ACCOUNT_CONFIG_OPTIONS = ACCOUNT_CONFIG_OPTIONS;
|
|
960
|
-
exports.AccountModule = AccountModule;
|
|
961
|
-
exports.AuthenticationFlowGuard = AuthenticationFlowGuard;
|
|
962
|
-
exports.ChangePasswordComponent = ChangePasswordComponent;
|
|
963
|
-
exports.ForgotPasswordComponent = ForgotPasswordComponent;
|
|
964
|
-
exports.LoginComponent = LoginComponent;
|
|
965
|
-
exports.ManageProfileComponent = ManageProfileComponent;
|
|
966
|
-
exports.ManageProfileStateService = ManageProfileStateService;
|
|
967
|
-
exports.PersonalSettingsComponent = PersonalSettingsComponent;
|
|
968
|
-
exports.RegisterComponent = RegisterComponent;
|
|
969
|
-
exports.ResetPasswordComponent = ResetPasswordComponent;
|
|
970
|
-
|
|
971
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
972
|
-
|
|
973
|
-
}));
|
|
974
|
-
//# sourceMappingURL=abp-ng.account.umd.js.map
|