ng-easycommerce 0.0.615 → 0.0.616
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 +2 -0
- package/bundles/ng-easycommerce.umd.js +10 -10
- 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 +3 -3
- package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +4 -4
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +3 -3
- package/esm2015/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +4 -4
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +3 -3
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +4 -4
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +3 -3
- package/esm5/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +4 -4
- package/fesm2015/ng-easycommerce.js +10 -10
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +10 -10
- 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/checkout-ec/detail-checkout-block-ec/detail-checkout-block-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 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# version 0.0.616
|
|
2
|
+
- reemplazar `showPriceWithoutTaxes` por `showTaxLegend` de impuestos nacionales.
|
|
1
3
|
# version 0.0.615
|
|
2
4
|
- Corrección en subtotal de carrito y checkout. Ahora el subtotal se obtiene desde totals.subtotal en lugar de totals.items, para reflejar correctamente el valor sin impuestos ni descuentos.
|
|
3
5
|
# version 0.0.614
|
|
@@ -7422,7 +7422,7 @@
|
|
|
7422
7422
|
_this.hideDiscounts = false;
|
|
7423
7423
|
_this.hideTaxes = false;
|
|
7424
7424
|
_this.creditAccountShowPrices = null;
|
|
7425
|
-
_this.
|
|
7425
|
+
_this.showTaxLegend = false;
|
|
7426
7426
|
_this.toDecimal = function (amount) { return _this.consts.toDecimal(amount); };
|
|
7427
7427
|
_this.actualizarCantidad = function (item, cantidad, stock, id) {
|
|
7428
7428
|
if (id) {
|
|
@@ -7512,7 +7512,7 @@
|
|
|
7512
7512
|
_this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
|
|
7513
7513
|
_this.hideDiscounts = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideDiscounts, (_d !== null && _d !== void 0 ? _d : false));
|
|
7514
7514
|
_this.hideTaxes = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.hideTaxes, (_f !== null && _f !== void 0 ? _f : false));
|
|
7515
|
-
_this.
|
|
7515
|
+
_this.showTaxLegend = (_h = (_g = channel) === null || _g === void 0 ? void 0 : _g.showTaxLegend, (_h !== null && _h !== void 0 ? _h : false));
|
|
7516
7516
|
if (_this.hidePrices) {
|
|
7517
7517
|
_this.router.navigate(['/']);
|
|
7518
7518
|
}
|
|
@@ -12343,7 +12343,7 @@
|
|
|
12343
12343
|
_this.taxes = [];
|
|
12344
12344
|
_this.showTaxLegendOnly = false;
|
|
12345
12345
|
_this.disableTaxInfo = false;
|
|
12346
|
-
_this.
|
|
12346
|
+
_this.showTaxLegend = false;
|
|
12347
12347
|
_this.hideTaxes = false;
|
|
12348
12348
|
_this.ecOnConstruct();
|
|
12349
12349
|
return _this;
|
|
@@ -12352,7 +12352,7 @@
|
|
|
12352
12352
|
var _this = this;
|
|
12353
12353
|
this.channelConfigService.channelConfig$.subscribe(function (channel) {
|
|
12354
12354
|
var _a, _b, _c;
|
|
12355
|
-
_this.
|
|
12355
|
+
_this.showTaxLegend = (_a = channel) === null || _a === void 0 ? void 0 : _a.showTaxLegend;
|
|
12356
12356
|
_this.hideTaxes = (_c = (_b = channel) === null || _b === void 0 ? void 0 : _b.hideTaxes, (_c !== null && _c !== void 0 ? _c : false));
|
|
12357
12357
|
});
|
|
12358
12358
|
this.ecOnInit();
|
|
@@ -12360,7 +12360,7 @@
|
|
|
12360
12360
|
Object.defineProperty(PriceEcComponent.prototype, "shouldShowTaxes", {
|
|
12361
12361
|
get: function () {
|
|
12362
12362
|
return !this.disableTaxInfo &&
|
|
12363
|
-
|
|
12363
|
+
this.showTaxLegend &&
|
|
12364
12364
|
!this.hideTaxes &&
|
|
12365
12365
|
!!this.basePrice &&
|
|
12366
12366
|
!!this.taxeAmount;
|
|
@@ -14344,7 +14344,7 @@
|
|
|
14344
14344
|
_this.creditAccountShowPrices = null;
|
|
14345
14345
|
_this.hideDiscounts = false;
|
|
14346
14346
|
_this.hideTaxes = false;
|
|
14347
|
-
_this.
|
|
14347
|
+
_this.showTaxLegend = false;
|
|
14348
14348
|
_this.getIcon = function (data_item) {
|
|
14349
14349
|
switch (data_item.type) {
|
|
14350
14350
|
case 'coupon': return 'fas fa-ticket-alt fa-2x';
|
|
@@ -14382,7 +14382,7 @@
|
|
|
14382
14382
|
var _a, _b, _c, _d, _e, _f;
|
|
14383
14383
|
_this.hideDiscounts = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hideDiscounts, (_b !== null && _b !== void 0 ? _b : false));
|
|
14384
14384
|
_this.hideTaxes = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideTaxes, (_d !== null && _d !== void 0 ? _d : false));
|
|
14385
|
-
_this.
|
|
14385
|
+
_this.showTaxLegend = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.showTaxLegend, (_f !== null && _f !== void 0 ? _f : false));
|
|
14386
14386
|
});
|
|
14387
14387
|
};
|
|
14388
14388
|
DetailCheckoutBlockEcComponent.prototype.calcularTotales = function () {
|
|
@@ -14397,7 +14397,7 @@
|
|
|
14397
14397
|
};
|
|
14398
14398
|
DetailCheckoutBlockEcComponent.prototype.getTypeLabel = function (type) {
|
|
14399
14399
|
if (type === 'taxes') {
|
|
14400
|
-
return this.
|
|
14400
|
+
return this.showTaxLegend ? 'taxes' : 'national-taxes';
|
|
14401
14401
|
}
|
|
14402
14402
|
return type;
|
|
14403
14403
|
};
|
|
@@ -18754,7 +18754,7 @@
|
|
|
18754
18754
|
this.hideDiscounts = false;
|
|
18755
18755
|
this.hideTaxes = false;
|
|
18756
18756
|
this.creditAccountShowPrices = null;
|
|
18757
|
-
this.
|
|
18757
|
+
this.showTaxLegend = false;
|
|
18758
18758
|
this.actualizarCantidad = function (item, cantidad, stock, id) {
|
|
18759
18759
|
if (id) {
|
|
18760
18760
|
var elem_1 = document.getElementById(id);
|
|
@@ -18822,7 +18822,7 @@
|
|
|
18822
18822
|
var _a, _b, _c, _d, _e, _f;
|
|
18823
18823
|
_this.hideDiscounts = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hideDiscounts, (_b !== null && _b !== void 0 ? _b : false));
|
|
18824
18824
|
_this.hideTaxes = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideTaxes, (_d !== null && _d !== void 0 ? _d : false));
|
|
18825
|
-
_this.
|
|
18825
|
+
_this.showTaxLegend = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.showTaxLegend, (_f !== null && _f !== void 0 ? _f : false));
|
|
18826
18826
|
});
|
|
18827
18827
|
this.cartService.showPrice$.subscribe(function (showPrice) {
|
|
18828
18828
|
_this.creditAccountShowPrices = showPrice;
|