ng-easycommerce 0.0.653 → 0.0.655-beta.1
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 +6 -0
- package/bundles/ng-easycommerce.umd.js +96 -30
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/core.consts.js +6 -1
- package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +5 -4
- package/esm2015/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.js +10 -4
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +27 -2
- package/esm2015/lib/ec-component/product-ec/product-ec.component.js +1 -2
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +5 -4
- package/esm2015/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.js +1 -3
- package/esm2015/lib/services/cart.service.js +27 -12
- package/esm5/lib/core.consts.js +6 -1
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +5 -4
- package/esm5/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.js +10 -4
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +45 -2
- package/esm5/lib/ec-component/product-ec/product-ec.component.js +1 -2
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +5 -4
- package/esm5/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.js +1 -3
- package/esm5/lib/services/cart.service.js +27 -12
- package/fesm2015/ng-easycommerce.js +73 -25
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +97 -31
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/core.consts.d.ts +5 -0
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +2 -0
- package/lib/services/cart.service.d.ts +2 -2
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/lib/core.consts.d.ts
CHANGED
|
@@ -167,6 +167,11 @@ export declare class Constants {
|
|
|
167
167
|
* @example ['AR','ES','GB']
|
|
168
168
|
*/
|
|
169
169
|
private countries;
|
|
170
|
+
/**
|
|
171
|
+
* @description contiene un arreglo de string cuyo contenido son los codigos de los paises a excluir.
|
|
172
|
+
* @example ['GB']
|
|
173
|
+
*/
|
|
174
|
+
excludedCountries: string[];
|
|
170
175
|
/**
|
|
171
176
|
*
|
|
172
177
|
* @param countries debe contener los codigos de los paises que se quiere mostrar
|
|
@@ -36,10 +36,12 @@ export declare class ProductDetailEcComponent extends ComponentHelper implements
|
|
|
36
36
|
hidePrices: boolean;
|
|
37
37
|
creditAccountShowPrices: boolean | null;
|
|
38
38
|
enableFieldNotesInArticleFile: boolean;
|
|
39
|
+
private prefillSub?;
|
|
39
40
|
contact: ElementRef;
|
|
40
41
|
constructor(productService: ProductDetailService, consts: Constants, activedRoute: ActivatedRoute, cartService: CartService, optionsService: OptionsService, productsService: ProductsService, analyticsService: AnalyticsService, router: Router, toastrService: ToastService, meta: Meta, injector: Injector);
|
|
41
42
|
deleteHTML(cadena: string): string;
|
|
42
43
|
ngOnInit(): void;
|
|
44
|
+
ngOnDestroy(): void;
|
|
43
45
|
addToCart: () => void;
|
|
44
46
|
addAllProductosToCart: () => void;
|
|
45
47
|
scroll(): void;
|
|
@@ -92,13 +92,13 @@ export declare class CartService {
|
|
|
92
92
|
*/
|
|
93
93
|
addToCart: (product: Product, quantity: number, variant_id: any, comments?: string) => void;
|
|
94
94
|
addToLot: (product: Product, quantity: number, variant_id: any, id?: any, order_item_id?: any, lot_quantity?: any, unit_price?: any, unit_total?: any, ajustement_total?: any, total_lot?: any, lot_status?: any, date_request?: any, notes?: any, shipping_address_id?: any, shipping_address_name?: any, action?: any) => void;
|
|
95
|
-
addToCartPromise: (product: Product, quantity: number, variant_id: any) => Promise<{
|
|
95
|
+
addToCartPromise: (product: Product, quantity: number, variant_id: any, comments?: string) => Promise<{
|
|
96
96
|
error: boolean;
|
|
97
97
|
}>;
|
|
98
98
|
addAllToCart: (items: any[]) => void;
|
|
99
99
|
addRepeatOrderToCart(items: any[]): void;
|
|
100
100
|
mergeItemsAddAllToCart: (items: any[]) => any[];
|
|
101
|
-
updateItemQuantity: (item: CartItem, quantity: any) => void;
|
|
101
|
+
updateItemQuantity: (item: CartItem, quantity: any, comments?: string) => void;
|
|
102
102
|
validateQuantity: (item: CartItem, quantity: any) => boolean;
|
|
103
103
|
private validatePriceAndCredits;
|
|
104
104
|
hasSufficientCreditsForCartTotal: () => boolean;
|