@fluid-topics/ft-reader-toc 1.0.60 → 1.0.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.
@@ -105,12 +105,14 @@ const X=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===X)return null==t?void 0:t
105
105
  vertical-align: inherit;
106
106
  }
107
107
  `,Co=[Object.keys(at).map((t=>function(t){const o=at[t];return e.css`
108
- font-family: ${o.fontFamily};
109
- font-size: ${o.fontSize};
110
- font-weight: ${o.fontWeight};
111
- letter-spacing: ${o.letterSpacing};
112
- line-height: ${o.lineHeight};
113
- text-transform: ${o.textCase};
108
+ .ft-typography--${e.unsafeCSS(t)} {
109
+ font-family: ${o.fontFamily};
110
+ font-size: ${o.fontSize};
111
+ font-weight: ${o.fontWeight};
112
+ letter-spacing: ${o.letterSpacing};
113
+ line-height: ${o.lineHeight};
114
+ text-transform: ${o.textCase};
115
+ }
114
116
  `}(t)))];var $o=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class wo extends o.FtLitElement{constructor(){super(...arguments),this.variant=ot.body1}render(){return this.element?tt`
115
117
  <${J(this.element)}
116
118
  class="ft-typography ft-typography--${this.variant}">
@@ -596,7 +598,7 @@ const X=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===X)return null==t?void 0:t
596
598
  </ft-tooltip>
597
599
  `:t}resolveIcon(){return this.loading?e.html`
598
600
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
599
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.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}}be.elementDefinitions={"ft-ripple":ae,"ft-tooltip":ge,"ft-typography":wo,"ft-icon":Bo,"ft-loader":ye},ue([n.property({type:String,reflect:!0})],be.prototype,"role",void 0),ue([n.property()],be.prototype,"type",void 0),ue([n.property({type:Boolean})],be.prototype,"disabled",void 0),ue([n.property()],be.prototype,"label",void 0),ue([n.property()],be.prototype,"icon",void 0),ue([n.property()],be.prototype,"iconVariant",void 0),ue([n.property({type:Boolean})],be.prototype,"trailingIcon",void 0),ue([n.property({type:Boolean})],be.prototype,"loading",void 0),ue([n.property()],be.prototype,"tooltipPosition",void 0),ue([n.property({type:Boolean})],be.prototype,"hideTooltip",void 0),ue([n.property({type:Boolean})],be.prototype,"forceTooltip",void 0),ue([n.query(".ft-button")],be.prototype,"button",void 0),ue([n.query(".ft-button--label slot")],be.prototype,"slottedContent",void 0);var me=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xe extends be{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}xe.styles=[o.safariEllipsisFix,re],me([n.property({type:Boolean})],xe.prototype,"primary",void 0),me([n.property({type:Boolean})],xe.prototype,"outlined",void 0),me([n.property({type:Boolean})],xe.prototype,"disabled",void 0),me([n.property({type:Boolean})],xe.prototype,"dense",void 0),me([n.property({type:Boolean})],xe.prototype,"round",void 0);const Oe=[e.css`
601
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.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}}be.elementDefinitions={"ft-ripple":ae,"ft-tooltip":ge,"ft-typography":wo,"ft-icon":Bo,"ft-loader":ye},ue([n.property({type:String,reflect:!0})],be.prototype,"role",void 0),ue([n.property()],be.prototype,"type",void 0),ue([n.property({type:Boolean})],be.prototype,"disabled",void 0),ue([n.property()],be.prototype,"label",void 0),ue([n.property()],be.prototype,"icon",void 0),ue([n.property()],be.prototype,"iconVariant",void 0),ue([n.property({type:Boolean})],be.prototype,"trailingIcon",void 0),ue([n.property({type:Boolean})],be.prototype,"loading",void 0),ue([n.property()],be.prototype,"tooltipPosition",void 0),ue([n.property({type:Boolean})],be.prototype,"hideTooltip",void 0),ue([n.property({type:Boolean})],be.prototype,"forceTooltip",void 0),ue([n.query(".ft-button")],be.prototype,"button",void 0),ue([n.query(".ft-button--label slot")],be.prototype,"slottedContent",void 0);var me=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xe extends be{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}xe.styles=[o.safariEllipsisFix,re],me([n.property({type:Boolean})],xe.prototype,"primary",void 0),me([n.property({type:Boolean})],xe.prototype,"outlined",void 0),me([n.property({type:Boolean})],xe.prototype,"dense",void 0),me([n.property({type:Boolean})],xe.prototype,"round",void 0);const Oe=[e.css`
600
602
  :host {
601
603
  display: inline-block;
602
604
  max-width: 100%;
@@ -209,12 +209,14 @@ var yt,gt;let bt=class extends I{constructor(){super(...arguments),this.renderOp
209
209
  vertical-align: inherit;
210
210
  }
211
211
  `,De=[Object.keys(St).map((t=>function(t){const o=St[t];return m`
212
- font-family: ${o.fontFamily};
213
- font-size: ${o.fontSize};
214
- font-weight: ${o.fontWeight};
215
- letter-spacing: ${o.letterSpacing};
216
- line-height: ${o.lineHeight};
217
- text-transform: ${o.textCase};
212
+ .ft-typography--${b(t)} {
213
+ font-family: ${o.fontFamily};
214
+ font-size: ${o.fontSize};
215
+ font-weight: ${o.fontWeight};
216
+ letter-spacing: ${o.letterSpacing};
217
+ line-height: ${o.lineHeight};
218
+ text-transform: ${o.textCase};
219
+ }
218
220
  `}(t)))];var Me=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class He extends Wt{constructor(){super(...arguments),this.variant=wo.body1}render(){return this.element?So`
219
221
  <${Oo(this.element)}
220
222
  class="ft-typography ft-typography--${this.variant}">
@@ -712,7 +714,7 @@ function(t,o,e){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:o},
712
714
  </ft-tooltip>
713
715
  `:t}resolveIcon(){return this.loading?J`
714
716
  <ft-loader part="loader icon"></ft-loader> `:this.icon?J`
715
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Q}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}}Kr.elementDefinitions={"ft-ripple":Sr,"ft-tooltip":Lr,"ft-typography":He,"ft-icon":or,"ft-loader":Wr},zr([r({type:String,reflect:!0})],Kr.prototype,"role",void 0),zr([r()],Kr.prototype,"type",void 0),zr([r({type:Boolean})],Kr.prototype,"disabled",void 0),zr([r()],Kr.prototype,"label",void 0),zr([r()],Kr.prototype,"icon",void 0),zr([r()],Kr.prototype,"iconVariant",void 0),zr([r({type:Boolean})],Kr.prototype,"trailingIcon",void 0),zr([r({type:Boolean})],Kr.prototype,"loading",void 0),zr([r()],Kr.prototype,"tooltipPosition",void 0),zr([r({type:Boolean})],Kr.prototype,"hideTooltip",void 0),zr([r({type:Boolean})],Kr.prototype,"forceTooltip",void 0),zr([a(".ft-button")],Kr.prototype,"button",void 0),zr([a(".ft-button--label slot")],Kr.prototype,"slottedContent",void 0);var Fr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Zr extends Kr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}Zr.styles=[Kt,Or],Fr([r({type:Boolean})],Zr.prototype,"primary",void 0),Fr([r({type:Boolean})],Zr.prototype,"outlined",void 0),Fr([r({type:Boolean})],Zr.prototype,"disabled",void 0),Fr([r({type:Boolean})],Zr.prototype,"dense",void 0),Fr([r({type:Boolean})],Zr.prototype,"round",void 0);const Br=[m`
717
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Q}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}}Kr.elementDefinitions={"ft-ripple":Sr,"ft-tooltip":Lr,"ft-typography":He,"ft-icon":or,"ft-loader":Wr},zr([r({type:String,reflect:!0})],Kr.prototype,"role",void 0),zr([r()],Kr.prototype,"type",void 0),zr([r({type:Boolean})],Kr.prototype,"disabled",void 0),zr([r()],Kr.prototype,"label",void 0),zr([r()],Kr.prototype,"icon",void 0),zr([r()],Kr.prototype,"iconVariant",void 0),zr([r({type:Boolean})],Kr.prototype,"trailingIcon",void 0),zr([r({type:Boolean})],Kr.prototype,"loading",void 0),zr([r()],Kr.prototype,"tooltipPosition",void 0),zr([r({type:Boolean})],Kr.prototype,"hideTooltip",void 0),zr([r({type:Boolean})],Kr.prototype,"forceTooltip",void 0),zr([a(".ft-button")],Kr.prototype,"button",void 0),zr([a(".ft-button--label slot")],Kr.prototype,"slottedContent",void 0);var Fr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Zr extends Kr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}Zr.styles=[Kt,Or],Fr([r({type:Boolean})],Zr.prototype,"primary",void 0),Fr([r({type:Boolean})],Zr.prototype,"outlined",void 0),Fr([r({type:Boolean})],Zr.prototype,"dense",void 0),Fr([r({type:Boolean})],Zr.prototype,"round",void 0);const Br=[m`
716
718
  :host {
717
719
  display: inline-block;
718
720
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-toc",
3
- "version": "1.0.60",
3
+ "version": "1.0.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": "1.0.60",
23
- "@fluid-topics/ft-reader-context": "1.0.60",
24
- "@fluid-topics/ft-size-watcher": "1.0.60",
25
- "@fluid-topics/ft-typography": "1.0.60",
26
- "@fluid-topics/ft-wc-utils": "1.0.60",
22
+ "@fluid-topics/ft-icon": "1.0.62",
23
+ "@fluid-topics/ft-reader-context": "1.0.62",
24
+ "@fluid-topics/ft-size-watcher": "1.0.62",
25
+ "@fluid-topics/ft-typography": "1.0.62",
26
+ "@fluid-topics/ft-wc-utils": "1.0.62",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "8eb7c2ef052f5d3f61ed0bf150fcaee093805450"
29
+ "gitHead": "44e9005773fe47b2e6a9ada16802918052a146cf"
30
30
  }