simpo-component-library 1.4.58 → 1.4.60

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.
@@ -1,10 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { CartService } from '../../../services/cart.service';
3
3
  import { EventsService } from '../../../services/events.service';
4
+ import { StorageServiceService } from '../../../services/storage.service';
5
+ import { RestService } from '../../../services/rest.service';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class WhislistComponent implements OnInit {
6
8
  private readonly cartService;
7
9
  private readonly _eventService;
10
+ private readonly storageService;
11
+ private readonly restService;
8
12
  responseData?: any;
9
13
  data?: any;
10
14
  index?: number;
@@ -12,7 +16,9 @@ export declare class WhislistComponent implements OnInit {
12
16
  delete?: boolean;
13
17
  isLoading: boolean;
14
18
  styles: any;
15
- constructor(cartService: CartService, _eventService: EventsService);
19
+ constructor(cartService: CartService, _eventService: EventsService, storageService: StorageServiceService, restService: RestService);
20
+ private userDetails;
21
+ private USER_WISHLIST_ITEMS;
16
22
  ngOnInit(): void;
17
23
  moveToCart(item: any): void;
18
24
  deleteFromWhislist(item: any): void;
@@ -40,6 +40,7 @@ export declare class EventsService {
40
40
  environmentType: EventEmitter<string>;
41
41
  showLoadingScreen: EventEmitter<boolean>;
42
42
  cashFreeEvent: EventEmitter<unknown>;
43
+ paymentStatusResponse: EventEmitter<unknown>;
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
44
45
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
45
46
  }
@@ -32,6 +32,8 @@ export declare class StorageServiceService {
32
32
  addProductToWishlist(product: OrderedItems): IDBRequest<IDBValidKey>;
33
33
  removeProductFromWishlist(productId: string): IDBRequest<undefined>;
34
34
  getProductFromWishlist(productId: string): Promise<IDBRequest<any>>;
35
+ clearUserCart(): IDBRequest<undefined>;
36
+ clearUserWishlist(): IDBRequest<undefined>;
35
37
  addUser(user: User): User;
36
38
  getUser(): any;
37
39
  storePaymentFor(paymentFor: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.58",
3
+ "version": "1.4.60",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",