verben-authentication-ui 0.1.8 → 0.2.0

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 (51) hide show
  1. package/esm2022/lib/components/button/button.component.mjs +3 -3
  2. package/esm2022/lib/components/button/button.module.mjs +4 -4
  3. package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +3 -3
  4. package/esm2022/lib/components/forgot-password/forgot-password.module.mjs +4 -4
  5. package/esm2022/lib/components/mail/mail.component.mjs +3 -3
  6. package/esm2022/lib/components/mail/mail.module.mjs +4 -4
  7. package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +3 -3
  8. package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +4 -4
  9. package/esm2022/lib/components/o-auth/o-auth.component.mjs +3 -3
  10. package/esm2022/lib/components/o-auth/o-auth.module.mjs +4 -4
  11. package/esm2022/lib/components/otp-input/otp-input.component.mjs +3 -3
  12. package/esm2022/lib/components/otp-input/otp-input.module.mjs +4 -4
  13. package/esm2022/lib/components/reset-password/reset-password.component.mjs +5 -10
  14. package/esm2022/lib/components/reset-password/reset-password.module.mjs +4 -4
  15. package/esm2022/lib/components/sign-in/sign-in.component.mjs +32 -18
  16. package/esm2022/lib/components/sign-in/sign-in.module.mjs +4 -4
  17. package/esm2022/lib/components/sign-up/sign-up.component.mjs +5 -5
  18. package/esm2022/lib/components/sign-up/sign-up.module.mjs +4 -4
  19. package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +3 -3
  20. package/esm2022/lib/components/sso/sso.component.mjs +3 -3
  21. package/esm2022/lib/components/sso/sso.module.mjs +4 -4
  22. package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +62 -10
  23. package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.mjs +4 -4
  24. package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +3 -3
  25. package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.mjs +4 -4
  26. package/esm2022/lib/components/user-management/useer-management.module.mjs +4 -4
  27. package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +3 -3
  28. package/esm2022/lib/components/user-management/user-management.component.mjs +4 -4
  29. package/esm2022/lib/components/user-request/user-request.component.mjs +3 -3
  30. package/esm2022/lib/components/user-request/user-request.module.mjs +4 -4
  31. package/esm2022/lib/components/user-request-approval/facades/user-access-request.facade.mjs +3 -3
  32. package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +3 -3
  33. package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +3 -3
  34. package/esm2022/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.mjs +3 -3
  35. package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +4 -4
  36. package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +4 -4
  37. package/esm2022/lib/components/user-request-approval/user-request-approval.service.mjs +3 -3
  38. package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +3 -3
  39. package/esm2022/lib/models/log-in.mjs +1 -1
  40. package/esm2022/lib/services/environment.service.mjs +4 -4
  41. package/esm2022/lib/services/http-web-request.service.mjs +54 -51
  42. package/esm2022/lib/services/util.service.mjs +3 -3
  43. package/fesm2022/verben-authentication-ui.mjs +274 -213
  44. package/fesm2022/verben-authentication-ui.mjs.map +1 -1
  45. package/lib/components/reset-password/reset-password.component.d.ts +1 -2
  46. package/lib/components/sign-in/sign-in.component.d.ts +8 -3
  47. package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +10 -3
  48. package/lib/models/log-in.d.ts +4 -1
  49. package/lib/services/environment.service.d.ts +1 -0
  50. package/lib/services/http-web-request.service.d.ts +8 -5
  51. package/package.json +2 -2
@@ -16,7 +16,6 @@ export declare class ResetPasswordComponent {
16
16
  buttonTextColor?: string;
17
17
  buttonBackgroundColor?: string;
18
18
  showOldPassword: boolean;
19
- firstTimeSet: boolean;
20
19
  token?: string;
21
20
  onSubmit: EventEmitter<ResetPasswordData>;
22
21
  onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse>;
@@ -27,5 +26,5 @@ export declare class ResetPasswordComponent {
27
26
  confirmPasswordValidator(control: AbstractControl): ValidationErrors | null;
28
27
  submit(): Promise<void>;
29
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ResetPasswordComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ResetPasswordComponent, "verben-reset-password", never, { "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "buttonCaption": { "alias": "buttonCaption"; "required": false; }; "buttonTextColor": { "alias": "buttonTextColor"; "required": false; }; "buttonBackgroundColor": { "alias": "buttonBackgroundColor"; "required": false; }; "showOldPassword": { "alias": "showOldPassword"; "required": false; }; "firstTimeSet": { "alias": "firstTimeSet"; "required": false; }; "token": { "alias": "token"; "required": false; }; }, { "onSubmit": "onSubmit"; "onSubmitEnd": "onSubmitEnd"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResetPasswordComponent, "verben-reset-password", never, { "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "buttonCaption": { "alias": "buttonCaption"; "required": false; }; "buttonTextColor": { "alias": "buttonTextColor"; "required": false; }; "buttonBackgroundColor": { "alias": "buttonBackgroundColor"; "required": false; }; "showOldPassword": { "alias": "showOldPassword"; "required": false; }; "token": { "alias": "token"; "required": false; }; }, { "onSubmit": "onSubmit"; "onSubmitEnd": "onSubmitEnd"; }, never, never, false, never>;
31
30
  }
@@ -16,15 +16,20 @@ export declare class SignInComponent {
16
16
  margin: string;
17
17
  pd: string;
18
18
  customClass: string;
19
+ headlingClass: string;
19
20
  bgColor: string;
20
21
  boxShadow: string;
21
22
  border: string;
22
23
  borderRadius: string;
23
24
  textColor: string;
24
25
  height: string;
25
- routerLink: string;
26
26
  forgetPasswordClass: string;
27
- headlingClass: string;
27
+ requestAccessClass: string;
28
+ createAccountClass: string;
29
+ createAccountLinkClass: string;
30
+ forgetPasswordLink: string;
31
+ createAccountLink: string;
32
+ requestAccessLink: string;
28
33
  btnClass: string;
29
34
  btnBgColor: string;
30
35
  btnColor: string;
@@ -60,5 +65,5 @@ export declare class SignInComponent {
60
65
  padding: string;
61
66
  };
62
67
  static ɵfac: i0.ɵɵFactoryDeclaration<SignInComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<SignInComponent, "verben-sign-in", never, { "headlingText": { "alias": "headlingText"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "forgetPasswordClass": { "alias": "forgetPasswordClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; "inputLabelColor": { "alias": "inputLabelColor"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "inputBorderRadius": { "alias": "inputBorderRadius"; "required": false; }; "termsErrorText": { "alias": "termsErrorText"; "required": false; }; }, { "formSubmit": "formSubmit"; "onSubmitEnd": "onSubmitEnd"; "googleClick": "googleClick"; "appleClick": "appleClick"; }, never, never, false, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<SignInComponent, "verben-sign-in", never, { "headlingText": { "alias": "headlingText"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "forgetPasswordClass": { "alias": "forgetPasswordClass"; "required": false; }; "requestAccessClass": { "alias": "requestAccessClass"; "required": false; }; "createAccountClass": { "alias": "createAccountClass"; "required": false; }; "createAccountLinkClass": { "alias": "createAccountLinkClass"; "required": false; }; "forgetPasswordLink": { "alias": "forgetPasswordLink"; "required": false; }; "createAccountLink": { "alias": "createAccountLink"; "required": false; }; "requestAccessLink": { "alias": "requestAccessLink"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; "inputLabelColor": { "alias": "inputLabelColor"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "inputBorderRadius": { "alias": "inputBorderRadius"; "required": false; }; "termsErrorText": { "alias": "termsErrorText"; "required": false; }; }, { "formSubmit": "formSubmit"; "onSubmitEnd": "onSubmitEnd"; "googleClick": "googleClick"; "appleClick": "appleClick"; }, never, never, false, never>;
64
69
  }
@@ -1,8 +1,14 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { FormGroup, FormBuilder } from '@angular/forms';
3
+ import { HttpWebRequestService } from '../../services/http-web-request.service';
4
+ import { UtilService } from '../../services/util.service';
5
+ import { ErrorResponse } from '../../models/ErrorResponse';
6
+ import { ResponseKeyValue } from '../../models/ResponseKeyValue';
3
7
  import * as i0 from "@angular/core";
4
8
  export declare class TwoFactorAuthOtpComponent {
5
9
  private fb;
10
+ private server;
11
+ private utilService;
6
12
  customClass: string;
7
13
  headlingClass: string;
8
14
  headlingText: string;
@@ -30,11 +36,12 @@ export declare class TwoFactorAuthOtpComponent {
30
36
  otpValue: string;
31
37
  otpForm: FormGroup;
32
38
  buttonClick: EventEmitter<string>;
39
+ onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse>;
33
40
  resend: EventEmitter<any>;
34
- constructor(fb: FormBuilder);
41
+ constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService);
35
42
  ngOnInit(): void;
36
43
  onOtpChange(value: string): void;
37
- submitData(): void;
44
+ submitData(): Promise<void>;
38
45
  resendOtp(): void;
39
46
  get styles(): {
40
47
  'background-color': string;
@@ -49,5 +56,5 @@ export declare class TwoFactorAuthOtpComponent {
49
56
  padding: string;
50
57
  };
51
58
  static ɵfac: i0.ɵɵFactoryDeclaration<TwoFactorAuthOtpComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<TwoFactorAuthOtpComponent, "verben-auth-otp", never, { "customClass": { "alias": "customClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "headlingText": { "alias": "headlingText"; "required": false; }; "paragraphClass": { "alias": "paragraphClass"; "required": false; }; "resendClass": { "alias": "resendClass"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "length": { "alias": "length"; "required": false; }; "otpClass": { "alias": "otpClass"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; }, { "buttonClick": "buttonClick"; "resend": "resend"; }, never, never, false, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<TwoFactorAuthOtpComponent, "verben-auth-otp", never, { "customClass": { "alias": "customClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "headlingText": { "alias": "headlingText"; "required": false; }; "paragraphClass": { "alias": "paragraphClass"; "required": false; }; "resendClass": { "alias": "resendClass"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "length": { "alias": "length"; "required": false; }; "otpClass": { "alias": "otpClass"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; }, { "buttonClick": "buttonClick"; "onSubmitEnd": "onSubmitEnd"; "resend": "resend"; }, never, never, false, never>;
53
60
  }
@@ -1,4 +1,7 @@
1
1
  export interface LoginData {
2
- Email: string;
2
+ MailAddress: string;
3
3
  Password: string;
4
+ LoginType: string;
5
+ APIKey: string;
6
+ Secrete: string;
4
7
  }
@@ -4,6 +4,7 @@ export declare const ENVIRONMENT: InjectionToken<Environment>;
4
4
  export interface Environment {
5
5
  production: boolean;
6
6
  AuthenticationAPI: string;
7
+ ApiKey: string;
7
8
  }
8
9
  export declare class EnvironmentService {
9
10
  private env;
@@ -9,12 +9,15 @@ export declare class HttpWebRequestService {
9
9
  private notificationService;
10
10
  isProd: boolean;
11
11
  constructor(http: HttpClient, envSvc: EnvironmentService, notificationService: NotificationService);
12
+ private buildHeaders;
13
+ private buildUrl;
12
14
  private handleError;
13
- get(url: string, baseUrl?: string): Promise<any>;
14
- post(url: string, body: any, baseUrl?: string): Promise<any>;
15
- postFile(url: string, formData: FormData, baseUrl?: string): Promise<any>;
16
- put(url: string, body: any, baseUrl?: string): Observable<any>;
17
- delete(url: string, baseUrl?: string): Observable<any>;
15
+ private request;
16
+ get<T>(url: string, baseUrl?: string, apiKey?: string): Promise<T>;
17
+ post<T>(url: string, body: any, baseUrl?: string, apiKey?: string): Promise<T>;
18
+ postFile<T>(url: string, formData: FormData, baseUrl?: string): Promise<T>;
19
+ put<T>(url: string, body: any, baseUrl?: string): Observable<T>;
20
+ delete<T>(url: string, baseUrl?: string): Observable<T>;
18
21
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpWebRequestService, never>;
19
22
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpWebRequestService>;
20
23
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "verben-authentication-ui",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0 || ^18.0.0",
6
6
  "@angular/core": "^14.0.0 || ^18.0.0",
7
- "verben-ng-ui": "^0.1.8"
7
+ "verben-ng-ui": "^0.2.1"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"