@fluid-topics/ft-search-result-metadata 1.1.34 → 1.1.36

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.
@@ -980,7 +980,7 @@ const Pt=Symbol.for(""),Mt=t=>{if(t?.r===Pt)return t?._$litStatic$},jt=t=>({_$li
980
980
  `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new mn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new mn))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}xn.elementDefinitions={"ft-ripple":Di,"ft-typography":ue,"ft-icon":Pi,"ft-button":an},xn.styles=yn,bn([i.property({type:Boolean})],xn.prototype,"highlighted",void 0),bn([i.property({type:Boolean})],xn.prototype,"removable",void 0),bn([i.property({type:Boolean})],xn.prototype,"disabled",void 0),bn([i.property({type:Boolean})],xn.prototype,"clickable",void 0),bn([i.property({type:Boolean})],xn.prototype,"iconClickable",void 0),bn([i.property({type:Boolean})],xn.prototype,"dense",void 0),bn([i.property({type:Boolean})],xn.prototype,"multiLine",void 0),bn([i.property()],xn.prototype,"label",void 0),bn([i.property()],xn.prototype,"iconLabel",void 0),bn([i.property()],xn.prototype,"icon",void 0),bn([i.property()],xn.prototype,"iconVariant",void 0),bn([i.property({type:Boolean})],xn.prototype,"trailingIcon",void 0),bn([i.query("ft-typography slot")],xn.prototype,"slottedContent",void 0),o.customElement("ft-chip")(xn);const vn=o.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),On=o.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),Nn=o.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),Sn=o.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",o.designSystemVariables.colorOnSurfaceHigh),wn=o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),Cn=o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),$n=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),In=e.css`
981
981
  .ft-floating-menu {
982
982
  color: ${Sn};
983
- display: inline-block;
983
+ display: contents;
984
984
  }
985
985
 
986
986
  .ft-floating-menu--wrapper {
@@ -1052,8 +1052,7 @@ const Pt=Symbol.for(""),Mt=t=>{if(t?.r===Pt)return t?._$litStatic$},jt=t=>({_$li
1052
1052
  </ft-typography>
1053
1053
  </div>
1054
1054
  `}onClick(t){this.dispatchEvent(new kn(this.value))}onKeyDown(t){"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),this.dispatchEvent(new kn(this.value)))}}Ln.elementDefinitions={"ft-icon":Pi,"ft-ripple":Di,"ft-typography":ue},Ln.styles=Un,Rn([i.property()],Ln.prototype,"iconVariant",void 0),Rn([i.property()],Ln.prototype,"icon",void 0),Rn([i.property()],Ln.prototype,"value",void 0),Rn([i.property({type:Boolean})],Ln.prototype,"notFocusable",void 0);var Wn=function(t,o,e,i){for(var n,r=arguments.length,a=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(r<3?n(a):r>3?n(o,e,a):n(o,e))||a);return r>3&&a&&Object.defineProperty(o,e,a),a};class Kn extends o.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Ti.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return e.html`
1055
- <div class="${n.classMap(t)}">
1056
-
1055
+ <div part="container" class="${n.classMap(t)}">
1057
1056
  <slot name="toggle"
1058
1057
  part="toggle"
1059
1058
  @click=${this.toggleMenu}>
@@ -1075,7 +1074,7 @@ const Pt=Symbol.for(""),Mt=t=>{if(t?.r===Pt)return t?._$litStatic$},jt=t=>({_$li
1075
1074
  ${this.text}
1076
1075
  </ft-or-ftds-button>
1077
1076
  </slot>
1078
- <div class="ft-floating-menu--wrapper">
1077
+ <div part="options-wrapper" class="ft-floating-menu--wrapper">
1079
1078
  <div id="ft-floating-menu-options"
1080
1079
  class="ft-floating-menu--options"
1081
1080
  part="options"
@@ -86,7 +86,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
86
86
  * @license
87
87
  * Copyright 2019 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */const Mo=window,Fo=Mo.ShadowRoot&&(void 0===Mo.ShadyCSS||Mo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Do extends Ne{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Fo?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Mo.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Po,zo=function(t,e,o,i){for(var n,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,o,a):n(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const Bo=Symbol("constructorPrototype"),To=Symbol("constructorName"),Zo=Symbol("exportpartsDebouncer");class _o extends Do{constructor(){super(),this[Po]=new r(5),this[To]=this.constructor.name,this[Bo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[To]&&Object.setPrototypeOf(this,this[Bo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Zo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,n,r,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(n=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==n?n:[],o=null!==(a=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Po=Zo,zo([U()],_o.prototype,"exportpartsPrefix",void 0),zo([K([])],_o.prototype,"exportpartsPrefixes",void 0),zo([U()],_o.prototype,"customStylesheet",void 0);const Ho=$e.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");$t`
89
+ */const Mo=window,Fo=Mo.ShadowRoot&&(void 0===Mo.ShadyCSS||Mo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Do extends Ne{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Fo?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Mo.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Po,zo=function(t,e,o,i){for(var n,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,o,a):n(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const Bo=Symbol("constructorPrototype"),To=Symbol("constructorName"),Zo=Symbol("exportpartsDebouncer");class _o extends Do{constructor(){super(),this[Po]=new r(5),this[To]=this.constructor.name,this[Bo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[To]&&Object.setPrototypeOf(this,this[Bo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Zo].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,n,r,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(n=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==n?n:[],o=null!==(a=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Po=Zo,zo([U()],_o.prototype,"exportpartsPrefix",void 0),zo([K([])],_o.prototype,"exportpartsPrefixes",void 0),zo([U()],_o.prototype,"customStylesheet",void 0);const Ho=$e.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");$t`
90
90
  .highlight-html-match {
91
91
  background: ${Ho};
92
92
  }
@@ -1121,7 +1121,7 @@ class Zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==Us)throw Erro
1121
1121
  `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new El))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new El))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}$l.elementDefinitions={"ft-ripple":Ts,"ft-typography":ms,"ft-icon":Js,"ft-button":dl},$l.styles=Nl,Cl([U({type:Boolean})],$l.prototype,"highlighted",void 0),Cl([U({type:Boolean})],$l.prototype,"removable",void 0),Cl([U({type:Boolean})],$l.prototype,"disabled",void 0),Cl([U({type:Boolean})],$l.prototype,"clickable",void 0),Cl([U({type:Boolean})],$l.prototype,"iconClickable",void 0),Cl([U({type:Boolean})],$l.prototype,"dense",void 0),Cl([U({type:Boolean})],$l.prototype,"multiLine",void 0),Cl([U()],$l.prototype,"label",void 0),Cl([U()],$l.prototype,"iconLabel",void 0),Cl([U()],$l.prototype,"icon",void 0),Cl([U()],$l.prototype,"iconVariant",void 0),Cl([U({type:Boolean})],$l.prototype,"trailingIcon",void 0),Cl([W("ft-typography slot")],$l.prototype,"slottedContent",void 0),j("ft-chip")($l);const Rl=$e.create("--ft-floating-menu-z-index","","NUMBER","8"),Ul=$e.create("--ft-floating-menu-max-width","","SIZE","300px"),Il=$e.create("--ft-floating-menu-max-height","","SIZE","500px"),kl=$e.extend("--ft-floating-menu-text-color","",We.colorOnSurfaceHigh),Ll=$e.external(We.colorSurface,"Design system"),Wl=$e.external(We.elevation02,"Design system"),Al=$e.external(We.borderRadiusS,"Design system"),jl=$t`
1122
1122
  .ft-floating-menu {
1123
1123
  color: ${kl};
1124
- display: inline-block;
1124
+ display: contents;
1125
1125
  }
1126
1126
 
1127
1127
  .ft-floating-menu--wrapper {
@@ -1193,8 +1193,7 @@ class Zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==Us)throw Erro
1193
1193
  </ft-typography>
1194
1194
  </div>
1195
1195
  `}onClick(t){this.dispatchEvent(new Dl(this.value))}onKeyDown(t){"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),this.dispatchEvent(new Dl(this.value)))}}Pl.elementDefinitions={"ft-icon":Js,"ft-ripple":Ts,"ft-typography":ms},Pl.styles=Ml,Fl([U()],Pl.prototype,"iconVariant",void 0),Fl([U()],Pl.prototype,"icon",void 0),Fl([U()],Pl.prototype,"value",void 0),Fl([U({type:Boolean})],Pl.prototype,"notFocusable",void 0);var zl=function(t,e,o,i){for(var n,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,o,a):n(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};class Bl extends _o{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Ys.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return ce`
1196
- <div class="${Ls(t)}">
1197
-
1196
+ <div part="container" class="${Ls(t)}">
1198
1197
  <slot name="toggle"
1199
1198
  part="toggle"
1200
1199
  @click=${this.toggleMenu}>
@@ -1216,7 +1215,7 @@ class Zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==Us)throw Erro
1216
1215
  ${this.text}
1217
1216
  </ft-or-ftds-button>
1218
1217
  </slot>
1219
- <div class="ft-floating-menu--wrapper">
1218
+ <div part="options-wrapper" class="ft-floating-menu--wrapper">
1220
1219
  <div id="ft-floating-menu-options"
1221
1220
  class="ft-floating-menu--options"
1222
1221
  part="options"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-result-metadata",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "description": "Search result metadata 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-chip": "1.1.34",
23
- "@fluid-topics/ft-floating-menu": "1.1.34",
24
- "@fluid-topics/ft-search-result-context": "1.1.34",
25
- "@fluid-topics/ft-tooltip": "1.1.34",
26
- "@fluid-topics/ft-wc-utils": "1.1.34",
22
+ "@fluid-topics/ft-chip": "1.1.36",
23
+ "@fluid-topics/ft-floating-menu": "1.1.36",
24
+ "@fluid-topics/ft-search-result-context": "1.1.36",
25
+ "@fluid-topics/ft-tooltip": "1.1.36",
26
+ "@fluid-topics/ft-wc-utils": "1.1.36",
27
27
  "lit": "3.1.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fluid-topics/public-api": "1.0.59"
31
31
  },
32
- "gitHead": "1e947e93e937ded84f056955b14b760e9dea7058"
32
+ "gitHead": "18df3483145165af9ce51db3f11be8aeb918ea40"
33
33
  }