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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/compodoc/changelog.html +33 -0
  3. package/compodoc/components/AuthenticationContainerComponent.html +6 -1
  4. package/compodoc/dependencies.html +14 -14
  5. package/compodoc/js/search/search_index.js +2 -2
  6. package/compodoc/properties.html +1 -1
  7. package/docs/documentation.json +80 -80
  8. package/docs/html/classes/AuthenticationContainerComponent.html +2 -2
  9. package/docs/html/classes/LoadingComponent.html +4 -4
  10. package/docs/html/classes/LoginComponent.html +2 -2
  11. package/docs/html/classes/LoginForm.html +2 -2
  12. package/docs/html/classes/LoginFormSubmitMethod.html +2 -2
  13. package/docs/html/classes/LoginFormSubmitSuccessful.html +2 -2
  14. package/docs/html/classes/RequestResetPasswordMethod.html +2 -2
  15. package/docs/html/classes/ResetPasswordComponent.html +2 -2
  16. package/docs/html/classes/ResetPasswordForm.html +2 -2
  17. package/docs/html/classes/ResetPasswordFormSubmitMethod.html +2 -2
  18. package/docs/html/classes/SetNewPasswordWithResetTokenMethod.html +2 -2
  19. package/docs/html/classes/SignInWithEmailAndPasswordMethod.html +2 -2
  20. package/docs/html/index.html +2 -2
  21. package/docs/html/interfaces/ILoginForm.html +2 -2
  22. package/docs/html/interfaces/IResetPasswordForm.html +2 -2
  23. package/docs/html/interfaces/RequestResetPasswordMethodParameters.html +2 -2
  24. package/docs/html/interfaces/SetNewPasswordWithResetTokenMethodParameters.html +2 -2
  25. package/docs/html/interfaces/SignInWithEmailAndPasswordMethodParameters.html +2 -2
  26. package/docs/html/modules.html +1 -1
  27. package/docs/html/variables/AUTHENTICATION_ROUTE.html +1 -1
  28. package/docs/html/variables/LoginFormProviders.html +1 -1
  29. package/docs/html/variables/RXAP_RESET_PASSWORD_FORM.html +1 -1
  30. package/docs/html/variables/ResetPasswordFormProviders.html +1 -1
  31. package/docs/html/variables/fadeAnimation.html +1 -1
  32. package/docs/markdown/README.md +1 -1
  33. package/docs/markdown/classes/AuthenticationContainerComponent.md +2 -2
  34. package/docs/markdown/classes/LoadingComponent.md +7 -7
  35. package/docs/markdown/classes/LoginComponent.md +4 -4
  36. package/docs/markdown/classes/LoginForm.md +10 -10
  37. package/docs/markdown/classes/LoginFormSubmitMethod.md +3 -3
  38. package/docs/markdown/classes/LoginFormSubmitSuccessful.md +3 -3
  39. package/docs/markdown/classes/RequestResetPasswordMethod.md +3 -3
  40. package/docs/markdown/classes/ResetPasswordComponent.md +2 -2
  41. package/docs/markdown/classes/ResetPasswordForm.md +7 -7
  42. package/docs/markdown/classes/ResetPasswordFormSubmitMethod.md +3 -3
  43. package/docs/markdown/classes/SetNewPasswordWithResetTokenMethod.md +3 -3
  44. package/docs/markdown/classes/SignInWithEmailAndPasswordMethod.md +3 -3
  45. package/docs/markdown/globals.md +2 -2
  46. package/docs/markdown/interfaces/ILoginForm.md +4 -4
  47. package/docs/markdown/interfaces/IResetPasswordForm.md +4 -4
  48. package/docs/markdown/interfaces/RequestResetPasswordMethodParameters.md +3 -3
  49. package/docs/markdown/interfaces/SetNewPasswordWithResetTokenMethodParameters.md +4 -4
  50. package/docs/markdown/interfaces/SignInWithEmailAndPasswordMethodParameters.md +5 -5
  51. package/docs/markdown/variables/AUTHENTICATION_ROUTE.md +2 -2
  52. package/docs/markdown/variables/LoginFormProviders.md +2 -2
  53. package/docs/markdown/variables/RXAP_RESET_PASSWORD_FORM.md +2 -2
  54. package/docs/markdown/variables/ResetPasswordFormProviders.md +2 -2
  55. package/docs/markdown/variables/fadeAnimation.md +2 -2
  56. package/docs/wiki/Class.AuthenticationContainerComponent.md +1 -1
  57. package/docs/wiki/Class.LoadingComponent.md +6 -6
  58. package/docs/wiki/Class.LoginComponent.md +3 -3
  59. package/docs/wiki/Class.LoginForm.md +9 -9
  60. package/docs/wiki/Class.LoginFormSubmitMethod.md +2 -2
  61. package/docs/wiki/Class.LoginFormSubmitSuccessful.md +2 -2
  62. package/docs/wiki/Class.RequestResetPasswordMethod.md +2 -2
  63. package/docs/wiki/Class.ResetPasswordComponent.md +1 -1
  64. package/docs/wiki/Class.ResetPasswordForm.md +6 -6
  65. package/docs/wiki/Class.ResetPasswordFormSubmitMethod.md +2 -2
  66. package/docs/wiki/Class.SetNewPasswordWithResetTokenMethod.md +2 -2
  67. package/docs/wiki/Class.SignInWithEmailAndPasswordMethod.md +2 -2
  68. package/docs/wiki/Interface.ILoginForm.md +3 -3
  69. package/docs/wiki/Interface.IResetPasswordForm.md +3 -3
  70. package/docs/wiki/Interface.RequestResetPasswordMethodParameters.md +2 -2
  71. package/docs/wiki/Interface.SetNewPasswordWithResetTokenMethodParameters.md +3 -3
  72. package/docs/wiki/Interface.SignInWithEmailAndPasswordMethodParameters.md +4 -4
  73. package/docs/wiki/Variable.AUTHENTICATION_ROUTE.md +1 -1
  74. package/docs/wiki/Variable.LoginFormProviders.md +1 -1
  75. package/docs/wiki/Variable.RXAP_RESET_PASSWORD_FORM.md +1 -1
  76. package/docs/wiki/Variable.ResetPasswordFormProviders.md +1 -1
  77. package/docs/wiki/Variable.fadeAnimation.md +1 -1
  78. package/docs/wiki/globals.md +1 -1
  79. package/fesm2022/rxap-ngx-material-authentication.mjs +1011 -277
  80. package/fesm2022/rxap-ngx-material-authentication.mjs.map +1 -1
  81. package/package.json +42 -42
  82. package/types/rxap-ngx-material-authentication.d.ts +126 -138
@@ -1,61 +1,77 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { Injectable, inject, INJECTOR, ChangeDetectionStrategy, Component } from '@angular/core';
4
- import * as i1 from '@angular/forms';
5
- import { Validators, ReactiveFormsModule } from '@angular/forms';
6
- import * as i5 from '@angular/material/button';
7
- import { MatButtonModule } from '@angular/material/button';
8
- import { ShowOnDirtyErrorStateMatcher, ErrorStateMatcher } from '@angular/material/core';
9
- import * as i3 from '@angular/material/form-field';
10
- import { MatFormFieldModule } from '@angular/material/form-field';
11
- import * as i2 from '@angular/material/icon';
12
- import { MatIconModule } from '@angular/material/icon';
13
- import * as i4 from '@angular/material/input';
14
- import { MatInputModule } from '@angular/material/input';
15
- import * as i6 from '@angular/material/progress-bar';
16
- import { MatProgressBarModule } from '@angular/material/progress-bar';
17
- import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
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
- import { ControlErrorDirective } from '@rxap/material-form-system';
20
- import { trigger, state, style, transition, animate } from '@angular/animations';
21
- import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
22
- import { firstValueFrom } from 'rxjs';
23
- import { take, map, switchMap, tap, filter } from 'rxjs/operators';
24
- import { AsyncPipe } from '@angular/common';
25
- import * as i6$1 from '@angular/material/checkbox';
26
- import { MatCheckboxModule } from '@angular/material/checkbox';
27
- import * as i8 from '@angular/material/progress-spinner';
28
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
29
- import * as i7 from '@angular/material/tooltip';
30
- import { MatTooltipModule } from '@angular/material/tooltip';
31
- import { RxapAuthenticationService, RxapAuthenticationGuard } from '@rxap/authentication';
32
- import { ToggleSubject } from '@rxap/rxjs';
33
- import { ConfigService } from '@rxap/config';
34
- // the fade-in/fade-out animation.
35
- const fadeAnimation = trigger('fadeAnimation', [
36
- // the "in" style determines the "resting" state of the element when it is visible.
37
- state('in', style({ opacity: 1 })),
38
- // fade in when created. this could also be written as transition('void => *')
39
- transition(':enter', [
40
- style({ opacity: 0 }),
41
- animate(300),
42
- ]),
43
- // fade out when destroyed. this could also be written as transition('void => *')
44
- transition(':leave', animate(300, style({ opacity: 0 }))),
1
+ import { __decorate, __metadata } from "tslib";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, INJECTOR, Injectable, inject } from "@angular/core";
4
+ import * as i1 from "@angular/forms";
5
+ import { ReactiveFormsModule, Validators } from "@angular/forms";
6
+ import * as i5 from "@angular/material/button";
7
+ import { MatButtonModule } from "@angular/material/button";
8
+ import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from "@angular/material/core";
9
+ import * as i3 from "@angular/material/form-field";
10
+ import { MatFormFieldModule } from "@angular/material/form-field";
11
+ import * as i2 from "@angular/material/icon";
12
+ import { MatIconModule } from "@angular/material/icon";
13
+ import * as i4 from "@angular/material/input";
14
+ import { MatInputModule } from "@angular/material/input";
15
+ import * as i6$1 from "@angular/material/progress-bar";
16
+ import { MatProgressBarModule } from "@angular/material/progress-bar";
17
+ import { MatSnackBar, MatSnackBarModule } from "@angular/material/snack-bar";
18
+ import { ControlSetValue, ControlValidator, FormControlMarkDirtyDirective, FormDirective, FormSubmitFailedDirective, FormSubmittingDirective, RXAP_FORM_DEFINITION, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, RxapForm, RxapFormBuilder, RxapFormControl, UseFormControl } from "@rxap/forms";
19
+ import { ControlErrorDirective } from "@rxap/material-form-system";
20
+ import { animate, state, style, transition, trigger } from "@angular/animations";
21
+ import { ActivatedRoute, Router, RouterOutlet } from "@angular/router";
22
+ import { firstValueFrom } from "rxjs";
23
+ import { filter, map, switchMap, take, tap } from "rxjs/operators";
24
+ import { AsyncPipe } from "@angular/common";
25
+ import * as i6 from "@angular/material/checkbox";
26
+ import { MatCheckboxModule } from "@angular/material/checkbox";
27
+ import * as i8 from "@angular/material/progress-spinner";
28
+ import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
29
+ import * as i7 from "@angular/material/tooltip";
30
+ import { MatTooltipModule } from "@angular/material/tooltip";
31
+ import { RxapAuthenticationGuard, RxapAuthenticationService } from "@rxap/authentication";
32
+ import { ToggleSubject } from "@rxap/rxjs";
33
+ import { ConfigService } from "@rxap/config";
34
+ const fadeAnimation = trigger("fadeAnimation", [
35
+ state("in", style({ opacity: 1 })),
36
+ transition(":enter", [style({ opacity: 0 }), animate(300)]),
37
+ transition(":leave", animate(300, style({ opacity: 0 })))
45
38
  ]);
46
- class SetNewPasswordWithResetTokenMethod {
39
+ var SetNewPasswordWithResetTokenMethod = class SetNewPasswordWithResetTokenMethod {
47
40
  call(parameters) {
48
- throw new Error('Method not implemented.');
41
+ throw new Error("Method not implemented.");
49
42
  }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetNewPasswordWithResetTokenMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
51
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetNewPasswordWithResetTokenMethod, providedIn: 'root' }); }
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetNewPasswordWithResetTokenMethod, decorators: [{
43
+ static {
44
+ this.ɵfac = i0.ɵɵngDeclareFactory({
45
+ minVersion: "12.0.0",
46
+ version: "22.3.0",
47
+ ngImport: i0,
48
+ type: SetNewPasswordWithResetTokenMethod,
49
+ deps: [],
50
+ target: i0.ɵɵFactoryTarget.Injectable
51
+ });
52
+ }
53
+ static {
54
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
55
+ minVersion: "12.0.0",
56
+ version: "22.3.0",
57
+ ngImport: i0,
58
+ type: SetNewPasswordWithResetTokenMethod,
59
+ providedIn: "root"
60
+ });
61
+ }
62
+ };
63
+ i0.ɵɵngDeclareClassMetadata({
64
+ minVersion: "12.0.0",
65
+ version: "22.3.0",
66
+ ngImport: i0,
67
+ type: SetNewPasswordWithResetTokenMethod,
68
+ decorators: [{
54
69
  type: Injectable,
55
- args: [{ providedIn: 'root' }]
56
- }] });
57
- const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';
58
- class ResetPasswordFormSubmitMethod {
70
+ args: [{ providedIn: "root" }]
71
+ }]
72
+ });
73
+ const RXAP_RESET_PASSWORD_FORM = "rxap-reset-password";
74
+ var ResetPasswordFormSubmitMethod = class ResetPasswordFormSubmitMethod {
59
75
  constructor() {
60
76
  this.route = inject(ActivatedRoute);
61
77
  this.setNewPasswordWithResetTokenMethod = inject(SetNewPasswordWithResetTokenMethod);
@@ -63,120 +79,366 @@ class ResetPasswordFormSubmitMethod {
63
79
  this.router = inject(Router);
64
80
  }
65
81
  call(value) {
66
- return firstValueFrom(this.route.params
67
- .pipe(take(1), map((params) => params['token']), switchMap((token) => this.setNewPasswordWithResetTokenMethod.call({
82
+ return firstValueFrom(this.route.params.pipe(take(1), map((params) => params["token"]), switchMap((token) => this.setNewPasswordWithResetTokenMethod.call({
68
83
  password: value.password,
69
- token,
84
+ token
70
85
  })), tap({
71
86
  error: () => {
72
- this.snackBar.open('Password reset failed.', undefined, {
73
- duration: 3500,
74
- });
87
+ this.snackBar.open("Password reset failed.", void 0, { duration: 3500 });
75
88
  },
76
89
  next: () => {
77
- this.snackBar.open('Password reset was successful.', undefined, {
78
- duration: 3500,
79
- });
80
- return this.router.navigate(['/']);
81
- },
90
+ this.snackBar.open("Password reset was successful.", void 0, { duration: 3500 });
91
+ return this.router.navigate(["/"]);
92
+ }
82
93
  }), map(() => true)));
83
94
  }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
85
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod }); }
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
88
- type: Injectable
89
- }] });
95
+ static {
96
+ this.ɵfac = i0.ɵɵngDeclareFactory({
97
+ minVersion: "12.0.0",
98
+ version: "22.3.0",
99
+ ngImport: i0,
100
+ type: ResetPasswordFormSubmitMethod,
101
+ deps: [],
102
+ target: i0.ɵɵFactoryTarget.Injectable
103
+ });
104
+ }
105
+ static {
106
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
107
+ minVersion: "12.0.0",
108
+ version: "22.3.0",
109
+ ngImport: i0,
110
+ type: ResetPasswordFormSubmitMethod
111
+ });
112
+ }
113
+ };
114
+ i0.ɵɵngDeclareClassMetadata({
115
+ minVersion: "12.0.0",
116
+ version: "22.3.0",
117
+ ngImport: i0,
118
+ type: ResetPasswordFormSubmitMethod,
119
+ decorators: [{ type: Injectable }]
120
+ });
90
121
  let ResetPasswordForm = class ResetPasswordForm {
91
122
  passwordEqual(control) {
92
- if (this.password.value === null || control.value === null) {
123
+ if (this.password.value === null || control.value === null)
93
124
  return null;
94
- }
95
- if (this.password.value !== control.value) {
96
- return { equal: 'passwords are not equal' };
97
- }
125
+ if (this.password.value !== control.value)
126
+ return { equal: "passwords are not equal" };
98
127
  return null;
99
128
  }
100
129
  resetRepeat() {
101
130
  this.passwordRepeat.reset();
102
131
  }
103
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
104
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordForm }); }
132
+ static {
133
+ this.ɵfac = i0.ɵɵngDeclareFactory({
134
+ minVersion: "12.0.0",
135
+ version: "22.3.0",
136
+ ngImport: i0,
137
+ type: ResetPasswordForm,
138
+ deps: [],
139
+ target: i0.ɵɵFactoryTarget.Injectable
140
+ });
141
+ }
142
+ static {
143
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
144
+ minVersion: "12.0.0",
145
+ version: "22.3.0",
146
+ ngImport: i0,
147
+ type: ResetPasswordForm
148
+ });
149
+ }
105
150
  };
151
+ __decorate([UseFormControl({ validators: [Validators.required] }), __metadata("design:type", RxapFormControl)], ResetPasswordForm.prototype, "password", void 0);
152
+ __decorate([UseFormControl({ validators: [Validators.required] }), __metadata("design:type", RxapFormControl)], ResetPasswordForm.prototype, "passwordRepeat", void 0);
106
153
  __decorate([
107
- UseFormControl({
108
- validators: [Validators.required],
109
- }),
110
- __metadata("design:type", RxapFormControl)
111
- ], ResetPasswordForm.prototype, "password", void 0);
112
- __decorate([
113
- UseFormControl({
114
- validators: [Validators.required],
115
- }),
116
- __metadata("design:type", RxapFormControl)
117
- ], ResetPasswordForm.prototype, "passwordRepeat", void 0);
118
- __decorate([
119
- ControlValidator('passwordRepeat'),
154
+ ControlValidator("passwordRepeat"),
120
155
  __metadata("design:type", Function),
121
156
  __metadata("design:paramtypes", [RxapFormControl]),
122
157
  __metadata("design:returntype", void 0)
123
158
  ], ResetPasswordForm.prototype, "passwordEqual", null);
124
159
  __decorate([
125
- ControlSetValue('password'),
160
+ ControlSetValue("password"),
126
161
  __metadata("design:type", Function),
127
162
  __metadata("design:paramtypes", []),
128
163
  __metadata("design:returntype", void 0)
129
164
  ], ResetPasswordForm.prototype, "resetRepeat", null);
130
- ResetPasswordForm = __decorate([
131
- RxapForm({
132
- id: RXAP_RESET_PASSWORD_FORM,
133
- })
134
- ], ResetPasswordForm);
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordForm, decorators: [{
136
- type: Injectable
137
- }], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
165
+ ResetPasswordForm = __decorate([RxapForm({ id: RXAP_RESET_PASSWORD_FORM })], ResetPasswordForm);
166
+ i0.ɵɵngDeclareClassMetadata({
167
+ minVersion: "12.0.0",
168
+ version: "22.3.0",
169
+ ngImport: i0,
170
+ type: ResetPasswordForm,
171
+ decorators: [{ type: Injectable }],
172
+ propDecorators: {
173
+ password: [],
174
+ passwordRepeat: [],
175
+ passwordEqual: [],
176
+ resetRepeat: []
177
+ }
178
+ });
138
179
  const ResetPasswordFormProviders = [
139
180
  ResetPasswordForm,
140
181
  {
141
182
  provide: RXAP_FORM_DEFINITION_BUILDER,
142
183
  useFactory: (injector) => new RxapFormBuilder(ResetPasswordForm, injector),
143
- deps: [INJECTOR],
184
+ deps: [INJECTOR]
144
185
  },
145
186
  {
146
187
  provide: RXAP_FORM_DEFINITION,
147
188
  useFactory: (builder) => builder.build(),
148
- deps: [RXAP_FORM_DEFINITION_BUILDER],
189
+ deps: [RXAP_FORM_DEFINITION_BUILDER]
149
190
  },
150
191
  {
151
192
  provide: RXAP_FORM_SUBMIT_METHOD,
152
- useClass: ResetPasswordFormSubmitMethod,
153
- },
193
+ useClass: ResetPasswordFormSubmitMethod
194
+ }
154
195
  ];
155
196
  let ResetPasswordComponent = class ResetPasswordComponent {
156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
157
197
  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
- {
198
+ this.ɵfac = i0.ɵɵngDeclareFactory({
199
+ minVersion: "12.0.0",
200
+ version: "22.3.0",
201
+ ngImport: i0,
202
+ type: ResetPasswordComponent,
203
+ deps: [],
204
+ target: i0.ɵɵFactoryTarget.Component
205
+ });
206
+ }
207
+ static {
208
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
209
+ minVersion: "17.0.0",
210
+ version: "22.3.0",
211
+ type: ResetPasswordComponent,
212
+ isStandalone: true,
213
+ selector: "rxap-reset-password",
214
+ providers: [ResetPasswordFormProviders, {
161
215
  provide: ErrorStateMatcher,
162
- useClass: ShowOnDirtyErrorStateMatcher,
216
+ useClass: ShowOnDirtyErrorStateMatcher
217
+ }],
218
+ ngImport: i0,
219
+ 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",
220
+ 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"],
221
+ dependencies: [
222
+ {
223
+ kind: "ngmodule",
224
+ type: ReactiveFormsModule
225
+ },
226
+ {
227
+ kind: "directive",
228
+ type: i1.ɵNgNoValidate,
229
+ selector: "form:not([ngNoForm]):not([ngNativeValidate])"
230
+ },
231
+ {
232
+ kind: "directive",
233
+ type: i1.DefaultValueAccessor,
234
+ selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
235
+ },
236
+ {
237
+ kind: "directive",
238
+ type: i1.NgControlStatus,
239
+ selector: "[formControlName],[ngModel],[formControl]"
240
+ },
241
+ {
242
+ kind: "directive",
243
+ type: i1.NgControlStatusGroup,
244
+ selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
245
+ },
246
+ {
247
+ kind: "directive",
248
+ type: i1.FormControlName,
249
+ selector: "[formControlName]",
250
+ inputs: [
251
+ "formControlName",
252
+ "disabled",
253
+ "ngModel"
254
+ ],
255
+ outputs: ["ngModelChange"]
256
+ },
257
+ {
258
+ kind: "directive",
259
+ type: FormDirective,
260
+ selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]",
261
+ inputs: [
262
+ "initial",
263
+ "context",
264
+ "rxapForm",
265
+ "submitMethod",
266
+ "loadMethod",
267
+ "loadFailedMethod",
268
+ "loadSuccessfulMethod",
269
+ "submitFailedMethod",
270
+ "submitSuccessfulMethod"
271
+ ],
272
+ outputs: [
273
+ "ngSubmit",
274
+ "rxapSubmit",
275
+ "invalidSubmit",
276
+ "submitSuccessful"
277
+ ],
278
+ exportAs: ["rxapForm"]
279
+ },
280
+ {
281
+ kind: "ngmodule",
282
+ type: MatIconModule
283
+ },
284
+ {
285
+ kind: "component",
286
+ type: i2.MatIcon,
287
+ selector: "mat-icon",
288
+ inputs: [
289
+ "color",
290
+ "inline",
291
+ "svgIcon",
292
+ "fontSet",
293
+ "fontIcon"
294
+ ],
295
+ exportAs: ["matIcon"]
296
+ },
297
+ {
298
+ kind: "ngmodule",
299
+ type: MatFormFieldModule
300
+ },
301
+ {
302
+ kind: "component",
303
+ type: i3.MatFormField,
304
+ selector: "mat-form-field",
305
+ inputs: [
306
+ "hideRequiredMarker",
307
+ "color",
308
+ "floatLabel",
309
+ "appearance",
310
+ "subscriptSizing",
311
+ "hintLabel"
312
+ ],
313
+ exportAs: ["matFormField"]
314
+ },
315
+ {
316
+ kind: "directive",
317
+ type: i3.MatLabel,
318
+ selector: "mat-label"
319
+ },
320
+ {
321
+ kind: "directive",
322
+ type: i3.MatError,
323
+ selector: "mat-error, [matError]",
324
+ inputs: ["id"]
325
+ },
326
+ {
327
+ kind: "directive",
328
+ type: i3.MatPrefix,
329
+ selector: "[matPrefix], [matIconPrefix], [matTextPrefix]",
330
+ inputs: ["matTextPrefix"]
331
+ },
332
+ {
333
+ kind: "directive",
334
+ type: i3.MatSuffix,
335
+ selector: "[matSuffix], [matIconSuffix], [matTextSuffix]",
336
+ inputs: ["matTextSuffix"]
337
+ },
338
+ {
339
+ kind: "ngmodule",
340
+ type: MatInputModule
341
+ },
342
+ {
343
+ kind: "directive",
344
+ type: i4.MatInput,
345
+ selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
346
+ inputs: [
347
+ "disabled",
348
+ "id",
349
+ "placeholder",
350
+ "name",
351
+ "required",
352
+ "type",
353
+ "errorStateMatcher",
354
+ "aria-describedby",
355
+ "value",
356
+ "readonly",
357
+ "disabledInteractive"
358
+ ],
359
+ exportAs: ["matInput"]
360
+ },
361
+ {
362
+ kind: "ngmodule",
363
+ type: MatButtonModule
364
+ },
365
+ {
366
+ kind: "component",
367
+ type: i5.MatButton,
368
+ 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] ",
369
+ inputs: ["matButton"],
370
+ exportAs: ["matButton", "matAnchor"]
371
+ },
372
+ {
373
+ kind: "component",
374
+ type: i5.MatIconButton,
375
+ selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
376
+ exportAs: ["matButton", "matAnchor"]
377
+ },
378
+ {
379
+ kind: "directive",
380
+ type: FormControlMarkDirtyDirective,
381
+ selector: "[rxapFormControlMarkDirty]"
382
+ },
383
+ {
384
+ kind: "directive",
385
+ type: FormSubmitFailedDirective,
386
+ selector: "[rxapFormSubmitFailed]"
387
+ },
388
+ {
389
+ kind: "directive",
390
+ type: FormSubmittingDirective,
391
+ selector: "[rxapFormSubmitting]"
392
+ },
393
+ {
394
+ kind: "ngmodule",
395
+ type: MatProgressBarModule
396
+ },
397
+ {
398
+ kind: "component",
399
+ type: i6$1.MatProgressBar,
400
+ selector: "mat-progress-bar",
401
+ inputs: [
402
+ "color",
403
+ "value",
404
+ "bufferValue",
405
+ "mode"
406
+ ],
407
+ outputs: ["animationEnd"],
408
+ exportAs: ["matProgressBar"]
409
+ },
410
+ {
411
+ kind: "ngmodule",
412
+ type: MatSnackBarModule
163
413
  },
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 });
414
+ {
415
+ kind: "directive",
416
+ type: ControlErrorDirective,
417
+ selector: "[rxapControlError]",
418
+ inputs: ["rxapControlErrorKey"]
419
+ }
420
+ ],
421
+ animations: [fadeAnimation],
422
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
423
+ });
167
424
  }
168
425
  };
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordComponent, decorators: [{
426
+ i0.ɵɵngDeclareClassMetadata({
427
+ minVersion: "12.0.0",
428
+ version: "22.3.0",
429
+ ngImport: i0,
430
+ type: ResetPasswordComponent,
431
+ decorators: [{
170
432
  type: Component,
171
- args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
172
- ResetPasswordFormProviders,
173
- {
433
+ args: [{
434
+ selector: "rxap-reset-password",
435
+ changeDetection: ChangeDetectionStrategy.OnPush,
436
+ providers: [ResetPasswordFormProviders, {
174
437
  provide: ErrorStateMatcher,
175
- useClass: ShowOnDirtyErrorStateMatcher,
176
- },
177
- ], animations: [
178
- fadeAnimation,
179
- ], imports: [
438
+ useClass: ShowOnDirtyErrorStateMatcher
439
+ }],
440
+ animations: [fadeAnimation],
441
+ imports: [
180
442
  ReactiveFormsModule,
181
443
  FormDirective,
182
444
  MatIconModule,
@@ -189,19 +451,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
189
451
  MatProgressBarModule,
190
452
  MatSnackBarModule,
191
453
  ControlErrorDirective
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"] }]
193
- }] });
194
- class SignInWithEmailAndPasswordMethod {
454
+ ],
455
+ 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",
456
+ 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"]
457
+ }]
458
+ }]
459
+ });
460
+ var SignInWithEmailAndPasswordMethod = class SignInWithEmailAndPasswordMethod {
195
461
  call(parameters) {
196
- throw new Error('Method not implemented.');
462
+ throw new Error("Method not implemented.");
463
+ }
464
+ static {
465
+ this.ɵfac = i0.ɵɵngDeclareFactory({
466
+ minVersion: "12.0.0",
467
+ version: "22.3.0",
468
+ ngImport: i0,
469
+ type: SignInWithEmailAndPasswordMethod,
470
+ deps: [],
471
+ target: i0.ɵɵFactoryTarget.Injectable
472
+ });
473
+ }
474
+ static {
475
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
476
+ minVersion: "12.0.0",
477
+ version: "22.3.0",
478
+ ngImport: i0,
479
+ type: SignInWithEmailAndPasswordMethod,
480
+ providedIn: "root"
481
+ });
197
482
  }
198
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SignInWithEmailAndPasswordMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
199
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SignInWithEmailAndPasswordMethod, providedIn: 'root' }); }
200
- }
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SignInWithEmailAndPasswordMethod, decorators: [{
483
+ };
484
+ i0.ɵɵngDeclareClassMetadata({
485
+ minVersion: "12.0.0",
486
+ version: "22.3.0",
487
+ ngImport: i0,
488
+ type: SignInWithEmailAndPasswordMethod,
489
+ decorators: [{
202
490
  type: Injectable,
203
- args: [{ providedIn: 'root' }]
204
- }] });
491
+ args: [{ providedIn: "root" }]
492
+ }]
493
+ });
205
494
  let LoginForm = class LoginForm {
206
495
  constructor() {
207
496
  this.config = inject(ConfigService);
@@ -209,45 +498,49 @@ let LoginForm = class LoginForm {
209
498
  this.loginFailed = false;
210
499
  }
211
500
  rxapOnInit() {
212
- const email = this.config.get('authentication.default.email');
213
- if (email) {
501
+ const email = this.config.get("authentication.default.email");
502
+ if (email)
214
503
  this.email.setValue(email);
215
- }
216
- const password = this.config.get('authentication.default.password');
217
- if (password) {
504
+ const password = this.config.get("authentication.default.password");
505
+ if (password)
218
506
  this.password.setValue(password);
219
- }
220
507
  }
221
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
222
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm }); }
508
+ static {
509
+ this.ɵfac = i0.ɵɵngDeclareFactory({
510
+ minVersion: "12.0.0",
511
+ version: "22.3.0",
512
+ ngImport: i0,
513
+ type: LoginForm,
514
+ deps: [],
515
+ target: i0.ɵɵFactoryTarget.Injectable
516
+ });
517
+ }
518
+ static {
519
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
520
+ minVersion: "12.0.0",
521
+ version: "22.3.0",
522
+ ngImport: i0,
523
+ type: LoginForm
524
+ });
525
+ }
223
526
  };
224
- __decorate([
225
- UseFormControl({
226
- validators: [Validators.required, Validators.email],
227
- }),
228
- __metadata("design:type", RxapFormControl)
229
- ], LoginForm.prototype, "email", void 0);
230
- __decorate([
231
- UseFormControl({
232
- validators: [Validators.required],
233
- }),
234
- __metadata("design:type", RxapFormControl)
235
- ], LoginForm.prototype, "password", void 0);
236
- __decorate([
237
- UseFormControl({
238
- state: true,
239
- }),
240
- __metadata("design:type", RxapFormControl)
241
- ], LoginForm.prototype, "remember", void 0);
242
- LoginForm = __decorate([
243
- RxapForm({
244
- id: 'rxap-login',
245
- })
246
- ], LoginForm);
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, decorators: [{
248
- type: Injectable
249
- }], propDecorators: { email: [], password: [], remember: [] } });
250
- class LoginFormSubmitMethod {
527
+ __decorate([UseFormControl({ validators: [Validators.required, Validators.email] }), __metadata("design:type", RxapFormControl)], LoginForm.prototype, "email", void 0);
528
+ __decorate([UseFormControl({ validators: [Validators.required] }), __metadata("design:type", RxapFormControl)], LoginForm.prototype, "password", void 0);
529
+ __decorate([UseFormControl({ state: true }), __metadata("design:type", RxapFormControl)], LoginForm.prototype, "remember", void 0);
530
+ LoginForm = __decorate([RxapForm({ id: "rxap-login" })], LoginForm);
531
+ i0.ɵɵngDeclareClassMetadata({
532
+ minVersion: "12.0.0",
533
+ version: "22.3.0",
534
+ ngImport: i0,
535
+ type: LoginForm,
536
+ decorators: [{ type: Injectable }],
537
+ propDecorators: {
538
+ email: [],
539
+ password: [],
540
+ remember: []
541
+ }
542
+ });
543
+ var LoginFormSubmitMethod = class LoginFormSubmitMethod {
251
544
  constructor() {
252
545
  this.signInWithEmailAndPasswordMethod = inject(SignInWithEmailAndPasswordMethod);
253
546
  }
@@ -255,62 +548,125 @@ class LoginFormSubmitMethod {
255
548
  return this.signInWithEmailAndPasswordMethod.call({
256
549
  email: value.email,
257
550
  password: value.password,
258
- remember: value.remember,
551
+ remember: value.remember
259
552
  });
260
553
  }
261
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
262
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod }); }
263
- }
264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
265
- type: Injectable
266
- }] });
267
- class LoginFormSubmitSuccessful {
554
+ static {
555
+ this.ɵfac = i0.ɵɵngDeclareFactory({
556
+ minVersion: "12.0.0",
557
+ version: "22.3.0",
558
+ ngImport: i0,
559
+ type: LoginFormSubmitMethod,
560
+ deps: [],
561
+ target: i0.ɵɵFactoryTarget.Injectable
562
+ });
563
+ }
564
+ static {
565
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
566
+ minVersion: "12.0.0",
567
+ version: "22.3.0",
568
+ ngImport: i0,
569
+ type: LoginFormSubmitMethod
570
+ });
571
+ }
572
+ };
573
+ i0.ɵɵngDeclareClassMetadata({
574
+ minVersion: "12.0.0",
575
+ version: "22.3.0",
576
+ ngImport: i0,
577
+ type: LoginFormSubmitMethod,
578
+ decorators: [{ type: Injectable }]
579
+ });
580
+ var LoginFormSubmitSuccessful = class LoginFormSubmitSuccessful {
268
581
  constructor() {
269
582
  this.router = inject(Router);
270
583
  }
271
584
  call() {
272
- console.debug('Login was successful. Navigate to application root');
273
- return this.router.navigate(['/']);
274
- }
275
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
276
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful }); }
277
- }
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
279
- type: Injectable
280
- }] });
585
+ console.debug("Login was successful. Navigate to application root");
586
+ return this.router.navigate(["/"]);
587
+ }
588
+ static {
589
+ this.ɵfac = i0.ɵɵngDeclareFactory({
590
+ minVersion: "12.0.0",
591
+ version: "22.3.0",
592
+ ngImport: i0,
593
+ type: LoginFormSubmitSuccessful,
594
+ deps: [],
595
+ target: i0.ɵɵFactoryTarget.Injectable
596
+ });
597
+ }
598
+ static {
599
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
600
+ minVersion: "12.0.0",
601
+ version: "22.3.0",
602
+ ngImport: i0,
603
+ type: LoginFormSubmitSuccessful
604
+ });
605
+ }
606
+ };
607
+ i0.ɵɵngDeclareClassMetadata({
608
+ minVersion: "12.0.0",
609
+ version: "22.3.0",
610
+ ngImport: i0,
611
+ type: LoginFormSubmitSuccessful,
612
+ decorators: [{ type: Injectable }]
613
+ });
281
614
  const LoginFormProviders = [
282
615
  LoginForm,
283
616
  {
284
617
  provide: RXAP_FORM_DEFINITION_BUILDER,
285
618
  useFactory: (injector) => new RxapFormBuilder(LoginForm, injector),
286
- deps: [INJECTOR],
619
+ deps: [INJECTOR]
287
620
  },
288
621
  {
289
622
  provide: RXAP_FORM_DEFINITION,
290
623
  useFactory: (builder) => builder.build(),
291
- deps: [RXAP_FORM_DEFINITION_BUILDER],
624
+ deps: [RXAP_FORM_DEFINITION_BUILDER]
292
625
  },
293
626
  {
294
627
  provide: RXAP_FORM_SUBMIT_METHOD,
295
- useClass: LoginFormSubmitMethod,
628
+ useClass: LoginFormSubmitMethod
296
629
  },
297
630
  {
298
631
  provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
299
- useClass: LoginFormSubmitSuccessful,
300
- },
632
+ useClass: LoginFormSubmitSuccessful
633
+ }
301
634
  ];
302
- class RequestResetPasswordMethod {
635
+ var RequestResetPasswordMethod = class RequestResetPasswordMethod {
303
636
  call(parameters) {
304
- throw new Error('Method not implemented.');
637
+ throw new Error("Method not implemented.");
305
638
  }
306
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequestResetPasswordMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
307
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequestResetPasswordMethod, providedIn: 'root' }); }
308
- }
309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequestResetPasswordMethod, decorators: [{
639
+ static {
640
+ this.ɵfac = i0.ɵɵngDeclareFactory({
641
+ minVersion: "12.0.0",
642
+ version: "22.3.0",
643
+ ngImport: i0,
644
+ type: RequestResetPasswordMethod,
645
+ deps: [],
646
+ target: i0.ɵɵFactoryTarget.Injectable
647
+ });
648
+ }
649
+ static {
650
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
651
+ minVersion: "12.0.0",
652
+ version: "22.3.0",
653
+ ngImport: i0,
654
+ type: RequestResetPasswordMethod,
655
+ providedIn: "root"
656
+ });
657
+ }
658
+ };
659
+ i0.ɵɵngDeclareClassMetadata({
660
+ minVersion: "12.0.0",
661
+ version: "22.3.0",
662
+ ngImport: i0,
663
+ type: RequestResetPasswordMethod,
664
+ decorators: [{
310
665
  type: Injectable,
311
- args: [{ providedIn: 'root' }]
312
- }] });
313
- class LoginComponent {
666
+ args: [{ providedIn: "root" }]
667
+ }]
668
+ });
669
+ var LoginComponent = class LoginComponent {
314
670
  constructor() {
315
671
  this.authentication = inject(RxapAuthenticationService);
316
672
  this.snackBar = inject(MatSnackBar);
@@ -320,53 +676,342 @@ class LoginComponent {
320
676
  async requestPasswordReset(email) {
321
677
  this.requestingPasswordReset$.enable();
322
678
  try {
323
- const result = await this.requestPasswordResetMethod.call({ email });
324
- if (!result) {
325
- this.snackBar.open('The password reset request result is falsy', undefined, {
326
- duration: 5000,
327
- panelClass: 'error',
328
- });
329
- }
330
- else {
331
- this.snackBar.open('The password reset request was successful', undefined, {
332
- duration: 3000,
679
+ if (!await this.requestPasswordResetMethod.call({ email }))
680
+ this.snackBar.open("The password reset request result is falsy", void 0, {
681
+ duration: 5e3,
682
+ panelClass: "error"
333
683
  });
334
- }
684
+ else
685
+ this.snackBar.open("The password reset request was successful", void 0, { duration: 3e3 });
335
686
  }
336
687
  catch (e) {
337
- this.snackBar.open(e.message, undefined, {
338
- duration: 3000,
339
- panelClass: 'error',
688
+ this.snackBar.open(e.message, void 0, {
689
+ duration: 3e3,
690
+ panelClass: "error"
340
691
  });
341
692
  }
342
693
  finally {
343
694
  this.requestingPasswordReset$.disable();
344
695
  }
345
696
  }
346
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
347
697
  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
- {
698
+ this.ɵfac = i0.ɵɵngDeclareFactory({
699
+ minVersion: "12.0.0",
700
+ version: "22.3.0",
701
+ ngImport: i0,
702
+ type: LoginComponent,
703
+ deps: [],
704
+ target: i0.ɵɵFactoryTarget.Component
705
+ });
706
+ }
707
+ static {
708
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
709
+ minVersion: "17.0.0",
710
+ version: "22.3.0",
711
+ type: LoginComponent,
712
+ isStandalone: true,
713
+ selector: "rxap-login",
714
+ providers: [LoginFormProviders, {
351
715
  provide: ErrorStateMatcher,
352
- useClass: ShowOnDirtyErrorStateMatcher,
716
+ useClass: ShowOnDirtyErrorStateMatcher
717
+ }],
718
+ ngImport: i0,
719
+ 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",
720
+ 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"],
721
+ dependencies: [
722
+ {
723
+ kind: "ngmodule",
724
+ type: ReactiveFormsModule
725
+ },
726
+ {
727
+ kind: "directive",
728
+ type: i1.ɵNgNoValidate,
729
+ selector: "form:not([ngNoForm]):not([ngNativeValidate])"
730
+ },
731
+ {
732
+ kind: "directive",
733
+ type: i1.DefaultValueAccessor,
734
+ selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
735
+ },
736
+ {
737
+ kind: "directive",
738
+ type: i1.NgControlStatus,
739
+ selector: "[formControlName],[ngModel],[formControl]"
740
+ },
741
+ {
742
+ kind: "directive",
743
+ type: i1.NgControlStatusGroup,
744
+ selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
745
+ },
746
+ {
747
+ kind: "directive",
748
+ type: i1.FormControlName,
749
+ selector: "[formControlName]",
750
+ inputs: [
751
+ "formControlName",
752
+ "disabled",
753
+ "ngModel"
754
+ ],
755
+ outputs: ["ngModelChange"]
756
+ },
757
+ {
758
+ kind: "directive",
759
+ type: FormDirective,
760
+ selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]",
761
+ inputs: [
762
+ "initial",
763
+ "context",
764
+ "rxapForm",
765
+ "submitMethod",
766
+ "loadMethod",
767
+ "loadFailedMethod",
768
+ "loadSuccessfulMethod",
769
+ "submitFailedMethod",
770
+ "submitSuccessfulMethod"
771
+ ],
772
+ outputs: [
773
+ "ngSubmit",
774
+ "rxapSubmit",
775
+ "invalidSubmit",
776
+ "submitSuccessful"
777
+ ],
778
+ exportAs: ["rxapForm"]
779
+ },
780
+ {
781
+ kind: "ngmodule",
782
+ type: MatIconModule
783
+ },
784
+ {
785
+ kind: "component",
786
+ type: i2.MatIcon,
787
+ selector: "mat-icon",
788
+ inputs: [
789
+ "color",
790
+ "inline",
791
+ "svgIcon",
792
+ "fontSet",
793
+ "fontIcon"
794
+ ],
795
+ exportAs: ["matIcon"]
796
+ },
797
+ {
798
+ kind: "ngmodule",
799
+ type: MatFormFieldModule
800
+ },
801
+ {
802
+ kind: "component",
803
+ type: i3.MatFormField,
804
+ selector: "mat-form-field",
805
+ inputs: [
806
+ "hideRequiredMarker",
807
+ "color",
808
+ "floatLabel",
809
+ "appearance",
810
+ "subscriptSizing",
811
+ "hintLabel"
812
+ ],
813
+ exportAs: ["matFormField"]
814
+ },
815
+ {
816
+ kind: "directive",
817
+ type: i3.MatLabel,
818
+ selector: "mat-label"
819
+ },
820
+ {
821
+ kind: "directive",
822
+ type: i3.MatError,
823
+ selector: "mat-error, [matError]",
824
+ inputs: ["id"]
825
+ },
826
+ {
827
+ kind: "directive",
828
+ type: i3.MatPrefix,
829
+ selector: "[matPrefix], [matIconPrefix], [matTextPrefix]",
830
+ inputs: ["matTextPrefix"]
831
+ },
832
+ {
833
+ kind: "directive",
834
+ type: i3.MatSuffix,
835
+ selector: "[matSuffix], [matIconSuffix], [matTextSuffix]",
836
+ inputs: ["matTextSuffix"]
837
+ },
838
+ {
839
+ kind: "ngmodule",
840
+ type: MatInputModule
841
+ },
842
+ {
843
+ kind: "directive",
844
+ type: i4.MatInput,
845
+ selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
846
+ inputs: [
847
+ "disabled",
848
+ "id",
849
+ "placeholder",
850
+ "name",
851
+ "required",
852
+ "type",
853
+ "errorStateMatcher",
854
+ "aria-describedby",
855
+ "value",
856
+ "readonly",
857
+ "disabledInteractive"
858
+ ],
859
+ exportAs: ["matInput"]
353
860
  },
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 });
861
+ {
862
+ kind: "ngmodule",
863
+ type: MatButtonModule
864
+ },
865
+ {
866
+ kind: "component",
867
+ type: i5.MatButton,
868
+ 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] ",
869
+ inputs: ["matButton"],
870
+ exportAs: ["matButton", "matAnchor"]
871
+ },
872
+ {
873
+ kind: "component",
874
+ type: i5.MatIconButton,
875
+ selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
876
+ exportAs: ["matButton", "matAnchor"]
877
+ },
878
+ {
879
+ kind: "ngmodule",
880
+ type: MatCheckboxModule
881
+ },
882
+ {
883
+ kind: "component",
884
+ type: i6.MatCheckbox,
885
+ selector: "mat-checkbox",
886
+ inputs: [
887
+ "aria-label",
888
+ "aria-labelledby",
889
+ "aria-describedby",
890
+ "aria-expanded",
891
+ "aria-controls",
892
+ "aria-owns",
893
+ "id",
894
+ "required",
895
+ "labelPosition",
896
+ "name",
897
+ "value",
898
+ "disableRipple",
899
+ "tabIndex",
900
+ "color",
901
+ "disabledInteractive",
902
+ "checked",
903
+ "disabled",
904
+ "indeterminate"
905
+ ],
906
+ outputs: ["change", "indeterminateChange"],
907
+ exportAs: ["matCheckbox"]
908
+ },
909
+ {
910
+ kind: "ngmodule",
911
+ type: MatTooltipModule
912
+ },
913
+ {
914
+ kind: "directive",
915
+ type: i7.MatTooltip,
916
+ selector: "[matTooltip]",
917
+ inputs: [
918
+ "matTooltipPosition",
919
+ "matTooltipPositionAtOrigin",
920
+ "matTooltipDisabled",
921
+ "matTooltipShowDelay",
922
+ "matTooltipHideDelay",
923
+ "matTooltipTouchGestures",
924
+ "matTooltip",
925
+ "matTooltipClass"
926
+ ],
927
+ exportAs: ["matTooltip"]
928
+ },
929
+ {
930
+ kind: "ngmodule",
931
+ type: MatProgressSpinnerModule
932
+ },
933
+ {
934
+ kind: "component",
935
+ type: i8.MatProgressSpinner,
936
+ selector: "mat-progress-spinner, mat-spinner",
937
+ inputs: [
938
+ "color",
939
+ "mode",
940
+ "value",
941
+ "diameter",
942
+ "strokeWidth"
943
+ ],
944
+ exportAs: ["matProgressSpinner"]
945
+ },
946
+ {
947
+ kind: "directive",
948
+ type: FormControlMarkDirtyDirective,
949
+ selector: "[rxapFormControlMarkDirty]"
950
+ },
951
+ {
952
+ kind: "directive",
953
+ type: FormSubmitFailedDirective,
954
+ selector: "[rxapFormSubmitFailed]"
955
+ },
956
+ {
957
+ kind: "directive",
958
+ type: FormSubmittingDirective,
959
+ selector: "[rxapFormSubmitting]"
960
+ },
961
+ {
962
+ kind: "ngmodule",
963
+ type: MatProgressBarModule
964
+ },
965
+ {
966
+ kind: "component",
967
+ type: i6$1.MatProgressBar,
968
+ selector: "mat-progress-bar",
969
+ inputs: [
970
+ "color",
971
+ "value",
972
+ "bufferValue",
973
+ "mode"
974
+ ],
975
+ outputs: ["animationEnd"],
976
+ exportAs: ["matProgressBar"]
977
+ },
978
+ {
979
+ kind: "ngmodule",
980
+ type: MatSnackBarModule
981
+ },
982
+ {
983
+ kind: "directive",
984
+ type: ControlErrorDirective,
985
+ selector: "[rxapControlError]",
986
+ inputs: ["rxapControlErrorKey"]
987
+ },
988
+ {
989
+ kind: "pipe",
990
+ type: AsyncPipe,
991
+ name: "async"
992
+ }
993
+ ],
994
+ animations: [fadeAnimation],
995
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
996
+ });
357
997
  }
358
- }
359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, decorators: [{
998
+ };
999
+ i0.ɵɵngDeclareClassMetadata({
1000
+ minVersion: "12.0.0",
1001
+ version: "22.3.0",
1002
+ ngImport: i0,
1003
+ type: LoginComponent,
1004
+ decorators: [{
360
1005
  type: Component,
361
- args: [{ selector: 'rxap-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
362
- LoginFormProviders,
363
- {
1006
+ args: [{
1007
+ selector: "rxap-login",
1008
+ changeDetection: ChangeDetectionStrategy.OnPush,
1009
+ providers: [LoginFormProviders, {
364
1010
  provide: ErrorStateMatcher,
365
- useClass: ShowOnDirtyErrorStateMatcher,
366
- },
367
- ], animations: [
368
- fadeAnimation,
369
- ], imports: [
1011
+ useClass: ShowOnDirtyErrorStateMatcher
1012
+ }],
1013
+ animations: [fadeAnimation],
1014
+ imports: [
370
1015
  ReactiveFormsModule,
371
1016
  FormDirective,
372
1017
  MatIconModule,
@@ -383,74 +1028,163 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
383
1028
  AsyncPipe,
384
1029
  MatSnackBarModule,
385
1030
  ControlErrorDirective
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
- }] });
388
- class LoadingComponent {
1031
+ ],
1032
+ 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",
1033
+ 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"]
1034
+ }]
1035
+ }]
1036
+ });
1037
+ var LoadingComponent = class LoadingComponent {
389
1038
  constructor() {
390
1039
  this.authentication = inject(RxapAuthenticationService);
391
1040
  this.router = inject(Router);
392
1041
  }
393
1042
  ngOnInit() {
394
- // TODO : remove the concept of isAuthenticated$
395
- if (this.authentication.isAuthenticated$) {
396
- this.subscription = this.authentication.isAuthenticated$
397
- .pipe(filter((isAuthenticated) => isAuthenticated !== null), tap(() => this.router.navigate(['/', 'authentication', 'login'])))
398
- .subscribe();
399
- }
1043
+ if (this.authentication.isAuthenticated$)
1044
+ this.subscription = this.authentication.isAuthenticated$.pipe(filter((isAuthenticated) => isAuthenticated !== null), tap(() => this.router.navigate([
1045
+ "/",
1046
+ "authentication",
1047
+ "login"
1048
+ ]))).subscribe();
400
1049
  }
401
1050
  ngOnDestroy() {
402
1051
  this.subscription?.unsubscribe();
403
1052
  }
404
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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 }); }
406
- }
407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, decorators: [{
1053
+ static {
1054
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1055
+ minVersion: "12.0.0",
1056
+ version: "22.3.0",
1057
+ ngImport: i0,
1058
+ type: LoadingComponent,
1059
+ deps: [],
1060
+ target: i0.ɵɵFactoryTarget.Component
1061
+ });
1062
+ }
1063
+ static {
1064
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1065
+ minVersion: "14.0.0",
1066
+ version: "22.3.0",
1067
+ type: LoadingComponent,
1068
+ isStandalone: true,
1069
+ selector: "rxap-auth-loading",
1070
+ ngImport: i0,
1071
+ template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n",
1072
+ styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}\n"],
1073
+ dependencies: [{
1074
+ kind: "ngmodule",
1075
+ type: MatProgressBarModule
1076
+ }, {
1077
+ kind: "component",
1078
+ type: i6$1.MatProgressBar,
1079
+ selector: "mat-progress-bar",
1080
+ inputs: [
1081
+ "color",
1082
+ "value",
1083
+ "bufferValue",
1084
+ "mode"
1085
+ ],
1086
+ outputs: ["animationEnd"],
1087
+ exportAs: ["matProgressBar"]
1088
+ }],
1089
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1090
+ });
1091
+ }
1092
+ };
1093
+ i0.ɵɵngDeclareClassMetadata({
1094
+ minVersion: "12.0.0",
1095
+ version: "22.3.0",
1096
+ ngImport: i0,
1097
+ type: LoadingComponent,
1098
+ decorators: [{
408
1099
  type: Component,
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"] }]
410
- }] });
411
- class AuthenticationContainerComponent {
412
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthenticationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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"] }] }); }
414
- }
415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthenticationContainerComponent, decorators: [{
1100
+ args: [{
1101
+ selector: "rxap-auth-loading",
1102
+ changeDetection: ChangeDetectionStrategy.OnPush,
1103
+ imports: [MatProgressBarModule],
1104
+ template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n",
1105
+ styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}\n"]
1106
+ }]
1107
+ }]
1108
+ });
1109
+ var AuthenticationContainerComponent = class AuthenticationContainerComponent {
1110
+ static {
1111
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1112
+ minVersion: "12.0.0",
1113
+ version: "22.3.0",
1114
+ ngImport: i0,
1115
+ type: AuthenticationContainerComponent,
1116
+ deps: [],
1117
+ target: i0.ɵɵFactoryTarget.Component
1118
+ });
1119
+ }
1120
+ static {
1121
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1122
+ minVersion: "14.0.0",
1123
+ version: "22.3.0",
1124
+ type: AuthenticationContainerComponent,
1125
+ isStandalone: true,
1126
+ selector: "rxap-authentication-container",
1127
+ ngImport: i0,
1128
+ 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",
1129
+ 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"],
1130
+ dependencies: [{
1131
+ kind: "directive",
1132
+ type: RouterOutlet,
1133
+ selector: "router-outlet",
1134
+ inputs: ["name", "routerOutletData"],
1135
+ outputs: [
1136
+ "activate",
1137
+ "deactivate",
1138
+ "attach",
1139
+ "detach"
1140
+ ],
1141
+ exportAs: ["outlet"]
1142
+ }],
1143
+ changeDetection: i0.ChangeDetectionStrategy.Eager
1144
+ });
1145
+ }
1146
+ };
1147
+ i0.ɵɵngDeclareClassMetadata({
1148
+ minVersion: "12.0.0",
1149
+ version: "22.3.0",
1150
+ ngImport: i0,
1151
+ type: AuthenticationContainerComponent,
1152
+ decorators: [{
416
1153
  type: Component,
417
- args: [{ selector: 'rxap-authentication-container', imports: [
418
- RouterOutlet,
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"] }]
420
- }] });
421
- const AUTHENTICATION_ROUTE = [
422
- {
423
- path: '',
1154
+ args: [{
1155
+ selector: "rxap-authentication-container",
1156
+ changeDetection: ChangeDetectionStrategy.Eager,
1157
+ imports: [RouterOutlet],
1158
+ 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",
1159
+ 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"]
1160
+ }]
1161
+ }]
1162
+ });
1163
+ const AUTHENTICATION_ROUTE = [{
1164
+ path: "",
424
1165
  component: AuthenticationContainerComponent,
425
1166
  children: [
426
1167
  {
427
1168
  canActivate: [RxapAuthenticationGuard],
428
- path: 'login',
429
- component: LoginComponent,
1169
+ path: "login",
1170
+ component: LoginComponent
430
1171
  },
431
1172
  {
432
1173
  canActivate: [RxapAuthenticationGuard],
433
- path: 'reset-password/:token',
434
- component: ResetPasswordComponent,
1174
+ path: "reset-password/:token",
1175
+ component: ResetPasswordComponent
435
1176
  },
436
1177
  {
437
- path: 'loading',
438
- component: LoadingComponent,
1178
+ path: "loading",
1179
+ component: LoadingComponent
439
1180
  },
440
1181
  {
441
- path: '**',
442
- redirectTo: 'login',
443
- },
444
- ],
445
- },
446
- {
447
- path: '**',
448
- redirectTo: '',
449
- },
450
- ];
451
- // region reset-password
452
- // endregion
453
- /**
454
- * Generated bundle index. Do not edit.
455
- */
1182
+ path: "**",
1183
+ redirectTo: "login"
1184
+ }
1185
+ ]
1186
+ }, {
1187
+ path: "**",
1188
+ redirectTo: ""
1189
+ }];
456
1190
  export { AUTHENTICATION_ROUTE, AuthenticationContainerComponent, LoadingComponent, LoginComponent, LoginForm, LoginFormProviders, LoginFormSubmitMethod, LoginFormSubmitSuccessful, RXAP_RESET_PASSWORD_FORM, RequestResetPasswordMethod, ResetPasswordComponent, ResetPasswordForm, ResetPasswordFormProviders, ResetPasswordFormSubmitMethod, SetNewPasswordWithResetTokenMethod, SignInWithEmailAndPasswordMethod, fadeAnimation };