simpo-component-library 3.6.899 → 3.6.901

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/featured-products/featured-products.component.mjs +26 -3
  2. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +10 -14
  3. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +18 -3
  4. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +12 -3
  5. package/esm2022/lib/ecommerce/styles/product.modal.mjs +3 -1
  6. package/fesm2022/simpo-component-library.mjs +64 -19
  7. package/fesm2022/simpo-component-library.mjs.map +1 -1
  8. package/lib/components/input-fields/input-fields.component.d.ts +1 -1
  9. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  10. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  11. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  12. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +6 -0
  13. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
  14. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +2 -1
  15. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +8 -2
  16. package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
  17. package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +5 -2
  18. package/lib/ecommerce/styles/product.modal.d.ts +2 -0
  19. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +1 -1
  20. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  21. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  22. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/simpo-component-library-3.6.901.tgz +0 -0
  25. package/simpo-component-library-3.6.899.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(): "#FFF" | "#000";
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;
@@ -94,7 +94,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
94
94
  validateNumber(event: KeyboardEvent): void;
95
95
  validateOTP(event: KeyboardEvent): void;
96
96
  checkStrength(): void;
97
- getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
97
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
98
98
  emailDebounceTimer: any;
99
99
  onEmailChange(): void;
100
100
  emailCheck: boolean;
@@ -37,7 +37,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
37
37
  get getDirection(): "ROW" | "COLUMN" | undefined;
38
38
  get stylesLayout(): LayOutModel;
39
39
  get isMobile(): boolean;
40
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
40
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", 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>;
43
43
  }
@@ -32,7 +32,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
32
32
  get getDirection(): "ROW" | "COLUMN" | undefined;
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
35
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
37
37
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-collection", 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>;
38
38
  }
@@ -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
  }
@@ -33,7 +33,7 @@ export declare class NewCollectionComponent extends BaseSection {
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
35
  getColor(color: any): "#000000" | "#ffffff";
36
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
36
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
38
38
  static ɵcmp: i0.ɵɵComponentDeclaration<NewCollectionComponent, "simpo-new-collection", 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>;
39
39
  }
@@ -122,10 +122,11 @@ export declare class ProductDescComponent extends BaseSection {
122
122
  getDifference(sellingPrice: any, mrp: any): number;
123
123
  getBackgroundColor(type: string): string;
124
124
  getHeaderColor(type: string): string;
125
+ formatItemCode(code: any): string | null;
125
126
  getTextColor(color: any): "#000000" | "#ffffff";
126
127
  languages: string[];
127
128
  selectedLang: string;
128
- getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
129
+ getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
129
130
  onFindInStore(id: string): void;
130
131
  onBookAppointment(): void;
131
132
  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 ImageGridHotspotComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
26
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -23,7 +23,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
26
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -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.901",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file