ng-easycommerce 0.0.609 → 0.0.611
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 +8 -0
- package/assets/ec-i18n/ct.json +4 -1
- package/assets/ec-i18n/en.json +2 -0
- package/assets/ec-i18n/es.json +2 -0
- package/assets/ec-i18n/fr.json +4 -1
- package/assets/ec-i18n/gl.json +4 -1
- package/assets/ec-i18n/pr.json +4 -1
- package/bundles/ng-easycommerce.umd.js +137 -80
- 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 +4 -8
- package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +4 -8
- package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +5 -3
- package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +29 -18
- package/esm2015/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +6 -4
- package/esm2015/lib/ec-component/header-ec/header-ec.component.js +2 -1
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +2 -2
- package/esm2015/lib/ec-component/product-ec/product-ec.component.js +2 -2
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +2 -2
- package/esm2015/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +51 -6
- package/esm2015/lib/services/cart.service.js +34 -33
- package/esm2015/lib/services/checkout/checkout.service.js +5 -5
- package/esm2015/lib/services/products/product-detail.service.js +5 -2
- package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +4 -8
- package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +4 -8
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +5 -3
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +29 -18
- package/esm5/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +6 -4
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +2 -1
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +2 -2
- package/esm5/lib/ec-component/product-ec/product-ec.component.js +2 -2
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +2 -2
- package/esm5/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +52 -6
- package/esm5/lib/services/cart.service.js +34 -33
- package/esm5/lib/services/checkout/checkout.service.js +5 -5
- package/esm5/lib/services/products/product-detail.service.js +5 -2
- package/fesm2015/ng-easycommerce.js +136 -80
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +137 -80
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/account-ec/order-ec/order-ec.component.d.ts +1 -2
- package/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.d.ts +1 -2
- package/lib/ec-component/cart-ec/cart-ec.component.d.ts +2 -1
- package/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.d.ts +6 -4
- package/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.d.ts +1 -1
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +1 -1
- package/lib/ec-component/product-ec/product-ec.component.d.ts +1 -1
- package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +1 -1
- package/lib/ec-component/widgets-ec/price-ec/price-ec.component.d.ts +23 -6
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -20,8 +20,7 @@ export declare class OrderEcComponent extends ComponentHelper implements OnInit
|
|
|
20
20
|
error: any;
|
|
21
21
|
numberOrder: any;
|
|
22
22
|
allowRepeatOrders: boolean;
|
|
23
|
-
|
|
24
|
-
creditAmountConfigured: boolean;
|
|
23
|
+
creditAccountShowPrices: boolean | null;
|
|
25
24
|
hidePrices: boolean;
|
|
26
25
|
hideDiscounts: boolean;
|
|
27
26
|
hideTaxes: boolean;
|
|
@@ -17,8 +17,7 @@ export declare class OrdersEcComponent extends ComponentHelper implements OnInit
|
|
|
17
17
|
error: any;
|
|
18
18
|
sortValue: any;
|
|
19
19
|
showImage: boolean;
|
|
20
|
-
|
|
21
|
-
creditAmountConfigured: boolean;
|
|
20
|
+
creditAccountShowPrices: boolean | null;
|
|
22
21
|
hidePrices: boolean;
|
|
23
22
|
/**
|
|
24
23
|
* @description name -> nombre de clave de valuesToSort; asc -> true: ascendente, false: descendente
|
|
@@ -35,7 +35,8 @@ export declare class CartEcComponent extends ComponentHelper implements OnInit {
|
|
|
35
35
|
hidePrices: boolean;
|
|
36
36
|
hideDiscounts: boolean;
|
|
37
37
|
hideTaxes: boolean;
|
|
38
|
-
creditAccountShowPrices: boolean;
|
|
38
|
+
creditAccountShowPrices: boolean | null;
|
|
39
|
+
showPriceWithoutTaxes: boolean;
|
|
39
40
|
constructor(cartService: CartService, authService: AuthService, consts: Constants, productsService: ProductsService, router: Router, modalService: BsModalService, toastrService: ToastService, addressingService: AddressingService, channelConfigService: ChannelConfigService);
|
|
40
41
|
ngOnChanges(): void;
|
|
41
42
|
updateLoggedIn(): void;
|
|
@@ -12,13 +12,15 @@ export declare class DetailCheckoutBlockEcComponent extends ComponentHelper impl
|
|
|
12
12
|
data: any;
|
|
13
13
|
discountTotal: number;
|
|
14
14
|
couponTotal: number;
|
|
15
|
-
|
|
16
|
-
creditAmountConfigured: boolean;
|
|
15
|
+
creditAccountShowPrices: boolean | null;
|
|
17
16
|
hideDiscounts: boolean;
|
|
18
17
|
hideTaxes: boolean;
|
|
18
|
+
showPriceWithoutTaxes: boolean;
|
|
19
19
|
constructor(checkoutService: CheckoutService, cartService: CartService, channelConfigService: ChannelConfigService);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
calcularTotales(): void;
|
|
22
|
-
getIcon: (data_item: CheckoutData) => "fas fa-ticket-alt fa-
|
|
23
|
-
getIcon2: (data_type: any) => "fas fa-ticket-alt fa-
|
|
22
|
+
getIcon: (data_item: CheckoutData) => "fas fa-ticket-alt fa-2x" | "fas fa-tags fa-2x" | "fas fa-shipping-fast fa-2x" | "fas fa-boxes fa-2x" | "fas fa-file-invoice-dollar fa-2x" | "fas fa-shopping-basket fa-2x";
|
|
23
|
+
getIcon2: (data_type: any) => "fas fa-ticket-alt fa-2x" | "fas fa-tags fa-2x";
|
|
24
|
+
getTypeLabel(type: string): string;
|
|
25
|
+
shouldShowItem(type: string): boolean;
|
|
24
26
|
}
|
|
@@ -24,7 +24,7 @@ export declare class PaymentEcComponent extends ComponentHelper implements OnCha
|
|
|
24
24
|
method_data$: import("rxjs").Observable<any>;
|
|
25
25
|
loading$: import("rxjs").Observable<boolean>;
|
|
26
26
|
total_amount: any;
|
|
27
|
-
allowAnyPaymentMethod: boolean;
|
|
27
|
+
allowAnyPaymentMethod: boolean | null;
|
|
28
28
|
constructor(renderer: Renderer2, toastr: ToastService, paymentService: PaymentService, checkoutService: CheckoutService, cartService: CartService);
|
|
29
29
|
ngOnChanges(): void;
|
|
30
30
|
ngOnInit(): void;
|
|
@@ -33,7 +33,7 @@ export declare class ProductDetailEcComponent extends ComponentHelper implements
|
|
|
33
33
|
owlOptions: {};
|
|
34
34
|
showReviews: boolean;
|
|
35
35
|
hidePrices: boolean;
|
|
36
|
-
creditAccountShowPrices: boolean;
|
|
36
|
+
creditAccountShowPrices: boolean | null;
|
|
37
37
|
contact: ElementRef;
|
|
38
38
|
constructor(productService: ProductDetailService, consts: Constants, activedRoute: ActivatedRoute, cartService: CartService, optionsService: OptionsService, productsService: ProductsService, analyticsService: AnalyticsService, router: Router, toastrService: ToastService, meta: Meta, injector: Injector);
|
|
39
39
|
deleteHTML(cadena: string): string;
|
|
@@ -21,7 +21,7 @@ export declare class ProductEcComponent extends ComponentHelper implements OnIni
|
|
|
21
21
|
stock: number;
|
|
22
22
|
data: any;
|
|
23
23
|
hidePrices: boolean;
|
|
24
|
-
creditAccountShowPrices: boolean;
|
|
24
|
+
creditAccountShowPrices: boolean | null;
|
|
25
25
|
/**
|
|
26
26
|
* @description variable utilizada mutar de la vista de lista, a la de box.
|
|
27
27
|
*/
|
|
@@ -18,7 +18,7 @@ export declare class SidebarEcComponent {
|
|
|
18
18
|
variantsToShow: string[];
|
|
19
19
|
hideDiscounts: boolean;
|
|
20
20
|
hideTaxes: boolean;
|
|
21
|
-
creditAccountShowPrices: boolean;
|
|
21
|
+
creditAccountShowPrices: boolean | null;
|
|
22
22
|
constructor(cartService: CartService, consts: Constants, authService: AuthService, router: Router, toastrService: ToastService, channelConfigService: ChannelConfigService);
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
actualizarCantidad: (item: any, cantidad: any, stock: any, id?: any) => void;
|
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ComponentHelper } from '../../../classes/component-helper';
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
3
2
|
import { ProductsService } from '../../../services/products/products.service';
|
|
3
|
+
import { ComponentHelper } from '../../../classes/component-helper';
|
|
4
|
+
import { ChannelConfigService } from '../../../services/channel-config.service';
|
|
4
5
|
export declare class PriceEcComponent extends ComponentHelper implements OnInit {
|
|
5
6
|
productsService: ProductsService;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
private channelConfigService;
|
|
8
|
+
price: string;
|
|
9
|
+
saleprice: string;
|
|
8
10
|
priceSize: boolean;
|
|
9
|
-
classStrSpacing:
|
|
10
|
-
|
|
11
|
+
classStrSpacing: string;
|
|
12
|
+
basePrice: string;
|
|
13
|
+
taxeAmount: number;
|
|
14
|
+
taxes: {
|
|
15
|
+
name: string;
|
|
16
|
+
amount: number;
|
|
17
|
+
}[];
|
|
18
|
+
showTaxLegendOnly: boolean;
|
|
19
|
+
disableTaxInfo: boolean;
|
|
20
|
+
customPriceTemplate: TemplateRef<any>;
|
|
21
|
+
customSalePriceTemplate: TemplateRef<any>;
|
|
22
|
+
customSimplePriceTemplate: TemplateRef<any>;
|
|
23
|
+
customSimpleSalePriceTemplate: TemplateRef<any>;
|
|
24
|
+
customTaxTemplate: TemplateRef<any>;
|
|
25
|
+
customOnlyTaxLabelTemplate: TemplateRef<any>;
|
|
26
|
+
showPriceWithoutTaxes: boolean;
|
|
27
|
+
constructor(productsService: ProductsService, channelConfigService: ChannelConfigService);
|
|
11
28
|
ngOnInit(): void;
|
|
12
29
|
}
|