@rxap/authentication 16.0.0-dev.11 → 16.0.0-dev.13
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 +8 -0
- package/README.md +1 -1
- package/esm2022/components/lib/authentication-container/authentication-container.component.mjs +3 -3
- package/esm2022/components/lib/loading/loading.component.mjs +3 -3
- package/esm2022/components/lib/login/login.component.mjs +3 -3
- package/esm2022/components/lib/login/login.form.mjs +9 -9
- package/esm2022/components/lib/reset-password/reset-password.component.mjs +3 -3
- package/esm2022/components/lib/reset-password/reset-password.form.mjs +6 -6
- package/esm2022/lib/authentication-routing.service.mjs +3 -3
- package/esm2022/lib/authentication.guard.mjs +3 -3
- package/esm2022/lib/authentication.service.mjs +3 -3
- package/esm2022/lib/register.service.mjs +3 -3
- package/esm2022/lib/sign-out.directive.mjs +3 -3
- package/esm2022/lib/user-profile.service.mjs +3 -3
- package/esm2022/lib/user.service.mjs +3 -3
- package/fesm2022/rxap-authentication-components.mjs +27 -27
- package/fesm2022/rxap-authentication.mjs +21 -21
- package/package.json +43 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [16.0.0-dev.13](https://gitlab.com/rxap/packages/compare/@rxap/authentication@16.0.0-dev.12...@rxap/authentication@16.0.0-dev.13) (2023-09-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/authentication
|
|
9
|
+
|
|
10
|
+
# [16.0.0-dev.12](https://gitlab.com/rxap/packages/compare/@rxap/authentication@16.0.0-dev.11...@rxap/authentication@16.0.0-dev.12) (2023-09-07)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rxap/authentication
|
|
13
|
+
|
|
6
14
|
# [16.0.0-dev.11](https://gitlab.com/rxap/packages/compare/@rxap/authentication@16.0.0-dev.10...@rxap/authentication@16.0.0-dev.11) (2023-09-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @rxap/authentication
|
package/README.md
CHANGED
|
@@ -18,5 +18,5 @@ yarn add @rxap/authentication
|
|
|
18
18
|
```
|
|
19
19
|
**Install peer dependencies:**
|
|
20
20
|
```bash
|
|
21
|
-
yarn add @
|
|
21
|
+
yarn add tslib@2.6.2
|
|
22
22
|
```
|
package/esm2022/components/lib/authentication-container/authentication-container.component.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export class AuthenticationContainerComponent {
|
|
|
6
6
|
prepareRoute(outlet) {
|
|
7
7
|
return outlet.isActivated ? outlet.activatedRoute : 'true';
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
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: [
|
|
11
11
|
trigger('routeAnimations', [
|
|
12
12
|
transition(':enter', [
|
|
13
13
|
style({ opacity: 0 }),
|
|
@@ -20,7 +20,7 @@ export class AuthenticationContainerComponent {
|
|
|
20
20
|
]),
|
|
21
21
|
] }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationContainerComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ selector: 'rxap-authentication-container', animations: [
|
|
26
26
|
trigger('routeAnimations', [
|
|
@@ -23,10 +23,10 @@ export class LoadingComponent {
|
|
|
23
23
|
ngOnDestroy() {
|
|
24
24
|
this.subscription?.unsubscribe();
|
|
25
25
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
26
|
+
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 }); }
|
|
27
|
+
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: i1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
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"] }]
|
|
32
32
|
}], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService, decorators: [{
|
|
@@ -62,8 +62,8 @@ export class LoginComponent {
|
|
|
62
62
|
this.requestingPasswordReset$.disable();
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
65
|
+
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 }); }
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LoginComponent, isStandalone: true, selector: "rxap-login", providers: [
|
|
67
67
|
LoginFormProviders,
|
|
68
68
|
{
|
|
69
69
|
provide: ErrorStateMatcher,
|
|
@@ -73,7 +73,7 @@ export class LoginComponent {
|
|
|
73
73
|
fadeAnimation,
|
|
74
74
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
75
75
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginComponent, decorators: [{
|
|
77
77
|
type: Component,
|
|
78
78
|
args: [{ selector: 'rxap-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
79
79
|
LoginFormProviders,
|
|
@@ -25,8 +25,8 @@ export let LoginForm = class LoginForm {
|
|
|
25
25
|
this.password.setValue(password);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
29
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
28
|
+
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 }); }
|
|
29
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginForm }); }
|
|
30
30
|
};
|
|
31
31
|
__decorate([
|
|
32
32
|
UseFormControl({
|
|
@@ -52,7 +52,7 @@ LoginForm = __decorate([
|
|
|
52
52
|
}),
|
|
53
53
|
__metadata("design:paramtypes", [ConfigService])
|
|
54
54
|
], LoginForm);
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginForm, decorators: [{
|
|
56
56
|
type: Injectable
|
|
57
57
|
}], ctorParameters: function () { return [{ type: i1.ConfigService }]; }, propDecorators: { email: [], password: [], remember: [] } });
|
|
58
58
|
export class LoginFormSubmitMethod {
|
|
@@ -62,10 +62,10 @@ export class LoginFormSubmitMethod {
|
|
|
62
62
|
call(value) {
|
|
63
63
|
return this.authentication.signInWithEmailAndPassword(value.email, value.password, value.remember);
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
66
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
65
|
+
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 }); }
|
|
66
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitMethod }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
|
|
69
69
|
type: Injectable
|
|
70
70
|
}], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService }]; } });
|
|
71
71
|
export class LoginFormSubmitSuccessful {
|
|
@@ -75,10 +75,10 @@ export class LoginFormSubmitSuccessful {
|
|
|
75
75
|
call() {
|
|
76
76
|
return this.router.navigate(['/']);
|
|
77
77
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
79
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
79
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful }); }
|
|
80
80
|
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
|
|
82
82
|
type: Injectable
|
|
83
83
|
}], ctorParameters: function () { return [{ type: i3.Router, decorators: [{
|
|
84
84
|
type: Inject,
|
|
@@ -21,8 +21,8 @@ import * as i5 from "@angular/material/input";
|
|
|
21
21
|
import * as i6 from "@angular/material/button";
|
|
22
22
|
import * as i7 from "@angular/material/progress-bar";
|
|
23
23
|
export class ResetPasswordComponent {
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ResetPasswordComponent, isStandalone: true, selector: "rxap-reset-password", providers: [
|
|
26
26
|
ResetPasswordFormProviders,
|
|
27
27
|
{
|
|
28
28
|
provide: ErrorStateMatcher,
|
|
@@ -32,7 +32,7 @@ export class ResetPasswordComponent {
|
|
|
32
32
|
fadeAnimation,
|
|
33
33
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordComponent, decorators: [{
|
|
36
36
|
type: Component,
|
|
37
37
|
args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
38
38
|
ResetPasswordFormProviders,
|
|
@@ -31,10 +31,10 @@ export class ResetPasswordFormSubmitMethod {
|
|
|
31
31
|
return Promise.resolve();
|
|
32
32
|
}), map(() => true)));
|
|
33
33
|
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
35
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
34
|
+
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 }); }
|
|
35
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordFormSubmitMethod }); }
|
|
36
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
|
|
38
38
|
type: Injectable
|
|
39
39
|
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute, decorators: [{
|
|
40
40
|
type: Inject,
|
|
@@ -62,8 +62,8 @@ export let ResetPasswordForm = class ResetPasswordForm {
|
|
|
62
62
|
resetRepeat() {
|
|
63
63
|
this.passwordRepeat.reset();
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
66
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
66
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm }); }
|
|
67
67
|
};
|
|
68
68
|
__decorate([
|
|
69
69
|
UseFormControl({
|
|
@@ -94,7 +94,7 @@ ResetPasswordForm = __decorate([
|
|
|
94
94
|
id: RXAP_RESET_PASSWORD_FORM,
|
|
95
95
|
})
|
|
96
96
|
], ResetPasswordForm);
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm, decorators: [{
|
|
98
98
|
type: Injectable
|
|
99
99
|
}], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
|
|
100
100
|
export const ResetPasswordFormProviders = [
|
|
@@ -23,10 +23,10 @@ export class AuthenticationRoutingService {
|
|
|
23
23
|
})).subscribe();
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
27
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationRoutingService, deps: [{ token: Router }, { token: RxapAuthenticationService }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
27
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationRoutingService, providedIn: 'root' }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationRoutingService, decorators: [{
|
|
30
30
|
type: Injectable,
|
|
31
31
|
args: [{
|
|
32
32
|
providedIn: 'root',
|
|
@@ -89,10 +89,10 @@ export class RxapAuthenticationGuard {
|
|
|
89
89
|
}
|
|
90
90
|
return this.router.createUrlTree([lastUrl]);
|
|
91
91
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
93
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationGuard, deps: [{ token: RxapAuthenticationService }, { token: Router }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
93
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationGuard, providedIn: 'root' }); }
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationGuard, decorators: [{
|
|
96
96
|
type: Injectable,
|
|
97
97
|
args: [{ providedIn: 'root' }]
|
|
98
98
|
}], ctorParameters: function () { return [{ type: i1.RxapAuthenticationService, decorators: [{
|
|
@@ -72,10 +72,10 @@ export class RxapAuthenticationService {
|
|
|
72
72
|
resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');
|
|
73
73
|
}, 2500);
|
|
74
74
|
}
|
|
75
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
76
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
76
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationService, providedIn: 'root' }); }
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationService, decorators: [{
|
|
79
79
|
type: Injectable,
|
|
80
80
|
args: [{ providedIn: 'root' }]
|
|
81
81
|
}], ctorParameters: function () { return []; } });
|
|
@@ -8,10 +8,10 @@ export class RegisterService {
|
|
|
8
8
|
register(email, password) {
|
|
9
9
|
return Promise.resolve(true);
|
|
10
10
|
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
12
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RegisterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RegisterService, providedIn: 'root' }); }
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RegisterService, decorators: [{
|
|
15
15
|
type: Injectable,
|
|
16
16
|
args: [{ providedIn: 'root' }]
|
|
17
17
|
}], ctorParameters: function () { return []; } });
|
|
@@ -17,10 +17,10 @@ export class SignOutDirective {
|
|
|
17
17
|
this.failure.emit(e);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutDirective, deps: [{ token: i1.RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
21
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SignOutDirective, isStandalone: true, selector: "[rxapSignOut]", outputs: { successful: "successful", failure: "failure" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutDirective, decorators: [{
|
|
24
24
|
type: Directive,
|
|
25
25
|
args: [{
|
|
26
26
|
selector: '[rxapSignOut]',
|
|
@@ -28,10 +28,10 @@ export class RxapUserProfileService {
|
|
|
28
28
|
async getRoleList() {
|
|
29
29
|
return this.profile.roleList ?? [];
|
|
30
30
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
32
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, decorators: [{
|
|
35
35
|
type: Injectable,
|
|
36
36
|
args: [{ providedIn: 'root' }]
|
|
37
37
|
}] });
|
|
@@ -6,10 +6,10 @@ export class UserService {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.user$ = new BehaviorSubject(null);
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
10
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, decorators: [{
|
|
13
13
|
type: Injectable,
|
|
14
14
|
args: [{ providedIn: 'root' }]
|
|
15
15
|
}] });
|
|
@@ -53,8 +53,8 @@ let LoginForm = class LoginForm {
|
|
|
53
53
|
this.password.setValue(password);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
57
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
58
|
};
|
|
59
59
|
__decorate([
|
|
60
60
|
UseFormControl({
|
|
@@ -80,7 +80,7 @@ LoginForm = __decorate([
|
|
|
80
80
|
}),
|
|
81
81
|
__metadata("design:paramtypes", [ConfigService])
|
|
82
82
|
], LoginForm);
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginForm, decorators: [{
|
|
84
84
|
type: Injectable
|
|
85
85
|
}], ctorParameters: function () { return [{ type: i1.ConfigService }]; }, propDecorators: { email: [], password: [], remember: [] } });
|
|
86
86
|
class LoginFormSubmitMethod {
|
|
@@ -90,10 +90,10 @@ class LoginFormSubmitMethod {
|
|
|
90
90
|
call(value) {
|
|
91
91
|
return this.authentication.signInWithEmailAndPassword(value.email, value.password, value.remember);
|
|
92
92
|
}
|
|
93
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
94
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
|
|
97
97
|
type: Injectable
|
|
98
98
|
}], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService }]; } });
|
|
99
99
|
class LoginFormSubmitSuccessful {
|
|
@@ -103,10 +103,10 @@ class LoginFormSubmitSuccessful {
|
|
|
103
103
|
call() {
|
|
104
104
|
return this.router.navigate(['/']);
|
|
105
105
|
}
|
|
106
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
107
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
108
|
}
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
|
|
110
110
|
type: Injectable
|
|
111
111
|
}], ctorParameters: function () { return [{ type: i1$1.Router, decorators: [{
|
|
112
112
|
type: Inject,
|
|
@@ -179,8 +179,8 @@ class LoginComponent {
|
|
|
179
179
|
this.requestingPasswordReset$.disable();
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
183
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
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
184
|
LoginFormProviders,
|
|
185
185
|
{
|
|
186
186
|
provide: ErrorStateMatcher,
|
|
@@ -190,7 +190,7 @@ class LoginComponent {
|
|
|
190
190
|
fadeAnimation,
|
|
191
191
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
192
192
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoginComponent, decorators: [{
|
|
194
194
|
type: Component,
|
|
195
195
|
args: [{ selector: 'rxap-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
196
196
|
LoginFormProviders,
|
|
@@ -223,8 +223,8 @@ class AuthenticationContainerComponent {
|
|
|
223
223
|
prepareRoute(outlet) {
|
|
224
224
|
return outlet.isActivated ? outlet.activatedRoute : 'true';
|
|
225
225
|
}
|
|
226
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
227
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
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
228
|
trigger('routeAnimations', [
|
|
229
229
|
transition(':enter', [
|
|
230
230
|
style({ opacity: 0 }),
|
|
@@ -237,7 +237,7 @@ class AuthenticationContainerComponent {
|
|
|
237
237
|
]),
|
|
238
238
|
] }); }
|
|
239
239
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationContainerComponent, decorators: [{
|
|
241
241
|
type: Component,
|
|
242
242
|
args: [{ selector: 'rxap-authentication-container', animations: [
|
|
243
243
|
trigger('routeAnimations', [
|
|
@@ -273,10 +273,10 @@ class ResetPasswordFormSubmitMethod {
|
|
|
273
273
|
return Promise.resolve();
|
|
274
274
|
}), map(() => true)));
|
|
275
275
|
}
|
|
276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
277
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
278
|
}
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
|
|
280
280
|
type: Injectable
|
|
281
281
|
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute, decorators: [{
|
|
282
282
|
type: Inject,
|
|
@@ -304,8 +304,8 @@ let ResetPasswordForm = class ResetPasswordForm {
|
|
|
304
304
|
resetRepeat() {
|
|
305
305
|
this.passwordRepeat.reset();
|
|
306
306
|
}
|
|
307
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
308
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
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
309
|
};
|
|
310
310
|
__decorate([
|
|
311
311
|
UseFormControl({
|
|
@@ -336,7 +336,7 @@ ResetPasswordForm = __decorate([
|
|
|
336
336
|
id: RXAP_RESET_PASSWORD_FORM,
|
|
337
337
|
})
|
|
338
338
|
], ResetPasswordForm);
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordForm, decorators: [{
|
|
340
340
|
type: Injectable
|
|
341
341
|
}], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
|
|
342
342
|
const ResetPasswordFormProviders = [
|
|
@@ -358,8 +358,8 @@ const ResetPasswordFormProviders = [
|
|
|
358
358
|
];
|
|
359
359
|
|
|
360
360
|
class ResetPasswordComponent {
|
|
361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
362
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
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
363
|
ResetPasswordFormProviders,
|
|
364
364
|
{
|
|
365
365
|
provide: ErrorStateMatcher,
|
|
@@ -369,7 +369,7 @@ class ResetPasswordComponent {
|
|
|
369
369
|
fadeAnimation,
|
|
370
370
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
371
371
|
}
|
|
372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetPasswordComponent, decorators: [{
|
|
373
373
|
type: Component,
|
|
374
374
|
args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
375
375
|
ResetPasswordFormProviders,
|
|
@@ -404,10 +404,10 @@ class LoadingComponent {
|
|
|
404
404
|
ngOnDestroy() {
|
|
405
405
|
this.subscription?.unsubscribe();
|
|
406
406
|
}
|
|
407
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
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
409
|
}
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
411
411
|
type: Component,
|
|
412
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
413
|
}], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService, decorators: [{
|
|
@@ -76,10 +76,10 @@ class RxapAuthenticationService {
|
|
|
76
76
|
resolve(localStorage.getItem(RXAP_AUTHENTICATION_LOCAL_STORAGE_KEY) === 'true');
|
|
77
77
|
}, 2500);
|
|
78
78
|
}
|
|
79
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
80
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
80
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationService, providedIn: 'root' }); }
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationService, decorators: [{
|
|
83
83
|
type: Injectable,
|
|
84
84
|
args: [{ providedIn: 'root' }]
|
|
85
85
|
}], ctorParameters: function () { return []; } });
|
|
@@ -170,10 +170,10 @@ class RxapAuthenticationGuard {
|
|
|
170
170
|
}
|
|
171
171
|
return this.router.createUrlTree([lastUrl]);
|
|
172
172
|
}
|
|
173
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
174
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationGuard, deps: [{ token: RxapAuthenticationService }, { token: Router }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
174
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationGuard, providedIn: 'root' }); }
|
|
175
175
|
}
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapAuthenticationGuard, decorators: [{
|
|
177
177
|
type: Injectable,
|
|
178
178
|
args: [{ providedIn: 'root' }]
|
|
179
179
|
}], ctorParameters: function () { return [{ type: RxapAuthenticationService, decorators: [{
|
|
@@ -197,10 +197,10 @@ class RegisterService {
|
|
|
197
197
|
register(email, password) {
|
|
198
198
|
return Promise.resolve(true);
|
|
199
199
|
}
|
|
200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
201
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RegisterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
201
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RegisterService, providedIn: 'root' }); }
|
|
202
202
|
}
|
|
203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RegisterService, decorators: [{
|
|
204
204
|
type: Injectable,
|
|
205
205
|
args: [{ providedIn: 'root' }]
|
|
206
206
|
}], ctorParameters: function () { return []; } });
|
|
@@ -210,10 +210,10 @@ class UserService {
|
|
|
210
210
|
constructor() {
|
|
211
211
|
this.user$ = new BehaviorSubject(null);
|
|
212
212
|
}
|
|
213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
214
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
213
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
214
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
215
215
|
}
|
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserService, decorators: [{
|
|
217
217
|
type: Injectable,
|
|
218
218
|
args: [{ providedIn: 'root' }]
|
|
219
219
|
}] });
|
|
@@ -235,10 +235,10 @@ class AuthenticationRoutingService {
|
|
|
235
235
|
})).subscribe();
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
239
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
238
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationRoutingService, deps: [{ token: Router }, { token: RxapAuthenticationService }, { token: RXAP_AUTHENTICATION_DEACTIVATED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
239
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationRoutingService, providedIn: 'root' }); }
|
|
240
240
|
}
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AuthenticationRoutingService, decorators: [{
|
|
242
242
|
type: Injectable,
|
|
243
243
|
args: [{
|
|
244
244
|
providedIn: 'root',
|
|
@@ -271,10 +271,10 @@ class SignOutDirective {
|
|
|
271
271
|
this.failure.emit(e);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
275
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutDirective, deps: [{ token: RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
275
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SignOutDirective, isStandalone: true, selector: "[rxapSignOut]", outputs: { successful: "successful", failure: "failure" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
276
276
|
}
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutDirective, decorators: [{
|
|
278
278
|
type: Directive,
|
|
279
279
|
args: [{
|
|
280
280
|
selector: '[rxapSignOut]',
|
|
@@ -317,10 +317,10 @@ class RxapUserProfileService {
|
|
|
317
317
|
async getRoleList() {
|
|
318
318
|
return this.profile.roleList ?? [];
|
|
319
319
|
}
|
|
320
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
321
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
321
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, providedIn: 'root' }); }
|
|
322
322
|
}
|
|
323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapUserProfileService, decorators: [{
|
|
324
324
|
type: Injectable,
|
|
325
325
|
args: [{ providedIn: 'root' }]
|
|
326
326
|
}] });
|
package/package.json
CHANGED
|
@@ -1,73 +1,71 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "16.0.0-dev.13",
|
|
2
3
|
"name": "@rxap/authentication",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"@angular/animations": "^16.1.4",
|
|
6
|
-
"@angular/common": "^16.1.4",
|
|
7
|
-
"@angular/core": "^16.1.4",
|
|
8
|
-
"@angular/flex-layout": "^15.0.0-beta.42",
|
|
9
|
-
"@angular/forms": "^16.1.4",
|
|
10
|
-
"@angular/material": "^16.1.4",
|
|
11
|
-
"@angular/router": "^16.1.4",
|
|
12
|
-
"@rxap/config": "^16.0.0-dev.12",
|
|
13
|
-
"@rxap/forms": "^16.0.0-dev.13",
|
|
14
|
-
"@rxap/rxjs": "^1.0.1-dev.7",
|
|
15
|
-
"@rxap/utilities": "^16.0.0-dev.15",
|
|
16
|
-
"rxjs": "^7.8.0"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
4
|
+
"description": "A collection of components and services to simplify the authentication process implementation.",
|
|
5
|
+
"license": "GPL-3.0-or-later",
|
|
19
6
|
"dependencies": {
|
|
20
7
|
"tslib": "2.6.2"
|
|
21
8
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"@angular/core": "16.1.4",
|
|
11
|
+
"@angular/platform-browser": "16.1.4",
|
|
12
|
+
"@angular/router": "16.1.4",
|
|
13
|
+
"@angular/animations": "16.1.4",
|
|
14
|
+
"rxjs": "7.8.1",
|
|
15
|
+
"@angular/material": "16.1.4",
|
|
16
|
+
"@rxap/config": "16.0.0-dev.14",
|
|
17
|
+
"@rxap/rxjs": "1.0.1-dev.9",
|
|
18
|
+
"@rxap/forms": "16.0.0-dev.15",
|
|
19
|
+
"@angular/flex-layout": "15.0.0-beta.42"
|
|
20
|
+
},
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Merzough Münker",
|
|
23
|
+
"email": "mmuenker@digitaix.com"
|
|
25
24
|
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
27
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/authentication",
|
|
26
30
|
"keywords": [
|
|
27
|
-
"rxap",
|
|
28
31
|
"angular",
|
|
32
|
+
"angular-authentication",
|
|
33
|
+
"authentication",
|
|
29
34
|
"ngx",
|
|
30
35
|
"packages",
|
|
31
|
-
"
|
|
32
|
-
"angular-authentication"
|
|
36
|
+
"rxap"
|
|
33
37
|
],
|
|
34
|
-
"description": "A collection of components and services to simplify the authentication process implementation.",
|
|
35
|
-
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/authentication",
|
|
36
|
-
"bugs": {
|
|
37
|
-
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
38
|
-
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
39
|
-
},
|
|
40
|
-
"license": "GPL-3.0-or-later",
|
|
41
|
-
"repository": {
|
|
42
|
-
"type": "git",
|
|
43
|
-
"url": "https://gitlab.com/rxap/packages.git",
|
|
44
|
-
"directory": "packages/angular/authentication"
|
|
45
|
-
},
|
|
46
|
-
"author": {
|
|
47
|
-
"name": "Merzough Münker",
|
|
48
|
-
"email": "mmuenker@digitaix.com"
|
|
49
|
-
},
|
|
50
38
|
"nx-migrations": {
|
|
51
39
|
"packageGroup": [
|
|
52
40
|
{
|
|
53
41
|
"package": "@rxap/config",
|
|
54
|
-
"version": "16.0.0-dev.
|
|
42
|
+
"version": "16.0.0-dev.13"
|
|
55
43
|
},
|
|
56
44
|
{
|
|
57
|
-
"package": "@rxap/
|
|
58
|
-
"version": "
|
|
45
|
+
"package": "@rxap/forms",
|
|
46
|
+
"version": "16.0.0-dev.14"
|
|
59
47
|
},
|
|
60
48
|
{
|
|
61
|
-
"package": "@rxap/
|
|
62
|
-
"version": "
|
|
49
|
+
"package": "@rxap/rxjs",
|
|
50
|
+
"version": "1.0.1-dev.8"
|
|
63
51
|
},
|
|
64
52
|
{
|
|
65
53
|
"package": "@rxap/utilities",
|
|
66
|
-
"version": "16.0.0-dev.
|
|
54
|
+
"version": "16.0.0-dev.16"
|
|
67
55
|
}
|
|
68
56
|
]
|
|
69
57
|
},
|
|
70
|
-
"
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public",
|
|
60
|
+
"directory": "../../../dist/packages/angular/authentication"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
65
|
+
"directory": "packages/angular/authentication"
|
|
66
|
+
},
|
|
67
|
+
"sideEffects": false,
|
|
68
|
+
"gitHead": "6679f090af3b55900bfeb02de0ed8f1febfdbb8b",
|
|
71
69
|
"module": "fesm2022/rxap-authentication.mjs",
|
|
72
70
|
"typings": "index.d.ts",
|
|
73
71
|
"exports": {
|