ng-easycommerce 0.0.654 → 0.0.656-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 +90 -27
- 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 +2 -1
- package/esm2015/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.js +8 -1
- package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +5 -4
- package/esm2015/lib/ec-component/header-ec/header-ec.component.js +1 -1
- 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 +2 -1
- package/esm5/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.js +8 -1
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +5 -4
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +1 -1
- 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 +67 -22
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +91 -28
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/core.consts.d.ts +1 -0
- package/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.d.ts +1 -0
- package/lib/ec-component/header-ec/header-ec.component.d.ts +1 -1
- 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
|
@@ -13,6 +13,7 @@ export declare class SelectChannelEcComponent extends ComponentHelper implements
|
|
|
13
13
|
subs: Subscription;
|
|
14
14
|
subsModal: Subscription;
|
|
15
15
|
channels: any[];
|
|
16
|
+
private unloadHandler;
|
|
16
17
|
constructor(authService: AuthService, modalService: BsModalService, router: Router);
|
|
17
18
|
ngOnInit(): void;
|
|
18
19
|
ngOnDestroy(): void;
|
|
@@ -12,7 +12,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
12
12
|
import { ChannelConfigService } from '../../services/channel-config.service';
|
|
13
13
|
export declare class HeaderEcComponent extends ComponentHelper implements OnInit {
|
|
14
14
|
router: Router;
|
|
15
|
-
|
|
15
|
+
consts: Constants;
|
|
16
16
|
cartService: CartService;
|
|
17
17
|
protected optionsService: OptionsService;
|
|
18
18
|
paramsService: ParametersService;
|
|
@@ -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;
|