simpo-component-library 3.6.899 → 3.6.902

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.
@@ -46,7 +46,12 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
46
46
  theme: typeof ProductCardTheme;
47
47
  getScreenSize(): void;
48
48
  ngAfterViewInit(): void;
49
+ startTagCycle(): void;
49
50
  IsEcommerce: boolean;
51
+ tagIndexMap: {
52
+ [itemId: string]: number;
53
+ };
54
+ private tagInterval;
50
55
  ngOnInit(): void;
51
56
  ngOnChanges(changes: SimpleChanges): void;
52
57
  ngOnDestroy(): void;
@@ -81,6 +86,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
81
86
  getBtnData(index: number): any;
82
87
  redirectTo(data: any): void;
83
88
  getJustifyContent(): "center" | "flex-start" | "flex-end";
89
+ getTagTextColor(color: any): string;
84
90
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
85
91
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "isBrowseProduct": { "alias": "isBrowseProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
86
92
  }
@@ -14,7 +14,6 @@ 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';
18
17
  import * as i0 from "@angular/core";
19
18
  export declare class ProductDescComponent extends BaseSection {
20
19
  private platformId;
@@ -30,7 +29,6 @@ export declare class ProductDescComponent extends BaseSection {
30
29
  private readonly bottomSheet;
31
30
  private renderer;
32
31
  private matDialog;
33
- private analyticsService;
34
32
  reviewComponent: CustomerReviewComponent;
35
33
  aboveHeight: ElementRef<HTMLDivElement>;
36
34
  container: ElementRef<HTMLDivElement>;
@@ -54,7 +52,7 @@ export declare class ProductDescComponent extends BaseSection {
54
52
  showReview: boolean;
55
53
  selectedReview: any;
56
54
  currentImageIndex: number;
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);
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);
58
56
  buttonId?: string;
59
57
  button?: ButtonModel;
60
58
  styles?: ProductDescStylesModal;
@@ -122,10 +120,11 @@ export declare class ProductDescComponent extends BaseSection {
122
120
  getDifference(sellingPrice: any, mrp: any): number;
123
121
  getBackgroundColor(type: string): string;
124
122
  getHeaderColor(type: string): string;
123
+ formatItemCode(code: any): string | null;
125
124
  getTextColor(color: any): "#000000" | "#ffffff";
126
125
  languages: string[];
127
126
  selectedLang: string;
128
- getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
127
+ getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
129
128
  onFindInStore(id: string): void;
130
129
  onBookAppointment(): void;
131
130
  isDetails: boolean;
@@ -1,4 +1,4 @@
1
- import { ElementRef, TemplateRef, Renderer2 } from '@angular/core';
1
+ import { OnDestroy, ElementRef, TemplateRef, Renderer2 } from '@angular/core';
2
2
  import { ItemVariant, Product } from '../../styles/product.modal';
3
3
  import BaseSection from '../../../sections/BaseSection';
4
4
  import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
@@ -26,7 +26,7 @@ interface RatingFilterOption {
26
26
  max: number;
27
27
  selected: boolean;
28
28
  }
29
- export declare class ProductListComponent extends BaseSection {
29
+ export declare class ProductListComponent extends BaseSection implements OnDestroy {
30
30
  private platformId;
31
31
  private readonly _eventService;
32
32
  private readonly restService;
@@ -46,6 +46,10 @@ export declare class ProductListComponent extends BaseSection {
46
46
  delete?: boolean;
47
47
  customClass?: string;
48
48
  nextComponentColor?: BackgroundModel;
49
+ tagIndexMap: {
50
+ [itemId: string]: number;
51
+ };
52
+ private tagInterval;
49
53
  isLoading: boolean;
50
54
  apiLoading: boolean;
51
55
  isListLoading: boolean;
@@ -175,6 +179,8 @@ export declare class ProductListComponent extends BaseSection {
175
179
  filterScroll: ElementRef;
176
180
  isSyncing: boolean;
177
181
  ngAfterViewInit(): void;
182
+ startTagCycle(): void;
183
+ ngOnDestroy(): void;
178
184
  handleSyncScroll(): void;
179
185
  toggleItemToFav(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'REMOVE'): void;
180
186
  addItemToCart(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'SUBSTRACT'): void;
@@ -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>;
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ItemVariant, Product } from '../../styles/product.modal';
3
3
  import { CartService } from '../../../services/cart.service';
4
4
  import { Router } from '@angular/router';
@@ -6,7 +6,7 @@ import { RestService } from '../../../services/rest.service';
6
6
  import { MessageService } from 'primeng/api';
7
7
  import { StorageServiceService } from '../../../services/storage.service';
8
8
  import * as i0 from "@angular/core";
9
- export declare class SmallProductListingComponent implements OnInit {
9
+ export declare class SmallProductListingComponent implements OnInit, OnDestroy {
10
10
  private readonly cartService;
11
11
  private readonly router;
12
12
  private readonly restService;
@@ -21,7 +21,10 @@ export declare class SmallProductListingComponent implements OnInit {
21
21
  customClass?: string;
22
22
  index: number;
23
23
  IsEcommerce: boolean;
24
+ currentTagIdx: number;
25
+ private tagTimer;
24
26
  ngOnInit(): void;
27
+ ngOnDestroy(): void;
25
28
  addItemToCart(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'SUBSTRACT'): void;
26
29
  removeDefault(event: PointerEvent | MouseEvent): void;
27
30
  raiseLead(): void;
@@ -34,6 +34,8 @@ export declare class Product {
34
34
  returnable: boolean;
35
35
  availableOnCod: boolean;
36
36
  brief: string;
37
+ itemCode: string;
38
+ tags: string[];
37
39
  jewelryPriceBreakup: any;
38
40
  configs: any;
39
41
  constructor(json?: {
@@ -32,7 +32,7 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
32
32
  get stylesLayout(): LayOutModel;
33
33
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
34
34
  get getBackgroundColor(): BackgroundModel;
35
- get getBackgroundOpacity(): "1" | "0" | "0.7" | "0.5" | "0.6" | "0.8";
35
+ get getBackgroundOpacity(): "0" | "1" | "0.7" | "0.5" | "0.6" | "0.8";
36
36
  opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.6" | "0.8";
37
37
  editSection(): void;
38
38
  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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.899",
3
+ "version": "3.6.902",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file