tango-app-ui-auth 3.0.5 → 3.0.6
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/tango-auth-login/tango-auth-login.component.mjs +103 -10
- package/esm2022/lib/components/tango-auth-signup/step/modal-content/modal-content.component.mjs +3 -3
- package/esm2022/lib/components/tango-auth-signup/step/step1/step1.component.mjs +11 -3
- package/esm2022/lib/components/tango-auth-signup/step/step2/step2.component.mjs +3 -3
- package/esm2022/lib/components/tango-auth-signup/step/step3/step3.component.mjs +37 -3
- package/esm2022/lib/components/tango-auth-signup/vertical/vertical.component.mjs +3 -3
- package/esm2022/lib/services/auth.service.mjs +41 -7
- package/esm2022/lib/tango-auth.module.mjs +8 -5
- package/fesm2022/tango-app-ui-auth.mjs +240 -73
- package/fesm2022/tango-app-ui-auth.mjs.map +1 -1
- package/lib/components/tango-auth-login/tango-auth-login.component.d.ts +19 -2
- package/lib/components/tango-auth-signup/step/modal-content/modal-content.component.d.ts +2 -1
- package/lib/components/tango-auth-signup/step/step1/step1.component.d.ts +4 -0
- package/lib/components/tango-auth-signup/step/step3/step3.component.d.ts +12 -0
- package/lib/services/auth.service.d.ts +10 -0
- package/lib/tango-auth.module.d.ts +1 -1
- package/package.json +1 -1
@@ -1,13 +1,30 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
2
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
4
|
+
import { AuthService } from '../../services/auth.service';
|
5
|
+
import { GlobalStateService, ToastService } from 'tango-app-ui-shared';
|
3
6
|
import * as i0 from "@angular/core";
|
4
7
|
export declare class TangoAuthLoginComponent implements OnInit {
|
5
8
|
private router;
|
6
9
|
private route;
|
10
|
+
private fb;
|
11
|
+
private service;
|
12
|
+
private gs;
|
13
|
+
private toastService;
|
14
|
+
defaultAuth: any;
|
15
|
+
hasError: boolean;
|
7
16
|
returnUrl: string;
|
8
|
-
|
17
|
+
show: boolean;
|
18
|
+
loginForm: any;
|
19
|
+
credentials: any;
|
20
|
+
isLoading: boolean;
|
21
|
+
private authlocalStorageToken;
|
22
|
+
constructor(router: Router, route: ActivatedRoute, fb: FormBuilder, service: AuthService, gs: GlobalStateService, toastService: ToastService);
|
9
23
|
ngOnInit(): void;
|
10
|
-
|
24
|
+
initForm(): void;
|
25
|
+
onLogin(): void;
|
26
|
+
userProfile(): void;
|
27
|
+
showPassword(): void;
|
11
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoAuthLoginComponent, never>;
|
12
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<TangoAuthLoginComponent, "lib-tango-auth-login", never, {}, {}, never, never, false, never>;
|
13
30
|
}
|
@@ -1,6 +1,7 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
1
2
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
2
3
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class ModalContentComponent {
|
4
|
+
export declare class ModalContentComponent implements OnInit {
|
4
5
|
activeModal: NgbActiveModal;
|
5
6
|
user: string;
|
6
7
|
width: string;
|
@@ -17,6 +17,8 @@ export declare class Step1Component implements OnDestroy {
|
|
17
17
|
isMobileTaken: any;
|
18
18
|
subscriptions: Subscription[];
|
19
19
|
countryList: any;
|
20
|
+
passwordShow: boolean;
|
21
|
+
confirmPasswordShow: boolean;
|
20
22
|
constructor(setterservice: ConversionService, fb: FormBuilder, authService: AuthService, cd: ChangeDetectorRef);
|
21
23
|
ngOnDestroy(): void;
|
22
24
|
initForm(): void;
|
@@ -32,6 +34,8 @@ export declare class Step1Component implements OnDestroy {
|
|
32
34
|
onEmailBlur(): void;
|
33
35
|
onMobileNumberBlur(): void;
|
34
36
|
nextStep(): void;
|
37
|
+
showPassword(): void;
|
38
|
+
showConfirmPassword(): void;
|
35
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<Step1Component, never>;
|
36
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<Step1Component, "lib-step1", never, {}, {}, never, never, false, never>;
|
37
41
|
}
|
@@ -4,12 +4,23 @@ import { Subscription } from 'rxjs';
|
|
4
4
|
import { AuthService } from '../../../../services/auth.service';
|
5
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
+
interface InputStyles {
|
8
|
+
[key: string]: string;
|
9
|
+
}
|
7
10
|
export declare class Step3Component implements OnInit, OnDestroy {
|
8
11
|
modalService: NgbModal;
|
9
12
|
private authService;
|
10
13
|
private router;
|
11
14
|
private route;
|
12
15
|
private cd;
|
16
|
+
inputValue: string;
|
17
|
+
isActive: boolean;
|
18
|
+
isHovered: boolean;
|
19
|
+
isDisabled: boolean;
|
20
|
+
onMouseEnter(): void;
|
21
|
+
onMouseLeave(): void;
|
22
|
+
onInputChange(value: string): void;
|
23
|
+
getInputStyles(): InputStyles;
|
13
24
|
panelOpenState: boolean;
|
14
25
|
termsandcondition: any;
|
15
26
|
type: any;
|
@@ -41,3 +52,4 @@ export declare class Step3Component implements OnInit, OnDestroy {
|
|
41
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<Step3Component, never>;
|
42
53
|
static ɵcmp: i0.ɵɵComponentDeclaration<Step3Component, "lib-step3", never, {}, {}, never, never, false, never>;
|
43
54
|
}
|
55
|
+
export {};
|
@@ -9,9 +9,16 @@ export declare class AuthService {
|
|
9
9
|
private gs;
|
10
10
|
aboutFormData: BehaviorSubject<any>;
|
11
11
|
pricingFormData: BehaviorSubject<any>;
|
12
|
+
currentUserSubject: BehaviorSubject<any>;
|
12
13
|
leadApiUrl: string;
|
13
14
|
middlewareApiUrl: string;
|
15
|
+
userApiUrl: string;
|
16
|
+
authlocalStorageToken: string;
|
17
|
+
get currentUserValue(): any;
|
14
18
|
constructor(router: Router, http: HttpClient, gs: GlobalStateService);
|
19
|
+
getHeaders(): {
|
20
|
+
Authorization: string;
|
21
|
+
};
|
15
22
|
logout(): void;
|
16
23
|
sendSignupOtp(data: any): Observable<any>;
|
17
24
|
signup(data: any): Observable<any>;
|
@@ -20,6 +27,9 @@ export declare class AuthService {
|
|
20
27
|
isEmailTaken(data: string): Observable<any>;
|
21
28
|
isMobileTaken(data: string): Observable<any>;
|
22
29
|
getCountryCodes(): Observable<any>;
|
30
|
+
login(data: any): Observable<any>;
|
31
|
+
userProfileDet(): Observable<any>;
|
32
|
+
handleError(res: any): Observable<never>;
|
23
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
24
34
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
25
35
|
}
|
@@ -15,6 +15,6 @@ import * as i13 from "ng-otp-input";
|
|
15
15
|
import * as i14 from "@angular/forms";
|
16
16
|
export declare class TangoAuthModule {
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoAuthModule, never>;
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoAuthModule, [typeof i1.TangoAuthComponent, typeof i2.TangoAuthLoginComponent, typeof i3.TangoAuthSignupComponent, typeof i4.TangoAuthForgotPasswordComponent, typeof i5.Step1Component, typeof i6.Step2Component, typeof i7.Step3Component, typeof i8.VerticalComponent, typeof i9.WizardsComponent, typeof i10.ModalContentComponent], [typeof i11.CommonModule, typeof i12.TangoAuthRoutingModule, typeof i13.NgOtpInputModule, typeof i14.ReactiveFormsModule], never>;
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoAuthModule, [typeof i1.TangoAuthComponent, typeof i2.TangoAuthLoginComponent, typeof i3.TangoAuthSignupComponent, typeof i4.TangoAuthForgotPasswordComponent, typeof i5.Step1Component, typeof i6.Step2Component, typeof i7.Step3Component, typeof i8.VerticalComponent, typeof i9.WizardsComponent, typeof i10.ModalContentComponent], [typeof i11.CommonModule, typeof i12.TangoAuthRoutingModule, typeof i13.NgOtpInputModule, typeof i14.ReactiveFormsModule, typeof i14.FormsModule], never>;
|
19
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<TangoAuthModule>;
|
20
20
|
}
|