simpo-component-library 3.6.590 → 3.6.592

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.
Files changed (25) hide show
  1. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +18 -12
  2. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +65 -16
  3. package/esm2022/lib/sections/image-background/image-background/image-background.component.mjs +8 -11
  4. package/esm2022/lib/sections/overlapping-image/overlapping-image.component.mjs +9 -12
  5. package/esm2022/lib/services/analytics.service.mjs +85 -0
  6. package/fesm2022/simpo-component-library.mjs +153 -31
  7. package/fesm2022/simpo-component-library.mjs.map +1 -1
  8. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +4 -2
  9. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +5 -1
  10. package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
  11. package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
  12. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  13. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  14. package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
  15. package/lib/sections/faq-section/faq-section.component.d.ts +1 -1
  16. package/lib/sections/image-background/image-background/image-background.component.d.ts +3 -3
  17. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  18. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +2 -2
  19. package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
  20. package/lib/sections/overlapping-image/overlapping-image.component.d.ts +4 -4
  21. package/lib/sections/pricing-section/pricing-section.component.d.ts +2 -2
  22. package/lib/services/analytics.service.d.ts +24 -0
  23. package/package.json +1 -1
  24. package/simpo-component-library-3.6.592.tgz +0 -0
  25. package/simpo-component-library-3.6.590.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;
@@ -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-12" | "col-6 mb-2" | "col-12 mb-2" | "col-6";
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>;
@@ -15,7 +15,7 @@ export declare class PricingS1Component extends BaseSection {
15
15
  editSection(): void;
16
16
  getButtonId(): string;
17
17
  redirectTo(data: any): void;
18
- getClass(): "col-4" | "col-12" | "col-5";
18
+ getClass(): "col-12" | "col-4" | "col-5";
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingS1Component, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingS1Component, "simpo-pricing-s1", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
21
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(): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
- opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
28
+ get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
29
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
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.7" | "0.5" | "0.3" | "0.2";
28
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
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>;
@@ -30,7 +30,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit {
30
30
  shouldShowDropdown(field: any): boolean;
31
31
  getCardStyle(): {};
32
32
  getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
33
- getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
33
+ getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
35
35
  static ɵcmp: i0.ɵɵComponentDeclaration<ContactUsComponent, "simpo-contact-us", 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>;
36
36
  }
@@ -23,7 +23,7 @@ export declare class FaqSectionComponent extends BaseSection {
23
23
  toggleContent(idx: number): void;
24
24
  editSection(): void;
25
25
  getScreenSize(): void;
26
- getLayout(): "justify-content-start" | "justify-content-center" | "justify-content-end";
26
+ getLayout(): "justify-content-start" | "justify-content-end" | "justify-content-center";
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqSectionComponent, never>;
28
28
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqSectionComponent, "simpo-faq-section", 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>;
29
29
  }
@@ -11,11 +11,11 @@ export declare class ImageBackgroundComponent extends BaseSection {
11
11
  customClass?: string;
12
12
  delete?: boolean;
13
13
  styles?: ImageBackgroudStylesModal;
14
- content: ImageBackgroundContentModal | any;
15
- screenWidth: any;
14
+ content?: ImageBackgroundContentModal;
15
+ heading: string;
16
+ subText: string;
16
17
  constructor();
17
18
  ngOnInit(): void;
18
- getScreenSize(): void;
19
19
  get stylesLayout(): LayOutModel;
20
20
  get headingSpace(): SPACING;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageBackgroundComponent, 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(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
23
+ get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
24
24
  get stylesLayout(): LayOutModel;
25
- opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
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" | "4s" | logoSpeed.Normal | "6s" | "5s";
27
- get animationDirection(): logoDirection.Left | "reverse" | "normal";
26
+ get animationDuration(): "6s" | "5s" | "4s" | "3s" | logoSpeed.Normal;
27
+ get animationDirection(): "reverse" | "normal" | logoDirection.Left;
28
28
  get isMobile(): boolean;
29
29
  get getPositionLayout(): PositionLayoutModal;
30
30
  screenWidth: number;
@@ -24,7 +24,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
24
24
  idx: number;
25
25
  getImageData(): import("../../styles/style.model").Image | undefined;
26
26
  getImageUrl(): string | undefined;
27
- getImageType(): "Image" | "Video";
27
+ getImageType(): "Video" | "Image";
28
28
  getLength(): number;
29
29
  editSection(): void;
30
30
  stopPropagation(event: any): void;
@@ -11,15 +11,15 @@ export declare class OverlappingImageComponent extends BaseSection {
11
11
  customClass?: string;
12
12
  delete?: boolean;
13
13
  styles?: OverlappingImagestyleModal;
14
- content: OverlappingImageContentModal | any;
15
- screenWidth: any;
14
+ content?: OverlappingImageContentModal;
15
+ heading: string;
16
+ subText: string;
16
17
  constructor();
17
18
  ngOnInit(): void;
18
- getScreenSize(): void;
19
19
  get stylesLayout(): LayOutModel;
20
20
  get headingSpace(): SPACING;
21
21
  getGradientDirection(direction: string | undefined): string;
22
- get accentBackground(): string;
22
+ getAccentBackground(): string;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlappingImageComponent, never>;
24
24
  static ɵcmp: i0.ɵɵComponentDeclaration<OverlappingImageComponent, "simpo-overlapping-image", never, { "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
25
25
  }
@@ -23,8 +23,8 @@ 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";
27
- getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
26
+ getClass(): "col-12" | "col-6" | "col-4" | "col-3";
27
+ getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
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>;
30
30
  }
@@ -0,0 +1,24 @@
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
+ constructor(http: HttpClient, platformId: Object, document: Document, storageService: StorageServiceService, API_URL: string, storage: StorageLike, router: Router);
18
+ trackUser(event: any): void;
19
+ private startAutoFlush;
20
+ private flush;
21
+ private listenToUnload;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.590",
3
+ "version": "3.6.592",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file