@fluid-topics/ft-reader-metadata 1.3.17 → 1.3.18

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.
@@ -1553,7 +1553,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1553
1553
  `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onItemSelect(t){t.stopPropagation(),this.dispatchEvent(new Po(t.detail)),this.closeMenu()}onContentClick(t){(0,xr.eventPathContainsMatchingElement)(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:o,y:n}=await So(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${o}px`,this.menuWrapper.style.top=`${n}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}};G.elementDefinitions={"ft-floating-menu-item":Nt};it([(0,Q.state)()],G.prototype,"menuOpen",void 0);it([(0,Q.state)()],G.prototype,"forceMenuOpen",void 0);it([(0,Q.query)(".ft-floating-menu")],G.prototype,"container",void 0);it([(0,Q.query)(".ft-floating-menu--wrapper")],G.prototype,"menuWrapper",void 0);it([(0,Q.query)("#actions-button")],G.prototype,"actionButton",void 0);it([(0,Q.queryAssignedElements)({slot:"toggle"})],G.prototype,"customToggle",void 0);it([(0,Q.property)({type:Boolean})],G.prototype,"primary",void 0);it([(0,Q.property)({type:Boolean})],G.prototype,"secondary",void 0);it([(0,Q.property)({type:Boolean})],G.prototype,"tertiary",void 0);it([(0,Q.property)({type:Boolean})],G.prototype,"neutral",void 0);it([(0,Q.property)({type:Boolean})],G.prototype,"small",void 0);it([(0,Q.property)()],G.prototype,"label",void 0);it([(0,Q.property)()],G.prototype,"tooltipPosition",void 0);it([(0,Q.property)()],G.prototype,"iconVariant",void 0);it([(0,Q.property)()],G.prototype,"icon",void 0);it([(0,Q.property)()],G.prototype,"text",void 0);it([(0,Q.property)()],G.prototype,"horizontalAlignment",void 0);it([(0,Q.property)()],G.prototype,"verticalAlignment",void 0);it([(0,Q.property)({type:Boolean})],G.prototype,"disabled",void 0);it([(0,xr.jsonProperty)([])],G.prototype,"closeMenuMatchers",void 0);var Te=class extends G{};Te.elementDefinitions={"ft-or-ftds-button":Dt};Te.styles=Io;var Oc=b($()),Ec=Oc.css`
1554
1554
  .ft-floating-menu--wrapper {
1555
1555
  position: fixed;
1556
- z-index: 1;
1556
+ z-index: 10;
1557
1557
  }
1558
1558
  `;var vr=class extends G{};vr.elementDefinitions={"ft-or-ftds-button":Bt};vr.styles=[Io,Ec];var Rc=b($()),Tc=b(N());var wc=b($()),ko=b(N()),iu={color:ko.FtCssVariableFactory.extend("--ft-floating-menu-label-color","",ko.designSystemVariables.colorOnSurfaceMedium)},Ac=wc.css`
1559
1559
  .ft-floating-menu-label {
@@ -1620,7 +1620,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1620
1620
  `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onItemSelect(t){t.stopPropagation(),this.dispatchEvent(new fn(t.detail)),this.closeMenu()}onContentClick(t){vi(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:n}=await oo(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${n}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}};J.elementDefinitions={"ft-floating-menu-item":Nt};ut([tt()],J.prototype,"menuOpen",void 0);ut([tt()],J.prototype,"forceMenuOpen",void 0);ut([st(".ft-floating-menu")],J.prototype,"container",void 0);ut([st(".ft-floating-menu--wrapper")],J.prototype,"menuWrapper",void 0);ut([st("#actions-button")],J.prototype,"actionButton",void 0);ut([ti({slot:"toggle"})],J.prototype,"customToggle",void 0);ut([x({type:Boolean})],J.prototype,"primary",void 0);ut([x({type:Boolean})],J.prototype,"secondary",void 0);ut([x({type:Boolean})],J.prototype,"tertiary",void 0);ut([x({type:Boolean})],J.prototype,"neutral",void 0);ut([x({type:Boolean})],J.prototype,"small",void 0);ut([x()],J.prototype,"label",void 0);ut([x()],J.prototype,"tooltipPosition",void 0);ut([x()],J.prototype,"iconVariant",void 0);ut([x()],J.prototype,"icon",void 0);ut([x()],J.prototype,"text",void 0);ut([x()],J.prototype,"horizontalAlignment",void 0);ut([x()],J.prototype,"verticalAlignment",void 0);ut([x({type:Boolean})],J.prototype,"disabled",void 0);ut([Ht([])],J.prototype,"closeMenuMatchers",void 0);var Me=class extends J{};Me.elementDefinitions={"ft-or-ftds-button":Dt};Me.styles=dn;var Ld=L`
1621
1621
  .ft-floating-menu--wrapper {
1622
1622
  position: fixed;
1623
- z-index: 1;
1623
+ z-index: 10;
1624
1624
  }
1625
1625
  `;var $r=class extends J{};$r.elementDefinitions={"ft-or-ftds-button":$t};$r.styles=[dn,Ld];var kf={color:o.extend("--ft-floating-menu-label-color","",F.colorOnSurfaceMedium)},Pd=L`
1626
1626
  .ft-floating-menu-label {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-metadata",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "Metadata for integrated reader",
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-chip": "1.3.17",
23
- "@fluid-topics/ft-floating-menu": "1.3.17",
24
- "@fluid-topics/ft-reader-context": "1.3.17",
25
- "@fluid-topics/ft-ripple": "1.3.17",
26
- "@fluid-topics/ft-tooltip": "1.3.17",
27
- "@fluid-topics/ft-wc-utils": "1.3.17",
22
+ "@fluid-topics/ft-chip": "1.3.18",
23
+ "@fluid-topics/ft-floating-menu": "1.3.18",
24
+ "@fluid-topics/ft-reader-context": "1.3.18",
25
+ "@fluid-topics/ft-ripple": "1.3.18",
26
+ "@fluid-topics/ft-tooltip": "1.3.18",
27
+ "@fluid-topics/ft-wc-utils": "1.3.18",
28
28
  "lit": "3.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@fluid-topics/ft-wc-test-utils": "1.3.17"
31
+ "@fluid-topics/ft-wc-test-utils": "1.3.18"
32
32
  },
33
- "gitHead": "ca55c7b44d386d960ceb68323361ce0ab3aefaa8"
33
+ "gitHead": "f0b88802ac4978bfb8561ded6af8de7c559051a2"
34
34
  }