@rxap/ngx-material-authentication 19.0.5 → 21.0.1-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.
- package/CHANGELOG.md +20 -0
- package/compodoc/changelog.html +19 -0
- package/compodoc/components/LoginComponent.html +65 -64
- package/compodoc/components/ResetPasswordComponent.html +60 -57
- package/compodoc/dependencies.html +15 -15
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +111 -111
- package/docs/html/classes/AuthenticationContainerComponent.html +2 -2
- package/docs/html/classes/LoadingComponent.html +4 -4
- package/docs/html/classes/LoginComponent.html +2 -2
- package/docs/html/classes/LoginForm.html +2 -2
- package/docs/html/classes/LoginFormSubmitMethod.html +2 -2
- package/docs/html/classes/LoginFormSubmitSuccessful.html +2 -2
- package/docs/html/classes/RequestResetPasswordMethod.html +2 -2
- package/docs/html/classes/ResetPasswordComponent.html +2 -2
- package/docs/html/classes/ResetPasswordForm.html +2 -2
- package/docs/html/classes/ResetPasswordFormSubmitMethod.html +2 -2
- package/docs/html/classes/SetNewPasswordWithResetTokenMethod.html +2 -2
- package/docs/html/classes/SignInWithEmailAndPasswordMethod.html +2 -2
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ILoginForm.html +2 -2
- package/docs/html/interfaces/IResetPasswordForm.html +2 -2
- package/docs/html/interfaces/RequestResetPasswordMethodParameters.html +2 -2
- package/docs/html/interfaces/SetNewPasswordWithResetTokenMethodParameters.html +2 -2
- package/docs/html/interfaces/SignInWithEmailAndPasswordMethodParameters.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/AUTHENTICATION_ROUTE.html +1 -1
- package/docs/html/variables/LoginFormProviders.html +1 -1
- package/docs/html/variables/RXAP_RESET_PASSWORD_FORM.html +1 -1
- package/docs/html/variables/ResetPasswordFormProviders.html +1 -1
- package/docs/html/variables/fadeAnimation.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AuthenticationContainerComponent.md +2 -2
- package/docs/markdown/classes/LoadingComponent.md +8 -8
- package/docs/markdown/classes/LoginComponent.md +5 -5
- package/docs/markdown/classes/LoginForm.md +11 -11
- package/docs/markdown/classes/LoginFormSubmitMethod.md +4 -4
- package/docs/markdown/classes/LoginFormSubmitSuccessful.md +4 -4
- package/docs/markdown/classes/RequestResetPasswordMethod.md +3 -3
- package/docs/markdown/classes/ResetPasswordComponent.md +2 -2
- package/docs/markdown/classes/ResetPasswordForm.md +7 -7
- package/docs/markdown/classes/ResetPasswordFormSubmitMethod.md +4 -4
- package/docs/markdown/classes/SetNewPasswordWithResetTokenMethod.md +3 -3
- package/docs/markdown/classes/SignInWithEmailAndPasswordMethod.md +3 -3
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ILoginForm.md +4 -4
- package/docs/markdown/interfaces/IResetPasswordForm.md +4 -4
- package/docs/markdown/interfaces/RequestResetPasswordMethodParameters.md +3 -3
- package/docs/markdown/interfaces/SetNewPasswordWithResetTokenMethodParameters.md +4 -4
- package/docs/markdown/interfaces/SignInWithEmailAndPasswordMethodParameters.md +5 -5
- package/docs/markdown/variables/AUTHENTICATION_ROUTE.md +2 -2
- package/docs/markdown/variables/LoginFormProviders.md +2 -2
- package/docs/markdown/variables/RXAP_RESET_PASSWORD_FORM.md +2 -2
- package/docs/markdown/variables/ResetPasswordFormProviders.md +2 -2
- package/docs/markdown/variables/fadeAnimation.md +2 -2
- package/docs/wiki/Class.AuthenticationContainerComponent.md +1 -1
- package/docs/wiki/Class.LoadingComponent.md +7 -7
- package/docs/wiki/Class.LoginComponent.md +4 -4
- package/docs/wiki/Class.LoginForm.md +10 -10
- package/docs/wiki/Class.LoginFormSubmitMethod.md +3 -3
- package/docs/wiki/Class.LoginFormSubmitSuccessful.md +3 -3
- package/docs/wiki/Class.RequestResetPasswordMethod.md +2 -2
- package/docs/wiki/Class.ResetPasswordComponent.md +1 -1
- package/docs/wiki/Class.ResetPasswordForm.md +6 -6
- package/docs/wiki/Class.ResetPasswordFormSubmitMethod.md +3 -3
- package/docs/wiki/Class.SetNewPasswordWithResetTokenMethod.md +2 -2
- package/docs/wiki/Class.SignInWithEmailAndPasswordMethod.md +2 -2
- package/docs/wiki/Interface.ILoginForm.md +3 -3
- package/docs/wiki/Interface.IResetPasswordForm.md +3 -3
- package/docs/wiki/Interface.RequestResetPasswordMethodParameters.md +2 -2
- package/docs/wiki/Interface.SetNewPasswordWithResetTokenMethodParameters.md +3 -3
- package/docs/wiki/Interface.SignInWithEmailAndPasswordMethodParameters.md +4 -4
- package/docs/wiki/Variable.AUTHENTICATION_ROUTE.md +1 -1
- package/docs/wiki/Variable.LoginFormProviders.md +1 -1
- package/docs/wiki/Variable.RXAP_RESET_PASSWORD_FORM.md +1 -1
- package/docs/wiki/Variable.ResetPasswordFormProviders.md +1 -1
- package/docs/wiki/Variable.fadeAnimation.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-material-authentication.mjs +46 -48
- package/fesm2022/rxap-ngx-material-authentication.mjs.map +1 -1
- package/package.json +47 -46
- package/types/rxap-ngx-material-authentication.d.ts +148 -0
- package/index.d.ts +0 -11
- package/lib/authentication-container/authentication-container.component.d.ts +0 -5
- package/lib/fade-animation.d.ts +0 -1
- package/lib/loading/loading.component.d.ts +0 -15
- package/lib/login/login.component.d.ts +0 -14
- package/lib/login/login.form.d.ts +0 -43
- package/lib/login/request-reset-password.method.d.ts +0 -10
- package/lib/login/sign-in-with-email-and-password.method.d.ts +0 -12
- package/lib/reset-password/reset-password.component.d.ts +0 -5
- package/lib/reset-password/reset-password.form.d.ts +0 -35
- package/lib/reset-password/set-new-password-with-reset-token.method.d.ts +0 -11
- package/lib/routes.d.ts +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: SignInWithEmailAndPasswordMethodParameters
|
|
4
4
|
|
|
5
|
-
Defined in: [login/sign-in-with-email-and-password.method.ts:4](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [login/sign-in-with-email-and-password.method.ts:4](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/login/sign-in-with-email-and-password.method.ts#L4)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [login/sign-in-with-email-and-password.method.ts:4](https://gitlab.c
|
|
|
10
10
|
|
|
11
11
|
> **email**: `string`
|
|
12
12
|
|
|
13
|
-
Defined in: [login/sign-in-with-email-and-password.method.ts:5](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [login/sign-in-with-email-and-password.method.ts:5](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/login/sign-in-with-email-and-password.method.ts#L5)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [login/sign-in-with-email-and-password.method.ts:5](https://gitlab.c
|
|
|
18
18
|
|
|
19
19
|
> **password**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [login/sign-in-with-email-and-password.method.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [login/sign-in-with-email-and-password.method.ts:6](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/login/sign-in-with-email-and-password.method.ts#L6)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,4 +26,4 @@ Defined in: [login/sign-in-with-email-and-password.method.ts:6](https://gitlab.c
|
|
|
26
26
|
|
|
27
27
|
> `optional` **remember**: `boolean`
|
|
28
28
|
|
|
29
|
-
Defined in: [login/sign-in-with-email-and-password.method.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [login/sign-in-with-email-and-password.method.ts:7](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/login/sign-in-with-email-and-password.method.ts#L7)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **AUTHENTICATION\_ROUTE**: `Routes`
|
|
6
6
|
|
|
7
|
-
Defined in: [routes.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [routes.ts:8](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/routes.ts#L8)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **LoginFormProviders**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [login/login.form.ts:105](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [login/login.form.ts:105](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/login/login.form.ts#L105)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_RESET\_PASSWORD\_FORM**: `"rxap-reset-password"` = `'rxap-reset-password'`
|
|
6
6
|
|
|
7
|
-
Defined in: [reset-password/reset-password.form.ts:37](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [reset-password/reset-password.form.ts:37](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/reset-password/reset-password.form.ts#L37)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **ResetPasswordFormProviders**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [reset-password/reset-password.form.ts:122](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [reset-password/reset-password.form.ts:122](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/reset-password/reset-password.form.ts#L122)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **fadeAnimation**: `AnimationTriggerMetadata`
|
|
6
6
|
|
|
7
|
-
Defined in: [fade-animation.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [fade-animation.ts:10](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/material/authentication/src/lib/fade-animation.ts#L10)
|
package/docs/wiki/globals.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { NgIf, AsyncPipe } from '@angular/common';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Inject, INJECTOR,
|
|
2
|
+
import { Injectable, Inject, INJECTOR, ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
4
3
|
import * as i1 from '@angular/forms';
|
|
5
4
|
import { Validators, ReactiveFormsModule } from '@angular/forms';
|
|
6
5
|
import * as i5 from '@angular/material/button';
|
|
7
6
|
import { MatButtonModule } from '@angular/material/button';
|
|
8
|
-
import {
|
|
7
|
+
import { ShowOnDirtyErrorStateMatcher, ErrorStateMatcher } from '@angular/material/core';
|
|
9
8
|
import * as i3$1 from '@angular/material/form-field';
|
|
10
9
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
11
10
|
import * as i2$1 from '@angular/material/icon';
|
|
@@ -16,7 +15,7 @@ import * as i6 from '@angular/material/progress-bar';
|
|
|
16
15
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
17
16
|
import * as i3 from '@angular/material/snack-bar';
|
|
18
17
|
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
19
|
-
import { UseFormControl, RxapFormControl, ControlValidator, ControlSetValue, RxapForm,
|
|
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';
|
|
20
19
|
import { ControlErrorDirective } from '@rxap/material-form-system';
|
|
21
20
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
22
21
|
import { __decorate, __metadata } from 'tslib';
|
|
@@ -24,6 +23,7 @@ import * as i2 from '@angular/router';
|
|
|
24
23
|
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
25
24
|
import { firstValueFrom } from 'rxjs';
|
|
26
25
|
import { take, map, switchMap, tap, filter } from 'rxjs/operators';
|
|
26
|
+
import { AsyncPipe } from '@angular/common';
|
|
27
27
|
import * as i6$1 from '@angular/material/checkbox';
|
|
28
28
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
29
29
|
import * as i8 from '@angular/material/progress-spinner';
|
|
@@ -53,10 +53,10 @@ class SetNewPasswordWithResetTokenMethod {
|
|
|
53
53
|
call(parameters) {
|
|
54
54
|
throw new Error('Method not implemented.');
|
|
55
55
|
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetNewPasswordWithResetTokenMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
57
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetNewPasswordWithResetTokenMethod, providedIn: 'root' }); }
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetNewPasswordWithResetTokenMethod, decorators: [{
|
|
60
60
|
type: Injectable,
|
|
61
61
|
args: [{ providedIn: 'root' }]
|
|
62
62
|
}] });
|
|
@@ -88,10 +88,10 @@ class ResetPasswordFormSubmitMethod {
|
|
|
88
88
|
},
|
|
89
89
|
}), map(() => true)));
|
|
90
90
|
}
|
|
91
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
92
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
91
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, deps: [{ token: ActivatedRoute }, { token: SetNewPasswordWithResetTokenMethod }, { token: MatSnackBar }, { token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
92
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod }); }
|
|
93
93
|
}
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
|
|
95
95
|
type: Injectable
|
|
96
96
|
}], ctorParameters: () => [{ type: i2.ActivatedRoute, decorators: [{
|
|
97
97
|
type: Inject,
|
|
@@ -116,8 +116,8 @@ let ResetPasswordForm = class ResetPasswordForm {
|
|
|
116
116
|
resetRepeat() {
|
|
117
117
|
this.passwordRepeat.reset();
|
|
118
118
|
}
|
|
119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
120
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
120
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordForm }); }
|
|
121
121
|
};
|
|
122
122
|
__decorate([
|
|
123
123
|
UseFormControl({
|
|
@@ -148,7 +148,7 @@ ResetPasswordForm = __decorate([
|
|
|
148
148
|
id: RXAP_RESET_PASSWORD_FORM,
|
|
149
149
|
})
|
|
150
150
|
], ResetPasswordForm);
|
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordForm, decorators: [{
|
|
152
152
|
type: Injectable
|
|
153
153
|
}], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
|
|
154
154
|
const ResetPasswordFormProviders = [
|
|
@@ -170,18 +170,18 @@ const ResetPasswordFormProviders = [
|
|
|
170
170
|
];
|
|
171
171
|
|
|
172
172
|
class ResetPasswordComponent {
|
|
173
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
174
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
174
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ResetPasswordComponent, isStandalone: true, selector: "rxap-reset-password", providers: [
|
|
175
175
|
ResetPasswordFormProviders,
|
|
176
176
|
{
|
|
177
177
|
provide: ErrorStateMatcher,
|
|
178
178
|
useClass: ShowOnDirtyErrorStateMatcher,
|
|
179
179
|
},
|
|
180
|
-
], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n
|
|
180
|
+
], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col items-center justify-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header grow-0 flex flex-col items-center justify-center\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-4\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>New password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Repeat password</mat-label>\n <input #passwordRepeatInput\n formControlName=\"passwordRepeat\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password again\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'equal'\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n @if (passwordRepeatInput.type === 'password') {\n <button (click)=\"passwordRepeatInput.type = 'text'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordRepeatInput.type === 'text') {\n <button (click)=\"passwordRepeatInput.type = 'password'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">\n <ng-container i18n>Reset password</ng-container>\n </button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row items-center justify-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "context", "rxapForm", "submitMethod", "loadMethod", "loadFailedMethod", "loadSuccessfulMethod", "submitFailedMethod", "submitSuccessfulMethod"], outputs: ["ngSubmit", "initialChange", "contextChange", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { kind: "directive", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "directive", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: ["rxapControlErrorKey"] }], animations: [
|
|
181
181
|
fadeAnimation,
|
|
182
182
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
183
183
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetPasswordComponent, decorators: [{
|
|
185
185
|
type: Component,
|
|
186
186
|
args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
187
187
|
ResetPasswordFormProviders,
|
|
@@ -197,25 +197,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
197
197
|
MatIconModule,
|
|
198
198
|
MatFormFieldModule,
|
|
199
199
|
MatInputModule,
|
|
200
|
-
NgIf,
|
|
201
200
|
MatButtonModule,
|
|
202
201
|
FormControlMarkDirtyDirective,
|
|
203
202
|
FormSubmitFailedDirective,
|
|
204
203
|
FormSubmittingDirective,
|
|
205
204
|
MatProgressBarModule,
|
|
206
205
|
MatSnackBarModule,
|
|
207
|
-
ControlErrorDirective
|
|
208
|
-
], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n
|
|
206
|
+
ControlErrorDirective
|
|
207
|
+
], 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"] }]
|
|
209
208
|
}] });
|
|
210
209
|
|
|
211
210
|
class SignInWithEmailAndPasswordMethod {
|
|
212
211
|
call(parameters) {
|
|
213
212
|
throw new Error('Method not implemented.');
|
|
214
213
|
}
|
|
215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
216
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SignInWithEmailAndPasswordMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
215
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SignInWithEmailAndPasswordMethod, providedIn: 'root' }); }
|
|
217
216
|
}
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SignInWithEmailAndPasswordMethod, decorators: [{
|
|
219
218
|
type: Injectable,
|
|
220
219
|
args: [{ providedIn: 'root' }]
|
|
221
220
|
}] });
|
|
@@ -236,8 +235,8 @@ let LoginForm = class LoginForm {
|
|
|
236
235
|
this.password.setValue(password);
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
240
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
238
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, deps: [{ token: i1$1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
239
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm }); }
|
|
241
240
|
};
|
|
242
241
|
__decorate([
|
|
243
242
|
UseFormControl({
|
|
@@ -263,7 +262,7 @@ LoginForm = __decorate([
|
|
|
263
262
|
}),
|
|
264
263
|
__metadata("design:paramtypes", [ConfigService])
|
|
265
264
|
], LoginForm);
|
|
266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginForm, decorators: [{
|
|
267
266
|
type: Injectable
|
|
268
267
|
}], ctorParameters: () => [{ type: i1$1.ConfigService }], propDecorators: { email: [], password: [], remember: [] } });
|
|
269
268
|
class LoginFormSubmitMethod {
|
|
@@ -277,10 +276,10 @@ class LoginFormSubmitMethod {
|
|
|
277
276
|
remember: value.remember,
|
|
278
277
|
});
|
|
279
278
|
}
|
|
280
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
281
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, deps: [{ token: SignInWithEmailAndPasswordMethod }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
280
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod }); }
|
|
282
281
|
}
|
|
283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
|
|
284
283
|
type: Injectable
|
|
285
284
|
}], ctorParameters: () => [{ type: SignInWithEmailAndPasswordMethod }] });
|
|
286
285
|
class LoginFormSubmitSuccessful {
|
|
@@ -291,10 +290,10 @@ class LoginFormSubmitSuccessful {
|
|
|
291
290
|
console.debug('Login was successful. Navigate to application root');
|
|
292
291
|
return this.router.navigate(['/']);
|
|
293
292
|
}
|
|
294
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
295
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
294
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful }); }
|
|
296
295
|
}
|
|
297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
|
|
298
297
|
type: Injectable
|
|
299
298
|
}], ctorParameters: () => [{ type: i2.Router, decorators: [{
|
|
300
299
|
type: Inject,
|
|
@@ -326,10 +325,10 @@ class RequestResetPasswordMethod {
|
|
|
326
325
|
call(parameters) {
|
|
327
326
|
throw new Error('Method not implemented.');
|
|
328
327
|
}
|
|
329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
330
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequestResetPasswordMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
329
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequestResetPasswordMethod, providedIn: 'root' }); }
|
|
331
330
|
}
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequestResetPasswordMethod, decorators: [{
|
|
333
332
|
type: Injectable,
|
|
334
333
|
args: [{ providedIn: 'root' }]
|
|
335
334
|
}] });
|
|
@@ -367,18 +366,18 @@ class LoginComponent {
|
|
|
367
366
|
this.requestingPasswordReset$.disable();
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
371
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
369
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, deps: [{ token: RxapAuthenticationService }, { token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
370
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: LoginComponent, isStandalone: true, selector: "rxap-login", providers: [
|
|
372
371
|
LoginFormProviders,
|
|
373
372
|
{
|
|
374
373
|
provide: ErrorStateMatcher,
|
|
375
374
|
useClass: ShowOnDirtyErrorStateMatcher,
|
|
376
375
|
},
|
|
377
|
-
], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n
|
|
376
|
+
], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col justify-center items-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header flex flex-col items-center justify-center grow-0\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-8\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n i18n-placeholder\n matInput\n name=\"email\"\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'email'\">\n Please enter a valid email address\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n name=\"password\"\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'test'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls flex flex-row flex-wrap justify-between items-center gap-4\">\n\n <mat-checkbox class=\"remember-input grow-0\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n class=\"grow-0\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\">\n <button (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls['email'].hasError('email')\"\n color=\"accent\"\n mat-button\n type=\"button\">\n <span class=\"flex flex-row justify-between items-center gap-2\">\n @if (requestingPasswordReset$ | async) {\n <mat-progress-spinner [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n }\n <span class=\"grow-0\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row justify-center items-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: ["::ng-deep .mat-mdc-snack-bar-container.error{background-color:var(--warn-500);color:var(--foreground-color)}.inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "context", "rxapForm", "submitMethod", "loadMethod", "loadFailedMethod", "loadSuccessfulMethod", "submitFailedMethod", "submitSuccessfulMethod"], outputs: ["ngSubmit", "initialChange", "contextChange", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { kind: "directive", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "directive", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: ["rxapControlErrorKey"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [
|
|
378
377
|
fadeAnimation,
|
|
379
378
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
380
379
|
}
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoginComponent, decorators: [{
|
|
382
381
|
type: Component,
|
|
383
382
|
args: [{ selector: 'rxap-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
384
383
|
LoginFormProviders,
|
|
@@ -394,7 +393,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
394
393
|
MatIconModule,
|
|
395
394
|
MatFormFieldModule,
|
|
396
395
|
MatInputModule,
|
|
397
|
-
NgIf,
|
|
398
396
|
MatButtonModule,
|
|
399
397
|
MatCheckboxModule,
|
|
400
398
|
MatTooltipModule,
|
|
@@ -405,8 +403,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
405
403
|
MatProgressBarModule,
|
|
406
404
|
AsyncPipe,
|
|
407
405
|
MatSnackBarModule,
|
|
408
|
-
ControlErrorDirective
|
|
409
|
-
], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n
|
|
406
|
+
ControlErrorDirective
|
|
407
|
+
], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\"\n class=\"inner mat-elevation-z5 flex flex-col justify-center items-center gap-4\"\n novalidate\n rxapForm>\n\n <div class=\"header flex flex-col items-center justify-center grow-0\">\n\n <mat-icon class=\"avatar-icon grow-0\" color=\"primary\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content flex flex-col gap-8\">\n\n <div class=\"flex flex-col\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n i18n-placeholder\n matInput\n name=\"email\"\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapControlError=\"let error key 'email'\">\n Please enter a valid email address\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>Password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n i18n-placeholder\n matInput\n name=\"password\"\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapControlError=\"let error key 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n @if (passwordInput.type === 'password') {\n <button (click)=\"passwordInput.type = 'test'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n }\n @if (passwordInput.type === 'text') {\n <button (click)=\"passwordInput.type = 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n }\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls flex flex-row flex-wrap justify-between items-center gap-4\">\n\n <mat-checkbox class=\"remember-input grow-0\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n class=\"grow-0\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\">\n <button (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls['email'].hasError('email')\"\n color=\"accent\"\n mat-button\n type=\"button\">\n <span class=\"flex flex-row justify-between items-center gap-2\">\n @if (requestingPasswordReset$ | async) {\n <mat-progress-spinner [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n }\n <span class=\"grow-0\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div class=\"grow-0 flex flex-row justify-center items-center\">\n\n <div class=\"grow-0\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" class=\"flex flex-row justify-center items-center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n\n</form>\n", styles: ["::ng-deep .mat-mdc-snack-bar-container.error{background-color:var(--warn-500);color:var(--foreground-color)}.inner{padding:48px;position:relative;margin:16px 0;background-color:var(--background-color)}.inner ::ng-deep .mat-mdc-form-field-icon-prefix,.inner ::ng-deep .mat-mdc-form-field-icon-suffix{color:var(--hint-text-color, gray)}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;inset:auto 0 0}\n"] }]
|
|
410
408
|
}], ctorParameters: () => [{ type: i10.RxapAuthenticationService, decorators: [{
|
|
411
409
|
type: Inject,
|
|
412
410
|
args: [RxapAuthenticationService]
|
|
@@ -431,10 +429,10 @@ class LoadingComponent {
|
|
|
431
429
|
ngOnDestroy() {
|
|
432
430
|
this.subscription?.unsubscribe();
|
|
433
431
|
}
|
|
434
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
435
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
432
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, deps: [{ token: RxapAuthenticationService }, { token: Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
433
|
+
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 }); }
|
|
436
434
|
}
|
|
437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
438
436
|
type: Component,
|
|
439
437
|
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"] }]
|
|
440
438
|
}], ctorParameters: () => [{ type: i10.RxapAuthenticationService, decorators: [{
|
|
@@ -446,10 +444,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
|
|
|
446
444
|
}] }] });
|
|
447
445
|
|
|
448
446
|
class AuthenticationContainerComponent {
|
|
449
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
450
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
447
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthenticationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
448
|
+
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"] }] }); }
|
|
451
449
|
}
|
|
452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthenticationContainerComponent, decorators: [{
|
|
453
451
|
type: Component,
|
|
454
452
|
args: [{ selector: 'rxap-authentication-container', imports: [
|
|
455
453
|
RouterOutlet,
|