ng-easycommerce 0.0.543 → 0.0.544

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.544
2
+ - ajustes para buscador header se quite busqueda al dar en la X
1
3
  # version 0.0.543
2
4
  - ajuste * campos requeridos en formulario checkout
3
5
  # version 0.0.542
@@ -216,6 +216,7 @@
216
216
  this.env = env;
217
217
  this.LOCALE = 'LOCALE';
218
218
  this.CHANNEL = 'CHANNEL';
219
+ this.searchValue = '';
219
220
  this.channelConfigSubject = new rxjs.ReplaySubject();
220
221
  this.channelConfig$ = this.channelConfigSubject.asObservable();
221
222
  this.channelConfigAPI = function (channel) { return '/shop-api/' + channel + 'channel'; };
@@ -9190,10 +9191,22 @@
9190
9191
  for (var _i = 2; _i < arguments.length; _i++) {
9191
9192
  args[_i - 2] = arguments[_i];
9192
9193
  }
9193
- event.key == 'Enter' && _this.getCollectionSearch() && (afterSearch ? afterSearch(args) : null);
9194
+ // Primero actualizamos el valor de búsqueda
9194
9195
  _this.searchValue = event.target.value;
9196
+ // Verificamos si la tecla presionada es "Enter"
9197
+ if (event.key === 'Enter') {
9198
+ // Llamamos a getCollectionSearch
9199
+ _this.getCollectionSearch();
9200
+ // Si se proporciona, llamamos a afterSearch con los argumentos
9201
+ if (afterSearch) {
9202
+ afterSearch.apply(void 0, __spread$5(args));
9203
+ }
9204
+ }
9205
+ };
9206
+ _this.getCollectionSearch = function () {
9207
+ _this.consts.searchValue = _this.searchValue;
9208
+ _this.router.navigateByUrl('/collection?search=' + _this.searchValue);
9195
9209
  };
9196
- _this.getCollectionSearch = function () { return _this.router.navigateByUrl('/collection?search=' + _this.searchValue); };
9197
9210
  _this.toogleToolbar = function () {
9198
9211
  console.log('LLAMA AL TOOGLE');
9199
9212
  if (_this.menu_button.nativeElement.classList.contains('d-none')) {