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 +2 -0
- package/bundles/ng-easycommerce.umd.js +15 -2
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/core.consts.js +2 -1
- package/esm2015/lib/ec-component/header-ec/header-ec.component.js +15 -3
- package/esm5/lib/core.consts.js +2 -1
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +15 -3
- package/fesm2015/ng-easycommerce.js +15 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +15 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/core.consts.d.ts +1 -0
- package/lib/ec-component/header-ec/header-ec.component.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
-
|
|
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')) {
|