@annalib/anna-cognito-lib 2.3.21 → 2.3.23

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 (37) hide show
  1. package/esm2022/lib/components/anna-login/anna-login.component.mjs +12 -13
  2. package/esm2022/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +4 -3
  3. package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +20 -21
  4. package/esm2022/lib/components/password-matching/password-matching.component.mjs +16 -18
  5. package/esm2022/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +5 -3
  6. package/esm2022/lib/components/set-new-password/set-new-password.component.mjs +9 -10
  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 +3 -2
  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 +2 -1
  11. package/esm2022/lib/config/acl-service.token.mjs +1 -1
  12. package/esm2022/lib/config/auth-service.token.mjs +1 -1
  13. package/esm2022/lib/constants/loginConstant.mjs +13 -17
  14. package/esm2022/lib/directives/spinner-button/spinner-button.directive.mjs +11 -8
  15. package/esm2022/lib/models/auth.model.mjs +2 -2
  16. package/esm2022/lib/services/acl.service.mjs +2 -2
  17. package/esm2022/lib/services/auth.service.mjs +40 -41
  18. package/esm2022/lib/services/config.service.mjs +1 -1
  19. package/esm2022/lib/services/sso-login.service.mjs +1 -1
  20. package/esm2022/public-api.mjs +13 -13
  21. package/fesm2022/annalib-anna-cognito-lib.mjs +180 -182
  22. package/fesm2022/annalib-anna-cognito-lib.mjs.map +1 -1
  23. package/lib/components/anna-login/anna-login.component.d.ts +3 -4
  24. package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +3 -1
  25. package/lib/components/forgot-password/forgot-password.component.d.ts +7 -7
  26. package/lib/components/password-matching/password-matching.component.d.ts +2 -1
  27. package/lib/components/powered-by-logo-template/powered-by-logo-template.component.d.ts +4 -1
  28. package/lib/components/set-new-password/set-new-password.component.d.ts +7 -7
  29. package/lib/components/sso-login/sso-login.component.d.ts +1 -2
  30. package/lib/components/surewaves-year-logo/surewaves-year-logo.component.d.ts +1 -0
  31. package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +6 -6
  32. package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +3 -1
  33. package/lib/config/acl-service.token.d.ts +6 -6
  34. package/lib/directives/spinner-button/spinner-button.directive.d.ts +5 -4
  35. package/lib/services/auth.service.d.ts +2 -1
  36. package/package.json +1 -1
  37. package/public-api.d.ts +8 -8
@@ -1,11 +1,10 @@
1
- import { OnInit } from "@angular/core";
2
1
  import { FormBuilder, FormGroup } from "@angular/forms";
3
- import { IConfigService } from "../../config/config-service.token";
4
- import { ISSOLoginService } from "../../config/sso-login-service.token";
5
2
  import { LoginConstant } from "../../constants/loginConstant";
6
3
  import { AnnaLibAuthService } from "../../services/auth.service";
4
+ import { IConfigService } from "../../config/config-service.token";
5
+ import { ISSOLoginService } from "../../config/sso-login-service.token";
7
6
  import * as i0 from "@angular/core";
8
- export declare class AnnaLoginComponent implements OnInit {
7
+ export declare class AnnaLoginComponent {
9
8
  authService: AnnaLibAuthService;
10
9
  private fb;
11
10
  consumingProjectConfigService: IConfigService;
@@ -1,8 +1,10 @@
1
+ import { OnInit } from "@angular/core";
1
2
  import { ISSOLoginService } from "../../config/sso-login-service.token";
2
3
  import * as i0 from "@angular/core";
3
- export declare class CognitoAndSSOLoginContainerComponent {
4
+ export declare class CognitoAndSSOLoginContainerComponent implements OnInit {
4
5
  consumingProjectSSOLoginService: ISSOLoginService;
5
6
  constructor(consumingProjectSSOLoginService: ISSOLoginService);
7
+ ngOnInit(): void;
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<CognitoAndSSOLoginContainerComponent, never>;
7
9
  static ɵcmp: i0.ɵɵComponentDeclaration<CognitoAndSSOLoginContainerComponent, "anna-cognito-lib-cognito-and-sso-login-container", never, {}, {}, never, never, true, never>;
8
10
  }
@@ -1,14 +1,14 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { FormBuilder, FormGroup } from "@angular/forms";
3
- import { Router } from "@angular/router";
4
3
  import { ToastrService } from "ngx-toastr";
5
- import { IAuthService } from "../../config/auth-service.token";
4
+ import { AnnaLibAuthService } from "../../services/auth.service";
5
+ import { LoginConstant } from "../../constants/loginConstant";
6
+ import { Router } from "@angular/router";
6
7
  import { IConfigService } from "../../config/config-service.token";
8
+ import { IAuthService } from "../../config/auth-service.token";
7
9
  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,4 +1,5 @@
1
- import { EventEmitter, OnInit } from "@angular/core";
1
+ import { EventEmitter } from "@angular/core";
2
+ import { OnInit } from "@angular/core";
2
3
  import { FormBuilder, FormGroup, ValidationErrors } from "@angular/forms";
3
4
  import { LoginConstant } from "../../constants/loginConstant";
4
5
  import * as i0 from "@angular/core";
@@ -1,5 +1,8 @@
1
+ import { OnInit } from "@angular/core";
1
2
  import * as i0 from "@angular/core";
2
- export declare class PoweredByLogoTemplateComponent {
3
+ export declare class PoweredByLogoTemplateComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
3
6
  static ɵfac: i0.ɵɵFactoryDeclaration<PoweredByLogoTemplateComponent, never>;
4
7
  static ɵcmp: i0.ɵɵComponentDeclaration<PoweredByLogoTemplateComponent, "anna-cognito-lib-powered-by-logo-template", never, {}, {}, never, never, true, never>;
5
8
  }
@@ -1,10 +1,10 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { Router } from "@angular/router";
3
- import { IConfigService } from "../../config/config-service.token";
4
- import { LoginConstant } from "../../constants/loginConstant";
5
3
  import { AnnaLibAuthService } from "../../services/auth.service";
4
+ import { LoginConstant } from "../../constants/loginConstant";
5
+ import { IConfigService } from "../../config/config-service.token";
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,9 +1,8 @@
1
- import { OnInit } from "@angular/core";
2
1
  import { IConfigService } from "../../config/config-service.token";
3
2
  import { LoginConstant } from "../../constants/loginConstant";
4
3
  import { AnnaLibAuthService } from "../../services/auth.service";
5
4
  import * as i0 from "@angular/core";
6
- export declare class SsoLoginComponent implements OnInit {
5
+ export declare class SsoLoginComponent {
7
6
  authService: AnnaLibAuthService;
8
7
  consumingProjectConfigService: IConfigService;
9
8
  constants: typeof LoginConstant;
@@ -2,6 +2,7 @@ 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();
5
6
  ngOnInit(): void;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SurewavesYearLogoComponent, never>;
7
8
  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";
5
4
  import { LoginConstant } from "../../constants/loginConstant";
6
5
  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,8 +1,10 @@
1
+ import { OnInit } from "@angular/core";
1
2
  import { IConfigService } from "../../config/config-service.token";
2
3
  import * as i0 from "@angular/core";
3
- export declare class VersionAndTermPolicyComponent {
4
+ export declare class VersionAndTermPolicyComponent implements OnInit {
4
5
  consumingProjectConfigService: IConfigService;
5
6
  constructor(consumingProjectConfigService: IConfigService);
7
+ ngOnInit(): void;
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<VersionAndTermPolicyComponent, never>;
7
9
  static ɵcmp: i0.ɵɵComponentDeclaration<VersionAndTermPolicyComponent, "anna-cognito-lib-version-and-term-policy", never, {}, {}, never, never, true, never>;
8
10
  }
@@ -26,13 +26,13 @@ export interface IAclService {
26
26
  ORDER_DISCREPANCIES: string;
27
27
  REVISION_CYCLE_SETTINGS_READ: string;
28
28
  REVISION_CYCLE_SETTINGS_WRITE: string;
29
- ROLLING_AVERAGES_READ: string;
30
- ROLLING_AVERAGES_WRITE: string;
31
- EQUIVALIZED_RATES_READ: string;
32
- EQUIVALIZED_RATES_WRITE: string;
29
+ AUDIENCE_ESTIMATES_CONFIG_READ: string;
30
+ AUDIENCE_ESTIMATES_CONFIG_WRITE: string;
31
+ RATE_CONFIG_WRITE: string;
32
+ RATE_CONFIG_READ: string;
33
33
  WRITE_ENABLED_ORDERS_READ: string;
34
34
  WRITE_ENABLED_ORDERS_WRITE: string;
35
- STATION_POLITICAL_RATE_CARD_READ: string;
36
- STATION_POLITICAL_RATE_CARD_WRITE: string;
35
+ SECTION_RATE_CARD_READ: string;
36
+ SECTION_RATE_CARD_WRITE: string;
37
37
  AUDIENCE_ESTIMATES_READ: string;
38
38
  }
@@ -1,14 +1,15 @@
1
- import { ElementRef, OnChanges, Renderer2, SimpleChanges } from "@angular/core";
1
+ import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- export declare class SpinnerButtonDirective implements OnChanges {
3
+ export declare class SpinnerButtonDirective implements OnInit, OnChanges {
4
4
  private el;
5
5
  private renderer;
6
- spinnerButtonLoading: boolean;
6
+ loading: boolean;
7
7
  spinnerButtonText: string;
8
8
  child: HTMLDivElement;
9
9
  button: any;
10
10
  constructor(el: ElementRef, renderer: Renderer2);
11
+ ngOnInit(): void;
11
12
  ngOnChanges(changes: SimpleChanges): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerButtonDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<SpinnerButtonDirective, "[annaCognitoSpinnerBtn]", never, { "spinnerButtonLoading": { "alias": "spinnerButtonLoading"; "required": false; }; "spinnerButtonText": { "alias": "spinnerButtonText"; "required": false; }; }, {}, never, never, true, 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>;
14
15
  }
@@ -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 { ISSOLoginService } from "../config/sso-login-service.token";
7
6
  import { AnnaLibAclService } from "./acl.service";
7
+ import { ISSOLoginService } from "../config/sso-login-service.token";
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class AnnaLibAuthService {
10
10
  private router;
@@ -24,6 +24,7 @@ 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;
27
28
  isUserLoggedIn(): Promise<boolean>;
28
29
  sessionTimeout(): void;
29
30
  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.21",
3
+ "version": "2.3.23",
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/anna-login/anna-login.component";
2
1
  export * from "./lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component";
2
+ export * from "./lib/components/anna-login/anna-login.component";
3
+ export * from "./lib/components/sso-login/sso-login.component";
3
4
  export * from "./lib/components/forgot-password/forgot-password.component";
4
- export * from "./lib/components/password-matching/password-matching.component";
5
- export * from "./lib/components/powered-by-logo-template/powered-by-logo-template.component";
6
5
  export * from "./lib/components/set-new-password/set-new-password.component";
7
- export * from "./lib/components/sso-login/sso-login.component";
8
- export * from "./lib/components/surewaves-year-logo/surewaves-year-logo.component";
6
+ export * from "./lib/components/password-matching/password-matching.component";
9
7
  export * from "./lib/components/verify-and-set-new-password/verify-and-set-new-password.component";
10
8
  export * from "./lib/components/version-and-term-policy/version-and-term-policy.component";
11
- export * from "./lib/config/acl-service.token";
9
+ export * from "./lib/components/powered-by-logo-template/powered-by-logo-template.component";
10
+ 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";
12
13
  export * from "./lib/config/auth-service.token";
14
+ export * from "./lib/config/acl-service.token";
13
15
  export * from "./lib/config/config-service.token";
14
16
  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";