@annalib/anna-cognito-lib 2.3.20 → 2.3.21

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 (35) hide show
  1. package/esm2022/lib/components/anna-login/anna-login.component.mjs +13 -12
  2. package/esm2022/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +3 -4
  3. package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +21 -20
  4. package/esm2022/lib/components/password-matching/password-matching.component.mjs +18 -16
  5. package/esm2022/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +3 -5
  6. package/esm2022/lib/components/set-new-password/set-new-password.component.mjs +10 -9
  7. package/esm2022/lib/components/sso-login/sso-login.component.mjs +4 -4
  8. package/esm2022/lib/components/surewaves-year-logo/surewaves-year-logo.component.mjs +2 -3
  9. package/esm2022/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +15 -15
  10. package/esm2022/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +1 -2
  11. package/esm2022/lib/config/auth-service.token.mjs +1 -1
  12. package/esm2022/lib/constants/loginConstant.mjs +17 -13
  13. package/esm2022/lib/directives/spinner-button/spinner-button.directive.mjs +8 -11
  14. package/esm2022/lib/models/auth.model.mjs +2 -2
  15. package/esm2022/lib/services/acl.service.mjs +2 -2
  16. package/esm2022/lib/services/auth.service.mjs +41 -40
  17. package/esm2022/lib/services/config.service.mjs +1 -1
  18. package/esm2022/lib/services/sso-login.service.mjs +1 -1
  19. package/esm2022/public-api.mjs +13 -13
  20. package/fesm2022/annalib-anna-cognito-lib.mjs +182 -180
  21. package/fesm2022/annalib-anna-cognito-lib.mjs.map +1 -1
  22. package/lib/components/anna-login/anna-login.component.d.ts +4 -3
  23. package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +1 -3
  24. package/lib/components/forgot-password/forgot-password.component.d.ts +7 -7
  25. package/lib/components/password-matching/password-matching.component.d.ts +1 -2
  26. package/lib/components/powered-by-logo-template/powered-by-logo-template.component.d.ts +1 -4
  27. package/lib/components/set-new-password/set-new-password.component.d.ts +7 -7
  28. package/lib/components/sso-login/sso-login.component.d.ts +2 -1
  29. package/lib/components/surewaves-year-logo/surewaves-year-logo.component.d.ts +0 -1
  30. package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +6 -6
  31. package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +1 -3
  32. package/lib/directives/spinner-button/spinner-button.directive.d.ts +4 -5
  33. package/lib/services/auth.service.d.ts +1 -2
  34. package/package.json +1 -1
  35. package/public-api.d.ts +8 -8
@@ -1,10 +1,11 @@
1
+ import { OnInit } from "@angular/core";
1
2
  import { FormBuilder, FormGroup } from "@angular/forms";
2
- import { LoginConstant } from "../../constants/loginConstant";
3
- import { AnnaLibAuthService } from "../../services/auth.service";
4
3
  import { IConfigService } from "../../config/config-service.token";
5
4
  import { ISSOLoginService } from "../../config/sso-login-service.token";
5
+ import { LoginConstant } from "../../constants/loginConstant";
6
+ import { AnnaLibAuthService } from "../../services/auth.service";
6
7
  import * as i0 from "@angular/core";
7
- export declare class AnnaLoginComponent {
8
+ export declare class AnnaLoginComponent implements OnInit {
8
9
  authService: AnnaLibAuthService;
9
10
  private fb;
10
11
  consumingProjectConfigService: IConfigService;
@@ -1,10 +1,8 @@
1
- import { OnInit } from "@angular/core";
2
1
  import { ISSOLoginService } from "../../config/sso-login-service.token";
3
2
  import * as i0 from "@angular/core";
4
- export declare class CognitoAndSSOLoginContainerComponent implements OnInit {
3
+ export declare class CognitoAndSSOLoginContainerComponent {
5
4
  consumingProjectSSOLoginService: ISSOLoginService;
6
5
  constructor(consumingProjectSSOLoginService: ISSOLoginService);
7
- ngOnInit(): void;
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<CognitoAndSSOLoginContainerComponent, never>;
9
7
  static ɵcmp: i0.ɵɵComponentDeclaration<CognitoAndSSOLoginContainerComponent, "anna-cognito-lib-cognito-and-sso-login-container", never, {}, {}, never, never, true, never>;
10
8
  }
@@ -1,14 +1,14 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { FormBuilder, FormGroup } from "@angular/forms";
3
- import { ToastrService } from "ngx-toastr";
4
- import { AnnaLibAuthService } from "../../services/auth.service";
5
- import { LoginConstant } from "../../constants/loginConstant";
6
3
  import { Router } from "@angular/router";
7
- import { IConfigService } from "../../config/config-service.token";
4
+ import { ToastrService } from "ngx-toastr";
8
5
  import { IAuthService } from "../../config/auth-service.token";
6
+ import { IConfigService } from "../../config/config-service.token";
9
7
  import { ISSOLoginService } from "../../config/sso-login-service.token";
8
+ import { LoginConstant } from "../../constants/loginConstant";
9
+ import { AnnaLibAuthService } from "../../services/auth.service";
10
10
  import * as i0 from "@angular/core";
11
- type passwordType = {
11
+ type PasswordType = {
12
12
  value: string;
13
13
  status: string;
14
14
  };
@@ -24,8 +24,8 @@ export declare class ForgotPasswordComponent implements OnInit {
24
24
  verifyRegisteredEmail: FormGroup;
25
25
  passwordNotMatching: boolean;
26
26
  constants: typeof LoginConstant;
27
- password: passwordType;
28
- confirmPassword: passwordType;
27
+ password: PasswordType;
28
+ confirmPassword: PasswordType;
29
29
  infoMessageToRedirectLogin: string;
30
30
  isLoading: boolean;
31
31
  constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService, consumingProjectAuthService: IAuthService, consumingProjectSSOLoginService: ISSOLoginService);
@@ -1,5 +1,4 @@
1
- import { EventEmitter } from "@angular/core";
2
- import { OnInit } from "@angular/core";
1
+ import { EventEmitter, OnInit } from "@angular/core";
3
2
  import { FormBuilder, FormGroup, ValidationErrors } from "@angular/forms";
4
3
  import { LoginConstant } from "../../constants/loginConstant";
5
4
  import * as i0 from "@angular/core";
@@ -1,8 +1,5 @@
1
- import { OnInit } from "@angular/core";
2
1
  import * as i0 from "@angular/core";
3
- export declare class PoweredByLogoTemplateComponent implements OnInit {
4
- constructor();
5
- ngOnInit(): void;
2
+ export declare class PoweredByLogoTemplateComponent {
6
3
  static ɵfac: i0.ɵɵFactoryDeclaration<PoweredByLogoTemplateComponent, never>;
7
4
  static ɵcmp: i0.ɵɵComponentDeclaration<PoweredByLogoTemplateComponent, "anna-cognito-lib-powered-by-logo-template", never, {}, {}, never, never, true, never>;
8
5
  }
@@ -1,10 +1,10 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { Router } from "@angular/router";
3
- import { AnnaLibAuthService } from "../../services/auth.service";
4
- import { LoginConstant } from "../../constants/loginConstant";
5
3
  import { IConfigService } from "../../config/config-service.token";
4
+ import { LoginConstant } from "../../constants/loginConstant";
5
+ import { AnnaLibAuthService } from "../../services/auth.service";
6
6
  import * as i0 from "@angular/core";
7
- type passwordType = {
7
+ type PasswordType = {
8
8
  value: string | null;
9
9
  status: string | null;
10
10
  };
@@ -13,14 +13,14 @@ export declare class SetNewPasswordComponent implements OnInit {
13
13
  private router;
14
14
  consumingProjectConfigService: IConfigService;
15
15
  passwordNotMatching: boolean;
16
- password: passwordType;
17
- confirmPassword: passwordType;
16
+ password: PasswordType;
17
+ confirmPassword: PasswordType;
18
18
  constants: typeof LoginConstant;
19
19
  constructor(authService: AnnaLibAuthService, router: Router, consumingProjectConfigService: IConfigService);
20
20
  ngOnInit(): void;
21
21
  isFormValid(): boolean;
22
- onPasswordChange($event: passwordType): void;
23
- onConfirmPasswordChange($event: passwordType): void;
22
+ onPasswordChange($event: PasswordType): void;
23
+ onConfirmPasswordChange($event: PasswordType): void;
24
24
  onSettingNewPassword(): void;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SetNewPasswordComponent, never>;
26
26
  static ɵcmp: i0.ɵɵComponentDeclaration<SetNewPasswordComponent, "anna-cognito-lib-set-new-password", never, {}, {}, never, never, true, never>;
@@ -1,8 +1,9 @@
1
+ import { OnInit } from "@angular/core";
1
2
  import { IConfigService } from "../../config/config-service.token";
2
3
  import { LoginConstant } from "../../constants/loginConstant";
3
4
  import { AnnaLibAuthService } from "../../services/auth.service";
4
5
  import * as i0 from "@angular/core";
5
- export declare class SsoLoginComponent {
6
+ export declare class SsoLoginComponent implements OnInit {
6
7
  authService: AnnaLibAuthService;
7
8
  consumingProjectConfigService: IConfigService;
8
9
  constants: typeof LoginConstant;
@@ -2,7 +2,6 @@ import { OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SurewavesYearLogoComponent implements OnInit {
4
4
  currentYear: number;
5
- constructor();
6
5
  ngOnInit(): void;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SurewavesYearLogoComponent, never>;
8
7
  static ɵcmp: i0.ɵɵComponentDeclaration<SurewavesYearLogoComponent, "anna-cognito-lib-surewaves-year-logo", never, {}, {}, never, never, true, never>;
@@ -1,11 +1,11 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { FormBuilder, FormGroup } from "@angular/forms";
3
3
  import { Router } from "@angular/router";
4
+ import { IConfigService } from "../../config/config-service.token";
4
5
  import { LoginConstant } from "../../constants/loginConstant";
5
6
  import { AnnaLibAuthService } from "../../services/auth.service";
6
- import { IConfigService } from "../../config/config-service.token";
7
7
  import * as i0 from "@angular/core";
8
- type passwordType = {
8
+ type PasswordType = {
9
9
  value: string | null;
10
10
  status: string | null;
11
11
  };
@@ -17,14 +17,14 @@ export declare class VerifyAndSetNewPasswordComponent implements OnInit {
17
17
  verifyOtpForm: FormGroup;
18
18
  passwordNotMatching: boolean;
19
19
  constants: typeof LoginConstant;
20
- password: passwordType;
21
- confirmPassword: passwordType;
20
+ password: PasswordType;
21
+ confirmPassword: PasswordType;
22
22
  constructor(authService: AnnaLibAuthService, fb: FormBuilder, router: Router, consumingProjectConfigService: IConfigService);
23
23
  ngOnInit(): void;
24
24
  onIntialiseForm(): void;
25
25
  isFormValid(): boolean;
26
- onPasswordChange($event: passwordType): void;
27
- onConfirmPasswordChange($event: passwordType): void;
26
+ onPasswordChange($event: PasswordType): void;
27
+ onConfirmPasswordChange($event: PasswordType): void;
28
28
  onVerifyOtpSettingNewPassword(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<VerifyAndSetNewPasswordComponent, never>;
30
30
  static ɵcmp: i0.ɵɵComponentDeclaration<VerifyAndSetNewPasswordComponent, "anna-cognito-lib-verify-and-set-new-password", never, {}, {}, never, never, true, never>;
@@ -1,10 +1,8 @@
1
- import { OnInit } from "@angular/core";
2
1
  import { IConfigService } from "../../config/config-service.token";
3
2
  import * as i0 from "@angular/core";
4
- export declare class VersionAndTermPolicyComponent implements OnInit {
3
+ export declare class VersionAndTermPolicyComponent {
5
4
  consumingProjectConfigService: IConfigService;
6
5
  constructor(consumingProjectConfigService: IConfigService);
7
- ngOnInit(): void;
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<VersionAndTermPolicyComponent, never>;
9
7
  static ɵcmp: i0.ɵɵComponentDeclaration<VersionAndTermPolicyComponent, "anna-cognito-lib-version-and-term-policy", never, {}, {}, never, never, true, never>;
10
8
  }
@@ -1,15 +1,14 @@
1
- import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from "@angular/core";
1
+ import { ElementRef, OnChanges, Renderer2, SimpleChanges } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- export declare class SpinnerButtonDirective implements OnInit, OnChanges {
3
+ export declare class SpinnerButtonDirective implements OnChanges {
4
4
  private el;
5
5
  private renderer;
6
- loading: boolean;
6
+ spinnerButtonLoading: boolean;
7
7
  spinnerButtonText: string;
8
8
  child: HTMLDivElement;
9
9
  button: any;
10
10
  constructor(el: ElementRef, renderer: Renderer2);
11
- ngOnInit(): void;
12
11
  ngOnChanges(changes: SimpleChanges): void;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerButtonDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<SpinnerButtonDirective, "[anna-cognito-lib-SpinnerButton]", never, { "loading": { "alias": "anna-cognito-lib-SpinnerButton"; "required": false; }; "spinnerButtonText": { "alias": "spinnerButtonText"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SpinnerButtonDirective, "[annaCognitoSpinnerBtn]", never, { "spinnerButtonLoading": { "alias": "spinnerButtonLoading"; "required": false; }; "spinnerButtonText": { "alias": "spinnerButtonText"; "required": false; }; }, {}, never, never, true, never>;
15
14
  }
@@ -3,8 +3,8 @@ import { Router } from "@angular/router";
3
3
  import { AuthTokens, SignInInput } from "aws-amplify/auth";
4
4
  import { ToastrService } from "ngx-toastr";
5
5
  import { IAuthService } from "../config/auth-service.token";
6
- import { AnnaLibAclService } from "./acl.service";
7
6
  import { ISSOLoginService } from "../config/sso-login-service.token";
7
+ import { AnnaLibAclService } from "./acl.service";
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class AnnaLibAuthService {
10
10
  private router;
@@ -24,7 +24,6 @@ export declare class AnnaLibAuthService {
24
24
  accessTokenTimerId: any;
25
25
  forgotPasswordAndGlobalSignoutLoader: boolean;
26
26
  constructor(router: Router, aclService: AnnaLibAclService, httpClient: HttpClient, toastr: ToastrService, consumingProjectSSOLoginService: ISSOLoginService, consumingProjectAuthService: IAuthService);
27
- ngOnInit(): void;
28
27
  isUserLoggedIn(): Promise<boolean>;
29
28
  sessionTimeout(): void;
30
29
  computeTokenExpiration(idToken: any): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-cognito-lib",
3
- "version": "2.3.20",
3
+ "version": "2.3.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.12",
6
6
  "@angular/core": "^16.2.12",
package/public-api.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- export * from "./lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component";
2
1
  export * from "./lib/components/anna-login/anna-login.component";
3
- export * from "./lib/components/sso-login/sso-login.component";
2
+ export * from "./lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component";
4
3
  export * from "./lib/components/forgot-password/forgot-password.component";
5
- export * from "./lib/components/set-new-password/set-new-password.component";
6
4
  export * from "./lib/components/password-matching/password-matching.component";
7
- export * from "./lib/components/verify-and-set-new-password/verify-and-set-new-password.component";
8
- export * from "./lib/components/version-and-term-policy/version-and-term-policy.component";
9
5
  export * from "./lib/components/powered-by-logo-template/powered-by-logo-template.component";
6
+ export * from "./lib/components/set-new-password/set-new-password.component";
7
+ export * from "./lib/components/sso-login/sso-login.component";
10
8
  export * from "./lib/components/surewaves-year-logo/surewaves-year-logo.component";
11
- export * from "./lib/services/auth.service";
12
- export * from "./lib/services/acl.service";
13
- export * from "./lib/config/auth-service.token";
9
+ export * from "./lib/components/verify-and-set-new-password/verify-and-set-new-password.component";
10
+ export * from "./lib/components/version-and-term-policy/version-and-term-policy.component";
14
11
  export * from "./lib/config/acl-service.token";
12
+ export * from "./lib/config/auth-service.token";
15
13
  export * from "./lib/config/config-service.token";
16
14
  export * from "./lib/config/sso-login-service.token";
15
+ export * from "./lib/services/acl.service";
16
+ export * from "./lib/services/auth.service";
17
17
  export * from "./lib/services/config.service";
18
18
  export * from "./lib/services/sso-login.service";
19
19
  export * from "./lib/directives/spinner-button";