ng-easycommerce 0.0.623 → 0.0.625

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 (30) hide show
  1. package/README.md +6 -0
  2. package/assets/ec-i18n/ct.json +2 -1
  3. package/assets/ec-i18n/en.json +2 -1
  4. package/assets/ec-i18n/es.json +1 -0
  5. package/assets/ec-i18n/fr.json +2 -1
  6. package/assets/ec-i18n/gl.json +2 -1
  7. package/assets/ec-i18n/pr.json +2 -1
  8. package/bundles/ng-easycommerce.umd.js +136 -56
  9. package/bundles/ng-easycommerce.umd.js.map +1 -1
  10. package/bundles/ng-easycommerce.umd.min.js +1 -1
  11. package/bundles/ng-easycommerce.umd.min.js.map +1 -1
  12. package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +41 -23
  13. package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +35 -17
  14. package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +42 -16
  15. package/esm2015/lib/services/cart.service.js +7 -1
  16. package/esm2015/lib/services/products/product-detail.service.js +11 -4
  17. package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +42 -23
  18. package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +39 -17
  19. package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +42 -16
  20. package/esm5/lib/services/cart.service.js +7 -1
  21. package/esm5/lib/services/products/product-detail.service.js +11 -4
  22. package/fesm2015/ng-easycommerce.js +131 -56
  23. package/fesm2015/ng-easycommerce.js.map +1 -1
  24. package/fesm5/ng-easycommerce.js +136 -56
  25. package/fesm5/ng-easycommerce.js.map +1 -1
  26. package/lib/ec-component/cart-ec/cart-ec.component.d.ts +1 -1
  27. package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +9 -7
  28. package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +1 -1
  29. package/ng-easycommerce.metadata.json +1 -1
  30. package/package.json +1 -1
@@ -42,7 +42,7 @@ export declare class CartEcComponent extends ComponentHelper implements OnInit {
42
42
  updateLoggedIn(): void;
43
43
  ngOnInit(): void;
44
44
  toDecimal: (amount: any) => any;
45
- actualizarCantidad: (item: any, cantidad: any, stock: any, id?: any) => void;
45
+ protected actualizarCantidad(item: any, cantidad: number | string, stock: number, id?: string): void;
46
46
  redirectCheckout(): boolean;
47
47
  redirectRegister: () => Promise<boolean>;
48
48
  openModal(template: TemplateRef<any>): void;
@@ -44,15 +44,17 @@ export declare class ProductDetailEcComponent extends ComponentHelper implements
44
44
  saveRef: (carousel: any) => void;
45
45
  /**
46
46
  * @description actualiza la variable quantity sumandole 'x' contenido.
47
- * @param stock debe recibir un number que contenga el stock disponible.
48
- * @param multipleQuantity debe recibir el multiplo de cantidad que se quiera incrementar.
47
+ * @param stock número máximo disponible en stock.
48
+ * @param changeAmount cantidad que se quiere sumar.
49
+ * @param forceMultiple si es true, obliga a que el resultado sea múltiplo de changeAmount.
49
50
  */
50
- plus: (stock?: any, multipleQuantity?: any) => void;
51
+ plus: (stock?: number, changeAmount?: number, forceMultiple?: boolean) => void;
51
52
  /**
52
- * @description actualiza la varible quantity restandole 'x' contenido.
53
- * @param multipleQuantity debe recibir el multiplo de cantidad que se quiera decrementar.
54
- */
55
- less: (multipleQuantity?: any) => void;
53
+ * @description actualiza la variable quantity restandole 'x' contenido.
54
+ * @param changeAmount cantidad que se quiere restar.
55
+ * @param forceMultiple si es true, obliga a que el resultado sea múltiplo de changeAmount.
56
+ */
57
+ less: (changeAmount?: number, forceMultiple?: boolean) => void;
56
58
  showContact: () => boolean;
57
59
  hideContact: () => boolean;
58
60
  thereIsMoreInfo: (product: any) => any;
@@ -22,7 +22,7 @@ export declare class SidebarEcComponent {
22
22
  showTaxLegend: boolean;
23
23
  constructor(cartService: CartService, consts: Constants, authService: AuthService, router: Router, toastrService: ToastService, channelConfigService: ChannelConfigService);
24
24
  ngOnInit(): void;
25
- actualizarCantidad: (item: any, cantidad: any, stock: any, id?: any) => void;
25
+ protected actualizarCantidad(item: any, cantidad: number | string, stock: number, id?: string): void;
26
26
  redirectDetailProduct(product: any): void;
27
27
  getVariants: (product: any) => any[];
28
28
  createDiscountMessage(saleprice: number, price: number): string;