verben-authentication-ui 0.3.9 → 0.4.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.
- package/esm2022/lib/components/auth-callback/auth-callback.component.mjs +22 -15
- package/esm2022/lib/components/button/button.component.mjs +3 -6
- package/esm2022/lib/components/mail/mail.component.mjs +1 -1
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +28 -30
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +15 -4
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +27 -30
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +1 -1
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +1 -1
- package/esm2022/lib/components/user-request/user-request.component.mjs +11 -4
- package/esm2022/lib/models/UserRequest.mjs +1 -1
- package/esm2022/lib/models/auth-mechanism.mjs +1 -1
- package/esm2022/lib/models/oauth-resp.mjs +2 -0
- package/fesm2022/verben-authentication-ui.mjs +101 -82
- package/fesm2022/verben-authentication-ui.mjs.map +1 -1
- package/lib/components/auth-callback/auth-callback.component.d.ts +6 -6
- package/lib/components/button/button.component.d.ts +1 -2
- package/lib/components/o-auth/o-auth.component.d.ts +6 -12
- package/lib/components/otp-input/otp-input.component.d.ts +1 -0
- package/lib/components/sign-in/sign-in.component.d.ts +3 -10
- package/lib/components/user-request/user-request.component.d.ts +1 -0
- package/lib/models/UserRequest.d.ts +1 -0
- package/lib/models/auth-mechanism.d.ts +1 -0
- package/lib/models/oauth-resp.d.ts +6 -0
- package/package.json +2 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AuthCallbackComponent implements OnInit {
|
|
5
5
|
private router;
|
|
6
|
+
private route;
|
|
6
7
|
code: string;
|
|
7
8
|
previousUrl: string;
|
|
9
|
+
type: string;
|
|
8
10
|
redirectText?: string;
|
|
9
|
-
|
|
10
|
-
height: number;
|
|
11
|
-
color: string;
|
|
12
|
-
constructor(router: Router);
|
|
11
|
+
constructor(router: Router, route: ActivatedRoute);
|
|
13
12
|
ngOnInit(): void;
|
|
13
|
+
getType(): void;
|
|
14
14
|
handleRedirect(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthCallbackComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthCallbackComponent, "verben-auth-callback", never, { "redirectText": { "alias": "redirectText"; "required": false; };
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthCallbackComponent, "verben-auth-callback", never, { "redirectText": { "alias": "redirectText"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -10,9 +10,8 @@ export declare class ButtonComponent {
|
|
|
10
10
|
pd: string;
|
|
11
11
|
buttonClass: string;
|
|
12
12
|
disabled: boolean;
|
|
13
|
-
isLoading?: boolean;
|
|
14
13
|
buttonClick: EventEmitter<void>;
|
|
15
14
|
handleClick(): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "width": { "alias": "width"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; };
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "width": { "alias": "width"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
|
|
18
17
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AuthMechanism } from '../../models/auth-mechanism';
|
|
3
|
-
import {
|
|
4
|
-
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
5
|
-
import { UtilService } from '../../services/util.service';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
declare global {
|
|
8
6
|
interface Window {
|
|
@@ -10,27 +8,23 @@ declare global {
|
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
10
|
export declare class OAuthComponent implements OnInit {
|
|
13
|
-
private route;
|
|
14
|
-
private server;
|
|
15
|
-
private utilService;
|
|
16
11
|
private router;
|
|
17
12
|
showGoogle: boolean;
|
|
18
13
|
showMicrosoft: boolean;
|
|
19
14
|
showApple: boolean;
|
|
20
15
|
authMechanisms: AuthMechanism[] | null;
|
|
21
|
-
|
|
22
|
-
googleClick: EventEmitter<void>;
|
|
23
|
-
appleClick: EventEmitter<void>;
|
|
16
|
+
emitMechanismFn: EventEmitter<string>;
|
|
24
17
|
page: string;
|
|
25
|
-
|
|
18
|
+
type: string;
|
|
19
|
+
constructor(router: Router);
|
|
26
20
|
ngOnInit(): void;
|
|
27
21
|
loadPage(): void;
|
|
28
22
|
loadGoogleScript(): void;
|
|
29
23
|
oAuthWithGoogle(data: AuthMechanism): void;
|
|
30
24
|
oAuthWithApple(): void;
|
|
31
|
-
oAuthWithMicrosoft(): void;
|
|
25
|
+
oAuthWithMicrosoft(data: AuthMechanism): void;
|
|
32
26
|
checkForValue(value: string): "" | "google-logo" | "apple-logo" | "microsoft-logo";
|
|
33
27
|
handleOauthClick(value: AuthMechanism): void | "";
|
|
34
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<OAuthComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OAuthComponent, "verben-o-auth", never, { "authMechanisms": { "alias": "authMechanisms"; "required": false; }; }, { "
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OAuthComponent, "verben-o-auth", never, { "authMechanisms": { "alias": "authMechanisms"; "required": false; }; }, { "emitMechanismFn": "emitMechanismFn"; }, never, never, false, never>;
|
|
36
30
|
}
|
|
@@ -12,6 +12,7 @@ export declare class OtpInputComponent implements OnInit {
|
|
|
12
12
|
get otpArray(): FormArray;
|
|
13
13
|
handleInput(event: any, index: number): void;
|
|
14
14
|
handleKeydown(event: KeyboardEvent, index: number): void;
|
|
15
|
+
handlePaste(event: ClipboardEvent): void;
|
|
15
16
|
private focusNextInput;
|
|
16
17
|
private focusPreviousInput;
|
|
17
18
|
private emitOtp;
|
|
@@ -8,13 +8,8 @@ import { ResponseKeyValue } from '../../models/ResponseKeyValue';
|
|
|
8
8
|
import { EnvironmentService } from '../../services/environment.service';
|
|
9
9
|
import { AuthMechanism } from '../../models/auth-mechanism';
|
|
10
10
|
import { ActivatedRoute } from '@angular/router';
|
|
11
|
+
import { IOauthResp } from '../../models/oauth-resp';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
|
-
interface IOauthResp {
|
|
13
|
-
AccessToken: string;
|
|
14
|
-
Email: string;
|
|
15
|
-
FirstName: string;
|
|
16
|
-
LastName: string;
|
|
17
|
-
}
|
|
18
13
|
export declare class SignInComponent implements OnInit {
|
|
19
14
|
private fb;
|
|
20
15
|
private server;
|
|
@@ -68,6 +63,8 @@ export declare class SignInComponent implements OnInit {
|
|
|
68
63
|
secret: string;
|
|
69
64
|
isLoading: boolean;
|
|
70
65
|
code: string;
|
|
66
|
+
type: string;
|
|
67
|
+
mechanismType: string;
|
|
71
68
|
OauthData: IOauthResp;
|
|
72
69
|
constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService, envSvc: EnvironmentService, route: ActivatedRoute);
|
|
73
70
|
ngOnInit(): Promise<void>;
|
|
@@ -75,9 +72,6 @@ export declare class SignInComponent implements OnInit {
|
|
|
75
72
|
checkForm(): boolean;
|
|
76
73
|
verifyUserDetails(): Promise<void>;
|
|
77
74
|
submit(type: string): Promise<void>;
|
|
78
|
-
handleGoogleAuth(): void;
|
|
79
|
-
handleMicrosoft(): void;
|
|
80
|
-
handleAppleAuth(): void;
|
|
81
75
|
get styles(): {
|
|
82
76
|
'background-color': string;
|
|
83
77
|
'box-shadow': string;
|
|
@@ -93,4 +87,3 @@ export declare class SignInComponent implements OnInit {
|
|
|
93
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignInComponent, never>;
|
|
94
88
|
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"; "onGoogleAuthResponse": "onGoogleAuthResponse"; "onSubmitGoogleAuth": "onSubmitGoogleAuth"; "googleClick": "googleClick"; "microsoftClick": "microsoftClick"; "appleClick": "appleClick"; }, never, never, false, never>;
|
|
95
89
|
}
|
|
96
|
-
export {};
|
package/package.json
CHANGED