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.
package/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ # version 0.0.521
2
+ - movimiento automatico en el banner principal (block-banner-full)
3
+ # version 0.0.520
4
+ - se añade la funcionalidad de parametros y el mediaUrl en el header
5
+ - se cambia a autoplay el movimiento de los banner en block-banner-boxer y block-banner-full
1
6
  # version 0.0.519
2
7
  - Se modifica funcionamiento lotes para que espere un tiempo en cargar el endpoint de carrito.
3
8
  - Se añade loading en boton lotes para que cargue al darle a guardar
@@ -6148,7 +6148,8 @@
6148
6148
  this.ecOnInit();
6149
6149
  this.options = {
6150
6150
  loop: this.loop,
6151
- autoplay: false,
6151
+ //autoplay: false,
6152
+ autoplay: true,
6152
6153
  smartSpeed: 950,
6153
6154
  margin: this.margin,
6154
6155
  dots: this.dots,
@@ -6257,24 +6258,20 @@
6257
6258
  _this.formUrl = function (banner) { return _this.blocksService.formUrl(banner); };
6258
6259
  _this.options = {
6259
6260
  loop: true,
6260
- autoplay: false,
6261
- smartSpeed: 1650,
6261
+ autoplay: true,
6262
+ smartSpeed: 1050,
6262
6263
  margin: 10,
6263
- autoWidth: true,
6264
- dots: true,
6265
- dotsData: false,
6264
+ dots: false,
6265
+ navSpeed: 700,
6266
6266
  navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
6267
- nav: true,
6267
+ items: 1,
6268
+ nav: false,
6268
6269
  responsive: {
6269
- 0: {
6270
- items: 1,
6271
- },
6272
- 600: {
6273
- items: 1,
6274
- },
6275
- 1000: {
6276
- items: 1,
6277
- }
6270
+ 0: { autoWidth: true, items: 1 },
6271
+ 576: { autoWidth: true, items: 1 },
6272
+ 768: { autoWidth: true, items: 1 },
6273
+ 992: { autoWidth: true, items: 1 },
6274
+ 1200: { autoWidth: true, items: 1 }
6278
6275
  }
6279
6276
  };
6280
6277
  _this.ecOnConstruct();
@@ -6284,30 +6281,23 @@
6284
6281
  var _this = this;
6285
6282
  this.banners = this.banners.map(function (banner) { return __assign$e(__assign$e({}, banner), banner.translations[_this.consts.getLocale()]); });
6286
6283
  this.ecOnInit();
6287
- this.options = {
6288
- loop: this.loop,
6289
- autoplay: false,
6290
- smartSpeed: 950,
6291
- margin: this.margin,
6292
- dots: this.dots,
6293
- navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
6294
- items: 1,
6295
- nav: this.nav
6296
- // responsive: {
6297
- // 0: {
6298
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.sm : 4,
6299
- // nav: true,
6300
- // },
6301
- // 400: {
6302
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.md : 4,
6303
- // nav: true,
6304
- // },
6305
- // 1000: {
6306
- // items: (this.meta?.styles.carrousel) ? this.meta?.styles.items.lg : 4,
6307
- // nav: true,
6308
- // }
6309
- // }
6310
- };
6284
+ // this.options = {
6285
+ // loop: this.loop,
6286
+ // //autoplay: false,
6287
+ // autoplay: true,
6288
+ // smartSpeed: 950,
6289
+ // margin: this.margin,
6290
+ // dots: this.dots,
6291
+ // navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
6292
+ // items:1,
6293
+ // nav:this.nav,
6294
+ // responsive: {
6295
+ // 0: { autoWidth: true, items: 1 },
6296
+ // 576: { autoWidth: true, items: 1},
6297
+ // 768: { autoWidth: true, items: 1},
6298
+ // 992: { autoWidth: true, items: 1 },
6299
+ // 1200: { autoWidth: true, items: 1}}
6300
+ // }
6311
6301
  };
6312
6302
  BlockBannerFullEcComponent.prototype.handlePage = function (page) {
6313
6303
  return this.router.url.includes(page);
@@ -9172,6 +9162,7 @@
9172
9162
  (stackPlace == 'start')
9173
9163
  ? (_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));
9174
9164
  };
9165
+ _this.hasParams = function (params, searched) { return params && params.find(function (param) { return param.code.toLowerCase().includes(searched); }); };
9175
9166
  _this.envetUrlTransparent = _this.changeUrlTransparent(_this.envetUrlTransparent);
9176
9167
  _this.router.events.subscribe(function (event) {
9177
9168
  if (event instanceof router.NavigationStart) {
@@ -9193,6 +9184,7 @@
9193
9184
  });
9194
9185
  _this.optionsService.sections.subscribe(function (res) { return (res.length > 0) && _this.updateMenuItemSection(res); });
9195
9186
  _this.ecOnConstruct();
9187
+ _this.mediaUrl = _this.consts.mediaUrl();
9196
9188
  return _this;
9197
9189
  }
9198
9190
  HeaderEcComponent.prototype.ngOnInit = function () {