@fluid-topics/ft-search-bar 2.0.14 → 2.0.16
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/build/ft-search-bar.js +1 -2
- package/build/ft-search-bar.light.js +506 -507
- package/build/ft-search-bar.min.js +452 -453
- package/build/managers/DesktopSearchBarManager.js +6 -7
- package/build/managers/FacetsChipsManager.js +1 -2
- package/build/managers/MobileSearchBarManager.js +1 -2
- package/build/managers/SuggestManager.js +1 -2
- package/package.json +16 -16
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { css, html, nothing } from "lit";
|
|
1
|
+
import { css, html, nothing, } from "lit";
|
|
2
2
|
import { repeat } from "lit/directives/repeat.js";
|
|
3
3
|
import { FacetsChipsManager } from "./FacetsChipsManager";
|
|
4
4
|
import { SuggestManager } from "./SuggestManager";
|
|
5
5
|
import { classMap } from "lit/directives/class-map.js";
|
|
6
|
-
class DesktopSearchBarManager {
|
|
6
|
+
export class DesktopSearchBarManager {
|
|
7
7
|
constructor(searchBar, selectedFacetsManager, suggestManager) {
|
|
8
8
|
this.searchBar = searchBar;
|
|
9
9
|
this.selectedFacetsManager = selectedFacetsManager !== null && selectedFacetsManager !== void 0 ? selectedFacetsManager : new FacetsChipsManager(searchBar);
|
|
@@ -35,8 +35,8 @@ class DesktopSearchBarManager {
|
|
|
35
35
|
type="search"
|
|
36
36
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
37
37
|
value="${this.searchBar.query}"
|
|
38
|
-
@click
|
|
39
|
-
@focus
|
|
38
|
+
@click=${() => this.onClick()}
|
|
39
|
+
@focus=${() => this.onFocus()}
|
|
40
40
|
@input=${(e) => this.onInput(e)}
|
|
41
41
|
@keydown=${(e) => this.onSearchBarKeyDown(e)}>
|
|
42
42
|
</div>
|
|
@@ -81,7 +81,7 @@ class DesktopSearchBarManager {
|
|
|
81
81
|
@change=${(e) => this.searchBar.contentLocale = e.detail == null
|
|
82
82
|
? undefined
|
|
83
83
|
: e.detail}>
|
|
84
|
-
${repeat(this.searchBar.availableContentLocales, l => l.lang, l => html `
|
|
84
|
+
${repeat(this.searchBar.availableContentLocales, (l) => l.lang, (l) => html `
|
|
85
85
|
<ft-select-option .value=${l.lang}
|
|
86
86
|
label="${l.label}"
|
|
87
87
|
?selected=${l.lang == this.searchBar.contentLocale}>
|
|
@@ -189,8 +189,7 @@ class DesktopSearchBarManager {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
//language=css
|
|
192
|
+
// language=css
|
|
193
193
|
DesktopSearchBarManager.styles = css `
|
|
194
194
|
|
|
195
195
|
`;
|
|
196
|
-
export { DesktopSearchBarManager };
|
|
@@ -4,7 +4,7 @@ import { getBreadcrumbFromValue, getLabelFromValue, getSelectedValues } from "..
|
|
|
4
4
|
import { setVariable } from "@fluid-topics/ft-wc-utils";
|
|
5
5
|
import { FtSnapScrollCssVariables } from "@fluid-topics/ft-snap-scroll";
|
|
6
6
|
import { FtChipCssVariables } from "@fluid-topics/ft-chip";
|
|
7
|
-
class FacetsChipsManager {
|
|
7
|
+
export class FacetsChipsManager {
|
|
8
8
|
constructor(searchBar) {
|
|
9
9
|
this.searchBar = searchBar;
|
|
10
10
|
}
|
|
@@ -126,4 +126,3 @@ FacetsChipsManager.styles = css `
|
|
|
126
126
|
flex-grow: 0;
|
|
127
127
|
}
|
|
128
128
|
`;
|
|
129
|
-
export { FacetsChipsManager };
|
|
@@ -2,7 +2,7 @@ import { css, html, nothing } from "lit";
|
|
|
2
2
|
import { FacetsChipsManager } from "./FacetsChipsManager";
|
|
3
3
|
import { SuggestManager } from "./SuggestManager";
|
|
4
4
|
import { classMap } from "lit/directives/class-map.js";
|
|
5
|
-
class MobileSearchBarManager {
|
|
5
|
+
export class MobileSearchBarManager {
|
|
6
6
|
constructor(searchBar, selectedFacetsManager, suggestManager) {
|
|
7
7
|
this.searchBar = searchBar;
|
|
8
8
|
this.selectedFacetsManager = selectedFacetsManager !== null && selectedFacetsManager !== void 0 ? selectedFacetsManager : new FacetsChipsManager(searchBar);
|
|
@@ -142,4 +142,3 @@ class MobileSearchBarManager {
|
|
|
142
142
|
MobileSearchBarManager.styles = css `
|
|
143
143
|
|
|
144
144
|
`;
|
|
145
|
-
export { MobileSearchBarManager };
|
|
@@ -4,7 +4,7 @@ import { FtIcons, FtIconVariants, resolveFileFormatIcon } from "@fluid-topics/ft
|
|
|
4
4
|
import { Debouncer, setVariable, wordWrap } from "@fluid-topics/ft-wc-utils";
|
|
5
5
|
import { FtSearchBarCssVariables } from "../ft-search-bar.styles";
|
|
6
6
|
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple";
|
|
7
|
-
class SuggestManager {
|
|
7
|
+
export class SuggestManager {
|
|
8
8
|
constructor(searchBar, debounceTime = 300) {
|
|
9
9
|
this.listboxId = "suggestManager";
|
|
10
10
|
this.searchBar = searchBar;
|
|
@@ -293,4 +293,3 @@ SuggestManager.styles = [
|
|
|
293
293
|
}
|
|
294
294
|
`,
|
|
295
295
|
];
|
|
296
|
-
export { SuggestManager };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
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": "2.0.
|
|
23
|
-
"@fluid-topics/ft-app-context": "2.0.
|
|
24
|
-
"@fluid-topics/ft-button": "2.0.
|
|
25
|
-
"@fluid-topics/ft-chip": "2.0.
|
|
26
|
-
"@fluid-topics/ft-filter": "2.0.
|
|
27
|
-
"@fluid-topics/ft-icon": "2.0.
|
|
28
|
-
"@fluid-topics/ft-select": "2.0.
|
|
29
|
-
"@fluid-topics/ft-size-watcher": "2.0.
|
|
30
|
-
"@fluid-topics/ft-skeleton": "2.0.
|
|
31
|
-
"@fluid-topics/ft-snap-scroll": "2.0.
|
|
32
|
-
"@fluid-topics/ft-tooltip": "2.0.
|
|
33
|
-
"@fluid-topics/ft-typography": "2.0.
|
|
34
|
-
"@fluid-topics/ft-wc-utils": "2.0.
|
|
22
|
+
"@fluid-topics/ft-accordion": "2.0.16",
|
|
23
|
+
"@fluid-topics/ft-app-context": "2.0.16",
|
|
24
|
+
"@fluid-topics/ft-button": "2.0.16",
|
|
25
|
+
"@fluid-topics/ft-chip": "2.0.16",
|
|
26
|
+
"@fluid-topics/ft-filter": "2.0.16",
|
|
27
|
+
"@fluid-topics/ft-icon": "2.0.16",
|
|
28
|
+
"@fluid-topics/ft-select": "2.0.16",
|
|
29
|
+
"@fluid-topics/ft-size-watcher": "2.0.16",
|
|
30
|
+
"@fluid-topics/ft-skeleton": "2.0.16",
|
|
31
|
+
"@fluid-topics/ft-snap-scroll": "2.0.16",
|
|
32
|
+
"@fluid-topics/ft-tooltip": "2.0.16",
|
|
33
|
+
"@fluid-topics/ft-typography": "2.0.16",
|
|
34
|
+
"@fluid-topics/ft-wc-utils": "2.0.16",
|
|
35
35
|
"lit": "3.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@fluid-topics/public-api": "1.0.
|
|
38
|
+
"@fluid-topics/public-api": "1.0.120"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a972b95acf70b2bfab648ae99cec9d9cbe77c86f"
|
|
41
41
|
}
|