@rxap/authentication 12.1.5-next.0 → 12.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/bundles/rxap-authentication-components.umd.js +54 -55
  2. package/bundles/rxap-authentication-components.umd.js.map +1 -1
  3. package/bundles/rxap-authentication.umd.js +27 -29
  4. package/bundles/rxap-authentication.umd.js.map +1 -1
  5. package/components/public_api.d.ts +1 -0
  6. package/esm2015/components/lib/authentication-container/authentication-container.component.js +3 -3
  7. package/esm2015/components/lib/authentication-container/authentication-container.component.js.map +1 -1
  8. package/esm2015/components/lib/authentication-container/authentication-container.component.module.js +4 -4
  9. package/esm2015/components/lib/authentication-container/authentication-container.component.module.js.map +1 -1
  10. package/esm2015/components/lib/authentication.module.js +4 -4
  11. package/esm2015/components/lib/authentication.module.js.map +1 -1
  12. package/esm2015/components/lib/loading/loading.component.js +3 -3
  13. package/esm2015/components/lib/loading/loading.component.js.map +1 -1
  14. package/esm2015/components/lib/loading/loading.component.module.js +4 -4
  15. package/esm2015/components/lib/loading/loading.component.module.js.map +1 -1
  16. package/esm2015/components/lib/login/login.component.js +4 -4
  17. package/esm2015/components/lib/login/login.component.js.map +1 -1
  18. package/esm2015/components/lib/login/login.component.module.js +4 -4
  19. package/esm2015/components/lib/login/login.component.module.js.map +1 -1
  20. package/esm2015/components/lib/login/login.form.js +9 -9
  21. package/esm2015/components/lib/login/login.form.js.map +1 -1
  22. package/esm2015/components/lib/reset-password/reset-password.component.js +6 -6
  23. package/esm2015/components/lib/reset-password/reset-password.component.js.map +1 -1
  24. package/esm2015/components/lib/reset-password/reset-password.component.module.js +4 -4
  25. package/esm2015/components/lib/reset-password/reset-password.component.module.js.map +1 -1
  26. package/esm2015/components/lib/reset-password/reset-password.form.js +6 -6
  27. package/esm2015/components/lib/reset-password/reset-password.form.js.map +1 -1
  28. package/esm2015/components/public_api.js +1 -0
  29. package/esm2015/components/public_api.js.map +1 -1
  30. package/esm2015/lib/authentication-routing.service.js +4 -4
  31. package/esm2015/lib/authentication-routing.service.js.map +1 -1
  32. package/esm2015/lib/authentication.guard.js +3 -3
  33. package/esm2015/lib/authentication.guard.js.map +1 -1
  34. package/esm2015/lib/authentication.service.js +3 -3
  35. package/esm2015/lib/authentication.service.js.map +1 -1
  36. package/esm2015/lib/register.service.js +3 -3
  37. package/esm2015/lib/register.service.js.map +1 -1
  38. package/esm2015/lib/sign-out.directive.js +7 -7
  39. package/esm2015/lib/sign-out.directive.js.map +1 -1
  40. package/esm2015/lib/user.service.js +3 -3
  41. package/esm2015/lib/user.service.js.map +1 -1
  42. package/fesm2015/rxap-authentication-components.js +50 -50
  43. package/fesm2015/rxap-authentication-components.js.map +1 -1
  44. package/fesm2015/rxap-authentication.js +23 -23
  45. package/fesm2015/rxap-authentication.js.map +1 -1
  46. package/package.json +12 -10
  47. package/src/schematics/ng-add/index.js +1 -1
  48. package/src/schematics/ng-add/index.js.map +1 -1
@@ -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: 'login'\n }\n ]\n }\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2Ca,SAAS,SAAT,SAAS;IAqBpB,YAA4B,MAA0B;QAA1B,WAAM,GAAN,MAAM,CAAoB;QAlB/C,YAAO,GAAG,IAAI,CAAC;QACf,gBAAW,GAAG,KAAK,CAAC;KAiB+B;IAEnD,UAAU;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,8BAA8B,CAAC,CAAC;QACtE,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SAC5B;QACD,M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,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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2Ca,SAAS,SAAT,SAAS;IAqBpB,YAA4B,MAA0B;QAA1B,WAAM,GAAN,MAAM,CAAoB;QAlB/C,YAAO,GAAG,IAAI,CAAC;QACf,gBAAW,GAAG,KAAK,CAAC;KAiB+B;IAEnD,UAAU;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,8BAA8B,CAAC,CAAC;QACtE,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SAC5B;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,iCAAiC,CAAC,CAAC;QAC5E,IAA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1C;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;;;;;;"}
@@ -72,9 +72,9 @@ class RxapAuthenticationService {
72
72
  }, 2500);
73
73
  }
74
74
  }
75
- RxapAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
76
- RxapAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapAuthenticationService, providedIn: 'root' });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapAuthenticationService, decorators: [{
75
+ RxapAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RxapAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
76
+ RxapAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RxapAuthenticationService, providedIn: 'root' });
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RxapAuthenticationService, decorators: [{
78
78
  type: Injectable,
79
79
  args: [{ providedIn: 'root' }]
80
80
  }], ctorParameters: function () { return []; } });
@@ -168,9 +168,9 @@ class RxapAuthenticationGuard {
168
168
  return this.router.createUrlTree([lastUrl]);
169
169
  }
170
170
  }
171
- RxapAuthenticationGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapAuthenticationGuard, deps: [{ token: RxapAuthenticationService }, { token: Router }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
172
- RxapAuthenticationGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapAuthenticationGuard, providedIn: 'root' });
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapAuthenticationGuard, decorators: [{
171
+ RxapAuthenticationGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RxapAuthenticationGuard, deps: [{ token: RxapAuthenticationService }, { token: Router }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
172
+ RxapAuthenticationGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RxapAuthenticationGuard, providedIn: 'root' });
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RxapAuthenticationGuard, decorators: [{
174
174
  type: Injectable,
175
175
  args: [{ providedIn: 'root' }]
176
176
  }], ctorParameters: function () { return [{ type: RxapAuthenticationService, decorators: [{
@@ -195,9 +195,9 @@ class RegisterService {
195
195
  return Promise.resolve(true);
196
196
  }
197
197
  }
198
- RegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RegisterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
199
- RegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RegisterService, providedIn: 'root' });
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RegisterService, decorators: [{
198
+ RegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RegisterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
199
+ RegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RegisterService, providedIn: 'root' });
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RegisterService, decorators: [{
201
201
  type: Injectable,
202
202
  args: [{ providedIn: 'root' }]
203
203
  }], ctorParameters: function () { return []; } });
@@ -208,9 +208,9 @@ class UserService {
208
208
  this.user$ = new BehaviorSubject(null);
209
209
  }
210
210
  }
211
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
212
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: UserService, providedIn: 'root' });
213
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: UserService, decorators: [{
211
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
212
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, providedIn: 'root' });
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, decorators: [{
214
214
  type: Injectable,
215
215
  args: [{ providedIn: 'root' }]
216
216
  }] });
@@ -221,7 +221,7 @@ class AuthenticationRoutingService {
221
221
  this.authenticationService = authenticationService;
222
222
  this.deactivated = deactivated;
223
223
  if (!deactivated) {
224
- console.warn('Authentication is enabled');
224
+ console.log('Authentication is enabled');
225
225
  this.authenticationService.isAuthenticated$.pipe(tap(isAuthenticated => {
226
226
  if (isAuthenticated) {
227
227
  return this.router.navigate(['/']);
@@ -233,9 +233,9 @@ class AuthenticationRoutingService {
233
233
  }
234
234
  }
235
235
  }
236
- AuthenticationRoutingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: AuthenticationRoutingService, deps: [{ token: Router }, { token: RxapAuthenticationService }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
237
- AuthenticationRoutingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: AuthenticationRoutingService, providedIn: 'root' });
238
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: AuthenticationRoutingService, decorators: [{
236
+ AuthenticationRoutingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthenticationRoutingService, deps: [{ token: Router }, { token: RxapAuthenticationService }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
237
+ AuthenticationRoutingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthenticationRoutingService, providedIn: 'root' });
238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthenticationRoutingService, decorators: [{
239
239
  type: Injectable,
240
240
  args: [{
241
241
  providedIn: 'root'
@@ -271,9 +271,9 @@ class SignOutDirective {
271
271
  });
272
272
  }
273
273
  }
274
- SignOutDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignOutDirective, deps: [{ token: RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Directive });
275
- SignOutDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: SignOutDirective, selector: "[rxapSignOut]", outputs: { successful: "successful", failure: "failure" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignOutDirective, decorators: [{
274
+ SignOutDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignOutDirective, deps: [{ token: RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Directive });
275
+ SignOutDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SignOutDirective, selector: "[rxapSignOut]", outputs: { successful: "successful", failure: "failure" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignOutDirective, decorators: [{
277
277
  type: Directive,
278
278
  args: [{
279
279
  selector: '[rxapSignOut]'
@@ -288,10 +288,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
288
288
  }] } });
289
289
  class SignOutDirectiveModule {
290
290
  }
291
- SignOutDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignOutDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
292
- SignOutDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignOutDirectiveModule, declarations: [SignOutDirective], exports: [SignOutDirective] });
293
- SignOutDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignOutDirectiveModule });
294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignOutDirectiveModule, decorators: [{
291
+ SignOutDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignOutDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
292
+ SignOutDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignOutDirectiveModule, declarations: [SignOutDirective], exports: [SignOutDirective] });
293
+ SignOutDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignOutDirectiveModule });
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignOutDirectiveModule, decorators: [{
295
295
  type: NgModule,
296
296
  args: [{
297
297
  declarations: [SignOutDirective],
@@ -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.warn('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})\n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;;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;;6GAlBU,gBAAgB;iGAAhB,gBAAgB;2FAAhB,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;;mHAAtB,sBAAsB;oHAAtB,sBAAsB,iBA1BtB,gBAAgB,aAAhB,gBAAgB;oHA0BhB,sBAAsB;2FAAtB,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} 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,O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.7",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/authentication",
@@ -29,6 +29,7 @@
29
29
  ]
30
30
  },
31
31
  "peerDependencies": {
32
+ "@angular-devkit/schematics": "^12.2.9",
32
33
  "@angular/animations": "^12.0.1",
33
34
  "@angular/cdk": "^12.0.1",
34
35
  "@angular/common": "^12.0.1",
@@ -39,12 +40,12 @@
39
40
  "@angular/material": "^12.0.1",
40
41
  "@angular/platform-browser": "^12.0.1",
41
42
  "@angular/router": "^12.0.1",
42
- "@rxap/config": "^12.1.0",
43
- "@rxap/definition": "^12.0.8-next.0",
44
- "@rxap/directives": "^12.1.1-next.0",
45
- "@rxap/forms": "^12.3.5-next.0",
46
- "@rxap/services": "^12.0.7-next.0",
47
- "@rxap/utilities": "^12.2.0-next.0",
43
+ "@rxap/config": "^12.3.0",
44
+ "@rxap/definition": "^12.0.8",
45
+ "@rxap/directives": "^12.3.1",
46
+ "@rxap/forms": "^12.7.4",
47
+ "@rxap/services": "^12.0.8",
48
+ "@rxap/utilities": "^12.2.3",
48
49
  "reflect-metadata": "^0.1.13",
49
50
  "rxjs": "^6.5.5"
50
51
  },
@@ -57,10 +58,11 @@
57
58
  "save": "dependencies"
58
59
  },
59
60
  "dependencies": {
60
- "@rxap/schematics-utilities": "^12.4.0",
61
+ "@rxap/schematics-utilities": "^12.7.0",
61
62
  "tslib": "^2.2.0",
62
- "@rxap/schematics-ts-morph": "^12.2.0",
63
- "uuid": "8.3.2"
63
+ "@rxap/schematics-ts-morph": "^12.3.2",
64
+ "uuid": "8.3.2",
65
+ "@rxap/validator": "0.0.2"
64
66
  },
65
67
  "main": "bundles/rxap-authentication.umd.js",
66
68
  "module": "fesm2015/rxap-authentication.js",
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
4
  function default_1() {
5
- return schematics_utilities_1.InstallPeerDependencies();
5
+ return (0, schematics_utilities_1.InstallPeerDependencies)();
6
6
  }
7
7
  exports.default = default_1;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/authentication/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,8CAAuB,EAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/authentication/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}