@fluid-topics/ft-collapsible 0.2.15 → 0.2.18
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.
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/
|
|
24
|
-
var
|
|
24
|
+
var y;g.elementDefinitions={},g.styles=e.css`
|
|
25
25
|
:host {
|
|
26
26
|
display: contents;
|
|
27
27
|
}
|
|
@@ -110,13 +110,13 @@ var x;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
|
|
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,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,j=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,B=/'/g,T=/"/g,I=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),F=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=C;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===C?"!--"===a[1]?r=O:void 0!==a[1]?r=j:void 0!==a[2]?(I.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=N):void 0!==a[3]&&(r=N):r===N?">"===a[0]?(r=null!=n?n:C,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?N:'"'===a[3]?T:B):r===T||r===B?r=N:r===O||r===j?r=C:(r=N,n=void 0);const f=r===N&&t[i+1].startsWith("/>")?" ":"";s+=r===C?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]?G:"?"===i[1]?L:"@"===i[1]?q:H})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(I.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 D(t,i,e=t,o){var n,s,r,l;if(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=D(t,a._$AS(t,i.values),a,o)),i}class W{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 Z(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new P(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 Z{constructor(t,i,e,o){var n;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=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._$Cg}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=D(this,t,i),z(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return S(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==E&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}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 W(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=F.get(t.strings);return void 0===i&&F.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 Z(this.M(k()),this.M(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._$Cg=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=E,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=E}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=D(this,t,i,0),s=!z(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=D(this,o[e+r],i,r),l===_&&(l=this._$AH[r]),s||(s=!z(l)||l!==this._$AH[r]),l===E?t=E:t!==E&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.C(t)}C(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends H{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===E?void 0:t}}const K=x?x.emptyScript:"";class L extends H{constructor(){super(...arguments),this.type=4}C(t){t&&t!==E?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class q 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=D(this,t,i,0))&&void 0!==e?e:E)===_)return;const o=this._$AH,n=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==E&&(o===E||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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 P{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){D(this,t)}}const X=window.litHtmlPolyfillSupport;null==X||X(R,Z),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
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=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===Y)return null===(e=t)||void 0===e?void 0:e._$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)})(A);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.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),st={fontFamily:nt,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","
|
|
119
|
+
const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===Y)return null===(e=t)||void 0===e?void 0:e._$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)})(A);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.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),st={fontFamily:nt,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},rt=i.FtCssVariable.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariable.extend("--ft-typography-title-font-size",st.fontSize,"20px"),at=i.FtCssVariable.extend("--ft-typography-title-font-weight",st.fontWeight,"normal"),pt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",st.letterSpacing,"0.15px"),ht=i.FtCssVariable.extend("--ft-typography-title-line-height",st.lineHeight,"1.2"),ft=i.FtCssVariable.extend("--ft-typography-title-text-transform",st.textTransform,"inherit"),dt=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",ot),ct=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",st.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",st.fontWeight,"normal"),gt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",st.letterSpacing,"0.105px"),yt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",st.lineHeight,"1.7"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",st.textTransform,"inherit"),bt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",nt),vt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",st.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",st.fontWeight,"600"),$t=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",st.letterSpacing,"0.144px"),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",st.lineHeight,"1.5"),kt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",st.textTransform,"inherit"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",st.fontSize,"14px"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",st.fontWeight,"normal"),Ot=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",st.letterSpacing,"0.098px"),jt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",st.lineHeight,"1.7"),Nt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",st.textTransform,"inherit"),Bt=i.FtCssVariable.extend("--ft-typography-body1-font-family",nt),Tt=i.FtCssVariable.extend("--ft-typography-body1-font-size",st.fontSize,"16px"),It=i.FtCssVariable.extend("--ft-typography-body1-font-weight",st.fontWeight,"normal"),At=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",st.letterSpacing,"0.496px"),_t=i.FtCssVariable.extend("--ft-typography-body1-line-height",st.lineHeight,"1.5"),Et=i.FtCssVariable.extend("--ft-typography-body1-text-transform",st.textTransform,"inherit"),Ft=i.FtCssVariable.extend("--ft-typography-body2-font-family",nt),Mt=i.FtCssVariable.extend("--ft-typography-body2-font-size",st.fontSize,"14px"),Ut=i.FtCssVariable.extend("--ft-typography-body2-font-weight",st.fontWeight,"normal"),Rt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",st.letterSpacing,"0.252px"),Dt=i.FtCssVariable.extend("--ft-typography-body2-line-height",st.lineHeight,"1.4"),Wt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",st.textTransform,"inherit"),Zt=i.FtCssVariable.extend("--ft-typography-caption-font-family",nt),Ht=i.FtCssVariable.extend("--ft-typography-caption-font-size",st.fontSize,"12px"),Gt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",st.fontWeight,"normal"),Kt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",st.letterSpacing,"0.396px"),Lt=i.FtCssVariable.extend("--ft-typography-caption-line-height",st.lineHeight,"1.33"),qt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",st.textTransform,"inherit"),Pt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",nt),Xt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",st.fontSize,"10px"),Yt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",st.fontWeight,"normal"),Jt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",st.letterSpacing,"0.33px"),Qt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",st.lineHeight,"1.6"),Vt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",st.textTransform,"inherit"),ti=i.FtCssVariable.extend("--ft-typography-overline-font-family",nt),ii=i.FtCssVariable.extend("--ft-typography-overline-font-size",st.fontSize,"10px"),ei=i.FtCssVariable.extend("--ft-typography-overline-font-weight",st.fontWeight,"normal"),oi=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",st.letterSpacing,"1.5px"),ni=i.FtCssVariable.extend("--ft-typography-overline-line-height",st.lineHeight,"1.6"),si=i.FtCssVariable.extend("--ft-typography-overline-text-transform",st.textTransform,"uppercase"),ri={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",nt),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",st.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",st.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",st.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",st.lineHeight,"1.15"),textTransform:i.FtCssVariable.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};
|
|
@@ -131,8 +131,8 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
131
131
|
font-size: ${ct};
|
|
132
132
|
font-weight: ${ut};
|
|
133
133
|
letter-spacing: ${gt};
|
|
134
|
-
line-height: ${
|
|
135
|
-
text-transform: ${
|
|
134
|
+
line-height: ${yt};
|
|
135
|
+
text-transform: ${xt};
|
|
136
136
|
}
|
|
137
137
|
`,pi=e.css`
|
|
138
138
|
.ft-typography--subtitle1 {
|
|
@@ -156,8 +156,8 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
156
156
|
`,fi=e.css`
|
|
157
157
|
.ft-typography--body1 {
|
|
158
158
|
font-family: ${Bt};
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
159
|
+
font-size: ${Tt};
|
|
160
|
+
font-weight: ${It};
|
|
161
161
|
letter-spacing: ${At};
|
|
162
162
|
line-height: ${_t};
|
|
163
163
|
text-transform: ${Et};
|
|
@@ -168,12 +168,12 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
168
168
|
font-size: ${Mt};
|
|
169
169
|
font-weight: ${Ut};
|
|
170
170
|
letter-spacing: ${Rt};
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
171
|
+
line-height: ${Dt};
|
|
172
|
+
text-transform: ${Wt};
|
|
173
173
|
}
|
|
174
174
|
`,ci=e.css`
|
|
175
175
|
.ft-typography--caption {
|
|
176
|
-
font-family: ${
|
|
176
|
+
font-family: ${Zt};
|
|
177
177
|
font-size: ${Ht};
|
|
178
178
|
font-weight: ${Gt};
|
|
179
179
|
letter-spacing: ${Kt};
|
|
@@ -198,7 +198,7 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
198
198
|
line-height: ${ni};
|
|
199
199
|
text-transform: ${si};
|
|
200
200
|
}
|
|
201
|
-
`,
|
|
201
|
+
`,yi=e.css`
|
|
202
202
|
.ft-typography--button {
|
|
203
203
|
font-family: ${ri.fontFamily};
|
|
204
204
|
font-size: ${ri.fontSize};
|
|
@@ -207,18 +207,18 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
207
207
|
line-height: ${ri.lineHeight};
|
|
208
208
|
text-transform: ${ri.textTransform};
|
|
209
209
|
}
|
|
210
|
-
`;class
|
|
210
|
+
`;class xi extends i.FtLitElement{constructor(){super(...arguments),this.variant=it.body1}render(){return this.element?tt`
|
|
211
211
|
<${Q(this.element)}
|
|
212
212
|
class="ft-typography ft-typography--${this.variant}">
|
|
213
213
|
<slot></slot>
|
|
214
214
|
</${Q(this.element)}>
|
|
215
215
|
`:tt`
|
|
216
216
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
217
|
-
`}}
|
|
217
|
+
`}}xi.styles=[li,ai,pi,hi,fi,di,ci,ui,gi,yi,e.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`],et([o.property()],
|
|
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.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),mi=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),wi=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),ki=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class zi 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}
|
|
@@ -233,7 +233,7 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
233
233
|
</div>
|
|
234
234
|
<slot></slot>
|
|
235
235
|
</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,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}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())}}zi.elementDefinitions={"ft-typography":
|
|
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,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}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())}}zi.elementDefinitions={"ft-typography":xi},zi.styles=e.css`
|
|
237
237
|
.ft-tooltip--container {
|
|
238
238
|
display: block;
|
|
239
239
|
position: relative;
|
|
@@ -341,21 +341,23 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
341
341
|
<div></div>
|
|
342
342
|
<div></div>
|
|
343
343
|
</div>
|
|
344
|
-
`}}var Oi,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=""}(Oi||(Oi={})),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 Ni,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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ni||(Ni={}));const
|
|
344
|
+
`}}var Oi,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=""}(Oi||(Oi={})),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 Ni,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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ni||(Ni={}));const Ti={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Ii extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ni.fluid_topics}render(){return e.html`
|
|
345
345
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
346
346
|
${s.unsafeHTML(this.getIcon())}
|
|
347
347
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
348
348
|
</i>
|
|
349
|
-
`}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===Ni.file_format?null!==(t=ji[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ni.fluid_topics?null!==(i=Oi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}
|
|
350
|
-
:host
|
|
349
|
+
`}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===Ni.file_format?null!==(t=ji[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ni.fluid_topics?null!==(i=Oi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}Ii.elementDefinitions={},Ii.styles=e.css`
|
|
350
|
+
:host {
|
|
351
351
|
display: inline-block;
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
}
|
|
353
|
+
:host, i.ft-icon {
|
|
354
|
+
width: ${Ti.size};
|
|
355
|
+
height: ${Ti.size};
|
|
354
356
|
text-align: center;
|
|
355
357
|
}
|
|
356
358
|
|
|
357
359
|
i.ft-icon {
|
|
358
|
-
font-size: ${
|
|
360
|
+
font-size: ${Ti.size};
|
|
359
361
|
line-height: 1;
|
|
360
362
|
font-weight: normal;
|
|
361
363
|
text-transform: none;
|
|
@@ -369,17 +371,17 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
369
371
|
}
|
|
370
372
|
|
|
371
373
|
.ft-icon--fluid-topics {
|
|
372
|
-
font-family: ${
|
|
374
|
+
font-family: ${Ti.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
373
375
|
}
|
|
374
376
|
|
|
375
377
|
.ft-icon--file-format {
|
|
376
|
-
font-family: ${
|
|
378
|
+
font-family: ${Ti.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
377
379
|
}
|
|
378
380
|
|
|
379
381
|
.ft-icon--material {
|
|
380
|
-
font-family: ${
|
|
382
|
+
font-family: ${Ti.materialFontFamily}, "Material Icons", sans-serif;
|
|
381
383
|
}
|
|
382
|
-
`,Bi([o.property()],
|
|
384
|
+
`,Bi([o.property()],Ii.prototype,"variant",void 0),Bi([o.query("slot")],Ii.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ii);var 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};const _i=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ei={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:_i,fontSize:i.FtCssVariable.extend("--ft-button-font-size",ri.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",_i),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Fi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Mi={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Fi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Fi)},Ui=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Ri 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`
|
|
383
385
|
:host {
|
|
384
386
|
display: inline-block;
|
|
385
387
|
max-width: 100%;
|
|
@@ -390,7 +392,7 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
390
392
|
box-shadow: 0px 0px 0px transparent;
|
|
391
393
|
border: 0px solid transparent;
|
|
392
394
|
text-shadow: 0px 0px 0px transparent;
|
|
393
|
-
font-size:
|
|
395
|
+
font-size: 16px;
|
|
394
396
|
}
|
|
395
397
|
|
|
396
398
|
button:hover {
|
|
@@ -422,7 +424,7 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
422
424
|
--ft-button-internal-font-size: ${Ei.fontSize};
|
|
423
425
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
424
426
|
--ft-button-internal-color: ${Ei.color};
|
|
425
|
-
${i.setVariable(
|
|
427
|
+
${i.setVariable(Ti.size,Ei.iconSize)};
|
|
426
428
|
--ft-button-internal-vertical-padding: 6px;
|
|
427
429
|
--ft-button-internal-horizontal-padding: 8px;
|
|
428
430
|
${i.setVariable(a.color,Ei.rippleColor)};
|
|
@@ -535,7 +537,7 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
535
537
|
</ft-tooltip>
|
|
536
538
|
`}resolveIcon(){return this.loading?e.html`
|
|
537
539
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
538
|
-
<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}}Ri.elementDefinitions={"ft-ripple":g,"ft-tooltip":zi,"ft-typography":
|
|
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}}Ri.elementDefinitions={"ft-ripple":g,"ft-tooltip":zi,"ft-typography":xi,"ft-icon":Ii,"ft-loader":Ci},Ai([o.property({type:Boolean})],Ri.prototype,"primary",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"outlined",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"disabled",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"dense",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"round",void 0),Ai([o.property({type:String})],Ri.prototype,"label",void 0),Ai([o.property({type:String})],Ri.prototype,"icon",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"trailingIcon",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"loading",void 0),Ai([o.property({type:String})],Ri.prototype,"tooltipPosition",void 0),Ai([o.query(".ft-button")],Ri.prototype,"button",void 0),Ai([o.query(".ft-button--label slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ri);var Di=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.open=!1,this.label="Open here",this.primary=!1,this.secondary=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.openIcon="expand_less",this.closedIcon="expand_more",this.trailingIcon=!1}render(){return e.html`
|
|
539
541
|
<ft-button
|
|
540
542
|
part="toggle"
|
|
541
543
|
icon=${this.open?this.openIcon:this.closedIcon}
|
|
@@ -557,7 +559,7 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
557
559
|
class="${this.hasCustomToggle()?"":"hidden"}"
|
|
558
560
|
></slot>
|
|
559
561
|
<slot class="content ${this.open?"":"hidden"}"></slot>
|
|
560
|
-
`}onCustomToggleSlotChange(){this.requestUpdate()}hasCustomToggle(){var t,i;return 0!==(null!==(i=null===(t=this.toggleSlot)||void 0===t?void 0:t.assignedNodes().length)&&void 0!==i?i:0)}toggleOpen(){this.open=!this.open}update(t){super.update(t),t.has("open")&&this.dispatchEvent(new CustomEvent("change",{detail:{open:this.open}}))}}
|
|
562
|
+
`}onCustomToggleSlotChange(){this.requestUpdate()}hasCustomToggle(){var t,i;return 0!==(null!==(i=null===(t=this.toggleSlot)||void 0===t?void 0:t.assignedNodes().length)&&void 0!==i?i:0)}toggleOpen(){this.open=!this.open}update(t){super.update(t),t.has("open")&&this.dispatchEvent(new CustomEvent("change",{detail:{open:this.open}}))}}Wi.elementDefinitions={"ft-button":Ri},Wi.styles=e.css`
|
|
561
563
|
:host, :root {
|
|
562
564
|
display: block;
|
|
563
565
|
}
|
|
@@ -569,4 +571,4 @@ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
569
571
|
.hidden {
|
|
570
572
|
display: none;
|
|
571
573
|
}
|
|
572
|
-
`,
|
|
574
|
+
`,Di([o.query(".content")],Wi.prototype,"content",void 0),Di([o.property({type:Boolean,reflect:!0})],Wi.prototype,"open",void 0),Di([o.property()],Wi.prototype,"label",void 0),Di([o.property({type:Boolean})],Wi.prototype,"primary",void 0),Di([o.property({type:Boolean})],Wi.prototype,"secondary",void 0),Di([o.property({type:Boolean})],Wi.prototype,"disabled",void 0),Di([o.property({type:Boolean})],Wi.prototype,"dense",void 0),Di([o.property({type:Boolean})],Wi.prototype,"round",void 0),Di([o.property({type:String})],Wi.prototype,"openIcon",void 0),Di([o.property({type:String})],Wi.prototype,"closedIcon",void 0),Di([o.property({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Di([o.query('slot[name="toggle"]')],Wi.prototype,"toggleSlot",void 0),i.customElement("ft-collapsible")(Wi),t.FtCollapsible=Wi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|