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.
- package/README.md +6 -0
- package/assets/ec-i18n/ct.json +2 -1
- package/assets/ec-i18n/en.json +2 -1
- package/assets/ec-i18n/es.json +1 -0
- package/assets/ec-i18n/fr.json +2 -1
- package/assets/ec-i18n/gl.json +2 -1
- package/assets/ec-i18n/pr.json +2 -1
- package/bundles/ng-easycommerce.umd.js +136 -56
- 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/ec-component/cart-ec/cart-ec.component.js +41 -23
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +35 -17
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +42 -16
- package/esm2015/lib/services/cart.service.js +7 -1
- package/esm2015/lib/services/products/product-detail.service.js +11 -4
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +42 -23
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +39 -17
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +42 -16
- package/esm5/lib/services/cart.service.js +7 -1
- package/esm5/lib/services/products/product-detail.service.js +11 -4
- package/fesm2015/ng-easycommerce.js +131 -56
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +136 -56
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/cart-ec/cart-ec.component.d.ts +1 -1
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +9 -7
- package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +1 -1
- package/ng-easycommerce.metadata.json +1 -1
- 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
|
|
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
|
|
48
|
-
* @param
|
|
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?:
|
|
51
|
+
plus: (stock?: number, changeAmount?: number, forceMultiple?: boolean) => void;
|
|
51
52
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
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;
|