@rxap/ngx-material-authentication 21.0.1-dev.0 → 21.0.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/compodoc/changelog.html +21 -0
  3. package/compodoc/components/LoadingComponent.html +9 -108
  4. package/compodoc/components/LoginComponent.html +9 -79
  5. package/compodoc/components/ResetPasswordComponent.html +11 -1
  6. package/compodoc/dependencies.html +7 -7
  7. package/compodoc/injectables/LoginForm.html +17 -78
  8. package/compodoc/injectables/LoginFormSubmitMethod.html +9 -67
  9. package/compodoc/injectables/LoginFormSubmitSuccessful.html +9 -67
  10. package/compodoc/injectables/ResetPasswordForm.html +13 -24
  11. package/compodoc/injectables/ResetPasswordFormSubmitMethod.html +8 -103
  12. package/compodoc/interfaces/ILoginForm.html +7 -17
  13. package/compodoc/interfaces/IResetPasswordForm.html +6 -17
  14. package/compodoc/js/search/search_index.js +2 -2
  15. package/compodoc/properties.html +1 -1
  16. package/docs/documentation.json +416 -792
  17. package/docs/html/assets/search.js +1 -1
  18. package/docs/html/classes/AuthenticationContainerComponent.html +2 -2
  19. package/docs/html/classes/LoadingComponent.html +4 -4
  20. package/docs/html/classes/LoginComponent.html +2 -2
  21. package/docs/html/classes/LoginForm.html +2 -2
  22. package/docs/html/classes/LoginFormSubmitMethod.html +2 -2
  23. package/docs/html/classes/LoginFormSubmitSuccessful.html +2 -2
  24. package/docs/html/classes/RequestResetPasswordMethod.html +2 -2
  25. package/docs/html/classes/ResetPasswordComponent.html +2 -2
  26. package/docs/html/classes/ResetPasswordForm.html +2 -2
  27. package/docs/html/classes/ResetPasswordFormSubmitMethod.html +2 -2
  28. package/docs/html/classes/SetNewPasswordWithResetTokenMethod.html +2 -2
  29. package/docs/html/classes/SignInWithEmailAndPasswordMethod.html +2 -2
  30. package/docs/html/index.html +2 -2
  31. package/docs/html/interfaces/ILoginForm.html +2 -2
  32. package/docs/html/interfaces/IResetPasswordForm.html +2 -2
  33. package/docs/html/interfaces/RequestResetPasswordMethodParameters.html +2 -2
  34. package/docs/html/interfaces/SetNewPasswordWithResetTokenMethodParameters.html +2 -2
  35. package/docs/html/interfaces/SignInWithEmailAndPasswordMethodParameters.html +2 -2
  36. package/docs/html/modules.html +1 -1
  37. package/docs/html/variables/AUTHENTICATION_ROUTE.html +1 -1
  38. package/docs/html/variables/LoginFormProviders.html +1 -1
  39. package/docs/html/variables/RXAP_RESET_PASSWORD_FORM.html +1 -1
  40. package/docs/html/variables/ResetPasswordFormProviders.html +1 -1
  41. package/docs/html/variables/fadeAnimation.html +1 -1
  42. package/docs/markdown/README.md +1 -1
  43. package/docs/markdown/classes/AuthenticationContainerComponent.md +2 -2
  44. package/docs/markdown/classes/LoadingComponent.md +8 -20
  45. package/docs/markdown/classes/LoginComponent.md +5 -17
  46. package/docs/markdown/classes/LoginForm.md +11 -19
  47. package/docs/markdown/classes/LoginFormSubmitMethod.md +4 -12
  48. package/docs/markdown/classes/LoginFormSubmitSuccessful.md +4 -12
  49. package/docs/markdown/classes/RequestResetPasswordMethod.md +3 -3
  50. package/docs/markdown/classes/ResetPasswordComponent.md +2 -2
  51. package/docs/markdown/classes/ResetPasswordForm.md +7 -7
  52. package/docs/markdown/classes/ResetPasswordFormSubmitMethod.md +4 -24
  53. package/docs/markdown/classes/SetNewPasswordWithResetTokenMethod.md +3 -3
  54. package/docs/markdown/classes/SignInWithEmailAndPasswordMethod.md +3 -3
  55. package/docs/markdown/globals.md +2 -2
  56. package/docs/markdown/interfaces/ILoginForm.md +4 -4
  57. package/docs/markdown/interfaces/IResetPasswordForm.md +4 -4
  58. package/docs/markdown/interfaces/RequestResetPasswordMethodParameters.md +3 -3
  59. package/docs/markdown/interfaces/SetNewPasswordWithResetTokenMethodParameters.md +4 -4
  60. package/docs/markdown/interfaces/SignInWithEmailAndPasswordMethodParameters.md +5 -5
  61. package/docs/markdown/variables/AUTHENTICATION_ROUTE.md +2 -2
  62. package/docs/markdown/variables/LoginFormProviders.md +2 -2
  63. package/docs/markdown/variables/RXAP_RESET_PASSWORD_FORM.md +2 -2
  64. package/docs/markdown/variables/ResetPasswordFormProviders.md +2 -2
  65. package/docs/markdown/variables/fadeAnimation.md +2 -2
  66. package/docs/wiki/Class.AuthenticationContainerComponent.md +1 -1
  67. package/docs/wiki/Class.LoadingComponent.md +7 -19
  68. package/docs/wiki/Class.LoginComponent.md +4 -16
  69. package/docs/wiki/Class.LoginForm.md +10 -18
  70. package/docs/wiki/Class.LoginFormSubmitMethod.md +3 -11
  71. package/docs/wiki/Class.LoginFormSubmitSuccessful.md +3 -11
  72. package/docs/wiki/Class.RequestResetPasswordMethod.md +2 -2
  73. package/docs/wiki/Class.ResetPasswordComponent.md +1 -1
  74. package/docs/wiki/Class.ResetPasswordForm.md +6 -6
  75. package/docs/wiki/Class.ResetPasswordFormSubmitMethod.md +3 -23
  76. package/docs/wiki/Class.SetNewPasswordWithResetTokenMethod.md +2 -2
  77. package/docs/wiki/Class.SignInWithEmailAndPasswordMethod.md +2 -2
  78. package/docs/wiki/Interface.ILoginForm.md +3 -3
  79. package/docs/wiki/Interface.IResetPasswordForm.md +3 -3
  80. package/docs/wiki/Interface.RequestResetPasswordMethodParameters.md +2 -2
  81. package/docs/wiki/Interface.SetNewPasswordWithResetTokenMethodParameters.md +3 -3
  82. package/docs/wiki/Interface.SignInWithEmailAndPasswordMethodParameters.md +4 -4
  83. package/docs/wiki/Variable.AUTHENTICATION_ROUTE.md +1 -1
  84. package/docs/wiki/Variable.LoginFormProviders.md +1 -1
  85. package/docs/wiki/Variable.RXAP_RESET_PASSWORD_FORM.md +1 -1
  86. package/docs/wiki/Variable.ResetPasswordFormProviders.md +1 -1
  87. package/docs/wiki/Variable.fadeAnimation.md +1 -1
  88. package/docs/wiki/globals.md +1 -1
  89. package/fesm2022/rxap-ngx-material-authentication.mjs +59 -99
  90. package/fesm2022/rxap-ngx-material-authentication.mjs.map +1 -1
  91. package/package.json +27 -27
  92. package/types/rxap-ngx-material-authentication.d.ts +23 -30
@@ -1,25 +1,23 @@
1
+ import { __decorate, __metadata } from 'tslib';
1
2
  import * as i0 from '@angular/core';
2
- import { Injectable, Inject, INJECTOR, ChangeDetectionStrategy, Component, inject } from '@angular/core';
3
+ import { Injectable, inject, INJECTOR, ChangeDetectionStrategy, Component } from '@angular/core';
3
4
  import * as i1 from '@angular/forms';
4
5
  import { Validators, ReactiveFormsModule } from '@angular/forms';
5
6
  import * as i5 from '@angular/material/button';
6
7
  import { MatButtonModule } from '@angular/material/button';
7
8
  import { ShowOnDirtyErrorStateMatcher, ErrorStateMatcher } from '@angular/material/core';
8
- import * as i3$1 from '@angular/material/form-field';
9
+ import * as i3 from '@angular/material/form-field';
9
10
  import { MatFormFieldModule } from '@angular/material/form-field';
10
- import * as i2$1 from '@angular/material/icon';
11
+ import * as i2 from '@angular/material/icon';
11
12
  import { MatIconModule } from '@angular/material/icon';
12
13
  import * as i4 from '@angular/material/input';
13
14
  import { MatInputModule } from '@angular/material/input';
14
15
  import * as i6 from '@angular/material/progress-bar';
15
16
  import { MatProgressBarModule } from '@angular/material/progress-bar';
16
- import * as i3 from '@angular/material/snack-bar';
17
17
  import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
18
18
  import { UseFormControl, RxapFormControl, ControlValidator, ControlSetValue, RxapForm, RxapFormBuilder, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_DEFINITION, RXAP_FORM_SUBMIT_METHOD, FormDirective, FormControlMarkDirtyDirective, FormSubmitFailedDirective, FormSubmittingDirective, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD } from '@rxap/forms';
19
19
  import { ControlErrorDirective } from '@rxap/material-form-system';
20
20
  import { trigger, state, style, transition, animate } from '@angular/animations';
21
- import { __decorate, __metadata } from 'tslib';
22
- import * as i2 from '@angular/router';
23
21
  import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
24
22
  import { firstValueFrom } from 'rxjs';
25
23
  import { take, map, switchMap, tap, filter } from 'rxjs/operators';
@@ -30,12 +28,9 @@ import * as i8 from '@angular/material/progress-spinner';
30
28
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
31
29
  import * as i7 from '@angular/material/tooltip';
32
30
  import { MatTooltipModule } from '@angular/material/tooltip';
33
- import * as i10 from '@rxap/authentication';
34
31
  import { RxapAuthenticationService, RxapAuthenticationGuard } from '@rxap/authentication';
35
32
  import { ToggleSubject } from '@rxap/rxjs';
36
- import * as i1$1 from '@rxap/config';
37
33
  import { ConfigService } from '@rxap/config';
38
-
39
34
  // the fade-in/fade-out animation.
40
35
  const fadeAnimation = trigger('fadeAnimation', [
41
36
  // the "in" style determines the "resting" state of the element when it is visible.
@@ -48,7 +43,6 @@ const fadeAnimation = trigger('fadeAnimation', [
48
43
  // fade out when destroyed. this could also be written as transition('void => *')
49
44
  transition(':leave', animate(300, style({ opacity: 0 }))),
50
45
  ]);
51
-
52
46
  class SetNewPasswordWithResetTokenMethod {
53
47
  call(parameters) {
54
48
  throw new Error('Method not implemented.');
@@ -60,14 +54,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
60
54
  type: Injectable,
61
55
  args: [{ providedIn: 'root' }]
62
56
  }] });
63
-
64
57
  const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';
65
58
  class ResetPasswordFormSubmitMethod {
66
- constructor(route, setNewPasswordWithResetTokenMethod, snackBar, router) {
67
- this.route = route;
68
- this.setNewPasswordWithResetTokenMethod = setNewPasswordWithResetTokenMethod;
69
- this.snackBar = snackBar;
70
- this.router = router;
59
+ constructor() {
60
+ this.route = inject(ActivatedRoute);
61
+ this.setNewPasswordWithResetTokenMethod = inject(SetNewPasswordWithResetTokenMethod);
62
+ this.snackBar = inject(MatSnackBar);
63
+ this.router = inject(Router);
71
64
  }
72
65
  call(value) {
73
66
  return firstValueFrom(this.route.params
@@ -88,21 +81,12 @@ class ResetPasswordFormSubmitMethod {
88
81
  },
89
82
  }), map(() => true)));
90
83
  }
91
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, deps: [{ token: ActivatedRoute }, { token: SetNewPasswordWithResetTokenMethod }, { token: MatSnackBar }, { token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
84
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
92
85
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod }); }
93
86
  }
94
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
95
88
  type: Injectable
96
- }], ctorParameters: () => [{ type: i2.ActivatedRoute, decorators: [{
97
- type: Inject,
98
- args: [ActivatedRoute]
99
- }] }, { type: SetNewPasswordWithResetTokenMethod }, { type: i3.MatSnackBar, decorators: [{
100
- type: Inject,
101
- args: [MatSnackBar]
102
- }] }, { type: i2.Router, decorators: [{
103
- type: Inject,
104
- args: [Router]
105
- }] }] });
89
+ }] });
106
90
  let ResetPasswordForm = class ResetPasswordForm {
107
91
  passwordEqual(control) {
108
92
  if (this.password.value === null || control.value === null) {
@@ -168,19 +152,20 @@ const ResetPasswordFormProviders = [
168
152
  useClass: ResetPasswordFormSubmitMethod,
169
153
  },
170
154
  ];
171
-
172
- class ResetPasswordComponent {
155
+ let ResetPasswordComponent = class ResetPasswordComponent {
173
156
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
174
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ResetPasswordComponent, isStandalone: true, selector: "rxap-reset-password", providers: [
175
- ResetPasswordFormProviders,
176
- {
177
- provide: ErrorStateMatcher,
178
- useClass: ShowOnDirtyErrorStateMatcher,
179
- },
180
- ], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col items-center justify-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header grow-0 flex flex-col items-center justify-center\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-4\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>New password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Repeat password</mat-label>\n <input #passwordRepeatInput\n formControlName=\"passwordRepeat\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password again\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'equal'\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n @if (passwordRepeatInput.type === 'password') {\n <button (click)=\"passwordRepeatInput.type = 'text'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordRepeatInput.type === 'text') {\n <button (click)=\"passwordRepeatInput.type = 'password'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">\n <ng-container i18n>Reset password</ng-container>\n </button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row items-center justify-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "context", "rxapForm", "submitMethod", "loadMethod", "loadFailedMethod", "loadSuccessfulMethod", "submitFailedMethod", "submitSuccessfulMethod"], outputs: ["ngSubmit", "initialChange", "contextChange", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { kind: "directive", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "directive", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: ["rxapControlErrorKey"] }], animations: [
181
- fadeAnimation,
182
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
183
- }
157
+ static {
158
+ this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ResetPasswordComponent, isStandalone: true, selector: "rxap-reset-password", providers: [
159
+ ResetPasswordFormProviders,
160
+ {
161
+ provide: ErrorStateMatcher,
162
+ useClass: ShowOnDirtyErrorStateMatcher,
163
+ },
164
+ ], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col items-center justify-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header grow-0 flex flex-col items-center justify-center\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-4\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>New password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Repeat password</mat-label>\n <input #passwordRepeatInput\n formControlName=\"passwordRepeat\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password again\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'equal'\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n @if (passwordRepeatInput.type === 'password') {\n <button (click)=\"passwordRepeatInput.type = 'text'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordRepeatInput.type === 'text') {\n <button (click)=\"passwordRepeatInput.type = 'password'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">\n <ng-container i18n>Reset password</ng-container>\n </button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row items-center justify-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "context", "rxapForm", "submitMethod", "loadMethod", "loadFailedMethod", "loadSuccessfulMethod", "submitFailedMethod", "submitSuccessfulMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { kind: "directive", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "directive", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: ["rxapControlErrorKey"] }], animations: [
165
+ fadeAnimation,
166
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
167
+ }
168
+ };
184
169
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordComponent, decorators: [{
185
170
  type: Component,
186
171
  args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
@@ -206,7 +191,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
206
191
  ControlErrorDirective
207
192
  ], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col items-center justify-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header grow-0 flex flex-col items-center justify-center\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-4\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>New password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Repeat password</mat-label>\n <input #passwordRepeatInput\n formControlName=\"passwordRepeat\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password again\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'equal'\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n @if (passwordRepeatInput.type === 'password') {\n <button (click)=\"passwordRepeatInput.type = 'text'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordRepeatInput.type === 'text') {\n <button (click)=\"passwordRepeatInput.type = 'password'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">\n <ng-container i18n>Reset password</ng-container>\n </button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row items-center justify-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"] }]
208
193
  }] });
209
-
210
194
  class SignInWithEmailAndPasswordMethod {
211
195
  call(parameters) {
212
196
  throw new Error('Method not implemented.');
@@ -218,10 +202,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
218
202
  type: Injectable,
219
203
  args: [{ providedIn: 'root' }]
220
204
  }] });
221
-
222
205
  let LoginForm = class LoginForm {
223
- constructor(config) {
224
- this.config = config;
206
+ constructor() {
207
+ this.config = inject(ConfigService);
225
208
  this.loading = true;
226
209
  this.loginFailed = false;
227
210
  }
@@ -235,7 +218,7 @@ let LoginForm = class LoginForm {
235
218
  this.password.setValue(password);
236
219
  }
237
220
  }
238
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, deps: [{ token: i1$1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
239
222
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm }); }
240
223
  };
241
224
  __decorate([
@@ -259,15 +242,14 @@ __decorate([
259
242
  LoginForm = __decorate([
260
243
  RxapForm({
261
244
  id: 'rxap-login',
262
- }),
263
- __metadata("design:paramtypes", [ConfigService])
245
+ })
264
246
  ], LoginForm);
265
247
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, decorators: [{
266
248
  type: Injectable
267
- }], ctorParameters: () => [{ type: i1$1.ConfigService }], propDecorators: { email: [], password: [], remember: [] } });
249
+ }], propDecorators: { email: [], password: [], remember: [] } });
268
250
  class LoginFormSubmitMethod {
269
- constructor(signInWithEmailAndPasswordMethod) {
270
- this.signInWithEmailAndPasswordMethod = signInWithEmailAndPasswordMethod;
251
+ constructor() {
252
+ this.signInWithEmailAndPasswordMethod = inject(SignInWithEmailAndPasswordMethod);
271
253
  }
272
254
  call(value) {
273
255
  return this.signInWithEmailAndPasswordMethod.call({
@@ -276,29 +258,26 @@ class LoginFormSubmitMethod {
276
258
  remember: value.remember,
277
259
  });
278
260
  }
279
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, deps: [{ token: SignInWithEmailAndPasswordMethod }], target: i0.ɵɵFactoryTarget.Injectable }); }
261
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
280
262
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod }); }
281
263
  }
282
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
283
265
  type: Injectable
284
- }], ctorParameters: () => [{ type: SignInWithEmailAndPasswordMethod }] });
266
+ }] });
285
267
  class LoginFormSubmitSuccessful {
286
- constructor(router) {
287
- this.router = router;
268
+ constructor() {
269
+ this.router = inject(Router);
288
270
  }
289
271
  call() {
290
272
  console.debug('Login was successful. Navigate to application root');
291
273
  return this.router.navigate(['/']);
292
274
  }
293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
275
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
294
276
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful }); }
295
277
  }
296
278
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
297
279
  type: Injectable
298
- }], ctorParameters: () => [{ type: i2.Router, decorators: [{
299
- type: Inject,
300
- args: [Router]
301
- }] }] });
280
+ }] });
302
281
  const LoginFormProviders = [
303
282
  LoginForm,
304
283
  {
@@ -320,7 +299,6 @@ const LoginFormProviders = [
320
299
  useClass: LoginFormSubmitSuccessful,
321
300
  },
322
301
  ];
323
-
324
302
  class RequestResetPasswordMethod {
325
303
  call(parameters) {
326
304
  throw new Error('Method not implemented.');
@@ -332,11 +310,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
332
310
  type: Injectable,
333
311
  args: [{ providedIn: 'root' }]
334
312
  }] });
335
-
336
313
  class LoginComponent {
337
- constructor(authentication, snackBar) {
338
- this.authentication = authentication;
339
- this.snackBar = snackBar;
314
+ constructor() {
315
+ this.authentication = inject(RxapAuthenticationService);
316
+ this.snackBar = inject(MatSnackBar);
340
317
  this.requestingPasswordReset$ = new ToggleSubject();
341
318
  this.requestPasswordResetMethod = inject(RequestResetPasswordMethod);
342
319
  }
@@ -366,16 +343,18 @@ class LoginComponent {
366
343
  this.requestingPasswordReset$.disable();
367
344
  }
368
345
  }
369
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, deps: [{ token: RxapAuthenticationService }, { token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
370
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: LoginComponent, isStandalone: true, selector: "rxap-login", providers: [
371
- LoginFormProviders,
372
- {
373
- provide: ErrorStateMatcher,
374
- useClass: ShowOnDirtyErrorStateMatcher,
375
- },
376
- ], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col justify-center items-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header flex flex-col items-center justify-center grow-0\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-8\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n i18n-placeholder\n matInput\n name=\"email\"\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'email'\">\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 inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n name=\"password\"\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'test'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls flex flex-row flex-wrap justify-between items-center gap-4\">\n\n <mat-checkbox class=\"remember-input grow-0\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n class=\"grow-0\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\">\n <button (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls['email'].hasError('email')\"\n color=\"accent\"\n mat-button\n type=\"button\">\n <span class=\"flex flex-row justify-between items-center gap-2\">\n @if (requestingPasswordReset$ | async) {\n <mat-progress-spinner [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n }\n <span class=\"grow-0\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row justify-center items-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: ["::ng-deep .mat-mdc-snack-bar-container.error{background-color:var(--warn-500);color:var(--foreground-color)}.inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "context", "rxapForm", "submitMethod", "loadMethod", "loadFailedMethod", "loadSuccessfulMethod", "submitFailedMethod", "submitSuccessfulMethod"], outputs: ["ngSubmit", "initialChange", "contextChange", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { kind: "directive", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "directive", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: ["rxapControlErrorKey"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [
377
- fadeAnimation,
378
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
346
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
347
+ static {
348
+ this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: LoginComponent, isStandalone: true, selector: "rxap-login", providers: [
349
+ LoginFormProviders,
350
+ {
351
+ provide: ErrorStateMatcher,
352
+ useClass: ShowOnDirtyErrorStateMatcher,
353
+ },
354
+ ], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col justify-center items-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header flex flex-col items-center justify-center grow-0\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-8\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n i18n-placeholder\n matInput\n name=\"email\"\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'email'\">\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 inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n name=\"password\"\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls flex flex-row flex-wrap justify-between items-center gap-4\">\n\n <mat-checkbox class=\"remember-input grow-0\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n class=\"grow-0\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\">\n <button (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls['email'].hasError('email')\"\n color=\"accent\"\n mat-button\n type=\"button\">\n <span class=\"flex flex-row justify-between items-center gap-2\">\n @if (requestingPasswordReset$ | async) {\n <mat-progress-spinner [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n }\n <span class=\"grow-0\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row justify-center items-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: ["::ng-deep .mat-mdc-snack-bar-container.error{background-color:var(--warn-500);color:var(--foreground-color)}.inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "context", "rxapForm", "submitMethod", "loadMethod", "loadFailedMethod", "loadSuccessfulMethod", "submitFailedMethod", "submitSuccessfulMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { kind: "directive", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "directive", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: ["rxapControlErrorKey"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [
355
+ fadeAnimation,
356
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
357
+ }
379
358
  }
380
359
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, decorators: [{
381
360
  type: Component,
@@ -404,19 +383,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
404
383
  AsyncPipe,
405
384
  MatSnackBarModule,
406
385
  ControlErrorDirective
407
- ], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col justify-center items-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header flex flex-col items-center justify-center grow-0\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-8\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n i18n-placeholder\n matInput\n name=\"email\"\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'email'\">\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 inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n name=\"password\"\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'test'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls flex flex-row flex-wrap justify-between items-center gap-4\">\n\n <mat-checkbox class=\"remember-input grow-0\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n class=\"grow-0\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\">\n <button (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls['email'].hasError('email')\"\n color=\"accent\"\n mat-button\n type=\"button\">\n <span class=\"flex flex-row justify-between items-center gap-2\">\n @if (requestingPasswordReset$ | async) {\n <mat-progress-spinner [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n }\n <span class=\"grow-0\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row justify-center items-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: ["::ng-deep .mat-mdc-snack-bar-container.error{background-color:var(--warn-500);color:var(--foreground-color)}.inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"] }]
408
- }], ctorParameters: () => [{ type: i10.RxapAuthenticationService, decorators: [{
409
- type: Inject,
410
- args: [RxapAuthenticationService]
411
- }] }, { type: i3.MatSnackBar, decorators: [{
412
- type: Inject,
413
- args: [MatSnackBar]
414
- }] }] });
415
-
386
+ ], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col justify-center items-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header flex flex-col items-center justify-center grow-0\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-8\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n i18n-placeholder\n matInput\n name=\"email\"\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'email'\">\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 inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n name=\"password\"\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls flex flex-row flex-wrap justify-between items-center gap-4\">\n\n <mat-checkbox class=\"remember-input grow-0\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n class=\"grow-0\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\">\n <button (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls['email'].hasError('email')\"\n color=\"accent\"\n mat-button\n type=\"button\">\n <span class=\"flex flex-row justify-between items-center gap-2\">\n @if (requestingPasswordReset$ | async) {\n <mat-progress-spinner [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n }\n <span class=\"grow-0\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row justify-center items-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: ["::ng-deep .mat-mdc-snack-bar-container.error{background-color:var(--warn-500);color:var(--foreground-color)}.inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"] }]
387
+ }] });
416
388
  class LoadingComponent {
417
- constructor(authentication, router) {
418
- this.authentication = authentication;
419
- this.router = router;
389
+ constructor() {
390
+ this.authentication = inject(RxapAuthenticationService);
391
+ this.router = inject(Router);
420
392
  }
421
393
  ngOnInit() {
422
394
  // TODO : remove the concept of isAuthenticated$
@@ -429,20 +401,13 @@ class LoadingComponent {
429
401
  ngOnDestroy() {
430
402
  this.subscription?.unsubscribe();
431
403
  }
432
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, deps: [{ token: RxapAuthenticationService }, { token: Router }], target: i0.ɵɵFactoryTarget.Component }); }
404
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
433
405
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: LoadingComponent, isStandalone: true, selector: "rxap-auth-loading", ngImport: i0, template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
434
406
  }
435
407
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, decorators: [{
436
408
  type: Component,
437
409
  args: [{ selector: 'rxap-auth-loading', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatProgressBarModule], template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}\n"] }]
438
- }], ctorParameters: () => [{ type: i10.RxapAuthenticationService, decorators: [{
439
- type: Inject,
440
- args: [RxapAuthenticationService]
441
- }] }, { type: i2.Router, decorators: [{
442
- type: Inject,
443
- args: [Router]
444
- }] }] });
445
-
410
+ }] });
446
411
  class AuthenticationContainerComponent {
447
412
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthenticationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
448
413
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: AuthenticationContainerComponent, isStandalone: true, selector: "rxap-authentication-container", ngImport: i0, template: "<div class=\"content\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", styles: [".content{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;overflow-x:hidden}.content .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10;background-color:var(--accent-500, #3ee73e)}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
@@ -453,7 +418,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
453
418
  RouterOutlet,
454
419
  ], template: "<div class=\"content\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", styles: [".content{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;overflow-x:hidden}.content .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10;background-color:var(--accent-500, #3ee73e)}\n"] }]
455
420
  }] });
456
-
457
421
  const AUTHENTICATION_ROUTE = [
458
422
  {
459
423
  path: '',
@@ -484,13 +448,9 @@ const AUTHENTICATION_ROUTE = [
484
448
  redirectTo: '',
485
449
  },
486
450
  ];
487
-
488
451
  // region reset-password
489
452
  // endregion
490
-
491
453
  /**
492
454
  * Generated bundle index. Do not edit.
493
455
  */
494
-
495
456
  export { AUTHENTICATION_ROUTE, AuthenticationContainerComponent, LoadingComponent, LoginComponent, LoginForm, LoginFormProviders, LoginFormSubmitMethod, LoginFormSubmitSuccessful, RXAP_RESET_PASSWORD_FORM, RequestResetPasswordMethod, ResetPasswordComponent, ResetPasswordForm, ResetPasswordFormProviders, ResetPasswordFormSubmitMethod, SetNewPasswordWithResetTokenMethod, SignInWithEmailAndPasswordMethod, fadeAnimation };
496
- //# sourceMappingURL=rxap-ngx-material-authentication.mjs.map