ng-easycommerce 0.0.519 → 0.0.521

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.
@@ -6162,7 +6162,8 @@ var BlockBannerBoxesEcComponent = /** @class */ (function (_super) {
6162
6162
  this.ecOnInit();
6163
6163
  this.options = {
6164
6164
  loop: this.loop,
6165
- autoplay: false,
6165
+ //autoplay: false,
6166
+ autoplay: true,
6166
6167
  smartSpeed: 950,
6167
6168
  margin: this.margin,
6168
6169
  dots: this.dots,
@@ -6271,24 +6272,20 @@ var BlockBannerFullEcComponent = /** @class */ (function (_super) {
6271
6272
  _this.formUrl = function (banner) { return _this.blocksService.formUrl(banner); };
6272
6273
  _this.options = {
6273
6274
  loop: true,
6274
- autoplay: false,
6275
- smartSpeed: 1650,
6275
+ autoplay: true,
6276
+ smartSpeed: 1050,
6276
6277
  margin: 10,
6277
- autoWidth: true,
6278
- dots: true,
6279
- dotsData: false,
6278
+ dots: false,
6279
+ navSpeed: 700,
6280
6280
  navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
6281
- nav: true,
6281
+ items: 1,
6282
+ nav: false,
6282
6283
  responsive: {
6283
- 0: {
6284
- items: 1,
6285
- },
6286
- 600: {
6287
- items: 1,
6288
- },
6289
- 1000: {
6290
- items: 1,
6291
- }
6284
+ 0: { autoWidth: true, items: 1 },
6285
+ 576: { autoWidth: true, items: 1 },
6286
+ 768: { autoWidth: true, items: 1 },
6287
+ 992: { autoWidth: true, items: 1 },
6288
+ 1200: { autoWidth: true, items: 1 }
6292
6289
  }
6293
6290
  };
6294
6291
  _this.ecOnConstruct();
@@ -6298,30 +6295,23 @@ var BlockBannerFullEcComponent = /** @class */ (function (_super) {
6298
6295
  var _this = this;
6299
6296
  this.banners = this.banners.map(function (banner) { return __assign$e(__assign$e({}, banner), banner.translations[_this.consts.getLocale()]); });
6300
6297
  this.ecOnInit();
6301
- this.options = {
6302
- loop: this.loop,
6303
- autoplay: false,
6304
- smartSpeed: 950,
6305
- margin: this.margin,
6306
- dots: this.dots,
6307
- navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
6308
- items: 1,
6309
- nav: this.nav
6310
- // responsive: {
6311
- // 0: {
6312
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.sm : 4,
6313
- // nav: true,
6314
- // },
6315
- // 400: {
6316
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.md : 4,
6317
- // nav: true,
6318
- // },
6319
- // 1000: {
6320
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.lg : 4,
6321
- // nav: true,
6322
- // }
6323
- // }
6324
- };
6298
+ // this.options = {
6299
+ // loop: this.loop,
6300
+ // //autoplay: false,
6301
+ // autoplay: true,
6302
+ // smartSpeed: 950,
6303
+ // margin: this.margin,
6304
+ // dots: this.dots,
6305
+ // navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
6306
+ // items:1,
6307
+ // nav:this.nav,
6308
+ // responsive: {
6309
+ // 0: { autoWidth: true, items: 1 },
6310
+ // 576: { autoWidth: true, items: 1},
6311
+ // 768: { autoWidth: true, items: 1},
6312
+ // 992: { autoWidth: true, items: 1 },
6313
+ // 1200: { autoWidth: true, items: 1}}
6314
+ // }
6325
6315
  };
6326
6316
  BlockBannerFullEcComponent.prototype.handlePage = function (page) {
6327
6317
  return this.router.url.includes(page);
@@ -9186,6 +9176,7 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9186
9176
  (stackPlace == 'start')
9187
9177
  ? (_a = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _a === void 0 ? void 0 : _a.children.unshift(__assign$m({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item)) : (_b = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _b === void 0 ? void 0 : _b.children.push(__assign$m({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item));
9188
9178
  };
9179
+ _this.hasParams = function (params, searched) { return params && params.find(function (param) { return param.code.toLowerCase().includes(searched); }); };
9189
9180
  _this.envetUrlTransparent = _this.changeUrlTransparent(_this.envetUrlTransparent);
9190
9181
  _this.router.events.subscribe(function (event) {
9191
9182
  if (event instanceof NavigationStart) {
@@ -9207,6 +9198,7 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9207
9198
  });
9208
9199
  _this.optionsService.sections.subscribe(function (res) { return (res.length > 0) && _this.updateMenuItemSection(res); });
9209
9200
  _this.ecOnConstruct();
9201
+ _this.mediaUrl = _this.consts.mediaUrl();
9210
9202
  return _this;
9211
9203
  }
9212
9204
  HeaderEcComponent.prototype.ngOnInit = function () {