@rxap/authentication 12.1.4-next.0 → 13.0.0-next.0

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