@fluid-topics/ft-toggle 2.1.12 → 2.1.15
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-toggle.light.js +25 -25
- package/build/ft-toggle.min.js +32 -32
- package/package.json +4 -4
package/build/ft-toggle.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var re=Object.create;var ct=Object.defineProperty;var se=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var G=(i,t)=>()=>{try{return t||i((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var he=(i,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ae(t))!pe.call(i,n)&&n!==e&&ct(i,n,{get:()=>t[n],enumerable:!(o=se(t,n))||o.enumerable});return i};var d=(i,t,e)=>(e=i!=null?re(le(i)):{},he(t||!i||!i.__esModule?ct(e,"default",{value:i,enumerable:!0}):e,i));var v=G((xe,dt)=>{dt.exports=ftGlobals.wcUtils});var Z=G(($e,mt)=>{mt.exports=ftGlobals.lit});var Y=G((ue,xt)=>{xt.exports=ftGlobals.litDecorators});var ut=G((be,$t)=>{$t.exports=ftGlobals.litClassMap});var ne=d(v());var ee=d(Z()),yt=d(Y()),X=d(v()),oe=d(ut());var x=d(v()),bt=d(Z()),K={textColor:x.FtCssVariableFactory.extend("--ft-toggle-text-color","",x.designSystemVariables.colorOnSurfaceHigh),onColor:x.FtCssVariableFactory.extend("--ft-toggle-on-color","",x.designSystemVariables.colorPrimary),offColor:x.FtCssVariableFactory.create("--ft-toggle-off-color","","COLOR","#e0e0e0"),handleColor:x.FtCssVariableFactory.extend("--ft-toggle-handle-color","",x.designSystemVariables.colorOnPrimary)},_t=bt.css`
|
|
2
2
|
.ft-toggle {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
position: relative;
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
.ft-toggle--checked .ft-toggle-handle {
|
|
51
51
|
margin-left: 22px;
|
|
52
52
|
}
|
|
53
|
-
`;var st=globalThis,q=st.trustedTypes,
|
|
54
|
-
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
55
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tt=/'/g,Ht=/"/g,wt=/^(?:script|style|textarea|title)$/i,lt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),Wt=lt(1),Nt=lt(2),Bt=lt(3),I=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Ft=new WeakMap,H=F.createTreeWalker(F,129);function Et(i,t){if(!at(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return At!==void 0?At.createHTML(t):t}var ge=(i,t)=>{let e=i.length-1,o=[],n,s=t===2?"<svg>":t===3?"<math>":"",a=U;for(let g=0;g<e;g++){let p=i[g],h,y,f=-1,$=0;for(;$<p.length&&(a.lastIndex=$,y=a.exec(p),y!==null);)$=a.lastIndex,a===U?y[1]==="!--"?a=St:y[1]!==void 0?a=vt:y[2]!==void 0?(wt.test(y[2])&&(n=RegExp("</"+y[2],"g")),a=T):y[3]!==void 0&&(a=T):a===T?y[0]===">"?(a=n??U,f=-1):y[1]===void 0?f=-2:(f=a.lastIndex-y[2].length,h=y[1],a=y[3]===void 0?T:y[3]==='"'?Ht:Tt):a===Ht||a===Tt?a=T:a===St||a===vt?a=U:(a=T,n=void 0);let _=a===T&&i[g+1].startsWith("/>")?" ":"";s+=a===U?p+he:f>=0?(o.push(h),p.slice(0,f)+zt+p.slice(f)+A+_):p+A+(f===-2?g:_)}return[Et(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},D=class i{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let s=0,a=0,g=t.length-1,p=this.parts,[h,y]=ge(t,e);if(this.el=i.createElement(h,o),H.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=H.nextNode())!==null&&p.length<g;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(zt)){let $=y[a++],_=n.getAttribute(f).split(A),L=/([.?@])?(.*)/.exec($);p.push({type:1,index:s,name:L[2],strings:_,ctor:L[1]==="."?ot:L[1]==="?"?it:L[1]==="@"?nt:C}),n.removeAttribute(f)}else f.startsWith(A)&&(p.push({type:6,index:s}),n.removeAttribute(f));if(wt.test(n.tagName)){let f=n.textContent.split(A),$=f.length-1;if($>0){n.textContent=q?q.emptyScript:"";for(let _=0;_<$;_++)n.append(f[_],J()),H.nextNode(),p.push({type:2,index:++s});n.append(f[$],J())}}}else if(n.nodeType===8)if(n.data===Ct)p.push({type:2,index:s});else{let f=-1;for(;(f=n.data.indexOf(A,f+1))!==-1;)p.push({type:7,index:s}),f+=A.length-1}s++}}static createElement(t,e){let o=F.createElement("template");return o.innerHTML=t,o}};function z(i,t,e=i,o){if(t===I)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,s=j(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=z(i,n._$AS(i,t.values),n,o)),t}var et=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:o}=this._$AD,n=(t?.creationScope??F).importNode(e,!0);H.currentNode=n;let s=H.nextNode(),a=0,g=0,p=o[0];for(;p!==void 0;){if(a===p.index){let h;p.type===2?h=new Q(s,s.nextSibling,this,t):p.type===1?h=new p.ctor(s,p.name,p.strings,this,t):p.type===6&&(h=new rt(s,this,t)),this._$AV.push(h),p=o[++g]}a!==p?.index&&(s=H.nextNode(),a++)}return H.currentNode=F,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Q=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.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=z(this,t,e),j(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==I&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fe(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&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=D.createElement(Et(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new et(n,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=Ft.get(t.strings);return e===void 0&&Ft.set(t.strings,e=new D(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let s of t)n===e.length?e.push(o=new i(this.O(J()),this.O(J()),this,this.options)):o=e[n],o._$AI(s),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=c}_$AI(t,e=this,o,n){let s=this.strings,a=!1;if(s===void 0)t=z(this,t,e,0),a=!j(t)||t!==this._$AH&&t!==I,a&&(this._$AH=t);else{let g=t,p,h;for(t=s[0],p=0;p<s.length-1;p++)h=z(this,g[o+p],e,p),h===I&&(h=this._$AH[p]),a||=!j(h)||h!==this._$AH[p],h===c?t=c:t!==c&&(t+=(h??"")+s[p+1]),this._$AH[p]=h}a&&!n&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},it=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},nt=class extends C{constructor(t,e,o,n,s){super(t,e,o,n,s),this.type=5}_$AI(t,e=this){if((t=z(this,t,e,0)??c)===I)return;let o=this._$AH,n=t===c&&o!==c||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==c&&(o===c||n);n&&this.element.removeEventListener(this.name,this,o),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)}},rt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}};var ye=st.litHtmlPolyfillSupport;ye?.(D,Q),(st.litHtmlVersions??=[]).push("3.3.0");var Mt=Symbol.for(""),ce=i=>{if(i?.r===Mt)return i?._$litStatic$},pt=i=>({_$litStatic$:i,r:Mt});var Ot=new Map,ht=i=>(t,...e)=>{let o=e.length,n,s,a=[],g=[],p,h=0,y=!1;for(;h<o;){for(p=t[h];h<o&&(s=e[h],(n=ce(s))!==void 0);)p+=n+t[++h],y=!0;h!==o&&g.push(s),a.push(p),h++}if(h===o&&a.push(t[o]),y){let f=a.join("$$lit$$");(t=Ot.get(f))===void 0&&(a.raw=a,Ot.set(f,t=a)),e=g}return i(t,...e)},ft=ht(Wt),Se=ht(Nt),ve=ht(Bt);var gt=d(Y()),Jt=d(v());var w;(function(i){i.title="title",i.title_dense="title-dense",i.subtitle1="subtitle1",i.subtitle2="subtitle2",i.body1="body1",i.body2="body2",i.caption="caption",i.breadcrumb="breadcrumb",i.overline="overline",i.button="button"})(w||(w={}));var m=d(G()),r=d(v()),kt=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.titleFont),u=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.contentFont),l={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","",kt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-font-size","",l.fontSize,"20px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",l.letterSpacing,"0.15px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-line-height","",l.lineHeight,"1.2"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",l.textTransform,"inherit")},N={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",kt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",l.letterSpacing,"0.105px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",l.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",l.textTransform,"inherit")},B={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",l.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",l.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",l.letterSpacing,"0.144px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",l.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",l.textTransform,"inherit")},E={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",l.letterSpacing,"0.098px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",l.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",l.textTransform,"inherit")},O={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",l.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",l.letterSpacing,"0.496px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",l.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",l.textTransform,"inherit")},M={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",l.letterSpacing,"0.252px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",l.lineHeight,"1.4"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",l.textTransform,"inherit")},k={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",l.fontSize,"12px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",l.letterSpacing,"0.396px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",l.lineHeight,"1.33"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",l.textTransform,"inherit")},P={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",l.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",l.letterSpacing,"0.33px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",l.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",l.textTransform,"inherit")},V={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",l.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",l.letterSpacing,"1.5px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",l.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",l.textTransform,"uppercase")},R={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-button-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-button-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",l.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",l.letterSpacing,"1.246px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-button-line-height","",l.lineHeight,"1.15"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",l.textTransform,"uppercase")},Pt=m.css`
|
|
53
|
+
`;var st=globalThis,At=i=>i,q=st.trustedTypes,St=q?q.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ct="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,wt="?"+A,fe=`<${wt}>`,F=document,J=()=>F.createComment(""),j=i=>i===null||typeof i!="object"&&typeof i!="function",at=Array.isArray,ge=i=>at(i)||typeof i?.[Symbol.iterator]=="function",tt=`[
|
|
54
|
+
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,Tt=/>/g,T=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^
|
|
55
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ht=/'/g,Ft=/"/g,Wt=/^(?:script|style|textarea|title)$/i,lt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),Nt=lt(1),Bt=lt(2),Et=lt(3),D=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),zt=new WeakMap,H=F.createTreeWalker(F,129);function Mt(i,t){if(!at(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return St!==void 0?St.createHTML(t):t}var ye=(i,t)=>{let e=i.length-1,o=[],n,s=t===2?"<svg>":t===3?"<math>":"",a=U;for(let g=0;g<e;g++){let p=i[g],h,y,f=-1,$=0;for(;$<p.length&&(a.lastIndex=$,y=a.exec(p),y!==null);)$=a.lastIndex,a===U?y[1]==="!--"?a=vt:y[1]!==void 0?a=Tt:y[2]!==void 0?(Wt.test(y[2])&&(n=RegExp("</"+y[2],"g")),a=T):y[3]!==void 0&&(a=T):a===T?y[0]===">"?(a=n??U,f=-1):y[1]===void 0?f=-2:(f=a.lastIndex-y[2].length,h=y[1],a=y[3]===void 0?T:y[3]==='"'?Ft:Ht):a===Ft||a===Ht?a=T:a===vt||a===Tt?a=U:(a=T,n=void 0);let _=a===T&&i[g+1].startsWith("/>")?" ":"";s+=a===U?p+fe:f>=0?(o.push(h),p.slice(0,f)+Ct+p.slice(f)+A+_):p+A+(f===-2?g:_)}return[Mt(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},I=class i{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let s=0,a=0,g=t.length-1,p=this.parts,[h,y]=ye(t,e);if(this.el=i.createElement(h,o),H.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=H.nextNode())!==null&&p.length<g;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Ct)){let $=y[a++],_=n.getAttribute(f).split(A),L=/([.?@])?(.*)/.exec($);p.push({type:1,index:s,name:L[2],strings:_,ctor:L[1]==="."?ot:L[1]==="?"?it:L[1]==="@"?nt:C}),n.removeAttribute(f)}else f.startsWith(A)&&(p.push({type:6,index:s}),n.removeAttribute(f));if(Wt.test(n.tagName)){let f=n.textContent.split(A),$=f.length-1;if($>0){n.textContent=q?q.emptyScript:"";for(let _=0;_<$;_++)n.append(f[_],J()),H.nextNode(),p.push({type:2,index:++s});n.append(f[$],J())}}}else if(n.nodeType===8)if(n.data===wt)p.push({type:2,index:s});else{let f=-1;for(;(f=n.data.indexOf(A,f+1))!==-1;)p.push({type:7,index:s}),f+=A.length-1}s++}}static createElement(t,e){let o=F.createElement("template");return o.innerHTML=t,o}};function z(i,t,e=i,o){if(t===D)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,s=j(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=z(i,n._$AS(i,t.values),n,o)),t}var et=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:o}=this._$AD,n=(t?.creationScope??F).importNode(e,!0);H.currentNode=n;let s=H.nextNode(),a=0,g=0,p=o[0];for(;p!==void 0;){if(a===p.index){let h;p.type===2?h=new Q(s,s.nextSibling,this,t):p.type===1?h=new p.ctor(s,p.name,p.strings,this,t):p.type===6&&(h=new rt(s,this,t)),this._$AV.push(h),p=o[++g]}a!==p?.index&&(s=H.nextNode(),a++)}return H.currentNode=F,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Q=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.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=z(this,t,e),j(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==D&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ge(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&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=I.createElement(Mt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new et(n,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=zt.get(t.strings);return e===void 0&&zt.set(t.strings,e=new I(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let s of t)n===e.length?e.push(o=new i(this.O(J()),this.O(J()),this,this.options)):o=e[n],o._$AI(s),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=At(t).nextSibling;At(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=c}_$AI(t,e=this,o,n){let s=this.strings,a=!1;if(s===void 0)t=z(this,t,e,0),a=!j(t)||t!==this._$AH&&t!==D,a&&(this._$AH=t);else{let g=t,p,h;for(t=s[0],p=0;p<s.length-1;p++)h=z(this,g[o+p],e,p),h===D&&(h=this._$AH[p]),a||=!j(h)||h!==this._$AH[p],h===c?t=c:t!==c&&(t+=(h??"")+s[p+1]),this._$AH[p]=h}a&&!n&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},it=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},nt=class extends C{constructor(t,e,o,n,s){super(t,e,o,n,s),this.type=5}_$AI(t,e=this){if((t=z(this,t,e,0)??c)===D)return;let o=this._$AH,n=t===c&&o!==c||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==c&&(o===c||n);n&&this.element.removeEventListener(this.name,this,o),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)}},rt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}};var ce=st.litHtmlPolyfillSupport;ce?.(I,Q),(st.litHtmlVersions??=[]).push("3.3.3");var kt=Symbol.for(""),de=i=>{if(i?.r===kt)return i?._$litStatic$},pt=i=>({_$litStatic$:i,r:kt});var Ot=new Map,ht=i=>(t,...e)=>{let o=e.length,n,s,a=[],g=[],p,h=0,y=!1;for(;h<o;){for(p=t[h];h<o&&(s=e[h],(n=de(s))!==void 0);)p+=n+t[++h],y=!0;h!==o&&g.push(s),a.push(p),h++}if(h===o&&a.push(t[o]),y){let f=a.join("$$lit$$");(t=Ot.get(f))===void 0&&(a.raw=a,Ot.set(f,t=a)),e=g}return i(t,...e)},ft=ht(Nt),ve=ht(Bt),Te=ht(Et);var gt=d(Y()),Qt=d(v());var w;(function(i){i.title="title",i.title_dense="title-dense",i.subtitle1="subtitle1",i.subtitle2="subtitle2",i.body1="body1",i.body2="body2",i.caption="caption",i.breadcrumb="breadcrumb",i.overline="overline",i.button="button"})(w||(w={}));var m=d(Z()),r=d(v()),Pt=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.titleFont),u=r.FtCssVariableFactory.extend("--ft-typography-font-family","",r.designSystemVariables.contentFont),l={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","",Pt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-font-size","",l.fontSize,"20px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",l.letterSpacing,"0.15px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-line-height","",l.lineHeight,"1.2"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",l.textTransform,"inherit")},N={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Pt),fontSize:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",l.letterSpacing,"0.105px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",l.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",l.textTransform,"inherit")},B={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",l.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",l.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",l.letterSpacing,"0.144px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",l.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",l.textTransform,"inherit")},E={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",l.letterSpacing,"0.098px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",l.lineHeight,"1.7"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",l.textTransform,"inherit")},M={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",l.fontSize,"16px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",l.letterSpacing,"0.496px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",l.lineHeight,"1.5"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",l.textTransform,"inherit")},O={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",l.letterSpacing,"0.252px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",l.lineHeight,"1.4"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",l.textTransform,"inherit")},k={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",l.fontSize,"12px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",l.letterSpacing,"0.396px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",l.lineHeight,"1.33"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",l.textTransform,"inherit")},P={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",l.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",l.letterSpacing,"0.33px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",l.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",l.textTransform,"inherit")},V={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",l.fontSize,"10px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",l.fontWeight,"normal"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",l.letterSpacing,"1.5px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",l.lineHeight,"1.6"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",l.textTransform,"uppercase")},R={fontFamily:r.FtCssVariableFactory.extend("--ft-typography-button-font-family","",u),fontSize:r.FtCssVariableFactory.extend("--ft-typography-button-font-size","",l.fontSize,"14px"),fontWeight:r.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",l.fontWeight,"600"),letterSpacing:r.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",l.letterSpacing,"1.246px"),lineHeight:r.FtCssVariableFactory.extend("--ft-typography-button-line-height","",l.lineHeight,"1.15"),textTransform:r.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",l.textTransform,"uppercase")},Vt=m.css`
|
|
56
56
|
.ft-typography--title {
|
|
57
57
|
font-family: ${W.fontFamily};
|
|
58
58
|
font-size: ${W.fontSize};
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
line-height: ${W.lineHeight};
|
|
62
62
|
text-transform: ${W.textTransform};
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`,Rt=m.css`
|
|
65
65
|
.ft-typography--title-dense {
|
|
66
66
|
font-family: ${N.fontFamily};
|
|
67
67
|
font-size: ${N.fontSize};
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
line-height: ${N.lineHeight};
|
|
71
71
|
text-transform: ${N.textTransform};
|
|
72
72
|
}
|
|
73
|
-
`,
|
|
73
|
+
`,Ut=m.css`
|
|
74
74
|
.ft-typography--subtitle1 {
|
|
75
75
|
font-family: ${B.fontFamily};
|
|
76
76
|
font-size: ${B.fontSize};
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
line-height: ${B.lineHeight};
|
|
80
80
|
text-transform: ${B.textTransform};
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`,jt=m.css`
|
|
83
83
|
.ft-typography--subtitle2 {
|
|
84
84
|
font-family: ${E.fontFamily};
|
|
85
85
|
font-size: ${E.fontSize};
|
|
@@ -89,17 +89,8 @@
|
|
|
89
89
|
text-transform: ${E.textTransform};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
`,
|
|
92
|
+
`,Dt=m.css`
|
|
93
93
|
.ft-typography--body1 {
|
|
94
|
-
font-family: ${O.fontFamily};
|
|
95
|
-
font-size: ${O.fontSize};
|
|
96
|
-
font-weight: ${O.fontWeight};
|
|
97
|
-
letter-spacing: ${O.letterSpacing};
|
|
98
|
-
line-height: ${O.lineHeight};
|
|
99
|
-
text-transform: ${O.textTransform};
|
|
100
|
-
}
|
|
101
|
-
`,It=m.css`
|
|
102
|
-
.ft-typography--body2 {
|
|
103
94
|
font-family: ${M.fontFamily};
|
|
104
95
|
font-size: ${M.fontSize};
|
|
105
96
|
font-weight: ${M.fontWeight};
|
|
@@ -107,7 +98,16 @@
|
|
|
107
98
|
line-height: ${M.lineHeight};
|
|
108
99
|
text-transform: ${M.textTransform};
|
|
109
100
|
}
|
|
110
|
-
`,
|
|
101
|
+
`,It=m.css`
|
|
102
|
+
.ft-typography--body2 {
|
|
103
|
+
font-family: ${O.fontFamily};
|
|
104
|
+
font-size: ${O.fontSize};
|
|
105
|
+
font-weight: ${O.fontWeight};
|
|
106
|
+
letter-spacing: ${O.letterSpacing};
|
|
107
|
+
line-height: ${O.lineHeight};
|
|
108
|
+
text-transform: ${O.textTransform};
|
|
109
|
+
}
|
|
110
|
+
`,Lt=m.css`
|
|
111
111
|
.ft-typography--caption {
|
|
112
112
|
font-family: ${k.fontFamily};
|
|
113
113
|
font-size: ${k.fontSize};
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
line-height: ${k.lineHeight};
|
|
117
117
|
text-transform: ${k.textTransform};
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,Gt=m.css`
|
|
120
120
|
.ft-typography--breadcrumb {
|
|
121
121
|
font-family: ${P.fontFamily};
|
|
122
122
|
font-size: ${P.fontSize};
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
line-height: ${V.lineHeight};
|
|
135
135
|
text-transform: ${V.textTransform};
|
|
136
136
|
}
|
|
137
|
-
`,
|
|
137
|
+
`,Kt=m.css`
|
|
138
138
|
.ft-typography--button {
|
|
139
139
|
font-family: ${R.fontFamily};
|
|
140
140
|
font-size: ${R.fontSize};
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
line-height: ${R.lineHeight};
|
|
144
144
|
text-transform: ${R.textTransform};
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`,qt=m.css`
|
|
147
147
|
.ft-typography {
|
|
148
148
|
vertical-align: inherit;
|
|
149
149
|
}
|
|
150
|
-
`;var
|
|
150
|
+
`;var Jt=function(i,t,e,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,e,o);else for(var g=i.length-1;g>=0;g--)(a=i[g])&&(s=(n<3?a(s):n>3?a(t,e,s):a(t,e))||s);return n>3&&s&&Object.defineProperty(t,e,s),s},b=class extends Qt.FtLitElement{constructor(){super(...arguments),this.variant=w.body1}render(){return this.element?ft`
|
|
151
151
|
<${pt(this.element)}
|
|
152
152
|
part="text"
|
|
153
153
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
</${pt(this.element)}>
|
|
156
156
|
`:ft`
|
|
157
157
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
158
|
-
`}};b.styles=[
|
|
159
|
-
<label class="${(0,
|
|
158
|
+
`}};b.styles=[Vt,Rt,Ut,jt,Dt,It,Lt,Gt,Zt,Kt,qt];Jt([(0,gt.property)()],b.prototype,"element",void 0);Jt([(0,gt.property)()],b.prototype,"variant",void 0);var Yt=d(v());var Xt={"ft-typography":b};(0,Yt.customElements)(Xt);var te=function(i,t,e,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,e,o);else for(var g=i.length-1;g>=0;g--)(a=i[g])&&(s=(n<3?a(s):n>3?a(t,e,s):a(t,e))||s);return n>3&&s&&Object.defineProperty(t,e,s),s},S=class extends X.FtLitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}render(){let t={"ft-toggle":!0,"ft-toggle--checked":this.checked,"ft-toggle--disabled":this.disabled};return ee.html`
|
|
159
|
+
<label class="${(0,oe.classMap)(t)}" for="toggle-input">
|
|
160
160
|
<input type="checkbox"
|
|
161
161
|
role="switch"
|
|
162
162
|
class="ft-toggle-input sr-only"
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
<slot></slot>
|
|
172
172
|
</ft-typography>
|
|
173
173
|
</label>
|
|
174
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}};S.elementDefinitions={"ft-typography":b};S.styles=[_t,X.screenReaderStyles];
|
|
174
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}};S.elementDefinitions={"ft-typography":b};S.styles=[_t,X.screenReaderStyles];te([(0,yt.property)({type:Boolean,reflect:!0})],S.prototype,"checked",void 0);te([(0,yt.property)({type:Boolean})],S.prototype,"disabled",void 0);var ie={"ft-toggle":S};(0,ne.customElements)(ie);})();
|
|
175
175
|
/*! Bundled license information:
|
|
176
176
|
|
|
177
177
|
lit-html/lit-html.js:
|