tango-app-ui-auth 3.3.1-beta.1 → 3.3.1-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-login/tango-auth-login.component.mjs +67 -7
- package/esm2022/lib/components/tango-auth-signup/step/step1/step1.component.mjs +3 -3
- package/esm2022/lib/services/auth.service.mjs +3 -2
- package/fesm2022/tango-app-ui-auth.mjs +71 -11
- package/fesm2022/tango-app-ui-auth.mjs.map +1 -1
- package/lib/components/tango-auth-login/tango-auth-login.component.d.ts +15 -1
- package/package.json +1 -1
@@ -1,10 +1,17 @@
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { FormBuilder } from '@angular/forms';
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
4
|
+
import { Subscription } from 'rxjs';
|
4
5
|
import { AuthService } from '../../services/auth.service';
|
5
6
|
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
6
7
|
import { ToastService } from 'tango-app-ui-shared';
|
8
|
+
import dayjs from "dayjs";
|
7
9
|
import * as i0 from "@angular/core";
|
10
|
+
declare global {
|
11
|
+
interface Window {
|
12
|
+
hj: any;
|
13
|
+
}
|
14
|
+
}
|
8
15
|
export declare class TangoAuthLoginComponent implements OnInit, OnDestroy {
|
9
16
|
private router;
|
10
17
|
private route;
|
@@ -26,13 +33,20 @@ export declare class TangoAuthLoginComponent implements OnInit, OnDestroy {
|
|
26
33
|
passwordInputRef: ElementRef;
|
27
34
|
private authlocalStorageToken;
|
28
35
|
private readonly destroy$;
|
36
|
+
pageSection: 'login' | 'otp';
|
37
|
+
otp: string;
|
38
|
+
otpCounter: number;
|
39
|
+
resendOtp: boolean;
|
40
|
+
countDown: Subscription;
|
41
|
+
dayjs: typeof dayjs;
|
29
42
|
constructor(router: Router, route: ActivatedRoute, fb: FormBuilder, service: AuthService, gs: GlobalStateService, cd: ChangeDetectorRef, toastService: ToastService, pageInfo: PageInfoService);
|
30
43
|
ngOnInit(): void;
|
31
44
|
ngOnDestroy(): void;
|
32
45
|
initForm(): void;
|
33
|
-
onLogin(): void;
|
46
|
+
onLogin(resend?: boolean): void;
|
34
47
|
userProfile(): void;
|
35
48
|
showPassword(): void;
|
49
|
+
onOtpChange(event: any): void;
|
36
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoAuthLoginComponent, never>;
|
37
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<TangoAuthLoginComponent, "lib-tango-auth-login", never, {}, {}, never, never, false, never>;
|
38
52
|
}
|