@fluid-topics/ft-reader-toc 0.3.61 → 0.3.62

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.
@@ -537,7 +537,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
537
537
  ${e.setVariable(Ge.size,qe.iconSize)};
538
538
  ${e.setVariable(Ge.color,"var(--ft-button-internal-color)")};
539
539
  }
540
- `];var ei,ii=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oi extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ke.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
540
+ `];var ei,ii=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oi extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ke.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
541
541
  <button part="button"
542
542
  class="${n.classMap(t)}"
543
543
  aria-label="${this.getLabel()}"
@@ -560,7 +560,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
560
560
  </ft-tooltip>
561
561
  `:t}resolveIcon(){return this.loading?i.html`
562
562
  <ft-loader></ft-loader> `:this.icon?i.html`
563
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}oi.elementDefinitions={"ft-ripple":Le,"ft-tooltip":He,"ft-typography":ue,"ft-icon":Ce,"ft-loader":Ve},oi.styles=[e.safariEllipsisFix,ti],ii([r.property({type:Boolean})],oi.prototype,"primary",void 0),ii([r.property({type:Boolean})],oi.prototype,"outlined",void 0),ii([r.property({type:Boolean})],oi.prototype,"disabled",void 0),ii([r.property({type:Boolean})],oi.prototype,"dense",void 0),ii([r.property({type:Boolean})],oi.prototype,"round",void 0),ii([r.property({type:String})],oi.prototype,"label",void 0),ii([r.property({type:String})],oi.prototype,"icon",void 0),ii([r.property({type:String})],oi.prototype,"iconVariant",void 0),ii([r.property({type:Boolean})],oi.prototype,"trailingIcon",void 0),ii([r.property({type:Boolean})],oi.prototype,"loading",void 0),ii([r.property({type:String})],oi.prototype,"tooltipPosition",void 0),ii([r.property({type:Boolean})],oi.prototype,"hideTooltip",void 0),ii([r.property({type:Boolean})],oi.prototype,"forceTooltip",void 0),ii([r.query(".ft-button")],oi.prototype,"button",void 0),ii([r.query(".ft-button--label slot")],oi.prototype,"slottedContent",void 0),e.customElement("ft-button")(oi),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(ei||(ei={}));const ni=i.css`
563
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}oi.elementDefinitions={"ft-ripple":Le,"ft-tooltip":He,"ft-typography":ue,"ft-icon":Ce,"ft-loader":Ve},oi.styles=[e.safariEllipsisFix,ti],ii([r.property({type:String,reflect:!0})],oi.prototype,"role",void 0),ii([r.property({type:Boolean})],oi.prototype,"primary",void 0),ii([r.property({type:Boolean})],oi.prototype,"outlined",void 0),ii([r.property({type:Boolean})],oi.prototype,"disabled",void 0),ii([r.property({type:Boolean})],oi.prototype,"dense",void 0),ii([r.property({type:Boolean})],oi.prototype,"round",void 0),ii([r.property({type:String})],oi.prototype,"label",void 0),ii([r.property({type:String})],oi.prototype,"icon",void 0),ii([r.property({type:String})],oi.prototype,"iconVariant",void 0),ii([r.property({type:Boolean})],oi.prototype,"trailingIcon",void 0),ii([r.property({type:Boolean})],oi.prototype,"loading",void 0),ii([r.property({type:String})],oi.prototype,"tooltipPosition",void 0),ii([r.property({type:Boolean})],oi.prototype,"hideTooltip",void 0),ii([r.property({type:Boolean})],oi.prototype,"forceTooltip",void 0),ii([r.query(".ft-button")],oi.prototype,"button",void 0),ii([r.query(".ft-button--label slot")],oi.prototype,"slottedContent",void 0),e.customElement("ft-button")(oi),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(ei||(ei={}));const ni=i.css`
564
564
  .ft-size-watcher--pixel {
565
565
  width: 0;
566
566
  height: 0;
@@ -663,7 +663,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
663
663
  ${bt(Gi.size,io.iconSize)};
664
664
  ${bt(Gi.color,"var(--ft-button-internal-color)")};
665
665
  }
666
- `];var lo,ao=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ho extends wt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=zi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
666
+ `];var lo,ao=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ho extends wt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=zi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
667
667
  <button part="button"
668
668
  class="${Kt(t)}"
669
669
  aria-label="${this.getLabel()}"
@@ -686,7 +686,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
686
686
  </ft-tooltip>
687
687
  `:t}resolveIcon(){return this.loading?J`
688
688
  <ft-loader></ft-loader> `:this.icon?J`
689
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ho.elementDefinitions={"ft-ripple":Di,"ft-tooltip":Yi,"ft-typography":bi,"ft-icon":Mi,"ft-loader":to},ho.styles=[Ot,so],ao([o({type:Boolean})],ho.prototype,"primary",void 0),ao([o({type:Boolean})],ho.prototype,"outlined",void 0),ao([o({type:Boolean})],ho.prototype,"disabled",void 0),ao([o({type:Boolean})],ho.prototype,"dense",void 0),ao([o({type:Boolean})],ho.prototype,"round",void 0),ao([o({type:String})],ho.prototype,"label",void 0),ao([o({type:String})],ho.prototype,"icon",void 0),ao([o({type:String})],ho.prototype,"iconVariant",void 0),ao([o({type:Boolean})],ho.prototype,"trailingIcon",void 0),ao([o({type:Boolean})],ho.prototype,"loading",void 0),ao([o({type:String})],ho.prototype,"tooltipPosition",void 0),ao([o({type:Boolean})],ho.prototype,"hideTooltip",void 0),ao([o({type:Boolean})],ho.prototype,"forceTooltip",void 0),ao([s(".ft-button")],ho.prototype,"button",void 0),ao([s(".ft-button--label slot")],ho.prototype,"slottedContent",void 0),c("ft-button")(ho),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(lo||(lo={}));const co=b`
689
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ho.elementDefinitions={"ft-ripple":Di,"ft-tooltip":Yi,"ft-typography":bi,"ft-icon":Mi,"ft-loader":to},ho.styles=[Ot,so],ao([o({type:String,reflect:!0})],ho.prototype,"role",void 0),ao([o({type:Boolean})],ho.prototype,"primary",void 0),ao([o({type:Boolean})],ho.prototype,"outlined",void 0),ao([o({type:Boolean})],ho.prototype,"disabled",void 0),ao([o({type:Boolean})],ho.prototype,"dense",void 0),ao([o({type:Boolean})],ho.prototype,"round",void 0),ao([o({type:String})],ho.prototype,"label",void 0),ao([o({type:String})],ho.prototype,"icon",void 0),ao([o({type:String})],ho.prototype,"iconVariant",void 0),ao([o({type:Boolean})],ho.prototype,"trailingIcon",void 0),ao([o({type:Boolean})],ho.prototype,"loading",void 0),ao([o({type:String})],ho.prototype,"tooltipPosition",void 0),ao([o({type:Boolean})],ho.prototype,"hideTooltip",void 0),ao([o({type:Boolean})],ho.prototype,"forceTooltip",void 0),ao([s(".ft-button")],ho.prototype,"button",void 0),ao([s(".ft-button--label slot")],ho.prototype,"slottedContent",void 0),c("ft-button")(ho),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(lo||(lo={}));const co=b`
690
690
  .ft-size-watcher--pixel {
691
691
  width: 0;
692
692
  height: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-toc",
3
- "version": "0.3.61",
3
+ "version": "0.3.62",
4
4
  "description": "Main table of content for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "0.3.61",
23
- "@fluid-topics/ft-reader-context": "0.3.61",
24
- "@fluid-topics/ft-size-watcher": "0.3.61",
25
- "@fluid-topics/ft-typography": "0.3.61",
26
- "@fluid-topics/ft-wc-utils": "0.3.61",
22
+ "@fluid-topics/ft-icon": "0.3.62",
23
+ "@fluid-topics/ft-reader-context": "0.3.62",
24
+ "@fluid-topics/ft-size-watcher": "0.3.62",
25
+ "@fluid-topics/ft-typography": "0.3.62",
26
+ "@fluid-topics/ft-wc-utils": "0.3.62",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "12a4024fb3084b17772a3aef10723d22ae56c877"
29
+ "gitHead": "801f5c7705e58471510eca9ccb943d558e42e3fb"
30
30
  }