simpo-component-library 2.0.18 → 2.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +3 -2
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +78 -56
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
- package/esm2022/lib/services/cart.service.mjs +65 -4
- package/esm2022/lib/services/storage.service.mjs +6 -4
- package/fesm2022/simpo-component-library.mjs +147 -63
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/services/cart.service.d.ts +7 -2
- package/lib/services/storage.service.d.ts +3 -1
- package/package.json +1 -1
- package/simpo-component-library-2.0.19.tgz +0 -0
- package/simpo-component-library-2.0.18.tgz +0 -0
@@ -1,13 +1,15 @@
|
|
1
1
|
import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
|
2
|
-
import { Product } from '../ecommerce/styles/product.modal';
|
2
|
+
import { ItemVariant, Product } from '../ecommerce/styles/product.modal';
|
3
3
|
import { RestService } from './rest.service';
|
4
4
|
import { StorageServiceService } from './storage.service';
|
5
5
|
import { Cart } from '../ecommerce/styles/cart.modal';
|
6
|
+
import { MessageService } from 'primeng/api';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
export declare class CartService {
|
8
9
|
private readonly storageService;
|
9
10
|
private readonly restService;
|
10
|
-
|
11
|
+
private readonly messageService;
|
12
|
+
constructor(storageService: StorageServiceService, restService: RestService, messageService: MessageService);
|
11
13
|
addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
|
12
14
|
addItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
|
13
15
|
removeItemFromWishlistPage(product: OrderedItems, userWishlist: any): import("rxjs").Observable<Object>;
|
@@ -22,6 +24,9 @@ export declare class CartService {
|
|
22
24
|
private objectMapper;
|
23
25
|
storeCartDataToServer(cart: Cart): void;
|
24
26
|
clearCartItems(): void;
|
27
|
+
addItemToLocalCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
28
|
+
isItemOutOfStock(product: Product): boolean;
|
29
|
+
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
25
30
|
storeDataToServer(): void;
|
26
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
|
27
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
|
@@ -4,13 +4,15 @@ import { EventsService } from './events.service';
|
|
4
4
|
import { CookieService } from 'ngx-cookie-service';
|
5
5
|
import { RestService } from './rest.service';
|
6
6
|
import { Router } from '@angular/router';
|
7
|
+
import { MessageService } from 'primeng/api';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
export declare class StorageServiceService {
|
9
10
|
private readonly eventService;
|
10
11
|
private readonly cookieService;
|
11
12
|
private readonly restService;
|
12
13
|
private router;
|
13
|
-
|
14
|
+
private readonly messageService;
|
15
|
+
constructor(eventService: EventsService, cookieService: CookieService, restService: RestService, router: Router, messageService: MessageService);
|
14
16
|
private totalCartItems;
|
15
17
|
get getTotalCartItems(): number;
|
16
18
|
databaseName: string;
|
package/package.json
CHANGED
Binary file
|
Binary file
|