ng-easycommerce 0.0.582 → 0.0.583
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 +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,5 @@
|
|
|
1
|
+
# version 0.0.583
|
|
2
|
+
- Se agrega injector en product detail para obtener config channel.
|
|
1
3
|
# version 0.0.582
|
|
2
4
|
- 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
5
|
# version 0.0.581
|
|
@@ -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')
|