@rxap/authentication 16.0.0-dev.9 → 16.0.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 (39) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +1 -1
  3. package/esm2022/index.mjs +6 -5
  4. package/esm2022/lib/authentication.service.mjs +7 -56
  5. package/esm2022/lib/bearer-token.interceptor.mjs +27 -0
  6. package/esm2022/lib/tokens.mjs +17 -2
  7. package/fesm2022/rxap-authentication.mjs +87 -145
  8. package/fesm2022/rxap-authentication.mjs.map +1 -1
  9. package/index.d.ts +3 -4
  10. package/lib/authentication.service.d.ts +3 -10
  11. package/lib/bearer-token.interceptor.d.ts +3 -0
  12. package/lib/tokens.d.ts +9 -1
  13. package/package.json +33 -49
  14. package/theme.css +1 -1
  15. package/components/index.d.ts +0 -8
  16. package/components/lib/authentication-container/authentication-container.component.d.ts +0 -7
  17. package/components/lib/fade-animation.d.ts +0 -1
  18. package/components/lib/loading/loading.component.d.ts +0 -15
  19. package/components/lib/login/login.component.d.ts +0 -13
  20. package/components/lib/login/login.form.d.ts +0 -43
  21. package/components/lib/reset-password/reset-password.component.d.ts +0 -5
  22. package/components/lib/reset-password/reset-password.form.d.ts +0 -35
  23. package/components/lib/routes.d.ts +0 -2
  24. package/esm2022/components/index.mjs +0 -9
  25. package/esm2022/components/lib/authentication-container/authentication-container.component.mjs +0 -38
  26. package/esm2022/components/lib/fade-animation.mjs +0 -14
  27. package/esm2022/components/lib/loading/loading.component.mjs +0 -39
  28. package/esm2022/components/lib/login/login.component.mjs +0 -104
  29. package/esm2022/components/lib/login/login.form.mjs +0 -108
  30. package/esm2022/components/lib/reset-password/reset-password.component.mjs +0 -53
  31. package/esm2022/components/lib/reset-password/reset-password.form.mjs +0 -117
  32. package/esm2022/components/lib/routes.mjs +0 -32
  33. package/esm2022/components/rxap-authentication-components.mjs +0 -5
  34. package/esm2022/lib/user-profile.service.mjs +0 -38
  35. package/esm2022/lib/user.service.mjs +0 -16
  36. package/fesm2022/rxap-authentication-components.mjs +0 -453
  37. package/fesm2022/rxap-authentication-components.mjs.map +0 -1
  38. package/lib/user-profile.service.d.ts +0 -21
  39. package/lib/user.service.d.ts +0 -16
@@ -1,38 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class RxapUserProfileService {
4
- constructor() {
5
- this.profile = {
6
- username: 'rxap',
7
- email: 'rxap@digitaix.dev',
8
- firstName: 'Rxap',
9
- lastName: 'DigitAIX',
10
- name: 'Rxap DigitAIX',
11
- img: 'icon.png',
12
- language: 'en',
13
- roleList: ['user.*', '*.edit'],
14
- };
15
- }
16
- async getProfile() {
17
- return { ...this.profile };
18
- }
19
- async setProfile(profile) {
20
- this.profile = profile;
21
- }
22
- async setLanguage(language) {
23
- this.profile.language = language;
24
- }
25
- async getLanguage() {
26
- return this.profile?.language ?? null;
27
- }
28
- async getRoleList() {
29
- return this.profile.roleList ?? [];
30
- }
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
32
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, providedIn: 'root' }); }
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, decorators: [{
35
- type: Injectable,
36
- args: [{ providedIn: 'root' }]
37
- }] });
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1wcm9maWxlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL2F1dGhlbnRpY2F0aW9uL3NyYy9saWIvdXNlci1wcm9maWxlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFjM0MsTUFBTSxPQUFPLHNCQUFzQjtJQURuQztRQUdFLFlBQU8sR0FBb0I7WUFDekIsUUFBUSxFQUFFLE1BQU07WUFDaEIsS0FBSyxFQUFFLG1CQUFtQjtZQUMxQixTQUFTLEVBQUUsTUFBTTtZQUNqQixRQUFRLEVBQUUsVUFBVTtZQUNwQixJQUFJLEVBQUUsZUFBZTtZQUNyQixHQUFHLEVBQUUsVUFBVTtZQUNmLFFBQVEsRUFBRSxJQUFJO1lBQ2QsUUFBUSxFQUFFLENBQUUsUUFBUSxFQUFFLFFBQVEsQ0FBRTtTQUNqQyxDQUFDO0tBc0JIO0lBcEJDLEtBQUssQ0FBQyxVQUFVO1FBQ2QsT0FBTyxFQUFFLEdBQUcsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQzdCLENBQUM7SUFFRCxLQUFLLENBQUMsVUFBVSxDQUFDLE9BQXdCO1FBQ3ZDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0lBQ3pCLENBQUM7SUFFRCxLQUFLLENBQUMsV0FBVyxDQUFDLFFBQWdCO1FBQ2hDLElBQUksQ0FBQyxPQUFPLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztJQUNuQyxDQUFDO0lBRUQsS0FBSyxDQUFDLFdBQVc7UUFDZixPQUFPLElBQUksQ0FBQyxPQUFPLEVBQUUsUUFBUSxJQUFJLElBQUksQ0FBQztJQUN4QyxDQUFDO0lBRUQsS0FBSyxDQUFDLFdBQVc7UUFDZixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQztJQUNyQyxDQUFDOzhHQS9CVSxzQkFBc0I7a0hBQXRCLHNCQUFzQixjQURULE1BQU07OzJGQUNuQixzQkFBc0I7a0JBRGxDLFVBQVU7bUJBQUMsRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFJ4YXBVc2VyUHJvZmlsZSB7XG4gIHVzZXJuYW1lPzogc3RyaW5nO1xuICBlbWFpbD86IHN0cmluZztcbiAgZmlyc3ROYW1lPzogc3RyaW5nO1xuICBsYXN0TmFtZT86IHN0cmluZztcbiAgbmFtZT86IHN0cmluZztcbiAgaW1nPzogc3RyaW5nO1xuICBsYW5ndWFnZT86IHN0cmluZztcbiAgcm9sZUxpc3Q/OiBzdHJpbmdbXTtcbn1cblxuQEluamVjdGFibGUoeyBwcm92aWRlZEluOiAncm9vdCcgfSlcbmV4cG9ydCBjbGFzcyBSeGFwVXNlclByb2ZpbGVTZXJ2aWNlIHtcblxuICBwcm9maWxlOiBSeGFwVXNlclByb2ZpbGUgPSB7XG4gICAgdXNlcm5hbWU6ICdyeGFwJyxcbiAgICBlbWFpbDogJ3J4YXBAZGlnaXRhaXguZGV2JyxcbiAgICBmaXJzdE5hbWU6ICdSeGFwJyxcbiAgICBsYXN0TmFtZTogJ0RpZ2l0QUlYJyxcbiAgICBuYW1lOiAnUnhhcCBEaWdpdEFJWCcsXG4gICAgaW1nOiAnaWNvbi5wbmcnLFxuICAgIGxhbmd1YWdlOiAnZW4nLFxuICAgIHJvbGVMaXN0OiBbICd1c2VyLionLCAnKi5lZGl0JyBdLFxuICB9O1xuXG4gIGFzeW5jIGdldFByb2ZpbGUoKTogUHJvbWlzZTxSeGFwVXNlclByb2ZpbGUgfCBudWxsPiB7XG4gICAgcmV0dXJuIHsgLi4udGhpcy5wcm9maWxlIH07XG4gIH1cblxuICBhc3luYyBzZXRQcm9maWxlKHByb2ZpbGU6IFJ4YXBVc2VyUHJvZmlsZSk6IFByb21pc2U8dm9pZD4ge1xuICAgIHRoaXMucHJvZmlsZSA9IHByb2ZpbGU7XG4gIH1cblxuICBhc3luYyBzZXRMYW5ndWFnZShsYW5ndWFnZTogc3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgdGhpcy5wcm9maWxlLmxhbmd1YWdlID0gbGFuZ3VhZ2U7XG4gIH1cblxuICBhc3luYyBnZXRMYW5ndWFnZSgpOiBQcm9taXNlPHN0cmluZyB8IG51bGw+IHtcbiAgICByZXR1cm4gdGhpcy5wcm9maWxlPy5sYW5ndWFnZSA/PyBudWxsO1xuICB9XG5cbiAgYXN5bmMgZ2V0Um9sZUxpc3QoKTogUHJvbWlzZTxzdHJpbmdbXT4ge1xuICAgIHJldHVybiB0aGlzLnByb2ZpbGUucm9sZUxpc3QgPz8gW107XG4gIH1cblxufVxuIl19
@@ -1,16 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /* ignore coverage */
5
- export class UserService {
6
- constructor() {
7
- this.user$ = new BehaviorSubject(null);
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
10
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, providedIn: 'root' }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, decorators: [{
13
- type: Injectable,
14
- args: [{ providedIn: 'root' }]
15
- }] });
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9hdXRoZW50aWNhdGlvbi9zcmMvbGliL3VzZXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBYXZDLHFCQUFxQjtBQUNyQixNQUFNLE9BQU8sV0FBVztJQUZ4QjtRQUlTLFVBQUssR0FBRyxJQUFJLGVBQWUsQ0FBYyxJQUFJLENBQUMsQ0FBQztLQUV2RDs4R0FKWSxXQUFXO2tIQUFYLFdBQVcsY0FGRSxNQUFNOzsyRkFFbkIsV0FBVztrQkFGdkIsVUFBVTttQkFBQyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBCZWhhdmlvclN1YmplY3QgfSBmcm9tICdyeGpzJztcblxuZXhwb3J0IGludGVyZmFjZSBVc2VyUHJvZmlsZSB7XG4gIHVzZXJuYW1lOiBzdHJpbmc7XG4gIGZpcnN0bmFtZT86IHN0cmluZztcbiAgbGFzdG5hbWU/OiBzdHJpbmc7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIGVtYWlsOiBzdHJpbmc7XG4gIHBob3RvVVJMPzogc3RyaW5nO1xuICBhdmF0YXJVcmw/OiBzdHJpbmc7XG59XG5cbkBJbmplY3RhYmxlKHsgcHJvdmlkZWRJbjogJ3Jvb3QnIH0pXG4vKiBpZ25vcmUgY292ZXJhZ2UgKi9cbmV4cG9ydCBjbGFzcyBVc2VyU2VydmljZTxVc2VyIGV4dGVuZHMgVXNlclByb2ZpbGUgPSBVc2VyUHJvZmlsZT4ge1xuXG4gIHB1YmxpYyB1c2VyJCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8VXNlciB8IG51bGw+KG51bGwpO1xuXG59XG4iXX0=
@@ -1,453 +0,0 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { Injectable, Inject, INJECTOR, Component, ChangeDetectionStrategy } from '@angular/core';
4
- import * as i2 from '@rxap/authentication';
5
- import { RxapAuthenticationService, RxapAuthenticationGuard } from '@rxap/authentication';
6
- import { UseFormControl, RxapFormControl, RxapForm, RXAP_FORM_DEFINITION_BUILDER, RxapFormBuilder, RXAP_FORM_DEFINITION, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, FormDirective, FormControlErrorDirective, FormControlMarkDirtyDirective, FormSubmitFailedDirective, FormSubmittingDirective, ControlValidator, ControlSetValue } from '@rxap/forms';
7
- import * as i1$2 from '@angular/forms';
8
- import { Validators, ReactiveFormsModule } from '@angular/forms';
9
- import * as i1 from '@rxap/config';
10
- import { ConfigService } from '@rxap/config';
11
- import * as i1$1 from '@angular/router';
12
- import { Router, RouterOutlet, ActivatedRoute } from '@angular/router';
13
- import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from '@angular/material/core';
14
- import { trigger, state, style, transition, animate } from '@angular/animations';
15
- import * as i12 from '@angular/material/snack-bar';
16
- import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
17
- import { ToggleSubject } from '@rxap/rxjs';
18
- import * as i10 from '@angular/material/progress-bar';
19
- import { MatProgressBarModule } from '@angular/material/progress-bar';
20
- import * as i9 from '@angular/material/progress-spinner';
21
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
22
- import * as i8 from '@angular/material/tooltip';
23
- import { MatTooltipModule } from '@angular/material/tooltip';
24
- import * as i7 from '@angular/material/checkbox';
25
- import { MatCheckboxModule } from '@angular/material/checkbox';
26
- import * as i6 from '@angular/material/button';
27
- import { MatButtonModule } from '@angular/material/button';
28
- import { NgIf, AsyncPipe } from '@angular/common';
29
- import * as i5 from '@angular/material/input';
30
- import { MatInputModule } from '@angular/material/input';
31
- import * as i4 from '@angular/material/form-field';
32
- import { MatFormFieldModule } from '@angular/material/form-field';
33
- import * as i3 from '@angular/material/icon';
34
- import { MatIconModule } from '@angular/material/icon';
35
- import * as i2$1 from '@angular/flex-layout/flex';
36
- import { FlexModule } from '@angular/flex-layout/flex';
37
- import { take, map, switchMap, tap, filter } from 'rxjs/operators';
38
- import { firstValueFrom } from 'rxjs';
39
-
40
- let LoginForm = class LoginForm {
41
- constructor(config) {
42
- this.config = config;
43
- this.loading = true;
44
- this.loginFailed = false;
45
- }
46
- rxapOnInit() {
47
- const email = this.config.get('authentication.default.email');
48
- if (email) {
49
- this.email.setValue(email);
50
- }
51
- const password = this.config.get('authentication.default.password');
52
- if (password) {
53
- this.password.setValue(password);
54
- }
55
- }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginForm, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
57
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginForm }); }
58
- };
59
- __decorate([
60
- UseFormControl({
61
- validators: [Validators.required, Validators.email],
62
- }),
63
- __metadata("design:type", RxapFormControl)
64
- ], LoginForm.prototype, "email", void 0);
65
- __decorate([
66
- UseFormControl({
67
- validators: [Validators.required],
68
- }),
69
- __metadata("design:type", RxapFormControl)
70
- ], LoginForm.prototype, "password", void 0);
71
- __decorate([
72
- UseFormControl({
73
- state: true,
74
- }),
75
- __metadata("design:type", RxapFormControl)
76
- ], LoginForm.prototype, "remember", void 0);
77
- LoginForm = __decorate([
78
- RxapForm({
79
- id: 'rxap-login',
80
- }),
81
- __metadata("design:paramtypes", [ConfigService])
82
- ], LoginForm);
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginForm, decorators: [{
84
- type: Injectable
85
- }], ctorParameters: function () { return [{ type: i1.ConfigService }]; }, propDecorators: { email: [], password: [], remember: [] } });
86
- class LoginFormSubmitMethod {
87
- constructor(authentication) {
88
- this.authentication = authentication;
89
- }
90
- call(value) {
91
- return this.authentication.signInWithEmailAndPassword(value.email, value.password, value.remember);
92
- }
93
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitMethod, deps: [{ token: i2.RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
94
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitMethod }); }
95
- }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
97
- type: Injectable
98
- }], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService }]; } });
99
- class LoginFormSubmitSuccessful {
100
- constructor(router) {
101
- this.router = router;
102
- }
103
- call() {
104
- return this.router.navigate(['/']);
105
- }
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
107
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful }); }
108
- }
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
110
- type: Injectable
111
- }], ctorParameters: function () { return [{ type: i1$1.Router, decorators: [{
112
- type: Inject,
113
- args: [Router]
114
- }] }]; } });
115
- const LoginFormProviders = [
116
- LoginForm,
117
- {
118
- provide: RXAP_FORM_DEFINITION_BUILDER,
119
- useFactory: (injector) => new RxapFormBuilder(LoginForm, injector),
120
- deps: [INJECTOR],
121
- },
122
- {
123
- provide: RXAP_FORM_DEFINITION,
124
- useFactory: (builder) => builder.build(),
125
- deps: [RXAP_FORM_DEFINITION_BUILDER],
126
- },
127
- {
128
- provide: RXAP_FORM_SUBMIT_METHOD,
129
- useClass: LoginFormSubmitMethod,
130
- },
131
- {
132
- provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
133
- useClass: LoginFormSubmitSuccessful,
134
- },
135
- ];
136
-
137
- // the fade-in/fade-out animation.
138
- const fadeAnimation = trigger('fadeAnimation', [
139
- // the "in" style determines the "resting" state of the element when it is visible.
140
- state('in', style({ opacity: 1 })),
141
- // fade in when created. this could also be written as transition('void => *')
142
- transition(':enter', [
143
- style({ opacity: 0 }),
144
- animate(300),
145
- ]),
146
- // fade out when destroyed. this could also be written as transition('void => *')
147
- transition(':leave', animate(300, style({ opacity: 0 }))),
148
- ]);
149
-
150
- class LoginComponent {
151
- constructor(authentication, snackBar) {
152
- this.authentication = authentication;
153
- this.snackBar = snackBar;
154
- this.requestingPasswordReset$ = new ToggleSubject();
155
- }
156
- async requestPasswordReset(email) {
157
- this.requestingPasswordReset$.enable();
158
- try {
159
- const result = await this.authentication.requestPasswordReset(email);
160
- if (!result) {
161
- this.snackBar.open('The password reset request result is falsy', undefined, {
162
- duration: 5000,
163
- panelClass: 'error',
164
- });
165
- }
166
- else {
167
- this.snackBar.open('The password reset request was successful', undefined, {
168
- duration: 3000,
169
- });
170
- }
171
- }
172
- catch (e) {
173
- this.snackBar.open(e.message, undefined, {
174
- duration: 3000,
175
- panelClass: 'error',
176
- });
177
- }
178
- finally {
179
- this.requestingPasswordReset$.disable();
180
- }
181
- }
182
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginComponent, deps: [{ token: RxapAuthenticationService }, { token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
183
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LoginComponent, isStandalone: true, selector: "rxap-login", providers: [
184
- LoginFormProviders,
185
- {
186
- provide: ErrorStateMatcher,
187
- useClass: ShowOnDirtyErrorStateMatcher,
188
- },
189
- ], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\" novalidate\n rxapForm>\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'email'; if: '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 fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <button (click)=\"passwordInput.type = 'test'\" *ngIf=\"passwordInput.type === 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button (click)=\"passwordInput.type = 'password'\" *ngIf=\"passwordInput.type === 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls\" fxLayout=\"row wrap\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"16px\">\n\n <mat-checkbox class=\"remember-input\" formControlName=\"remember\" fxFlex=\"nogrow\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n fxFlex=\"nogrow\"\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 fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"8px\">\n <mat-progress-spinner *ngIf=\"requestingPasswordReset$ | async\" [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n <span fxFlex=\"nogrow\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting 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-color);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)}.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$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.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", "rxapForm", "submitMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: ["rxapFormControlErrorFrom", "rxapFormControlErrorIf"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i7.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i9.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: i10.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatSnackBarModule }], animations: [
190
- fadeAnimation,
191
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
192
- }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginComponent, decorators: [{
194
- type: Component,
195
- args: [{ selector: 'rxap-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
196
- LoginFormProviders,
197
- {
198
- provide: ErrorStateMatcher,
199
- useClass: ShowOnDirtyErrorStateMatcher,
200
- },
201
- ], animations: [
202
- fadeAnimation,
203
- ], standalone: true, imports: [
204
- ReactiveFormsModule,
205
- FormDirective,
206
- FlexModule,
207
- MatIconModule,
208
- MatFormFieldModule,
209
- MatInputModule,
210
- FormControlErrorDirective, NgIf, MatButtonModule, MatCheckboxModule, MatTooltipModule, MatProgressSpinnerModule,
211
- FormControlMarkDirtyDirective, FormSubmitFailedDirective, FormSubmittingDirective, MatProgressBarModule, AsyncPipe,
212
- MatSnackBarModule,
213
- ], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\" novalidate\n rxapForm>\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon inline matPrefix>email</mat-icon>\n <mat-label i18n>Email</mat-label>\n <input formControlName=\"email\"\n fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your email address\"\n type=\"email\">\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'required'\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'email'; if: '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 fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your password\"\n type=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <button (click)=\"passwordInput.type = 'test'\" *ngIf=\"passwordInput.type === 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button (click)=\"passwordInput.type = 'password'\" *ngIf=\"passwordInput.type === 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls\" fxLayout=\"row wrap\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"16px\">\n\n <mat-checkbox class=\"remember-input\" formControlName=\"remember\" fxFlex=\"nogrow\">Remember me</mat-checkbox>\n\n <div [matTooltipDisabled]=\"form.control.controls['email'].valid\"\n fxFlex=\"nogrow\"\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 fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"8px\">\n <mat-progress-spinner *ngIf=\"requestingPasswordReset$ | async\" [diameter]=\"15\"\n mode=\"indeterminate\"></mat-progress-spinner>\n <span fxFlex=\"nogrow\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button color=\"primary\" mat-raised-button rxapFormControlMarkDirty type=\"submit\">Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting 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-color);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)}.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"] }]
214
- }], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService, decorators: [{
215
- type: Inject,
216
- args: [RxapAuthenticationService]
217
- }] }, { type: i12.MatSnackBar, decorators: [{
218
- type: Inject,
219
- args: [MatSnackBar]
220
- }] }]; } });
221
-
222
- class AuthenticationContainerComponent {
223
- prepareRoute(outlet) {
224
- return outlet.isActivated ? outlet.activatedRoute : 'true';
225
- }
226
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
227
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: AuthenticationContainerComponent, isStandalone: true, selector: "rxap-authentication-container", ngImport: i0, template: "<div [@routeAnimations]=\"prepareRoute(outlet)\" class=\"content\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", 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-color)}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], animations: [
228
- trigger('routeAnimations', [
229
- transition(':enter', [
230
- style({ opacity: 0 }),
231
- animate('512ms', style({ opacity: 1 })),
232
- ]),
233
- transition(':leave', [
234
- style({ opacity: 1 }),
235
- animate('512ms', style({ opacity: 0 })),
236
- ]),
237
- ]),
238
- ] }); }
239
- }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationContainerComponent, decorators: [{
241
- type: Component,
242
- args: [{ selector: 'rxap-authentication-container', animations: [
243
- trigger('routeAnimations', [
244
- transition(':enter', [
245
- style({ opacity: 0 }),
246
- animate('512ms', style({ opacity: 1 })),
247
- ]),
248
- transition(':leave', [
249
- style({ opacity: 1 }),
250
- animate('512ms', style({ opacity: 0 })),
251
- ]),
252
- ]),
253
- ], standalone: true, imports: [RouterOutlet], template: "<div [@routeAnimations]=\"prepareRoute(outlet)\" class=\"content\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", 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-color)}\n"] }]
254
- }] });
255
-
256
- const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';
257
- class ResetPasswordFormSubmitMethod {
258
- constructor(route, authentication, snackBar, router) {
259
- this.route = route;
260
- this.authentication = authentication;
261
- this.snackBar = snackBar;
262
- this.router = router;
263
- }
264
- call(value) {
265
- return firstValueFrom(this.route.params
266
- .pipe(take(1), map((params) => params['token']), switchMap((token) => this.authentication.sendPasswordReset(value.password, token)), tap((result) => {
267
- if (result) {
268
- this.snackBar.open('Password reset was successful.', undefined, {
269
- duration: 3500,
270
- });
271
- return this.router.navigate(['/']);
272
- }
273
- return Promise.resolve();
274
- }), map(() => true)));
275
- }
276
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordFormSubmitMethod, deps: [{ token: ActivatedRoute }, { token: RxapAuthenticationService }, { token: MatSnackBar }, { token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
277
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordFormSubmitMethod }); }
278
- }
279
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
280
- type: Injectable
281
- }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute, decorators: [{
282
- type: Inject,
283
- args: [ActivatedRoute]
284
- }] }, { type: i2.RxapAuthenticationService, decorators: [{
285
- type: Inject,
286
- args: [RxapAuthenticationService]
287
- }] }, { type: i12.MatSnackBar, decorators: [{
288
- type: Inject,
289
- args: [MatSnackBar]
290
- }] }, { type: i1$1.Router, decorators: [{
291
- type: Inject,
292
- args: [Router]
293
- }] }]; } });
294
- let ResetPasswordForm = class ResetPasswordForm {
295
- passwordEqual(control) {
296
- if (this.password.value === null || control.value === null) {
297
- return null;
298
- }
299
- if (this.password.value !== control.value) {
300
- return { equal: 'passwords are not equal' };
301
- }
302
- return null;
303
- }
304
- resetRepeat() {
305
- this.passwordRepeat.reset();
306
- }
307
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
308
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm }); }
309
- };
310
- __decorate([
311
- UseFormControl({
312
- validators: [Validators.required],
313
- }),
314
- __metadata("design:type", RxapFormControl)
315
- ], ResetPasswordForm.prototype, "password", void 0);
316
- __decorate([
317
- UseFormControl({
318
- validators: [Validators.required],
319
- }),
320
- __metadata("design:type", RxapFormControl)
321
- ], ResetPasswordForm.prototype, "passwordRepeat", void 0);
322
- __decorate([
323
- ControlValidator('passwordRepeat'),
324
- __metadata("design:type", Function),
325
- __metadata("design:paramtypes", [RxapFormControl]),
326
- __metadata("design:returntype", void 0)
327
- ], ResetPasswordForm.prototype, "passwordEqual", null);
328
- __decorate([
329
- ControlSetValue('password'),
330
- __metadata("design:type", Function),
331
- __metadata("design:paramtypes", []),
332
- __metadata("design:returntype", void 0)
333
- ], ResetPasswordForm.prototype, "resetRepeat", null);
334
- ResetPasswordForm = __decorate([
335
- RxapForm({
336
- id: RXAP_RESET_PASSWORD_FORM,
337
- })
338
- ], ResetPasswordForm);
339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm, decorators: [{
340
- type: Injectable
341
- }], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
342
- const ResetPasswordFormProviders = [
343
- ResetPasswordForm,
344
- {
345
- provide: RXAP_FORM_DEFINITION_BUILDER,
346
- useFactory: (injector) => new RxapFormBuilder(ResetPasswordForm, injector),
347
- deps: [INJECTOR],
348
- },
349
- {
350
- provide: RXAP_FORM_DEFINITION,
351
- useFactory: (builder) => builder.build(),
352
- deps: [RXAP_FORM_DEFINITION_BUILDER],
353
- },
354
- {
355
- provide: RXAP_FORM_SUBMIT_METHOD,
356
- useClass: ResetPasswordFormSubmitMethod,
357
- },
358
- ];
359
-
360
- class ResetPasswordComponent {
361
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
362
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ResetPasswordComponent, isStandalone: true, selector: "rxap-reset-password", providers: [
363
- ResetPasswordFormProviders,
364
- {
365
- provide: ErrorStateMatcher,
366
- useClass: ShowOnDirtyErrorStateMatcher,
367
- },
368
- ], ngImport: i0, template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\" novalidate\n rxapForm>\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>New password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password\"\n type=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <button (click)=\"passwordInput.type = 'test'\" *ngIf=\"passwordInput.type === 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button (click)=\"passwordInput.type = 'password'\" *ngIf=\"passwordInput.type === 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\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 fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password again\"\n type=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'equal'\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n <button (click)=\"passwordRepeatInput.type = 'text'\"\n *ngIf=\"passwordRepeatInput.type === 'password'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button (click)=\"passwordRepeatInput.type = 'password'\"\n *ngIf=\"passwordRepeatInput.type === 'text'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button 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\" fxLayout=\"row\" fxLayoutAlign=\"center 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)}.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$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.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", "rxapForm", "submitMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: ["rxapFormControlErrorFrom", "rxapFormControlErrorIf"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { 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: i10.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatSnackBarModule }], animations: [
369
- fadeAnimation,
370
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
371
- }
372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordComponent, decorators: [{
373
- type: Component,
374
- args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
375
- ResetPasswordFormProviders,
376
- {
377
- provide: ErrorStateMatcher,
378
- useClass: ShowOnDirtyErrorStateMatcher,
379
- },
380
- ], animations: [
381
- fadeAnimation,
382
- ], standalone: true, imports: [
383
- ReactiveFormsModule,
384
- FormDirective,
385
- FlexModule, MatIconModule, MatFormFieldModule, MatInputModule, FormControlErrorDirective, NgIf, MatButtonModule,
386
- FormControlMarkDirtyDirective, FormSubmitFailedDirective, FormSubmittingDirective, MatProgressBarModule,
387
- MatSnackBarModule,
388
- ], template: "<form #form=\"rxapForm\" [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\"\n fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\" novalidate\n rxapForm>\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon inline matPrefix>vpn_key</mat-icon>\n <mat-label i18n>New password</mat-label>\n <input #passwordInput\n formControlName=\"password\"\n fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password\"\n type=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <button (click)=\"passwordInput.type = 'test'\" *ngIf=\"passwordInput.type === 'password'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button (click)=\"passwordInput.type = 'password'\" *ngIf=\"passwordInput.type === 'text'\" mat-icon-button\n matSuffix tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\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 fxFlex=\"nogrow\"\n i18n-placeholder\n matInput\n placeholder=\"Enter your new password again\"\n type=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'required'\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'equal'\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n <button (click)=\"passwordRepeatInput.type = 'text'\"\n *ngIf=\"passwordRepeatInput.type === 'password'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button (click)=\"passwordRepeatInput.type = 'password'\"\n *ngIf=\"passwordRepeatInput.type === 'text'\"\n mat-icon-button\n matSuffix\n tabIndex=\"-1\"\n type=\"button\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button 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\" fxLayout=\"row\" fxLayoutAlign=\"center 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)}.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"] }]
389
- }] });
390
-
391
- class LoadingComponent {
392
- constructor(authentication, router) {
393
- this.authentication = authentication;
394
- this.router = router;
395
- }
396
- ngOnInit() {
397
- // TODO : remove the concept of isAuthenticated$
398
- if (this.authentication.isAuthenticated$) {
399
- this.subscription = this.authentication.isAuthenticated$
400
- .pipe(filter((isAuthenticated) => isAuthenticated !== null), tap(() => this.router.navigate(['/', 'authentication', 'login'])))
401
- .subscribe();
402
- }
403
- }
404
- ngOnDestroy() {
405
- this.subscription?.unsubscribe();
406
- }
407
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoadingComponent, deps: [{ token: RxapAuthenticationService }, { token: Router }], target: i0.ɵɵFactoryTarget.Component }); }
408
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", 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: i10.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
409
- }
410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoadingComponent, decorators: [{
411
- type: Component,
412
- args: [{ selector: 'rxap-auth-loading', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, 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"] }]
413
- }], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService, decorators: [{
414
- type: Inject,
415
- args: [RxapAuthenticationService]
416
- }] }, { type: i1$1.Router, decorators: [{
417
- type: Inject,
418
- args: [Router]
419
- }] }]; } });
420
-
421
- const AuthenticationRoutes = [
422
- {
423
- path: 'authentication',
424
- component: AuthenticationContainerComponent,
425
- children: [
426
- {
427
- canActivate: [RxapAuthenticationGuard],
428
- path: 'login',
429
- component: LoginComponent,
430
- },
431
- {
432
- canActivate: [RxapAuthenticationGuard],
433
- path: 'reset-password/:token',
434
- component: ResetPasswordComponent,
435
- },
436
- {
437
- path: 'loading',
438
- component: LoadingComponent,
439
- },
440
- {
441
- path: '**',
442
- redirectTo: 'login',
443
- },
444
- ],
445
- },
446
- ];
447
-
448
- /**
449
- * Generated bundle index. Do not edit.
450
- */
451
-
452
- export { AuthenticationContainerComponent, AuthenticationRoutes, LoadingComponent, LoginComponent, LoginForm, LoginFormProviders, LoginFormSubmitMethod, LoginFormSubmitSuccessful, ResetPasswordComponent, fadeAnimation };
453
- //# sourceMappingURL=rxap-authentication-components.mjs.map