@fluid-topics/ft-search-bar 2.1.18 → 2.1.20

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.
@@ -15,23 +15,23 @@ function facetEntryToOption(entry, forceUnselected) {
15
15
  return {
16
16
  label: entry.label,
17
17
  selected: !forceUnselected && entry.selected,
18
- subOptions: entry.childNodes.map(n => facetEntryToOption(n, entry.selected)),
19
- value: entry.value
18
+ subOptions: entry.childNodes.map((n) => facetEntryToOption(n, entry.selected)),
19
+ value: entry.value,
20
20
  };
21
21
  }
22
22
  export function selectedValues(facet) {
23
- return flatDeep(facet.options, n => { var _a; return (_a = n.subOptions) !== null && _a !== void 0 ? _a : []; }).filter(n => n.selected).map(n => n.label);
23
+ return flatDeep(facet.options, (n) => { var _a; return (_a = n.subOptions) !== null && _a !== void 0 ? _a : []; }).filter((n) => n.selected).map((n) => n.label);
24
24
  }
25
25
  export function facetToFilter(facet) {
26
26
  return {
27
27
  id: facet.key,
28
28
  label: facet.label,
29
29
  multivalued: facet.multiSelectionable,
30
- options: facet.rootNodes.map(n => facetEntryToOption(n, false))
30
+ options: facet.rootNodes.map((n) => facetEntryToOption(n, false)),
31
31
  };
32
32
  }
33
33
  export function getSelectedValues(facet) {
34
- return flatDeep(facet.rootNodes, n => n.selected ? [] : n.childNodes)
35
- .filter(n => n.selected)
36
- .map(n => n.value);
34
+ return flatDeep(facet.rootNodes, (n) => n.selected ? [] : n.childNodes)
35
+ .filter((n) => n.selected)
36
+ .map((n) => n.value);
37
37
  }
@@ -86,7 +86,7 @@ export declare class FtSearchBar extends FtLitElement implements FtSearchBarProp
86
86
  renderFacetsActions(): import("lit-html").TemplateResult<1>;
87
87
  private renderDesktopClearFilters;
88
88
  private renderDesktopFacets;
89
- protected firstUpdated(props: PropertyValues): Promise<void>;
89
+ protected firstUpdated(props: PropertyValues): void;
90
90
  protected update(props: PropertyValues): void;
91
91
  private stateChangeEventDebouncer;
92
92
  private dispatchStateChangeEvent;
@@ -409,7 +409,7 @@ export class FtSearchBar extends FtLitElement {
409
409
  </ft-snap-scroll>
410
410
  `;
411
411
  }
412
- async firstUpdated(props) {
412
+ firstUpdated(props) {
413
413
  super.firstUpdated(props);
414
414
  this.initApi();
415
415
  window.addEventListener("storage", (e) => {