@fluid-topics/ft-search-bar 1.2.19 → 1.2.21

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.
@@ -10,7 +10,6 @@ export declare class SuggestManager {
10
10
  private onSuggestKeyDown;
11
11
  private nextSuggestionElement;
12
12
  private previousSuggestionElement;
13
- private onSuggestKeyUp;
14
13
  private onSuggestClick;
15
14
  private removeRecentSearch;
16
15
  private getIcon;
@@ -20,7 +20,6 @@ class SuggestManager {
20
20
  <a href="${this.getRequestWithQuery(query)}"
21
21
  part="suggestions"
22
22
  class="ft-search-bar--suggestion ft-search-bar--recent-search"
23
- @keyup=${(e) => this.onSuggestKeyUp(e)}
24
23
  @click=${(e) => this.onSuggestClick(e, query)}>
25
24
  <ft-ripple></ft-ripple>
26
25
  <ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
@@ -41,7 +40,6 @@ class SuggestManager {
41
40
  <a href="${(this.getRequestWithQuery(suggest.value))}"
42
41
  part="suggestions"
43
42
  class="ft-search-bar--suggestion"
44
- @keyup=${(e) => this.onSuggestKeyUp(e)}
45
43
  @click=${(e) => this.onSuggestClick(e, suggest.value)}>
46
44
  <ft-ripple></ft-ripple>
47
45
  ${this.getIcon(suggest)}
@@ -96,11 +94,6 @@ class SuggestManager {
96
94
  const nextDivElement = (_b = divElement === null || divElement === void 0 ? void 0 : divElement.previousElementSibling) === null || _b === void 0 ? void 0 : _b.querySelector("[part=suggestions]");
97
95
  return nextDivElement !== null && nextDivElement !== void 0 ? nextDivElement : this.getLastSuggestionElement();
98
96
  }
99
- onSuggestKeyUp(e) {
100
- if (e.key === "Enter" || e.key === " ") {
101
- e.target.click();
102
- }
103
- }
104
97
  onSuggestClick(e, suggest) {
105
98
  this.searchBar.setQuery(suggest);
106
99
  this.searchBar.onLaunchSearch();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-bar",
3
- "version": "1.2.19",
3
+ "version": "1.2.21",
4
4
  "description": "Search bar component using Fluid Topics public API",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,23 +19,23 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-accordion": "1.2.19",
23
- "@fluid-topics/ft-app-context": "1.2.19",
24
- "@fluid-topics/ft-button": "1.2.19",
25
- "@fluid-topics/ft-chip": "1.2.19",
26
- "@fluid-topics/ft-filter": "1.2.19",
27
- "@fluid-topics/ft-icon": "1.2.19",
28
- "@fluid-topics/ft-select": "1.2.19",
29
- "@fluid-topics/ft-size-watcher": "1.2.19",
30
- "@fluid-topics/ft-skeleton": "1.2.19",
31
- "@fluid-topics/ft-snap-scroll": "1.2.19",
32
- "@fluid-topics/ft-tooltip": "1.2.19",
33
- "@fluid-topics/ft-typography": "1.2.19",
34
- "@fluid-topics/ft-wc-utils": "1.2.19",
22
+ "@fluid-topics/ft-accordion": "1.2.21",
23
+ "@fluid-topics/ft-app-context": "1.2.21",
24
+ "@fluid-topics/ft-button": "1.2.21",
25
+ "@fluid-topics/ft-chip": "1.2.21",
26
+ "@fluid-topics/ft-filter": "1.2.21",
27
+ "@fluid-topics/ft-icon": "1.2.21",
28
+ "@fluid-topics/ft-select": "1.2.21",
29
+ "@fluid-topics/ft-size-watcher": "1.2.21",
30
+ "@fluid-topics/ft-skeleton": "1.2.21",
31
+ "@fluid-topics/ft-snap-scroll": "1.2.21",
32
+ "@fluid-topics/ft-tooltip": "1.2.21",
33
+ "@fluid-topics/ft-typography": "1.2.21",
34
+ "@fluid-topics/ft-wc-utils": "1.2.21",
35
35
  "lit": "3.1.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@fluid-topics/public-api": "1.0.81"
38
+ "@fluid-topics/public-api": "1.0.82"
39
39
  },
40
- "gitHead": "eaa2bf8601f59cc5eed082b9c118e81d21a4cf79"
40
+ "gitHead": "d5ad6e93693f963ea69c3ee8aed39f9c6f0d569a"
41
41
  }