@fluid-topics/ft-file-button 0.3.5 → 0.3.6
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.
- package/build/ft-file-button.light.js +46 -44
- package/build/ft-file-button.min.js +40 -38
- package/package.json +4 -4
|
@@ -110,13 +110,13 @@ var y;g.elementDefinitions={},g.styles=e.css`
|
|
|
110
110
|
opacity: ${a.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,r([o.property({type:Boolean})],g.prototype,"primary",void 0),r([o.property({type:Boolean})],g.prototype,"secondary",void 0),r([o.property({type:Boolean})],g.prototype,"unbounded",void 0),r([o.property({type:Boolean})],g.prototype,"activated",void 0),r([o.property({type:Boolean})],g.prototype,"selected",void 0),r([o.property({type:Boolean})],g.prototype,"disabled",void 0),r([o.state()],g.prototype,"hovered",void 0),r([o.state()],g.prototype,"focused",void 0),r([o.state()],g.prototype,"pressed",void 0),r([o.state()],g.prototype,"rippling",void 0),r([o.state()],g.prototype,"rippleSize",void 0),r([o.state()],g.prototype,"originX",void 0),r([o.state()],g.prototype,"originY",void 0),r([o.query(".ft-ripple")],g.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(g);const x=globalThis.trustedTypes,b=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,m="?"+v,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,
|
|
113
|
+
`,r([o.property({type:Boolean})],g.prototype,"primary",void 0),r([o.property({type:Boolean})],g.prototype,"secondary",void 0),r([o.property({type:Boolean})],g.prototype,"unbounded",void 0),r([o.property({type:Boolean})],g.prototype,"activated",void 0),r([o.property({type:Boolean})],g.prototype,"selected",void 0),r([o.property({type:Boolean})],g.prototype,"disabled",void 0),r([o.state()],g.prototype,"hovered",void 0),r([o.state()],g.prototype,"focused",void 0),r([o.state()],g.prototype,"pressed",void 0),r([o.state()],g.prototype,"rippling",void 0),r([o.state()],g.prototype,"rippleSize",void 0),r([o.state()],g.prototype,"originX",void 0),r([o.state()],g.prototype,"originY",void 0),r([o.query(".ft-ripple")],g.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(g);const x=globalThis.trustedTypes,b=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,m="?"+v,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,N=/>/g,j=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,A=/"/g,B=/^(?:script|style|textarea|title)$/i,E=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),I=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),_=new WeakMap,M=w.createTreeWalker(w,129,null,!1),U=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=O;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===O?"!--"===a[1]?r=C:void 0!==a[1]?r=N:void 0!==a[2]?(B.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=j):void 0!==a[3]&&(r=j):r===j?">"===a[0]?(r=null!=n?n:O,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?j:'"'===a[3]?A:T):r===A||r===T?r=j:r===C||r===N?r=O:(r=j,n=void 0);const f=r===j&&t[i+1].startsWith("/>")?" ":"";s+=r===O?e+$:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+v+f):e+v+(-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!==b?b.createHTML(l):l,o]};class R{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]=U(t,i);if(this.el=R.createElement(a,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.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(v)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(v),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?K:"?"===i[1]?L:"@"===i[1]?P:H})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split(v),i=t.length-1;if(i>0){o.textContent=x?x.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),M.nextNode(),l.push({type:2,index:++n});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(v,t+1));)l.push({type:7,index:n}),t+=v.length-1}n++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var n,s,r,l;if(i===I)return i;let a=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const p=z(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)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=W(t,a._$AS(t,i.values),a,o)),i}class Z{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:w).importNode(e,!0);M.currentNode=n;let s=M.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new D(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.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=M.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class D{constructor(t,i,e,o){var n;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=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._$C_}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=W(this,t,i),z(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==I&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>S(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==F&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.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=R.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new Z(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=_.get(t.strings);return void 0===i&&_.set(t.strings,i=new R(t)),i}S(t){S(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 D(this.j(k()),this.j(k()),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._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class H{constructor(t,i,e,o,n){this.type=1,this._$AH=F,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=F}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=W(this,t,i,0),s=!z(t)||t!==this._$AH&&t!==I,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=W(this,o[e+r],i,r),l===I&&(l=this._$AH[r]),s||(s=!z(l)||l!==this._$AH[r]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.P(t)}P(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends H{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===F?void 0:t}}const G=x?x.emptyScript:"";class L extends H{constructor(){super(...arguments),this.type=4}P(t){t&&t!==F?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class P extends H{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=W(this,t,i,0))&&void 0!==e?e:F)===I)return;const o=this._$AH,n=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==F&&(o===F||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){W(this,t)}}const X=window.litHtmlPolyfillSupport;null==X||X(R,D),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2020 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
118
|
*/
|
|
119
|
-
const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t._$litStatic$},Q=t=>({_$litStatic$:t,r:Y}),V=new Map,tt=(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=J(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=V.get(t))&&(r.raw=r,V.set(t,i=r)),e=l}return t(i,...e)})(E);var it,et=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};!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"}(it||(it={}));const ot=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),st={fontFamily:nt,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")},rt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",st.fontSize,"20px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",st.fontWeight,"normal"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",st.letterSpacing,"0.15px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",st.lineHeight,"1.2"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",st.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ot),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",st.fontSize,"14px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",st.fontWeight,"normal"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",st.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",st.lineHeight,"1.7"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",st.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",st.fontSize,"16px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",st.fontWeight,"600"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",st.letterSpacing,"0.144px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",st.lineHeight,"1.5"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",st.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",st.fontSize,"14px"),
|
|
119
|
+
const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t._$litStatic$},Q=t=>({_$litStatic$:t,r:Y}),V=new Map,tt=(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=J(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=V.get(t))&&(r.raw=r,V.set(t,i=r)),e=l}return t(i,...e)})(E);var it,et=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};!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"}(it||(it={}));const ot=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),st={fontFamily:nt,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")},rt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",st.fontSize,"20px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",st.fontWeight,"normal"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",st.letterSpacing,"0.15px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",st.lineHeight,"1.2"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",st.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ot),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",st.fontSize,"14px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",st.fontWeight,"normal"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",st.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",st.lineHeight,"1.7"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",st.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",st.fontSize,"16px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",st.fontWeight,"600"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",st.letterSpacing,"0.144px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",st.lineHeight,"1.5"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",st.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",st.fontSize,"14px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",st.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",st.letterSpacing,"0.098px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",st.lineHeight,"1.7"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",st.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",st.fontSize,"16px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",st.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",st.letterSpacing,"0.496px"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",st.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",st.textTransform,"inherit"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),Mt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",st.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",st.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",st.letterSpacing,"0.252px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",st.lineHeight,"1.4"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",st.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",st.fontSize,"12px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",st.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",st.letterSpacing,"0.396px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",st.lineHeight,"1.33"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",st.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",st.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",st.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",st.letterSpacing,"0.33px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",st.lineHeight,"1.6"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",st.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",st.fontSize,"10px"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",st.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",st.letterSpacing,"1.5px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",st.lineHeight,"1.6"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",st.textTransform,"uppercase"),ri={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",st.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",st.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",st.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",st.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",st.textTransform,"uppercase")},li=e.css`
|
|
120
120
|
.ft-typography--title {
|
|
121
121
|
font-family: ${rt};
|
|
122
122
|
font-size: ${lt};
|
|
@@ -147,36 +147,36 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
147
147
|
.ft-typography--subtitle2 {
|
|
148
148
|
font-family: ${zt};
|
|
149
149
|
font-size: ${St};
|
|
150
|
-
font-weight: ${
|
|
151
|
-
letter-spacing: ${
|
|
152
|
-
line-height: ${
|
|
153
|
-
text-transform: ${
|
|
150
|
+
font-weight: ${Ot};
|
|
151
|
+
letter-spacing: ${Ct};
|
|
152
|
+
line-height: ${Nt};
|
|
153
|
+
text-transform: ${jt};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
`,fi=e.css`
|
|
157
157
|
.ft-typography--body1 {
|
|
158
158
|
font-family: ${Tt};
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
159
|
+
font-size: ${At};
|
|
160
|
+
font-weight: ${Bt};
|
|
161
161
|
letter-spacing: ${Et};
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
162
|
+
line-height: ${It};
|
|
163
|
+
text-transform: ${Ft};
|
|
164
164
|
}
|
|
165
165
|
`,di=e.css`
|
|
166
166
|
.ft-typography--body2 {
|
|
167
167
|
font-family: ${_t};
|
|
168
168
|
font-size: ${Mt};
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
169
|
+
font-weight: ${Ut};
|
|
170
|
+
letter-spacing: ${Rt};
|
|
171
|
+
line-height: ${Wt};
|
|
172
|
+
text-transform: ${Zt};
|
|
173
173
|
}
|
|
174
174
|
`,ci=e.css`
|
|
175
175
|
.ft-typography--caption {
|
|
176
|
-
font-family: ${
|
|
176
|
+
font-family: ${Dt};
|
|
177
177
|
font-size: ${Ht};
|
|
178
|
-
font-weight: ${
|
|
179
|
-
letter-spacing: ${
|
|
178
|
+
font-weight: ${Kt};
|
|
179
|
+
letter-spacing: ${Gt};
|
|
180
180
|
line-height: ${Lt};
|
|
181
181
|
text-transform: ${Pt};
|
|
182
182
|
}
|
|
@@ -218,7 +218,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`],et([o.property()],xi.prototype,"element",void 0),et([o.property()],xi.prototype,"variant",void 0),i.customElement("ft-typography")(xi);var bi=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};const vi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),mi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),wi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),ki=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system");class
|
|
221
|
+
`],et([o.property()],xi.prototype,"element",void 0),et([o.property()],xi.prototype,"variant",void 0),i.customElement("ft-typography")(xi);var bi=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};const vi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),mi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),wi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),ki=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),zi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px");class Si extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
|
|
222
222
|
<div part="container"
|
|
223
223
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
224
224
|
@mouseenter=${this.onHover}
|
|
@@ -228,12 +228,13 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
228
228
|
@touchstart=${this.onTouch}>
|
|
229
229
|
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
230
230
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
231
|
-
<
|
|
231
|
+
<slot name="text"></slot>
|
|
232
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
232
233
|
</div>
|
|
233
234
|
</div>
|
|
234
235
|
<slot></slot>
|
|
235
236
|
</div>
|
|
236
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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.position){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
|
|
237
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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.position){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, ${zi})`}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())}}Si.elementDefinitions={"ft-typography":xi},Si.styles=e.css`
|
|
237
238
|
.ft-tooltip--container {
|
|
238
239
|
display: block;
|
|
239
240
|
position: relative;
|
|
@@ -249,7 +250,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
249
250
|
box-sizing: border-box;
|
|
250
251
|
overflow: hidden;
|
|
251
252
|
width: max-content;
|
|
252
|
-
max-width:
|
|
253
|
+
max-width: ${zi};
|
|
253
254
|
text-align: center;
|
|
254
255
|
padding: ${vi};
|
|
255
256
|
z-index: ${wi};
|
|
@@ -265,7 +266,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
265
266
|
position: relative;
|
|
266
267
|
word-break: break-word;
|
|
267
268
|
}
|
|
268
|
-
`,bi([o.property()],
|
|
269
|
+
`,bi([o.property()],Si.prototype,"text",void 0),bi([o.property({type:Boolean})],Si.prototype,"manual",void 0),bi([o.property({type:Boolean})],Si.prototype,"inline",void 0),bi([o.property({type:Number})],Si.prototype,"delay",void 0),bi([o.property()],Si.prototype,"position",void 0),bi([o.queryAssignedNodes("",!0)],Si.prototype,"slotNodes",void 0),bi([o.query(".ft-tooltip--container")],Si.prototype,"container",void 0),bi([o.query("slot")],Si.prototype,"target",void 0),bi([o.query(".ft-tooltip")],Si.prototype,"tooltip",void 0),bi([o.query(".ft-tooltip--content")],Si.prototype,"tooltipContent",void 0),bi([o.state()],Si.prototype,"visible",void 0),i.customElement("ft-tooltip")(Si);const Oi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")};class Ci extends i.FtLitElement{static get styles(){return e.css`
|
|
269
270
|
:host {
|
|
270
271
|
line-height: 0;
|
|
271
272
|
}
|
|
@@ -274,8 +275,8 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
274
275
|
display: inline-block;
|
|
275
276
|
position: relative;
|
|
276
277
|
|
|
277
|
-
width: ${
|
|
278
|
-
height: ${
|
|
278
|
+
width: ${Oi.size};
|
|
279
|
+
height: ${Oi.size};
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
.ft-loader div {
|
|
@@ -284,7 +285,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
284
285
|
width: 25%;
|
|
285
286
|
height: 25%;
|
|
286
287
|
border-radius: 50%;
|
|
287
|
-
background: ${
|
|
288
|
+
background: ${Oi.color};
|
|
288
289
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
289
290
|
}
|
|
290
291
|
|
|
@@ -331,7 +332,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
331
332
|
transform: translate(0, 0);
|
|
332
333
|
}
|
|
333
334
|
100% {
|
|
334
|
-
transform: translate(calc(0.35 * ${
|
|
335
|
+
transform: translate(calc(0.35 * ${Oi.size}), 0);
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
`}render(){return e.html`
|
|
@@ -341,7 +342,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
341
342
|
<div></div>
|
|
342
343
|
<div></div>
|
|
343
344
|
</div>
|
|
344
|
-
`}}var
|
|
345
|
+
`}}var Ni,ji;i.customElement("ft-loader")(Ci),function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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="\f06e",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=""}(Ni||(Ni={})),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=""}(ji||(ji={})),new Map([...["abw"].map((t=>[t,ji.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,ji.AUDIO])),...["avi"].map((t=>[t,ji.AVI])),...["chm","xhs"].map((t=>[t,ji.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,ji.CODE])),...["csv"].map((t=>[t,ji.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ji.DITA])),...["epub"].map((t=>[t,ji.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ji.EXCEL])),...["flac"].map((t=>[t,ji.FLAC])),...["gif"].map((t=>[t,ji.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ji.GZIP])),...["html","htm","xhtml"].map((t=>[t,ji.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,ji.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ji.JPEG])),...["json"].map((t=>[t,ji.JSON])),...["m4a","m4p"].map((t=>[t,ji.M4A])),...["mov","qt"].map((t=>[t,ji.MOV])),...["mp3"].map((t=>[t,ji.MP3])),...["mp4","m4v"].map((t=>[t,ji.MP4])),...["ogg","oga"].map((t=>[t,ji.OGG])),...["pdf","ps"].map((t=>[t,ji.PDF])),...["png"].map((t=>[t,ji.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ji.POWERPOINT])),...["rar"].map((t=>[t,ji.RAR])),...["stp"].map((t=>[t,ji.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ji.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,ji.VIDEO])),...["wav"].map((t=>[t,ji.WAV])),...["wma"].map((t=>[t,ji.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ji.WORD])),...["xml","xsl","rdf"].map((t=>[t,ji.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ji.YAML])),...["zip"].map((t=>[t,ji.ZIP]))]);var Ti,Ai=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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ti||(Ti={}));const Bi={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")};class Ei extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ti.fluid_topics}getStyles(){return e.css`
|
|
345
346
|
:host {
|
|
346
347
|
display: inline-block;
|
|
347
348
|
}
|
|
@@ -364,6 +365,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
364
365
|
text-rendering: auto;
|
|
365
366
|
-webkit-font-smoothing: antialiased;
|
|
366
367
|
-moz-osx-font-smoothing: grayscale;
|
|
368
|
+
vertical-align: ${Bi.verticalAlign};
|
|
367
369
|
}
|
|
368
370
|
|
|
369
371
|
.ft-icon--fluid-topics {
|
|
@@ -382,7 +384,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
382
384
|
${s.unsafeHTML(this.getIcon())}
|
|
383
385
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
384
386
|
</i>
|
|
385
|
-
`}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:""}getIcon(){var t,i;let o=this.textContent;return this.variant===
|
|
387
|
+
`}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:""}getIcon(){var t,i;let o=this.textContent;return this.variant===Ti.file_format?null!==(t=ji[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ti.fluid_topics?null!==(i=Ni[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}Ei.elementDefinitions={},Ai([o.property()],Ei.prototype,"variant",void 0),Ai([o.query("slot")],Ei.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ei);var Ii=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};const Fi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Fi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ri.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Fi),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Mi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ui={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Mi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Mi)},Ri=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Wi extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
|
|
386
388
|
:host {
|
|
387
389
|
display: inline-block;
|
|
388
390
|
max-width: 100%;
|
|
@@ -393,7 +395,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
393
395
|
box-shadow: 0px 0px 0px transparent;
|
|
394
396
|
border: 0px solid transparent;
|
|
395
397
|
text-shadow: 0px 0px 0px transparent;
|
|
396
|
-
font-size: ${
|
|
398
|
+
font-size: ${_i.fontSize};
|
|
397
399
|
}
|
|
398
400
|
|
|
399
401
|
button:hover {
|
|
@@ -422,17 +424,17 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
422
424
|
border: none;
|
|
423
425
|
pointer-events: auto;
|
|
424
426
|
|
|
425
|
-
--ft-button-internal-line-height: calc(${
|
|
426
|
-
--ft-button-internal-color: ${
|
|
427
|
-
${i.setVariable(Bi.size,
|
|
427
|
+
--ft-button-internal-line-height: calc(${_i.fontSize} + 2px);
|
|
428
|
+
--ft-button-internal-color: ${_i.color};
|
|
429
|
+
${i.setVariable(Bi.size,_i.iconSize)};
|
|
428
430
|
--ft-button-internal-vertical-padding: 6px;
|
|
429
431
|
--ft-button-internal-horizontal-padding: 8px;
|
|
430
|
-
${i.setVariable(a.color,
|
|
431
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
432
|
+
${i.setVariable(a.color,_i.rippleColor)};
|
|
433
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${_i.iconSize});
|
|
432
434
|
|
|
433
|
-
border-radius: ${
|
|
435
|
+
border-radius: ${_i.borderRadius};
|
|
434
436
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
435
|
-
background-color: ${
|
|
437
|
+
background-color: ${_i.backgroundColor};
|
|
436
438
|
color: var(--ft-button-internal-color);
|
|
437
439
|
-webkit-mask-image: radial-gradient(white, black);
|
|
438
440
|
}
|
|
@@ -453,13 +455,13 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
453
455
|
|
|
454
456
|
.ft-button[disabled] {
|
|
455
457
|
filter: grayscale(1);
|
|
456
|
-
opacity: ${
|
|
458
|
+
opacity: ${_i.opacityDisabled};
|
|
457
459
|
}
|
|
458
460
|
|
|
459
461
|
.ft-button.ft-button--primary {
|
|
460
|
-
background-color: ${
|
|
461
|
-
--ft-button-internal-color: ${
|
|
462
|
-
${i.setVariable(a.color,
|
|
462
|
+
background-color: ${Ui.backgroundColor};
|
|
463
|
+
--ft-button-internal-color: ${Ui.color};
|
|
464
|
+
${i.setVariable(a.color,Ui.rippleColor)};
|
|
463
465
|
}
|
|
464
466
|
|
|
465
467
|
.ft-button.ft-button--outlined {
|
|
@@ -512,8 +514,8 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
512
514
|
}
|
|
513
515
|
|
|
514
516
|
ft-loader {
|
|
515
|
-
${i.setVariable(
|
|
516
|
-
${i.setVariable(
|
|
517
|
+
${i.setVariable(Oi.size,_i.iconSize)};
|
|
518
|
+
${i.setVariable(Oi.color,"var(--ft-button-internal-color)")};
|
|
517
519
|
}
|
|
518
520
|
`]}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-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
|
|
519
521
|
<button part="button"
|
|
@@ -537,7 +539,7 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
537
539
|
</ft-tooltip>
|
|
538
540
|
`}resolveIcon(){return this.loading?e.html`
|
|
539
541
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
540
|
-
<ft-icon variant="material">${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}}
|
|
542
|
+
<ft-icon variant="material">${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}}Wi.elementDefinitions={"ft-ripple":g,"ft-tooltip":Si,"ft-typography":xi,"ft-icon":Ei,"ft-loader":Ci},Ii([o.property({type:Boolean})],Wi.prototype,"primary",void 0),Ii([o.property({type:Boolean})],Wi.prototype,"outlined",void 0),Ii([o.property({type:Boolean})],Wi.prototype,"disabled",void 0),Ii([o.property({type:Boolean})],Wi.prototype,"dense",void 0),Ii([o.property({type:Boolean})],Wi.prototype,"round",void 0),Ii([o.property({type:String})],Wi.prototype,"label",void 0),Ii([o.property({type:String})],Wi.prototype,"icon",void 0),Ii([o.property({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Ii([o.property({type:Boolean})],Wi.prototype,"loading",void 0),Ii([o.property({type:String})],Wi.prototype,"tooltipPosition",void 0),Ii([o.query(".ft-button")],Wi.prototype,"button",void 0),Ii([o.query(".ft-button--label slot")],Wi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Wi);var Zi=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 Di extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Hi extends i.FtLitElement{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}static get styles(){return e.css`
|
|
541
543
|
.ft-file-button {
|
|
542
544
|
}
|
|
543
545
|
`}render(){return e.html`
|
|
@@ -555,4 +557,4 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
555
557
|
@change=${this.onFileChange}
|
|
556
558
|
hidden/>
|
|
557
559
|
</div>
|
|
558
|
-
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new
|
|
560
|
+
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new Di(this.input.files.item(0)))}focus(){this.button.focus()}clear(){this.input.value=""}}Hi.elementDefinitions={"ft-button":Wi},Zi([o.property({type:Boolean})],Hi.prototype,"disabled",void 0),Zi([o.property({type:String})],Hi.prototype,"label",void 0),Zi([o.property({type:String})],Hi.prototype,"icon",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"trailingIcon",void 0),Zi([o.property({type:String})],Hi.prototype,"accept",void 0),Zi([o.query(".ft-file-button--input")],Hi.prototype,"input",void 0),Zi([o.query("ft-button")],Hi.prototype,"button",void 0),i.customElement("ft-file-button")(Hi),t.FileChangeEvent=Di,t.FtFileButton=Hi,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(di){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -305,7 +305,7 @@ const Bt=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===Bt)return null==t?void
|
|
|
305
305
|
.ft-typography {
|
|
306
306
|
vertical-align: inherit;
|
|
307
307
|
}
|
|
308
|
-
`],Dt([o()],ii.prototype,"element",void 0),Dt([o()],ii.prototype,"variant",void 0),p("ft-typography")(ii);var oi=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};const ni=ht.create("--ft-tooltip-distance","SIZE","4px"),ri=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),si=ht.create("--ft-tooltip-background-color","COLOR","#666666"),ai=ht.create("--ft-tooltip-z-index","NUMBER","1"),li=ht.external(ft.borderRadiusS,"Design system");class
|
|
308
|
+
`],Dt([o()],ii.prototype,"element",void 0),Dt([o()],ii.prototype,"variant",void 0),p("ft-typography")(ii);var oi=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};const ni=ht.create("--ft-tooltip-distance","SIZE","4px"),ri=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),si=ht.create("--ft-tooltip-background-color","COLOR","#666666"),ai=ht.create("--ft-tooltip-z-index","NUMBER","1"),li=ht.external(ft.borderRadiusS,"Design system"),pi=ht.create("--ft-tooltip-max-width","SIZE","150px");class hi extends ut{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return I`
|
|
309
309
|
<div part="container"
|
|
310
310
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
311
311
|
@mouseenter=${this.onHover}
|
|
@@ -315,12 +315,13 @@ const Bt=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===Bt)return null==t?void
|
|
|
315
315
|
@touchstart=${this.onTouch}>
|
|
316
316
|
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
317
317
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
318
|
-
<
|
|
318
|
+
<slot name="text"></slot>
|
|
319
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
319
320
|
</div>
|
|
320
321
|
</div>
|
|
321
322
|
<slot></slot>
|
|
322
323
|
</div>
|
|
323
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth
|
|
324
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${pi})`}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())}}hi.elementDefinitions={"ft-typography":ii},hi.styles=y`
|
|
324
325
|
.ft-tooltip--container {
|
|
325
326
|
display: block;
|
|
326
327
|
position: relative;
|
|
@@ -336,7 +337,7 @@ const Bt=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===Bt)return null==t?void
|
|
|
336
337
|
box-sizing: border-box;
|
|
337
338
|
overflow: hidden;
|
|
338
339
|
width: max-content;
|
|
339
|
-
max-width:
|
|
340
|
+
max-width: ${pi};
|
|
340
341
|
text-align: center;
|
|
341
342
|
padding: ${ni};
|
|
342
343
|
z-index: ${ai};
|
|
@@ -352,13 +353,13 @@ const Bt=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===Bt)return null==t?void
|
|
|
352
353
|
position: relative;
|
|
353
354
|
word-break: break-word;
|
|
354
355
|
}
|
|
355
|
-
`,oi([o()],
|
|
356
|
+
`,oi([o()],hi.prototype,"text",void 0),oi([o({type:Boolean})],hi.prototype,"manual",void 0),oi([o({type:Boolean})],hi.prototype,"inline",void 0),oi([o({type:Number})],hi.prototype,"delay",void 0),oi([o()],hi.prototype,"position",void 0),oi([
|
|
356
357
|
/**
|
|
357
358
|
* @license
|
|
358
359
|
* Copyright 2017 Google LLC
|
|
359
360
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
360
361
|
*/
|
|
361
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
362
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],hi.prototype,"slotNodes",void 0),oi([s(".ft-tooltip--container")],hi.prototype,"container",void 0),oi([s("slot")],hi.prototype,"target",void 0),oi([s(".ft-tooltip")],hi.prototype,"tooltip",void 0),oi([s(".ft-tooltip--content")],hi.prototype,"tooltipContent",void 0),oi([n()],hi.prototype,"visible",void 0),p("ft-tooltip")(hi);const ci={color:ht.extend("--ft-loader-color",ft.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class fi extends ut{static get styles(){return y`
|
|
362
363
|
:host {
|
|
363
364
|
line-height: 0;
|
|
364
365
|
}
|
|
@@ -367,8 +368,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
367
368
|
display: inline-block;
|
|
368
369
|
position: relative;
|
|
369
370
|
|
|
370
|
-
width: ${
|
|
371
|
-
height: ${
|
|
371
|
+
width: ${ci.size};
|
|
372
|
+
height: ${ci.size};
|
|
372
373
|
}
|
|
373
374
|
|
|
374
375
|
.ft-loader div {
|
|
@@ -377,7 +378,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
377
378
|
width: 25%;
|
|
378
379
|
height: 25%;
|
|
379
380
|
border-radius: 50%;
|
|
380
|
-
background: ${
|
|
381
|
+
background: ${ci.color};
|
|
381
382
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
382
383
|
}
|
|
383
384
|
|
|
@@ -424,7 +425,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
424
425
|
transform: translate(0, 0);
|
|
425
426
|
}
|
|
426
427
|
100% {
|
|
427
|
-
transform: translate(calc(0.35 * ${
|
|
428
|
+
transform: translate(calc(0.35 * ${ci.size}), 0);
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
431
|
`}render(){return I`
|
|
@@ -434,25 +435,25 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
434
435
|
<div></div>
|
|
435
436
|
<div></div>
|
|
436
437
|
</div>
|
|
437
|
-
`}}p("ft-loader")(
|
|
438
|
+
`}}p("ft-loader")(fi);
|
|
438
439
|
/**
|
|
439
440
|
* @license
|
|
440
441
|
* Copyright 2017 Google LLC
|
|
441
442
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
442
443
|
*/
|
|
443
|
-
class
|
|
444
|
+
class di extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=$t(di);var yi,vi;!function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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="\f06e",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=""}(yi||(yi={})),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=""}(vi||(vi={})),new Map([...["abw"].map((t=>[t,vi.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,vi.AUDIO])),...["avi"].map((t=>[t,vi.AVI])),...["chm","xhs"].map((t=>[t,vi.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,vi.CODE])),...["csv"].map((t=>[t,vi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vi.DITA])),...["epub"].map((t=>[t,vi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vi.EXCEL])),...["flac"].map((t=>[t,vi.FLAC])),...["gif"].map((t=>[t,vi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vi.GZIP])),...["html","htm","xhtml"].map((t=>[t,vi.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,vi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vi.JPEG])),...["json"].map((t=>[t,vi.JSON])),...["m4a","m4p"].map((t=>[t,vi.M4A])),...["mov","qt"].map((t=>[t,vi.MOV])),...["mp3"].map((t=>[t,vi.MP3])),...["mp4","m4v"].map((t=>[t,vi.MP4])),...["ogg","oga"].map((t=>[t,vi.OGG])),...["pdf","ps"].map((t=>[t,vi.PDF])),...["png"].map((t=>[t,vi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vi.POWERPOINT])),...["rar"].map((t=>[t,vi.RAR])),...["stp"].map((t=>[t,vi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vi.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,vi.VIDEO])),...["wav"].map((t=>[t,vi.WAV])),...["wma"].map((t=>[t,vi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vi.WORD])),...["xml","xsl","rdf"].map((t=>[t,vi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vi.YAML])),...["zip"].map((t=>[t,vi.ZIP]))]);var bi,xi=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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bi||(bi={}));const gi={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ht.create("--ft-icon-vertical-align","UNKNOWN","unset")};class mi extends ut{constructor(){super(...arguments),this.variant=bi.fluid_topics}getStyles(){return y`
|
|
444
445
|
:host {
|
|
445
446
|
display: inline-block;
|
|
446
447
|
}
|
|
447
448
|
|
|
448
449
|
:host, i.ft-icon {
|
|
449
|
-
width: ${
|
|
450
|
-
height: ${
|
|
450
|
+
width: ${gi.size};
|
|
451
|
+
height: ${gi.size};
|
|
451
452
|
text-align: center;
|
|
452
453
|
}
|
|
453
454
|
|
|
454
455
|
i.ft-icon {
|
|
455
|
-
font-size: ${
|
|
456
|
+
font-size: ${gi.size};
|
|
456
457
|
line-height: 1;
|
|
457
458
|
font-weight: normal;
|
|
458
459
|
text-transform: none;
|
|
@@ -463,25 +464,26 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
463
464
|
text-rendering: auto;
|
|
464
465
|
-webkit-font-smoothing: antialiased;
|
|
465
466
|
-moz-osx-font-smoothing: grayscale;
|
|
467
|
+
vertical-align: ${gi.verticalAlign};
|
|
466
468
|
}
|
|
467
469
|
|
|
468
470
|
.ft-icon--fluid-topics {
|
|
469
|
-
font-family: ${
|
|
471
|
+
font-family: ${gi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
470
472
|
}
|
|
471
473
|
|
|
472
474
|
.ft-icon--file-format {
|
|
473
|
-
font-family: ${
|
|
475
|
+
font-family: ${gi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
474
476
|
}
|
|
475
477
|
|
|
476
478
|
.ft-icon--material {
|
|
477
|
-
font-family: ${
|
|
479
|
+
font-family: ${gi.materialFontFamily}, "Material Icons", sans-serif;
|
|
478
480
|
}
|
|
479
481
|
`}getTemplate(){return I`
|
|
480
482
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
481
|
-
${
|
|
483
|
+
${ui(this.getIcon())}
|
|
482
484
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
483
485
|
</i>
|
|
484
|
-
`}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===
|
|
486
|
+
`}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===bi.file_format?null!==(t=vi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===bi.fluid_topics?null!==(e=yi[i.toUpperCase()])&&void 0!==e?e:i:K}}mi.elementDefinitions={},xi([o()],mi.prototype,"variant",void 0),xi([s("slot")],mi.prototype,"slottedContent",void 0),p("ft-icon")(mi);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};const $i=ht.extend("--ft-button-color",ft.colorPrimary),Oi={backgroundColor:ht.extend("--ft-button-background-color",ft.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",ft.borderRadiusL),color:$i,fontSize:ht.extend("--ft-button-font-size",Ke.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",$i),opacityDisabled:ht.external(ft.colorOpacityDisabled,"Design system")},Si=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",ft.colorOnPrimary)),ki={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",ft.colorPrimary)),color:Si,rippleColor:ht.extend("--ft-button-primary-ripple-color",Si)},Ni=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",ft.borderRadiusM));class Ci extends ut{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[yt,y`
|
|
485
487
|
:host {
|
|
486
488
|
display: inline-block;
|
|
487
489
|
max-width: 100%;
|
|
@@ -492,7 +494,7 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
492
494
|
box-shadow: 0px 0px 0px transparent;
|
|
493
495
|
border: 0px solid transparent;
|
|
494
496
|
text-shadow: 0px 0px 0px transparent;
|
|
495
|
-
font-size: ${
|
|
497
|
+
font-size: ${Oi.fontSize};
|
|
496
498
|
}
|
|
497
499
|
|
|
498
500
|
button:hover {
|
|
@@ -521,17 +523,17 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
521
523
|
border: none;
|
|
522
524
|
pointer-events: auto;
|
|
523
525
|
|
|
524
|
-
--ft-button-internal-line-height: calc(${
|
|
525
|
-
--ft-button-internal-color: ${
|
|
526
|
-
${ct(
|
|
526
|
+
--ft-button-internal-line-height: calc(${Oi.fontSize} + 2px);
|
|
527
|
+
--ft-button-internal-color: ${Oi.color};
|
|
528
|
+
${ct(gi.size,Oi.iconSize)};
|
|
527
529
|
--ft-button-internal-vertical-padding: 6px;
|
|
528
530
|
--ft-button-internal-horizontal-padding: 8px;
|
|
529
|
-
${ct(Ct.color
|
|
530
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
531
|
+
${ct(Ct.color,Oi.rippleColor)};
|
|
532
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Oi.iconSize});
|
|
531
533
|
|
|
532
|
-
border-radius: ${
|
|
534
|
+
border-radius: ${Oi.borderRadius};
|
|
533
535
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
534
|
-
background-color: ${
|
|
536
|
+
background-color: ${Oi.backgroundColor};
|
|
535
537
|
color: var(--ft-button-internal-color);
|
|
536
538
|
-webkit-mask-image: radial-gradient(white, black);
|
|
537
539
|
}
|
|
@@ -543,7 +545,7 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
543
545
|
.ft-button--dense {
|
|
544
546
|
--ft-button-internal-vertical-padding: 2px;
|
|
545
547
|
--ft-button-internal-horizontal-padding: 4px;
|
|
546
|
-
border-radius: ${
|
|
548
|
+
border-radius: ${Ni};
|
|
547
549
|
}
|
|
548
550
|
|
|
549
551
|
.ft-button--round {
|
|
@@ -552,13 +554,13 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
552
554
|
|
|
553
555
|
.ft-button[disabled] {
|
|
554
556
|
filter: grayscale(1);
|
|
555
|
-
opacity: ${
|
|
557
|
+
opacity: ${Oi.opacityDisabled};
|
|
556
558
|
}
|
|
557
559
|
|
|
558
560
|
.ft-button.ft-button--primary {
|
|
559
|
-
background-color: ${
|
|
560
|
-
--ft-button-internal-color: ${
|
|
561
|
-
${ct(Ct.color,
|
|
561
|
+
background-color: ${ki.backgroundColor};
|
|
562
|
+
--ft-button-internal-color: ${ki.color};
|
|
563
|
+
${ct(Ct.color,ki.rippleColor)};
|
|
562
564
|
}
|
|
563
565
|
|
|
564
566
|
.ft-button.ft-button--outlined {
|
|
@@ -611,8 +613,8 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
611
613
|
}
|
|
612
614
|
|
|
613
615
|
ft-loader {
|
|
614
|
-
${ct(
|
|
615
|
-
${ct(
|
|
616
|
+
${ct(ci.size,Oi.iconSize)};
|
|
617
|
+
${ct(ci.color,"var(--ft-button-internal-color)")};
|
|
616
618
|
}
|
|
617
619
|
`]}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-button--safari-fix":gt,"ft-no-text-select":!0};return this.addTooltip(I`
|
|
618
620
|
<button part="button"
|
|
@@ -636,7 +638,7 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
636
638
|
</ft-tooltip>
|
|
637
639
|
`}resolveIcon(){return this.loading?I`
|
|
638
640
|
<ft-loader></ft-loader> `:this.icon?I`
|
|
639
|
-
<ft-icon variant="material">${this.icon}</ft-icon> `:K}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}}
|
|
641
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:K}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}}Ci.elementDefinitions={"ft-ripple":jt,"ft-tooltip":hi,"ft-typography":ii,"ft-icon":mi,"ft-loader":fi},wi([o({type:Boolean})],Ci.prototype,"primary",void 0),wi([o({type:Boolean})],Ci.prototype,"outlined",void 0),wi([o({type:Boolean})],Ci.prototype,"disabled",void 0),wi([o({type:Boolean})],Ci.prototype,"dense",void 0),wi([o({type:Boolean})],Ci.prototype,"round",void 0),wi([o({type:String})],Ci.prototype,"label",void 0),wi([o({type:String})],Ci.prototype,"icon",void 0),wi([o({type:Boolean})],Ci.prototype,"trailingIcon",void 0),wi([o({type:Boolean})],Ci.prototype,"loading",void 0),wi([o({type:String})],Ci.prototype,"tooltipPosition",void 0),wi([s(".ft-button")],Ci.prototype,"button",void 0),wi([s(".ft-button--label slot")],Ci.prototype,"slottedContent",void 0),p("ft-button")(Ci);var Ei=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 Ri extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Mi extends ut{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}static get styles(){return y`
|
|
640
642
|
.ft-file-button {
|
|
641
643
|
}
|
|
642
644
|
`}render(){return I`
|
|
@@ -654,4 +656,4 @@ class fi extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
|
|
|
654
656
|
@change=${this.onFileChange}
|
|
655
657
|
hidden/>
|
|
656
658
|
</div>
|
|
657
|
-
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new
|
|
659
|
+
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new Ri(this.input.files.item(0)))}focus(){this.button.focus()}clear(){this.input.value=""}}Mi.elementDefinitions={"ft-button":Ci},Ei([o({type:Boolean})],Mi.prototype,"disabled",void 0),Ei([o({type:String})],Mi.prototype,"label",void 0),Ei([o({type:String})],Mi.prototype,"icon",void 0),Ei([o({type:Boolean})],Mi.prototype,"trailingIcon",void 0),Ei([o({type:String})],Mi.prototype,"accept",void 0),Ei([s(".ft-file-button--input")],Mi.prototype,"input",void 0),Ei([s("ft-button")],Mi.prototype,"button",void 0),p("ft-file-button")(Mi),t.FileChangeEvent=Ri,t.FtFileButton=Mi,t.FtFileButtonCssVariables={},Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-file-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "File",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
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-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-button": "0.3.6",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "0.3.6",
|
|
24
24
|
"lit": "2.2.8"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "174dee2cde0a01bd51aba1031d4c5128f6fe81f1"
|
|
27
27
|
}
|