@annalib/anna-cognito-lib 0.5.1 → 0.5.2
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/esm2020/lib/anna-cognito-lib.module.mjs +3 -14
- package/esm2020/lib/components/forgot-password/forgot-password.component.mjs +17 -15
- package/esm2020/lib/components/login/login.component.mjs +18 -16
- package/esm2020/lib/components/set-new-password/set-new-password.component.mjs +18 -16
- package/esm2020/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +18 -16
- package/esm2020/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +12 -10
- package/esm2020/lib/services/auth.service.mjs +2 -4
- package/esm2020/public-api.mjs +1 -2
- package/fesm2015/annalib-anna-cognito-lib.mjs +65 -59
- package/fesm2015/annalib-anna-cognito-lib.mjs.map +1 -1
- package/fesm2020/annalib-anna-cognito-lib.mjs +52 -56
- package/fesm2020/annalib-anna-cognito-lib.mjs.map +1 -1
- package/lib/anna-cognito-lib.module.d.ts +1 -3
- package/lib/components/forgot-password/forgot-password.component.d.ts +3 -3
- package/lib/components/login/login.component.d.ts +3 -3
- package/lib/components/set-new-password/set-new-password.component.d.ts +3 -3
- package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +3 -3
- package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2020/lib/config/library.config.mjs +0 -7
- package/lib/config/library.config.d.ts +0 -8
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { LibraryConfig } from './config/library.config';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
import * as i1 from "./components/login/login.component";
|
|
5
3
|
import * as i2 from "./components/set-new-password/set-new-password.component";
|
|
@@ -14,7 +12,7 @@ import * as i10 from "@angular/forms";
|
|
|
14
12
|
import * as i11 from "@angular/router";
|
|
15
13
|
import * as i12 from "@angular/common";
|
|
16
14
|
export declare class AnnaCognitoLibModule {
|
|
17
|
-
|
|
15
|
+
constructor();
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCognitoLibModule, never>;
|
|
19
17
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCognitoLibModule, [typeof i1.LoginComponent, typeof i2.SetNewPasswordComponent, typeof i3.PasswordMatchingComponent, typeof i4.ForgotPasswordComponent, typeof i5.VerifyAndSetNewPasswordComponent, typeof i6.SpinnerButtonDirective, typeof i7.VersionAndTermPolicyComponent, typeof i8.SurewavesYearLogoComponent, typeof i9.PoweredByLogoTemplateComponent], [typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.RouterModule, typeof i12.CommonModule], [typeof i1.LoginComponent, typeof i2.SetNewPasswordComponent, typeof i3.PasswordMatchingComponent, typeof i4.ForgotPasswordComponent, typeof i5.VerifyAndSetNewPasswordComponent, typeof i6.SpinnerButtonDirective, typeof i7.VersionAndTermPolicyComponent, typeof i8.SurewavesYearLogoComponent, typeof i9.PoweredByLogoTemplateComponent]>;
|
|
20
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCognitoLibModule>;
|
|
@@ -3,8 +3,8 @@ import { FormBuilder, FormGroup } from "@angular/forms";
|
|
|
3
3
|
import { ToastrService } from "ngx-toastr";
|
|
4
4
|
import { AnnaLibAuthService } from "../../services/auth.service";
|
|
5
5
|
import { LoginConstant } from "../../constants/loginConstant";
|
|
6
|
-
import { LibraryConfig } from '../../config/library.config';
|
|
7
6
|
import { Router } from '@angular/router';
|
|
7
|
+
import { IConfigService } from '../../config/config-service.token';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
declare type passwordType = {
|
|
10
10
|
value: string;
|
|
@@ -15,7 +15,7 @@ export declare class ForgotPasswordComponent implements OnInit {
|
|
|
15
15
|
private fb;
|
|
16
16
|
private toastr;
|
|
17
17
|
private router;
|
|
18
|
-
|
|
18
|
+
consumingProjectConfigService: IConfigService;
|
|
19
19
|
errorMessage: string;
|
|
20
20
|
verifyRegisteredEmail: FormGroup;
|
|
21
21
|
passwordNotMatching: boolean;
|
|
@@ -24,7 +24,7 @@ export declare class ForgotPasswordComponent implements OnInit {
|
|
|
24
24
|
confirmPassword: passwordType;
|
|
25
25
|
infoMessageToRedirectLogin: string;
|
|
26
26
|
isLoading: boolean;
|
|
27
|
-
constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router,
|
|
27
|
+
constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService);
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
onIntialiseForm(): void;
|
|
30
30
|
onUpdateForm(): void;
|
|
@@ -2,15 +2,15 @@ import { OnInit } from "@angular/core";
|
|
|
2
2
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
3
3
|
import { LoginConstant } from "../../constants/loginConstant";
|
|
4
4
|
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
5
|
-
import {
|
|
5
|
+
import { IConfigService } from '../../config/config-service.token';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class LoginComponent implements OnInit {
|
|
8
8
|
authService: AnnaLibAuthService;
|
|
9
9
|
private fb;
|
|
10
|
-
|
|
10
|
+
consumingProjectConfigService: IConfigService;
|
|
11
11
|
loginForm: FormGroup;
|
|
12
12
|
constants: typeof LoginConstant;
|
|
13
|
-
constructor(authService: AnnaLibAuthService, fb: FormBuilder,
|
|
13
|
+
constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
onIntialiseForm(): void;
|
|
16
16
|
OnLogin(): void;
|
|
@@ -2,7 +2,7 @@ import { OnInit } from "@angular/core";
|
|
|
2
2
|
import { Router } from "@angular/router";
|
|
3
3
|
import { AnnaLibAuthService } from "../../services/auth.service";
|
|
4
4
|
import { LoginConstant } from "../../constants/loginConstant";
|
|
5
|
-
import {
|
|
5
|
+
import { IConfigService } from '../../config/config-service.token';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
declare type passwordType = {
|
|
8
8
|
value: string | null;
|
|
@@ -11,12 +11,12 @@ declare type passwordType = {
|
|
|
11
11
|
export declare class SetNewPasswordComponent implements OnInit {
|
|
12
12
|
authService: AnnaLibAuthService;
|
|
13
13
|
private router;
|
|
14
|
-
|
|
14
|
+
consumingProjectConfigService: IConfigService;
|
|
15
15
|
passwordNotMatching: boolean;
|
|
16
16
|
password: passwordType;
|
|
17
17
|
confirmPassword: passwordType;
|
|
18
18
|
constants: typeof LoginConstant;
|
|
19
|
-
constructor(authService: AnnaLibAuthService, router: Router,
|
|
19
|
+
constructor(authService: AnnaLibAuthService, router: Router, consumingProjectConfigService: IConfigService);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
isFormValid(): boolean;
|
|
22
22
|
onPasswordChange($event: passwordType): void;
|
package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FormBuilder, FormGroup } from "@angular/forms";
|
|
|
3
3
|
import { Router } from "@angular/router";
|
|
4
4
|
import { LoginConstant } from "../../constants/loginConstant";
|
|
5
5
|
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
6
|
-
import {
|
|
6
|
+
import { IConfigService } from '../../config/config-service.token';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
declare type passwordType = {
|
|
9
9
|
value: string | null;
|
|
@@ -13,13 +13,13 @@ export declare class VerifyAndSetNewPasswordComponent implements OnInit {
|
|
|
13
13
|
authService: AnnaLibAuthService;
|
|
14
14
|
private fb;
|
|
15
15
|
private router;
|
|
16
|
-
|
|
16
|
+
consumingProjectConfigService: IConfigService;
|
|
17
17
|
verifyOtpForm: FormGroup;
|
|
18
18
|
passwordNotMatching: boolean;
|
|
19
19
|
constants: typeof LoginConstant;
|
|
20
20
|
password: passwordType;
|
|
21
21
|
confirmPassword: passwordType;
|
|
22
|
-
constructor(authService: AnnaLibAuthService, fb: FormBuilder, router: Router,
|
|
22
|
+
constructor(authService: AnnaLibAuthService, fb: FormBuilder, router: Router, consumingProjectConfigService: IConfigService);
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
onIntialiseForm(): void;
|
|
25
25
|
isFormValid(): boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IConfigService } from '../../config/config-service.token';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class VersionAndTermPolicyComponent implements OnInit {
|
|
5
|
-
|
|
6
|
-
constructor(
|
|
5
|
+
consumingProjectConfigService: IConfigService;
|
|
6
|
+
constructor(consumingProjectConfigService: IConfigService);
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<VersionAndTermPolicyComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<VersionAndTermPolicyComponent, "anna-cognito-lib-version-and-term-policy", never, {}, {}, never, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export * from './lib/services/auth.service';
|
|
|
11
11
|
export * from './lib/services/acl.service';
|
|
12
12
|
export * from './lib/config/auth-service.token';
|
|
13
13
|
export * from './lib/config/acl-service.token';
|
|
14
|
-
export * from './lib/config/library.config';
|
|
15
14
|
export * from './lib/config/config-service.token';
|
|
16
15
|
export * from './lib/services/config.service';
|
|
17
16
|
export * from './lib/directives/spinner-button';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export class LibraryConfig {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.loginPageLogoImgUrl = '';
|
|
4
|
-
this.currentAnnaVersion = '';
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicmFyeS5jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbm5hLWNvZ25pdG8tbGliL3NyYy9saWIvY29uZmlnL2xpYnJhcnkuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxhQUFhO0lBQTFCO1FBQ0Usd0JBQW1CLEdBQVcsRUFBRSxDQUFDO1FBS2pDLHVCQUFrQixHQUFVLEVBQUUsQ0FBQztJQUNqQyxDQUFDO0NBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgTGlicmFyeUNvbmZpZyB7IFxyXG4gIGxvZ2luUGFnZUxvZ29JbWdVcmw6IHN0cmluZyA9ICcnO1xyXG4gIGNvZ25pdG8gOiB7XHJcbiAgICB1c2VyUG9vbElkOiBzdHJpbmc7XHJcbiAgICBjbGllbnRJZDogc3RyaW5nOyBcclxuICB9O1xyXG4gIGN1cnJlbnRBbm5hVmVyc2lvbjogc3RyaW5nPSAnJztcclxufSJdfQ==
|