@rxap/authentication 12.3.0 → 13.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/_theming.scss +1 -1
  2. package/components/README.md +3 -0
  3. package/components/package.json +5 -5
  4. package/components/public_api.d.ts +0 -1
  5. package/esm2020/components/lib/authentication-container/authentication-container.component.mjs +38 -0
  6. package/esm2020/components/lib/authentication-container/authentication-container.component.module.mjs +30 -0
  7. package/esm2020/components/lib/authentication.module.mjs +29 -0
  8. package/esm2020/components/lib/fade-animation.mjs +14 -0
  9. package/esm2020/components/lib/loading/loading.component.mjs +38 -0
  10. package/esm2020/components/lib/loading/loading.component.module.mjs +26 -0
  11. package/esm2020/components/lib/login/login.component.mjs +84 -0
  12. package/esm2020/components/lib/login/login.component.module.mjs +70 -0
  13. package/esm2020/components/lib/login/login.form.mjs +115 -0
  14. package/esm2020/components/lib/reset-password/reset-password.component.mjs +39 -0
  15. package/esm2020/components/lib/reset-password/reset-password.component.module.mjs +66 -0
  16. package/esm2020/components/lib/reset-password/reset-password.form.mjs +115 -0
  17. package/esm2020/components/lib/routes.mjs +32 -0
  18. package/esm2020/components/public_api.mjs +13 -0
  19. package/esm2020/components/rxap-authentication-components.mjs +5 -0
  20. package/esm2020/index.mjs +8 -0
  21. package/esm2020/lib/authentication-routing.service.mjs +46 -0
  22. package/esm2020/lib/authentication.guard.mjs +110 -0
  23. package/esm2020/lib/authentication.service.mjs +72 -0
  24. package/esm2020/lib/register.service.mjs +18 -0
  25. package/esm2020/lib/sign-out.directive.mjs +48 -0
  26. package/esm2020/lib/tokens.mjs +3 -0
  27. package/esm2020/lib/user.service.mjs +16 -0
  28. package/esm2020/rxap-authentication.mjs +5 -0
  29. package/fesm2015/rxap-authentication-components.mjs +629 -0
  30. package/fesm2015/rxap-authentication-components.mjs.map +1 -0
  31. package/fesm2015/{rxap-authentication.js → rxap-authentication.mjs} +53 -59
  32. package/fesm2015/rxap-authentication.mjs.map +1 -0
  33. package/{fesm2015/rxap-authentication-components.js → fesm2020/rxap-authentication-components.mjs} +83 -112
  34. package/fesm2020/rxap-authentication-components.mjs.map +1 -0
  35. package/fesm2020/rxap-authentication.mjs +298 -0
  36. package/fesm2020/rxap-authentication.mjs.map +1 -0
  37. package/lib/authentication.service.d.ts +1 -10
  38. package/package.json +50 -28
  39. package/bundles/rxap-authentication-components.umd.js +0 -1029
  40. package/bundles/rxap-authentication-components.umd.js.map +0 -1
  41. package/bundles/rxap-authentication.umd.js +0 -705
  42. package/bundles/rxap-authentication.umd.js.map +0 -1
  43. package/esm2015/components/lib/authentication-container/authentication-container.component.js +0 -44
  44. package/esm2015/components/lib/authentication-container/authentication-container.component.js.map +0 -1
  45. package/esm2015/components/lib/authentication-container/authentication-container.component.module.js +0 -30
  46. package/esm2015/components/lib/authentication-container/authentication-container.component.module.js.map +0 -1
  47. package/esm2015/components/lib/authentication.module.js +0 -29
  48. package/esm2015/components/lib/authentication.module.js.map +0 -1
  49. package/esm2015/components/lib/fade-animation.js +0 -14
  50. package/esm2015/components/lib/fade-animation.js.map +0 -1
  51. package/esm2015/components/lib/loading/loading.component.js +0 -45
  52. package/esm2015/components/lib/loading/loading.component.js.map +0 -1
  53. package/esm2015/components/lib/loading/loading.component.module.js +0 -26
  54. package/esm2015/components/lib/loading/loading.component.module.js.map +0 -1
  55. package/esm2015/components/lib/login/login.component.js +0 -94
  56. package/esm2015/components/lib/login/login.component.js.map +0 -1
  57. package/esm2015/components/lib/login/login.component.module.js +0 -70
  58. package/esm2015/components/lib/login/login.component.module.js.map +0 -1
  59. package/esm2015/components/lib/login/login.form.js +0 -115
  60. package/esm2015/components/lib/login/login.form.js.map +0 -1
  61. package/esm2015/components/lib/reset-password/reset-password.component.js +0 -46
  62. package/esm2015/components/lib/reset-password/reset-password.component.js.map +0 -1
  63. package/esm2015/components/lib/reset-password/reset-password.component.module.js +0 -66
  64. package/esm2015/components/lib/reset-password/reset-password.component.module.js.map +0 -1
  65. package/esm2015/components/lib/reset-password/reset-password.form.js +0 -115
  66. package/esm2015/components/lib/reset-password/reset-password.form.js.map +0 -1
  67. package/esm2015/components/lib/routes.js +0 -32
  68. package/esm2015/components/lib/routes.js.map +0 -1
  69. package/esm2015/components/public_api.js +0 -14
  70. package/esm2015/components/public_api.js.map +0 -1
  71. package/esm2015/components/rxap-authentication-components.js +0 -5
  72. package/esm2015/components/rxap-authentication-components.js.map +0 -1
  73. package/esm2015/index.js +0 -8
  74. package/esm2015/index.js.map +0 -1
  75. package/esm2015/lib/authentication-routing.service.js +0 -46
  76. package/esm2015/lib/authentication-routing.service.js.map +0 -1
  77. package/esm2015/lib/authentication.guard.js +0 -113
  78. package/esm2015/lib/authentication.guard.js.map +0 -1
  79. package/esm2015/lib/authentication.service.js +0 -87
  80. package/esm2015/lib/authentication.service.js.map +0 -1
  81. package/esm2015/lib/register.service.js +0 -18
  82. package/esm2015/lib/register.service.js.map +0 -1
  83. package/esm2015/lib/sign-out.directive.js +0 -51
  84. package/esm2015/lib/sign-out.directive.js.map +0 -1
  85. package/esm2015/lib/tokens.js +0 -3
  86. package/esm2015/lib/tokens.js.map +0 -1
  87. package/esm2015/lib/user.service.js +0 -16
  88. package/esm2015/lib/user.service.js.map +0 -1
  89. package/esm2015/rxap-authentication.js +0 -5
  90. package/esm2015/rxap-authentication.js.map +0 -1
  91. package/fesm2015/rxap-authentication-components.js.map +0 -1
  92. package/fesm2015/rxap-authentication.js.map +0 -1
@@ -1,1029 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@rxap/forms'), require('@angular/forms'), require('@rxap/config'), require('@angular/router'), require('@rxap/authentication'), require('@angular/material/core'), require('@angular/animations'), require('@angular/material/snack-bar'), require('@rxap/utilities/rxjs'), require('@angular/material/icon'), require('@angular/material/form-field'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/flex-layout/flex'), require('@angular/material/input'), require('@angular/material/tooltip'), require('@angular/flex-layout'), require('@angular/material/card'), require('@angular/material/toolbar'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/authentication/components', ['exports', '@angular/core', '@angular/common', '@rxap/forms', '@angular/forms', '@rxap/config', '@angular/router', '@rxap/authentication', '@angular/material/core', '@angular/animations', '@angular/material/snack-bar', '@rxap/utilities/rxjs', '@angular/material/icon', '@angular/material/form-field', '@angular/material/button', '@angular/material/checkbox', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/flex-layout/flex', '@angular/material/input', '@angular/material/tooltip', '@angular/flex-layout', '@angular/material/card', '@angular/material/toolbar', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.authentication = global.rxap.authentication || {}, global.rxap.authentication.components = {}), global.ng.core, global.ng.common, global.i8, global.ng.forms, global.i1, global.ng.router, global.rxap.authentication, global.ng.material.core, global.ng.animations, global.ng.material.snackBar, global.rxjs, global.ng.material.icon, global.ng.material.formField, global.ng.material.button, global.ng.material.checkbox, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.flexLayout.flex, global.ng.material.input, global.ng.material.tooltip, global.ng.flexLayout, global.ng.material.card, global.ng.material.toolbar, global.rxjs.operators));
5
- })(this, (function (exports, i0, i11, i8, i7, i1, i1$1, i2, core, animations, i14, rxjs, i1$2, i2$1, i3, i4, i5, i6, i9, i10, i12, flexLayout, card, toolbar, operators) { '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 i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
27
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
28
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
29
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
31
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
- var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
33
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
34
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
35
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
36
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
37
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
38
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
- var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
40
- var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
41
- var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
42
-
43
- /*! *****************************************************************************
44
- Copyright (c) Microsoft Corporation.
45
-
46
- Permission to use, copy, modify, and/or distribute this software for any
47
- purpose with or without fee is hereby granted.
48
-
49
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
50
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
51
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
52
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
53
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
54
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55
- PERFORMANCE OF THIS SOFTWARE.
56
- ***************************************************************************** */
57
- /* global Reflect, Promise */
58
- var extendStatics = function (d, b) {
59
- extendStatics = Object.setPrototypeOf ||
60
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
61
- function (d, b) { for (var p in b)
62
- if (Object.prototype.hasOwnProperty.call(b, p))
63
- d[p] = b[p]; };
64
- return extendStatics(d, b);
65
- };
66
- function __extends(d, b) {
67
- if (typeof b !== "function" && b !== null)
68
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69
- extendStatics(d, b);
70
- function __() { this.constructor = d; }
71
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
72
- }
73
- var __assign = function () {
74
- __assign = Object.assign || function __assign(t) {
75
- for (var s, i = 1, n = arguments.length; i < n; i++) {
76
- s = arguments[i];
77
- for (var p in s)
78
- if (Object.prototype.hasOwnProperty.call(s, p))
79
- t[p] = s[p];
80
- }
81
- return t;
82
- };
83
- return __assign.apply(this, arguments);
84
- };
85
- function __rest(s, e) {
86
- var t = {};
87
- for (var p in s)
88
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
89
- t[p] = s[p];
90
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
91
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
92
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
93
- t[p[i]] = s[p[i]];
94
- }
95
- return t;
96
- }
97
- function __decorate(decorators, target, key, desc) {
98
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
99
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
100
- r = Reflect.decorate(decorators, target, key, desc);
101
- else
102
- for (var i = decorators.length - 1; i >= 0; i--)
103
- if (d = decorators[i])
104
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
105
- return c > 3 && r && Object.defineProperty(target, key, r), r;
106
- }
107
- function __param(paramIndex, decorator) {
108
- return function (target, key) { decorator(target, key, paramIndex); };
109
- }
110
- function __metadata(metadataKey, metadataValue) {
111
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
112
- return Reflect.metadata(metadataKey, metadataValue);
113
- }
114
- function __awaiter(thisArg, _arguments, P, generator) {
115
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
116
- return new (P || (P = Promise))(function (resolve, reject) {
117
- function fulfilled(value) { try {
118
- step(generator.next(value));
119
- }
120
- catch (e) {
121
- reject(e);
122
- } }
123
- function rejected(value) { try {
124
- step(generator["throw"](value));
125
- }
126
- catch (e) {
127
- reject(e);
128
- } }
129
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
130
- step((generator = generator.apply(thisArg, _arguments || [])).next());
131
- });
132
- }
133
- function __generator(thisArg, body) {
134
- var _ = { label: 0, sent: function () { if (t[0] & 1)
135
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
136
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
137
- function verb(n) { return function (v) { return step([n, v]); }; }
138
- function step(op) {
139
- if (f)
140
- throw new TypeError("Generator is already executing.");
141
- while (_)
142
- try {
143
- 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)
144
- return t;
145
- if (y = 0, t)
146
- op = [op[0] & 2, t.value];
147
- switch (op[0]) {
148
- case 0:
149
- case 1:
150
- t = op;
151
- break;
152
- case 4:
153
- _.label++;
154
- return { value: op[1], done: false };
155
- case 5:
156
- _.label++;
157
- y = op[1];
158
- op = [0];
159
- continue;
160
- case 7:
161
- op = _.ops.pop();
162
- _.trys.pop();
163
- continue;
164
- default:
165
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
166
- _ = 0;
167
- continue;
168
- }
169
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
170
- _.label = op[1];
171
- break;
172
- }
173
- if (op[0] === 6 && _.label < t[1]) {
174
- _.label = t[1];
175
- t = op;
176
- break;
177
- }
178
- if (t && _.label < t[2]) {
179
- _.label = t[2];
180
- _.ops.push(op);
181
- break;
182
- }
183
- if (t[2])
184
- _.ops.pop();
185
- _.trys.pop();
186
- continue;
187
- }
188
- op = body.call(thisArg, _);
189
- }
190
- catch (e) {
191
- op = [6, e];
192
- y = 0;
193
- }
194
- finally {
195
- f = t = 0;
196
- }
197
- if (op[0] & 5)
198
- throw op[1];
199
- return { value: op[0] ? op[1] : void 0, done: true };
200
- }
201
- }
202
- var __createBinding = Object.create ? (function (o, m, k, k2) {
203
- if (k2 === undefined)
204
- k2 = k;
205
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
206
- }) : (function (o, m, k, k2) {
207
- if (k2 === undefined)
208
- k2 = k;
209
- o[k2] = m[k];
210
- });
211
- function __exportStar(m, o) {
212
- for (var p in m)
213
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
214
- __createBinding(o, m, p);
215
- }
216
- function __values(o) {
217
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
218
- if (m)
219
- return m.call(o);
220
- if (o && typeof o.length === "number")
221
- return {
222
- next: function () {
223
- if (o && i >= o.length)
224
- o = void 0;
225
- return { value: o && o[i++], done: !o };
226
- }
227
- };
228
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
229
- }
230
- function __read(o, n) {
231
- var m = typeof Symbol === "function" && o[Symbol.iterator];
232
- if (!m)
233
- return o;
234
- var i = m.call(o), r, ar = [], e;
235
- try {
236
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
237
- ar.push(r.value);
238
- }
239
- catch (error) {
240
- e = { error: error };
241
- }
242
- finally {
243
- try {
244
- if (r && !r.done && (m = i["return"]))
245
- m.call(i);
246
- }
247
- finally {
248
- if (e)
249
- throw e.error;
250
- }
251
- }
252
- return ar;
253
- }
254
- /** @deprecated */
255
- function __spread() {
256
- for (var ar = [], i = 0; i < arguments.length; i++)
257
- ar = ar.concat(__read(arguments[i]));
258
- return ar;
259
- }
260
- /** @deprecated */
261
- function __spreadArrays() {
262
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
263
- s += arguments[i].length;
264
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
265
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
266
- r[k] = a[j];
267
- return r;
268
- }
269
- function __spreadArray(to, from) {
270
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
271
- to[j] = from[i];
272
- return to;
273
- }
274
- function __await(v) {
275
- return this instanceof __await ? (this.v = v, this) : new __await(v);
276
- }
277
- function __asyncGenerator(thisArg, _arguments, generator) {
278
- if (!Symbol.asyncIterator)
279
- throw new TypeError("Symbol.asyncIterator is not defined.");
280
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
281
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
282
- function verb(n) { if (g[n])
283
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
284
- function resume(n, v) { try {
285
- step(g[n](v));
286
- }
287
- catch (e) {
288
- settle(q[0][3], e);
289
- } }
290
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
291
- function fulfill(value) { resume("next", value); }
292
- function reject(value) { resume("throw", value); }
293
- function settle(f, v) { if (f(v), q.shift(), q.length)
294
- resume(q[0][0], q[0][1]); }
295
- }
296
- function __asyncDelegator(o) {
297
- var i, p;
298
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
299
- 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; }
300
- }
301
- function __asyncValues(o) {
302
- if (!Symbol.asyncIterator)
303
- throw new TypeError("Symbol.asyncIterator is not defined.");
304
- var m = o[Symbol.asyncIterator], i;
305
- 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);
306
- 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); }); }; }
307
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
308
- }
309
- function __makeTemplateObject(cooked, raw) {
310
- if (Object.defineProperty) {
311
- Object.defineProperty(cooked, "raw", { value: raw });
312
- }
313
- else {
314
- cooked.raw = raw;
315
- }
316
- return cooked;
317
- }
318
- ;
319
- var __setModuleDefault = Object.create ? (function (o, v) {
320
- Object.defineProperty(o, "default", { enumerable: true, value: v });
321
- }) : function (o, v) {
322
- o["default"] = v;
323
- };
324
- function __importStar(mod) {
325
- if (mod && mod.__esModule)
326
- return mod;
327
- var result = {};
328
- if (mod != null)
329
- for (var k in mod)
330
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
331
- __createBinding(result, mod, k);
332
- __setModuleDefault(result, mod);
333
- return result;
334
- }
335
- function __importDefault(mod) {
336
- return (mod && mod.__esModule) ? mod : { default: mod };
337
- }
338
- function __classPrivateFieldGet(receiver, state, kind, f) {
339
- if (kind === "a" && !f)
340
- throw new TypeError("Private accessor was defined without a getter");
341
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
342
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
343
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
344
- }
345
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
346
- if (kind === "m")
347
- throw new TypeError("Private method is not writable");
348
- if (kind === "a" && !f)
349
- throw new TypeError("Private accessor was defined without a setter");
350
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
351
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
352
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
353
- }
354
-
355
- exports.LoginForm = /** @class */ (function () {
356
- function LoginForm(config) {
357
- this.config = config;
358
- this.loading = true;
359
- this.loginFailed = false;
360
- }
361
- LoginForm.prototype.rxapOnInit = function () {
362
- var email = this.config.get('authentication.default.email');
363
- if (email) {
364
- this.email.setValue(email);
365
- }
366
- var password = this.config.get('authentication.default.password');
367
- if (password) {
368
- this.password.setValue(password);
369
- }
370
- };
371
- return LoginForm;
372
- }());
373
- exports.LoginForm.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: exports.LoginForm, deps: [{ token: i1__namespace.ConfigService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
374
- exports.LoginForm.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: exports.LoginForm });
375
- __decorate([
376
- i8.UseFormControl({
377
- validators: [i7.Validators.required, i7.Validators.email],
378
- }),
379
- __metadata("design:type", i8.RxapFormControl)
380
- ], exports.LoginForm.prototype, "email", void 0);
381
- __decorate([
382
- i8.UseFormControl({
383
- validators: [i7.Validators.required],
384
- }),
385
- __metadata("design:type", i8.RxapFormControl)
386
- ], exports.LoginForm.prototype, "password", void 0);
387
- __decorate([
388
- i8.UseFormControl({
389
- state: true,
390
- }),
391
- __metadata("design:type", i8.RxapFormControl)
392
- ], exports.LoginForm.prototype, "remember", void 0);
393
- exports.LoginForm = __decorate([
394
- i8.RxapForm({
395
- id: 'rxap-login',
396
- providers: [
397
- {
398
- provide: i1.ConfigService,
399
- useExisting: i1.ConfigService,
400
- },
401
- ],
402
- }),
403
- __metadata("design:paramtypes", [i1.ConfigService])
404
- ], exports.LoginForm);
405
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: exports.LoginForm, decorators: [{
406
- type: i0.Injectable
407
- }], ctorParameters: function () { return [{ type: i1__namespace.ConfigService }]; }, propDecorators: { email: [], password: [], remember: [] } });
408
- var LoginFormSubmitMethod = /** @class */ (function () {
409
- function LoginFormSubmitMethod(authentication) {
410
- this.authentication = authentication;
411
- }
412
- LoginFormSubmitMethod.prototype.call = function (value) {
413
- return this.authentication.signInWithEmailAndPassword(value.email, value.password, value.remember);
414
- };
415
- return LoginFormSubmitMethod;
416
- }());
417
- LoginFormSubmitMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginFormSubmitMethod, deps: [{ token: i2__namespace.RxapAuthenticationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
418
- LoginFormSubmitMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginFormSubmitMethod });
419
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginFormSubmitMethod, decorators: [{
420
- type: i0.Injectable
421
- }], ctorParameters: function () { return [{ type: i2__namespace.RxapAuthenticationService }]; } });
422
- var LoginFormSubmitSuccessful = /** @class */ (function () {
423
- function LoginFormSubmitSuccessful(router) {
424
- this.router = router;
425
- }
426
- LoginFormSubmitSuccessful.prototype.call = function () {
427
- return this.router.navigate(['/']);
428
- };
429
- return LoginFormSubmitSuccessful;
430
- }());
431
- LoginFormSubmitSuccessful.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginFormSubmitSuccessful, deps: [{ token: i1$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
432
- LoginFormSubmitSuccessful.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginFormSubmitSuccessful });
433
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginFormSubmitSuccessful, decorators: [{
434
- type: i0.Injectable
435
- }], ctorParameters: function () {
436
- return [{ type: i1__namespace$1.Router, decorators: [{
437
- type: i0.Inject,
438
- args: [i1$1.Router]
439
- }] }];
440
- } });
441
- var LoginFormProviders = [
442
- exports.LoginForm,
443
- {
444
- provide: i8.RXAP_FORM_DEFINITION_BUILDER,
445
- useFactory: function (injector) { return new i8.RxapFormBuilder(exports.LoginForm, injector); },
446
- deps: [i0.INJECTOR],
447
- },
448
- {
449
- provide: i8.RXAP_FORM_DEFINITION,
450
- useFactory: function (builder) { return builder.build(); },
451
- deps: [i8.RXAP_FORM_DEFINITION_BUILDER],
452
- },
453
- {
454
- provide: i8.RXAP_FORM_SUBMIT_METHOD,
455
- useClass: LoginFormSubmitMethod,
456
- },
457
- {
458
- provide: i8.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
459
- useClass: LoginFormSubmitSuccessful,
460
- },
461
- ];
462
-
463
- // the fade-in/fade-out animation.
464
- var fadeAnimation = animations.trigger('fadeAnimation', [
465
- // the "in" style determines the "resting" state of the element when it is visible.
466
- animations.state('in', animations.style({ opacity: 1 })),
467
- // fade in when created. this could also be written as transition('void => *')
468
- animations.transition(':enter', [
469
- animations.style({ opacity: 0 }),
470
- animations.animate(300)
471
- ]),
472
- // fade out when destroyed. this could also be written as transition('void => *')
473
- animations.transition(':leave', animations.animate(300, animations.style({ opacity: 0 })))
474
- ]);
475
-
476
- var LoginComponent = /** @class */ (function () {
477
- function LoginComponent(authentication, snackBar) {
478
- this.authentication = authentication;
479
- this.snackBar = snackBar;
480
- this.requestingPasswordReset$ = new rxjs.ToggleSubject();
481
- }
482
- LoginComponent.prototype.requestPasswordReset = function (email) {
483
- return __awaiter(this, void 0, void 0, function () {
484
- var result, e_1;
485
- return __generator(this, function (_a) {
486
- switch (_a.label) {
487
- case 0:
488
- this.requestingPasswordReset$.enable();
489
- _a.label = 1;
490
- case 1:
491
- _a.trys.push([1, 3, 4, 5]);
492
- return [4 /*yield*/, this.authentication.requestPasswordReset(email)];
493
- case 2:
494
- result = _a.sent();
495
- if (!result) {
496
- this.snackBar.open('The password reset request result is falsy', undefined, {
497
- duration: 5000,
498
- panelClass: 'error'
499
- });
500
- }
501
- else {
502
- this.snackBar.open('The password reset request was successful', undefined, {
503
- duration: 3000
504
- });
505
- }
506
- return [3 /*break*/, 5];
507
- case 3:
508
- e_1 = _a.sent();
509
- this.snackBar.open(e_1.message, undefined, {
510
- duration: 3000,
511
- panelClass: 'error'
512
- });
513
- return [3 /*break*/, 5];
514
- case 4:
515
- this.requestingPasswordReset$.disable();
516
- return [7 /*endfinally*/];
517
- case 5: return [2 /*return*/];
518
- }
519
- });
520
- });
521
- };
522
- return LoginComponent;
523
- }());
524
- LoginComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginComponent, deps: [{ token: i2.RxapAuthenticationService }, { token: i14.MatSnackBar }], target: i0__namespace.ɵɵFactoryTarget.Component });
525
- LoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoginComponent, selector: "rxap-login", providers: [
526
- LoginFormProviders,
527
- {
528
- provide: core.ErrorStateMatcher,
529
- useClass: core.ShowOnDirtyErrorStateMatcher
530
- }
531
- ], ngImport: i0__namespace, template: "<form rxapForm class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" #form=\"rxapForm\" fxLayoutGap=\"32px\" [@fadeAnimation]=\"'in'\"\n novalidate>\n\n <div class=\"header\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"nogrow\">\n\n <mat-icon fxFlex=\"nogrow\" color=\"primary\" class=\"avatar-icon\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon matPrefix inline>email</mat-icon>\n <mat-label i18n=\"user login email input label|The user email input label\">Email</mat-label>\n <input matInput\n i18n-placeholder\n placeholder=\"Enter your email address\"\n type=\"email\"\n fxFlex=\"nogrow\"\n formControlName=\"email\">\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'required'\" i18n=\"user login email input error required\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'email'\" i18n=\"user login email input error format\">\n Please enter a valid email address\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">Password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your password\"\n fxFlex=\"nogrow\"\n #passwordInput\n formControlName=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'password'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'test'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'text'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls\" fxLayout=\"row wrap\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"16px\">\n\n <mat-checkbox class=\"remember-input\" fxFlex=\"nogrow\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div fxFlex=\"nogrow\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\"\n [matTooltipDisabled]=\"form.control.controls.email.valid\">\n <button color=\"accent\"\n type=\"button\"\n mat-button\n i18n\n (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls.email.hasError('email')\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"space-between center\">\n <mat-progress-spinner *ngIf=\"requestingPasswordReset$ | async\" mode=\"indeterminate\" [diameter]=\"15\"></mat-progress-spinner>\n <span fxFlex=\"nogrow\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button mat-raised-button color=\"primary\" type=\"submit\" rxapFormControlMarkDirty>Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting mode=\"indeterminate\" class=\"loading-bar\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 96px - 16px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}"], components: [{ type: i1__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i5__namespace.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "mode", "diameter", "strokeWidth", "value"], exportAs: ["matProgressSpinner"] }, { type: i6__namespace.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], directives: [{ type: i7__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "rxapForm", "submitMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { type: i9__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i9__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i9__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i9__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i2__namespace$1.MatPrefix, selector: "[matPrefix]" }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i10__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i7__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: i7__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i8__namespace.FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: ["rxapFormControlErrorFrom", "rxapFormControlErrorIf"] }, { type: i2__namespace$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.MatSuffix, selector: "[matSuffix]" }, { type: i12__namespace.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8__namespace.FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { type: i8__namespace.FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { type: i8__namespace.FormSubmittingDirective, selector: "[rxapFormSubmitting]" }], pipes: { "async": i11__namespace.AsyncPipe }, animations: [
532
- fadeAnimation
533
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
534
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginComponent, decorators: [{
535
- type: i0.Component,
536
- args: [{
537
- selector: 'rxap-login',
538
- templateUrl: './login.component.html',
539
- styleUrls: ['./login.component.scss'],
540
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
541
- providers: [
542
- LoginFormProviders,
543
- {
544
- provide: core.ErrorStateMatcher,
545
- useClass: core.ShowOnDirtyErrorStateMatcher
546
- }
547
- ],
548
- animations: [
549
- fadeAnimation
550
- ]
551
- }]
552
- }], ctorParameters: function () {
553
- return [{ type: i2__namespace.RxapAuthenticationService, decorators: [{
554
- type: i0.Inject,
555
- args: [i2.RxapAuthenticationService]
556
- }] }, { type: i14__namespace.MatSnackBar, decorators: [{
557
- type: i0.Inject,
558
- args: [i14.MatSnackBar]
559
- }] }];
560
- } });
561
-
562
- var LoginComponentModule = /** @class */ (function () {
563
- function LoginComponentModule() {
564
- }
565
- return LoginComponentModule;
566
- }());
567
- LoginComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
568
- LoginComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginComponentModule, declarations: [LoginComponent], imports: [i11.CommonModule,
569
- flexLayout.FlexLayoutModule,
570
- i3.MatButtonModule,
571
- card.MatCardModule,
572
- i14.MatSnackBarModule,
573
- i5.MatProgressSpinnerModule,
574
- i10.MatInputModule,
575
- i7.ReactiveFormsModule,
576
- i8.RxapFormsModule,
577
- i4.MatCheckboxModule,
578
- i1$2.MatIconModule,
579
- i12.MatTooltipModule,
580
- i6.MatProgressBarModule], exports: [LoginComponent] });
581
- LoginComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginComponentModule, imports: [[
582
- i11.CommonModule,
583
- flexLayout.FlexLayoutModule,
584
- i3.MatButtonModule,
585
- card.MatCardModule,
586
- i14.MatSnackBarModule,
587
- i5.MatProgressSpinnerModule,
588
- i10.MatInputModule,
589
- i7.ReactiveFormsModule,
590
- i8.RxapFormsModule,
591
- i4.MatCheckboxModule,
592
- i1$2.MatIconModule,
593
- i12.MatTooltipModule,
594
- i6.MatProgressBarModule
595
- ]] });
596
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoginComponentModule, decorators: [{
597
- type: i0.NgModule,
598
- args: [{
599
- declarations: [LoginComponent],
600
- imports: [
601
- i11.CommonModule,
602
- flexLayout.FlexLayoutModule,
603
- i3.MatButtonModule,
604
- card.MatCardModule,
605
- i14.MatSnackBarModule,
606
- i5.MatProgressSpinnerModule,
607
- i10.MatInputModule,
608
- i7.ReactiveFormsModule,
609
- i8.RxapFormsModule,
610
- i4.MatCheckboxModule,
611
- i1$2.MatIconModule,
612
- i12.MatTooltipModule,
613
- i6.MatProgressBarModule
614
- ],
615
- exports: [LoginComponent]
616
- }]
617
- }] });
618
-
619
- var AuthenticationContainerComponent = /** @class */ (function () {
620
- function AuthenticationContainerComponent() {
621
- }
622
- AuthenticationContainerComponent.prototype.prepareRoute = function (outlet) {
623
- return outlet.isActivated ? outlet.activatedRoute : 'true';
624
- };
625
- return AuthenticationContainerComponent;
626
- }());
627
- AuthenticationContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthenticationContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
628
- AuthenticationContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AuthenticationContainerComponent, selector: "rxap-authentication-container", host: { classAttribute: "rxap-authentication-container" }, ngImport: i0__namespace, template: "<div class=\"container\" [@routeAnimations]=\"prepareRoute(outlet)\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;overflow-x:hidden}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}"], directives: [{ type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }], animations: [
629
- animations.trigger('routeAnimations', [
630
- animations.transition(':enter', [
631
- animations.style({ opacity: 0 }),
632
- animations.animate('512ms', animations.style({ opacity: 1 }))
633
- ]),
634
- animations.transition(':leave', [
635
- animations.style({ opacity: 1 }),
636
- animations.animate('512ms', animations.style({ opacity: 0 }))
637
- ])
638
- ])
639
- ] });
640
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthenticationContainerComponent, decorators: [{
641
- type: i0.Component,
642
- args: [{
643
- selector: 'rxap-authentication-container',
644
- templateUrl: './authentication-container.component.html',
645
- styleUrls: ['./authentication-container.component.scss'],
646
- host: { class: 'rxap-authentication-container' },
647
- animations: [
648
- animations.trigger('routeAnimations', [
649
- animations.transition(':enter', [
650
- animations.style({ opacity: 0 }),
651
- animations.animate('512ms', animations.style({ opacity: 1 }))
652
- ]),
653
- animations.transition(':leave', [
654
- animations.style({ opacity: 1 }),
655
- animations.animate('512ms', animations.style({ opacity: 0 }))
656
- ])
657
- ])
658
- ]
659
- }]
660
- }] });
661
-
662
- var AuthenticationContainerComponentModule = /** @class */ (function () {
663
- function AuthenticationContainerComponentModule() {
664
- }
665
- return AuthenticationContainerComponentModule;
666
- }());
667
- AuthenticationContainerComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthenticationContainerComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
668
- AuthenticationContainerComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthenticationContainerComponentModule, declarations: [AuthenticationContainerComponent], imports: [flexLayout.FlexLayoutModule,
669
- toolbar.MatToolbarModule,
670
- i1$1.RouterModule], exports: [AuthenticationContainerComponent] });
671
- AuthenticationContainerComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthenticationContainerComponentModule, imports: [[
672
- flexLayout.FlexLayoutModule,
673
- toolbar.MatToolbarModule,
674
- i1$1.RouterModule
675
- ]] });
676
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthenticationContainerComponentModule, decorators: [{
677
- type: i0.NgModule,
678
- args: [{
679
- declarations: [AuthenticationContainerComponent],
680
- exports: [AuthenticationContainerComponent],
681
- imports: [
682
- flexLayout.FlexLayoutModule,
683
- toolbar.MatToolbarModule,
684
- i1$1.RouterModule
685
- ]
686
- }]
687
- }] });
688
-
689
- var RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';
690
- var ResetPasswordFormSubmitMethod = /** @class */ (function () {
691
- function ResetPasswordFormSubmitMethod(route, authentication, snackBar, router) {
692
- this.route = route;
693
- this.authentication = authentication;
694
- this.snackBar = snackBar;
695
- this.router = router;
696
- }
697
- ResetPasswordFormSubmitMethod.prototype.call = function (value) {
698
- var _this = this;
699
- return this.route.params
700
- .pipe(operators.take(1), operators.map(function (params) { return params.token; }), operators.switchMap(function (token) { return _this.authentication.sendPasswordReset(value.password, token); }), operators.tap(function (result) {
701
- if (result) {
702
- _this.snackBar.open('Password reset was successful.', undefined, {
703
- duration: 3500,
704
- });
705
- return _this.router.navigate(['/']);
706
- }
707
- return Promise.resolve();
708
- }))
709
- .toPromise();
710
- };
711
- return ResetPasswordFormSubmitMethod;
712
- }());
713
- ResetPasswordFormSubmitMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordFormSubmitMethod, deps: [{ token: i1$1.ActivatedRoute }, { token: i2.RxapAuthenticationService }, { token: i14.MatSnackBar }, { token: i1$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
714
- ResetPasswordFormSubmitMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordFormSubmitMethod });
715
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordFormSubmitMethod, decorators: [{
716
- type: i0.Injectable
717
- }], ctorParameters: function () {
718
- return [{ type: i1__namespace$1.ActivatedRoute, decorators: [{
719
- type: i0.Inject,
720
- args: [i1$1.ActivatedRoute]
721
- }] }, { type: i2__namespace.RxapAuthenticationService, decorators: [{
722
- type: i0.Inject,
723
- args: [i2.RxapAuthenticationService]
724
- }] }, { type: i14__namespace.MatSnackBar, decorators: [{
725
- type: i0.Inject,
726
- args: [i14.MatSnackBar]
727
- }] }, { type: i1__namespace$1.Router, decorators: [{
728
- type: i0.Inject,
729
- args: [i1$1.Router]
730
- }] }];
731
- } });
732
- var ResetPasswordForm = /** @class */ (function () {
733
- function ResetPasswordForm() {
734
- }
735
- ResetPasswordForm.prototype.passwordEqual = function () {
736
- if (this.password.value !== this.passwordRepeat.value) {
737
- return { equal: 'passwords are not equal' };
738
- }
739
- return null;
740
- };
741
- ResetPasswordForm.prototype.resetRepeat = function () {
742
- this.passwordRepeat.reset();
743
- };
744
- return ResetPasswordForm;
745
- }());
746
- ResetPasswordForm.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordForm, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
747
- ResetPasswordForm.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordForm });
748
- __decorate([
749
- i8.UseFormControl({
750
- validators: [i7.Validators.required],
751
- }),
752
- __metadata("design:type", i8.RxapFormControl)
753
- ], ResetPasswordForm.prototype, "password", void 0);
754
- __decorate([
755
- i8.UseFormControl({
756
- validators: [i7.Validators.required],
757
- }),
758
- __metadata("design:type", i8.RxapFormControl)
759
- ], ResetPasswordForm.prototype, "passwordRepeat", void 0);
760
- __decorate([
761
- i8.ControlValidator('passwordRepeat'),
762
- __metadata("design:type", Function),
763
- __metadata("design:paramtypes", []),
764
- __metadata("design:returntype", void 0)
765
- ], ResetPasswordForm.prototype, "passwordEqual", null);
766
- __decorate([
767
- i8.ControlSetValue('password'),
768
- __metadata("design:type", Function),
769
- __metadata("design:paramtypes", []),
770
- __metadata("design:returntype", void 0)
771
- ], ResetPasswordForm.prototype, "resetRepeat", null);
772
- ResetPasswordForm = __decorate([
773
- i8.RxapForm({
774
- id: RXAP_RESET_PASSWORD_FORM,
775
- })
776
- ], ResetPasswordForm);
777
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordForm, decorators: [{
778
- type: i0.Injectable
779
- }], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
780
- var ResetPasswordFormProviders = [
781
- ResetPasswordForm,
782
- {
783
- provide: i8.RXAP_FORM_DEFINITION_BUILDER,
784
- useFactory: function (injector) { return new i8.RxapFormBuilder(ResetPasswordForm, injector); },
785
- deps: [i0.INJECTOR],
786
- },
787
- {
788
- provide: i8.RXAP_FORM_DEFINITION,
789
- useFactory: function (builder) { return builder.build(); },
790
- deps: [i8.RXAP_FORM_DEFINITION_BUILDER],
791
- },
792
- {
793
- provide: i8.RXAP_FORM_SUBMIT_METHOD,
794
- useClass: ResetPasswordFormSubmitMethod,
795
- },
796
- ];
797
-
798
- var ResetPasswordComponent = /** @class */ (function () {
799
- function ResetPasswordComponent() {
800
- }
801
- return ResetPasswordComponent;
802
- }());
803
- ResetPasswordComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
804
- ResetPasswordComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ResetPasswordComponent, selector: "rxap-reset-password", providers: [
805
- ResetPasswordFormProviders,
806
- {
807
- provide: core.ErrorStateMatcher,
808
- useClass: core.ShowOnDirtyErrorStateMatcher
809
- }
810
- ], ngImport: i0__namespace, template: "<form rxapForm class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" #form=\"rxapForm\" fxLayoutGap=\"32px\" novalidate\n [@fadeAnimation]=\"'in'\">\n\n <div class=\"header\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"nogrow\">\n\n <mat-icon fxFlex=\"nogrow\" color=\"primary\" class=\"avatar-icon\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">New password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your new password\"\n fxFlex=\"nogrow\"\n #passwordInput\n formControlName=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'password'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'test'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'text'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">Repeat password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your new password again\"\n fxFlex=\"nogrow\"\n #passwordRepeatInput\n formControlName=\"passwordRepeat\">\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'equal'\" i18n=\"user login password input error submit\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n <button tabIndex=\"-1\"\n matSuffix\n *ngIf=\"passwordRepeatInput.type === 'password'\"\n mat-icon-button\n type=\"button\"\n (click)=\"passwordRepeatInput.type = 'text'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\"\n matSuffix\n *ngIf=\"passwordRepeatInput.type === 'text'\"\n mat-icon-button\n type=\"button\"\n (click)=\"passwordRepeatInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button mat-raised-button color=\"primary\" type=\"submit\" rxapFormControlMarkDirty>Reset password</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting mode=\"indeterminate\" class=\"loading-bar\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 96px - 16px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}"], components: [{ type: i1__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6__namespace.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], directives: [{ type: i7__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "rxapForm", "submitMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { type: i9__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i9__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i9__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i9__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i2__namespace$1.MatPrefix, selector: "[matPrefix]" }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i10__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i7__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: i7__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i8__namespace.FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: ["rxapFormControlErrorFrom", "rxapFormControlErrorIf"] }, { type: i2__namespace$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.MatSuffix, selector: "[matSuffix]" }, { type: i8__namespace.FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { type: i8__namespace.FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { type: i8__namespace.FormSubmittingDirective, selector: "[rxapFormSubmitting]" }], animations: [
811
- fadeAnimation
812
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
813
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordComponent, decorators: [{
814
- type: i0.Component,
815
- args: [{
816
- selector: 'rxap-reset-password',
817
- templateUrl: './reset-password.component.html',
818
- styleUrls: ['./reset-password.component.scss'],
819
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
820
- providers: [
821
- ResetPasswordFormProviders,
822
- {
823
- provide: core.ErrorStateMatcher,
824
- useClass: core.ShowOnDirtyErrorStateMatcher
825
- }
826
- ],
827
- animations: [
828
- fadeAnimation
829
- ]
830
- }]
831
- }] });
832
-
833
- var ResetPasswordComponentModule = /** @class */ (function () {
834
- function ResetPasswordComponentModule() {
835
- }
836
- return ResetPasswordComponentModule;
837
- }());
838
- ResetPasswordComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
839
- ResetPasswordComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordComponentModule, declarations: [ResetPasswordComponent], imports: [card.MatCardModule,
840
- flexLayout.FlexLayoutModule,
841
- i3.MatButtonModule,
842
- i11.CommonModule,
843
- i5.MatProgressSpinnerModule,
844
- i10.MatInputModule,
845
- i8.RxapFormsModule,
846
- i1$2.MatIconModule,
847
- i7.ReactiveFormsModule,
848
- i6.MatProgressBarModule,
849
- i14.MatSnackBarModule], exports: [ResetPasswordComponent] });
850
- ResetPasswordComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordComponentModule, imports: [[
851
- card.MatCardModule,
852
- flexLayout.FlexLayoutModule,
853
- i3.MatButtonModule,
854
- i11.CommonModule,
855
- i5.MatProgressSpinnerModule,
856
- i10.MatInputModule,
857
- i8.RxapFormsModule,
858
- i1$2.MatIconModule,
859
- i7.ReactiveFormsModule,
860
- i6.MatProgressBarModule,
861
- i14.MatSnackBarModule,
862
- ]] });
863
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResetPasswordComponentModule, decorators: [{
864
- type: i0.NgModule,
865
- args: [{
866
- declarations: [
867
- ResetPasswordComponent
868
- ],
869
- imports: [
870
- card.MatCardModule,
871
- flexLayout.FlexLayoutModule,
872
- i3.MatButtonModule,
873
- i11.CommonModule,
874
- i5.MatProgressSpinnerModule,
875
- i10.MatInputModule,
876
- i8.RxapFormsModule,
877
- i1$2.MatIconModule,
878
- i7.ReactiveFormsModule,
879
- i6.MatProgressBarModule,
880
- i14.MatSnackBarModule,
881
- ],
882
- exports: [
883
- ResetPasswordComponent
884
- ]
885
- }]
886
- }] });
887
-
888
- var LoadingComponent = /** @class */ (function () {
889
- function LoadingComponent(authentication, router) {
890
- this.authentication = authentication;
891
- this.router = router;
892
- }
893
- LoadingComponent.prototype.ngOnInit = function () {
894
- var _this = this;
895
- // TODO : remove the concept of isAuthenticated$
896
- if (this.authentication.isAuthenticated$) {
897
- this.subscription = this.authentication.isAuthenticated$
898
- .pipe(operators.filter(function (isAuthenticated) { return isAuthenticated !== null; }), operators.tap(function () { return _this.router.navigate(['/', 'authentication', 'login']); }))
899
- .subscribe();
900
- }
901
- };
902
- LoadingComponent.prototype.ngOnDestroy = function () {
903
- var _a;
904
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
905
- };
906
- return LoadingComponent;
907
- }());
908
- LoadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponent, deps: [{ token: i2.RxapAuthenticationService }, { token: i1$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Component });
909
- LoadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoadingComponent, selector: "rxap-auth-loading", host: { classAttribute: "rxap-auth-loading" }, ngImport: i0__namespace, template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}"], components: [{ type: i6__namespace.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
910
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponent, decorators: [{
911
- type: i0.Component,
912
- args: [{
913
- selector: 'rxap-auth-loading',
914
- templateUrl: './loading.component.html',
915
- styleUrls: ['./loading.component.scss'],
916
- host: { class: 'rxap-auth-loading' },
917
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
918
- }]
919
- }], ctorParameters: function () {
920
- return [{ type: i2__namespace.RxapAuthenticationService, decorators: [{
921
- type: i0.Inject,
922
- args: [i2.RxapAuthenticationService]
923
- }] }, { type: i1__namespace$1.Router, decorators: [{
924
- type: i0.Inject,
925
- args: [i1$1.Router]
926
- }] }];
927
- } });
928
-
929
- var LoadingComponentModule = /** @class */ (function () {
930
- function LoadingComponentModule() {
931
- }
932
- return LoadingComponentModule;
933
- }());
934
- LoadingComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
935
- LoadingComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, declarations: [LoadingComponent], imports: [i6.MatProgressBarModule], exports: [LoadingComponent] });
936
- LoadingComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, imports: [[
937
- i6.MatProgressBarModule
938
- ]] });
939
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, decorators: [{
940
- type: i0.NgModule,
941
- args: [{
942
- declarations: [
943
- LoadingComponent
944
- ],
945
- imports: [
946
- i6.MatProgressBarModule
947
- ],
948
- exports: [
949
- LoadingComponent
950
- ]
951
- }]
952
- }] });
953
-
954
- var RxapAuthenticationModule = /** @class */ (function () {
955
- function RxapAuthenticationModule() {
956
- }
957
- return RxapAuthenticationModule;
958
- }());
959
- RxapAuthenticationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RxapAuthenticationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
960
- RxapAuthenticationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RxapAuthenticationModule, exports: [LoginComponentModule,
961
- AuthenticationContainerComponentModule,
962
- ResetPasswordComponentModule,
963
- LoadingComponentModule] });
964
- RxapAuthenticationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RxapAuthenticationModule, imports: [LoginComponentModule,
965
- AuthenticationContainerComponentModule,
966
- ResetPasswordComponentModule,
967
- LoadingComponentModule] });
968
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RxapAuthenticationModule, decorators: [{
969
- type: i0.NgModule,
970
- args: [{
971
- exports: [
972
- LoginComponentModule,
973
- AuthenticationContainerComponentModule,
974
- ResetPasswordComponentModule,
975
- LoadingComponentModule
976
- ]
977
- }]
978
- }] });
979
-
980
- var AuthenticationRoutes = [
981
- {
982
- path: 'authentication',
983
- component: AuthenticationContainerComponent,
984
- children: [
985
- {
986
- canActivate: [i2.RxapAuthenticationGuard],
987
- path: 'login',
988
- component: LoginComponent
989
- },
990
- {
991
- canActivate: [i2.RxapAuthenticationGuard],
992
- path: 'reset-password/:token',
993
- component: ResetPasswordComponent
994
- },
995
- {
996
- path: 'loading',
997
- component: LoadingComponent
998
- },
999
- {
1000
- path: '**',
1001
- redirectTo: 'login'
1002
- }
1003
- ]
1004
- }
1005
- ];
1006
-
1007
- /**
1008
- * Generated bundle index. Do not edit.
1009
- */
1010
-
1011
- exports.AuthenticationContainerComponent = AuthenticationContainerComponent;
1012
- exports.AuthenticationContainerComponentModule = AuthenticationContainerComponentModule;
1013
- exports.AuthenticationRoutes = AuthenticationRoutes;
1014
- exports.LoadingComponent = LoadingComponent;
1015
- exports.LoadingComponentModule = LoadingComponentModule;
1016
- exports.LoginComponent = LoginComponent;
1017
- exports.LoginComponentModule = LoginComponentModule;
1018
- exports.LoginFormProviders = LoginFormProviders;
1019
- exports.LoginFormSubmitMethod = LoginFormSubmitMethod;
1020
- exports.LoginFormSubmitSuccessful = LoginFormSubmitSuccessful;
1021
- exports.ResetPasswordComponent = ResetPasswordComponent;
1022
- exports.ResetPasswordComponentModule = ResetPasswordComponentModule;
1023
- exports.RxapAuthenticationModule = RxapAuthenticationModule;
1024
- exports.fadeAnimation = fadeAnimation;
1025
-
1026
- Object.defineProperty(exports, '__esModule', { value: true });
1027
-
1028
- }));
1029
- //# sourceMappingURL=rxap-authentication-components.umd.js.map