@fluid-topics/ft-reader-navigation-button 0.3.65 → 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.
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
ft-reader-internal-link {
|
|
16
16
|
${i.setVariable(r.outlineColor,"transparent")}
|
|
17
17
|
}
|
|
18
|
-
`,p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h={color:p,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=f,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),u=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),
|
|
18
|
+
`,p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h={color:p,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=f,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),u=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),x=u,g=i.FtCssVariableFactory.extend("--ft-ripple-background-color",u),v=e.css`
|
|
19
19
|
:host {
|
|
20
20
|
display: contents;
|
|
21
21
|
}
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${g};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
52
|
-
background-color: ${
|
|
52
|
+
background-color: ${x};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -121,25 +121,25 @@
|
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),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",e),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}m.elementDefinitions={},m.styles=g,b([o.property({type:Boolean})],m.prototype,"primary",void 0),b([o.property({type:Boolean})],m.prototype,"secondary",void 0),b([o.property({type:Boolean})],m.prototype,"unbounded",void 0),b([o.property({type:Boolean})],m.prototype,"activated",void 0),b([o.property({type:Boolean})],m.prototype,"selected",void 0),b([o.property({type:Boolean})],m.prototype,"disabled",void 0),b([o.state()],m.prototype,"hovered",void 0),b([o.state()],m.prototype,"focused",void 0),b([o.state()],m.prototype,"pressed",void 0),b([o.state()],m.prototype,"rippling",void 0),b([o.state()],m.prototype,"rippleSize",void 0),b([o.state()],m.prototype,"originX",void 0),b([o.state()],m.prototype,"originY",void 0),b([o.query(".ft-ripple")],m.prototype,"ripple",void 0),b([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const $=window,w=$.trustedTypes,k=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,S="?"+z,O=`<${S}>`,j=document,C=(t="")=>j.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,A=/>/g,E=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Z=new WeakMap,D=j.createTreeWalker(j,129,null,!1),P=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=I;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===I?"!--"===a[1]?r=B:void 0!==a[1]?r=A:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=E):void 0!==a[3]&&(r=E):r===E?">"===a[0]?(r=null!=n?n:I,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?E:'"'===a[3]?_:M):r===_||r===M?r=E:r===B||r===A?r=I:(r=E,n=void 0);const f=r===E&&t[i+1].startsWith("/>")?" ":"";s+=r===I?e+O:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+z+f):e+z+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=P(t,i);if(this.el=H.createElement(a,e),D.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=D.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(z)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?q:"?"===i[1]?Y:"@"===i[1]?J:V})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(z),i=t.length-1;if(i>0){o.textContent=w?w.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),D.nextNode(),l.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===S)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,i){const e=j.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,s,r,l;if(i===R)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=N(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=K(t,a._$AS(t,i.values),a,o)),i}class L{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:j).importNode(e,!0);D.currentNode=n;let s=D.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new Q(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=D.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var n;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=K(this,t,i),N(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==R&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==W&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new L(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new H(t)),i}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.O(C()),this.O(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class V{constructor(t,i,e,o,n){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=K(this,t,i,0),s=!N(t)||t!==this._$AH&&t!==R,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=K(this,o[e+r],i,r),l===R&&(l=this._$AH[r]),s||(s=!N(l)||l!==this._$AH[r]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const X=w?w.emptyScript:"";class Y extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class J extends V{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:W)===R)return;const o=this._$AH,n=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==W&&(o===W||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const tt=$.litHtmlPolyfillSupport;null==tt||tt(H,G),(null!==(y=$.litHtmlVersions)&&void 0!==y?y:$.litHtmlVersions=[]).push("2.4.0");
|
|
124
|
+
`}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),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",e),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}m.elementDefinitions={},m.styles=v,b([o.property({type:Boolean})],m.prototype,"primary",void 0),b([o.property({type:Boolean})],m.prototype,"secondary",void 0),b([o.property({type:Boolean})],m.prototype,"unbounded",void 0),b([o.property({type:Boolean})],m.prototype,"activated",void 0),b([o.property({type:Boolean})],m.prototype,"selected",void 0),b([o.property({type:Boolean})],m.prototype,"disabled",void 0),b([o.state()],m.prototype,"hovered",void 0),b([o.state()],m.prototype,"focused",void 0),b([o.state()],m.prototype,"pressed",void 0),b([o.state()],m.prototype,"rippling",void 0),b([o.state()],m.prototype,"rippleSize",void 0),b([o.state()],m.prototype,"originX",void 0),b([o.state()],m.prototype,"originY",void 0),b([o.query(".ft-ripple")],m.prototype,"ripple",void 0),b([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const $=window,w=$.trustedTypes,k=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,S="?"+z,O=`<${S}>`,j=document,C=(t="")=>j.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,E=/>/g,A=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),P=new WeakMap,W=j.createTreeWalker(j,129,null,!1),D=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=T;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===T?"!--"===a[1]?r=B:void 0!==a[1]?r=E:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=A):void 0!==a[3]&&(r=A):r===A?">"===a[0]?(r=null!=n?n:T,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?A:'"'===a[3]?_:M):r===_||r===M?r=A:r===B||r===E?r=T:(r=A,n=void 0);const f=r===A&&t[i+1].startsWith("/>")?" ":"";s+=r===T?e+O:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+z+f):e+z+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=D(t,i);if(this.el=H.createElement(a,e),W.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=W.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(z)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?q:"?"===i[1]?Y:"@"===i[1]?J:V})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(z),i=t.length-1;if(i>0){o.textContent=w?w.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),W.nextNode(),l.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===S)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,i){const e=j.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,s,r,l;if(i===R)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=N(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=K(t,a._$AS(t,i.values),a,o)),i}class L{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:j).importNode(e,!0);W.currentNode=n;let s=W.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new Q(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=W.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=K(this,t,i),N(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==R&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Z&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new L(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=P.get(t.strings);return void 0===i&&P.set(t.strings,i=new H(t)),i}k(t){I(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.O(C()),this.O(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class V{constructor(t,i,e,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=K(this,t,i,0),s=!N(t)||t!==this._$AH&&t!==R,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=K(this,o[e+r],i,r),l===R&&(l=this._$AH[r]),s||(s=!N(l)||l!==this._$AH[r]),l===Z?t=Z:t!==Z&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const X=w?w.emptyScript:"";class Y extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class J extends V{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:Z)===R)return;const o=this._$AH,n=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Z&&(o===Z||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const tt=$.litHtmlPolyfillSupport;null==tt||tt(H,G),(null!==(y=$.litHtmlVersions)&&void 0!==y?y:$.litHtmlVersions=[]).push("2.4.0");
|
|
125
125
|
/**
|
|
126
126
|
* @license
|
|
127
127
|
* Copyright 2020 Google LLC
|
|
128
128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
129
|
*/
|
|
130
|
-
const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),nt=new Map,st=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=et(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=nt.get(t))&&(r.raw=r,nt.set(t,i=r)),e=l}return t(i,...e)})(U);var rt;!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"}(rt||(rt={}));const lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:at,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",lt),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),
|
|
130
|
+
const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),nt=new Map,st=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=et(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=nt.get(t))&&(r.raw=r,nt.set(t,i=r)),e=l}return t(i,...e)})(U);var rt;!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"}(rt||(rt={}));const lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:at,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",lt),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",pt.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",lt),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",pt.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",pt.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",pt.letterSpacing,"0.105px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",pt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",pt.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",at),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",pt.fontSize,"16px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",pt.fontWeight,"600"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",pt.letterSpacing,"0.144px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",pt.lineHeight,"1.5"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",pt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",at),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",pt.fontSize,"14px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",pt.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",pt.letterSpacing,"0.098px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",pt.lineHeight,"1.7"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",pt.textTransform,"inherit"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",at),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",pt.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",pt.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",pt.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",pt.lineHeight,"1.5"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",pt.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",at),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",pt.fontSize,"14px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",pt.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",pt.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",pt.lineHeight,"1.4"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",pt.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",at),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",pt.fontSize,"12px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",pt.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",pt.letterSpacing,"0.396px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",pt.lineHeight,"1.33"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",pt.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",at),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",pt.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",pt.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",pt.letterSpacing,"0.33px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",pt.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",pt.textTransform,"inherit"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",at),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",pt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",pt.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",pt.letterSpacing,"1.5px"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",pt.lineHeight,"1.6"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",pt.textTransform,"uppercase"),hi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",at),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",pt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",pt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",pt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",pt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",pt.textTransform,"uppercase")},fi=e.css`
|
|
131
131
|
.ft-typography--title {
|
|
132
132
|
font-family: ${ht};
|
|
133
133
|
font-size: ${ft};
|
|
134
134
|
font-weight: ${dt};
|
|
135
135
|
letter-spacing: ${ct};
|
|
136
136
|
line-height: ${ut};
|
|
137
|
-
text-transform: ${
|
|
137
|
+
text-transform: ${xt};
|
|
138
138
|
}
|
|
139
139
|
`,di=e.css`
|
|
140
140
|
.ft-typography--title-dense {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
141
|
+
font-family: ${gt};
|
|
142
|
+
font-size: ${vt};
|
|
143
143
|
font-weight: ${yt};
|
|
144
144
|
letter-spacing: ${bt};
|
|
145
145
|
line-height: ${mt};
|
|
@@ -158,31 +158,31 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
158
158
|
.ft-typography--subtitle2 {
|
|
159
159
|
font-family: ${Ct};
|
|
160
160
|
font-size: ${Nt};
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
161
|
+
font-weight: ${It};
|
|
162
|
+
letter-spacing: ${Tt};
|
|
163
163
|
line-height: ${Bt};
|
|
164
|
-
text-transform: ${
|
|
164
|
+
text-transform: ${Et};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
`,
|
|
167
|
+
`,xi=e.css`
|
|
168
168
|
.ft-typography--body1 {
|
|
169
|
-
font-family: ${
|
|
169
|
+
font-family: ${At};
|
|
170
170
|
font-size: ${Mt};
|
|
171
171
|
font-weight: ${_t};
|
|
172
172
|
letter-spacing: ${Ft};
|
|
173
173
|
line-height: ${Ut};
|
|
174
174
|
text-transform: ${Rt};
|
|
175
175
|
}
|
|
176
|
-
`,
|
|
176
|
+
`,gi=e.css`
|
|
177
177
|
.ft-typography--body2 {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
178
|
+
font-family: ${Zt};
|
|
179
|
+
font-size: ${Pt};
|
|
180
|
+
font-weight: ${Wt};
|
|
181
|
+
letter-spacing: ${Dt};
|
|
182
182
|
line-height: ${Ht};
|
|
183
183
|
text-transform: ${Kt};
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,vi=e.css`
|
|
186
186
|
.ft-typography--caption {
|
|
187
187
|
font-family: ${Lt};
|
|
188
188
|
font-size: ${Gt};
|
|
@@ -229,7 +229,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
229
229
|
</${ot(this.element)}>
|
|
230
230
|
`:st`
|
|
231
231
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
232
|
-
`}}ki.styles=[fi,di,ci,ui,
|
|
232
|
+
`}}ki.styles=[fi,di,ci,ui,xi,gi,vi,yi,bi,mi,$i],wi([o.property()],ki.prototype,"element",void 0),wi([o.property()],ki.prototype,"variant",void 0),i.customElement("ft-typography")(ki);const zi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Si=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Oi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ji=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ci=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ii=e.css`
|
|
233
233
|
.ft-tooltip--container {
|
|
234
234
|
display: block;
|
|
235
235
|
position: relative;
|
|
@@ -261,7 +261,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
261
261
|
position: relative;
|
|
262
262
|
word-break: break-word;
|
|
263
263
|
}
|
|
264
|
-
`;var
|
|
264
|
+
`;var Ti=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Bi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
265
265
|
<div part="container"
|
|
266
266
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
267
267
|
@mouseenter=${this.onHover}
|
|
@@ -279,7 +279,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
279
279
|
</div>
|
|
280
280
|
</div>
|
|
281
281
|
</div>
|
|
282
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${Ni})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Bi.elementDefinitions={"ft-typography":ki},Bi.styles=Ti
|
|
282
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${Ni})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Bi.elementDefinitions={"ft-typography":ki},Bi.styles=Ii,Ti([o.property()],Bi.prototype,"text",void 0),Ti([o.property({type:Boolean})],Bi.prototype,"manual",void 0),Ti([o.property({type:Boolean})],Bi.prototype,"inline",void 0),Ti([o.property({type:Number})],Bi.prototype,"delay",void 0),Ti([o.property()],Bi.prototype,"position",void 0),Ti([o.queryAssignedNodes("",!0)],Bi.prototype,"slotNodes",void 0),Ti([o.query(".ft-tooltip--container")],Bi.prototype,"container",void 0),Ti([o.query("slot")],Bi.prototype,"target",void 0),Ti([o.query(".ft-tooltip")],Bi.prototype,"tooltip",void 0),Ti([o.query(".ft-tooltip--content")],Bi.prototype,"tooltipContent",void 0),Ti([o.state()],Bi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Bi);const Ei={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ai=e.css`
|
|
283
283
|
:host {
|
|
284
284
|
line-height: 0;
|
|
285
285
|
}
|
|
@@ -288,8 +288,8 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
288
288
|
display: inline-block;
|
|
289
289
|
position: relative;
|
|
290
290
|
|
|
291
|
-
width: ${
|
|
292
|
-
height: ${
|
|
291
|
+
width: ${Ei.size};
|
|
292
|
+
height: ${Ei.size};
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
.ft-loader div {
|
|
@@ -298,7 +298,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
298
298
|
width: 25%;
|
|
299
299
|
height: 25%;
|
|
300
300
|
border-radius: 50%;
|
|
301
|
-
background: ${
|
|
301
|
+
background: ${Ei.color};
|
|
302
302
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
303
303
|
}
|
|
304
304
|
|
|
@@ -345,7 +345,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
345
345
|
transform: translate(0, 0);
|
|
346
346
|
}
|
|
347
347
|
100% {
|
|
348
|
-
transform: translate(calc(0.35 * ${
|
|
348
|
+
transform: translate(calc(0.35 * ${Ei.size}), 0);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
`;class Mi extends i.FtLitElement{render(){return e.html`
|
|
@@ -355,7 +355,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
355
355
|
<div></div>
|
|
356
356
|
<div></div>
|
|
357
357
|
</div>
|
|
358
|
-
`}}var _i,Fi;Mi.styles=
|
|
358
|
+
`}}var _i,Fi;Mi.styles=Ai,i.customElement("ft-loader")(Mi),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=""}(_i||(_i={})),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=""}(Fi||(Fi={})),new Map([...["abw"].map((t=>[t,Fi.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,Fi.AUDIO])),...["avi"].map((t=>[t,Fi.AVI])),...["chm","xhs"].map((t=>[t,Fi.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,Fi.CODE])),...["csv"].map((t=>[t,Fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fi.DITA])),...["epub"].map((t=>[t,Fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fi.EXCEL])),...["flac"].map((t=>[t,Fi.FLAC])),...["gif"].map((t=>[t,Fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fi.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,Fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fi.JPEG])),...["json"].map((t=>[t,Fi.JSON])),...["m4a","m4p"].map((t=>[t,Fi.M4A])),...["mov","qt"].map((t=>[t,Fi.MOV])),...["mp3"].map((t=>[t,Fi.MP3])),...["mp4","m4v"].map((t=>[t,Fi.MP4])),...["ogg","oga"].map((t=>[t,Fi.OGG])),...["pdf","ps"].map((t=>[t,Fi.PDF])),...["png"].map((t=>[t,Fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fi.POWERPOINT])),...["rar"].map((t=>[t,Fi.RAR])),...["stp"].map((t=>[t,Fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fi.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,Fi.VIDEO])),...["wav"].map((t=>[t,Fi.WAV])),...["wma"].map((t=>[t,Fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fi.YAML])),...["zip"].map((t=>[t,Fi.ZIP]))]);const Ui={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ri=e.css`
|
|
359
359
|
:host, i.ft-icon {
|
|
360
360
|
display: inline-flex;
|
|
361
361
|
align-items: center;
|
|
@@ -402,12 +402,12 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
402
402
|
.ft-icon--material {
|
|
403
403
|
font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
|
|
404
404
|
}
|
|
405
|
-
`;var
|
|
405
|
+
`;var Zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zi||(Zi={}));var Pi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Wi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Zi.fluid_topics,o="material"!==i||this.value;return e.html`
|
|
406
406
|
<i class="ft-icon ${"ft-icon--"+i}">
|
|
407
407
|
${s.unsafeHTML(this.resolvedIcon)}
|
|
408
408
|
<slot ?hidden=${o}></slot>
|
|
409
409
|
</i>
|
|
410
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case
|
|
410
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Zi.file_format:this.resolvedIcon=null!==(t=Fi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Zi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Wi.elementDefinitions={},Wi.styles=Ri,Pi([o.property()],Wi.prototype,"variant",void 0),Pi([o.property()],Wi.prototype,"value",void 0),Pi([o.state()],Wi.prototype,"resolvedIcon",void 0),Pi([o.query("slot")],Wi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Wi);const Di=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Di,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",hi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Di),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ki=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Ki,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ki)},Gi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Vi=[i.noTextSelect,e.css`
|
|
411
411
|
:host {
|
|
412
412
|
display: inline-block;
|
|
413
413
|
max-width: 100%;
|
|
@@ -456,7 +456,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
456
456
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Hi.iconSize});
|
|
457
457
|
|
|
458
458
|
border-radius: ${Hi.borderRadius};
|
|
459
|
-
padding:
|
|
459
|
+
padding: ${Hi.verticalPadding} ${Hi.horizontalPadding};
|
|
460
460
|
background-color: ${Hi.backgroundColor};
|
|
461
461
|
color: var(--ft-button-internal-color);
|
|
462
462
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -489,7 +489,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
489
489
|
|
|
490
490
|
.ft-button.ft-button--outlined {
|
|
491
491
|
border: 1px solid var(--ft-button-internal-color);
|
|
492
|
-
padding: calc(
|
|
492
|
+
padding: calc(${Hi.verticalPadding} - 1px) calc(${Hi.horizontalPadding} - 1px);
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
.ft-button:focus {
|
|
@@ -506,7 +506,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
506
506
|
${i.setVariable(hi.fontSize,"1em")};
|
|
507
507
|
${i.setVariable(hi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
|
|
510
510
|
.ft-button--label[hidden] {
|
|
511
511
|
display: none;
|
|
512
512
|
}
|
|
@@ -527,10 +527,10 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
ft-loader {
|
|
530
|
-
${i.setVariable(
|
|
531
|
-
${i.setVariable(
|
|
530
|
+
${i.setVariable(Ei.size,Hi.iconSize)};
|
|
531
|
+
${i.setVariable(Ei.color,"var(--ft-button-internal-color)")};
|
|
532
532
|
}
|
|
533
|
-
`];var qi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Xi extends i.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=
|
|
533
|
+
`];var qi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Xi extends i.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=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(e.html`
|
|
534
534
|
<button part="button"
|
|
535
535
|
class="${n.classMap(t)}"
|
|
536
536
|
aria-label="${this.getLabel()}"
|
|
@@ -553,13 +553,13 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
553
553
|
</ft-tooltip>
|
|
554
554
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
555
555
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
556
|
-
<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}}Xi.elementDefinitions={"ft-ripple":m,"ft-tooltip":Bi,"ft-typography":ki,"ft-icon":
|
|
556
|
+
<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}}Xi.elementDefinitions={"ft-ripple":m,"ft-tooltip":Bi,"ft-typography":ki,"ft-icon":Wi,"ft-loader":Mi},Xi.styles=[i.safariEllipsisFix,Vi],qi([o.property({type:String,reflect:!0})],Xi.prototype,"role",void 0),qi([o.property({type:Boolean})],Xi.prototype,"primary",void 0),qi([o.property({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),qi([o.property({type:Boolean})],Xi.prototype,"round",void 0),qi([o.property({type:String})],Xi.prototype,"label",void 0),qi([o.property({type:String})],Xi.prototype,"icon",void 0),qi([o.property({type:String})],Xi.prototype,"iconVariant",void 0),qi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o.property({type:Boolean})],Xi.prototype,"loading",void 0),qi([o.property({type:String})],Xi.prototype,"tooltipPosition",void 0),qi([o.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([o.query(".ft-button")],Xi.prototype,"button",void 0),qi([o.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Xi);var Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ji extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Qi extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ji)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Yi([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends Qi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let i=n.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
|
|
557
557
|
<a class=${i}
|
|
558
558
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
559
559
|
@click=${t=>this.onLinkClick(t)}>
|
|
560
560
|
<slot></slot>
|
|
561
561
|
</a>
|
|
562
|
-
`}onLinkClick(t){var i;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(i=this.stateManager)||void 0===i||i.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}ie.styles=l,te([o.property()],ie.prototype,"tocId",void 0),te([o.property()],ie.prototype,"section",void 0),te([o.property({type:Number})],ie.prototype,"pageNumber",void 0),te([o.property({type:Boolean})],ie.prototype,"removeStyle",void 0),i.customElement("ft-reader-internal-link")(ie);var ee=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class oe extends Qi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=
|
|
562
|
+
`}onLinkClick(t){var i;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(i=this.stateManager)||void 0===i||i.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}ie.styles=l,te([o.property()],ie.prototype,"tocId",void 0),te([o.property()],ie.prototype,"section",void 0),te([o.property({type:Number})],ie.prototype,"pageNumber",void 0),te([o.property({type:Boolean})],ie.prototype,"removeStyle",void 0),i.customElement("ft-reader-internal-link")(ie);var ee=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class oe extends Qi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Zi.fluid_topics,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new i.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?_i.THIN_ARROW_RIGHT:_i.THIN_ARROW_LEFT}render(){var t,i,o,n,s;if(null==this.targetPage&&!this.editorMode)return e.nothing;const r=e.html`
|
|
563
563
|
<ft-button ?forceTooltip=${!this.hideTooltip}
|
|
564
564
|
?hideTooltip=${this.hideTooltip}
|
|
565
565
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -56,7 +56,7 @@ const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,j=M.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,B=`<${z}>`,T=document,A=(t="")=>T.createComment(t),
|
|
59
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,j=M.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,B=`<${z}>`,T=document,A=(t="")=>T.createComment(t),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=_;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=I:void 0!==l[1]?s=D:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=W):void 0!==l[3]&&(s=W):s===W?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?W:'"'===l[3]?K:H):s===K||s===H?s=W:s===I||s===D?s=_:(s=W,n=void 0);const p=s===W&&t[e+1].startsWith("/>")?" ":"";r+=s===_?i+B:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+U+p):i+U+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=G(t,e);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?st:"@"===e[1]?at:ot})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Y.nextNode(),a.push({type:2,index:++n});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var n,r,s,a;if(e===J)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=P(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=tt(t,l._$AS(t,e.values),l,o)),e}class et{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:T).importNode(i,!0);Y.currentNode=n;let r=Y.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new it(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new lt(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Y.nextNode(),s++)}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 it{constructor(t,e,i,o){var n;this.type=2,this._$AH=q,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=tt(this,t,e),P(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(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!==q&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.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=Q.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 et(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}k(t){L(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 it(this.O(A()),this.O(A()),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 ot{constructor(t,e,i,o,n){this.type=1,this._$AH=q,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=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=tt(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=tt(this,o[i+s],e,s),a===J&&(a=this._$AH[s]),r||(r=!P(a)||a!==this._$AH[s]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=j?j.emptyScript:"";class st extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class at extends ot{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=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 lt{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){tt(this,t)}}const ht=M.litHtmlPolyfillSupport;null==ht||ht(Q,it),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
@@ -131,7 +131,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
131
131
|
* @license
|
|
132
132
|
* Copyright 2018 Google LLC
|
|
133
133
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
-
*/const Bt=Ut(class extends zt{constructor(t){var e;if(super(t),t.type!==jt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Tt=ut.extend("--ft-ripple-color",yt.colorContent),At={color:Tt,backgroundColor:ut.extend("--ft-ripple-background-color",Tt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},
|
|
134
|
+
*/const Bt=Ut(class extends zt{constructor(t){var e;if(super(t),t.type!==jt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Tt=ut.extend("--ft-ripple-color",yt.colorContent),At={color:Tt,backgroundColor:ut.extend("--ft-ripple-background-color",Tt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},Pt=ut.extend("--ft-ripple-color",yt.colorPrimary),Lt=Pt,_t=ut.extend("--ft-ripple-background-color",Pt),It=ut.extend("--ft-ripple-color",yt.colorSecondary),Dt=It,Wt=ut.extend("--ft-ripple-background-color",It),Ht=b`
|
|
135
135
|
:host {
|
|
136
136
|
display: contents;
|
|
137
137
|
}
|
|
@@ -165,7 +165,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
168
|
-
background-color: ${
|
|
168
|
+
background-color: ${Dt};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -173,7 +173,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
176
|
-
background-color: ${
|
|
176
|
+
background-color: ${Lt};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-ripple .ft-ripple--background {
|
|
@@ -243,7 +243,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
243
243
|
* Copyright 2020 Google LLC
|
|
244
244
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
245
245
|
*/
|
|
246
|
-
const Vt=Symbol.for(""),Jt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void 0:t._$litStatic$},qt=t=>({_$litStatic$:t,r:Vt}),Xt=new Map,Yt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Jt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Xt.get(t))&&(s.raw=s,Xt.set(t,e=s)),i=a}return t(e,...i)})(V);var Gt;!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"}(Gt||(Gt={}));const Qt=ut.extend("--ft-typography-font-family",yt.titleFont),te=ut.extend("--ft-typography-font-family",yt.contentFont),ee={fontFamily:te,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},ie=ut.extend("--ft-typography-title-font-family",Qt),oe=ut.extend("--ft-typography-title-font-size",ee.fontSize,"20px"),ne=ut.extend("--ft-typography-title-font-weight",ee.fontWeight,"normal"),re=ut.extend("--ft-typography-title-letter-spacing",ee.letterSpacing,"0.15px"),se=ut.extend("--ft-typography-title-line-height",ee.lineHeight,"1.2"),ae=ut.extend("--ft-typography-title-text-transform",ee.textTransform,"inherit"),le=ut.extend("--ft-typography-title-dense-font-family",Qt),he=ut.extend("--ft-typography-title-dense-font-size",ee.fontSize,"14px"),ce=ut.extend("--ft-typography-title-dense-font-weight",ee.fontWeight,"normal"),pe=ut.extend("--ft-typography-title-dense-letter-spacing",ee.letterSpacing,"0.105px"),fe=ut.extend("--ft-typography-title-dense-line-height",ee.lineHeight,"1.7"),de=ut.extend("--ft-typography-title-dense-text-transform",ee.textTransform,"inherit"),ue=ut.extend("--ft-typography-subtitle1-font-family",te),ve=ut.extend("--ft-typography-subtitle1-font-size",ee.fontSize,"16px"),ye=ut.extend("--ft-typography-subtitle1-font-weight",ee.fontWeight,"600"),be=ut.extend("--ft-typography-subtitle1-letter-spacing",ee.letterSpacing,"0.144px"),xe=ut.extend("--ft-typography-subtitle1-line-height",ee.lineHeight,"1.5"),ge=ut.extend("--ft-typography-subtitle1-text-transform",ee.textTransform,"inherit"),me=ut.extend("--ft-typography-subtitle2-font-family",te),we=ut.extend("--ft-typography-subtitle2-font-size",ee.fontSize,"14px"),$e=ut.extend("--ft-typography-subtitle2-font-weight",ee.fontWeight,"normal"),Oe=ut.extend("--ft-typography-subtitle2-letter-spacing",ee.letterSpacing,"0.098px"),Se=ut.extend("--ft-typography-subtitle2-line-height",ee.lineHeight,"1.7"),ke=ut.extend("--ft-typography-subtitle2-text-transform",ee.textTransform,"inherit"),Ce=ut.extend("--ft-typography-body1-font-family",te),Ne=ut.extend("--ft-typography-body1-font-size",ee.fontSize,"16px"),Ee=ut.extend("--ft-typography-body1-font-weight",ee.fontWeight,"normal"),Re=ut.extend("--ft-typography-body1-letter-spacing",ee.letterSpacing,"0.496px"),Me=ut.extend("--ft-typography-body1-line-height",ee.lineHeight,"1.5"),je=ut.extend("--ft-typography-body1-text-transform",ee.textTransform,"inherit"),Fe=ut.extend("--ft-typography-body2-font-family",te),Ue=ut.extend("--ft-typography-body2-font-size",ee.fontSize,"14px"),ze=ut.extend("--ft-typography-body2-font-weight",ee.fontWeight,"normal"),Be=ut.extend("--ft-typography-body2-letter-spacing",ee.letterSpacing,"0.252px"),Te=ut.extend("--ft-typography-body2-line-height",ee.lineHeight,"1.4"),Ae=ut.extend("--ft-typography-body2-text-transform",ee.textTransform,"inherit"),
|
|
246
|
+
const Vt=Symbol.for(""),Jt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void 0:t._$litStatic$},qt=t=>({_$litStatic$:t,r:Vt}),Xt=new Map,Yt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Jt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Xt.get(t))&&(s.raw=s,Xt.set(t,e=s)),i=a}return t(e,...i)})(V);var Gt;!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"}(Gt||(Gt={}));const Qt=ut.extend("--ft-typography-font-family",yt.titleFont),te=ut.extend("--ft-typography-font-family",yt.contentFont),ee={fontFamily:te,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},ie=ut.extend("--ft-typography-title-font-family",Qt),oe=ut.extend("--ft-typography-title-font-size",ee.fontSize,"20px"),ne=ut.extend("--ft-typography-title-font-weight",ee.fontWeight,"normal"),re=ut.extend("--ft-typography-title-letter-spacing",ee.letterSpacing,"0.15px"),se=ut.extend("--ft-typography-title-line-height",ee.lineHeight,"1.2"),ae=ut.extend("--ft-typography-title-text-transform",ee.textTransform,"inherit"),le=ut.extend("--ft-typography-title-dense-font-family",Qt),he=ut.extend("--ft-typography-title-dense-font-size",ee.fontSize,"14px"),ce=ut.extend("--ft-typography-title-dense-font-weight",ee.fontWeight,"normal"),pe=ut.extend("--ft-typography-title-dense-letter-spacing",ee.letterSpacing,"0.105px"),fe=ut.extend("--ft-typography-title-dense-line-height",ee.lineHeight,"1.7"),de=ut.extend("--ft-typography-title-dense-text-transform",ee.textTransform,"inherit"),ue=ut.extend("--ft-typography-subtitle1-font-family",te),ve=ut.extend("--ft-typography-subtitle1-font-size",ee.fontSize,"16px"),ye=ut.extend("--ft-typography-subtitle1-font-weight",ee.fontWeight,"600"),be=ut.extend("--ft-typography-subtitle1-letter-spacing",ee.letterSpacing,"0.144px"),xe=ut.extend("--ft-typography-subtitle1-line-height",ee.lineHeight,"1.5"),ge=ut.extend("--ft-typography-subtitle1-text-transform",ee.textTransform,"inherit"),me=ut.extend("--ft-typography-subtitle2-font-family",te),we=ut.extend("--ft-typography-subtitle2-font-size",ee.fontSize,"14px"),$e=ut.extend("--ft-typography-subtitle2-font-weight",ee.fontWeight,"normal"),Oe=ut.extend("--ft-typography-subtitle2-letter-spacing",ee.letterSpacing,"0.098px"),Se=ut.extend("--ft-typography-subtitle2-line-height",ee.lineHeight,"1.7"),ke=ut.extend("--ft-typography-subtitle2-text-transform",ee.textTransform,"inherit"),Ce=ut.extend("--ft-typography-body1-font-family",te),Ne=ut.extend("--ft-typography-body1-font-size",ee.fontSize,"16px"),Ee=ut.extend("--ft-typography-body1-font-weight",ee.fontWeight,"normal"),Re=ut.extend("--ft-typography-body1-letter-spacing",ee.letterSpacing,"0.496px"),Me=ut.extend("--ft-typography-body1-line-height",ee.lineHeight,"1.5"),je=ut.extend("--ft-typography-body1-text-transform",ee.textTransform,"inherit"),Fe=ut.extend("--ft-typography-body2-font-family",te),Ue=ut.extend("--ft-typography-body2-font-size",ee.fontSize,"14px"),ze=ut.extend("--ft-typography-body2-font-weight",ee.fontWeight,"normal"),Be=ut.extend("--ft-typography-body2-letter-spacing",ee.letterSpacing,"0.252px"),Te=ut.extend("--ft-typography-body2-line-height",ee.lineHeight,"1.4"),Ae=ut.extend("--ft-typography-body2-text-transform",ee.textTransform,"inherit"),Pe=ut.extend("--ft-typography-caption-font-family",te),Le=ut.extend("--ft-typography-caption-font-size",ee.fontSize,"12px"),_e=ut.extend("--ft-typography-caption-font-weight",ee.fontWeight,"normal"),Ie=ut.extend("--ft-typography-caption-letter-spacing",ee.letterSpacing,"0.396px"),De=ut.extend("--ft-typography-caption-line-height",ee.lineHeight,"1.33"),We=ut.extend("--ft-typography-caption-text-transform",ee.textTransform,"inherit"),He=ut.extend("--ft-typography-breadcrumb-font-family",te),Ke=ut.extend("--ft-typography-breadcrumb-font-size",ee.fontSize,"10px"),Ze=ut.extend("--ft-typography-breadcrumb-font-weight",ee.fontWeight,"normal"),Ve=ut.extend("--ft-typography-breadcrumb-letter-spacing",ee.letterSpacing,"0.33px"),Je=ut.extend("--ft-typography-breadcrumb-line-height",ee.lineHeight,"1.6"),qe=ut.extend("--ft-typography-breadcrumb-text-transform",ee.textTransform,"inherit"),Xe=ut.extend("--ft-typography-overline-font-family",te),Ye=ut.extend("--ft-typography-overline-font-size",ee.fontSize,"10px"),Ge=ut.extend("--ft-typography-overline-font-weight",ee.fontWeight,"normal"),Qe=ut.extend("--ft-typography-overline-letter-spacing",ee.letterSpacing,"1.5px"),ti=ut.extend("--ft-typography-overline-line-height",ee.lineHeight,"1.6"),ei=ut.extend("--ft-typography-overline-text-transform",ee.textTransform,"uppercase"),ii={fontFamily:ut.extend("--ft-typography-button-font-family",te),fontSize:ut.extend("--ft-typography-button-font-size",ee.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",ee.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",ee.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",ee.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",ee.textTransform,"uppercase")},oi=b`
|
|
247
247
|
.ft-typography--title {
|
|
248
248
|
font-family: ${ie};
|
|
249
249
|
font-size: ${oe};
|
|
@@ -300,11 +300,11 @@ const Vt=Symbol.for(""),Jt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void
|
|
|
300
300
|
}
|
|
301
301
|
`,hi=b`
|
|
302
302
|
.ft-typography--caption {
|
|
303
|
-
font-family: ${
|
|
304
|
-
font-size: ${
|
|
303
|
+
font-family: ${Pe};
|
|
304
|
+
font-size: ${Le};
|
|
305
305
|
font-weight: ${_e};
|
|
306
|
-
letter-spacing: ${
|
|
307
|
-
line-height: ${
|
|
306
|
+
letter-spacing: ${Ie};
|
|
307
|
+
line-height: ${De};
|
|
308
308
|
text-transform: ${We};
|
|
309
309
|
}
|
|
310
310
|
`,ci=b`
|
|
@@ -535,7 +535,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
535
535
|
${Ri(this.resolvedIcon)}
|
|
536
536
|
<slot ?hidden=${i}></slot>
|
|
537
537
|
</i>
|
|
538
|
-
`}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 i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=ji[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Mi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ti.elementDefinitions={},Ti.styles=Ui,Bi([o()],Ti.prototype,"variant",void 0),Bi([o()],Ti.prototype,"value",void 0),Bi([n()],Ti.prototype,"resolvedIcon",void 0),Bi([s("slot")],Ti.prototype,"slottedContent",void 0),c("ft-icon")(Ti);const Ai=ut.extend("--ft-button-color",yt.colorPrimary),
|
|
538
|
+
`}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 i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=ji[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Mi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ti.elementDefinitions={},Ti.styles=Ui,Bi([o()],Ti.prototype,"variant",void 0),Bi([o()],Ti.prototype,"value",void 0),Bi([n()],Ti.prototype,"resolvedIcon",void 0),Bi([s("slot")],Ti.prototype,"slottedContent",void 0),c("ft-icon")(Ti);const Ai=ut.extend("--ft-button-color",yt.colorPrimary),Pi={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ai,fontSize:ut.extend("--ft-button-font-size",ii.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ai),verticalPadding:ut.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:ut.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Li=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),_i={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Li,rippleColor:ut.extend("--ft-button-primary-ripple-color",Li)},Ii=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Di=[gt,b`
|
|
539
539
|
:host {
|
|
540
540
|
display: inline-block;
|
|
541
541
|
max-width: 100%;
|
|
@@ -546,7 +546,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
546
546
|
box-shadow: 0px 0px 0px transparent;
|
|
547
547
|
border: 0px solid transparent;
|
|
548
548
|
text-shadow: 0px 0px 0px transparent;
|
|
549
|
-
font-size: ${
|
|
549
|
+
font-size: ${Pi.fontSize};
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
button:hover {
|
|
@@ -575,17 +575,17 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
575
575
|
border: none;
|
|
576
576
|
pointer-events: auto;
|
|
577
577
|
|
|
578
|
-
--ft-button-internal-line-height: calc(${
|
|
579
|
-
--ft-button-internal-color: ${
|
|
580
|
-
${vt(Fi.size,
|
|
578
|
+
--ft-button-internal-line-height: calc(${Pi.fontSize} + 2px);
|
|
579
|
+
--ft-button-internal-color: ${Pi.color};
|
|
580
|
+
${vt(Fi.size,Pi.iconSize)};
|
|
581
581
|
--ft-button-internal-vertical-padding: 6px;
|
|
582
582
|
--ft-button-internal-horizontal-padding: 8px;
|
|
583
|
-
${vt(At.color,
|
|
584
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
583
|
+
${vt(At.color,Pi.rippleColor)};
|
|
584
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Pi.iconSize});
|
|
585
585
|
|
|
586
|
-
border-radius: ${
|
|
587
|
-
padding:
|
|
588
|
-
background-color: ${
|
|
586
|
+
border-radius: ${Pi.borderRadius};
|
|
587
|
+
padding: ${Pi.verticalPadding} ${Pi.horizontalPadding};
|
|
588
|
+
background-color: ${Pi.backgroundColor};
|
|
589
589
|
color: var(--ft-button-internal-color);
|
|
590
590
|
-webkit-mask-image: radial-gradient(white, black);
|
|
591
591
|
}
|
|
@@ -597,7 +597,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
597
597
|
.ft-button--dense {
|
|
598
598
|
--ft-button-internal-vertical-padding: 2px;
|
|
599
599
|
--ft-button-internal-horizontal-padding: 4px;
|
|
600
|
-
border-radius: ${
|
|
600
|
+
border-radius: ${Ii};
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
.ft-button--round {
|
|
@@ -606,7 +606,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
606
606
|
|
|
607
607
|
.ft-button[disabled] {
|
|
608
608
|
filter: grayscale(1);
|
|
609
|
-
opacity: ${
|
|
609
|
+
opacity: ${Pi.opacityDisabled};
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
.ft-button.ft-button--primary {
|
|
@@ -617,7 +617,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
617
617
|
|
|
618
618
|
.ft-button.ft-button--outlined {
|
|
619
619
|
border: 1px solid var(--ft-button-internal-color);
|
|
620
|
-
padding: calc(
|
|
620
|
+
padding: calc(${Pi.verticalPadding} - 1px) calc(${Pi.horizontalPadding} - 1px);
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
.ft-button:focus {
|
|
@@ -634,7 +634,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
634
634
|
${vt(ii.fontSize,"1em")};
|
|
635
635
|
${vt(ii.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
636
636
|
}
|
|
637
|
-
|
|
637
|
+
|
|
638
638
|
.ft-button--label[hidden] {
|
|
639
639
|
display: none;
|
|
640
640
|
}
|
|
@@ -655,7 +655,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
ft-loader {
|
|
658
|
-
${vt(ki.size,
|
|
658
|
+
${vt(ki.size,Pi.iconSize)};
|
|
659
659
|
${vt(ki.color,"var(--ft-button-internal-color)")};
|
|
660
660
|
}
|
|
661
661
|
`];var Wi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Hi extends xt{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(V`
|
|
@@ -681,7 +681,7 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
|
|
|
681
681
|
</ft-tooltip>
|
|
682
682
|
`:t}resolveIcon(){return this.loading?V`
|
|
683
683
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?V`
|
|
684
|
-
<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}}Hi.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":Si,"ft-typography":vi,"ft-icon":Ti,"ft-loader":Ni},Hi.styles=[mt,
|
|
684
|
+
<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}}Hi.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":Si,"ft-typography":vi,"ft-icon":Ti,"ft-loader":Ni},Hi.styles=[mt,Di],Wi([o({type:String,reflect:!0})],Hi.prototype,"role",void 0),Wi([o({type:Boolean})],Hi.prototype,"primary",void 0),Wi([o({type:Boolean})],Hi.prototype,"outlined",void 0),Wi([o({type:Boolean})],Hi.prototype,"disabled",void 0),Wi([o({type:Boolean})],Hi.prototype,"dense",void 0),Wi([o({type:Boolean})],Hi.prototype,"round",void 0),Wi([o({type:String})],Hi.prototype,"label",void 0),Wi([o({type:String})],Hi.prototype,"icon",void 0),Wi([o({type:String})],Hi.prototype,"iconVariant",void 0),Wi([o({type:Boolean})],Hi.prototype,"trailingIcon",void 0),Wi([o({type:Boolean})],Hi.prototype,"loading",void 0),Wi([o({type:String})],Hi.prototype,"tooltipPosition",void 0),Wi([o({type:Boolean})],Hi.prototype,"hideTooltip",void 0),Wi([o({type:Boolean})],Hi.prototype,"forceTooltip",void 0),Wi([s(".ft-button")],Hi.prototype,"button",void 0),Wi([s(".ft-button--label slot")],Hi.prototype,"slottedContent",void 0),c("ft-button")(Hi);var Ki=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Vi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ki([n()],e.prototype,"stateManager",void 0),e}($t)){}var Ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 qi extends Vi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Bt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
|
|
685
685
|
<a class=${e}
|
|
686
686
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
687
687
|
@click=${t=>this.onLinkClick(t)}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-navigation-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.67",
|
|
4
4
|
"description": "Button used to navigate between pages in an integrated reader context.",
|
|
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-button": "0.3.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "0.3.
|
|
24
|
-
"@fluid-topics/ft-reader-internal-link": "0.3.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-button": "0.3.67",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "0.3.67",
|
|
24
|
+
"@fluid-topics/ft-reader-internal-link": "0.3.67",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "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
|
}
|