@fluid-topics/ft-search-facet 1.1.97 → 1.1.99
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.
|
@@ -1536,7 +1536,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1536
1536
|
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ze.elementDefinitions={};Ze.styles=Sc;Jr([(0,Xo.redux)()],Ze.prototype,"editorMode",void 0);Jr([(0,Yo.property)()],Ze.prototype,"context",void 0);Jr([(0,Yo.property)()],Ze.prototype,"key",void 0);Jr([(0,Xo.jsonProperty)([])],Ze.prototype,"args",void 0);Jr([(0,Yo.property)()],Ze.prototype,"defaultMessage",void 0);var Qo=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...i)=>xr.resolveMessage(this.name,n,...i)})}};(0,Ec.customElement)("ft-i18n")(Ze);var kt=Qo.build("designedSearchFacet");var Nc=m(R());var Rc=m(D()),nt=m(H()),qe=m(R());var wc=m(D());var Ac=wc.css`
|
|
1537
1537
|
`;var ue=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},li=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ci=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},di=class extends CustomEvent{constructor(e,o,n){super("ft-search-results-change",{detail:{request:e,paging:o,spellcheck:n}})}},X=class extends qe.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Xr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=o=>this.handleLoadError(o),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(I)}render(){return Rc.html`
|
|
1538
1538
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1539
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ci(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new di(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new li(e))}reloadSavedSearches(){fc.clearMySearches()}clear(){this.stateManager.clear()}};X.elementDefinitions={};X.styles=Ac;ue([(0,qe.redux)({store:I.name})],X.prototype,"session",void 0);ue([(0,nt.property)()],X.prototype,"query",void 0);ue([(0,nt.property)()],X.prototype,"contentLocale",void 0);ue([(0,nt.property)({type:Number})],X.prototype,"pageSize",void 0);ue([(0,nt.property)({type:Boolean})],X.prototype,"searchInDocumentTitlesOnly",void 0);ue([(0,nt.property)()],X.prototype,"periodFilter",void 0);ue([(0,nt.property)()],X.prototype,"scope",void 0);ue([(0,nt.property)()],X.prototype,"virtualField",void 0);ue([(0,nt.property)({type:Boolean})],X.prototype,"ignoreEmptyQuery",void 0);ue([(0,qe.redux)({store:I.name})],X.prototype,"openExternalDocumentInNewTab",void 0);ue([(0,qe.jsonProperty)([])],X.prototype,"filters",void 0);ue([(0,qe.jsonProperty)([])],X.prototype,"sort",void 0);ue([(0,qe.redux)({store:"search"})],X.prototype,"request",void 0);ue([(0,qe.redux)({store:"search"})],X.prototype,"paging",void 0);ue([(0,qe.redux)({store:"search",selector:t=>t.spellcheck})],X.prototype,"autocorrect",void 0);ue([(0,nt.property)({attribute:!1})],X.prototype,"searchServiceProvider",void 0);(0,Nc.customElement)("ft-search-context")(X);var gt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ve=class extends Zo(Vo){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1,this.displayTotalResultsCount=!1}setSearchStateManager(e){super.setSearchStateManager(e),this.facetId&&e.addFacet(this.facetId),this.addI18nContext(kt),this.addStore(I)}render(){var e;let o=(e=this.facets)===null||e===void 0?void 0:e.find(n=>n.key==this.facetId);return o?Ar.html`
|
|
1539
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter({key:"ft:lastEdition",periodType:this.periodFilter}),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ci(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new di(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new li(e))}reloadSavedSearches(){fc.clearMySearches()}clear(){this.stateManager.clear()}};X.elementDefinitions={};X.styles=Ac;ue([(0,qe.redux)({store:I.name})],X.prototype,"session",void 0);ue([(0,nt.property)()],X.prototype,"query",void 0);ue([(0,nt.property)()],X.prototype,"contentLocale",void 0);ue([(0,nt.property)({type:Number})],X.prototype,"pageSize",void 0);ue([(0,nt.property)({type:Boolean})],X.prototype,"searchInDocumentTitlesOnly",void 0);ue([(0,nt.property)()],X.prototype,"periodFilter",void 0);ue([(0,nt.property)()],X.prototype,"scope",void 0);ue([(0,nt.property)()],X.prototype,"virtualField",void 0);ue([(0,nt.property)({type:Boolean})],X.prototype,"ignoreEmptyQuery",void 0);ue([(0,qe.redux)({store:I.name})],X.prototype,"openExternalDocumentInNewTab",void 0);ue([(0,qe.jsonProperty)([])],X.prototype,"filters",void 0);ue([(0,qe.jsonProperty)([])],X.prototype,"sort",void 0);ue([(0,qe.redux)({store:"search"})],X.prototype,"request",void 0);ue([(0,qe.redux)({store:"search"})],X.prototype,"paging",void 0);ue([(0,qe.redux)({store:"search",selector:t=>t.spellcheck})],X.prototype,"autocorrect",void 0);ue([(0,nt.property)({attribute:!1})],X.prototype,"searchServiceProvider",void 0);(0,Nc.customElement)("ft-search-context")(X);var gt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ve=class extends Zo(Vo){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1,this.displayTotalResultsCount=!1}setSearchStateManager(e){super.setSearchStateManager(e),this.facetId&&e.addFacet(this.facetId),this.addI18nContext(kt),this.addStore(I)}render(){var e;let o=(e=this.facets)===null||e===void 0?void 0:e.find(n=>n.key==this.facetId);return o?Ar.html`
|
|
1540
1540
|
<ft-filter
|
|
1541
1541
|
part="filter"
|
|
1542
1542
|
label="${o.label}"
|
|
@@ -1581,7 +1581,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1581
1581
|
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};He.elementDefinitions={};He.styles=id;uo([Ee()],He.prototype,"editorMode",void 0);uo([g()],He.prototype,"context",void 0);uo([g()],He.prototype,"key",void 0);uo([pe([])],He.prototype,"args",void 0);uo([g()],He.prototype,"defaultMessage",void 0);var xn=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...i)=>Pr.resolveMessage(this.name,n,...i)})}};H("ft-i18n")(He);var Pt=xn.build("designedSearchFacet");var sd=P`
|
|
1582
1582
|
`;var me=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ga=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Za=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},qa=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n}})}},re=class extends $e{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=co.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(D)}render(){return $`
|
|
1583
1583
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1584
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Za(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new qa(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Ga(e))}reloadSavedSearches(){rd.clearMySearches()}clear(){this.stateManager.clear()}};re.elementDefinitions={};re.styles=sd;me([Ee({store:D.name})],re.prototype,"session",void 0);me([g()],re.prototype,"query",void 0);me([g()],re.prototype,"contentLocale",void 0);me([g({type:Number})],re.prototype,"pageSize",void 0);me([g({type:Boolean})],re.prototype,"searchInDocumentTitlesOnly",void 0);me([g()],re.prototype,"periodFilter",void 0);me([g()],re.prototype,"scope",void 0);me([g()],re.prototype,"virtualField",void 0);me([g({type:Boolean})],re.prototype,"ignoreEmptyQuery",void 0);me([Ee({store:D.name})],re.prototype,"openExternalDocumentInNewTab",void 0);me([pe([])],re.prototype,"filters",void 0);me([pe([])],re.prototype,"sort",void 0);me([Ee({store:"search"})],re.prototype,"request",void 0);me([Ee({store:"search"})],re.prototype,"paging",void 0);me([Ee({store:"search",selector:t=>t.spellcheck})],re.prototype,"autocorrect",void 0);me([g({attribute:!1})],re.prototype,"searchServiceProvider",void 0);H("ft-search-context")(re);var ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends bn(mn){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1,this.displayTotalResultsCount=!1}setSearchStateManager(e){super.setSearchStateManager(e),this.facetId&&e.addFacet(this.facetId),this.addI18nContext(Pt),this.addStore(D)}render(){var e;let r=(e=this.facets)===null||e===void 0?void 0:e.find(n=>n.key==this.facetId);return r?$`
|
|
1584
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter({key:"ft:lastEdition",periodType:this.periodFilter}),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Za(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new qa(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Ga(e))}reloadSavedSearches(){rd.clearMySearches()}clear(){this.stateManager.clear()}};re.elementDefinitions={};re.styles=sd;me([Ee({store:D.name})],re.prototype,"session",void 0);me([g()],re.prototype,"query",void 0);me([g()],re.prototype,"contentLocale",void 0);me([g({type:Number})],re.prototype,"pageSize",void 0);me([g({type:Boolean})],re.prototype,"searchInDocumentTitlesOnly",void 0);me([g()],re.prototype,"periodFilter",void 0);me([g()],re.prototype,"scope",void 0);me([g()],re.prototype,"virtualField",void 0);me([g({type:Boolean})],re.prototype,"ignoreEmptyQuery",void 0);me([Ee({store:D.name})],re.prototype,"openExternalDocumentInNewTab",void 0);me([pe([])],re.prototype,"filters",void 0);me([pe([])],re.prototype,"sort",void 0);me([Ee({store:"search"})],re.prototype,"request",void 0);me([Ee({store:"search"})],re.prototype,"paging",void 0);me([Ee({store:"search",selector:t=>t.spellcheck})],re.prototype,"autocorrect",void 0);me([g({attribute:!1})],re.prototype,"searchServiceProvider",void 0);H("ft-search-context")(re);var ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends bn(mn){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1,this.displayTotalResultsCount=!1}setSearchStateManager(e){super.setSearchStateManager(e),this.facetId&&e.addFacet(this.facetId),this.addI18nContext(Pt),this.addStore(D)}render(){var e;let r=(e=this.facets)===null||e===void 0?void 0:e.find(n=>n.key==this.facetId);return r?$`
|
|
1585
1585
|
<ft-filter
|
|
1586
1586
|
part="filter"
|
|
1587
1587
|
label="${r.label}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-facet",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
4
4
|
"description": "Search facet for integrated search component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-filter": "1.1.
|
|
23
|
-
"@fluid-topics/ft-i18n": "1.1.
|
|
24
|
-
"@fluid-topics/ft-search-context": "1.1.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-filter": "1.1.99",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.1.99",
|
|
24
|
+
"@fluid-topics/ft-search-context": "1.1.99",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.99",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.99",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@fluid-topics/public-api": "1.0.73"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "4f91ba9bad271e32aa24473716e9dfb3dff630bf"
|
|
33
33
|
}
|