@shoper/phoenix_design_system 1.10.12-3 → 1.10.12-4
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.
|
@@ -61,7 +61,7 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
61
61
|
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
62
62
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
63
63
|
this._resetSearchView();
|
|
64
|
-
document.removeEventListener('
|
|
64
|
+
document.removeEventListener('keyup', this._bindKeys);
|
|
65
65
|
}
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
@@ -151,7 +151,7 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
151
151
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.add(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
152
152
|
const shouldShowMessage = ev.detail.searchPhrase !== '';
|
|
153
153
|
this._updateSearchView(ev.detail.searchPhrase, shouldShowMessage, false);
|
|
154
|
-
document.addEventListener('
|
|
154
|
+
document.addEventListener('keyup', this._bindKeys);
|
|
155
155
|
});
|
|
156
156
|
this.addEventListener(search_constants.SEARCH_CUSTOM_EVENT_NAMES.keyup, (ev) => {
|
|
157
157
|
const shouldShowMessage = ev.detail.searchPhrase !== '';
|
|
@@ -251,7 +251,7 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
251
251
|
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
252
252
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
253
253
|
this._hideHistorySuggestionsAndResults();
|
|
254
|
-
document.removeEventListener('
|
|
254
|
+
document.removeEventListener('keyup', this._bindKeys);
|
|
255
255
|
}
|
|
256
256
|
_submitSearchPhrase(searchPhrase) {
|
|
257
257
|
this._dispatchEventWithSearchPhrase(search_constants.SEARCH_CUSTOM_EVENT_NAMES.searchPhraseSubmitted, searchPhrase);
|
|
@@ -57,7 +57,7 @@ let HSearch = class HSearch extends PhoenixLightLitElement {
|
|
|
57
57
|
const searchBar = this.querySelector(`.${SEARCH_CLASS_NAMES.searchBar}`);
|
|
58
58
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(SEARCH_CLASS_NAMES.outline);
|
|
59
59
|
this._resetSearchView();
|
|
60
|
-
document.removeEventListener('
|
|
60
|
+
document.removeEventListener('keyup', this._bindKeys);
|
|
61
61
|
}
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
@@ -147,7 +147,7 @@ let HSearch = class HSearch extends PhoenixLightLitElement {
|
|
|
147
147
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.add(SEARCH_CLASS_NAMES.outline);
|
|
148
148
|
const shouldShowMessage = ev.detail.searchPhrase !== '';
|
|
149
149
|
this._updateSearchView(ev.detail.searchPhrase, shouldShowMessage, false);
|
|
150
|
-
document.addEventListener('
|
|
150
|
+
document.addEventListener('keyup', this._bindKeys);
|
|
151
151
|
});
|
|
152
152
|
this.addEventListener(SEARCH_CUSTOM_EVENT_NAMES.keyup, (ev) => {
|
|
153
153
|
const shouldShowMessage = ev.detail.searchPhrase !== '';
|
|
@@ -247,7 +247,7 @@ let HSearch = class HSearch extends PhoenixLightLitElement {
|
|
|
247
247
|
const searchBar = this.querySelector(`.${SEARCH_CLASS_NAMES.searchBar}`);
|
|
248
248
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(SEARCH_CLASS_NAMES.outline);
|
|
249
249
|
this._hideHistorySuggestionsAndResults();
|
|
250
|
-
document.removeEventListener('
|
|
250
|
+
document.removeEventListener('keyup', this._bindKeys);
|
|
251
251
|
}
|
|
252
252
|
_submitSearchPhrase(searchPhrase) {
|
|
253
253
|
this._dispatchEventWithSearchPhrase(SEARCH_CUSTOM_EVENT_NAMES.searchPhraseSubmitted, searchPhrase);
|