ng-easycommerce-v18 0.2.24 → 0.2.26
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.
- package/README.md +4 -0
- package/assets/ec-i18n/es.json +1 -0
- package/esm2022/lib/ec-components/account-ec/order-ec/order-ec.component.mjs +10 -6
- package/esm2022/lib/ec-components/collection-ec/collection-ec.component.mjs +5 -1
- package/esm2022/lib/ec-services/cart.service.mjs +58 -1
- package/esm2022/lib/ec-services/products.service.mjs +13 -1
- package/fesm2022/ng-easycommerce-v18.mjs +81 -5
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-components/account-ec/order-ec/order-ec.component.d.ts +2 -1
- package/lib/ec-components/collection-ec/collection-ec.component.d.ts +1 -0
- package/lib/ec-services/cart.service.d.ts +3 -0
- package/lib/ec-services/products.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -18,11 +18,12 @@ export declare class OrderEcComponent implements OnInit {
|
|
|
18
18
|
hideTaxes: boolean;
|
|
19
19
|
channelConfig: any;
|
|
20
20
|
numberOrder: any;
|
|
21
|
+
orderObj: any;
|
|
21
22
|
ngOnInit(): void;
|
|
22
23
|
getUrlBase(): string;
|
|
23
24
|
back(): void;
|
|
24
25
|
toDate(date: any, format: any): string;
|
|
25
|
-
repeatOrder(
|
|
26
|
+
repeatOrder(): void;
|
|
26
27
|
mediaUrl: () => string;
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrderEcComponent, never>;
|
|
28
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<OrderEcComponent, "app-order-ec", never, {}, {}, never, never, true, never>;
|
|
@@ -34,6 +34,7 @@ export declare class CollectionEcComponent implements OnInit {
|
|
|
34
34
|
constructor();
|
|
35
35
|
getProducts(): void;
|
|
36
36
|
onScroll(): void;
|
|
37
|
+
productHasStock(product: Product): boolean;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollectionEcComponent, never>;
|
|
38
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<CollectionEcComponent, "lib-collection-ec", never, { "optionsFilters": { "alias": "optionsFilters"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
40
|
}
|
|
@@ -11,6 +11,7 @@ export declare class CartService {
|
|
|
11
11
|
private _channelService;
|
|
12
12
|
private _consts;
|
|
13
13
|
private _storage;
|
|
14
|
+
private _router;
|
|
14
15
|
private _cartSubject;
|
|
15
16
|
private _promotionsSubject;
|
|
16
17
|
private _couponSubject;
|
|
@@ -40,6 +41,7 @@ export declare class CartService {
|
|
|
40
41
|
private _cartBaseUrl;
|
|
41
42
|
updateItemQuantityApi(item_id: any): string;
|
|
42
43
|
addItemApi(): string;
|
|
44
|
+
addAllItemsApi: () => string;
|
|
43
45
|
cartItemsApi(): string;
|
|
44
46
|
deleteItemApi(item_id: string): string;
|
|
45
47
|
couponApi(): string;
|
|
@@ -220,6 +222,7 @@ export declare class CartService {
|
|
|
220
222
|
getRemainingCredits: () => Observable<number | undefined>;
|
|
221
223
|
hasSufficientCreditsForCartTotal: () => boolean;
|
|
222
224
|
private validatePriceAndCredits;
|
|
225
|
+
addRepeatOrderToCart(items: any[]): void;
|
|
223
226
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
|
|
224
227
|
static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
|
|
225
228
|
}
|
|
@@ -57,6 +57,7 @@ export declare class ProductsService {
|
|
|
57
57
|
productWithVariantValues: (product: Product, variant: any, optionValue: any) => Product;
|
|
58
58
|
private getObjectWithVariant;
|
|
59
59
|
getRelatedProducts(product_id: any): Observable<any>;
|
|
60
|
+
hasStock(product: Product): boolean;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductsService, never>;
|
|
61
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProductsService>;
|
|
62
63
|
}
|