simpo-component-library 3.6.801 → 3.6.803
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/ecommerce/sections/authentication-required/authentication-required.component.mjs +238 -45
- package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +5 -5
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
- package/esm2022/lib/services/rest.service.mjs +17 -1
- package/fesm2022/simpo-component-library.mjs +258 -50
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/input-fields/input-fields.component.d.ts +1 -1
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +19 -7
- package/lib/services/rest.service.d.ts +8 -0
- package/package.json +1 -1
- package/simpo-component-library-3.6.803.tgz +0 -0
- package/simpo-component-library-3.6.801.tgz +0 -0
|
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
|
|
|
13
13
|
constructor(elementRef: ElementRef);
|
|
14
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
15
|
handleMoneyInput(event: any): void;
|
|
16
|
-
get getTextColor(): "#
|
|
16
|
+
get getTextColor(): "#FFF" | "#000";
|
|
17
17
|
interpolateColor(color1: string, color2: string, factor: number): string;
|
|
18
18
|
padZero(str: string, length: number): string;
|
|
19
19
|
generateColorBasedOnNumber(number: number): string;
|
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
|
@@ -27,12 +27,16 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
27
27
|
styles?: AuthenticationStylesModel;
|
|
28
28
|
button?: ButtonModel;
|
|
29
29
|
buttonId: string;
|
|
30
|
-
|
|
30
|
+
authScreen: 'PHONE' | 'OTP' | 'REGISTER' | 'PASSWORD';
|
|
31
31
|
private mobileTimer;
|
|
32
32
|
email: string;
|
|
33
33
|
mobile: string;
|
|
34
|
+
phoneNumber: string;
|
|
34
35
|
otp: string;
|
|
35
36
|
otpControls: FormArray<FormControl<string | null>>;
|
|
37
|
+
resendCountdown: number;
|
|
38
|
+
private resendInterval;
|
|
39
|
+
isExistingUser: boolean;
|
|
36
40
|
password: string;
|
|
37
41
|
confPassword: string;
|
|
38
42
|
userName: string;
|
|
@@ -51,9 +55,22 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
51
55
|
proceedToEnrollment: boolean;
|
|
52
56
|
tryAtHome: boolean;
|
|
53
57
|
navigateToSchemeDetails: boolean;
|
|
58
|
+
currentPage: string;
|
|
54
59
|
inputs: QueryList<ElementRef>;
|
|
55
60
|
ngOnInit(): void;
|
|
56
61
|
ngAfterViewInit(): void;
|
|
62
|
+
/** Sets --accent-rgb CSS variable so animated circles match the user's brand color */
|
|
63
|
+
private setAccentRgbVar;
|
|
64
|
+
get canGoBack(): boolean;
|
|
65
|
+
goBack(): void;
|
|
66
|
+
closeAuth(): void;
|
|
67
|
+
formatCountdown(secs: number): string;
|
|
68
|
+
startResendTimer(seconds?: number): void;
|
|
69
|
+
sendOTP(): void;
|
|
70
|
+
resendOTPNew(): void;
|
|
71
|
+
verifyOTPNew(): void;
|
|
72
|
+
registerUser(): void;
|
|
73
|
+
loginWithPassword(): void;
|
|
57
74
|
onInput(index: number): void;
|
|
58
75
|
onKeyDown(event: KeyboardEvent, index: number): void;
|
|
59
76
|
getGradientDirection(direction: string | undefined): string;
|
|
@@ -62,13 +79,8 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
62
79
|
getFormOtp(): string;
|
|
63
80
|
loginType: "PASSWORD" | "OTP";
|
|
64
81
|
generateOtp: boolean;
|
|
65
|
-
loginAuthentication(loginType: "PASSWORD" | "OTP"): void;
|
|
66
82
|
generatedOtp: any;
|
|
67
83
|
oneTimePassword: string;
|
|
68
|
-
otpPayload: any;
|
|
69
|
-
getOTP(): void;
|
|
70
|
-
regenerateOtp(payload: any): void;
|
|
71
|
-
resendOtp(): void;
|
|
72
84
|
close(): void;
|
|
73
85
|
login(): void;
|
|
74
86
|
endUserRefferalDetails(userId: any, referralUniqueId: any): void;
|
|
@@ -82,7 +94,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
82
94
|
validateNumber(event: KeyboardEvent): void;
|
|
83
95
|
validateOTP(event: KeyboardEvent): void;
|
|
84
96
|
checkStrength(): void;
|
|
85
|
-
getStrengthColor(index: number): "
|
|
97
|
+
getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
|
|
86
98
|
emailDebounceTimer: any;
|
|
87
99
|
onEmailChange(): void;
|
|
88
100
|
emailCheck: boolean;
|
|
@@ -141,6 +141,14 @@ export declare class RestService implements OnDestroy {
|
|
|
141
141
|
createLead(payload: any): Observable<Object>;
|
|
142
142
|
getAppointmentPaymentStatus(orderId: any): Observable<Object>;
|
|
143
143
|
getOtpForLogin(payload: any): Observable<Object>;
|
|
144
|
+
/** New OTP API: PUT /ecommerce/user/auth/send-otp
|
|
145
|
+
* Body: { identifier, businessId }
|
|
146
|
+
* Response: { data: { isExistingUser: boolean, message: string } }
|
|
147
|
+
*/
|
|
148
|
+
sendOtpV2(identifier: string, businessId: string): Observable<Object>;
|
|
149
|
+
verifyOtpV2(payload: any): Observable<Object>;
|
|
150
|
+
completeSignupV2(payload: any): Observable<Object>;
|
|
151
|
+
loginWithPasswordNew(payload: any): Observable<Object>;
|
|
144
152
|
flush(eventsToSend: any): void;
|
|
145
153
|
getPopularSearches(): Observable<Object>;
|
|
146
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|