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.
@@ -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
- constructor(cartService: CartService);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file
Binary file