simpo-component-library 1.4.214 → 1.4.217
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +61 -24
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +82 -14
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +46 -8
- package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +3 -3
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +8 -2
- package/esm2022/lib/services/cart.service.mjs +13 -21
- package/esm2022/lib/services/rest.service.mjs +2 -1
- package/esm2022/lib/services/storage.service.mjs +4 -4
- package/fesm2022/simpo-component-library.mjs +211 -69
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +3 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +2 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -1
- package/lib/ecommerce/styles/OrderedItems.modal.d.ts +2 -2
- package/lib/ecommerce/styles/product.modal.d.ts +1 -1
- package/lib/services/cart.service.d.ts +3 -4
- package/package.json +1 -1
- package/simpo-component-library-1.4.215.tgz +0 -0
- package/simpo-component-library-1.4.217.tgz +0 -0
- package/simpo-component-library-1.4.214.tgz +0 -0
@@ -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
|
-
|
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
|
}
|
@@ -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(
|
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
Binary file
|
Binary file
|
Binary file
|