simpo-component-library 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +15 -7
- package/fesm2022/simpo-component-library.mjs +17 -10
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +6 -2
- package/package.json +1 -1
- package/simpo-component-library-1.6.3.tgz +0 -0
- package/simpo-component-library-1.6.1.tgz +0 -0
- package/simpo-component-library-1.6.2.tgz +0 -0
@@ -1,20 +1,24 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
2
|
import { ItemVariant, Product } from '../../styles/product.modal';
|
3
3
|
import { CartService } from '../../../services/cart.service';
|
4
|
+
import { Router } from '@angular/router';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class SmallProductListingComponent implements OnInit {
|
6
7
|
private readonly cartService;
|
7
|
-
|
8
|
+
private readonly router;
|
9
|
+
constructor(cartService: CartService, router: Router);
|
8
10
|
private USER_CART;
|
9
11
|
product: Product;
|
10
12
|
data?: any;
|
11
13
|
isScrollable?: boolean;
|
14
|
+
isCategoryProductList: boolean;
|
12
15
|
ngOnInit(): void;
|
13
16
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
14
17
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
15
18
|
getPercentage(product: Product): string;
|
19
|
+
goToProductDetail(product: Product): void;
|
16
20
|
getSupportingColor(color: string): string;
|
17
21
|
get currency(): string;
|
18
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; }, {}, never, never, true, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; "isCategoryProductList": { "alias": "isCategoryProductList"; "required": false; }; }, {}, never, never, true, never>;
|
20
24
|
}
|
package/package.json
CHANGED
Binary file
|
Binary file
|
Binary file
|