simpo-component-library 1.6.55 → 1.6.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,10 +9,12 @@ import { ActivatedRoute } from '@angular/router';
9
9
  import { ProductCategoryListModal, ProductCategoryListStylesModal } from './product-category-list.model';
10
10
  import { SPACING } from '../../../styles/index';
11
11
  import { LayOutModel } from '../../../styles/style.model';
12
+ import { EventsService } from '../../../services/events.service';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class ProductCategoryListComponent extends BaseSection implements OnInit, OnDestroy {
14
15
  private readonly restService;
15
16
  private readonly cartService;
17
+ private readonly _eventService;
16
18
  private readonly activatedRoute;
17
19
  responseData?: any[];
18
20
  data?: ProductCategoryListModal;
@@ -22,21 +24,24 @@ export declare class ProductCategoryListComponent extends BaseSection implements
22
24
  customClass?: string;
23
25
  styles?: ProductCategoryListStylesModal;
24
26
  productListContainer: ElementRef<HTMLDivElement> | undefined;
27
+ productCategoryListSection: ElementRef<HTMLDivElement> | undefined;
25
28
  categories: Category[];
26
29
  productList: Product[];
27
30
  USER_CART: OrderedItems[];
28
31
  selectedCategory: Category | null;
29
32
  apiLoading: boolean;
30
- constructor(restService: RestService, cartService: CartService, activatedRoute: ActivatedRoute);
33
+ constructor(restService: RestService, cartService: CartService, _eventService: EventsService, activatedRoute: ActivatedRoute);
31
34
  collectionId: string | null;
32
35
  ngOnInit(): void;
33
36
  ngOnDestroy(): void;
34
37
  getAllCategoriesById(): void;
35
38
  selectCategory(category: Category): void;
39
+ scrollElementToTop(): void;
36
40
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
37
41
  getItemVarient(product: Product, varientId: string): ItemVariant | null;
38
42
  getPercentage(product: Product): string;
39
43
  getSupportingColor(color: string): string;
44
+ editSection(): void;
40
45
  get getSpacingLayout(): LayOutModel;
41
46
  get headingSpace(): SPACING;
42
47
  get isMobile(): boolean;
@@ -51,6 +51,7 @@ export declare class ProductDescComponent extends BaseSection {
51
51
  varientLoading: boolean;
52
52
  selectVarient(key: string, value: string): void;
53
53
  getItemVarient(): ItemVariant | null;
54
+ shareProduct(): void;
54
55
  routeToHome(): void;
55
56
  screenWidth: any;
56
57
  getScreenSize(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.6.55",
3
+ "version": "1.6.57",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",