@rxap/authentication 12.1.6 → 12.3.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.
- package/bundles/rxap-authentication-components.umd.js +1 -0
- package/bundles/rxap-authentication-components.umd.js.map +1 -1
- package/bundles/rxap-authentication.umd.js +10 -0
- package/bundles/rxap-authentication.umd.js.map +1 -1
- package/components/public_api.d.ts +1 -0
- package/esm2015/components/public_api.js +1 -0
- package/esm2015/components/public_api.js.map +1 -1
- package/esm2015/lib/authentication.service.js +11 -1
- package/esm2015/lib/authentication.service.js.map +1 -1
- package/fesm2015/rxap-authentication-components.js +1 -1
- package/fesm2015/rxap-authentication-components.js.map +1 -1
- package/fesm2015/rxap-authentication.js +12 -2
- package/fesm2015/rxap-authentication.js.map +1 -1
- package/lib/authentication.service.d.ts +10 -1
- package/package.json +1 -1
|
@@ -1021,6 +1021,7 @@
|
|
|
1021
1021
|
exports.ResetPasswordComponent = ResetPasswordComponent;
|
|
1022
1022
|
exports.ResetPasswordComponentModule = ResetPasswordComponentModule;
|
|
1023
1023
|
exports.RxapAuthenticationModule = RxapAuthenticationModule;
|
|
1024
|
+
exports.fadeAnimation = fadeAnimation;
|
|
1024
1025
|
|
|
1025
1026
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1026
1027
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-authentication-components.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../libs/authentication/components/src/lib/login/login.form.ts","../../../../libs/authentication/components/src/lib/fade-animation.ts","../../../../libs/authentication/components/src/lib/login/login.component.ts","../../../../libs/authentication/components/src/lib/login/login.component.html","../../../../libs/authentication/components/src/lib/login/login.component.module.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.html","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.module.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.form.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.html","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.module.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.html","../../../../libs/authentication/components/src/lib/loading/loading.component.module.ts","../../../../libs/authentication/components/src/lib/authentication.module.ts","../../../../libs/authentication/components/src/lib/routes.ts","../../../../libs/authentication/components/src/rxap-authentication-components.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport {\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n RXAP_FORM_DEFINITION,\n FormDefinition,\n RxapForm,\n UseFormControl,\n RxapFormControl,\n RxapFormGroup,\n FormSubmitMethod,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitSuccessfulMethod,\n RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { ConfigService } from '@rxap/config';\nimport { RxapOnInit } from '@rxap/utilities';\nimport { Router } from '@angular/router';\n\nexport interface ILoginForm {\n email: string;\n password: string;\n}\n\n@RxapForm({\n id: 'rxap-login',\n providers: [\n {\n provide: ConfigService,\n useExisting: ConfigService,\n },\n ],\n})\n@Injectable()\nexport class LoginForm implements FormType<ILoginForm>, RxapOnInit {\n public rxapFormGroup!: RxapFormGroup;\n\n public loading = true;\n public loginFailed = false;\n\n @UseFormControl({\n validators: [Validators.required, Validators.email],\n })\n public email!: RxapFormControl<string>;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n state: true,\n })\n public remember!: RxapFormControl;\n\n constructor(public readonly config: ConfigService<any>) {}\n\n public rxapOnInit() {\n const email = this.config.get<string>('authentication.default.email');\n if (email) {\n this.email.setValue(email);\n }\n const password = this.config.get<string>('authentication.default.password');\n if (password) {\n this.password.setValue(password);\n }\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(private readonly authentication: RxapAuthenticationService) {}\n\n public call(value: {\n email: string;\n password: string;\n remember: boolean;\n }): Promise<any> {\n return this.authentication.signInWithEmailAndPassword(\n value.email,\n value.password,\n value.remember\n );\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitSuccessful\n implements FormSubmitSuccessfulMethod<any>\n{\n constructor(\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(): Promise<any> {\n return this.router.navigate(['/']);\n }\n}\n\nexport const LoginFormProviders: Provider[] = [\n LoginForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<ILoginForm>(LoginForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder) => builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: LoginFormSubmitMethod,\n },\n {\n provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n useClass: LoginFormSubmitSuccessful,\n },\n];\n","// the fade-in/fade-out animation.\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\n\nexport const fadeAnimation = trigger('fadeAnimation', [\n\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [\n style({ opacity: 0 }),\n animate(300)\n ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(\n ':leave',\n animate(300, style({ opacity: 0 }))\n )\n]);\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { LoginFormProviders } from './login.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { ToggleSubject } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-login',\n templateUrl: './login.component.html',\n styleUrls: [ './login.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n LoginFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class LoginComponent {\n\n public readonly requestingPasswordReset$ = new ToggleSubject();\n\n constructor(\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar\n ) {}\n\n public async requestPasswordReset(email: string) {\n this.requestingPasswordReset$.enable();\n try {\n const result = await this.authentication.requestPasswordReset(email);\n\n if (!result) {\n this.snackBar.open(\n 'The password reset request result is falsy',\n undefined,\n {\n duration: 5000,\n panelClass: 'error'\n }\n );\n } else {\n this.snackBar.open(\n 'The password reset request was successful',\n undefined,\n {\n duration: 3000\n }\n );\n }\n\n } catch (e) {\n this.snackBar.open(\n e.message,\n undefined,\n {\n duration: 3000,\n panelClass: 'error'\n }\n );\n } finally {\n this.requestingPasswordReset$.disable();\n }\n\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { LoginComponent } from './login.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatInputModule } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [ LoginComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatCardModule,\n MatSnackBarModule,\n MatProgressSpinnerModule,\n MatInputModule,\n ReactiveFormsModule,\n RxapFormsModule,\n MatCheckboxModule,\n MatIconModule,\n MatTooltipModule,\n MatProgressBarModule\n ],\n exports: [ LoginComponent ]\n})\nexport class LoginComponentModule {}\n","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n style,\n trigger,\n transition,\n animate\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-authentication-container',\n templateUrl: './authentication-container.component.html',\n styleUrls: [ './authentication-container.component.scss' ],\n host: { class: 'rxap-authentication-container' },\n animations: [\n trigger('routeAnimations', [\n transition(\n ':enter',\n [\n style({ opacity: 0 }),\n animate('512ms', style({ opacity: 1 }))\n ]\n ),\n transition(\n ':leave',\n [\n style({ opacity: 1 }),\n animate('512ms', style({ opacity: 0 }))\n ]\n )\n ])\n ]\n})\nexport class AuthenticationContainerComponent {\n\n public prepareRoute(outlet: RouterOutlet) {\n return outlet.isActivated ? outlet.activatedRoute : 'true';\n }\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { AuthenticationContainerComponent } from './authentication-container.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { RouterModule } from '@angular/router';\nimport { MatToolbarModule } from '@angular/material/toolbar';\n\n@NgModule({\n declarations: [ AuthenticationContainerComponent ],\n exports: [ AuthenticationContainerComponent ],\n imports: [\n FlexLayoutModule,\n MatToolbarModule,\n RouterModule\n ]\n})\nexport class AuthenticationContainerComponentModule {}\n","import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { map, switchMap, tap, take } from 'rxjs/operators';\nimport {\n UseFormControl,\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n FormDefinition,\n RXAP_FORM_DEFINITION,\n RxapForm,\n RxapFormControl,\n RxapFormGroup,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitMethod,\n ControlSetValue,\n ControlValidator,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\nexport const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';\n\n@Injectable()\nexport class ResetPasswordFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(\n @Inject(ActivatedRoute)\n private readonly route: ActivatedRoute,\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(value: { password: string }): boolean | Promise<boolean> {\n return this.route.params\n .pipe(\n take(1),\n map((params) => params.token),\n switchMap((token) =>\n this.authentication.sendPasswordReset(value.password, token)\n ),\n tap((result) => {\n if (result) {\n this.snackBar.open('Password reset was successful.', undefined, {\n duration: 3500,\n });\n return this.router.navigate(['/']);\n }\n return Promise.resolve();\n })\n )\n .toPromise();\n }\n}\n\nexport interface IResetPasswordForm {\n password: string;\n passwordRepeat: string;\n}\n\n@RxapForm({\n id: RXAP_RESET_PASSWORD_FORM,\n})\n@Injectable()\nexport class ResetPasswordForm implements FormType<IResetPasswordForm> {\n public rxapFormGroup!: RxapFormGroup;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public passwordRepeat!: RxapFormControl;\n\n @ControlValidator('passwordRepeat')\n public passwordEqual() {\n if (this.password.value !== this.passwordRepeat.value) {\n return { equal: 'passwords are not equal' };\n }\n return null;\n }\n\n @ControlSetValue('password')\n public resetRepeat() {\n this.passwordRepeat.reset();\n }\n}\n\nexport const ResetPasswordFormProviders: Provider[] = [\n ResetPasswordForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<IResetPasswordForm>(ResetPasswordForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder<IResetPasswordForm>) =>\n builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: ResetPasswordFormSubmitMethod,\n },\n];\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { ResetPasswordFormProviders } from './reset-password.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\n\n@Component({\n selector: 'rxap-reset-password',\n templateUrl: './reset-password.component.html',\n styleUrls: [ './reset-password.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ResetPasswordFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class ResetPasswordComponent {}\n","<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","import { NgModule } from '@angular/core';\nimport { ResetPasswordComponent } from './reset-password.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatInputModule } from '@angular/material/input';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [\n ResetPasswordComponent\n ],\n imports: [\n MatCardModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n MatProgressSpinnerModule,\n MatInputModule,\n RxapFormsModule,\n MatIconModule,\n ReactiveFormsModule,\n MatProgressBarModule,\n MatSnackBarModule,\n ],\n exports: [\n ResetPasswordComponent\n ]\n})\nexport class ResetPasswordComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { filter, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'rxap-auth-loading',\n templateUrl: './loading.component.html',\n styleUrls: ['./loading.component.scss'],\n host: { class: 'rxap-auth-loading' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LoadingComponent implements OnInit, OnDestroy {\n public subscription?: Subscription;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public readonly authentication: RxapAuthenticationService,\n @Inject(Router)\n public readonly router: Router\n ) {}\n\n public ngOnInit(): void {\n // TODO : remove the concept of isAuthenticated$\n if (this.authentication.isAuthenticated$) {\n this.subscription = this.authentication.isAuthenticated$\n .pipe(\n filter((isAuthenticated) => isAuthenticated !== null),\n tap(() => this.router.navigate(['/', 'authentication', 'login']))\n )\n .subscribe();\n }\n }\n\n public ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n","import { NgModule } from '@angular/core';\nimport { LoadingComponent } from './loading.component';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [\n LoadingComponent\n ],\n imports: [\n MatProgressBarModule\n ],\n exports: [\n LoadingComponent\n ]\n})\nexport class LoadingComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { LoginComponentModule } from './login/login.component.module';\nimport { AuthenticationContainerComponentModule } from './authentication-container/authentication-container.component.module';\nimport { ResetPasswordComponentModule } from './reset-password/reset-password.component.module';\nimport { LoadingComponentModule } from './loading/loading.component.module';\n\n@NgModule({\n exports: [\n LoginComponentModule,\n AuthenticationContainerComponentModule,\n ResetPasswordComponentModule,\n LoadingComponentModule\n ]\n})\nexport class RxapAuthenticationModule {}\n","import { Routes } from '@angular/router';\nimport { LoginComponent } from './login/login.component';\nimport { AuthenticationContainerComponent } from './authentication-container/authentication-container.component';\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\nimport { LoadingComponent } from './loading/loading.component';\nimport { RxapAuthenticationGuard } from '@rxap/authentication';\n\nexport const AuthenticationRoutes: Routes = [\n {\n path: 'authentication',\n component: AuthenticationContainerComponent,\n children: [\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'login',\n component: LoginComponent\n },\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'reset-password/:token',\n component: ResetPasswordComponent\n },\n {\n path: 'loading',\n component: LoadingComponent\n },\n {\n path: '**',\n redirectTo: 'login'\n }\n ]\n }\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["LoginForm","UseFormControl","Validators","RxapFormControl","RxapForm","ConfigService","Injectable","Router","Inject","RXAP_FORM_DEFINITION_BUILDER","RxapFormBuilder","INJECTOR","RXAP_FORM_DEFINITION","RXAP_FORM_SUBMIT_METHOD","RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD","trigger","state","style","transition","animate","ToggleSubject","RxapAuthenticationService","MatSnackBar","ErrorStateMatcher","ShowOnDirtyErrorStateMatcher","Component","ChangeDetectionStrategy","CommonModule","FlexLayoutModule","MatButtonModule","MatCardModule","MatSnackBarModule","MatProgressSpinnerModule","MatInputModule","ReactiveFormsModule","RxapFormsModule","MatCheckboxModule","MatIconModule","MatTooltipModule","MatProgressBarModule","NgModule","MatToolbarModule","RouterModule","take","map","switchMap","tap","ActivatedRoute","ControlValidator","ControlSetValue","filter","RxapAuthenticationGuard"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,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"}
|
|
1
|
+
{"version":3,"file":"rxap-authentication-components.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../libs/authentication/components/src/lib/login/login.form.ts","../../../../libs/authentication/components/src/lib/fade-animation.ts","../../../../libs/authentication/components/src/lib/login/login.component.ts","../../../../libs/authentication/components/src/lib/login/login.component.html","../../../../libs/authentication/components/src/lib/login/login.component.module.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.html","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.module.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.form.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.html","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.module.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.html","../../../../libs/authentication/components/src/lib/loading/loading.component.module.ts","../../../../libs/authentication/components/src/lib/authentication.module.ts","../../../../libs/authentication/components/src/lib/routes.ts","../../../../libs/authentication/components/src/rxap-authentication-components.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport {\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n RXAP_FORM_DEFINITION,\n FormDefinition,\n RxapForm,\n UseFormControl,\n RxapFormControl,\n RxapFormGroup,\n FormSubmitMethod,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitSuccessfulMethod,\n RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { ConfigService } from '@rxap/config';\nimport { RxapOnInit } from '@rxap/utilities';\nimport { Router } from '@angular/router';\n\nexport interface ILoginForm {\n email: string;\n password: string;\n}\n\n@RxapForm({\n id: 'rxap-login',\n providers: [\n {\n provide: ConfigService,\n useExisting: ConfigService,\n },\n ],\n})\n@Injectable()\nexport class LoginForm implements FormType<ILoginForm>, RxapOnInit {\n public rxapFormGroup!: RxapFormGroup;\n\n public loading = true;\n public loginFailed = false;\n\n @UseFormControl({\n validators: [Validators.required, Validators.email],\n })\n public email!: RxapFormControl<string>;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n state: true,\n })\n public remember!: RxapFormControl;\n\n constructor(public readonly config: ConfigService<any>) {}\n\n public rxapOnInit() {\n const email = this.config.get<string>('authentication.default.email');\n if (email) {\n this.email.setValue(email);\n }\n const password = this.config.get<string>('authentication.default.password');\n if (password) {\n this.password.setValue(password);\n }\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(private readonly authentication: RxapAuthenticationService) {}\n\n public call(value: {\n email: string;\n password: string;\n remember: boolean;\n }): Promise<any> {\n return this.authentication.signInWithEmailAndPassword(\n value.email,\n value.password,\n value.remember\n );\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitSuccessful\n implements FormSubmitSuccessfulMethod<any>\n{\n constructor(\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(): Promise<any> {\n return this.router.navigate(['/']);\n }\n}\n\nexport const LoginFormProviders: Provider[] = [\n LoginForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<ILoginForm>(LoginForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder) => builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: LoginFormSubmitMethod,\n },\n {\n provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n useClass: LoginFormSubmitSuccessful,\n },\n];\n","// the fade-in/fade-out animation.\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\n\nexport const fadeAnimation = trigger('fadeAnimation', [\n\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [\n style({ opacity: 0 }),\n animate(300)\n ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(\n ':leave',\n animate(300, style({ opacity: 0 }))\n )\n]);\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { LoginFormProviders } from './login.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { ToggleSubject } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-login',\n templateUrl: './login.component.html',\n styleUrls: [ './login.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n LoginFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class LoginComponent {\n\n public readonly requestingPasswordReset$ = new ToggleSubject();\n\n constructor(\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar\n ) {}\n\n public async requestPasswordReset(email: string) {\n this.requestingPasswordReset$.enable();\n try {\n const result = await this.authentication.requestPasswordReset(email);\n\n if (!result) {\n this.snackBar.open(\n 'The password reset request result is falsy',\n undefined,\n {\n duration: 5000,\n panelClass: 'error'\n }\n );\n } else {\n this.snackBar.open(\n 'The password reset request was successful',\n undefined,\n {\n duration: 3000\n }\n );\n }\n\n } catch (e) {\n this.snackBar.open(\n e.message,\n undefined,\n {\n duration: 3000,\n panelClass: 'error'\n }\n );\n } finally {\n this.requestingPasswordReset$.disable();\n }\n\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { LoginComponent } from './login.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatInputModule } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [ LoginComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatCardModule,\n MatSnackBarModule,\n MatProgressSpinnerModule,\n MatInputModule,\n ReactiveFormsModule,\n RxapFormsModule,\n MatCheckboxModule,\n MatIconModule,\n MatTooltipModule,\n MatProgressBarModule\n ],\n exports: [ LoginComponent ]\n})\nexport class LoginComponentModule {}\n","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n style,\n trigger,\n transition,\n animate\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-authentication-container',\n templateUrl: './authentication-container.component.html',\n styleUrls: [ './authentication-container.component.scss' ],\n host: { class: 'rxap-authentication-container' },\n animations: [\n trigger('routeAnimations', [\n transition(\n ':enter',\n [\n style({ opacity: 0 }),\n animate('512ms', style({ opacity: 1 }))\n ]\n ),\n transition(\n ':leave',\n [\n style({ opacity: 1 }),\n animate('512ms', style({ opacity: 0 }))\n ]\n )\n ])\n ]\n})\nexport class AuthenticationContainerComponent {\n\n public prepareRoute(outlet: RouterOutlet) {\n return outlet.isActivated ? outlet.activatedRoute : 'true';\n }\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { AuthenticationContainerComponent } from './authentication-container.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { RouterModule } from '@angular/router';\nimport { MatToolbarModule } from '@angular/material/toolbar';\n\n@NgModule({\n declarations: [ AuthenticationContainerComponent ],\n exports: [ AuthenticationContainerComponent ],\n imports: [\n FlexLayoutModule,\n MatToolbarModule,\n RouterModule\n ]\n})\nexport class AuthenticationContainerComponentModule {}\n","import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { map, switchMap, tap, take } from 'rxjs/operators';\nimport {\n UseFormControl,\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n FormDefinition,\n RXAP_FORM_DEFINITION,\n RxapForm,\n RxapFormControl,\n RxapFormGroup,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitMethod,\n ControlSetValue,\n ControlValidator,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\nexport const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';\n\n@Injectable()\nexport class ResetPasswordFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(\n @Inject(ActivatedRoute)\n private readonly route: ActivatedRoute,\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(value: { password: string }): boolean | Promise<boolean> {\n return this.route.params\n .pipe(\n take(1),\n map((params) => params.token),\n switchMap((token) =>\n this.authentication.sendPasswordReset(value.password, token)\n ),\n tap((result) => {\n if (result) {\n this.snackBar.open('Password reset was successful.', undefined, {\n duration: 3500,\n });\n return this.router.navigate(['/']);\n }\n return Promise.resolve();\n })\n )\n .toPromise();\n }\n}\n\nexport interface IResetPasswordForm {\n password: string;\n passwordRepeat: string;\n}\n\n@RxapForm({\n id: RXAP_RESET_PASSWORD_FORM,\n})\n@Injectable()\nexport class ResetPasswordForm implements FormType<IResetPasswordForm> {\n public rxapFormGroup!: RxapFormGroup;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public passwordRepeat!: RxapFormControl;\n\n @ControlValidator('passwordRepeat')\n public passwordEqual() {\n if (this.password.value !== this.passwordRepeat.value) {\n return { equal: 'passwords are not equal' };\n }\n return null;\n }\n\n @ControlSetValue('password')\n public resetRepeat() {\n this.passwordRepeat.reset();\n }\n}\n\nexport const ResetPasswordFormProviders: Provider[] = [\n ResetPasswordForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<IResetPasswordForm>(ResetPasswordForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder<IResetPasswordForm>) =>\n builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: ResetPasswordFormSubmitMethod,\n },\n];\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { ResetPasswordFormProviders } from './reset-password.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\n\n@Component({\n selector: 'rxap-reset-password',\n templateUrl: './reset-password.component.html',\n styleUrls: [ './reset-password.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ResetPasswordFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class ResetPasswordComponent {}\n","<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","import { NgModule } from '@angular/core';\nimport { ResetPasswordComponent } from './reset-password.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatInputModule } from '@angular/material/input';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [\n ResetPasswordComponent\n ],\n imports: [\n MatCardModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n MatProgressSpinnerModule,\n MatInputModule,\n RxapFormsModule,\n MatIconModule,\n ReactiveFormsModule,\n MatProgressBarModule,\n MatSnackBarModule,\n ],\n exports: [\n ResetPasswordComponent\n ]\n})\nexport class ResetPasswordComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { filter, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'rxap-auth-loading',\n templateUrl: './loading.component.html',\n styleUrls: ['./loading.component.scss'],\n host: { class: 'rxap-auth-loading' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LoadingComponent implements OnInit, OnDestroy {\n public subscription?: Subscription;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public readonly authentication: RxapAuthenticationService,\n @Inject(Router)\n public readonly router: Router\n ) {}\n\n public ngOnInit(): void {\n // TODO : remove the concept of isAuthenticated$\n if (this.authentication.isAuthenticated$) {\n this.subscription = this.authentication.isAuthenticated$\n .pipe(\n filter((isAuthenticated) => isAuthenticated !== null),\n tap(() => this.router.navigate(['/', 'authentication', 'login']))\n )\n .subscribe();\n }\n }\n\n public ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n","import { NgModule } from '@angular/core';\nimport { LoadingComponent } from './loading.component';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [\n LoadingComponent\n ],\n imports: [\n MatProgressBarModule\n ],\n exports: [\n LoadingComponent\n ]\n})\nexport class LoadingComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { LoginComponentModule } from './login/login.component.module';\nimport { AuthenticationContainerComponentModule } from './authentication-container/authentication-container.component.module';\nimport { ResetPasswordComponentModule } from './reset-password/reset-password.component.module';\nimport { LoadingComponentModule } from './loading/loading.component.module';\n\n@NgModule({\n exports: [\n LoginComponentModule,\n AuthenticationContainerComponentModule,\n ResetPasswordComponentModule,\n LoadingComponentModule\n ]\n})\nexport class RxapAuthenticationModule {}\n","import { Routes } from '@angular/router';\nimport { LoginComponent } from './login/login.component';\nimport { AuthenticationContainerComponent } from './authentication-container/authentication-container.component';\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\nimport { LoadingComponent } from './loading/loading.component';\nimport { RxapAuthenticationGuard } from '@rxap/authentication';\n\nexport const AuthenticationRoutes: Routes = [\n {\n path: 'authentication',\n component: AuthenticationContainerComponent,\n children: [\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'login',\n component: LoginComponent\n },\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'reset-password/:token',\n component: ResetPasswordComponent\n },\n {\n path: 'loading',\n component: LoadingComponent\n },\n {\n path: '**',\n redirectTo: 'login'\n }\n ]\n }\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["LoginForm","UseFormControl","Validators","RxapFormControl","RxapForm","ConfigService","Injectable","Router","Inject","RXAP_FORM_DEFINITION_BUILDER","RxapFormBuilder","INJECTOR","RXAP_FORM_DEFINITION","RXAP_FORM_SUBMIT_METHOD","RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD","trigger","state","style","transition","animate","ToggleSubject","RxapAuthenticationService","MatSnackBar","ErrorStateMatcher","ShowOnDirtyErrorStateMatcher","Component","ChangeDetectionStrategy","CommonModule","FlexLayoutModule","MatButtonModule","MatCardModule","MatSnackBarModule","MatProgressSpinnerModule","MatInputModule","ReactiveFormsModule","RxapFormsModule","MatCheckboxModule","MatIconModule","MatTooltipModule","MatProgressBarModule","NgModule","MatToolbarModule","RouterModule","take","map","switchMap","tap","ActivatedRoute","ControlValidator","ControlSetValue","filter","RxapAuthenticationGuard"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;QAC9F,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzF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,WAAW,EAAE,CAAEW,0BAAuB,CAAE;oBACxC,IAAI,EAAS,OAAO;oBACpB,SAAS,EAAI,cAAc;iBAC5B;gBACD;oBACE,WAAW,EAAE,CAAEA,0BAAuB,CAAE;oBACxC,IAAI,EAAO,uBAAuB;oBAClC,SAAS,EAAE,sBAAsB;iBAClC;gBACD;oBACE,IAAI,EAAO,SAAS;oBACpB,SAAS,EAAE,gBAAgB;iBAC5B;gBACD;oBACE,IAAI,EAAQ,IAAI;oBAChB,UAAU,EAAE,OAAO;iBACpB;aACF;SACF;;;IC/BH;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -352,11 +352,18 @@
|
|
|
352
352
|
}, ms);
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
+
exports.AuthenticationEventType = void 0;
|
|
356
|
+
(function (AuthenticationEventType) {
|
|
357
|
+
AuthenticationEventType["OnAuthSuccess"] = "on-auth-success";
|
|
358
|
+
AuthenticationEventType["OnAuthError"] = "on-auth-error";
|
|
359
|
+
AuthenticationEventType["OnLogout"] = "on-logout";
|
|
360
|
+
})(exports.AuthenticationEventType || (exports.AuthenticationEventType = {}));
|
|
355
361
|
/* ignore coverage */
|
|
356
362
|
var RxapAuthenticationService = /** @class */ (function () {
|
|
357
363
|
function RxapAuthenticationService() {
|
|
358
364
|
var _this = this;
|
|
359
365
|
this.isAuthenticated$ = new rxjs.BehaviorSubject(null);
|
|
366
|
+
this.events$ = new rxjs.ReplaySubject();
|
|
360
367
|
console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');
|
|
361
368
|
this.isAuthenticated().then(function (isAuthenticated) { return _this.isAuthenticated$.next(isAuthenticated); });
|
|
362
369
|
}
|
|
@@ -381,10 +388,12 @@
|
|
|
381
388
|
localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');
|
|
382
389
|
}
|
|
383
390
|
resolve(login);
|
|
391
|
+
_this.events$.next({ type: exports.AuthenticationEventType.OnAuthSuccess });
|
|
384
392
|
}
|
|
385
393
|
else {
|
|
386
394
|
localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);
|
|
387
395
|
reject(new Error('Login credentials are invalid'));
|
|
396
|
+
_this.events$.next({ type: exports.AuthenticationEventType.OnAuthError });
|
|
388
397
|
}
|
|
389
398
|
}, 2500)];
|
|
390
399
|
});
|
|
@@ -396,6 +405,7 @@
|
|
|
396
405
|
console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');
|
|
397
406
|
this.isAuthenticated$.next(false);
|
|
398
407
|
localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);
|
|
408
|
+
this.events$.next({ type: exports.AuthenticationEventType.OnLogout });
|
|
399
409
|
return [2 /*return*/];
|
|
400
410
|
});
|
|
401
411
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-authentication.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../libs/authentication/src/lib/authentication.service.ts","../../../../libs/authentication/src/lib/tokens.ts","../../../../libs/authentication/src/lib/authentication.guard.ts","../../../../libs/authentication/src/lib/register.service.ts","../../../../libs/authentication/src/lib/user.service.ts","../../../../libs/authentication/src/lib/authentication-routing.service.ts","../../../../libs/authentication/src/lib/sign-out.directive.ts","../../../../libs/authentication/src/rxap-authentication.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n BehaviorSubject,\n Observable\n} from 'rxjs';\nimport { Router } from '@angular/router';\nimport { tap } from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\nexport const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';\n\nexport interface IAuthenticationService {\n isAuthenticated$: Observable<boolean | null>;\n\n requestPasswordReset(email: string): Promise<boolean>;\n\n sendPasswordReset(password: string, token: string): Promise<boolean>;\n\n signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean>;\n\n signOut(): Promise<void>;\n\n}\n\nexport function TimeoutPromise<T>(callback: (resolve: (value: T) => void, reject: (error: any) => void) => void, ms: number): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n\n setTimeout(() => {\n callback(resolve, reject);\n }, ms);\n\n });\n}\n\nexport function TimeoutResolve<T>(value: T, ms: number): Promise<T> {\n return new Promise(resolve => {\n\n setTimeout(() => {\n resolve(value);\n }, ms);\n\n });\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RxapAuthenticationService implements IAuthenticationService {\n\n public isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n constructor() {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));\n }\n\n public requestPasswordReset(email: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(email !== 'fail@fail', 2500);\n }\n\n public sendPasswordReset(password: string, token: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(password !== 'fail', 2500);\n }\n\n public async signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutPromise((resolve, reject) => {\n\n const login = password !== 'fail';\n this.isAuthenticated$.next(login);\n if (login) {\n if (remember) {\n localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');\n }\n resolve(login);\n } else {\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n reject(new Error('Login credentials are invalid'));\n }\n\n }, 2500);\n\n }\n\n public async signOut(): Promise<void> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated$.next(false);\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n }\n\n public signInWithProvider(provider: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return Promise.resolve(false);\n }\n\n public isAuthenticated(): Promise<boolean> {\n return TimeoutPromise((resolve) => {\n resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');\n }, 2500);\n }\n\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_AUTHENTICATION_DEACTIVATED = new InjectionToken<boolean>('rxap/authentication/deactivated');\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n CanActivate,\n CanActivateChild,\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n UrlTree,\n Router\n} from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { RxapAuthenticationService } from './authentication.service';\nimport {\n map,\n first,\n take\n} from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\n@Injectable({ providedIn: 'root' })\nexport class RxapAuthenticationGuard implements CanActivate, CanActivateChild {\n\n public lastUrl: string | null = null;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public authentication: RxapAuthenticationService,\n @Inject(Router)\n public router: Router,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {}\n\n public canActivate(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate', state.url);\n return this.checkAuthStatus(route, state);\n }\n\n public canActivateChild(\n childRoute: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate child', state.url);\n return this.checkAuthStatus(childRoute, state);\n }\n\n private async checkAuthStatus(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n\n if (this.deactivated) {\n return true;\n }\n\n const authenticated = await this.authentication.isAuthenticated();\n\n if (authenticated === null) {\n if (!this.lastUrl || (state.url !== '/' && !state.url.match(/authentication\\/login/))) {\n this.lastUrl = state.url;\n }\n return this.router.createUrlTree([ '/', 'authentication', 'loading' ]);\n }\n if (authenticated) {\n if (this.lastUrl && (state.url/*?*/ === '/' || state.url.match(/authentication\\/login/))) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n } else {\n if (state.url.match(/authentication/)) {\n if (state.url.match(/authentication\\/reset-password/)) {\n return true;\n }\n return this.router.createUrlTree([ '/' ]);\n } else {\n this.lastUrl = null;\n return true;\n }\n }\n } else {\n if (!state.url.match(/^\\/?authentication/)) {\n this.lastUrl = state.url;\n }\n if (state.url.match(/^\\/?authentication/)) {\n if (this.lastUrl && this.lastUrl.match(/^\\/?authentication/)) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n }\n return true;\n } else {\n return this.router.createUrlTree([ '/', 'authentication', 'login' ]);\n }\n }\n\n }\n\n private createUrlTreeToLastUrl(lastUrl: string): UrlTree {\n\n const urlMatch = lastUrl.match(/^([^?#]+)(\\?([^#]+))?(#(.+))?$/);\n\n if (urlMatch) {\n\n let queryParams: Record<string, string> = {};\n\n if (urlMatch[3]) {\n const queryParamsString = urlMatch[ 3 ];\n queryParams = queryParamsString.split('&').map(param => {\n const split = param.split('=');\n return { [ split[ 0 ] ]: split[ 1 ] };\n }).reduce((params, param) => ({ ...params, ...param }), {});\n }\n\n let fragment: string | undefined = undefined;\n\n if (urlMatch[5]) {\n fragment = urlMatch[5];\n }\n\n return this.router.createUrlTree([urlMatch[1]], {\n queryParams,\n fragment,\n });\n\n }\n\n return this.router.createUrlTree([lastUrl]);\n\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RegisterService {\n\n constructor() {\n console.warn('The default RegisterService implementation should only be used in a development environment!');\n }\n\n public register(email: string, password: string): Promise<boolean> {\n return Promise.resolve(true);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nexport interface UserProfile {\n username: string;\n firstname?: string;\n lastname?: string;\n name?: string;\n email: string;\n photoURL?: string;\n avatarUrl?: string;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class UserService<User extends UserProfile = UserProfile> {\n\n public user$ = new BehaviorSubject<User | null>(null);\n\n}\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { RxapAuthenticationService } from './authentication.service';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\nimport { tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthenticationRoutingService {\n\n constructor(\n @Inject(Router)\n private readonly router: Router,\n @Inject(RxapAuthenticationService)\n private readonly authenticationService: RxapAuthenticationService,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {\n if (!deactivated) {\n console.log('Authentication is enabled');\n this.authenticationService.isAuthenticated$.pipe(\n tap(isAuthenticated => {\n if (isAuthenticated) {\n return this.router.navigate([ '/' ]);\n } else {\n return this.router.navigate([ '/', 'authentication', 'login' ]);\n }\n })\n ).subscribe();\n }\n }\n\n}\n","import {\n Directive,\n NgModule,\n HostListener,\n EventEmitter,\n Output\n} from '@angular/core';\nimport { RxapAuthenticationService } from './authentication.service';\n\n@Directive({\n selector: '[rxapSignOut]'\n})\nexport class SignOutDirective {\n\n @Output()\n public successful = new EventEmitter<void>();\n\n @Output()\n public failure = new EventEmitter<Error>();\n\n constructor(private readonly auth: RxapAuthenticationService) { }\n\n @HostListener('click')\n public async onClick() {\n try {\n await this.auth.signOut();\n this.successful.emit();\n } catch (e) {\n this.failure.emit(e);\n }\n }\n\n}\n\n@NgModule({\n declarations: [ SignOutDirective ],\n exports: [ SignOutDirective ]\n})\nexport class SignOutDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["BehaviorSubject","Injectable","InjectionToken","Router","Inject","Optional","tap","EventEmitter","Directive","Output","HostListener","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/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B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAC,CAAC,CAAC;;;;;aAExB;SAAA;;;wIAlBU,gBAAgB;iHAAhB,gBAAgB;sHAAhB,gBAAgB;sBAH5BC,YAAS;uBAAC;wBACT,QAAQ,EAAE,eAAe;qBAC1B;iHAIQ,UAAU;0BADhBC,SAAM;oBAIA,OAAO;0BADbA,SAAM;oBAMM,OAAO;0BADnBC,eAAY;2BAAC,OAAO;;;QAgBvB;;;;8IAAa,sBAAsB;+IAAtB,sBAAsB,iBA1BtB,gBAAgB,aAAhB,gBAAgB;+IA0BhB,sBAAsB;sHAAtB,sBAAsB;sBAJlCC,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAE,gBAAgB,CAAE;wBAClC,OAAO,EAAO,CAAE,gBAAgB,CAAE;qBACnC;;;ICrCD;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"rxap-authentication.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../libs/authentication/src/lib/authentication.service.ts","../../../../libs/authentication/src/lib/tokens.ts","../../../../libs/authentication/src/lib/authentication.guard.ts","../../../../libs/authentication/src/lib/register.service.ts","../../../../libs/authentication/src/lib/user.service.ts","../../../../libs/authentication/src/lib/authentication-routing.service.ts","../../../../libs/authentication/src/lib/sign-out.directive.ts","../../../../libs/authentication/src/rxap-authentication.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n BehaviorSubject,\n Observable,\n Subject,\n ReplaySubject\n} from 'rxjs';\nimport { Router } from '@angular/router';\nimport { tap } from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\nexport const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';\n\nexport interface IAuthenticationService {\n isAuthenticated$: Observable<boolean | null>;\n\n requestPasswordReset(email: string): Promise<boolean>;\n\n sendPasswordReset(password: string, token: string): Promise<boolean>;\n\n signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean>;\n\n signOut(): Promise<void>;\n\n}\n\nexport function TimeoutPromise<T>(callback: (resolve: (value: T) => void, reject: (error: any) => void) => void, ms: number): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n\n setTimeout(() => {\n callback(resolve, reject);\n }, ms);\n\n });\n}\n\nexport function TimeoutResolve<T>(value: T, ms: number): Promise<T> {\n return new Promise(resolve => {\n\n setTimeout(() => {\n resolve(value);\n }, ms);\n\n });\n}\n\nexport enum AuthenticationEventType {\n OnAuthSuccess = 'on-auth-success',\n OnAuthError = 'on-auth-error',\n OnLogout = 'on-logout',\n}\n\nexport interface AuthenticationEvent extends Record<string, any> {\n type: AuthenticationEventType;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RxapAuthenticationService implements IAuthenticationService {\n\n public isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n public readonly events$ = new ReplaySubject<AuthenticationEvent>();\n\n constructor() {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));\n }\n\n public requestPasswordReset(email: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(email !== 'fail@fail', 2500);\n }\n\n public sendPasswordReset(password: string, token: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(password !== 'fail', 2500);\n }\n\n public async signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutPromise((resolve, reject) => {\n\n const login = password !== 'fail';\n this.isAuthenticated$.next(login);\n if (login) {\n if (remember) {\n localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');\n }\n resolve(login);\n this.events$.next({ type: AuthenticationEventType.OnAuthSuccess });\n } else {\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n reject(new Error('Login credentials are invalid'));\n this.events$.next({ type: AuthenticationEventType.OnAuthError });\n }\n\n }, 2500);\n\n }\n\n public async signOut(): Promise<void> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated$.next(false);\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n this.events$.next({ type: AuthenticationEventType.OnLogout });\n }\n\n public signInWithProvider(provider: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return Promise.resolve(false);\n }\n\n public isAuthenticated(): Promise<boolean> {\n return TimeoutPromise((resolve) => {\n resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');\n }, 2500);\n }\n\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_AUTHENTICATION_DEACTIVATED = new InjectionToken<boolean>('rxap/authentication/deactivated');\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n CanActivate,\n CanActivateChild,\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n UrlTree,\n Router\n} from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { RxapAuthenticationService } from './authentication.service';\nimport {\n map,\n first,\n take\n} from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\n@Injectable({ providedIn: 'root' })\nexport class RxapAuthenticationGuard implements CanActivate, CanActivateChild {\n\n public lastUrl: string | null = null;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public authentication: RxapAuthenticationService,\n @Inject(Router)\n public router: Router,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {}\n\n public canActivate(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate', state.url);\n return this.checkAuthStatus(route, state);\n }\n\n public canActivateChild(\n childRoute: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate child', state.url);\n return this.checkAuthStatus(childRoute, state);\n }\n\n private async checkAuthStatus(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n\n if (this.deactivated) {\n return true;\n }\n\n const authenticated = await this.authentication.isAuthenticated();\n\n if (authenticated === null) {\n if (!this.lastUrl || (state.url !== '/' && !state.url.match(/authentication\\/login/))) {\n this.lastUrl = state.url;\n }\n return this.router.createUrlTree([ '/', 'authentication', 'loading' ]);\n }\n if (authenticated) {\n if (this.lastUrl && (state.url/*?*/ === '/' || state.url.match(/authentication\\/login/))) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n } else {\n if (state.url.match(/authentication/)) {\n if (state.url.match(/authentication\\/reset-password/)) {\n return true;\n }\n return this.router.createUrlTree([ '/' ]);\n } else {\n this.lastUrl = null;\n return true;\n }\n }\n } else {\n if (!state.url.match(/^\\/?authentication/)) {\n this.lastUrl = state.url;\n }\n if (state.url.match(/^\\/?authentication/)) {\n if (this.lastUrl && this.lastUrl.match(/^\\/?authentication/)) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n }\n return true;\n } else {\n return this.router.createUrlTree([ '/', 'authentication', 'login' ]);\n }\n }\n\n }\n\n private createUrlTreeToLastUrl(lastUrl: string): UrlTree {\n\n const urlMatch = lastUrl.match(/^([^?#]+)(\\?([^#]+))?(#(.+))?$/);\n\n if (urlMatch) {\n\n let queryParams: Record<string, string> = {};\n\n if (urlMatch[3]) {\n const queryParamsString = urlMatch[ 3 ];\n queryParams = queryParamsString.split('&').map(param => {\n const split = param.split('=');\n return { [ split[ 0 ] ]: split[ 1 ] };\n }).reduce((params, param) => ({ ...params, ...param }), {});\n }\n\n let fragment: string | undefined = undefined;\n\n if (urlMatch[5]) {\n fragment = urlMatch[5];\n }\n\n return this.router.createUrlTree([urlMatch[1]], {\n queryParams,\n fragment,\n });\n\n }\n\n return this.router.createUrlTree([lastUrl]);\n\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RegisterService {\n\n constructor() {\n console.warn('The default RegisterService implementation should only be used in a development environment!');\n }\n\n public register(email: string, password: string): Promise<boolean> {\n return Promise.resolve(true);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nexport interface UserProfile {\n username: string;\n firstname?: string;\n lastname?: string;\n name?: string;\n email: string;\n photoURL?: string;\n avatarUrl?: string;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class UserService<User extends UserProfile = UserProfile> {\n\n public user$ = new BehaviorSubject<User | null>(null);\n\n}\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { RxapAuthenticationService } from './authentication.service';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\nimport { tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthenticationRoutingService {\n\n constructor(\n @Inject(Router)\n private readonly router: Router,\n @Inject(RxapAuthenticationService)\n private readonly authenticationService: RxapAuthenticationService,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {\n if (!deactivated) {\n console.log('Authentication is enabled');\n this.authenticationService.isAuthenticated$.pipe(\n tap(isAuthenticated => {\n if (isAuthenticated) {\n return this.router.navigate([ '/' ]);\n } else {\n return this.router.navigate([ '/', 'authentication', 'login' ]);\n }\n })\n ).subscribe();\n }\n }\n\n}\n","import {\n Directive,\n NgModule,\n HostListener,\n EventEmitter,\n Output\n} from '@angular/core';\nimport { RxapAuthenticationService } from './authentication.service';\n\n@Directive({\n selector: '[rxapSignOut]'\n})\nexport class SignOutDirective {\n\n @Output()\n public successful = new EventEmitter<void>();\n\n @Output()\n public failure = new EventEmitter<Error>();\n\n constructor(private readonly auth: RxapAuthenticationService) { }\n\n @HostListener('click')\n public async onClick() {\n try {\n await this.auth.signOut();\n this.successful.emit();\n } catch (e) {\n this.failure.emit(e);\n }\n }\n\n}\n\n@NgModule({\n declarations: [ SignOutDirective ],\n exports: [ SignOutDirective ]\n})\nexport class SignOutDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["AuthenticationEventType","BehaviorSubject","ReplaySubject","Injectable","InjectionToken","Router","Inject","Optional","tap","EventEmitter","Directive","Output","HostListener","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EA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HAAtB,sBAAsB;sBAJlCC,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAE,gBAAgB,CAAE;wBAClC,OAAO,EAAO,CAAE,gBAAgB,CAAE;qBACnC;;;ICrCD;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -10,3 +10,4 @@ export * from './lib/reset-password/reset-password.component.module';
|
|
|
10
10
|
export * from './lib/reset-password/reset-password.component';
|
|
11
11
|
export * from './lib/authentication-container/authentication-container.component';
|
|
12
12
|
export * from './lib/authentication-container/authentication-container.component.module';
|
|
13
|
+
export * from './lib/fade-animation';
|
|
@@ -10,4 +10,5 @@ export * from './lib/reset-password/reset-password.component.module';
|
|
|
10
10
|
export * from './lib/reset-password/reset-password.component';
|
|
11
11
|
export * from './lib/authentication-container/authentication-container.component';
|
|
12
12
|
export * from './lib/authentication-container/authentication-container.component.module';
|
|
13
|
+
export * from './lib/fade-animation';
|
|
13
14
|
//# sourceMappingURL=public_api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../../../../libs/authentication/components/src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,cAAc,CAAC;AAC7B,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mEAAmE,CAAC;AAClF,cAAc,0EAA0E,CAAC","sourcesContent":["export * from './lib/authentication.module';\nexport * from './lib/login/login.form';\nexport * from './lib/login/login.component';\nexport * from './lib/login/login.form';\nexport * from './lib/login/login.component.module';\nexport * from './lib/routes';\nexport * from './lib/loading/loading.component.module';\nexport * from './lib/loading/loading.component';\nexport * from './lib/reset-password/reset-password.component.module';\nexport * from './lib/reset-password/reset-password.component';\nexport * from './lib/authentication-container/authentication-container.component';\nexport * from './lib/authentication-container/authentication-container.component.module';\n"]}
|
|
1
|
+
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../../../../libs/authentication/components/src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,cAAc,CAAC;AAC7B,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mEAAmE,CAAC;AAClF,cAAc,0EAA0E,CAAC;AACzF,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './lib/authentication.module';\nexport * from './lib/login/login.form';\nexport * from './lib/login/login.component';\nexport * from './lib/login/login.form';\nexport * from './lib/login/login.component.module';\nexport * from './lib/routes';\nexport * from './lib/loading/loading.component.module';\nexport * from './lib/loading/loading.component';\nexport * from './lib/reset-password/reset-password.component.module';\nexport * from './lib/reset-password/reset-password.component';\nexport * from './lib/authentication-container/authentication-container.component';\nexport * from './lib/authentication-container/authentication-container.component.module';\nexport * from './lib/fade-animation';\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { Injectable } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';
|
|
6
6
|
export function TimeoutPromise(callback, ms) {
|
|
@@ -17,10 +17,17 @@ export function TimeoutResolve(value, ms) {
|
|
|
17
17
|
}, ms);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
export var AuthenticationEventType;
|
|
21
|
+
(function (AuthenticationEventType) {
|
|
22
|
+
AuthenticationEventType["OnAuthSuccess"] = "on-auth-success";
|
|
23
|
+
AuthenticationEventType["OnAuthError"] = "on-auth-error";
|
|
24
|
+
AuthenticationEventType["OnLogout"] = "on-logout";
|
|
25
|
+
})(AuthenticationEventType || (AuthenticationEventType = {}));
|
|
20
26
|
/* ignore coverage */
|
|
21
27
|
export class RxapAuthenticationService {
|
|
22
28
|
constructor() {
|
|
23
29
|
this.isAuthenticated$ = new BehaviorSubject(null);
|
|
30
|
+
this.events$ = new ReplaySubject();
|
|
24
31
|
console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');
|
|
25
32
|
this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));
|
|
26
33
|
}
|
|
@@ -43,10 +50,12 @@ export class RxapAuthenticationService {
|
|
|
43
50
|
localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');
|
|
44
51
|
}
|
|
45
52
|
resolve(login);
|
|
53
|
+
this.events$.next({ type: AuthenticationEventType.OnAuthSuccess });
|
|
46
54
|
}
|
|
47
55
|
else {
|
|
48
56
|
localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);
|
|
49
57
|
reject(new Error('Login credentials are invalid'));
|
|
58
|
+
this.events$.next({ type: AuthenticationEventType.OnAuthError });
|
|
50
59
|
}
|
|
51
60
|
}, 2500);
|
|
52
61
|
});
|
|
@@ -56,6 +65,7 @@ export class RxapAuthenticationService {
|
|
|
56
65
|
console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');
|
|
57
66
|
this.isAuthenticated$.next(false);
|
|
58
67
|
localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);
|
|
68
|
+
this.events$.next({ type: AuthenticationEventType.OnLogout });
|
|
59
69
|
});
|
|
60
70
|
}
|
|
61
71
|
signInWithProvider(provider) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../../../../libs/authentication/src/lib/authentication.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EAGX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,
|
|
1
|
+
{"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../../../../libs/authentication/src/lib/authentication.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EAGX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAGf,aAAa,EACd,MAAM,MAAM,CAAC;;AAKd,MAAM,CAAC,MAAM,qCAAqC,GAAG,qBAAqB,CAAC;AAe3E,MAAM,UAAU,cAAc,CAAI,QAA6E,EAAE,EAAU;IACzH,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAExC,UAAU,CAAC,GAAG,EAAE;YACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC5B,CAAC,EAAE,EAAE,CAAC,CAAC;IAET,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAAI,KAAQ,EAAE,EAAU;IACpD,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QAE3B,UAAU,CAAC,GAAG,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC,EAAE,EAAE,CAAC,CAAC;IAET,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,4DAAiC,CAAA;IACjC,wDAA6B,CAAA;IAC7B,iDAAsB,CAAA;AACxB,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AAOD,qBAAqB;AACrB,MAAM,OAAO,yBAAyB;IAMpC;QAJO,qBAAgB,GAAG,IAAI,eAAe,CAAiB,IAAI,CAAC,CAAC;QAEpD,YAAO,GAAG,IAAI,aAAa,EAAuB,CAAC;QAGj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E,IAAI,EAAE,uBAAuB,CAAC,WAAW,EAAE,CAAC,CAAC;iBAClE;YAEH,CAAC,EAAE,IAAI,CAAC,CAAC;QAEX,CAAC;KAAA;IAEY,OAAO;;YAClB,OAAO,CAAC,IAAI,CAAC,wGAAwG,CAAC,CAAC;YACvH,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAClC,YAAY,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC;YAC/D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,uBAAuB,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChE,CAAC;KAAA;IAEM,kBAAkB,CAAC,QAAgB;QACxC,OAAO,CAAC,IAAI,CAAC,wGAAwG,CAAC,CAAC;QACvH,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,eAAe;QACpB,OAAO,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;YAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,qCAAqC,CAAC,KAAK,MAAM,CAAC,CAAC;QAClF,CAAC,EAAE,IAAI,CAAC,CAAC;IACX,CAAC;;uHA3DU,yBAAyB;2HAAzB,yBAAyB,cAFZ,MAAM;4FAEnB,yBAAyB;kBAFrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n BehaviorSubject,\n Observable,\n Subject,\n ReplaySubject\n} from 'rxjs';\nimport { Router } from '@angular/router';\nimport { tap } from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\nexport const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';\n\nexport interface IAuthenticationService {\n isAuthenticated$: Observable<boolean | null>;\n\n requestPasswordReset(email: string): Promise<boolean>;\n\n sendPasswordReset(password: string, token: string): Promise<boolean>;\n\n signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean>;\n\n signOut(): Promise<void>;\n\n}\n\nexport function TimeoutPromise<T>(callback: (resolve: (value: T) => void, reject: (error: any) => void) => void, ms: number): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n\n setTimeout(() => {\n callback(resolve, reject);\n }, ms);\n\n });\n}\n\nexport function TimeoutResolve<T>(value: T, ms: number): Promise<T> {\n return new Promise(resolve => {\n\n setTimeout(() => {\n resolve(value);\n }, ms);\n\n });\n}\n\nexport enum AuthenticationEventType {\n OnAuthSuccess = 'on-auth-success',\n OnAuthError = 'on-auth-error',\n OnLogout = 'on-logout',\n}\n\nexport interface AuthenticationEvent extends Record<string, any> {\n type: AuthenticationEventType;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RxapAuthenticationService implements IAuthenticationService {\n\n public isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n public readonly events$ = new ReplaySubject<AuthenticationEvent>();\n\n constructor() {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));\n }\n\n public requestPasswordReset(email: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(email !== 'fail@fail', 2500);\n }\n\n public sendPasswordReset(password: string, token: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(password !== 'fail', 2500);\n }\n\n public async signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutPromise((resolve, reject) => {\n\n const login = password !== 'fail';\n this.isAuthenticated$.next(login);\n if (login) {\n if (remember) {\n localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');\n }\n resolve(login);\n this.events$.next({ type: AuthenticationEventType.OnAuthSuccess });\n } else {\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n reject(new Error('Login credentials are invalid'));\n this.events$.next({ type: AuthenticationEventType.OnAuthError });\n }\n\n }, 2500);\n\n }\n\n public async signOut(): Promise<void> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated$.next(false);\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n this.events$.next({ type: AuthenticationEventType.OnLogout });\n }\n\n public signInWithProvider(provider: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return Promise.resolve(false);\n }\n\n public isAuthenticated(): Promise<boolean> {\n return TimeoutPromise((resolve) => {\n resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');\n }, 2500);\n }\n\n}\n"]}
|
|
@@ -643,5 +643,5 @@ const AuthenticationRoutes = [
|
|
|
643
643
|
* Generated bundle index. Do not edit.
|
|
644
644
|
*/
|
|
645
645
|
|
|
646
|
-
export { AuthenticationContainerComponent, AuthenticationContainerComponentModule, AuthenticationRoutes, LoadingComponent, LoadingComponentModule, LoginComponent, LoginComponentModule, LoginForm, LoginFormProviders, LoginFormSubmitMethod, LoginFormSubmitSuccessful, ResetPasswordComponent, ResetPasswordComponentModule, RxapAuthenticationModule };
|
|
646
|
+
export { AuthenticationContainerComponent, AuthenticationContainerComponentModule, AuthenticationRoutes, LoadingComponent, LoadingComponentModule, LoginComponent, LoginComponentModule, LoginForm, LoginFormProviders, LoginFormSubmitMethod, LoginFormSubmitSuccessful, ResetPasswordComponent, ResetPasswordComponentModule, RxapAuthenticationModule, fadeAnimation };
|
|
647
647
|
//# sourceMappingURL=rxap-authentication-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-authentication-components.js","sources":["../../../../libs/authentication/components/src/lib/login/login.form.ts","../../../../libs/authentication/components/src/lib/fade-animation.ts","../../../../libs/authentication/components/src/lib/login/login.component.ts","../../../../libs/authentication/components/src/lib/login/login.component.html","../../../../libs/authentication/components/src/lib/login/login.component.module.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.html","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.module.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.form.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.html","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.module.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.html","../../../../libs/authentication/components/src/lib/loading/loading.component.module.ts","../../../../libs/authentication/components/src/lib/authentication.module.ts","../../../../libs/authentication/components/src/lib/routes.ts","../../../../libs/authentication/components/src/rxap-authentication-components.ts"],"sourcesContent":["import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport {\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n RXAP_FORM_DEFINITION,\n FormDefinition,\n RxapForm,\n UseFormControl,\n RxapFormControl,\n RxapFormGroup,\n FormSubmitMethod,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitSuccessfulMethod,\n RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { ConfigService } from '@rxap/config';\nimport { RxapOnInit } from '@rxap/utilities';\nimport { Router } from '@angular/router';\n\nexport interface ILoginForm {\n email: string;\n password: string;\n}\n\n@RxapForm({\n id: 'rxap-login',\n providers: [\n {\n provide: ConfigService,\n useExisting: ConfigService,\n },\n ],\n})\n@Injectable()\nexport class LoginForm implements FormType<ILoginForm>, RxapOnInit {\n public rxapFormGroup!: RxapFormGroup;\n\n public loading = true;\n public loginFailed = false;\n\n @UseFormControl({\n validators: [Validators.required, Validators.email],\n })\n public email!: RxapFormControl<string>;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n state: true,\n })\n public remember!: RxapFormControl;\n\n constructor(public readonly config: ConfigService<any>) {}\n\n public rxapOnInit() {\n const email = this.config.get<string>('authentication.default.email');\n if (email) {\n this.email.setValue(email);\n }\n const password = this.config.get<string>('authentication.default.password');\n if (password) {\n this.password.setValue(password);\n }\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(private readonly authentication: RxapAuthenticationService) {}\n\n public call(value: {\n email: string;\n password: string;\n remember: boolean;\n }): Promise<any> {\n return this.authentication.signInWithEmailAndPassword(\n value.email,\n value.password,\n value.remember\n );\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitSuccessful\n implements FormSubmitSuccessfulMethod<any>\n{\n constructor(\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(): Promise<any> {\n return this.router.navigate(['/']);\n }\n}\n\nexport const LoginFormProviders: Provider[] = [\n LoginForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<ILoginForm>(LoginForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder) => builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: LoginFormSubmitMethod,\n },\n {\n provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n useClass: LoginFormSubmitSuccessful,\n },\n];\n","// the fade-in/fade-out animation.\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\n\nexport const fadeAnimation = trigger('fadeAnimation', [\n\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [\n style({ opacity: 0 }),\n animate(300)\n ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(\n ':leave',\n animate(300, style({ opacity: 0 }))\n )\n]);\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { LoginFormProviders } from './login.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { ToggleSubject } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-login',\n templateUrl: './login.component.html',\n styleUrls: [ './login.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n LoginFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class LoginComponent {\n\n public readonly requestingPasswordReset$ = new ToggleSubject();\n\n constructor(\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar\n ) {}\n\n public async requestPasswordReset(email: string) {\n this.requestingPasswordReset$.enable();\n try {\n const result = await this.authentication.requestPasswordReset(email);\n\n if (!result) {\n this.snackBar.open(\n 'The password reset request result is falsy',\n undefined,\n {\n duration: 5000,\n panelClass: 'error'\n }\n );\n } else {\n this.snackBar.open(\n 'The password reset request was successful',\n undefined,\n {\n duration: 3000\n }\n );\n }\n\n } catch (e) {\n this.snackBar.open(\n e.message,\n undefined,\n {\n duration: 3000,\n panelClass: 'error'\n }\n );\n } finally {\n this.requestingPasswordReset$.disable();\n }\n\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { LoginComponent } from './login.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatInputModule } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [ LoginComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatCardModule,\n MatSnackBarModule,\n MatProgressSpinnerModule,\n MatInputModule,\n ReactiveFormsModule,\n RxapFormsModule,\n MatCheckboxModule,\n MatIconModule,\n MatTooltipModule,\n MatProgressBarModule\n ],\n exports: [ LoginComponent ]\n})\nexport class LoginComponentModule {}\n","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n style,\n trigger,\n transition,\n animate\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-authentication-container',\n templateUrl: './authentication-container.component.html',\n styleUrls: [ './authentication-container.component.scss' ],\n host: { class: 'rxap-authentication-container' },\n animations: [\n trigger('routeAnimations', [\n transition(\n ':enter',\n [\n style({ opacity: 0 }),\n animate('512ms', style({ opacity: 1 }))\n ]\n ),\n transition(\n ':leave',\n [\n style({ opacity: 1 }),\n animate('512ms', style({ opacity: 0 }))\n ]\n )\n ])\n ]\n})\nexport class AuthenticationContainerComponent {\n\n public prepareRoute(outlet: RouterOutlet) {\n return outlet.isActivated ? outlet.activatedRoute : 'true';\n }\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { AuthenticationContainerComponent } from './authentication-container.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { RouterModule } from '@angular/router';\nimport { MatToolbarModule } from '@angular/material/toolbar';\n\n@NgModule({\n declarations: [ AuthenticationContainerComponent ],\n exports: [ AuthenticationContainerComponent ],\n imports: [\n FlexLayoutModule,\n MatToolbarModule,\n RouterModule\n ]\n})\nexport class AuthenticationContainerComponentModule {}\n","import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { map, switchMap, tap, take } from 'rxjs/operators';\nimport {\n UseFormControl,\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n FormDefinition,\n RXAP_FORM_DEFINITION,\n RxapForm,\n RxapFormControl,\n RxapFormGroup,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitMethod,\n ControlSetValue,\n ControlValidator,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\nexport const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';\n\n@Injectable()\nexport class ResetPasswordFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(\n @Inject(ActivatedRoute)\n private readonly route: ActivatedRoute,\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(value: { password: string }): boolean | Promise<boolean> {\n return this.route.params\n .pipe(\n take(1),\n map((params) => params.token),\n switchMap((token) =>\n this.authentication.sendPasswordReset(value.password, token)\n ),\n tap((result) => {\n if (result) {\n this.snackBar.open('Password reset was successful.', undefined, {\n duration: 3500,\n });\n return this.router.navigate(['/']);\n }\n return Promise.resolve();\n })\n )\n .toPromise();\n }\n}\n\nexport interface IResetPasswordForm {\n password: string;\n passwordRepeat: string;\n}\n\n@RxapForm({\n id: RXAP_RESET_PASSWORD_FORM,\n})\n@Injectable()\nexport class ResetPasswordForm implements FormType<IResetPasswordForm> {\n public rxapFormGroup!: RxapFormGroup;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public passwordRepeat!: RxapFormControl;\n\n @ControlValidator('passwordRepeat')\n public passwordEqual() {\n if (this.password.value !== this.passwordRepeat.value) {\n return { equal: 'passwords are not equal' };\n }\n return null;\n }\n\n @ControlSetValue('password')\n public resetRepeat() {\n this.passwordRepeat.reset();\n }\n}\n\nexport const ResetPasswordFormProviders: Provider[] = [\n ResetPasswordForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<IResetPasswordForm>(ResetPasswordForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder<IResetPasswordForm>) =>\n builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: ResetPasswordFormSubmitMethod,\n },\n];\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { ResetPasswordFormProviders } from './reset-password.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\n\n@Component({\n selector: 'rxap-reset-password',\n templateUrl: './reset-password.component.html',\n styleUrls: [ './reset-password.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ResetPasswordFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class ResetPasswordComponent {}\n","<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","import { NgModule } from '@angular/core';\nimport { ResetPasswordComponent } from './reset-password.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatInputModule } from '@angular/material/input';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [\n ResetPasswordComponent\n ],\n imports: [\n MatCardModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n MatProgressSpinnerModule,\n MatInputModule,\n RxapFormsModule,\n MatIconModule,\n ReactiveFormsModule,\n MatProgressBarModule,\n MatSnackBarModule,\n ],\n exports: [\n ResetPasswordComponent\n ]\n})\nexport class ResetPasswordComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { filter, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'rxap-auth-loading',\n templateUrl: './loading.component.html',\n styleUrls: ['./loading.component.scss'],\n host: { class: 'rxap-auth-loading' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LoadingComponent implements OnInit, OnDestroy {\n public subscription?: Subscription;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public readonly authentication: RxapAuthenticationService,\n @Inject(Router)\n public readonly router: Router\n ) {}\n\n public ngOnInit(): void {\n // TODO : remove the concept of isAuthenticated$\n if (this.authentication.isAuthenticated$) {\n this.subscription = this.authentication.isAuthenticated$\n .pipe(\n filter((isAuthenticated) => isAuthenticated !== null),\n tap(() => this.router.navigate(['/', 'authentication', 'login']))\n )\n .subscribe();\n }\n }\n\n public ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n","import { NgModule } from '@angular/core';\nimport { LoadingComponent } from './loading.component';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [\n LoadingComponent\n ],\n imports: [\n MatProgressBarModule\n ],\n exports: [\n LoadingComponent\n ]\n})\nexport class LoadingComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { LoginComponentModule } from './login/login.component.module';\nimport { AuthenticationContainerComponentModule } from './authentication-container/authentication-container.component.module';\nimport { ResetPasswordComponentModule } from './reset-password/reset-password.component.module';\nimport { LoadingComponentModule } from './loading/loading.component.module';\n\n@NgModule({\n exports: [\n LoginComponentModule,\n AuthenticationContainerComponentModule,\n ResetPasswordComponentModule,\n LoadingComponentModule\n ]\n})\nexport class RxapAuthenticationModule {}\n","import { Routes } from '@angular/router';\nimport { LoginComponent } from './login/login.component';\nimport { AuthenticationContainerComponent } from './authentication-container/authentication-container.component';\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\nimport { LoadingComponent } from './loading/loading.component';\nimport { RxapAuthenticationGuard } from '@rxap/authentication';\n\nexport const AuthenticationRoutes: Routes = [\n {\n path: 'authentication',\n component: AuthenticationContainerComponent,\n children: [\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'login',\n component: LoginComponent\n },\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'reset-password/:token',\n component: ResetPasswordComponent\n },\n {\n path: 'loading',\n component: LoadingComponent\n },\n {\n path: '**',\n redirectTo: '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,aAGpB,gBAAgB;qHAGP,sBAAsB,YAPnB;YACZ,oBAAoB;SACrB;4FAKU,sBAAsB;kBAXlC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,gBAAgB;qBACjB;oBACD,OAAO,EAAO;wBACZ,oBAAoB;qBACrB;oBACD,OAAO,EAAO;wBACZ,gBAAgB;qBACjB;iBACF;;;MCDY,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,YANjC,oBAAoB;QACpB,sCAAsC;QACtC,4BAA4B;QAC5B,sBAAsB;uHAGb,wBAAwB,YANjC,oBAAoB;QACpB,sCAAsC;QACtC,4BAA4B;QAC5B,sBAAsB;4FAGb,wBAAwB;kBARpC,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,oBAAoB;wBACpB,sCAAsC;wBACtC,4BAA4B;wBAC5B,sBAAsB;qBACvB;iBACF;;;MCNY,oBAAoB,GAAW;IAC1C;QACE,IAAI,EAAO,gBAAgB;QAC3B,SAAS,EAAE,gCAAgC;QAC3C,QAAQ,EAAG;YACT;gBACE,WAAW,EAAE,CAAE,uBAAuB,CAAE;gBACxC,IAAI,EAAS,OAAO;gBACpB,SAAS,EAAI,cAAc;aAC5B;YACD;gBACE,WAAW,EAAE,CAAE,uBAAuB,CAAE;gBACxC,IAAI,EAAO,uBAAuB;gBAClC,SAAS,EAAE,sBAAsB;aAClC;YACD;gBACE,IAAI,EAAO,SAAS;gBACpB,SAAS,EAAE,gBAAgB;aAC5B;YACD;gBACE,IAAI,EAAQ,IAAI;gBAChB,UAAU,EAAE,OAAO;aACpB;SACF;KACF;;;AC/BH;;;;;;"}
|
|
1
|
+
{"version":3,"file":"rxap-authentication-components.js","sources":["../../../../libs/authentication/components/src/lib/login/login.form.ts","../../../../libs/authentication/components/src/lib/fade-animation.ts","../../../../libs/authentication/components/src/lib/login/login.component.ts","../../../../libs/authentication/components/src/lib/login/login.component.html","../../../../libs/authentication/components/src/lib/login/login.component.module.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.ts","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.html","../../../../libs/authentication/components/src/lib/authentication-container/authentication-container.component.module.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.form.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.ts","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.html","../../../../libs/authentication/components/src/lib/reset-password/reset-password.component.module.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.ts","../../../../libs/authentication/components/src/lib/loading/loading.component.html","../../../../libs/authentication/components/src/lib/loading/loading.component.module.ts","../../../../libs/authentication/components/src/lib/authentication.module.ts","../../../../libs/authentication/components/src/lib/routes.ts","../../../../libs/authentication/components/src/rxap-authentication-components.ts"],"sourcesContent":["import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport {\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n RXAP_FORM_DEFINITION,\n FormDefinition,\n RxapForm,\n UseFormControl,\n RxapFormControl,\n RxapFormGroup,\n FormSubmitMethod,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitSuccessfulMethod,\n RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { ConfigService } from '@rxap/config';\nimport { RxapOnInit } from '@rxap/utilities';\nimport { Router } from '@angular/router';\n\nexport interface ILoginForm {\n email: string;\n password: string;\n}\n\n@RxapForm({\n id: 'rxap-login',\n providers: [\n {\n provide: ConfigService,\n useExisting: ConfigService,\n },\n ],\n})\n@Injectable()\nexport class LoginForm implements FormType<ILoginForm>, RxapOnInit {\n public rxapFormGroup!: RxapFormGroup;\n\n public loading = true;\n public loginFailed = false;\n\n @UseFormControl({\n validators: [Validators.required, Validators.email],\n })\n public email!: RxapFormControl<string>;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n state: true,\n })\n public remember!: RxapFormControl;\n\n constructor(public readonly config: ConfigService<any>) {}\n\n public rxapOnInit() {\n const email = this.config.get<string>('authentication.default.email');\n if (email) {\n this.email.setValue(email);\n }\n const password = this.config.get<string>('authentication.default.password');\n if (password) {\n this.password.setValue(password);\n }\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(private readonly authentication: RxapAuthenticationService) {}\n\n public call(value: {\n email: string;\n password: string;\n remember: boolean;\n }): Promise<any> {\n return this.authentication.signInWithEmailAndPassword(\n value.email,\n value.password,\n value.remember\n );\n }\n}\n\n@Injectable()\nexport class LoginFormSubmitSuccessful\n implements FormSubmitSuccessfulMethod<any>\n{\n constructor(\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(): Promise<any> {\n return this.router.navigate(['/']);\n }\n}\n\nexport const LoginFormProviders: Provider[] = [\n LoginForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<ILoginForm>(LoginForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder) => builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: LoginFormSubmitMethod,\n },\n {\n provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,\n useClass: LoginFormSubmitSuccessful,\n },\n];\n","// the fade-in/fade-out animation.\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\n\nexport const fadeAnimation = trigger('fadeAnimation', [\n\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [\n style({ opacity: 0 }),\n animate(300)\n ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(\n ':leave',\n animate(300, style({ opacity: 0 }))\n )\n]);\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { LoginFormProviders } from './login.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { ToggleSubject } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-login',\n templateUrl: './login.component.html',\n styleUrls: [ './login.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n LoginFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class LoginComponent {\n\n public readonly requestingPasswordReset$ = new ToggleSubject();\n\n constructor(\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar\n ) {}\n\n public async requestPasswordReset(email: string) {\n this.requestingPasswordReset$.enable();\n try {\n const result = await this.authentication.requestPasswordReset(email);\n\n if (!result) {\n this.snackBar.open(\n 'The password reset request result is falsy',\n undefined,\n {\n duration: 5000,\n panelClass: 'error'\n }\n );\n } else {\n this.snackBar.open(\n 'The password reset request was successful',\n undefined,\n {\n duration: 3000\n }\n );\n }\n\n } catch (e) {\n this.snackBar.open(\n e.message,\n undefined,\n {\n duration: 3000,\n panelClass: 'error'\n }\n );\n } finally {\n this.requestingPasswordReset$.disable();\n }\n\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { LoginComponent } from './login.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatInputModule } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [ LoginComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatButtonModule,\n MatCardModule,\n MatSnackBarModule,\n MatProgressSpinnerModule,\n MatInputModule,\n ReactiveFormsModule,\n RxapFormsModule,\n MatCheckboxModule,\n MatIconModule,\n MatTooltipModule,\n MatProgressBarModule\n ],\n exports: [ LoginComponent ]\n})\nexport class LoginComponentModule {}\n","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n style,\n trigger,\n transition,\n animate\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-authentication-container',\n templateUrl: './authentication-container.component.html',\n styleUrls: [ './authentication-container.component.scss' ],\n host: { class: 'rxap-authentication-container' },\n animations: [\n trigger('routeAnimations', [\n transition(\n ':enter',\n [\n style({ opacity: 0 }),\n animate('512ms', style({ opacity: 1 }))\n ]\n ),\n transition(\n ':leave',\n [\n style({ opacity: 1 }),\n animate('512ms', style({ opacity: 0 }))\n ]\n )\n ])\n ]\n})\nexport class AuthenticationContainerComponent {\n\n public prepareRoute(outlet: RouterOutlet) {\n return outlet.isActivated ? outlet.activatedRoute : 'true';\n }\n\n}\n","<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","import { NgModule } from '@angular/core';\nimport { AuthenticationContainerComponent } from './authentication-container.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { RouterModule } from '@angular/router';\nimport { MatToolbarModule } from '@angular/material/toolbar';\n\n@NgModule({\n declarations: [ AuthenticationContainerComponent ],\n exports: [ AuthenticationContainerComponent ],\n imports: [\n FlexLayoutModule,\n MatToolbarModule,\n RouterModule\n ]\n})\nexport class AuthenticationContainerComponentModule {}\n","import {\n Injectable,\n Provider,\n Injector,\n INJECTOR,\n Inject,\n} from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { map, switchMap, tap, take } from 'rxjs/operators';\nimport {\n UseFormControl,\n RxapFormBuilder,\n RXAP_FORM_DEFINITION_BUILDER,\n FormDefinition,\n RXAP_FORM_DEFINITION,\n RxapForm,\n RxapFormControl,\n RxapFormGroup,\n RXAP_FORM_SUBMIT_METHOD,\n FormSubmitMethod,\n ControlSetValue,\n ControlValidator,\n FormType,\n} from '@rxap/forms';\nimport { Validators } from '@angular/forms';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\nexport const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';\n\n@Injectable()\nexport class ResetPasswordFormSubmitMethod implements FormSubmitMethod<any> {\n constructor(\n @Inject(ActivatedRoute)\n private readonly route: ActivatedRoute,\n @Inject(RxapAuthenticationService)\n private readonly authentication: RxapAuthenticationService,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Inject(Router)\n private readonly router: Router\n ) {}\n\n public call(value: { password: string }): boolean | Promise<boolean> {\n return this.route.params\n .pipe(\n take(1),\n map((params) => params.token),\n switchMap((token) =>\n this.authentication.sendPasswordReset(value.password, token)\n ),\n tap((result) => {\n if (result) {\n this.snackBar.open('Password reset was successful.', undefined, {\n duration: 3500,\n });\n return this.router.navigate(['/']);\n }\n return Promise.resolve();\n })\n )\n .toPromise();\n }\n}\n\nexport interface IResetPasswordForm {\n password: string;\n passwordRepeat: string;\n}\n\n@RxapForm({\n id: RXAP_RESET_PASSWORD_FORM,\n})\n@Injectable()\nexport class ResetPasswordForm implements FormType<IResetPasswordForm> {\n public rxapFormGroup!: RxapFormGroup;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public password!: RxapFormControl;\n\n @UseFormControl({\n validators: [Validators.required],\n })\n public passwordRepeat!: RxapFormControl;\n\n @ControlValidator('passwordRepeat')\n public passwordEqual() {\n if (this.password.value !== this.passwordRepeat.value) {\n return { equal: 'passwords are not equal' };\n }\n return null;\n }\n\n @ControlSetValue('password')\n public resetRepeat() {\n this.passwordRepeat.reset();\n }\n}\n\nexport const ResetPasswordFormProviders: Provider[] = [\n ResetPasswordForm,\n {\n provide: RXAP_FORM_DEFINITION_BUILDER,\n useFactory: (injector: Injector) =>\n new RxapFormBuilder<IResetPasswordForm>(ResetPasswordForm, injector),\n deps: [INJECTOR],\n },\n {\n provide: RXAP_FORM_DEFINITION,\n useFactory: (builder: RxapFormBuilder<IResetPasswordForm>) =>\n builder.build(),\n deps: [RXAP_FORM_DEFINITION_BUILDER],\n },\n {\n provide: RXAP_FORM_SUBMIT_METHOD,\n useClass: ResetPasswordFormSubmitMethod,\n },\n];\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { ResetPasswordFormProviders } from './reset-password.form';\nimport {\n ErrorStateMatcher,\n ShowOnDirtyErrorStateMatcher\n} from '@angular/material/core';\nimport { fadeAnimation } from '../fade-animation';\n\n@Component({\n selector: 'rxap-reset-password',\n templateUrl: './reset-password.component.html',\n styleUrls: [ './reset-password.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ResetPasswordFormProviders,\n {\n provide: ErrorStateMatcher,\n useClass: ShowOnDirtyErrorStateMatcher\n }\n ],\n animations: [\n fadeAnimation\n ]\n})\nexport class ResetPasswordComponent {}\n","<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","import { NgModule } from '@angular/core';\nimport { ResetPasswordComponent } from './reset-password.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatInputModule } from '@angular/material/input';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [\n ResetPasswordComponent\n ],\n imports: [\n MatCardModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n MatProgressSpinnerModule,\n MatInputModule,\n RxapFormsModule,\n MatIconModule,\n ReactiveFormsModule,\n MatProgressBarModule,\n MatSnackBarModule,\n ],\n exports: [\n ResetPasswordComponent\n ]\n})\nexport class ResetPasswordComponentModule {}\n","import {\n Component,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport { filter, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'rxap-auth-loading',\n templateUrl: './loading.component.html',\n styleUrls: ['./loading.component.scss'],\n host: { class: 'rxap-auth-loading' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LoadingComponent implements OnInit, OnDestroy {\n public subscription?: Subscription;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public readonly authentication: RxapAuthenticationService,\n @Inject(Router)\n public readonly router: Router\n ) {}\n\n public ngOnInit(): void {\n // TODO : remove the concept of isAuthenticated$\n if (this.authentication.isAuthenticated$) {\n this.subscription = this.authentication.isAuthenticated$\n .pipe(\n filter((isAuthenticated) => isAuthenticated !== null),\n tap(() => this.router.navigate(['/', 'authentication', 'login']))\n )\n .subscribe();\n }\n }\n\n public ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n","import { NgModule } from '@angular/core';\nimport { LoadingComponent } from './loading.component';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n\n@NgModule({\n declarations: [\n LoadingComponent\n ],\n imports: [\n MatProgressBarModule\n ],\n exports: [\n LoadingComponent\n ]\n})\nexport class LoadingComponentModule {}\n","import { NgModule } from '@angular/core';\nimport { LoginComponentModule } from './login/login.component.module';\nimport { AuthenticationContainerComponentModule } from './authentication-container/authentication-container.component.module';\nimport { ResetPasswordComponentModule } from './reset-password/reset-password.component.module';\nimport { LoadingComponentModule } from './loading/loading.component.module';\n\n@NgModule({\n exports: [\n LoginComponentModule,\n AuthenticationContainerComponentModule,\n ResetPasswordComponentModule,\n LoadingComponentModule\n ]\n})\nexport class RxapAuthenticationModule {}\n","import { Routes } from '@angular/router';\nimport { LoginComponent } from './login/login.component';\nimport { AuthenticationContainerComponent } from './authentication-container/authentication-container.component';\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\nimport { LoadingComponent } from './loading/loading.component';\nimport { RxapAuthenticationGuard } from '@rxap/authentication';\n\nexport const AuthenticationRoutes: Routes = [\n {\n path: 'authentication',\n component: AuthenticationContainerComponent,\n children: [\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'login',\n component: LoginComponent\n },\n {\n canActivate: [ RxapAuthenticationGuard ],\n path: 'reset-password/:token',\n component: ResetPasswordComponent\n },\n {\n path: 'loading',\n component: LoadingComponent\n },\n {\n path: '**',\n redirectTo: 'login'\n }\n ]\n }\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mapp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;mBAAC;oBACR,YAAY,EAAE;wBACZ,gBAAgB;qBACjB;oBACD,OAAO,EAAO;wBACZ,oBAAoB;qBACrB;oBACD,OAAO,EAAO;wBACZ,gBAAgB;qBACjB;iBACF;;;MCDY,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,YANjC,oBAAoB;QACpB,sCAAsC;QACtC,4BAA4B;QAC5B,sBAAsB;uHAGb,wBAAwB,YANjC,oBAAoB;QACpB,sCAAsC;QACtC,4BAA4B;QAC5B,sBAAsB;4FAGb,wBAAwB;kBARpC,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,oBAAoB;wBACpB,sCAAsC;wBACtC,4BAA4B;wBAC5B,sBAAsB;qBACvB;iBACF;;;MCNY,oBAAoB,GAAW;IAC1C;QACE,IAAI,EAAO,gBAAgB;QAC3B,SAAS,EAAE,gCAAgC;QAC3C,QAAQ,EAAG;YACT;gBACE,WAAW,EAAE,CAAE,uBAAuB,CAAE;gBACxC,IAAI,EAAS,OAAO;gBACpB,SAAS,EAAI,cAAc;aAC5B;YACD;gBACE,WAAW,EAAE,CAAE,uBAAuB,CAAE;gBACxC,IAAI,EAAO,uBAAuB;gBAClC,SAAS,EAAE,sBAAsB;aAClC;YACD;gBACE,IAAI,EAAO,SAAS;gBACpB,SAAS,EAAE,gBAAgB;aAC5B;YACD;gBACE,IAAI,EAAQ,IAAI;gBAChB,UAAU,EAAE,OAAO;aACpB;SACF;KACF;;;AC/BH;;;;;;"}
|
|
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { Injectable, InjectionToken, Inject, Optional, EventEmitter, Directive, Output, HostListener, NgModule } from '@angular/core';
|
|
4
4
|
import * as i2 from '@angular/router';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
6
|
-
import { BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
7
7
|
import { tap } from 'rxjs/operators';
|
|
8
8
|
|
|
9
9
|
const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';
|
|
@@ -21,10 +21,17 @@ function TimeoutResolve(value, ms) {
|
|
|
21
21
|
}, ms);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
var AuthenticationEventType;
|
|
25
|
+
(function (AuthenticationEventType) {
|
|
26
|
+
AuthenticationEventType["OnAuthSuccess"] = "on-auth-success";
|
|
27
|
+
AuthenticationEventType["OnAuthError"] = "on-auth-error";
|
|
28
|
+
AuthenticationEventType["OnLogout"] = "on-logout";
|
|
29
|
+
})(AuthenticationEventType || (AuthenticationEventType = {}));
|
|
24
30
|
/* ignore coverage */
|
|
25
31
|
class RxapAuthenticationService {
|
|
26
32
|
constructor() {
|
|
27
33
|
this.isAuthenticated$ = new BehaviorSubject(null);
|
|
34
|
+
this.events$ = new ReplaySubject();
|
|
28
35
|
console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');
|
|
29
36
|
this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));
|
|
30
37
|
}
|
|
@@ -47,10 +54,12 @@ class RxapAuthenticationService {
|
|
|
47
54
|
localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');
|
|
48
55
|
}
|
|
49
56
|
resolve(login);
|
|
57
|
+
this.events$.next({ type: AuthenticationEventType.OnAuthSuccess });
|
|
50
58
|
}
|
|
51
59
|
else {
|
|
52
60
|
localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);
|
|
53
61
|
reject(new Error('Login credentials are invalid'));
|
|
62
|
+
this.events$.next({ type: AuthenticationEventType.OnAuthError });
|
|
54
63
|
}
|
|
55
64
|
}, 2500);
|
|
56
65
|
});
|
|
@@ -60,6 +69,7 @@ class RxapAuthenticationService {
|
|
|
60
69
|
console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');
|
|
61
70
|
this.isAuthenticated$.next(false);
|
|
62
71
|
localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);
|
|
72
|
+
this.events$.next({ type: AuthenticationEventType.OnLogout });
|
|
63
73
|
});
|
|
64
74
|
}
|
|
65
75
|
signInWithProvider(provider) {
|
|
@@ -303,5 +313,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
303
313
|
* Generated bundle index. Do not edit.
|
|
304
314
|
*/
|
|
305
315
|
|
|
306
|
-
export { AuthenticationRoutingService, RXAP_AUTHENTICATION_DEACTIVATED, RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, RegisterService, RxapAuthenticationGuard, RxapAuthenticationService, SignOutDirective, SignOutDirectiveModule, TimeoutPromise, TimeoutResolve, UserService };
|
|
316
|
+
export { AuthenticationEventType, AuthenticationRoutingService, RXAP_AUTHENTICATION_DEACTIVATED, RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, RegisterService, RxapAuthenticationGuard, RxapAuthenticationService, SignOutDirective, SignOutDirectiveModule, TimeoutPromise, TimeoutResolve, UserService };
|
|
307
317
|
//# sourceMappingURL=rxap-authentication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-authentication.js","sources":["../../../../libs/authentication/src/lib/authentication.service.ts","../../../../libs/authentication/src/lib/tokens.ts","../../../../libs/authentication/src/lib/authentication.guard.ts","../../../../libs/authentication/src/lib/register.service.ts","../../../../libs/authentication/src/lib/user.service.ts","../../../../libs/authentication/src/lib/authentication-routing.service.ts","../../../../libs/authentication/src/lib/sign-out.directive.ts","../../../../libs/authentication/src/rxap-authentication.ts"],"sourcesContent":["import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n BehaviorSubject,\n Observable\n} from 'rxjs';\nimport { Router } from '@angular/router';\nimport { tap } from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\nexport const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';\n\nexport interface IAuthenticationService {\n isAuthenticated$: Observable<boolean | null>;\n\n requestPasswordReset(email: string): Promise<boolean>;\n\n sendPasswordReset(password: string, token: string): Promise<boolean>;\n\n signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean>;\n\n signOut(): Promise<void>;\n\n}\n\nexport function TimeoutPromise<T>(callback: (resolve: (value: T) => void, reject: (error: any) => void) => void, ms: number): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n\n setTimeout(() => {\n callback(resolve, reject);\n }, ms);\n\n });\n}\n\nexport function TimeoutResolve<T>(value: T, ms: number): Promise<T> {\n return new Promise(resolve => {\n\n setTimeout(() => {\n resolve(value);\n }, ms);\n\n });\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RxapAuthenticationService implements IAuthenticationService {\n\n public isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n constructor() {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));\n }\n\n public requestPasswordReset(email: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(email !== 'fail@fail', 2500);\n }\n\n public sendPasswordReset(password: string, token: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(password !== 'fail', 2500);\n }\n\n public async signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutPromise((resolve, reject) => {\n\n const login = password !== 'fail';\n this.isAuthenticated$.next(login);\n if (login) {\n if (remember) {\n localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');\n }\n resolve(login);\n } else {\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n reject(new Error('Login credentials are invalid'));\n }\n\n }, 2500);\n\n }\n\n public async signOut(): Promise<void> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated$.next(false);\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n }\n\n public signInWithProvider(provider: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return Promise.resolve(false);\n }\n\n public isAuthenticated(): Promise<boolean> {\n return TimeoutPromise((resolve) => {\n resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');\n }, 2500);\n }\n\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_AUTHENTICATION_DEACTIVATED = new InjectionToken<boolean>('rxap/authentication/deactivated');\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n CanActivate,\n CanActivateChild,\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n UrlTree,\n Router\n} from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { RxapAuthenticationService } from './authentication.service';\nimport {\n map,\n first,\n take\n} from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\n@Injectable({ providedIn: 'root' })\nexport class RxapAuthenticationGuard implements CanActivate, CanActivateChild {\n\n public lastUrl: string | null = null;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public authentication: RxapAuthenticationService,\n @Inject(Router)\n public router: Router,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {}\n\n public canActivate(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate', state.url);\n return this.checkAuthStatus(route, state);\n }\n\n public canActivateChild(\n childRoute: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate child', state.url);\n return this.checkAuthStatus(childRoute, state);\n }\n\n private async checkAuthStatus(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n\n if (this.deactivated) {\n return true;\n }\n\n const authenticated = await this.authentication.isAuthenticated();\n\n if (authenticated === null) {\n if (!this.lastUrl || (state.url !== '/' && !state.url.match(/authentication\\/login/))) {\n this.lastUrl = state.url;\n }\n return this.router.createUrlTree([ '/', 'authentication', 'loading' ]);\n }\n if (authenticated) {\n if (this.lastUrl && (state.url/*?*/ === '/' || state.url.match(/authentication\\/login/))) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n } else {\n if (state.url.match(/authentication/)) {\n if (state.url.match(/authentication\\/reset-password/)) {\n return true;\n }\n return this.router.createUrlTree([ '/' ]);\n } else {\n this.lastUrl = null;\n return true;\n }\n }\n } else {\n if (!state.url.match(/^\\/?authentication/)) {\n this.lastUrl = state.url;\n }\n if (state.url.match(/^\\/?authentication/)) {\n if (this.lastUrl && this.lastUrl.match(/^\\/?authentication/)) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n }\n return true;\n } else {\n return this.router.createUrlTree([ '/', 'authentication', 'login' ]);\n }\n }\n\n }\n\n private createUrlTreeToLastUrl(lastUrl: string): UrlTree {\n\n const urlMatch = lastUrl.match(/^([^?#]+)(\\?([^#]+))?(#(.+))?$/);\n\n if (urlMatch) {\n\n let queryParams: Record<string, string> = {};\n\n if (urlMatch[3]) {\n const queryParamsString = urlMatch[ 3 ];\n queryParams = queryParamsString.split('&').map(param => {\n const split = param.split('=');\n return { [ split[ 0 ] ]: split[ 1 ] };\n }).reduce((params, param) => ({ ...params, ...param }), {});\n }\n\n let fragment: string | undefined = undefined;\n\n if (urlMatch[5]) {\n fragment = urlMatch[5];\n }\n\n return this.router.createUrlTree([urlMatch[1]], {\n queryParams,\n fragment,\n });\n\n }\n\n return this.router.createUrlTree([lastUrl]);\n\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RegisterService {\n\n constructor() {\n console.warn('The default RegisterService implementation should only be used in a development environment!');\n }\n\n public register(email: string, password: string): Promise<boolean> {\n return Promise.resolve(true);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nexport interface UserProfile {\n username: string;\n firstname?: string;\n lastname?: string;\n name?: string;\n email: string;\n photoURL?: string;\n avatarUrl?: string;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class UserService<User extends UserProfile = UserProfile> {\n\n public user$ = new BehaviorSubject<User | null>(null);\n\n}\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { RxapAuthenticationService } from './authentication.service';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\nimport { tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthenticationRoutingService {\n\n constructor(\n @Inject(Router)\n private readonly router: Router,\n @Inject(RxapAuthenticationService)\n private readonly authenticationService: RxapAuthenticationService,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {\n if (!deactivated) {\n console.log('Authentication is enabled');\n this.authenticationService.isAuthenticated$.pipe(\n tap(isAuthenticated => {\n if (isAuthenticated) {\n return this.router.navigate([ '/' ]);\n } else {\n return this.router.navigate([ '/', 'authentication', 'login' ]);\n }\n })\n ).subscribe();\n }\n }\n\n}\n","import {\n Directive,\n NgModule,\n HostListener,\n EventEmitter,\n Output\n} from '@angular/core';\nimport { RxapAuthenticationService } from './authentication.service';\n\n@Directive({\n selector: '[rxapSignOut]'\n})\nexport class SignOutDirective {\n\n @Output()\n public successful = new EventEmitter<void>();\n\n @Output()\n public failure = new EventEmitter<Error>();\n\n constructor(private readonly auth: RxapAuthenticationService) { }\n\n @HostListener('click')\n public async onClick() {\n try {\n await this.auth.signOut();\n this.successful.emit();\n } catch (e) {\n this.failure.emit(e);\n }\n }\n\n}\n\n@NgModule({\n declarations: [ SignOutDirective ],\n exports: [ SignOutDirective ]\n})\nexport class SignOutDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAaa,qCAAqC,GAAG,sBAAsB;SAe3D,cAAc,CAAI,QAA6E,EAAE,EAAU;IACzH,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QAEpC,UAAU,CAAC;YACT,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;SAC3B,EAAE,EAAE,CAAC,CAAC;KAER,CAAC,CAAC;AACL,CAAC;SAEe,cAAc,CAAI,KAAQ,EAAE,EAAU;IACpD,OAAO,IAAI,OAAO,CAAC,OAAO;QAExB,UAAU,CAAC;YACT,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB,EAAE,EAAE,CAAC,CAAC;KAER,CAAC,CAAC;AACL,CAAC;AAGD;MACa,yBAAyB;IAIpC;QAFO,qBAAgB,GAAG,IAAI,eAAe,CAAiB,IAAI,CAAC,CAAC;QAGlE,OAAO,CAAC,IAAI,CAAC,wGAAwG,CAAC,CAAC;QACvH,IAAI,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;KAC7F;IAEM,oBAAoB,CAAC,KAAa;QACvC,OAAO,CAAC,IAAI,CAAC,wGAAwG,CAAC,CAAC;QACvH,OAAO,cAAc,CAAC,KAAK,KAAK,WAAW,EAAE,IAAI,CAAC,CAAC;KACpD;IAEM,iBAAiB,CAAC,QAAgB,EAAE,KAAa;QACtD,OAAO,CAAC,IAAI,CAAC,wGAAwG,CAAC,CAAC;QACvH,OAAO,cAAc,CAAC,QAAQ,KAAK,MAAM,EAAE,IAAI,CAAC,CAAC;KAClD;IAEY,0BAA0B,CAAC,KAAa,EAAE,QAAgB,EAAE,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,MAAM;iBACnB;;0BAII,MAAM;2BAAC,MAAM;;0BAEb,MAAM;2BAAC,yBAAyB;;0BAEhC,QAAQ;;0BACR,MAAM;2BAAC,+BAA+B;;;MCT9B,gBAAgB;IAQ3B,YAA6B,IAA+B;QAA/B,SAAI,GAAJ,IAAI,CAA2B;QALrD,eAAU,GAAG,IAAI,YAAY,EAAQ,CAAC;QAGtC,YAAO,GAAG,IAAI,YAAY,EAAS,CAAC;KAEsB;IAGpD,OAAO;;YAClB,IAAI;gBACF,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC1B,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;aACxB;YAAC,OAAO,CAAC,EAAE;gBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACtB;SACF;KAAA;;8GAlBU,gBAAgB;kGAAhB,gBAAgB;4FAAhB,gBAAgB;kBAH5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,eAAe;iBAC1B;6GAIQ,UAAU;sBADhB,MAAM;gBAIA,OAAO;sBADb,MAAM;gBAMM,OAAO;sBADnB,YAAY;uBAAC,OAAO;;MAgBV,sBAAsB;;oHAAtB,sBAAsB;qHAAtB,sBAAsB,iBA1BtB,gBAAgB,aAAhB,gBAAgB;qHA0BhB,sBAAsB;4FAAtB,sBAAsB;kBAJlC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,gBAAgB,CAAE;oBAClC,OAAO,EAAO,CAAE,gBAAgB,CAAE;iBACnC;;;ACrCD;;;;;;"}
|
|
1
|
+
{"version":3,"file":"rxap-authentication.js","sources":["../../../../libs/authentication/src/lib/authentication.service.ts","../../../../libs/authentication/src/lib/tokens.ts","../../../../libs/authentication/src/lib/authentication.guard.ts","../../../../libs/authentication/src/lib/register.service.ts","../../../../libs/authentication/src/lib/user.service.ts","../../../../libs/authentication/src/lib/authentication-routing.service.ts","../../../../libs/authentication/src/lib/sign-out.directive.ts","../../../../libs/authentication/src/rxap-authentication.ts"],"sourcesContent":["import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n BehaviorSubject,\n Observable,\n Subject,\n ReplaySubject\n} from 'rxjs';\nimport { Router } from '@angular/router';\nimport { tap } from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\nexport const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = 'rxap__authenticated';\n\nexport interface IAuthenticationService {\n isAuthenticated$: Observable<boolean | null>;\n\n requestPasswordReset(email: string): Promise<boolean>;\n\n sendPasswordReset(password: string, token: string): Promise<boolean>;\n\n signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean>;\n\n signOut(): Promise<void>;\n\n}\n\nexport function TimeoutPromise<T>(callback: (resolve: (value: T) => void, reject: (error: any) => void) => void, ms: number): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n\n setTimeout(() => {\n callback(resolve, reject);\n }, ms);\n\n });\n}\n\nexport function TimeoutResolve<T>(value: T, ms: number): Promise<T> {\n return new Promise(resolve => {\n\n setTimeout(() => {\n resolve(value);\n }, ms);\n\n });\n}\n\nexport enum AuthenticationEventType {\n OnAuthSuccess = 'on-auth-success',\n OnAuthError = 'on-auth-error',\n OnLogout = 'on-logout',\n}\n\nexport interface AuthenticationEvent extends Record<string, any> {\n type: AuthenticationEventType;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RxapAuthenticationService implements IAuthenticationService {\n\n public isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n public readonly events$ = new ReplaySubject<AuthenticationEvent>();\n\n constructor() {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));\n }\n\n public requestPasswordReset(email: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(email !== 'fail@fail', 2500);\n }\n\n public sendPasswordReset(password: string, token: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutResolve(password !== 'fail', 2500);\n }\n\n public async signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return TimeoutPromise((resolve, reject) => {\n\n const login = password !== 'fail';\n this.isAuthenticated$.next(login);\n if (login) {\n if (remember) {\n localStorage.setItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY, 'true');\n }\n resolve(login);\n this.events$.next({ type: AuthenticationEventType.OnAuthSuccess });\n } else {\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n reject(new Error('Login credentials are invalid'));\n this.events$.next({ type: AuthenticationEventType.OnAuthError });\n }\n\n }, 2500);\n\n }\n\n public async signOut(): Promise<void> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n this.isAuthenticated$.next(false);\n localStorage.removeItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY);\n this.events$.next({ type: AuthenticationEventType.OnLogout });\n }\n\n public signInWithProvider(provider: string): Promise<boolean> {\n console.warn('The default RxapAuthenticationService implementation should only be used in a development environment!');\n return Promise.resolve(false);\n }\n\n public isAuthenticated(): Promise<boolean> {\n return TimeoutPromise((resolve) => {\n resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');\n }, 2500);\n }\n\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_AUTHENTICATION_DEACTIVATED = new InjectionToken<boolean>('rxap/authentication/deactivated');\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport {\n CanActivate,\n CanActivateChild,\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n UrlTree,\n Router\n} from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { RxapAuthenticationService } from './authentication.service';\nimport {\n map,\n first,\n take\n} from 'rxjs/operators';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\n\n@Injectable({ providedIn: 'root' })\nexport class RxapAuthenticationGuard implements CanActivate, CanActivateChild {\n\n public lastUrl: string | null = null;\n\n constructor(\n @Inject(RxapAuthenticationService)\n public authentication: RxapAuthenticationService,\n @Inject(Router)\n public router: Router,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {}\n\n public canActivate(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate', state.url);\n return this.checkAuthStatus(route, state);\n }\n\n public canActivateChild(\n childRoute: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n console.debug('[RxapAuthenticationGuard] can activate child', state.url);\n return this.checkAuthStatus(childRoute, state);\n }\n\n private async checkAuthStatus(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Promise<UrlTree | boolean> {\n\n if (this.deactivated) {\n return true;\n }\n\n const authenticated = await this.authentication.isAuthenticated();\n\n if (authenticated === null) {\n if (!this.lastUrl || (state.url !== '/' && !state.url.match(/authentication\\/login/))) {\n this.lastUrl = state.url;\n }\n return this.router.createUrlTree([ '/', 'authentication', 'loading' ]);\n }\n if (authenticated) {\n if (this.lastUrl && (state.url/*?*/ === '/' || state.url.match(/authentication\\/login/))) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n } else {\n if (state.url.match(/authentication/)) {\n if (state.url.match(/authentication\\/reset-password/)) {\n return true;\n }\n return this.router.createUrlTree([ '/' ]);\n } else {\n this.lastUrl = null;\n return true;\n }\n }\n } else {\n if (!state.url.match(/^\\/?authentication/)) {\n this.lastUrl = state.url;\n }\n if (state.url.match(/^\\/?authentication/)) {\n if (this.lastUrl && this.lastUrl.match(/^\\/?authentication/)) {\n const lastUrl = this.lastUrl;\n this.lastUrl = null;\n return this.createUrlTreeToLastUrl(lastUrl);\n }\n return true;\n } else {\n return this.router.createUrlTree([ '/', 'authentication', 'login' ]);\n }\n }\n\n }\n\n private createUrlTreeToLastUrl(lastUrl: string): UrlTree {\n\n const urlMatch = lastUrl.match(/^([^?#]+)(\\?([^#]+))?(#(.+))?$/);\n\n if (urlMatch) {\n\n let queryParams: Record<string, string> = {};\n\n if (urlMatch[3]) {\n const queryParamsString = urlMatch[ 3 ];\n queryParams = queryParamsString.split('&').map(param => {\n const split = param.split('=');\n return { [ split[ 0 ] ]: split[ 1 ] };\n }).reduce((params, param) => ({ ...params, ...param }), {});\n }\n\n let fragment: string | undefined = undefined;\n\n if (urlMatch[5]) {\n fragment = urlMatch[5];\n }\n\n return this.router.createUrlTree([urlMatch[1]], {\n queryParams,\n fragment,\n });\n\n }\n\n return this.router.createUrlTree([lastUrl]);\n\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class RegisterService {\n\n constructor() {\n console.warn('The default RegisterService implementation should only be used in a development environment!');\n }\n\n public register(email: string, password: string): Promise<boolean> {\n return Promise.resolve(true);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nexport interface UserProfile {\n username: string;\n firstname?: string;\n lastname?: string;\n name?: string;\n email: string;\n photoURL?: string;\n avatarUrl?: string;\n}\n\n@Injectable({ providedIn: 'root' })\n/* ignore coverage */\nexport class UserService<User extends UserProfile = UserProfile> {\n\n public user$ = new BehaviorSubject<User | null>(null);\n\n}\n","import {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { RxapAuthenticationService } from './authentication.service';\nimport { RXAP_AUTHENTICATION_DEACTIVATED } from './tokens';\nimport { tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthenticationRoutingService {\n\n constructor(\n @Inject(Router)\n private readonly router: Router,\n @Inject(RxapAuthenticationService)\n private readonly authenticationService: RxapAuthenticationService,\n @Optional()\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly deactivated: boolean | null = null\n ) {\n if (!deactivated) {\n console.log('Authentication is enabled');\n this.authenticationService.isAuthenticated$.pipe(\n tap(isAuthenticated => {\n if (isAuthenticated) {\n return this.router.navigate([ '/' ]);\n } else {\n return this.router.navigate([ '/', 'authentication', 'login' ]);\n }\n })\n ).subscribe();\n }\n }\n\n}\n","import {\n Directive,\n NgModule,\n HostListener,\n EventEmitter,\n Output\n} from '@angular/core';\nimport { RxapAuthenticationService } from './authentication.service';\n\n@Directive({\n selector: '[rxapSignOut]'\n})\nexport class SignOutDirective {\n\n @Output()\n public successful = new EventEmitter<void>();\n\n @Output()\n public failure = new EventEmitter<Error>();\n\n constructor(private readonly auth: RxapAuthenticationService) { }\n\n @HostListener('click')\n public async onClick() {\n try {\n await this.auth.signOut();\n this.successful.emit();\n } catch (e) {\n this.failure.emit(e);\n }\n }\n\n}\n\n@NgModule({\n declarations: [ SignOutDirective ],\n exports: [ SignOutDirective ]\n})\nexport class SignOutDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAea,qCAAqC,GAAG,sBAAsB;SAe3D,cAAc,CAAI,QAA6E,EAAE,EAAU;IACzH,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QAEpC,UAAU,CAAC;YACT,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;SAC3B,EAAE,EAAE,CAAC,CAAC;KAER,CAAC,CAAC;AACL,CAAC;SAEe,cAAc,CAAI,KAAQ,EAAE,EAAU;IACpD,OAAO,IAAI,OAAO,CAAC,OAAO;QAExB,UAAU,CAAC;YACT,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB,EAAE,EAAE,CAAC,CAAC;KAER,CAAC,CAAC;AACL,CAAC;IAEW;AAAZ,WAAY,uBAAuB;IACjC,4DAAiC,CAAA;IACjC,wDAA6B,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AA2B;QALrD,eAAU,GAAG,IAAI,YAAY,EAAQ,CAAC;QAGtC,YAAO,GAAG,IAAI,YAAY,EAAS,CAAC;KAEsB;IAGpD,OAAO;;YAClB,IAAI;gBACF,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC1B,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;aACxB;YAAC,OAAO,CAAC,EAAE;gBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACtB;SACF;KAAA;;8GAlBU,gBAAgB;kGAAhB,gBAAgB;4FAAhB,gBAAgB;kBAH5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,eAAe;iBAC1B;6GAIQ,UAAU;sBADhB,MAAM;gBAIA,OAAO;sBADb,MAAM;gBAMM,OAAO;sBADnB,YAAY;uBAAC,OAAO;;MAgBV,sBAAsB;;oHAAtB,sBAAsB;qHAAtB,sBAAsB,iBA1BtB,gBAAgB,aAAhB,gBAAgB;qHA0BhB,sBAAsB;4FAAtB,sBAAsB;kBAJlC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,gBAAgB,CAAE;oBAClC,OAAO,EAAO,CAAE,gBAAgB,CAAE;iBACnC;;;ACrCD;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
1
|
+
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY = "rxap__authenticated";
|
|
4
4
|
export interface IAuthenticationService {
|
|
@@ -10,8 +10,17 @@ export interface IAuthenticationService {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function TimeoutPromise<T>(callback: (resolve: (value: T) => void, reject: (error: any) => void) => void, ms: number): Promise<T>;
|
|
12
12
|
export declare function TimeoutResolve<T>(value: T, ms: number): Promise<T>;
|
|
13
|
+
export declare enum AuthenticationEventType {
|
|
14
|
+
OnAuthSuccess = "on-auth-success",
|
|
15
|
+
OnAuthError = "on-auth-error",
|
|
16
|
+
OnLogout = "on-logout"
|
|
17
|
+
}
|
|
18
|
+
export interface AuthenticationEvent extends Record<string, any> {
|
|
19
|
+
type: AuthenticationEventType;
|
|
20
|
+
}
|
|
13
21
|
export declare class RxapAuthenticationService implements IAuthenticationService {
|
|
14
22
|
isAuthenticated$: BehaviorSubject<boolean | null>;
|
|
23
|
+
readonly events$: ReplaySubject<AuthenticationEvent>;
|
|
15
24
|
constructor();
|
|
16
25
|
requestPasswordReset(email: string): Promise<boolean>;
|
|
17
26
|
sendPasswordReset(password: string, token: string): Promise<boolean>;
|