@fluid-topics/ft-search-facet 1.0.41 → 1.0.43
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.js
CHANGED
|
@@ -52,8 +52,13 @@ class FtSearchFacet extends withI18n(FtSearchComponent) {
|
|
|
52
52
|
></ft-filter>
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
56
|
-
|
|
55
|
+
if (this.editorMode) {
|
|
56
|
+
if (this.facetId) {
|
|
57
|
+
return html `${searchFacetContext.messages.noFilterValuesAvailable()}`;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return html `${searchFacetContext.messages.noMetadataSelected()}`;
|
|
61
|
+
}
|
|
57
62
|
}
|
|
58
63
|
return nothing;
|
|
59
64
|
}
|
|
@@ -1263,4 +1263,4 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
1263
1263
|
noValuesLabel="${ho.messages.noFilterValuesAvailable()}"
|
|
1264
1264
|
@change=${this.onFacetValueSelected}
|
|
1265
1265
|
></ft-filter>
|
|
1266
|
-
|
|
1266
|
+
`:this.editorMode?this.facetId?e.html`${ho.messages.noFilterValuesAvailable()}`:e.html`${ho.messages.noMetadataSelected()}`:e.nothing}updated(t){var i;super.updated(t),t.has("facetId")&&(null===(i=this.stateManager)||void 0===i||i.replaceFacet(t.get("facetId"),this.facetId))}onFacetValueSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setFilter(this.facetId,t.detail)}}co.elementDefinitions={"ft-filter":Ne,"ft-typography":ai},co.styles=l,po([o.property()],co.prototype,"facetId",void 0),po([o.property({type:Number})],co.prototype,"maxValues",void 0),po([o.property({type:Boolean})],co.prototype,"raiseSelectedOptions",void 0),po([i.redux({store:"search"})],co.prototype,"request",void 0),po([i.redux({store:"search"})],co.prototype,"facets",void 0),po([i.redux({store:Ue.name})],co.prototype,"editorMode",void 0),i.customElement("ft-search-facet")(co),t.FtSearchFacet=co,t.FtSearchFacetCssVariables={},t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|