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.
@@ -5202,7 +5202,8 @@ let BlockBannerBoxesEcComponent = class BlockBannerBoxesEcComponent extends Comp
5202
5202
  this.ecOnInit();
5203
5203
  this.options = {
5204
5204
  loop: this.loop,
5205
- autoplay: false,
5205
+ //autoplay: false,
5206
+ autoplay: true,
5206
5207
  smartSpeed: 950,
5207
5208
  margin: this.margin,
5208
5209
  dots: this.dots,
@@ -5285,24 +5286,20 @@ let BlockBannerFullEcComponent = class BlockBannerFullEcComponent extends Compon
5285
5286
  this.formUrl = (banner) => this.blocksService.formUrl(banner);
5286
5287
  this.options = {
5287
5288
  loop: true,
5288
- autoplay: false,
5289
- smartSpeed: 1650,
5289
+ autoplay: true,
5290
+ smartSpeed: 1050,
5290
5291
  margin: 10,
5291
- autoWidth: true,
5292
- dots: true,
5293
- dotsData: false,
5292
+ dots: false,
5293
+ navSpeed: 700,
5294
5294
  navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
5295
- nav: true,
5295
+ items: 1,
5296
+ nav: false,
5296
5297
  responsive: {
5297
- 0: {
5298
- items: 1,
5299
- },
5300
- 600: {
5301
- items: 1,
5302
- },
5303
- 1000: {
5304
- items: 1,
5305
- }
5298
+ 0: { autoWidth: true, items: 1 },
5299
+ 576: { autoWidth: true, items: 1 },
5300
+ 768: { autoWidth: true, items: 1 },
5301
+ 992: { autoWidth: true, items: 1 },
5302
+ 1200: { autoWidth: true, items: 1 }
5306
5303
  }
5307
5304
  };
5308
5305
  this.ecOnConstruct();
@@ -5310,30 +5307,23 @@ let BlockBannerFullEcComponent = class BlockBannerFullEcComponent extends Compon
5310
5307
  ngOnInit() {
5311
5308
  this.banners = this.banners.map(banner => { return Object.assign(Object.assign({}, banner), banner.translations[this.consts.getLocale()]); });
5312
5309
  this.ecOnInit();
5313
- this.options = {
5314
- loop: this.loop,
5315
- autoplay: false,
5316
- smartSpeed: 950,
5317
- margin: this.margin,
5318
- dots: this.dots,
5319
- navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
5320
- items: 1,
5321
- nav: this.nav
5322
- // responsive: {
5323
- // 0: {
5324
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.sm : 4,
5325
- // nav: true,
5326
- // },
5327
- // 400: {
5328
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.md : 4,
5329
- // nav: true,
5330
- // },
5331
- // 1000: {
5332
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.lg : 4,
5333
- // nav: true,
5334
- // }
5335
- // }
5336
- };
5310
+ // this.options = {
5311
+ // loop: this.loop,
5312
+ // //autoplay: false,
5313
+ // autoplay: true,
5314
+ // smartSpeed: 950,
5315
+ // margin: this.margin,
5316
+ // dots: this.dots,
5317
+ // navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
5318
+ // items:1,
5319
+ // nav:this.nav,
5320
+ // responsive: {
5321
+ // 0: { autoWidth: true, items: 1 },
5322
+ // 576: { autoWidth: true, items: 1},
5323
+ // 768: { autoWidth: true, items: 1},
5324
+ // 992: { autoWidth: true, items: 1 },
5325
+ // 1200: { autoWidth: true, items: 1}}
5326
+ // }
5337
5327
  }
5338
5328
  handlePage(page) {
5339
5329
  return this.router.url.includes(page);
@@ -7530,6 +7520,7 @@ let HeaderEcComponent = class HeaderEcComponent extends ComponentHelper {
7530
7520
  (stackPlace == 'start')
7531
7521
  ? (_a = menuItems.find(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(Object.assign({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item)) : (_b = menuItems.find(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(Object.assign({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item));
7532
7522
  };
7523
+ this.hasParams = (params, searched) => params && params.find(param => param.code.toLowerCase().includes(searched));
7533
7524
  this.envetUrlTransparent = this.changeUrlTransparent(this.envetUrlTransparent);
7534
7525
  this.router.events.subscribe((event) => {
7535
7526
  if (event instanceof NavigationStart) {
@@ -7551,6 +7542,7 @@ let HeaderEcComponent = class HeaderEcComponent extends ComponentHelper {
7551
7542
  });
7552
7543
  this.optionsService.sections.subscribe(res => (res.length > 0) && this.updateMenuItemSection(res));
7553
7544
  this.ecOnConstruct();
7545
+ this.mediaUrl = this.consts.mediaUrl();
7554
7546
  }
7555
7547
  ngOnInit() {
7556
7548
  this.paramsService.parameters.subscribe(res => this.params = res);