verben-authentication-ui 0.1.9 → 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.
- 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 +61 -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-form/use-request-form.component.mjs +1 -1
- package/esm2022/lib/models/log-in.mjs +1 -1
- 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 +125 -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 +10 -3
- package/lib/models/log-in.d.ts +4 -1
- 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,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
|
}
|
package/lib/models/log-in.d.ts
CHANGED
|
@@ -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.
|
|
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
|
|
7
|
+
"verben-ng-ui": "^0.2.1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|