tango-app-ui-auth 3.5.0-beta.1 → 3.5.0-beta.10
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-forgot-password/tango-auth-forgot-password.component.mjs +39 -5
- package/esm2022/lib/components/tango-auth-login/tango-auth-login.component.mjs +60 -12
- package/esm2022/lib/components/tango-auth-login/termsconditions/termsconditions.component.mjs +50 -0
- package/esm2022/lib/guards/auth.guard.mjs +27 -8
- package/esm2022/lib/services/auth.service.mjs +61 -6
- package/esm2022/lib/tango-auth.module.mjs +5 -2
- package/fesm2022/tango-app-ui-auth.mjs +237 -36
- package/fesm2022/tango-app-ui-auth.mjs.map +1 -1
- package/lib/components/tango-auth-forgot-password/tango-auth-forgot-password.component.d.ts +5 -2
- package/lib/components/tango-auth-login/tango-auth-login.component.d.ts +6 -1
- package/lib/components/tango-auth-login/termsconditions/termsconditions.component.d.ts +16 -0
- package/lib/guards/auth.guard.d.ts +2 -2
- package/lib/services/auth.service.d.ts +6 -1
- package/lib/tango-auth.module.d.ts +6 -5
- package/package.json +1 -1
@@ -2,13 +2,14 @@ import { AbstractControl, FormBuilder, FormControl, FormGroup } from '@angular/f
|
|
2
2
|
import { ToastService } from 'tango-app-ui-shared';
|
3
3
|
import { AuthService } from '../../services/auth.service';
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
5
|
-
import { PageInfoService } from 'tango-app-ui-global';
|
5
|
+
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class TangoAuthForgotPasswordComponent {
|
8
8
|
private toast;
|
9
9
|
private authService;
|
10
10
|
private activatedRoute;
|
11
11
|
private fb;
|
12
|
+
gs: GlobalStateService;
|
12
13
|
private router;
|
13
14
|
private pageInfo;
|
14
15
|
emailEnable: boolean;
|
@@ -19,7 +20,9 @@ export declare class TangoAuthForgotPasswordComponent {
|
|
19
20
|
confirmPasswordShow: boolean;
|
20
21
|
email: FormControl<string | null>;
|
21
22
|
PasswordForm: FormGroup;
|
22
|
-
|
23
|
+
private secretKey;
|
24
|
+
private readonly destroy$;
|
25
|
+
constructor(toast: ToastService, authService: AuthService, activatedRoute: ActivatedRoute, fb: FormBuilder, gs: GlobalStateService, router: Router, pageInfo: PageInfoService);
|
23
26
|
noSpaceValidator(control: AbstractControl): {
|
24
27
|
[key: string]: any;
|
25
28
|
} | null;
|
@@ -6,6 +6,7 @@ import { AuthService } from '../../services/auth.service';
|
|
6
6
|
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
7
7
|
import { ToastService } from 'tango-app-ui-shared';
|
8
8
|
import dayjs from "dayjs";
|
9
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
declare global {
|
11
12
|
interface Window {
|
@@ -21,6 +22,7 @@ export declare class TangoAuthLoginComponent implements OnInit, OnDestroy {
|
|
21
22
|
private cd;
|
22
23
|
private toastService;
|
23
24
|
private pageInfo;
|
25
|
+
modalService: NgbModal;
|
24
26
|
defaultAuth: any;
|
25
27
|
hasError: boolean;
|
26
28
|
returnUrl: string;
|
@@ -32,6 +34,7 @@ export declare class TangoAuthLoginComponent implements OnInit, OnDestroy {
|
|
32
34
|
emailInputRef: ElementRef;
|
33
35
|
passwordInputRef: ElementRef;
|
34
36
|
private authlocalStorageToken;
|
37
|
+
private secretKey;
|
35
38
|
private readonly destroy$;
|
36
39
|
pageSection: 'login' | 'otp';
|
37
40
|
otp: string;
|
@@ -39,7 +42,8 @@ export declare class TangoAuthLoginComponent implements OnInit, OnDestroy {
|
|
39
42
|
resendOtp: boolean;
|
40
43
|
countDown: Subscription;
|
41
44
|
dayjs: typeof dayjs;
|
42
|
-
|
45
|
+
termsAndCondition: any;
|
46
|
+
constructor(router: Router, route: ActivatedRoute, fb: FormBuilder, service: AuthService, gs: GlobalStateService, cd: ChangeDetectorRef, toastService: ToastService, pageInfo: PageInfoService, modalService: NgbModal);
|
43
47
|
ngOnInit(): void;
|
44
48
|
ngOnDestroy(): void;
|
45
49
|
initForm(): void;
|
@@ -49,6 +53,7 @@ export declare class TangoAuthLoginComponent implements OnInit, OnDestroy {
|
|
49
53
|
userProfile(): void;
|
50
54
|
showPassword(): void;
|
51
55
|
onOtpChange(event: any): void;
|
56
|
+
showTermsAndConditions(): void;
|
52
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoAuthLoginComponent, never>;
|
53
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<TangoAuthLoginComponent, "lib-tango-auth-login", never, {}, {}, never, never, false, never>;
|
54
59
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
2
|
+
import { AuthService } from '../../../services/auth.service';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class TermsconditionsComponent {
|
5
|
+
private service;
|
6
|
+
private modalRef;
|
7
|
+
enableAgree: boolean;
|
8
|
+
terms: any;
|
9
|
+
accepted: any;
|
10
|
+
constructor(service: AuthService, modalRef: NgbActiveModal);
|
11
|
+
onScroll(event: any): void;
|
12
|
+
updateterms(evt: any): void;
|
13
|
+
onContinueTerms(): void;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TermsconditionsComponent, never>;
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TermsconditionsComponent, "lib-termsconditions", never, {}, {}, never, never, false, never>;
|
16
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Router } from '@angular/router';
|
2
2
|
import { AuthService } from '../services/auth.service';
|
3
3
|
import { GlobalStateService } from 'tango-app-ui-global';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -8,7 +8,7 @@ export declare class AuthGuard {
|
|
8
8
|
private route;
|
9
9
|
private authlocalStorageToken;
|
10
10
|
constructor(authService: AuthService, gs: GlobalStateService, route: Router);
|
11
|
-
canActivate(
|
11
|
+
canActivate(): boolean;
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
14
14
|
}
|
@@ -17,8 +17,12 @@ export declare class AuthService {
|
|
17
17
|
paymentSubscriptionApiUrl: string;
|
18
18
|
get currentUserValue(): any;
|
19
19
|
constructor(router: Router, http: HttpClient, gs: GlobalStateService);
|
20
|
+
private base64Encode;
|
21
|
+
private base64Decode;
|
22
|
+
setCookie(name: string, value: string, days?: number): void;
|
23
|
+
getCookie(name: string): string | null;
|
20
24
|
getHeaders(): {
|
21
|
-
|
25
|
+
[header: string]: string;
|
22
26
|
};
|
23
27
|
logout(): void;
|
24
28
|
sendSignupOtp(data: any): Observable<any>;
|
@@ -35,6 +39,7 @@ export declare class AuthService {
|
|
35
39
|
getPricing(data: any): Observable<any>;
|
36
40
|
forgotPasswordTrigger(params: any): Observable<any>;
|
37
41
|
forgotPassword(data: any): Observable<any>;
|
42
|
+
termsAndConditionUpdate(data: any): Observable<any>;
|
38
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
39
44
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
40
45
|
}
|
@@ -9,12 +9,13 @@ import * as i7 from "./components/tango-auth-signup/step/step3/step3.component";
|
|
9
9
|
import * as i8 from "./components/tango-auth-signup/vertical/vertical.component";
|
10
10
|
import * as i9 from "./components/tango-auth-signup/step/modal-content/modal-content.component";
|
11
11
|
import * as i10 from "./components/tango-auth-signup/step/calendly-modal/calendly-modal.component";
|
12
|
-
import * as i11 from "
|
13
|
-
import * as i12 from "
|
14
|
-
import * as i13 from "
|
15
|
-
import * as i14 from "
|
12
|
+
import * as i11 from "./components/tango-auth-login/termsconditions/termsconditions.component";
|
13
|
+
import * as i12 from "@angular/common";
|
14
|
+
import * as i13 from "./tango-auth-routing.module";
|
15
|
+
import * as i14 from "ng-otp-input";
|
16
|
+
import * as i15 from "@angular/forms";
|
16
17
|
export declare class TangoAuthModule {
|
17
18
|
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.ModalContentComponent, typeof i10.CalendlyModalComponent], [typeof
|
19
|
+
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.ModalContentComponent, typeof i10.CalendlyModalComponent, typeof i11.TermsconditionsComponent], [typeof i12.CommonModule, typeof i13.TangoAuthRoutingModule, typeof i14.NgOtpInputModule, typeof i15.ReactiveFormsModule, typeof i15.FormsModule], never>;
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<TangoAuthModule>;
|
20
21
|
}
|