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 CHANGED
@@ -1,3 +1,5 @@
1
+ # version 0.0.586
2
+ - Se agrego la función `hasParams` en `block-banner-boxes-ec.component.ts` para obtener los parametros desde el block
1
3
  # version 0.0.585
2
4
  - Modificación texto total a pagar en `decidir-ec.component.html`
3
5
  # version 0.0.584
@@ -6340,16 +6340,18 @@
6340
6340
  };
6341
6341
  var BlockBannerBoxesEcComponent = /** @class */ (function (_super) {
6342
6342
  __extends$9(BlockBannerBoxesEcComponent, _super);
6343
- function BlockBannerBoxesEcComponent(blocksService, consts, analyticsService) {
6343
+ function BlockBannerBoxesEcComponent(blocksService, consts, analyticsService, paramsService) {
6344
6344
  var _this = _super.call(this) || this;
6345
6345
  _this.blocksService = blocksService;
6346
6346
  _this.consts = consts;
6347
6347
  _this.analyticsService = analyticsService;
6348
+ _this.paramsService = paramsService;
6348
6349
  _this.dots = false;
6349
6350
  _this.nav = false;
6350
6351
  _this.loop = false;
6351
6352
  _this.margin = 10;
6352
6353
  _this.big_ones = [0, 3, 4, 7, 8, 11, 12, 15, 16];
6354
+ _this.params = {};
6353
6355
  _this.getImage = function (banner) { return _this.blocksService.getBannerImage(banner); };
6354
6356
  _this.formUrl = function (banner) { return _this.blocksService.formUrl(banner); };
6355
6357
  _this.columnSize = function (i) {
@@ -6388,12 +6390,14 @@
6388
6390
  }
6389
6391
  }
6390
6392
  };
6393
+ _this.hasParams = function (params, searched) { return params && params.find(function (param) { return param.code.toLowerCase().includes(searched); }); };
6391
6394
  _this.ecOnConstruct();
6392
6395
  return _this;
6393
6396
  }
6394
6397
  BlockBannerBoxesEcComponent.prototype.ngOnInit = function () {
6395
6398
  var _this = this;
6396
6399
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6400
+ this.paramsService.parameters.subscribe(function (res) { return _this.params = res; });
6397
6401
  this.banners = this.banners.map(function (banner) { return __assign$d(__assign$d({}, banner), banner.translations[_this.consts.getLocale()]); });
6398
6402
  this.meta = __assign$d(__assign$d({}, this.meta), this.meta.translations[this.consts.getLocale()]);
6399
6403
  this.ecOnInit();
@@ -6432,7 +6436,8 @@
6432
6436
  BlockBannerBoxesEcComponent.ctorParameters = function () { return [
6433
6437
  { type: BlocksService },
6434
6438
  { type: Constants },
6435
- { type: AnalyticsService }
6439
+ { type: AnalyticsService },
6440
+ { type: ParametersService }
6436
6441
  ]; };
6437
6442
  __decorate$G([
6438
6443
  core.Input()