ng-easycommerce 0.0.641 → 0.0.643
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 +4 -0
- package/bundles/ng-easycommerce.umd.js +8 -1
- 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/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +2 -2
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +8 -1
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +2 -2
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +8 -1
- package/fesm2015/ng-easycommerce.js +8 -1
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +8 -1
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +1 -0
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/ng-easycommerce.js
CHANGED
|
@@ -14793,7 +14793,7 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
|
|
|
14793
14793
|
};
|
|
14794
14794
|
DetailCheckoutBlockEcComponent.prototype.getTypeLabel = function (type) {
|
|
14795
14795
|
if (type === 'taxes') {
|
|
14796
|
-
return this.showTaxLegend ? 'taxes' : '
|
|
14796
|
+
return this.showTaxLegend ? 'national-taxes' : 'taxes';
|
|
14797
14797
|
}
|
|
14798
14798
|
return type;
|
|
14799
14799
|
};
|
|
@@ -19151,6 +19151,7 @@ var SidebarEcComponent = /** @class */ (function () {
|
|
|
19151
19151
|
this.hideTaxes = false;
|
|
19152
19152
|
this.creditAccountShowPrices = null;
|
|
19153
19153
|
this.showTaxLegend = false;
|
|
19154
|
+
this.cartLoading = false;
|
|
19154
19155
|
this.getVariants = function (product) {
|
|
19155
19156
|
var item = product.product;
|
|
19156
19157
|
if (item.variants && item.variants.length && item.variants[0].options && item.variants[0].options.length) {
|
|
@@ -19208,9 +19209,15 @@ var SidebarEcComponent = /** @class */ (function () {
|
|
|
19208
19209
|
this.cartService.showPrice$.subscribe(function (showPrice) {
|
|
19209
19210
|
_this.creditAccountShowPrices = showPrice;
|
|
19210
19211
|
});
|
|
19212
|
+
this.cartService.loading.subscribe(function (isLoading) {
|
|
19213
|
+
_this.cartLoading = isLoading;
|
|
19214
|
+
});
|
|
19211
19215
|
};
|
|
19212
19216
|
SidebarEcComponent.prototype.actualizarCantidad = function (item, cantidad, stock, id) {
|
|
19213
19217
|
var _a;
|
|
19218
|
+
if (this.cartLoading) {
|
|
19219
|
+
return;
|
|
19220
|
+
}
|
|
19214
19221
|
var multipleQuantity = ((_a = item.product) === null || _a === void 0 ? void 0 : _a.variants) && item.product.variants.length > 0 ? item.product.variants[0].multipleQuantity : 0;
|
|
19215
19222
|
var step = multipleQuantity && multipleQuantity > 0 ? multipleQuantity : 1;
|
|
19216
19223
|
var newQuantity;
|