verben-authentication-ui 0.1.9 → 0.2.1
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/button/button.component.mjs +1 -1
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +1 -1
- package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +1 -1
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +1 -1
- package/esm2022/lib/components/reset-password/reset-password.component.mjs +3 -8
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +8 -10
- package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +1 -1
- package/esm2022/lib/components/sso/sso.component.mjs +1 -1
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +78 -9
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +1 -1
- package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +1 -1
- package/esm2022/lib/components/user-management/user-management.component.mjs +1 -1
- package/esm2022/lib/components/user-request/user-request.component.mjs +1 -1
- package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +1 -1
- package/esm2022/lib/components/user-request-approval/user-request-approval.service.mjs +1 -1
- package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +1 -1
- package/esm2022/lib/models/log-in.mjs +1 -1
- package/esm2022/lib/models/mainUser.mjs +2 -0
- package/esm2022/lib/models/otpValue.mjs +2 -0
- package/esm2022/lib/services/environment.service.mjs +1 -1
- package/esm2022/lib/services/http-web-request.service.mjs +49 -53
- package/fesm2022/verben-authentication-ui.mjs +141 -87
- package/fesm2022/verben-authentication-ui.mjs.map +1 -1
- package/lib/components/reset-password/reset-password.component.d.ts +1 -2
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +14 -3
- package/lib/models/log-in.d.ts +4 -1
- package/lib/models/mainUser.d.ts +19 -0
- package/lib/models/otpValue.d.ts +9 -0
- package/lib/services/environment.service.d.ts +1 -0
- package/lib/services/http-web-request.service.d.ts +8 -5
- 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; }; "
|
|
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
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
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';
|
|
7
|
+
import { OtpData } from '../../models/otpValue';
|
|
8
|
+
import { MainUser } from '../../models/mainUser';
|
|
3
9
|
import * as i0 from "@angular/core";
|
|
4
10
|
export declare class TwoFactorAuthOtpComponent {
|
|
5
11
|
private fb;
|
|
12
|
+
private server;
|
|
13
|
+
private utilService;
|
|
6
14
|
customClass: string;
|
|
7
15
|
headlingClass: string;
|
|
8
16
|
headlingText: string;
|
|
@@ -20,6 +28,8 @@ export declare class TwoFactorAuthOtpComponent {
|
|
|
20
28
|
height: string;
|
|
21
29
|
length: number;
|
|
22
30
|
otpClass: string;
|
|
31
|
+
User: MainUser;
|
|
32
|
+
OtpData: OtpData;
|
|
23
33
|
btnClass: string;
|
|
24
34
|
btnBgColor: string;
|
|
25
35
|
btnColor: string;
|
|
@@ -30,11 +40,12 @@ export declare class TwoFactorAuthOtpComponent {
|
|
|
30
40
|
otpValue: string;
|
|
31
41
|
otpForm: FormGroup;
|
|
32
42
|
buttonClick: EventEmitter<string>;
|
|
43
|
+
onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse>;
|
|
33
44
|
resend: EventEmitter<any>;
|
|
34
|
-
constructor(fb: FormBuilder);
|
|
45
|
+
constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService);
|
|
35
46
|
ngOnInit(): void;
|
|
36
47
|
onOtpChange(value: string): void;
|
|
37
|
-
submitData(): void
|
|
48
|
+
submitData(): Promise<void>;
|
|
38
49
|
resendOtp(): void;
|
|
39
50
|
get styles(): {
|
|
40
51
|
'background-color': string;
|
|
@@ -49,5 +60,5 @@ export declare class TwoFactorAuthOtpComponent {
|
|
|
49
60
|
padding: string;
|
|
50
61
|
};
|
|
51
62
|
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>;
|
|
63
|
+
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; }; "User": { "alias": "User"; "required": false; }; "OtpData": { "alias": "OtpData"; "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
64
|
}
|
package/lib/models/log-in.d.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ObjectState } from "./object-state";
|
|
2
|
+
export interface MainUser {
|
|
3
|
+
Code: string;
|
|
4
|
+
TenantId: string;
|
|
5
|
+
Id: string;
|
|
6
|
+
ServiceName: string;
|
|
7
|
+
MailAddress: string;
|
|
8
|
+
PhoneNumber: string;
|
|
9
|
+
FirstName: string;
|
|
10
|
+
LastName: string;
|
|
11
|
+
OtherName: string;
|
|
12
|
+
Role: [];
|
|
13
|
+
Tags: {}[];
|
|
14
|
+
Password: string;
|
|
15
|
+
Status: string;
|
|
16
|
+
CreatedAt: Date;
|
|
17
|
+
UpdatedAt: Date;
|
|
18
|
+
DataState: ObjectState;
|
|
19
|
+
}
|
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
3
|
+
"version": "0.2.1",
|
|
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
|
|
7
|
+
"verben-ng-ui": "^0.2.1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|