@fluid-topics/ft-reader-toc 0.3.66 → 0.3.67
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.
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const f=window,c=f.trustedTypes,u=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
6
|
+
*/const f=window,c=f.trustedTypes,u=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,g=`lit$${(Math.random()+"").slice(9)}$`,v="?"+g,x=`<${v}>`,y=document,b=(t="")=>y.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,z=/>/g,S=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),C=/'/g,N=/"/g,O=/^(?:script|style|textarea|title)$/i,A=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),j=new WeakMap,T=y.createTreeWalker(y,129,null,!1),B=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=w;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,p=0;for(;p<i.length&&(r.lastIndex=p,a=r.exec(i),null!==a);)p=r.lastIndex,r===w?"!--"===a[1]?r=k:void 0!==a[1]?r=z:void 0!==a[2]?(O.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=n?n:w,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?N:C):r===N||r===C?r=S:r===k||r===z?r=w:(r=S,n=void 0);const d=r===S&&t[e+1].startsWith("/>")?" ":"";s+=r===w?i+x:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+g+d):i+g+(-2===h?(o.push(void 0),e):d)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==u?u.createHTML(l):l,o]};class _{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,h]=B(t,e);if(this.el=_.createElement(a,i),T.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=T.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(g)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(g),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?P:"?"===e[1]?Z:"@"===e[1]?W:U})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(O.test(o.tagName)){const t=o.textContent.split(g),e=t.length-1;if(e>0){o.textContent=c?c.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],b()),T.nextNode(),l.push({type:2,index:++n});o.append(t[e],b())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(g,t+1));)l.push({type:7,index:n}),t+=g.length-1}n++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,o){var n,s,r,l;if(e===I)return e;let a=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=m(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=L(t,a._$AS(t,e.values),a,o)),e}class M{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:y).importNode(i,!0);T.currentNode=n;let s=T.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new F(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new D(s,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=T.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class F{constructor(t,e,i,o){var n;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),m(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==I&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>$(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==E&&m(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=_.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new M(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new _(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new F(this.O(b()),this.O(b()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class U{constructor(t,e,i,o,n){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=L(this,t,e,0),s=!m(t)||t!==this._$AH&&t!==I,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=L(this,o[i+r],e,r),l===I&&(l=this._$AH[r]),s||(s=!m(l)||l!==this._$AH[r]),l===E?t=E:t!==E&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class P extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const R=c?c.emptyScript:"";class Z extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class W extends U{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=L(this,t,e,0))&&void 0!==i?i:E)===I)return;const o=this._$AH,n=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==E&&(o===E||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class D{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const H=f.litHtmlPolyfillSupport;null==H||H(_,F),(null!==(a=f.litHtmlVersions)&&void 0!==a?a:f.litHtmlVersions=[]).push("2.4.0");
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2020 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t._$litStatic$},V=t=>({_$litStatic$:t,r:G}),X=new Map,q=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(s=i[h],n=K(s));)a+=n+e[++h],p=!0;l.push(s),r.push(a),h++}if(h===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=X.get(t))&&(r.raw=r,X.set(t,e=r)),i=l}return t(e,...i)})(A);var Y;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Y||(Y={}));const J=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",J),it=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),
|
|
12
|
+
const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t._$litStatic$},V=t=>({_$litStatic$:t,r:G}),X=new Map,q=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(s=i[h],n=K(s));)a+=n+e[++h],p=!0;l.push(s),r.push(a),h++}if(h===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=X.get(t))&&(r.raw=r,X.set(t,e=r)),i=l}return t(e,...i)})(A);var Y;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Y||(Y={}));const J=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",J),it=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Q),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),St=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Q),Ct=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),At=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),It=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Q),jt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Bt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),_t=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),Mt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Q),Ft=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Pt=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),Zt=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),Wt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Q),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Ht=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Gt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Vt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Xt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Q),qt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Yt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Jt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Qt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),te=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),ee={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase")},ie=i.css`
|
|
13
13
|
.ft-typography--title {
|
|
14
14
|
font-family: ${et};
|
|
15
15
|
font-size: ${it};
|
|
@@ -31,8 +31,8 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
31
31
|
.ft-typography--subtitle1 {
|
|
32
32
|
font-family: ${ct};
|
|
33
33
|
font-size: ${ut};
|
|
34
|
-
font-weight: ${
|
|
35
|
-
letter-spacing: ${
|
|
34
|
+
font-weight: ${gt};
|
|
35
|
+
letter-spacing: ${vt};
|
|
36
36
|
line-height: ${xt};
|
|
37
37
|
text-transform: ${yt};
|
|
38
38
|
}
|
|
@@ -48,8 +48,8 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
48
48
|
|
|
49
49
|
`,re=i.css`
|
|
50
50
|
.ft-typography--body1 {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
51
|
+
font-family: ${St};
|
|
52
|
+
font-size: ${Ct};
|
|
53
53
|
font-weight: ${Nt};
|
|
54
54
|
letter-spacing: ${Ot};
|
|
55
55
|
line-height: ${At};
|
|
@@ -57,8 +57,8 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
57
57
|
}
|
|
58
58
|
`,le=i.css`
|
|
59
59
|
.ft-typography--body2 {
|
|
60
|
-
font-family: ${
|
|
61
|
-
font-size: ${
|
|
60
|
+
font-family: ${Et};
|
|
61
|
+
font-size: ${jt};
|
|
62
62
|
font-weight: ${Tt};
|
|
63
63
|
letter-spacing: ${Bt};
|
|
64
64
|
line-height: ${_t};
|
|
@@ -69,8 +69,8 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
69
69
|
font-family: ${Mt};
|
|
70
70
|
font-size: ${Ft};
|
|
71
71
|
font-weight: ${Ut};
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
72
|
+
letter-spacing: ${Pt};
|
|
73
|
+
line-height: ${Rt};
|
|
74
74
|
text-transform: ${Zt};
|
|
75
75
|
}
|
|
76
76
|
`,he=i.css`
|
|
@@ -111,13 +111,13 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
111
111
|
</${V(this.element)}>
|
|
112
112
|
`:q`
|
|
113
113
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
114
|
-
`}}ue.styles=[ie,oe,ne,se,re,le,ae,he,pe,de,fe],ce([r.property()],ue.prototype,"element",void 0),ce([r.property()],ue.prototype,"variant",void 0),e.customElement("ft-typography")(ue);const
|
|
114
|
+
`}}ue.styles=[ie,oe,ne,se,re,le,ae,he,pe,de,fe],ce([r.property()],ue.prototype,"element",void 0),ce([r.property()],ue.prototype,"variant",void 0),e.customElement("ft-typography")(ue);const ge=e.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color",e.designSystemVariables.colorPrimary),ve=i.css`
|
|
115
115
|
:host {
|
|
116
116
|
display: contents;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
a:focus {
|
|
120
|
-
outline-color: ${
|
|
120
|
+
outline-color: ${ge};
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.ft-reader-link--remove-style {
|
|
@@ -130,7 +130,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
130
130
|
@click=${t=>this.onLinkClick(t)}>
|
|
131
131
|
<slot></slot>
|
|
132
132
|
</a>
|
|
133
|
-
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}me.styles=
|
|
133
|
+
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}me.styles=ve,be([r.property()],me.prototype,"tocId",void 0),be([r.property()],me.prototype,"section",void 0),be([r.property({type:Number})],me.prototype,"pageNumber",void 0),be([r.property({type:Boolean})],me.prototype,"removeStyle",void 0),e.customElement("ft-reader-internal-link")(me),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(xe||(xe={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ye||(ye={})),new Map([...["abw"].map((t=>[t,ye.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ye.AUDIO])),...["avi"].map((t=>[t,ye.AVI])),...["chm","xhs"].map((t=>[t,ye.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ye.CODE])),...["csv"].map((t=>[t,ye.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ye.DITA])),...["epub"].map((t=>[t,ye.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ye.EXCEL])),...["flac"].map((t=>[t,ye.FLAC])),...["gif"].map((t=>[t,ye.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ye.GZIP])),...["html","htm","xhtml"].map((t=>[t,ye.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ye.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ye.JPEG])),...["json"].map((t=>[t,ye.JSON])),...["m4a","m4p"].map((t=>[t,ye.M4A])),...["mov","qt"].map((t=>[t,ye.MOV])),...["mp3"].map((t=>[t,ye.MP3])),...["mp4","m4v"].map((t=>[t,ye.MP4])),...["ogg","oga"].map((t=>[t,ye.OGG])),...["pdf","ps"].map((t=>[t,ye.PDF])),...["png"].map((t=>[t,ye.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ye.POWERPOINT])),...["rar"].map((t=>[t,ye.RAR])),...["stp"].map((t=>[t,ye.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ye.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ye.VIDEO])),...["wav"].map((t=>[t,ye.WAV])),...["wma"].map((t=>[t,ye.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ye.WORD])),...["xml","xsl","rdf"].map((t=>[t,ye.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ye.YAML])),...["zip"].map((t=>[t,ye.ZIP]))]);const $e={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},we=i.css`
|
|
134
134
|
:host, i.ft-icon {
|
|
135
135
|
display: inline-flex;
|
|
136
136
|
align-items: center;
|
|
@@ -177,12 +177,12 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
177
177
|
.ft-icon--material {
|
|
178
178
|
font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
|
|
179
179
|
}
|
|
180
|
-
`;var ke;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ke||(ke={}));var ze=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
|
|
180
|
+
`;var ke;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ke||(ke={}));var ze=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 Se extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:ke.fluid_topics,o="material"!==e||this.value;return i.html`
|
|
181
181
|
<i class="ft-icon ${"ft-icon--"+e}">
|
|
182
182
|
${l.unsafeHTML(this.resolvedIcon)}
|
|
183
183
|
<slot ?hidden=${o}></slot>
|
|
184
184
|
</i>
|
|
185
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ke.file_format:this.resolvedIcon=null!==(t=ye[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ke.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=xe[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}
|
|
185
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ke.file_format:this.resolvedIcon=null!==(t=ye[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ke.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=xe[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Se.elementDefinitions={},Se.styles=we,ze([r.property()],Se.prototype,"variant",void 0),ze([r.property()],Se.prototype,"value",void 0),ze([r.state()],Se.prototype,"resolvedIcon",void 0),ze([r.query("slot")],Se.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Se);const Ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),Ne={color:Ce,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ce),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},Oe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),Ae=Oe,Ie=e.FtCssVariableFactory.extend("--ft-ripple-background-color",Oe),Ee=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),je=Ee,Te=e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ee),Be=i.css`
|
|
186
186
|
:host {
|
|
187
187
|
display: contents;
|
|
188
188
|
}
|
|
@@ -216,7 +216,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
219
|
-
background-color: ${
|
|
219
|
+
background-color: ${je};
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -288,7 +288,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
288
288
|
<div class="ft-ripple--background"></div>
|
|
289
289
|
<div class="ft-ripple--effect"></div>
|
|
290
290
|
</div>
|
|
291
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Le.elementDefinitions={},Le.styles=Be,_e([r.property({type:Boolean})],Le.prototype,"primary",void 0),_e([r.property({type:Boolean})],Le.prototype,"secondary",void 0),_e([r.property({type:Boolean})],Le.prototype,"unbounded",void 0),_e([r.property({type:Boolean})],Le.prototype,"activated",void 0),_e([r.property({type:Boolean})],Le.prototype,"selected",void 0),_e([r.property({type:Boolean})],Le.prototype,"disabled",void 0),_e([r.state()],Le.prototype,"hovered",void 0),_e([r.state()],Le.prototype,"focused",void 0),_e([r.state()],Le.prototype,"pressed",void 0),_e([r.state()],Le.prototype,"rippling",void 0),_e([r.state()],Le.prototype,"rippleSize",void 0),_e([r.state()],Le.prototype,"originX",void 0),_e([r.state()],Le.prototype,"originY",void 0),_e([r.query(".ft-ripple")],Le.prototype,"ripple",void 0),_e([r.query(".ft-ripple--effect")],Le.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Le);const Me=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Fe=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ue=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),
|
|
291
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Le.elementDefinitions={},Le.styles=Be,_e([r.property({type:Boolean})],Le.prototype,"primary",void 0),_e([r.property({type:Boolean})],Le.prototype,"secondary",void 0),_e([r.property({type:Boolean})],Le.prototype,"unbounded",void 0),_e([r.property({type:Boolean})],Le.prototype,"activated",void 0),_e([r.property({type:Boolean})],Le.prototype,"selected",void 0),_e([r.property({type:Boolean})],Le.prototype,"disabled",void 0),_e([r.state()],Le.prototype,"hovered",void 0),_e([r.state()],Le.prototype,"focused",void 0),_e([r.state()],Le.prototype,"pressed",void 0),_e([r.state()],Le.prototype,"rippling",void 0),_e([r.state()],Le.prototype,"rippleSize",void 0),_e([r.state()],Le.prototype,"originX",void 0),_e([r.state()],Le.prototype,"originY",void 0),_e([r.query(".ft-ripple")],Le.prototype,"ripple",void 0),_e([r.query(".ft-ripple--effect")],Le.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Le);const Me=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Fe=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ue=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Pe=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Re=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Ze=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),We=i.css`
|
|
292
292
|
.ft-tooltip--container {
|
|
293
293
|
display: block;
|
|
294
294
|
position: relative;
|
|
@@ -307,12 +307,12 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
307
307
|
max-width: ${Ze};
|
|
308
308
|
text-align: center;
|
|
309
309
|
padding: ${Me};
|
|
310
|
-
z-index: ${
|
|
310
|
+
z-index: ${Pe};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-tooltip--content {
|
|
314
314
|
padding: 4px 8px;
|
|
315
|
-
border-radius: ${
|
|
315
|
+
border-radius: ${Re};
|
|
316
316
|
background-color: ${Ue};
|
|
317
317
|
color: ${Fe};
|
|
318
318
|
top: -500px;
|
|
@@ -414,7 +414,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
414
414
|
<div></div>
|
|
415
415
|
<div></div>
|
|
416
416
|
</div>
|
|
417
|
-
`}}Ve.styles=Ke,e.customElement("ft-loader")(Ve);const Xe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),qe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Xe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",ee.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Xe),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ye=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Je={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Ye,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ye)},Qe=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),ti=[e.noTextSelect,i.css`
|
|
417
|
+
`}}Ve.styles=Ke,e.customElement("ft-loader")(Ve);const Xe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),qe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Xe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",ee.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Xe),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ye=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Je={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Ye,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ye)},Qe=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),ti=[e.noTextSelect,i.css`
|
|
418
418
|
:host {
|
|
419
419
|
display: inline-block;
|
|
420
420
|
max-width: 100%;
|
|
@@ -463,7 +463,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
463
463
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${qe.iconSize});
|
|
464
464
|
|
|
465
465
|
border-radius: ${qe.borderRadius};
|
|
466
|
-
padding:
|
|
466
|
+
padding: ${qe.verticalPadding} ${qe.horizontalPadding};
|
|
467
467
|
background-color: ${qe.backgroundColor};
|
|
468
468
|
color: var(--ft-button-internal-color);
|
|
469
469
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -496,7 +496,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
496
496
|
|
|
497
497
|
.ft-button.ft-button--outlined {
|
|
498
498
|
border: 1px solid var(--ft-button-internal-color);
|
|
499
|
-
padding: calc(
|
|
499
|
+
padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.ft-button:focus {
|
|
@@ -513,7 +513,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
513
513
|
${e.setVariable(ee.fontSize,"1em")};
|
|
514
514
|
${e.setVariable(ee.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
|
|
517
517
|
.ft-button--label[hidden] {
|
|
518
518
|
display: none;
|
|
519
519
|
}
|
|
@@ -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 part="loader icon"></ft-loader> `:this.icon?i.html`
|
|
563
|
-
<ft-icon part="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":
|
|
563
|
+
<ft-icon part="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":Se,"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;
|
|
@@ -540,7 +540,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
540
540
|
<div></div>
|
|
541
541
|
<div></div>
|
|
542
542
|
</div>
|
|
543
|
-
`}}to.styles=Qi,c("ft-loader")(to);const eo=xt.extend("--ft-button-color",gt.colorPrimary),io={backgroundColor:xt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",gt.borderRadiusL),color:eo,fontSize:xt.extend("--ft-button-font-size",ri.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",eo),opacityDisabled:xt.external(gt.colorOpacityDisabled,"Design system")},oo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",gt.colorOnPrimary)),no={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",gt.colorPrimary)),color:oo,rippleColor:xt.extend("--ft-button-primary-ripple-color",oo)},ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",gt.borderRadiusM)),so=[$t,b`
|
|
543
|
+
`}}to.styles=Qi,c("ft-loader")(to);const eo=xt.extend("--ft-button-color",gt.colorPrimary),io={backgroundColor:xt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",gt.borderRadiusL),color:eo,fontSize:xt.extend("--ft-button-font-size",ri.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",eo),verticalPadding:xt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:xt.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:xt.external(gt.colorOpacityDisabled,"Design system")},oo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",gt.colorOnPrimary)),no={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",gt.colorPrimary)),color:oo,rippleColor:xt.extend("--ft-button-primary-ripple-color",oo)},ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",gt.borderRadiusM)),so=[$t,b`
|
|
544
544
|
:host {
|
|
545
545
|
display: inline-block;
|
|
546
546
|
max-width: 100%;
|
|
@@ -589,7 +589,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
589
589
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${io.iconSize});
|
|
590
590
|
|
|
591
591
|
border-radius: ${io.borderRadius};
|
|
592
|
-
padding:
|
|
592
|
+
padding: ${io.verticalPadding} ${io.horizontalPadding};
|
|
593
593
|
background-color: ${io.backgroundColor};
|
|
594
594
|
color: var(--ft-button-internal-color);
|
|
595
595
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -622,7 +622,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
622
622
|
|
|
623
623
|
.ft-button.ft-button--outlined {
|
|
624
624
|
border: 1px solid var(--ft-button-internal-color);
|
|
625
|
-
padding: calc(
|
|
625
|
+
padding: calc(${io.verticalPadding} - 1px) calc(${io.horizontalPadding} - 1px);
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
.ft-button:focus {
|
|
@@ -639,7 +639,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
639
639
|
${bt(ri.fontSize,"1em")};
|
|
640
640
|
${bt(ri.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
|
|
643
643
|
.ft-button--label[hidden] {
|
|
644
644
|
display: none;
|
|
645
645
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-toc",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.67",
|
|
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.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "0.3.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.67",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "0.3.67",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "0.3.67",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.67",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.67",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "9db69a3abe84d6fb5ec11e29164f2ceaa7369352"
|
|
30
30
|
}
|