simpo-component-library 3.6.618 → 3.6.619
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/cart/cart.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +18 -12
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +62 -16
- package/esm2022/lib/services/analytics.service.mjs +152 -0
- package/fesm2022/simpo-component-library.mjs +206 -15
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +3 -1
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +5 -1
- package/lib/services/analytics.service.d.ts +31 -0
- package/package.json +1 -1
- package/simpo-component-library-3.6.619.tgz +0 -0
- package/simpo-component-library-3.6.618.tgz +0 -0
|
@@ -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
|
-
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);
|
|
57
|
+
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);
|
|
56
58
|
buttonId?: string;
|
|
57
59
|
button?: ButtonModel;
|
|
58
60
|
styles?: ProductDescStylesModal;
|
|
@@ -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;
|
|
@@ -77,7 +79,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
77
79
|
listScrollContainer: ElementRef<HTMLDivElement>;
|
|
78
80
|
getScreenSize(): void;
|
|
79
81
|
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);
|
|
82
|
+
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
83
|
get stylesLayout(): LayOutModel;
|
|
82
84
|
isOpen: boolean;
|
|
83
85
|
toggleDropdown(): void;
|
|
@@ -103,6 +105,8 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
103
105
|
toShowInJewellery: boolean;
|
|
104
106
|
IsEcommerce: boolean;
|
|
105
107
|
ngOnInit(): void;
|
|
108
|
+
fetchAnalytics(): void;
|
|
109
|
+
getCategoriesAndCollection(): void;
|
|
106
110
|
get selectedCategoryCollectionChips(): {
|
|
107
111
|
id: string;
|
|
108
112
|
name: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
constructor(http: HttpClient, platformId: Object, document: Document, storageService: StorageServiceService, API_URL: string, storage: StorageLike, router: Router);
|
|
22
|
+
startNewContext(metadata: any): void;
|
|
23
|
+
private closeCurrentContext;
|
|
24
|
+
private listenToRouteChange;
|
|
25
|
+
trackUser(event: any): void;
|
|
26
|
+
private startAutoFlush;
|
|
27
|
+
private flush;
|
|
28
|
+
private listenToUnload;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|