simpo-component-library 1.4.214 → 1.4.217

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.
@@ -50,7 +50,10 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
50
50
  togglePreviewImage(product: Product, idx: number): void;
51
51
  isItemOutOfStock(product: Product): boolean;
52
52
  getItemVarient(product: Product, varientId: string): ItemVariant | null;
53
+ selectVarient(product: Product, varient: ItemVariant): void;
53
54
  get currency(): string;
55
+ private getVarientQuantity;
56
+ private isVarientPresentInWishtlist;
54
57
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
55
58
  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; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
56
59
  }
@@ -60,6 +60,8 @@ export declare class ProductDescComponent extends BaseSection {
60
60
  getProductByCollection(): void;
61
61
  changeProduct(product: Product): void;
62
62
  getKeyByIdx(property: any, index: number): string;
63
+ private getVarientQuantity;
64
+ private isVarientPresentInWishtlist;
63
65
  get isItemOutOfStock(): boolean;
64
66
  get currency(): string;
65
67
  get isItemLowStock(): boolean;
@@ -1,4 +1,4 @@
1
- import { Product } from '../../styles/product.modal';
1
+ import { ItemVariant, Product } from '../../styles/product.modal';
2
2
  import BaseSection from '../../../sections/BaseSection';
3
3
  import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
@@ -81,6 +81,7 @@ export declare class ProductListComponent extends BaseSection {
81
81
  paginationChange(page: number): void;
82
82
  closeDialog(): void;
83
83
  isItemOutOfStock(product: Product): boolean;
84
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
84
85
  get isMobile(): boolean;
85
86
  get currency(): string;
86
87
  get minSize(): number;
@@ -1,6 +1,6 @@
1
1
  export declare class OrderedItems {
2
2
  itemId: string;
3
- variantId: string;
3
+ varientId: string;
4
4
  businessId: string;
5
5
  itemName: string;
6
6
  businessName: string;
@@ -13,5 +13,5 @@ export declare class OrderedItems {
13
13
  taxAfterDiscount: number;
14
14
  constructor(json?: {
15
15
  [key: string]: any;
16
- });
16
+ }, varientId?: string);
17
17
  }
@@ -1,6 +1,6 @@
1
1
  export declare class Product {
2
2
  itemId: string;
3
- varientId: string | null;
3
+ varientId: string;
4
4
  storeId: string[];
5
5
  name: string;
6
6
  itemCategorisation: ItemCategorisation;
@@ -11,15 +11,14 @@ export declare class CartService {
11
11
  addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
12
12
  addItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
13
13
  removeItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
14
- addItemToCart(product: Product | OrderedItems): void | IDBRequest<IDBValidKey>;
15
- addItemToFavourite(product: Product): void;
14
+ addItemToCart(product: Product | OrderedItems, varientId?: string): void | IDBRequest<IDBValidKey>;
15
+ addItemToFavourite(product: Product, varientId?: string): void;
16
16
  addItemToFavFromCart(product: OrderedItems): void;
17
17
  addOrderedItemToFavourite(orderedItem: OrderedItems): void;
18
- removeItemFromFavourite(product: Product): void;
18
+ removeItemFromFavourite(varientId: string): void;
19
19
  removeItemFromCart(product: Product | OrderedItems): void;
20
20
  getItemIdxJSON(id: string, type: 'FAVOURITE' | 'CART'): Promise<IDBRequest<any>>;
21
21
  storeItemToDB(product: Product, type: 'CART' | 'WISHLIST'): void;
22
- getItemByIdx(itemId: string, type: 'FAVOURITE' | 'CART'): OrderedItems | null;
23
22
  private objectMapper;
24
23
  storeCartDataToServer(cart: Cart): void;
25
24
  clearCartItems(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.214",
3
+ "version": "1.4.217",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file