ng-easycommerce 0.0.430 → 0.0.433

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 (38) hide show
  1. package/README.md +13 -0
  2. package/bundles/ng-easycommerce.umd.js +285 -61
  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/ec-component/account-ec/order-ec/order-ec.component.js +2 -2
  7. package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +2 -2
  8. package/esm2015/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +2 -2
  9. package/esm2015/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.js +3 -2
  10. package/esm2015/lib/ec-component/compared-products-ec/compared-products-ec.component.js +186 -0
  11. package/esm2015/lib/ec-component/index.js +4 -1
  12. package/esm2015/lib/ec-component/related-products-ec/related-products-ec.component.js +10 -2
  13. package/esm2015/lib/services/auth.service.js +9 -1
  14. package/esm2015/lib/services/checkout/shipment.service.js +5 -5
  15. package/esm2015/ng-easycommerce.js +19 -18
  16. package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +2 -2
  17. package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +2 -2
  18. package/esm5/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +2 -2
  19. package/esm5/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.js +3 -2
  20. package/esm5/lib/ec-component/compared-products-ec/compared-products-ec.component.js +209 -0
  21. package/esm5/lib/ec-component/index.js +4 -1
  22. package/esm5/lib/ec-component/related-products-ec/related-products-ec.component.js +10 -2
  23. package/esm5/lib/services/auth.service.js +12 -1
  24. package/esm5/lib/services/checkout/shipment.service.js +5 -5
  25. package/esm5/ng-easycommerce.js +19 -18
  26. package/fesm2015/ng-easycommerce.js +242 -45
  27. package/fesm2015/ng-easycommerce.js.map +1 -1
  28. package/fesm5/ng-easycommerce.js +268 -45
  29. package/fesm5/ng-easycommerce.js.map +1 -1
  30. package/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.d.ts +1 -0
  31. package/lib/ec-component/compared-products-ec/compared-products-ec.component.d.ts +70 -0
  32. package/lib/ec-component/index.d.ts +1 -0
  33. package/lib/ec-component/related-products-ec/related-products-ec.component.d.ts +2 -0
  34. package/lib/services/auth.service.d.ts +7 -0
  35. package/lib/services/checkout/shipment.service.d.ts +1 -1
  36. package/ng-easycommerce.d.ts +18 -17
  37. package/ng-easycommerce.metadata.json +1 -1
  38. package/package.json +1 -1
@@ -17,6 +17,7 @@ export declare class ShipmentEcComponent extends ComponentHelper implements OnIn
17
17
  selected_final: any;
18
18
  costos: any;
19
19
  costs: any[];
20
+ moreInfoInMethod: any;
20
21
  contracts: any[];
21
22
  constructor(shipmentService: ShipmentService, toastrService: ToastService, productsService: ProductsService, checkoutService: CheckoutService);
22
23
  emitResult: (method_name: any, contract_data: any) => void;
@@ -0,0 +1,70 @@
1
+ import { OnInit, SimpleChanges, EventEmitter } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { ComponentHelper } from '../../classes/component-helper';
4
+ import { Constants } from '../../core.consts';
5
+ import { AnalyticsService } from '../../services/analytics.service';
6
+ import { ProductsService } from '../../services/products/products.service';
7
+ export declare class ComparedProductsEcComponent extends ComponentHelper implements OnInit {
8
+ protected productsService: ProductsService;
9
+ private analyticsService;
10
+ consts: Constants;
11
+ router: Router;
12
+ /**
13
+ * @description id del producto principal
14
+ */
15
+ product_id: any;
16
+ /**
17
+ * @description valor que se utilizara para cuando un producto no tenga datos
18
+ * en el atributo asignado.
19
+ */
20
+ emptyValue: string;
21
+ /**
22
+ * @description valor que se utilizara para la clase de los estilos de la etiqueta <table>
23
+ */
24
+ classes: string;
25
+ /**
26
+ * @description tamaño de la tabla responsive (sm | md| lg | xl | xxl)
27
+ */
28
+ set setSize(value: string);
29
+ size: string;
30
+ /**
31
+ * @description emite true si se genero algun error en la carga, false caso contrario
32
+ */
33
+ error: EventEmitter<boolean>;
34
+ comparedProducts: any[];
35
+ attributes: any;
36
+ matrixComparedProducts: any;
37
+ loading: boolean;
38
+ /**
39
+ * @description arreglo con las palabras claves para obtener la asociacion para comparar los productos.
40
+ */
41
+ private keywordsToCompare;
42
+ constructor(productsService: ProductsService, analyticsService: AnalyticsService, consts: Constants, router: Router);
43
+ ngOnInit(): void;
44
+ /**
45
+ * @description carga los datos que seran comparados
46
+ * @param product_id
47
+ */
48
+ load: (product_id: any) => void;
49
+ /**
50
+ * @description hace un merge de todos los atributos que tengan los productos.
51
+ * @param products
52
+ */
53
+ mergeAttributes: (products: any) => void;
54
+ /**
55
+ * @description genera una matriz de los datos de cada producto para compararlos
56
+ * @returns un objeto cuya clave es el nombre del atributo y sus valores un
57
+ * arreglo con los datos de los productos para ese atributo, en caso de no tener
58
+ * datos en ese atributo se reemplaza por el valor de la variable emptyValue.
59
+ */
60
+ buildMatrix: () => {};
61
+ /**
62
+ * @description chequea si la palabra pasada por parametro existe en el arreglo de
63
+ * palabras claves para comparar (keywordsToCompare)
64
+ * @param word
65
+ * @returns un valor booleano, true si existe, false caso contrario
66
+ */
67
+ includeKeyword: (word: string) => boolean;
68
+ ngOnChanges(changes: SimpleChanges): void;
69
+ customOptions: any;
70
+ }
@@ -61,3 +61,4 @@ export * from "./widgets-ec/zoom-ec/magnizoom.component";
61
61
  export * from "./multiple-items-to-cart-ec/multiple-items-to-cart-ec.component";
62
62
  export * from "./widgets-ec/re-captcha-ec/re-captcha-ec.component";
63
63
  export * from "./widgets-ec/decidir-ec/decidir-ec.component";
64
+ export * from "./compared-products-ec/compared-products-ec.component";
@@ -12,9 +12,11 @@ export declare class RelatedProductsEcComponent extends ComponentHelper implemen
12
12
  relatedProducts: any[];
13
13
  product_id: any;
14
14
  name: any;
15
+ private keywordsToCompare;
15
16
  constructor(productsService: ProductsService, analyticsService: AnalyticsService, consts: Constants, router: Router);
16
17
  ngOnInit(): void;
17
18
  load(product_id: any): void;
19
+ includeKeyword: (word: string) => boolean;
18
20
  ngOnChanges(changes: SimpleChanges): void;
19
21
  customOptions: any;
20
22
  }
@@ -88,4 +88,11 @@ export declare class AuthService {
88
88
  setHomeResolver: (resolverFunction: any) => any;
89
89
  getHomeResolver: () => any;
90
90
  isAbleToBuy: () => boolean;
91
+ /**
92
+ * @description Evalua si el valor que ingresa por parámetro es mayor o igual al mínimo de compra
93
+ * que el usuario tiene asignado a ese canal, diferenciando si es mayorista o minorista.
94
+ * @param {number} value
95
+ * @returns {boolean} true si excede el monto, false caso contrario
96
+ */
97
+ exceedsMinimumAmount: (value?: number) => boolean;
91
98
  }
@@ -28,7 +28,7 @@ export declare class ShipmentService extends StepService {
28
28
  /**
29
29
  * @param moreInfoInMethod por defecto su estado es false, si se desea que visualice información adicional de cada método de envió asignar true.
30
30
  */
31
- moreInfoInMethod: boolean;
31
+ static moreInfoInMethod: boolean;
32
32
  shipmentMethodsApi: () => string;
33
33
  persistShipmentApi: () => string;
34
34
  putShipmentApi: () => string;
@@ -2,25 +2,26 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public-api';
5
- export { StepService as ɵn } from './lib/classes/checkout/step-service';
6
- export { ComponentHelper as ɵf } from './lib/classes/component-helper';
5
+ export { StepService as ɵo } from './lib/classes/checkout/step-service';
6
+ export { ComponentHelper as ɵg } from './lib/classes/component-helper';
7
+ export { ComparedProductsEcComponent as ɵf } from './lib/ec-component/compared-products-ec/compared-products-ec.component';
7
8
  export { components as ɵb } from './lib/ec-component/index';
8
9
  export { SellerDashboardContainerEcComponent as ɵc } from './lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component';
9
10
  export { RecaptchaEcComponent as ɵe } from './lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component';
10
11
  export { MagnizoomComponent as ɵd } from './lib/ec-component/widgets-ec/zoom-ec/magnizoom.component';
11
- export { directives as ɵq } from './lib/ec-directive/index';
12
- export { ProductOffDirective as ɵr } from './lib/ec-directive/product-off.directive';
13
- export { pipes as ɵs } from './lib/ec-pipe/index';
14
- export { CustomerInterceptor as ɵv } from './lib/interceptors/customer.interceptor';
12
+ export { directives as ɵr } from './lib/ec-directive/index';
13
+ export { ProductOffDirective as ɵs } from './lib/ec-directive/product-off.directive';
14
+ export { pipes as ɵt } from './lib/ec-pipe/index';
15
+ export { CustomerInterceptor as ɵw } from './lib/interceptors/customer.interceptor';
15
16
  export { OrderByPipe as ɵa } from './lib/pipes/order-by.pipe';
16
- export { BlocksRepositoryService as ɵg } from './lib/services/blocks/blocks-repository.service';
17
- export { ErrorHandlerService as ɵo } from './lib/services/checkout/error-handler.service';
18
- export { DopplerService as ɵl } from './lib/utils/analytics/doppler.service';
19
- export { FacebookPixelService as ɵh } from './lib/utils/analytics/facebook-pixel.service';
20
- export { GoogleAnalyticsService as ɵi } from './lib/utils/analytics/google-analytics.service';
21
- export { GTMService as ɵj } from './lib/utils/analytics/gtm.service';
22
- export { MetricoolPixelService as ɵk } from './lib/utils/analytics/metricool-pixel.service';
23
- export { OptionsOfProductListDataReceiverService as ɵt } from './lib/utils/options-of-product-list-data.service';
24
- export { OrderUtilityService as ɵm } from './lib/utils/order-util.service';
25
- export { PaymentUtils as ɵu } from './lib/utils/payment-utils.service';
26
- export { ShipmentDataTransformer as ɵp } from './lib/utils/shipment-transformer.service';
17
+ export { BlocksRepositoryService as ɵh } from './lib/services/blocks/blocks-repository.service';
18
+ export { ErrorHandlerService as ɵp } from './lib/services/checkout/error-handler.service';
19
+ export { DopplerService as ɵm } from './lib/utils/analytics/doppler.service';
20
+ export { FacebookPixelService as ɵi } from './lib/utils/analytics/facebook-pixel.service';
21
+ export { GoogleAnalyticsService as ɵj } from './lib/utils/analytics/google-analytics.service';
22
+ export { GTMService as ɵk } from './lib/utils/analytics/gtm.service';
23
+ export { MetricoolPixelService as ɵl } from './lib/utils/analytics/metricool-pixel.service';
24
+ export { OptionsOfProductListDataReceiverService as ɵu } from './lib/utils/options-of-product-list-data.service';
25
+ export { OrderUtilityService as ɵn } from './lib/utils/order-util.service';
26
+ export { PaymentUtils as ɵv } from './lib/utils/payment-utils.service';
27
+ export { ShipmentDataTransformer as ɵq } from './lib/utils/shipment-transformer.service';