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.
Files changed (34) hide show
  1. package/README.md +6 -0
  2. package/bundles/ng-easycommerce.umd.js +90 -27
  3. package/bundles/ng-easycommerce.umd.js.map +1 -1
  4. package/bundles/ng-easycommerce.umd.min.js +1 -1
  5. package/bundles/ng-easycommerce.umd.min.js.map +1 -1
  6. package/esm2015/lib/core.consts.js +2 -1
  7. package/esm2015/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.js +8 -1
  8. package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +5 -4
  9. package/esm2015/lib/ec-component/header-ec/header-ec.component.js +1 -1
  10. package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +27 -2
  11. package/esm2015/lib/ec-component/product-ec/product-ec.component.js +1 -2
  12. package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +5 -4
  13. package/esm2015/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.js +1 -3
  14. package/esm2015/lib/services/cart.service.js +27 -12
  15. package/esm5/lib/core.consts.js +2 -1
  16. package/esm5/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.js +8 -1
  17. package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +5 -4
  18. package/esm5/lib/ec-component/header-ec/header-ec.component.js +1 -1
  19. package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +45 -2
  20. package/esm5/lib/ec-component/product-ec/product-ec.component.js +1 -2
  21. package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +5 -4
  22. package/esm5/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.js +1 -3
  23. package/esm5/lib/services/cart.service.js +27 -12
  24. package/fesm2015/ng-easycommerce.js +67 -22
  25. package/fesm2015/ng-easycommerce.js.map +1 -1
  26. package/fesm5/ng-easycommerce.js +91 -28
  27. package/fesm5/ng-easycommerce.js.map +1 -1
  28. package/lib/core.consts.d.ts +1 -0
  29. package/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.d.ts +1 -0
  30. package/lib/ec-component/header-ec/header-ec.component.d.ts +1 -1
  31. package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +2 -0
  32. package/lib/services/cart.service.d.ts +2 -2
  33. package/ng-easycommerce.metadata.json +1 -1
  34. package/package.json +1 -1
@@ -12,6 +12,7 @@ export declare class Constants {
12
12
  private readonly LOCALE;
13
13
  private readonly CHANNEL;
14
14
  searchValue: string;
15
+ channelSelected: string;
15
16
  private channelConfigSubject;
16
17
  channelConfig$: import("rxjs").Observable<any>;
17
18
  private channelConfigAPI;
@@ -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
- protected consts: Constants;
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;