@fluid-topics/ft-search-facet 2.2.17 → 2.2.19
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-facet.d.ts +2 -1
- package/build/ft-search-facet.js +8 -1
- package/build/ft-search-facet.light.js +112 -112
- package/build/ft-search-facet.min.js +177 -177
- package/package.json +9 -9
|
@@ -18,6 +18,7 @@ export declare class FtSearchFacet extends FtSearchFacet_base implements FtSearc
|
|
|
18
18
|
maxValues: number;
|
|
19
19
|
raiseSelectedOptions: boolean;
|
|
20
20
|
displayTotalResultsCount: boolean;
|
|
21
|
+
propagateFilter: boolean;
|
|
21
22
|
displayMode: "cascade" | "hierarchical";
|
|
22
23
|
filteredOptionsNumberAriaNotification: I18nAttributeValue;
|
|
23
24
|
private facets?;
|
|
@@ -27,7 +28,7 @@ export declare class FtSearchFacet extends FtSearchFacet_base implements FtSearc
|
|
|
27
28
|
private facetHelper;
|
|
28
29
|
neededSearchRequests: FtSearchStateResourceRequest[];
|
|
29
30
|
setSearchStateManager(stateManager: FtSearchStateManager): void;
|
|
30
|
-
protected render(): import("lit-html").TemplateResult<1
|
|
31
|
+
protected render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
31
32
|
protected update(props: PropertyValues): void;
|
|
32
33
|
private onFacetValueSelected;
|
|
33
34
|
private renderCascadeFilter;
|
package/build/ft-search-facet.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, nothing, } from "lit";
|
|
8
|
-
import {
|
|
8
|
+
import { jsonProperty, numberProperty, redux, reduxEventListener, withAnalytics, } from "@fluid-topics/ft-wc-utils";
|
|
9
9
|
import { property, query, state, } from "lit/decorators.js";
|
|
10
10
|
import { styles } from "./ft-search-facet.styles";
|
|
11
11
|
import { FtFilter } from "@fluid-topics/ft-filter";
|
|
@@ -27,6 +27,7 @@ export class FtSearchFacet extends withAnalytics(withI18n(FtSearchComponent), Ft
|
|
|
27
27
|
this.maxValues = 7;
|
|
28
28
|
this.raiseSelectedOptions = false;
|
|
29
29
|
this.displayTotalResultsCount = false;
|
|
30
|
+
this.propagateFilter = false;
|
|
30
31
|
this.displayMode = "cascade";
|
|
31
32
|
this.filteredOptionsNumberAriaNotification = {
|
|
32
33
|
context: "officialContext",
|
|
@@ -41,6 +42,9 @@ export class FtSearchFacet extends withAnalytics(withI18n(FtSearchComponent), Ft
|
|
|
41
42
|
if (this.facetId) {
|
|
42
43
|
stateManager.addFacet(this.facetId);
|
|
43
44
|
}
|
|
45
|
+
if (this.propagateFilter) {
|
|
46
|
+
stateManager.addPropagatedFacet(this.facetId);
|
|
47
|
+
}
|
|
44
48
|
this.addI18nContext(searchFacetContext);
|
|
45
49
|
this.addStore(ftAppInfoStore);
|
|
46
50
|
}
|
|
@@ -164,6 +168,9 @@ __decorate([
|
|
|
164
168
|
__decorate([
|
|
165
169
|
property({ type: Boolean })
|
|
166
170
|
], FtSearchFacet.prototype, "displayTotalResultsCount", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ type: Boolean })
|
|
173
|
+
], FtSearchFacet.prototype, "propagateFilter", void 0);
|
|
167
174
|
__decorate([
|
|
168
175
|
property()
|
|
169
176
|
], FtSearchFacet.prototype, "displayMode", void 0);
|