simpo-component-library 3.6.644 → 3.6.646
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 +170 -89
- package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.component.mjs +171 -63
- package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +494 -157
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +108 -17
- package/esm2022/lib/ecommerce/sections/refer-earn/refer-earn.component.mjs +2 -2
- package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
- package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +2 -2
- package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +12 -3
- package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
- package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +2 -2
- package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +2 -2
- package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +2 -2
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -2
- package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +2 -2
- package/esm2022/lib/sections/condensed-and-gradient/condensed-and-gradient.component.mjs +2 -2
- package/esm2022/lib/sections/countdown-banner/countdown-banner.component.mjs +2 -2
- package/esm2022/lib/sections/footer-section/footer-section.component.mjs +2 -2
- package/esm2022/lib/sections/header-section/header-section.component.mjs +2 -2
- package/esm2022/lib/sections/header-text/header-text.component.mjs +2 -2
- package/esm2022/lib/sections/image-background/image-background/image-background.component.mjs +2 -2
- package/esm2022/lib/sections/image-section/image-section.component.mjs +2 -2
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +2 -2
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
- package/esm2022/lib/sections/new-services/new-services.component.mjs +2 -2
- package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +2 -2
- package/esm2022/lib/sections/overlapping-image/overlapping-image.component.mjs +2 -2
- package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +2 -2
- package/esm2022/lib/sections/service-section/service-section.component.mjs +2 -2
- package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +2 -2
- package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +2 -2
- package/esm2022/lib/sections/text-section/text-section.component.mjs +2 -2
- package/esm2022/lib/services/analytics.service.mjs +160 -0
- package/esm2022/lib/services/cart.service.mjs +44 -5
- package/esm2022/lib/services/rest.service.mjs +5 -1
- package/esm2022/lib/styles/index.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +1137 -337
- 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 +12 -3
- package/lib/ecommerce/sections/book-appointment/book-appointment.component.d.ts +29 -21
- package/lib/ecommerce/sections/book-appointment/book-appointment.model.d.ts +38 -3
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +108 -27
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +27 -18
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +10 -2
- package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/elements/simpo-button/simpo-button.component.d.ts +4 -1
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
- package/lib/sections/image-section/image-section.component.d.ts +2 -2
- package/lib/sections/logo-showcase/logo-showcase.component.d.ts +2 -2
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/analytics.service.d.ts +33 -0
- package/lib/services/cart.service.d.ts +7 -1
- package/lib/services/rest.service.d.ts +1 -0
- package/lib/styles/index.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.6.646.tgz +0 -0
- package/simpo-component-library-3.6.644.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(): "#000" | "#FFF";
|
|
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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, QueryList } from '@angular/core';
|
|
2
|
+
import { FormArray, FormControl } from '@angular/forms';
|
|
2
3
|
import { RestService } from '../../../services/rest.service';
|
|
3
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
5
|
import { MessageService } from 'primeng/api';
|
|
@@ -19,7 +20,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
19
20
|
private elementRef;
|
|
20
21
|
private readonly dialogRef;
|
|
21
22
|
private readonly bottomsheetRef;
|
|
22
|
-
data?: AuthenticationModel;
|
|
23
|
+
data?: AuthenticationModel | any;
|
|
23
24
|
index?: number;
|
|
24
25
|
edit?: boolean;
|
|
25
26
|
delete?: boolean;
|
|
@@ -31,6 +32,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
31
32
|
email: string;
|
|
32
33
|
mobile: string;
|
|
33
34
|
otp: string;
|
|
35
|
+
otpControls: FormArray<FormControl<string | null>>;
|
|
34
36
|
password: string;
|
|
35
37
|
confPassword: string;
|
|
36
38
|
userName: string;
|
|
@@ -49,8 +51,15 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
49
51
|
proceedToEnrollment: boolean;
|
|
50
52
|
tryAtHome: boolean;
|
|
51
53
|
navigateToSchemeDetails: boolean;
|
|
54
|
+
inputs: QueryList<ElementRef>;
|
|
52
55
|
ngOnInit(): void;
|
|
53
56
|
ngAfterViewInit(): void;
|
|
57
|
+
onInput(index: number): void;
|
|
58
|
+
onKeyDown(event: KeyboardEvent, index: number): void;
|
|
59
|
+
getGradientDirection(direction: string | undefined): string;
|
|
60
|
+
get fontColor(): string;
|
|
61
|
+
get accentBackground(): string;
|
|
62
|
+
getFormOtp(): string;
|
|
54
63
|
loginType: "PASSWORD" | "OTP";
|
|
55
64
|
generateOtp: boolean;
|
|
56
65
|
loginAuthentication(loginType: "PASSWORD" | "OTP"): void;
|
|
@@ -72,7 +81,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
72
81
|
validateNumber(event: KeyboardEvent): void;
|
|
73
82
|
validateOTP(event: KeyboardEvent): void;
|
|
74
83
|
checkStrength(): void;
|
|
75
|
-
getStrengthColor(index: number): "
|
|
84
|
+
getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
|
76
85
|
emailDebounceTimer: any;
|
|
77
86
|
onEmailChange(): void;
|
|
78
87
|
emailCheck: boolean;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { MessageService } from 'primeng/api';
|
|
2
4
|
import { StorageServiceService } from '../../../services/storage.service';
|
|
3
5
|
import { RestService } from '../../../services/rest.service';
|
|
4
|
-
import {
|
|
5
|
-
import { BookAppointmentSectionModal, BookAppointmentStylesModel } from './book-appointment.model';
|
|
6
|
+
import { AppointmentFieldModel, BookAppointmentContentModel, BookAppointmentSectionModal, BookAppointmentStylesModel } from './book-appointment.model';
|
|
6
7
|
import BaseSection from '../../../sections/BaseSection';
|
|
7
|
-
import {
|
|
8
|
+
import { LayOutModel } from '../../../styles/style.model';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class BookAppointmentComponent extends BaseSection implements OnInit {
|
|
10
11
|
private readonly storageService;
|
|
11
12
|
private readonly restService;
|
|
12
|
-
private router;
|
|
13
|
+
private readonly router;
|
|
13
14
|
private readonly messageService;
|
|
14
15
|
data?: BookAppointmentSectionModal;
|
|
15
16
|
index?: number;
|
|
16
17
|
edit?: boolean;
|
|
17
18
|
delete?: boolean;
|
|
18
19
|
customClass?: string;
|
|
20
|
+
content?: BookAppointmentContentModel;
|
|
21
|
+
styles?: BookAppointmentStylesModel;
|
|
22
|
+
defaultTimeSlots: string[];
|
|
19
23
|
timeSlots: string[];
|
|
20
24
|
customerDetails: {
|
|
21
25
|
date: string;
|
|
@@ -30,39 +34,43 @@ export declare class BookAppointmentComponent extends BaseSection implements OnI
|
|
|
30
34
|
zipCode: string;
|
|
31
35
|
};
|
|
32
36
|
userId: string;
|
|
33
|
-
businessId: string
|
|
37
|
+
businessId: string;
|
|
34
38
|
};
|
|
35
|
-
designs: {
|
|
36
|
-
id: number;
|
|
37
|
-
name: string;
|
|
38
|
-
price: string;
|
|
39
|
-
selected: boolean;
|
|
40
|
-
}[];
|
|
41
39
|
weekDays: {
|
|
42
40
|
dateWithMonth: string;
|
|
43
41
|
day: string;
|
|
44
42
|
date: number;
|
|
45
43
|
}[];
|
|
46
44
|
trialCartItem: any[];
|
|
47
|
-
styles?: BookAppointmentStylesModel;
|
|
48
45
|
loader: boolean;
|
|
46
|
+
screenWidth: number;
|
|
49
47
|
constructor(storageService: StorageServiceService, restService: RestService, router: Router, messageService: MessageService);
|
|
50
48
|
ngOnInit(): void;
|
|
49
|
+
ensureDefaultContent(): void;
|
|
50
|
+
syncFieldInputValuesFromCustomerDetails(): void;
|
|
51
|
+
get stylesLayout(): LayOutModel;
|
|
52
|
+
getScreenSize(): void;
|
|
53
|
+
get appointmentFields(): AppointmentFieldModel[];
|
|
54
|
+
getTextByLabel(label: string, fallback?: string): string;
|
|
55
|
+
setTextByLabel(label: string, value: string): void;
|
|
56
|
+
getFieldWidth(field: AppointmentFieldModel): string;
|
|
57
|
+
getFieldValue(key: string): string;
|
|
58
|
+
updateFieldValue(field: AppointmentFieldModel, value: string): void;
|
|
59
|
+
isTextarea(field: AppointmentFieldModel): boolean;
|
|
60
|
+
isDropdown(field: AppointmentFieldModel): boolean;
|
|
61
|
+
getVisibleOptions(field: AppointmentFieldModel): {
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
status?: boolean;
|
|
65
|
+
}[];
|
|
51
66
|
checkAvailability(day: any): void;
|
|
52
67
|
getTrialCart(): void;
|
|
53
68
|
getTrialCartIndexDBData(): void;
|
|
54
69
|
getNextSevenDays(): void;
|
|
55
|
-
toggleDesign(id: number): void;
|
|
56
|
-
getSelectedDesigns(): {
|
|
57
|
-
id: number;
|
|
58
|
-
name: string;
|
|
59
|
-
price: string;
|
|
60
|
-
selected: boolean;
|
|
61
|
-
}[];
|
|
62
70
|
get isValid(): boolean;
|
|
63
71
|
bookAppointment(): void;
|
|
64
|
-
selectTime(time:
|
|
65
|
-
getKeys(object:
|
|
72
|
+
selectTime(time: string): void;
|
|
73
|
+
getKeys(object: any): string[];
|
|
66
74
|
addMoreDesign(): void;
|
|
67
75
|
get isMobile(): boolean;
|
|
68
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookAppointmentComponent, never>;
|
|
@@ -1,14 +1,49 @@
|
|
|
1
|
-
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
2
|
-
import {
|
|
1
|
+
import { ActionModel, AnimationModel, BackgroundModel, InputTextModel, LayOutModel, PositionLayoutModal, StylesModel } from "../../../styles/style.model";
|
|
2
|
+
import { Corners } from "../../../styles/index";
|
|
3
|
+
import { CONTENT_BACKGROUND } from "../../../styles/types";
|
|
3
4
|
export interface BookAppointmentSectionModal {
|
|
4
5
|
id: string;
|
|
5
6
|
sectionType: string;
|
|
6
7
|
sectionName: string;
|
|
8
|
+
content: BookAppointmentContentModel;
|
|
7
9
|
styles: BookAppointmentStylesModel;
|
|
8
10
|
action: ActionModel;
|
|
9
11
|
}
|
|
10
|
-
export interface BookAppointmentStylesModel {
|
|
12
|
+
export interface BookAppointmentStylesModel extends StylesModel {
|
|
11
13
|
layout: LayOutModel;
|
|
14
|
+
positionLayout?: PositionLayoutModal;
|
|
12
15
|
background: BackgroundModel;
|
|
13
16
|
animation: AnimationModel;
|
|
17
|
+
inputOpacity?: number;
|
|
18
|
+
corners?: Corners;
|
|
19
|
+
contentBackground?: {
|
|
20
|
+
display: boolean;
|
|
21
|
+
style: CONTENT_BACKGROUND;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface BookAppointmentContentModel {
|
|
25
|
+
inputText: InputTextModel[];
|
|
26
|
+
appointmentField: AppointmentFieldSectionModel;
|
|
27
|
+
}
|
|
28
|
+
export interface AppointmentFieldSectionModel {
|
|
29
|
+
customLabel?: boolean;
|
|
30
|
+
button?: string;
|
|
31
|
+
successMessage?: string;
|
|
32
|
+
fields: AppointmentFieldModel[];
|
|
33
|
+
}
|
|
34
|
+
export interface AppointmentFieldModel {
|
|
35
|
+
key: "receiverName" | "receiverPhone" | "receiverEmail" | "addressLine1" | "stateName" | "cityName" | "zipCode";
|
|
36
|
+
label: string;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
type: "text" | "email" | "tel" | "textarea" | "dropdown";
|
|
39
|
+
required: boolean;
|
|
40
|
+
status?: boolean;
|
|
41
|
+
inputValue?: string;
|
|
42
|
+
width?: "half" | "full";
|
|
43
|
+
value?: string;
|
|
44
|
+
options?: {
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
status?: boolean;
|
|
48
|
+
}[];
|
|
14
49
|
}
|
|
@@ -14,6 +14,7 @@ import { Meta, Title } from '@angular/platform-browser';
|
|
|
14
14
|
import { MatDialog } from '@angular/material/dialog';
|
|
15
15
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
16
16
|
import { CustomerReviewComponent } from '../../sections/customer-review/customer-review.component';
|
|
17
|
+
import { AnalyticsService } from '../../../services/analytics.service';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export declare class ProductDescComponent extends BaseSection {
|
|
19
20
|
private platformId;
|
|
@@ -29,6 +30,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
29
30
|
private readonly bottomSheet;
|
|
30
31
|
private renderer;
|
|
31
32
|
private matDialog;
|
|
33
|
+
private analyticsService;
|
|
32
34
|
reviewComponent: CustomerReviewComponent;
|
|
33
35
|
aboveHeight: ElementRef<HTMLDivElement>;
|
|
34
36
|
container: ElementRef<HTMLDivElement>;
|
|
@@ -52,7 +54,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
52
54
|
showReview: boolean;
|
|
53
55
|
selectedReview: any;
|
|
54
56
|
currentImageIndex: number;
|
|
55
|
-
|
|
57
|
+
content: any;
|
|
56
58
|
buttonId?: string;
|
|
57
59
|
button?: ButtonModel;
|
|
58
60
|
styles?: ProductDescStylesModal;
|
|
@@ -68,10 +70,39 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
68
70
|
isPinCode: boolean;
|
|
69
71
|
toShowInJewellery: boolean;
|
|
70
72
|
IsEcommerce: boolean;
|
|
71
|
-
ngOnInit(): void;
|
|
72
|
-
ngAfterViewInit(): void;
|
|
73
73
|
varientLoading: boolean;
|
|
74
74
|
recentViewItemList: Product[];
|
|
75
|
+
reviewTitle: string;
|
|
76
|
+
reviewDescription: string;
|
|
77
|
+
isDescriptionCollapsed: boolean;
|
|
78
|
+
isPriceBreakup: boolean;
|
|
79
|
+
languages: string[];
|
|
80
|
+
selectedLang: string;
|
|
81
|
+
isDetails: boolean;
|
|
82
|
+
pincode: any;
|
|
83
|
+
storeDetails: any;
|
|
84
|
+
brandPromises: any[];
|
|
85
|
+
ecomConfigs: any;
|
|
86
|
+
locate: boolean;
|
|
87
|
+
otherLanguage: string;
|
|
88
|
+
reviewsData: any[];
|
|
89
|
+
ratingCounts: any;
|
|
90
|
+
pageNumber: number;
|
|
91
|
+
screenWidth: any;
|
|
92
|
+
currentImg: any;
|
|
93
|
+
videoCallPayload: any;
|
|
94
|
+
validationErrors: any;
|
|
95
|
+
isSubmitting: boolean;
|
|
96
|
+
scheduled: boolean;
|
|
97
|
+
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet, renderer: Renderer2, matDialog: MatDialog, analyticsService: AnalyticsService);
|
|
98
|
+
ngOnInit(): void;
|
|
99
|
+
ensureDefaultContent(): void;
|
|
100
|
+
getTextByLabel(label: string, fallback?: string): string;
|
|
101
|
+
setTextByLabel(label: string, value: string): void;
|
|
102
|
+
get showHeading(): boolean;
|
|
103
|
+
get showContent(): boolean;
|
|
104
|
+
get showButton(): boolean;
|
|
105
|
+
ngAfterViewInit(): void;
|
|
75
106
|
getRelatedProducts(): void;
|
|
76
107
|
selectVarient(key: string, value: string): void;
|
|
77
108
|
raiseLead(): void;
|
|
@@ -80,9 +111,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
80
111
|
getTrialCartIndexDBData(): void;
|
|
81
112
|
shareProduct(): void;
|
|
82
113
|
routeToHome(): void;
|
|
83
|
-
screenWidth: any;
|
|
84
114
|
getScreenSize(): void;
|
|
85
|
-
currentImg: any;
|
|
86
115
|
changeImg(url: any): void;
|
|
87
116
|
getKeys(varient: Object): string[];
|
|
88
117
|
goToCart(): void;
|
|
@@ -95,8 +124,6 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
95
124
|
changeProduct(product: Product): void;
|
|
96
125
|
getKeyByIdx(property: any, index: number): string;
|
|
97
126
|
isVarientAvailable(varient: any): boolean;
|
|
98
|
-
reviewTitle: string;
|
|
99
|
-
reviewDescription: string;
|
|
100
127
|
addProductReview(): void;
|
|
101
128
|
private getVarientQuantity;
|
|
102
129
|
private isVarientPresentInWishtlist;
|
|
@@ -107,32 +134,17 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
107
134
|
get isMobile(): boolean;
|
|
108
135
|
getCarat(carat: any): "24 Carats" | "22 Carats" | "18 Carats" | "14 Carats" | "10 Carats" | "99.9% Pure" | "92.5% Pure" | "90% Pure" | "Very Slightly Included" | "Slightly Included";
|
|
109
136
|
getPricePerGram(price: any, materialType: string): any;
|
|
110
|
-
isDescriptionCollapsed: boolean;
|
|
111
137
|
toggleDescription(): void;
|
|
112
|
-
isPriceBreakup: boolean;
|
|
113
138
|
togglePriceBreakDown(): void;
|
|
114
139
|
getDifference(sellingPrice: any, mrp: any): number;
|
|
115
|
-
getBackgroundColor(type: string):
|
|
140
|
+
getBackgroundColor(type: string): "rgba(255,255,255,0.08)" | "rgba(0,0,0,0.03)";
|
|
116
141
|
getHeaderColor(type: string): string;
|
|
117
142
|
getTextColor(color: any): "#000000" | "#ffffff";
|
|
118
|
-
|
|
119
|
-
selectedLang: string;
|
|
120
|
-
getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
|
|
143
|
+
getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
|
|
121
144
|
onFindInStore(id: string): void;
|
|
122
145
|
onBookAppointment(): void;
|
|
123
|
-
isDetails: boolean;
|
|
124
|
-
pincode: any;
|
|
125
|
-
storeDetails: any;
|
|
126
146
|
getStoreDetails(): void;
|
|
127
|
-
brandPromises: any[];
|
|
128
|
-
ecomConfigs: any;
|
|
129
147
|
getEcommerceConfigs(): void;
|
|
130
|
-
locate: boolean;
|
|
131
|
-
otherLanguage: string;
|
|
132
|
-
videoCallPayload: any;
|
|
133
|
-
validationErrors: any;
|
|
134
|
-
isSubmitting: boolean;
|
|
135
|
-
scheduled: boolean;
|
|
136
148
|
scheduleVideoCall(): void;
|
|
137
149
|
resetValidationErrors(): void;
|
|
138
150
|
resetForm(): void;
|
|
@@ -145,9 +157,6 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
145
157
|
closeDialog(): void;
|
|
146
158
|
getRatings(noofratings: any): any;
|
|
147
159
|
addToTrialCart(): void;
|
|
148
|
-
reviewsData: any[];
|
|
149
|
-
ratingCounts: any;
|
|
150
|
-
pageNumber: number;
|
|
151
160
|
loadMoreReviews(): void;
|
|
152
161
|
getReviews(productId: string): void;
|
|
153
162
|
getPercentage(rating: number): string;
|
|
@@ -155,6 +164,78 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
155
164
|
showDetailReview(review: any): void;
|
|
156
165
|
get stylesLayout(): LayOutModel;
|
|
157
166
|
getDateAfterxDays(): Date;
|
|
167
|
+
getEffectiveBackgroundColor(): string;
|
|
168
|
+
getAdaptiveTextColor(): string;
|
|
169
|
+
getAdaptiveMutedTextColor(): string;
|
|
170
|
+
getAdaptiveBorderColor(): string;
|
|
171
|
+
getReadableTextColor(color: string): string;
|
|
172
|
+
getAverageColor(color1: string, color2: string): string;
|
|
173
|
+
hexToRgb(hex: string): {
|
|
174
|
+
r: number;
|
|
175
|
+
g: number;
|
|
176
|
+
b: number;
|
|
177
|
+
} | null;
|
|
178
|
+
rgbToHex(r: number, g: number, b: number): string;
|
|
179
|
+
getTryAtHomeActionButton(): ButtonModel | {
|
|
180
|
+
content: {
|
|
181
|
+
linkType: "Page";
|
|
182
|
+
label: string;
|
|
183
|
+
redirectionUrl: string;
|
|
184
|
+
pageId: string;
|
|
185
|
+
newTab: false;
|
|
186
|
+
};
|
|
187
|
+
styles: {
|
|
188
|
+
type: "Solid";
|
|
189
|
+
shape: "Pill";
|
|
190
|
+
};
|
|
191
|
+
id: string;
|
|
192
|
+
};
|
|
193
|
+
getTryAtHomeButtonContent(): {
|
|
194
|
+
label: string;
|
|
195
|
+
linkType: import("../../../styles/index").RedirectionLinkType;
|
|
196
|
+
redirectionUrl: string;
|
|
197
|
+
pageId: string;
|
|
198
|
+
newTab: boolean;
|
|
199
|
+
showIcon?: boolean;
|
|
200
|
+
icon?: import("../../../styles/style.model").Icon | any;
|
|
201
|
+
} | {
|
|
202
|
+
label: string;
|
|
203
|
+
linkType: "Page";
|
|
204
|
+
redirectionUrl: string;
|
|
205
|
+
pageId: string;
|
|
206
|
+
newTab: false;
|
|
207
|
+
};
|
|
208
|
+
getTryAtHomeBookedButtonContent(): {
|
|
209
|
+
label: string;
|
|
210
|
+
linkType: import("../../../styles/index").RedirectionLinkType;
|
|
211
|
+
redirectionUrl: string;
|
|
212
|
+
pageId: string;
|
|
213
|
+
newTab: boolean;
|
|
214
|
+
showIcon?: boolean;
|
|
215
|
+
icon?: import("../../../styles/style.model").Icon | any;
|
|
216
|
+
} | {
|
|
217
|
+
label: string;
|
|
218
|
+
linkType: "Page";
|
|
219
|
+
redirectionUrl: string;
|
|
220
|
+
pageId: string;
|
|
221
|
+
newTab: false;
|
|
222
|
+
};
|
|
223
|
+
getTryAtHomeButtonStyle(): import("../../../styles/style.model").ButtonStyleModel | {
|
|
224
|
+
type: "Solid";
|
|
225
|
+
shape: "Pill";
|
|
226
|
+
};
|
|
227
|
+
getTryAtHomeButtonId(): string;
|
|
228
|
+
getCurrentFavouriteIcon(): any;
|
|
229
|
+
getShareIcon(): any;
|
|
230
|
+
getCartIcon(): any;
|
|
231
|
+
getProductDescIconBackground(icon: any): any;
|
|
232
|
+
getIconBackground(icon: any): any;
|
|
233
|
+
getScheduleVideoCallBtnStyle(): {
|
|
234
|
+
background: string;
|
|
235
|
+
color: string;
|
|
236
|
+
border: string;
|
|
237
|
+
};
|
|
238
|
+
getPrimaryButtonBackground(): string;
|
|
158
239
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
|
159
240
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
160
241
|
}
|
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ActionModel } from '../../../styles/style.model';
|
|
4
|
-
import { Corners } from "../../.././styles/index";
|
|
5
|
-
import { GRID_STYLE } from "../../../styles/types";
|
|
1
|
+
import { ActionModel, BackgroundModel, InputTextModel, LayOutModel, StylesModel, AnimationModel } from "../../../styles/style.model";
|
|
2
|
+
import { Corners } from "../../../styles/index";
|
|
6
3
|
export interface ProductDescModal {
|
|
7
4
|
id: string;
|
|
8
5
|
sectionType: string;
|
|
9
6
|
sectionName: string;
|
|
10
|
-
content:
|
|
7
|
+
content: ProductDescContentModel;
|
|
11
8
|
styles: ProductDescStylesModal;
|
|
12
9
|
action: ActionModel;
|
|
13
10
|
}
|
|
14
|
-
export interface
|
|
11
|
+
export interface ProductDescContentModel {
|
|
12
|
+
inputText: InputTextModel[];
|
|
13
|
+
socialLinks: {
|
|
14
|
+
display: boolean;
|
|
15
|
+
channels: {
|
|
16
|
+
type: string;
|
|
17
|
+
url: string;
|
|
18
|
+
link: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
display: {
|
|
22
|
+
showHeading: boolean;
|
|
23
|
+
showContent: boolean;
|
|
24
|
+
showButton: boolean;
|
|
25
|
+
};
|
|
26
|
+
priceWithTax: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ProductDescStylesModal extends StylesModel {
|
|
15
29
|
layout: LayOutModel;
|
|
16
30
|
background: BackgroundModel;
|
|
17
31
|
animation: AnimationModel;
|
|
18
|
-
maximumProduct
|
|
19
|
-
direction
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
export interface ProductDescContentModal {
|
|
26
|
-
button: string;
|
|
27
|
-
socialLinks: FooterSocialLinkModel;
|
|
28
|
-
inputText: InputTextModel[];
|
|
32
|
+
maximumProduct?: number;
|
|
33
|
+
direction?: string;
|
|
34
|
+
corners?: Corners;
|
|
35
|
+
gridStyle?: string;
|
|
36
|
+
customization?: string;
|
|
37
|
+
theme?: string;
|
|
29
38
|
}
|
|
@@ -12,6 +12,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
12
12
|
import { CartService } from '../../../services/cart.service';
|
|
13
13
|
import { MenuItem, MessageService } from 'primeng/api';
|
|
14
14
|
import { ProductCardTheme } from '../../../styles/index';
|
|
15
|
+
import { AnalyticsService } from '../../../services/analytics.service';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
interface BaseModel {
|
|
17
18
|
option: string;
|
|
@@ -31,6 +32,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
31
32
|
private readonly cartService;
|
|
32
33
|
private readonly messageService;
|
|
33
34
|
private renderer;
|
|
35
|
+
private readonly analyticsService;
|
|
34
36
|
responseData?: Product[];
|
|
35
37
|
data?: ProductListModal;
|
|
36
38
|
index?: number;
|
|
@@ -69,6 +71,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
69
71
|
searchTxt: string;
|
|
70
72
|
theme: typeof ProductCardTheme;
|
|
71
73
|
items: MenuItem[] | null;
|
|
74
|
+
latestAnalyicsEvent: string;
|
|
72
75
|
private filterBottomSheetRef;
|
|
73
76
|
private sortingDialogRef;
|
|
74
77
|
categories: BaseModel[];
|
|
@@ -77,7 +80,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
77
80
|
listScrollContainer: ElementRef<HTMLDivElement>;
|
|
78
81
|
getScreenSize(): void;
|
|
79
82
|
onWindowScroll(event: Event): void;
|
|
80
|
-
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService, renderer: Renderer2);
|
|
83
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService, renderer: Renderer2, analyticsService: AnalyticsService);
|
|
81
84
|
get stylesLayout(): LayOutModel;
|
|
82
85
|
isOpen: boolean;
|
|
83
86
|
toggleDropdown(): void;
|
|
@@ -103,6 +106,8 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
103
106
|
toShowInJewellery: boolean;
|
|
104
107
|
IsEcommerce: boolean;
|
|
105
108
|
ngOnInit(): void;
|
|
109
|
+
fetchAnalytics(): void;
|
|
110
|
+
getCategoriesAndCollection(): void;
|
|
106
111
|
get selectedCategoryCollectionChips(): {
|
|
107
112
|
id: string;
|
|
108
113
|
name: string;
|
|
@@ -199,7 +204,10 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
199
204
|
closeModal(): void;
|
|
200
205
|
languages: string[];
|
|
201
206
|
selectedLang: string;
|
|
202
|
-
getTextColor(color:
|
|
207
|
+
getTextColor(color: string | undefined | null): "#000000" | "#ffffff";
|
|
208
|
+
getAverageColor(color1: string, color2: string): string;
|
|
209
|
+
getSectionBackgroundColor(): string;
|
|
210
|
+
get sectionTextColor(): string;
|
|
203
211
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
204
212
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
205
213
|
}
|
|
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
|
|
|
21
21
|
get stylesLayout(): LayOutModel;
|
|
22
22
|
get spacingLayout(): SpacingModel;
|
|
23
23
|
getParentClass(): "" | "overflow-scroll flex-nowrap";
|
|
24
|
-
getClass(index: number): "col-
|
|
24
|
+
getClass(index: number): "col-6" | "col-12" | "col-6 mb-2" | "col-12 mb-2";
|
|
25
25
|
showSchemeDetails(scheme: any): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
|
|
27
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -31,7 +31,7 @@ export declare class LinkEditorComponent {
|
|
|
31
31
|
changeButtonStyle(): void;
|
|
32
32
|
getContrastTextColor(backgroundHex: any): void;
|
|
33
33
|
backgroundType: string[];
|
|
34
|
-
setBorderRadius(): "0px" | "
|
|
34
|
+
setBorderRadius(): "0px" | "7px" | "99px";
|
|
35
35
|
setBorder(): string;
|
|
36
36
|
setColor(): any;
|
|
37
37
|
setBackground(): any;
|
|
@@ -10,9 +10,12 @@ export declare class SimpoButtonComponent {
|
|
|
10
10
|
sectionId?: string;
|
|
11
11
|
edit?: boolean;
|
|
12
12
|
backgroundInfo?: BackgroundModel;
|
|
13
|
+
isFullWidth: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
13
16
|
constructor(_eventService: EventsService);
|
|
14
17
|
ngOnInit(): void;
|
|
15
18
|
redirectTo(): void;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SimpoButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SimpoButtonComponent, "app-button-element", never, { "buttonContent": { "alias": "buttonContent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpoButtonComponent, "app-button-element", never, { "buttonContent": { "alias": "buttonContent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; "isFullWidth": { "alias": "isFullWidth"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
21
|
}
|
|
@@ -25,8 +25,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
25
25
|
get stylesLayout(): LayOutModel;
|
|
26
26
|
get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
|
|
27
27
|
get getBackgroundColor(): BackgroundModel;
|
|
28
|
-
get getBackgroundOpacity(): "
|
|
29
|
-
opacityValue(value: OverlayValue): "
|
|
28
|
+
get getBackgroundOpacity(): "0" | "0.5" | "0.7" | "0.6" | "0.8" | "1";
|
|
29
|
+
opacityValue(value: OverlayValue): "0.5" | "0.7" | "0.6" | "0.8" | "1";
|
|
30
30
|
editSection(): void;
|
|
31
31
|
getScreenSize(): number;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
|
|
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
|
|
|
25
25
|
get canMergeNavbar(): boolean | undefined;
|
|
26
26
|
get isBorderlessImage(): boolean | undefined;
|
|
27
27
|
get getPositionLayout(): PositionLayoutModal;
|
|
28
|
-
opacityValue(value: OverlayValue): "0" | "0.
|
|
28
|
+
opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
|
29
29
|
editSection(): void;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
|
|
31
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -20,9 +20,9 @@ export declare class ImageSectionComponent extends BaseSection {
|
|
|
20
20
|
constructor(_eventService: EventsService);
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
get canMergeNavbar(): boolean | undefined;
|
|
23
|
-
get getBackgroundOpacity(): "
|
|
23
|
+
get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
|
24
24
|
get stylesLayout(): LayOutModel;
|
|
25
|
-
opacityValue(value: OverlayValue): "
|
|
25
|
+
opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
|
26
26
|
editSection(): void;
|
|
27
27
|
redirectTo(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
|
|
@@ -23,8 +23,8 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
|
|
|
23
23
|
constructor(_eventService: EventsService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
get stylesLayout(): LayOutModel;
|
|
26
|
-
get animationDuration(): "3s" | "
|
|
27
|
-
get animationDirection():
|
|
26
|
+
get animationDuration(): "3s" | "6s" | "5s" | "4s" | logoSpeed.Normal;
|
|
27
|
+
get animationDirection(): "reverse" | "normal" | logoDirection.Left;
|
|
28
28
|
get isMobile(): boolean;
|
|
29
29
|
get getPositionLayout(): PositionLayoutModal;
|
|
30
30
|
screenWidth: number;
|
|
@@ -23,7 +23,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
|
23
23
|
getButtonId(): string;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
redirectTo(data: any): void;
|
|
26
|
-
getClass(): "col-
|
|
26
|
+
getClass(): "col-6" | "col-4" | "col-3" | "col-12";
|
|
27
27
|
getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
|
29
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { StorageServiceService } from './storage.service';
|
|
3
|
+
import { StorageLike } from '../services/storage-like';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AnalyticsService {
|
|
7
|
+
private http;
|
|
8
|
+
private platformId;
|
|
9
|
+
private document;
|
|
10
|
+
private readonly storageService;
|
|
11
|
+
private API_URL;
|
|
12
|
+
private storage;
|
|
13
|
+
private router;
|
|
14
|
+
private eventQueue;
|
|
15
|
+
private BATCH_SIZE;
|
|
16
|
+
private FLUSH_INTERVAL;
|
|
17
|
+
private currentPage;
|
|
18
|
+
private currentContextMetadata;
|
|
19
|
+
private contextStartTime;
|
|
20
|
+
private contextActiveTime;
|
|
21
|
+
private currentEvent;
|
|
22
|
+
constructor(http: HttpClient, platformId: Object, document: Document, storageService: StorageServiceService, API_URL: string, storage: StorageLike, router: Router);
|
|
23
|
+
startNewContext(metadata: any, event: string): void;
|
|
24
|
+
getCurrentContext(): any;
|
|
25
|
+
private closeCurrentContext;
|
|
26
|
+
private listenToRouteChange;
|
|
27
|
+
trackUser(event: any, eventType: string): void;
|
|
28
|
+
private startAutoFlush;
|
|
29
|
+
private flush;
|
|
30
|
+
private listenToUnload;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
|
|
33
|
+
}
|