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.
- package/README.md +13 -0
- package/bundles/ng-easycommerce.umd.js +285 -61
- 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/account-ec/order-ec/order-ec.component.js +2 -2
- package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +2 -2
- package/esm2015/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +2 -2
- package/esm2015/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.js +3 -2
- package/esm2015/lib/ec-component/compared-products-ec/compared-products-ec.component.js +186 -0
- package/esm2015/lib/ec-component/index.js +4 -1
- package/esm2015/lib/ec-component/related-products-ec/related-products-ec.component.js +10 -2
- package/esm2015/lib/services/auth.service.js +9 -1
- package/esm2015/lib/services/checkout/shipment.service.js +5 -5
- package/esm2015/ng-easycommerce.js +19 -18
- package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +2 -2
- package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +2 -2
- package/esm5/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +2 -2
- package/esm5/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.js +3 -2
- package/esm5/lib/ec-component/compared-products-ec/compared-products-ec.component.js +209 -0
- package/esm5/lib/ec-component/index.js +4 -1
- package/esm5/lib/ec-component/related-products-ec/related-products-ec.component.js +10 -2
- package/esm5/lib/services/auth.service.js +12 -1
- package/esm5/lib/services/checkout/shipment.service.js +5 -5
- package/esm5/ng-easycommerce.js +19 -18
- package/fesm2015/ng-easycommerce.js +242 -45
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +268 -45
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.d.ts +1 -0
- package/lib/ec-component/compared-products-ec/compared-products-ec.component.d.ts +70 -0
- package/lib/ec-component/index.d.ts +1 -0
- package/lib/ec-component/related-products-ec/related-products-ec.component.d.ts +2 -0
- package/lib/services/auth.service.d.ts +7 -0
- package/lib/services/checkout/shipment.service.d.ts +1 -1
- package/ng-easycommerce.d.ts +18 -17
- package/ng-easycommerce.metadata.json +1 -1
- 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;
|
package/ng-easycommerce.d.ts
CHANGED
|
@@ -2,25 +2,26 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export { StepService as
|
|
6
|
-
export { ComponentHelper as
|
|
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
|
|
12
|
-
export { ProductOffDirective as
|
|
13
|
-
export { pipes as
|
|
14
|
-
export { CustomerInterceptor as
|
|
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
|
|
17
|
-
export { ErrorHandlerService as
|
|
18
|
-
export { DopplerService as
|
|
19
|
-
export { FacebookPixelService as
|
|
20
|
-
export { GoogleAnalyticsService as
|
|
21
|
-
export { GTMService as
|
|
22
|
-
export { MetricoolPixelService as
|
|
23
|
-
export { OptionsOfProductListDataReceiverService as
|
|
24
|
-
export { OrderUtilityService as
|
|
25
|
-
export { PaymentUtils as
|
|
26
|
-
export { ShipmentDataTransformer as
|
|
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';
|