@fluid-topics/ft-search-bar 2.1.19 → 2.1.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.
- package/build/converters.js +7 -7
- package/build/ft-search-bar.d.ts +1 -1
- package/build/ft-search-bar.js +1 -1
- package/build/ft-search-bar.light.js +57 -57
- package/build/ft-search-bar.min.js +7 -7
- package/build/ft-search-bar.styles.js +3 -3
- package/build/managers/FacetsChipsManager.js +11 -11
- package/build/managers/SuggestManager.js +3 -3
- package/package.json +16 -16
package/build/converters.js
CHANGED
|
@@ -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
|
}
|
package/build/ft-search-bar.d.ts
CHANGED
|
@@ -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):
|
|
89
|
+
protected firstUpdated(props: PropertyValues): void;
|
|
90
90
|
protected update(props: PropertyValues): void;
|
|
91
91
|
private stateChangeEventDebouncer;
|
|
92
92
|
private dispatchStateChangeEvent;
|
package/build/ft-search-bar.js
CHANGED