ng-easycommerce 0.0.585 → 0.0.586
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 +7 -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/blocks-ec/block-banner-boxes-ec/block-banner-boxes-ec.component.js +9 -3
- package/esm5/lib/ec-component/blocks-ec/block-banner-boxes-ec/block-banner-boxes-ec.component.js +9 -3
- package/fesm2015/ng-easycommerce.js +7 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +7 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/blocks-ec/block-banner-boxes-ec/block-banner-boxes-ec.component.d.ts +5 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/ng-easycommerce.js
CHANGED
|
@@ -6354,16 +6354,18 @@ var __decorate$G = (this && this.__decorate) || function (decorators, target, ke
|
|
|
6354
6354
|
};
|
|
6355
6355
|
var BlockBannerBoxesEcComponent = /** @class */ (function (_super) {
|
|
6356
6356
|
__extends$9(BlockBannerBoxesEcComponent, _super);
|
|
6357
|
-
function BlockBannerBoxesEcComponent(blocksService, consts, analyticsService) {
|
|
6357
|
+
function BlockBannerBoxesEcComponent(blocksService, consts, analyticsService, paramsService) {
|
|
6358
6358
|
var _this = _super.call(this) || this;
|
|
6359
6359
|
_this.blocksService = blocksService;
|
|
6360
6360
|
_this.consts = consts;
|
|
6361
6361
|
_this.analyticsService = analyticsService;
|
|
6362
|
+
_this.paramsService = paramsService;
|
|
6362
6363
|
_this.dots = false;
|
|
6363
6364
|
_this.nav = false;
|
|
6364
6365
|
_this.loop = false;
|
|
6365
6366
|
_this.margin = 10;
|
|
6366
6367
|
_this.big_ones = [0, 3, 4, 7, 8, 11, 12, 15, 16];
|
|
6368
|
+
_this.params = {};
|
|
6367
6369
|
_this.getImage = function (banner) { return _this.blocksService.getBannerImage(banner); };
|
|
6368
6370
|
_this.formUrl = function (banner) { return _this.blocksService.formUrl(banner); };
|
|
6369
6371
|
_this.columnSize = function (i) {
|
|
@@ -6402,12 +6404,14 @@ var BlockBannerBoxesEcComponent = /** @class */ (function (_super) {
|
|
|
6402
6404
|
}
|
|
6403
6405
|
}
|
|
6404
6406
|
};
|
|
6407
|
+
_this.hasParams = function (params, searched) { return params && params.find(function (param) { return param.code.toLowerCase().includes(searched); }); };
|
|
6405
6408
|
_this.ecOnConstruct();
|
|
6406
6409
|
return _this;
|
|
6407
6410
|
}
|
|
6408
6411
|
BlockBannerBoxesEcComponent.prototype.ngOnInit = function () {
|
|
6409
6412
|
var _this = this;
|
|
6410
6413
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
6414
|
+
this.paramsService.parameters.subscribe(function (res) { return _this.params = res; });
|
|
6411
6415
|
this.banners = this.banners.map(function (banner) { return __assign$d(__assign$d({}, banner), banner.translations[_this.consts.getLocale()]); });
|
|
6412
6416
|
this.meta = __assign$d(__assign$d({}, this.meta), this.meta.translations[this.consts.getLocale()]);
|
|
6413
6417
|
this.ecOnInit();
|
|
@@ -6446,7 +6450,8 @@ var BlockBannerBoxesEcComponent = /** @class */ (function (_super) {
|
|
|
6446
6450
|
BlockBannerBoxesEcComponent.ctorParameters = function () { return [
|
|
6447
6451
|
{ type: BlocksService },
|
|
6448
6452
|
{ type: Constants },
|
|
6449
|
-
{ type: AnalyticsService }
|
|
6453
|
+
{ type: AnalyticsService },
|
|
6454
|
+
{ type: ParametersService }
|
|
6450
6455
|
]; };
|
|
6451
6456
|
__decorate$G([
|
|
6452
6457
|
Input()
|