@fluid-topics/ft-search-bar 2.0.15 → 2.0.17

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.
@@ -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="${() => this.onClick()}"
39
- @focus="${() => this.onFocus()}"
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.15",
3
+ "version": "2.0.17",
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.15",
23
- "@fluid-topics/ft-app-context": "2.0.15",
24
- "@fluid-topics/ft-button": "2.0.15",
25
- "@fluid-topics/ft-chip": "2.0.15",
26
- "@fluid-topics/ft-filter": "2.0.15",
27
- "@fluid-topics/ft-icon": "2.0.15",
28
- "@fluid-topics/ft-select": "2.0.15",
29
- "@fluid-topics/ft-size-watcher": "2.0.15",
30
- "@fluid-topics/ft-skeleton": "2.0.15",
31
- "@fluid-topics/ft-snap-scroll": "2.0.15",
32
- "@fluid-topics/ft-tooltip": "2.0.15",
33
- "@fluid-topics/ft-typography": "2.0.15",
34
- "@fluid-topics/ft-wc-utils": "2.0.15",
22
+ "@fluid-topics/ft-accordion": "2.0.17",
23
+ "@fluid-topics/ft-app-context": "2.0.17",
24
+ "@fluid-topics/ft-button": "2.0.17",
25
+ "@fluid-topics/ft-chip": "2.0.17",
26
+ "@fluid-topics/ft-filter": "2.0.17",
27
+ "@fluid-topics/ft-icon": "2.0.17",
28
+ "@fluid-topics/ft-select": "2.0.17",
29
+ "@fluid-topics/ft-size-watcher": "2.0.17",
30
+ "@fluid-topics/ft-skeleton": "2.0.17",
31
+ "@fluid-topics/ft-snap-scroll": "2.0.17",
32
+ "@fluid-topics/ft-tooltip": "2.0.17",
33
+ "@fluid-topics/ft-typography": "2.0.17",
34
+ "@fluid-topics/ft-wc-utils": "2.0.17",
35
35
  "lit": "3.1.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@fluid-topics/public-api": "1.0.120"
39
39
  },
40
- "gitHead": "4ccf89e835f22f2689fc0fe3f97c46671debe98d"
40
+ "gitHead": "630c12bb34a3f0df02b112fc182bbbb97025d959"
41
41
  }