@annalib/anna-cognito-lib 2.2.14 → 2.2.16

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.
@@ -9,12 +9,13 @@ import * as i7 from "./components/version-and-term-policy/version-and-term-polic
9
9
  import * as i8 from "./components/surewaves-year-logo/surewaves-year-logo.component";
10
10
  import * as i9 from "./components/powered-by-logo-template/powered-by-logo-template.component";
11
11
  import * as i10 from "./components/sso-login/sso-login.component";
12
- import * as i11 from "@angular/forms";
13
- import * as i12 from "@angular/router";
14
- import * as i13 from "@angular/common";
12
+ import * as i11 from "./components/anna-login/anna-login.component";
13
+ import * as i12 from "@angular/forms";
14
+ import * as i13 from "@angular/router";
15
+ import * as i14 from "@angular/common";
15
16
  export declare class AnnaCognitoLibModule {
16
17
  constructor();
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCognitoLibModule, never>;
18
- 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.SsoLoginComponent], [typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.RouterModule, typeof i13.CommonModule, typeof i13.NgOptimizedImage], [typeof i1.LoginComponent, typeof i10.SsoLoginComponent, 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 i13.NgOptimizedImage]>;
19
+ 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.SsoLoginComponent, typeof i11.AnnaLoginComponent], [typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.RouterModule, typeof i14.CommonModule, typeof i14.NgOptimizedImage], [typeof i1.LoginComponent, typeof i10.SsoLoginComponent, typeof i11.AnnaLoginComponent, 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 i14.NgOptimizedImage]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCognitoLibModule>;
20
21
  }
@@ -0,0 +1,18 @@
1
+ import { FormBuilder, FormGroup } from "@angular/forms";
2
+ import { LoginConstant } from "../../constants/loginConstant";
3
+ import { AnnaLibAuthService } from '../../services/auth.service';
4
+ import { IConfigService } from '../../config/config-service.token';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AnnaLoginComponent {
7
+ authService: AnnaLibAuthService;
8
+ private fb;
9
+ consumingProjectConfigService: IConfigService;
10
+ loginForm: FormGroup;
11
+ constants: typeof LoginConstant;
12
+ constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService);
13
+ ngOnInit(): void;
14
+ onIntialiseForm(): void;
15
+ OnLogin(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaLoginComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaLoginComponent, "anna-cognito-lib-anna-login", never, {}, {}, never, never, false, never>;
18
+ }
@@ -1,19 +1,10 @@
1
1
  import { OnInit } from "@angular/core";
2
- import { FormBuilder, FormGroup } from "@angular/forms";
3
- import { LoginConstant } from "../../constants/loginConstant";
4
- import { AnnaLibAuthService } from '../../services/auth.service';
5
- import { IConfigService } from '../../config/config-service.token';
2
+ import { ISSOLoginService } from "../../config/sso-login-service.token";
6
3
  import * as i0 from "@angular/core";
7
4
  export declare class LoginComponent implements OnInit {
8
- authService: AnnaLibAuthService;
9
- private fb;
10
- consumingProjectConfigService: IConfigService;
11
- loginForm: FormGroup;
12
- constants: typeof LoginConstant;
13
- constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService);
5
+ consumingProjectSSOLoginService: ISSOLoginService;
6
+ constructor(consumingProjectSSOLoginService: ISSOLoginService);
14
7
  ngOnInit(): void;
15
- onIntialiseForm(): void;
16
- OnLogin(): void;
17
8
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
18
9
  static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "anna-cognito-lib-login", never, {}, {}, never, never, false, never>;
19
10
  }
@@ -0,0 +1,16 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /** Token to inject the auth service */
3
+ export declare const SSO_LOGIN_SERVICE_TOKEN: InjectionToken<ISSOLoginService>;
4
+ export interface ISSOLoginService {
5
+ defaultLoginPageUrl: "co-pilot-login" | "login";
6
+ isSsoIntegrated: boolean;
7
+ ogDetails: {
8
+ OgName: string;
9
+ OgId: number;
10
+ OgLogoUrl: string;
11
+ IsSsoIntegrated: boolean;
12
+ };
13
+ loggedInViaSso: boolean;
14
+ isUserInvitedAndCanAccessANNA: boolean;
15
+ userNameText: string;
16
+ }
@@ -1,5 +1,6 @@
1
1
  export declare class LoginConstant {
2
2
  static readonly enterEmail = "Enter your username";
3
+ static readonly enterUserCode = "Enter your usercode";
3
4
  static readonly password = "Password";
4
5
  static readonly confirmPassword = "Confirm Password";
5
6
  static readonly login = "Login";
@@ -0,0 +1,8 @@
1
+ import { ISSOLoginService } from '../config/sso-login-service.token';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AnnaSSOLoginService {
4
+ consumingProjectSSOLoginService: ISSOLoginService;
5
+ constructor(consumingProjectSSOLoginService: ISSOLoginService);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaSSOLoginService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnaSSOLoginService>;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-cognito-lib",
3
- "version": "2.2.14",
3
+ "version": "2.2.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.9",
6
6
  "@angular/core": "^15.2.9",
package/public-api.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './lib/anna-cognito-lib.module';
2
2
  export * from './lib/components/login/login.component';
3
+ export * from './lib/components/anna-login/anna-login.component';
3
4
  export * from './lib/components/sso-login/sso-login.component';
4
5
  export * from './lib/components/forgot-password/forgot-password.component';
5
6
  export * from './lib/components/set-new-password/set-new-password.component';
@@ -13,6 +14,8 @@ export * from './lib/services/acl.service';
13
14
  export * from './lib/config/auth-service.token';
14
15
  export * from './lib/config/acl-service.token';
15
16
  export * from './lib/config/config-service.token';
17
+ export * from './lib/config/sso-login-service.token';
16
18
  export * from './lib/services/config.service';
19
+ export * from './lib/services/sso-login.service';
17
20
  export * from './lib/directives/spinner-button';
18
21
  export * from './lib/constants/loginConstant';