simpo-component-library 3.6.618 → 3.6.620

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.
@@ -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;
@@ -117,7 +119,7 @@ export declare class ProductDescComponent extends BaseSection {
117
119
  getTextColor(color: any): "#000000" | "#ffffff";
118
120
  languages: string[];
119
121
  selectedLang: string;
120
- getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
122
+ getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
121
123
  onFindInStore(id: string): void;
122
124
  onBookAppointment(): void;
123
125
  isDetails: boolean;
@@ -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;
@@ -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-12" | "col-6" | "col-6 mb-2" | "col-12 mb-2";
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>;
@@ -25,7 +25,7 @@ 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(): "1" | "0" | "0.7" | "0.5" | "0.6" | "0.8";
28
+ get getBackgroundOpacity(): "0" | "1" | "0.7" | "0.5" | "0.6" | "0.8";
29
29
  opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.6" | "0.8";
30
30
  editSection(): void;
31
31
  getScreenSize(): 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-4" | "col-12" | "col-6" | "col-3";
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,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.618",
3
+ "version": "3.6.620",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file