@fluid-topics/ft-trend 2.1.12 → 2.1.14
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-trend.light.js +22 -22
- package/build/ft-trend.min.js +34 -34
- package/package.json +4 -4
package/build/ft-trend.light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,vt=/"/g,Ht=/^(?:script|style|textarea|title)$/i,at=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),Ft=at(1),zt=at(2),wt=at(3),U=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),At=new WeakMap,T=H.createTreeWalker(H,129);function Ct(n,t){if(!st(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ut!==void 0?ut.createHTML(t):t}var pe=(n,t)=>{let e=n.length-1,i=[],o,s=t===2?"<svg>":t===3?"<math>":"",a=D;for(let y=0;y<e;y++){let l=n[y],h,g,f=-1,x=0;for(;x<l.length&&(a.lastIndex=x,g=a.exec(l),g!==null);)x=a.lastIndex,a===D?g[1]==="!--"?a=$t:g[1]!==void 0?a=bt:g[2]!==void 0?(Ht.test(g[2])&&(o=RegExp("</"+g[2],"g")),a=S):g[3]!==void 0&&(a=S):a===S?g[0]===">"?(a=o??D,f=-1):g[1]===void 0?f=-2:(f=a.lastIndex-g[2].length,h=g[1],a=g[3]===void 0?S:g[3]==='"'?vt:_t):a===vt||a===_t?a=S:a===$t||a===bt?a=D:(a=S,o=void 0);let _=a===S&&n[y+1].startsWith("/>")?" ":"";s+=a===D?l+se:f>=0?(i.push(h),l.slice(0,f)+St+l.slice(f)+v+_):l+v+(f===-2?y:_)}return[Ct(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},j=class n{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,a=0,y=t.length-1,l=this.parts,[h,g]=pe(t,e);if(this.el=n.createElement(h,i),T.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=T.nextNode())!==null&&l.length<y;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(St)){let x=g[a++],_=o.getAttribute(f).split(v),L=/([.?@])?(.*)/.exec(x);l.push({type:1,index:s,name:L[2],strings:_,ctor:L[1]==="."?et:L[1]==="?"?it:L[1]==="@"?nt:z}),o.removeAttribute(f)}else f.startsWith(v)&&(l.push({type:6,index:s}),o.removeAttribute(f));if(Ht.test(o.tagName)){let f=o.textContent.split(v),x=f.length-1;if(x>0){o.textContent=G?G.emptyScript:"";for(let _=0;_<x;_++)o.append(f[_],K()),T.nextNode(),l.push({type:2,index:++s});o.append(f[x],K())}}}else if(o.nodeType===8)if(o.data===Tt)l.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(v,f+1))!==-1;)l.push({type:7,index:s}),f+=v.length-1}s++}}static createElement(t,e){let i=H.createElement("template");return i.innerHTML=t,i}};function F(n,t,e=n,i){if(t===U)return t;let o=i!==void 0?e._$Co?.[i]:e._$Cl,s=R(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,i)),i!==void 0?(e._$Co??=[])[i]=o:e._$Cl=o),o!==void 0&&(t=F(n,o._$AS(n,t.values),o,i)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??H).importNode(e,!0);T.currentNode=o;let s=T.nextNode(),a=0,y=0,l=i[0];for(;l!==void 0;){if(a===l.index){let h;l.type===2?h=new q(s,s.nextSibling,this,t):l.type===1?h=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(h=new ot(s,this,t)),this._$AV.push(h),l=i[++y]}a!==l?.index&&(s=T.nextNode(),a++)}return T.currentNode=H,o}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},q=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),R(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ae(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=j.createElement(Ct(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new tt(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=At.get(t.strings);return e===void 0&&At.set(t.strings,e=new j(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,o=0;for(let s of t)o===e.length?e.push(i=new n(this.O(K()),this.O(K()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},z=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,o){let s=this.strings,a=!1;if(s===void 0)t=F(this,t,e,0),a=!R(t)||t!==this._$AH&&t!==U,a&&(this._$AH=t);else{let y=t,l,h;for(t=s[0],l=0;l<s.length-1;l++)h=F(this,y[i+l],e,l),h===U&&(h=this._$AH[l]),a||=!R(h)||h!==this._$AH[l],h===c?t=c:t!==c&&(t+=(h??"")+s[l+1]),this._$AH[l]=h}a&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},it=class extends z{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},nt=class extends z{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){if((t=F(this,t,e,0)??c)===U)return;let i=this._$AH,o=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==c&&(i===c||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ot=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}};var le=rt.litHtmlPolyfillSupport;le?.(j,q),(rt.litHtmlVersions??=[]).push("3.3.0");var Nt=Symbol.for(""),he=n=>{if(n?.r===Nt)return n?._$litStatic$},pt=n=>({_$litStatic$:n,r:Nt});var Wt=new Map,lt=n=>(t,...e)=>{let i=e.length,o,s,a=[],y=[],l,h=0,g=!1;for(;h<i;){for(l=t[h];h<i&&(s=e[h],(o=he(s))!==void 0);)l+=o+t[++h],g=!0;h!==i&&y.push(s),a.push(l),h++}if(h===i&&a.push(t[i]),g){let f=a.join("$$lit$$");(t=Wt.get(f))===void 0&&(a.raw=a,Wt.set(f,t=a)),e=y}return n(t,...e)},ht=lt(Ft),ue=lt(zt),$e=lt(wt);var ft=d(Y()),Gt=d(A());var J;(function(n){n.title="title",n.title_dense="title-dense",n.subtitle1="subtitle1",n.subtitle2="subtitle2",n.body1="body1",n.body2="body2",n.caption="caption",n.breadcrumb="breadcrumb",n.overline="overline",n.button="button"})(J||(J={}));var m=d(Z()),r=d(A()),Vt=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.titleFont),u=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.contentFont),p={fontFamily:u,fontSize:r.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},w={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Vt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit")},C={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Vt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit")},W={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit")},N={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit")},V={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit")},B={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit")},M={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit")},E={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit")},O={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase")},I={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-button-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase")},Bt=m.css`
|
|
1
|
+
"use strict";(()=>{var ee=Object.create;var ct=Object.defineProperty;var ie=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var oe=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var X=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var se=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ne(t))!re.call(n,o)&&o!==e&&ct(n,o,{get:()=>t[o],enumerable:!(i=ie(t,o))||i.enumerable});return n};var d=(n,t,e)=>(e=n!=null?ee(oe(n)):{},se(t||!n||!n.__esModule?ct(e,"default",{value:n,enumerable:!0}):e,n));var A=X((ce,mt)=>{mt.exports=ftGlobals.wcUtils});var G=X((me,dt)=>{dt.exports=ftGlobals.lit});var Y=X((de,xt)=>{xt.exports=ftGlobals.litDecorators});var te=d(A());var yt=d(G()),Q=d(Y()),Yt=d(A());var rt=globalThis,ut=n=>n,Z=rt.trustedTypes,$t=Z?Z.createPolicy("lit-html",{createHTML:n=>n}):void 0,Tt="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,Ht="?"+v,ae=`<${Ht}>`,H=document,K=()=>H.createComment(""),U=n=>n===null||typeof n!="object"&&typeof n!="function",st=Array.isArray,pe=n=>st(n)||typeof n?.[Symbol.iterator]=="function",k=`[
|
|
2
|
+
\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bt=/-->/g,_t=/>/g,S=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),vt=/'/g,At=/"/g,Ft=/^(?:script|style|textarea|title)$/i,at=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),zt=at(1),wt=at(2),Ct=at(3),j=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),St=new WeakMap,T=H.createTreeWalker(H,129);function Wt(n,t){if(!st(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return $t!==void 0?$t.createHTML(t):t}var le=(n,t)=>{let e=n.length-1,i=[],o,s=t===2?"<svg>":t===3?"<math>":"",a=P;for(let y=0;y<e;y++){let l=n[y],h,g,f=-1,x=0;for(;x<l.length&&(a.lastIndex=x,g=a.exec(l),g!==null);)x=a.lastIndex,a===P?g[1]==="!--"?a=bt:g[1]!==void 0?a=_t:g[2]!==void 0?(Ft.test(g[2])&&(o=RegExp("</"+g[2],"g")),a=S):g[3]!==void 0&&(a=S):a===S?g[0]===">"?(a=o??P,f=-1):g[1]===void 0?f=-2:(f=a.lastIndex-g[2].length,h=g[1],a=g[3]===void 0?S:g[3]==='"'?At:vt):a===At||a===vt?a=S:a===bt||a===_t?a=P:(a=S,o=void 0);let _=a===S&&n[y+1].startsWith("/>")?" ":"";s+=a===P?l+ae:f>=0?(i.push(h),l.slice(0,f)+Tt+l.slice(f)+v+_):l+v+(f===-2?y:_)}return[Wt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},R=class n{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,a=0,y=t.length-1,l=this.parts,[h,g]=le(t,e);if(this.el=n.createElement(h,i),T.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=T.nextNode())!==null&&l.length<y;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(Tt)){let x=g[a++],_=o.getAttribute(f).split(v),L=/([.?@])?(.*)/.exec(x);l.push({type:1,index:s,name:L[2],strings:_,ctor:L[1]==="."?et:L[1]==="?"?it:L[1]==="@"?nt:z}),o.removeAttribute(f)}else f.startsWith(v)&&(l.push({type:6,index:s}),o.removeAttribute(f));if(Ft.test(o.tagName)){let f=o.textContent.split(v),x=f.length-1;if(x>0){o.textContent=Z?Z.emptyScript:"";for(let _=0;_<x;_++)o.append(f[_],K()),T.nextNode(),l.push({type:2,index:++s});o.append(f[x],K())}}}else if(o.nodeType===8)if(o.data===Ht)l.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(v,f+1))!==-1;)l.push({type:7,index:s}),f+=v.length-1}s++}}static createElement(t,e){let i=H.createElement("template");return i.innerHTML=t,i}};function F(n,t,e=n,i){if(t===j)return t;let o=i!==void 0?e._$Co?.[i]:e._$Cl,s=U(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,i)),i!==void 0?(e._$Co??=[])[i]=o:e._$Cl=o),o!==void 0&&(t=F(n,o._$AS(n,t.values),o,i)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??H).importNode(e,!0);T.currentNode=o;let s=T.nextNode(),a=0,y=0,l=i[0];for(;l!==void 0;){if(a===l.index){let h;l.type===2?h=new q(s,s.nextSibling,this,t):l.type===1?h=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(h=new ot(s,this,t)),this._$AV.push(h),l=i[++y]}a!==l?.index&&(s=T.nextNode(),a++)}return T.currentNode=H,o}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},q=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),U(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==j&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&U(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=R.createElement(Wt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new tt(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=St.get(t.strings);return e===void 0&&St.set(t.strings,e=new R(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,o=0;for(let s of t)o===e.length?e.push(i=new n(this.O(K()),this.O(K()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let i=ut(t).nextSibling;ut(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},z=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,o){let s=this.strings,a=!1;if(s===void 0)t=F(this,t,e,0),a=!U(t)||t!==this._$AH&&t!==j,a&&(this._$AH=t);else{let y=t,l,h;for(t=s[0],l=0;l<s.length-1;l++)h=F(this,y[i+l],e,l),h===j&&(h=this._$AH[l]),a||=!U(h)||h!==this._$AH[l],h===c?t=c:t!==c&&(t+=(h??"")+s[l+1]),this._$AH[l]=h}a&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},it=class extends z{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},nt=class extends z{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){if((t=F(this,t,e,0)??c)===j)return;let i=this._$AH,o=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==c&&(i===c||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ot=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}};var he=rt.litHtmlPolyfillSupport;he?.(R,q),(rt.litHtmlVersions??=[]).push("3.3.3");var Vt=Symbol.for(""),fe=n=>{if(n?.r===Vt)return n?._$litStatic$},pt=n=>({_$litStatic$:n,r:Vt});var Nt=new Map,lt=n=>(t,...e)=>{let i=e.length,o,s,a=[],y=[],l,h=0,g=!1;for(;h<i;){for(l=t[h];h<i&&(s=e[h],(o=fe(s))!==void 0);)l+=o+t[++h],g=!0;h!==i&&y.push(s),a.push(l),h++}if(h===i&&a.push(t[i]),g){let f=a.join("$$lit$$");(t=Nt.get(f))===void 0&&(a.raw=a,Nt.set(f,t=a)),e=y}return n(t,...e)},ht=lt(zt),$e=lt(wt),be=lt(Ct);var ft=d(Y()),Kt=d(A());var J;(function(n){n.title="title",n.title_dense="title-dense",n.subtitle1="subtitle1",n.subtitle2="subtitle2",n.body1="body1",n.body2="body2",n.caption="caption",n.breadcrumb="breadcrumb",n.overline="overline",n.button="button"})(J||(J={}));var m=d(G()),r=d(A()),Bt=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.titleFont),u=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.contentFont),p={fontFamily:u,fontSize:r.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},w={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Bt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit")},C={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Bt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit")},W={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit")},N={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit")},V={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit")},B={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit")},M={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit")},E={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit")},O={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase")},D={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-button-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase")},Mt=m.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${w.fontFamily};
|
|
6
6
|
font-size: ${w.fontSize};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
line-height: ${w.lineHeight};
|
|
10
10
|
text-transform: ${w.textTransform};
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,Et=m.css`
|
|
13
13
|
.ft-typography--title-dense {
|
|
14
14
|
font-family: ${C.fontFamily};
|
|
15
15
|
font-size: ${C.fontSize};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
line-height: ${C.lineHeight};
|
|
19
19
|
text-transform: ${C.textTransform};
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,Ot=m.css`
|
|
22
22
|
.ft-typography--subtitle1 {
|
|
23
23
|
font-family: ${W.fontFamily};
|
|
24
24
|
font-size: ${W.fontSize};
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
line-height: ${W.lineHeight};
|
|
28
28
|
text-transform: ${W.textTransform};
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,Dt=m.css`
|
|
31
31
|
.ft-typography--subtitle2 {
|
|
32
32
|
font-family: ${N.fontFamily};
|
|
33
33
|
font-size: ${N.fontSize};
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
line-height: ${B.lineHeight};
|
|
56
56
|
text-transform: ${B.textTransform};
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,Ut=m.css`
|
|
59
59
|
.ft-typography--caption {
|
|
60
60
|
font-family: ${M.fontFamily};
|
|
61
61
|
font-size: ${M.fontSize};
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
line-height: ${M.lineHeight};
|
|
65
65
|
text-transform: ${M.textTransform};
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,jt=m.css`
|
|
68
68
|
.ft-typography--breadcrumb {
|
|
69
69
|
font-family: ${E.fontFamily};
|
|
70
70
|
font-size: ${E.fontSize};
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
line-height: ${E.lineHeight};
|
|
74
74
|
text-transform: ${E.textTransform};
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,Rt=m.css`
|
|
77
77
|
.ft-typography--overline {
|
|
78
78
|
font-family: ${O.fontFamily};
|
|
79
79
|
font-size: ${O.fontSize};
|
|
@@ -82,20 +82,20 @@
|
|
|
82
82
|
line-height: ${O.lineHeight};
|
|
83
83
|
text-transform: ${O.textTransform};
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
85
|
+
`,Lt=m.css`
|
|
86
86
|
.ft-typography--button {
|
|
87
|
-
font-family: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
92
|
-
text-transform: ${
|
|
87
|
+
font-family: ${D.fontFamily};
|
|
88
|
+
font-size: ${D.fontSize};
|
|
89
|
+
font-weight: ${D.fontWeight};
|
|
90
|
+
letter-spacing: ${D.letterSpacing};
|
|
91
|
+
line-height: ${D.lineHeight};
|
|
92
|
+
text-transform: ${D.textTransform};
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,Gt=m.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
98
|
-
`;var Zt=function(n,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var y=n.length-1;y>=0;y--)(a=n[y])&&(s=(o<3?a(s):o>3?a(t,e,s):a(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},$=class extends
|
|
98
|
+
`;var Zt=function(n,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var y=n.length-1;y>=0;y--)(a=n[y])&&(s=(o<3?a(s):o>3?a(t,e,s):a(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},$=class extends Kt.FtLitElement{constructor(){super(...arguments),this.variant=J.body1}render(){return this.element?ht`
|
|
99
99
|
<${pt(this.element)}
|
|
100
100
|
part="text"
|
|
101
101
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
</${pt(this.element)}>
|
|
104
104
|
`:ht`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};$.styles=[
|
|
106
|
+
`}};$.styles=[Mt,Et,Ot,Dt,It,Pt,Ut,jt,Rt,Lt,Gt];Zt([(0,ft.property)()],$.prototype,"element",void 0);Zt([(0,ft.property)()],$.prototype,"variant",void 0);var Jt=d(A());var qt={"ft-typography":$};(0,Jt.customElements)(qt);var Qt=d(G()),I=d(A()),ye={textColor:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleColor:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system")},Xt=Qt.css`
|
|
107
107
|
.ft-trend {
|
|
108
108
|
text-align: center;
|
|
109
|
-
color: ${
|
|
109
|
+
color: ${ye.textColor};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.ft-trend > div {
|
|
113
113
|
padding-top: 5px;
|
|
114
114
|
}
|
|
115
|
-
`;var gt=function(n,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var y=n.length-1;y>=0;y--)(a=n[y])&&(s=(o<3?a(s):o>3?a(t,e,s):a(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},b=class extends
|
|
115
|
+
`;var gt=function(n,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var y=n.length-1;y>=0;y--)(a=n[y])&&(s=(o<3?a(s):o>3?a(t,e,s):a(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},b=class extends Yt.FtLitElement{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getTrendIcon(){return this.currentValue==this.previousValue?"\u2192":this.currentValue>this.previousValue?"\u2197":"\u2198"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,e=Math.round(100*t);return`${e>=0?"+":"-"}${Math.abs(e)}%`}render(){return this.previousValue==0?yt.html`
|
|
116
116
|
<div class="ft-trend">
|
|
117
117
|
<ft-typography variant="subtitle2">
|
|
118
118
|
${this.label}
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
</ft-typography>
|
|
139
139
|
</div>
|
|
140
140
|
</div>
|
|
141
|
-
`}};b.elementDefinitions={"ft-typography":$};b.styles=
|
|
141
|
+
`}};b.elementDefinitions={"ft-typography":$};b.styles=Xt;gt([(0,Q.property)({type:String})],b.prototype,"label",void 0);gt([(0,Q.property)({type:Number})],b.prototype,"currentValue",void 0);gt([(0,Q.property)({type:Number})],b.prototype,"previousValue",void 0);var kt={"ft-trend":b};(0,te.customElements)(kt);})();
|
|
142
142
|
/*! Bundled license information:
|
|
143
143
|
|
|
144
144
|
lit-html/lit-html.js:
|