ng-easycommerce 0.0.582 → 0.0.584
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/assets/ec-i18n/en.json +3 -1
- package/assets/ec-i18n/es.json +3 -1
- package/bundles/ng-easycommerce.umd.js +8 -2
- 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/product-detail-ec/product-detail-ec.component.js +11 -3
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +11 -3
- package/fesm2015/ng-easycommerce.js +8 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +8 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +4 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# version 0.0.584
|
|
2
|
+
- Se agrega traducciones a es.json y en.json para reviews.
|
|
3
|
+
# version 0.0.583
|
|
4
|
+
- Se agrega injector en product detail para obtener config channel.
|
|
1
5
|
# version 0.0.582
|
|
2
6
|
- Se agregaron las variable `showPrice` y `creditAmountConfigured` en `OrderEcComponent` y `OrdersEcComponent`, para mostrar o no mostrar el precio segun la configuración de crédito.
|
|
3
7
|
# version 0.0.581
|
package/assets/ec-i18n/en.json
CHANGED
|
@@ -378,5 +378,7 @@
|
|
|
378
378
|
"error-convertibility": "Convertibility error. Try again later.",
|
|
379
379
|
"repeat-order": "Repeat order",
|
|
380
380
|
"no-products-to-add": "You have no products to add",
|
|
381
|
-
"not-enough-credits": "You do not have enough credits to make this purchase."
|
|
381
|
+
"not-enough-credits": "You do not have enough credits to make this purchase.",
|
|
382
|
+
"thanks-send-review": "Thank you for leaving a review.",
|
|
383
|
+
"authenticated-for-comment": "Please log in to leave a review."
|
|
382
384
|
}
|
package/assets/ec-i18n/es.json
CHANGED
|
@@ -383,5 +383,7 @@
|
|
|
383
383
|
"error-convertibility": "Se produjo un error al realizar la conversión",
|
|
384
384
|
"repeat-order": "Repetir pedido",
|
|
385
385
|
"no-products-to-add": "No hay productos para agregar",
|
|
386
|
-
"not-enough-credits": "No tiene suficientes créditos para comprar este producto"
|
|
386
|
+
"not-enough-credits": "No tiene suficientes créditos para comprar este producto",
|
|
387
|
+
"thanks-send-review": "Gracias por dejar una reseña.",
|
|
388
|
+
"authenticated-for-comment": "Inicia sesión para dejar una reseña."
|
|
387
389
|
}
|
|
@@ -10573,7 +10573,7 @@
|
|
|
10573
10573
|
};
|
|
10574
10574
|
var ProductDetailEcComponent = /** @class */ (function (_super) {
|
|
10575
10575
|
__extends$w(ProductDetailEcComponent, _super);
|
|
10576
|
-
function ProductDetailEcComponent(productService, consts, activedRoute, cartService, optionsService, productsService, analyticsService, router, toastrService, meta) {
|
|
10576
|
+
function ProductDetailEcComponent(productService, consts, activedRoute, cartService, optionsService, productsService, analyticsService, router, toastrService, meta, injector) {
|
|
10577
10577
|
var _this = _super.call(this) || this;
|
|
10578
10578
|
_this.productService = productService;
|
|
10579
10579
|
_this.consts = consts;
|
|
@@ -10585,12 +10585,14 @@
|
|
|
10585
10585
|
_this.router = router;
|
|
10586
10586
|
_this.toastrService = toastrService;
|
|
10587
10587
|
_this.meta = meta;
|
|
10588
|
+
_this.injector = injector;
|
|
10588
10589
|
_this.show = false;
|
|
10589
10590
|
_this.quantity = 1;
|
|
10590
10591
|
_this.breadcrumb = [];
|
|
10591
10592
|
_this.code = null;
|
|
10592
10593
|
_this.focusImage = null;
|
|
10593
10594
|
_this.owlOptions = {};
|
|
10595
|
+
_this.showReviews = false;
|
|
10594
10596
|
_this.addToCart = function () {
|
|
10595
10597
|
_this.quantity > 0 && _this.productService.addToCart(_this.quantity);
|
|
10596
10598
|
};
|
|
@@ -10670,6 +10672,9 @@
|
|
|
10670
10672
|
_this.analyticsService.callEvent('view_item', __assign$o(__assign$o({}, productParam), { currency: _this.consts.currency.code }));
|
|
10671
10673
|
_this.changeImgFocus(productParam.picturesdefault[0]);
|
|
10672
10674
|
});
|
|
10675
|
+
_this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (channel) {
|
|
10676
|
+
_this.showReviews = channel.showReviews;
|
|
10677
|
+
});
|
|
10673
10678
|
_this.ecOnConstruct();
|
|
10674
10679
|
return _this;
|
|
10675
10680
|
}
|
|
@@ -10696,7 +10701,8 @@
|
|
|
10696
10701
|
{ type: AnalyticsService },
|
|
10697
10702
|
{ type: router.Router },
|
|
10698
10703
|
{ type: ToastService },
|
|
10699
|
-
{ type: platformBrowser.Meta }
|
|
10704
|
+
{ type: platformBrowser.Meta },
|
|
10705
|
+
{ type: core.Injector }
|
|
10700
10706
|
]; };
|
|
10701
10707
|
__decorate$13([
|
|
10702
10708
|
core.ViewChild('contact')
|