@fluid-topics/ft-search-selected-facets 2.2.41 → 2.2.42
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.
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Rr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};H.elementDefinitions={};H.styles=ol;ne([(0,Se.property)()],H.prototype,"baseUrl",void 0);ne([(0,Se.property)()],H.prototype,"tenantId",void 0);ne([(0,Se.property)()],H.prototype,"apiIntegrationIdentifier",void 0);ne([(0,Se.property)()],H.prototype,"apiIntegrationAppVersion",void 0);ne([(0,Se.property)()],H.prototype,"uiLocale",void 0);ne([(0,Xt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);ne([(0,Xt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"editorMode",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"noCustom",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomComponent",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomCode",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"withManualResources",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);ne([(0,Xt.jsonProperty)([])],H.prototype,"messageContexts",void 0);ne([(0,Xt.jsonProperty)(void 0)],H.prototype,"session",void 0);var ul=d(v());var cl={"ft-app-context":H};(0,ul.customElements)(cl);var vn=class t extends Event{constructor(){super(t.eventName)}};vn.eventName="search-context-clear-all-filters";var bn=t=>t.request.virtualField===Ti.TITLE_ONLY&&t.request.scope===ki.DOCUMENTS,xn=t=>t.request.keywordMatch==ht.MANDATORY;var Os=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Rs=class extends wt.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},dl=Symbol("registerInterval"),Ts=Symbol("registerAttempts"),Sp=40,Ep=(0,wt.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ts]=0,this.tryToRegisterToContext(),this[dl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ts]>Sp?window.clearInterval(this[dl]):(this[Ts]++,this.dispatchEvent(new Rs({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Os([(0,ii.state)()],e.prototype,"stateManager",void 0),Os([(0,ii.state)({hasChanged:wt.hasChanged})],e.prototype,"neededSearchRequests",void 0),Os([(0,ii.property)()],e.prototype,"searchRegistrationId",void 0),e}),Ct=class extends Ep(wt.FtLitElementRedux){};var hr=d(R()),se=d(U()),pu=d(Qt()),Ur=d(v());var xl=d(R()),de=d(U()),Sl=d(Qt()),ni=d(v());var vl=d(R()),Q=d(v()),fl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorContent),re={color:fl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",fl),opacityContentOnSurfacePressed:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},hl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorPrimary),ml={color:hl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",hl)},yl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorSecondary),gl={color:yl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",yl)},bl=vl.css`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
|
+
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
18
|
+
visibility: inherit;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.ft-ripple {
|
|
@@ -97,6 +97,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
97
97
|
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Yr.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Q.elementDefinitions={};Q.styles=cu;he([y()],Q.prototype,"baseUrl",void 0);he([y()],Q.prototype,"tenantId",void 0);he([y()],Q.prototype,"apiIntegrationIdentifier",void 0);he([y()],Q.prototype,"apiIntegrationAppVersion",void 0);he([y()],Q.prototype,"uiLocale",void 0);he([te(null)],Q.prototype,"availableUiLocales",void 0);he([te(null)],Q.prototype,"metadataConfiguration",void 0);he([y({type:Boolean})],Q.prototype,"editorMode",void 0);he([y({type:Boolean})],Q.prototype,"noCustom",void 0);he([y({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);he([y({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);he([y({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomCode",void 0);he([y({type:Boolean})],Q.prototype,"withManualResources",void 0);he([y({type:Boolean})],Q.prototype,"navigatorOnline",void 0);he([y({type:Boolean})],Q.prototype,"forcedOffline",void 0);he([y({type:Boolean})],Q.prototype,"authenticationRequired",void 0);he([te([])],Q.prototype,"messageContexts",void 0);he([te(void 0)],Q.prototype,"session",void 0);var uu={"ft-app-context":Q};W(uu);var ei=class t extends Event{constructor(){super(t.eventName)}};ei.eventName="search-context-clear-all-filters";var ti=t=>t.request.virtualField===ho.TITLE_ONLY&&t.request.scope===fn.DOCUMENTS,ri=t=>t.request.keywordMatch==Me.MANDATORY;var Pa=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Fa=class extends po{constructor(e){super("register-ft-search-component",e)}},pu=Symbol("registerInterval"),Da=Symbol("registerAttempts"),Mm=40,$m=de(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,s,a;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(a=n.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Da]=0,this.tryToRegisterToContext(),this[pu]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Da]>Mm?window.clearInterval(this[pu]):(this[Da]++,this.dispatchEvent(new Fa({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Pa([I()],e.prototype,"stateManager",void 0),Pa([I({hasChanged:Re})],e.prototype,"neededSearchRequests",void 0),Pa([y()],e.prototype,"searchRegistrationId",void 0),e}),Bt=class extends $m(Ot){};var fu=o.extend("--ft-ripple-color","",O.colorContent),ue={color:fu,backgroundColor:o.extend("--ft-ripple-background-color","",fu),opacityContentOnSurfacePressed:o.external(O.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(O.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(O.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(O.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},hu=o.extend("--ft-ripple-color","",O.colorPrimary),mu={color:hu,backgroundColor:o.extend("--ft-ripple-background-color","",hu)},yu=o.extend("--ft-ripple-color","",O.colorSecondary),gu={color:yu,backgroundColor:o.extend("--ft-ripple-background-color","",yu)},bu=R`
|
|
98
98
|
:host {
|
|
99
99
|
display: contents;
|
|
100
|
+
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
101
|
+
visibility: inherit;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
.ft-ripple {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-selected-facets",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.42",
|
|
4
4
|
"description": "List of selected facets in a designed search page context",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "2.2.
|
|
23
|
-
"@fluid-topics/ft-chip": "2.2.
|
|
24
|
-
"@fluid-topics/ft-i18n": "2.2.
|
|
25
|
-
"@fluid-topics/ft-search-context": "2.2.
|
|
26
|
-
"@fluid-topics/ft-search-period-filter": "2.2.
|
|
27
|
-
"@fluid-topics/ft-search-type": "2.2.
|
|
28
|
-
"@fluid-topics/ft-tooltip": "2.2.
|
|
29
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-app-context": "2.2.42",
|
|
23
|
+
"@fluid-topics/ft-chip": "2.2.42",
|
|
24
|
+
"@fluid-topics/ft-i18n": "2.2.42",
|
|
25
|
+
"@fluid-topics/ft-search-context": "2.2.42",
|
|
26
|
+
"@fluid-topics/ft-search-period-filter": "2.2.42",
|
|
27
|
+
"@fluid-topics/ft-search-type": "2.2.42",
|
|
28
|
+
"@fluid-topics/ft-tooltip": "2.2.42",
|
|
29
|
+
"@fluid-topics/ft-wc-utils": "2.2.42",
|
|
30
30
|
"@fluid-topics/public-api": "1.0.149",
|
|
31
31
|
"lit": "3.3.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "f5637f426d465b9be9f8a4aa73c6f3016cbe748c"
|
|
34
34
|
}
|