simpo-component-library 1.3.6 → 1.3.7

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.
@@ -14,7 +14,6 @@ export declare class CartComponent extends BaseSection {
14
14
  styles?: CartSectionStylesModel;
15
15
  constructor(_eventService: EventsService, cartService: CartService);
16
16
  ngOnInit(): void;
17
- addOrSubtractQuantity(vlaue: 'ADD' | 'SUBSTRACT'): void;
18
17
  proceedToCheckout(): void;
19
18
  proceedToListPage(): void;
20
19
  removeItem(item: any): void;
@@ -1,11 +1,13 @@
1
- import { EventsService } from '.././../../services/events.service';
2
1
  import BaseSection from '../../../sections/BaseSection';
3
2
  import { FeaturedCategoryContentModal, FeaturedCategoryModal, FeaturedCategoryStylesModel } from './featured-category.modal';
4
3
  import { Category } from '../../styles/category.modal';
4
+ import { RestService } from '../../../services/rest.service';
5
+ import { Router } from '@angular/router';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FeaturedCategoryComponent extends BaseSection {
7
8
  private platformId;
8
- private _eventService;
9
+ private readonly router;
10
+ private readonly restService;
9
11
  data?: FeaturedCategoryModal;
10
12
  responseData?: Category[];
11
13
  index?: number;
@@ -13,10 +15,11 @@ export declare class FeaturedCategoryComponent extends BaseSection {
13
15
  delete?: boolean;
14
16
  content?: FeaturedCategoryContentModal;
15
17
  styles?: FeaturedCategoryStylesModel;
16
- constructor(platformId: Object, _eventService: EventsService);
18
+ constructor(platformId: Object, router: Router, restService: RestService);
17
19
  ngOnInit(): void;
18
20
  getSliceParameters(): number[];
19
- redirectToListPage(categoryId: any): void;
21
+ redirectToListPage(category: string): void;
22
+ getAllCategories(): void;
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
21
24
  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; }; }, {}, never, never, true, never>;
22
25
  }
@@ -3,15 +3,14 @@ import { Product } from '../../styles/product.modal';
3
3
  import { ButtonModel } from '../../../styles/style.model';
4
4
  import BaseSection from '../../../sections/BaseSection';
5
5
  import { EventsService } from '.././../../services/events.service';
6
- import { MatSnackBar } from '@angular/material/snack-bar';
7
- import { ActivatedRoute } from '@angular/router';
6
+ import { ActivatedRoute, Router } from '@angular/router';
8
7
  import { RestService } from '../../../services/rest.service';
9
8
  import { CartService } from '../../../services/cart.service';
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class ProductDescComponent extends BaseSection {
12
11
  private platformId;
13
12
  private readonly _eventService;
14
- private readonly snackBar;
13
+ private readonly router;
15
14
  private readonly activatedRoute;
16
15
  private readonly restService;
17
16
  private readonly cartService;
@@ -20,7 +19,7 @@ export declare class ProductDescComponent extends BaseSection {
20
19
  index?: number;
21
20
  edit?: boolean;
22
21
  delete?: boolean;
23
- constructor(platformId: Object, _eventService: EventsService, snackBar: MatSnackBar, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService);
22
+ constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService);
24
23
  buttonId?: string;
25
24
  button?: ButtonModel;
26
25
  styles?: ProductDescStylesModal;
@@ -30,6 +29,7 @@ export declare class ProductDescComponent extends BaseSection {
30
29
  currentImg: any;
31
30
  changeImg(url: any): void;
32
31
  addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
32
+ goToFilter(category: string): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
34
34
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", 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; }; }, {}, never, never, true, never>;
35
35
  }
@@ -41,7 +41,7 @@ export declare class ProductListComponent extends BaseSection {
41
41
  searchTxt: string;
42
42
  ngOnInit(): void;
43
43
  getAllCategories(): void;
44
- getAllCategory(): void;
44
+ getAllCollections(): void;
45
45
  removeFilter(filter: any): void;
46
46
  getProductWidth(): string;
47
47
  proceedToProductDesc(productId: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file