@fluid-topics/ft-checkbox 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-checkbox.light.js +35 -35
- package/build/ft-checkbox.min.js +57 -57
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var _e=Object.create;var _t=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty;var ot=(r,t)=>()=>{try{return t||r((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var Te=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ae(t))!Fe.call(r,i)&&i!==e&&_t(r,i,{get:()=>t[i],enumerable:!(o=Se(t,i))||o.enumerable});return r};var g=(r,t,e)=>(e=r!=null?_e(Ce(r)):{},Te(t||!r||!r.__esModule?_t(e,"default",{value:r,enumerable:!0}):e,r));var A=ot((Ne,St)=>{St.exports=ftGlobals.wcUtils});var O=ot((Oe,At)=>{At.exports=ftGlobals.lit});var it=ot((Re,Ct)=>{Ct.exports=ftGlobals.litDecorators});var at=ot((Le,Ft)=>{Ft.exports=ftGlobals.litClassMap});var ke=g(A());var pt=g(O()),S=g(it()),be=g(A()),$e=g(at());var Nt=g(O()),x=g(it()),Ot=g(at()),q=g(A());var Bt=g(O()),y=g(A()),Tt=y.FtCssVariableFactory.extend("--ft-ripple-color","",y.designSystemVariables.colorContent),F={color:Tt,backgroundColor:y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Tt),opacityContentOnSurfacePressed:y.FtCssVariableFactory.external(y.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:y.FtCssVariableFactory.external(y.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:y.FtCssVariableFactory.external(y.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:y.FtCssVariableFactory.external(y.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:y.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ht=y.FtCssVariableFactory.extend("--ft-ripple-color","",y.designSystemVariables.colorPrimary),wt={color:Ht,backgroundColor:y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ht)},Et=y.FtCssVariableFactory.extend("--ft-ripple-color","",y.designSystemVariables.colorSecondary),zt={color:Et,backgroundColor:y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Et)},Wt=Bt.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -110,20 +110,20 @@
|
|
|
110
110
|
opacity: ${F.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`;var v=function(
|
|
113
|
+
`;var v=function(r,t,e,o){var i=arguments.length,s=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,o);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(i<3?n(s):i>3?n(t,e,s):n(t,e))||s);return i>3&&s&&Object.defineProperty(t,e,s),s},d=class extends q.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new q.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new q.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:s}=this.getCoordinates(t),n=(o=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-n.x:n.width/2),this.originY=Math.round(s!=null?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Nt.html`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
117
117
|
top: ${this.originY}px;
|
|
118
118
|
}
|
|
119
119
|
</style>
|
|
120
|
-
<div class="${(0,
|
|
120
|
+
<div class="${(0,Ot.classMap)(t)}">
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((e=this.target)!==null&&e!==void 0?e:o)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...h)=>l=>{h.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),s=h=>{["Enter"," "].includes(h.key)&&e("keyup")(h)},
|
|
125
|
-
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Mt=/'/g,It=/"/g,Xt=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),Yt=mt(1),Gt=mt(2),qt=mt(3),Q=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Ut=new WeakMap,W=O.createTreeWalker(O,129);function Kt(n,t){if(!gt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dt!==void 0?Dt.createHTML(t):t}var we=(n,t)=>{let e=n.length-1,o=[],i,s=t===2?"<svg>":t===3?"<math>":"",r=K;for(let h=0;h<e;h++){let l=n[h],c,u,f=-1,C=0;for(;C<l.length&&(r.lastIndex=C,u=r.exec(l),u!==null);)C=r.lastIndex,r===K?u[1]==="!--"?r=Vt:u[1]!==void 0?r=Pt:u[2]!==void 0?(Xt.test(u[2])&&(i=RegExp("</"+u[2],"g")),r=B):u[3]!==void 0&&(r=B):r===B?u[0]===">"?(r=i??K,f=-1):u[1]===void 0?f=-2:(f=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?B:u[3]==='"'?It:Mt):r===It||r===Mt?r=B:r===Vt||r===Pt?r=K:(r=B,i=void 0);let E=r===B&&n[h+1].startsWith("/>")?" ":"";s+=r===K?l+Te:f>=0?(o.push(c),l.slice(0,f)+jt+l.slice(f)+z+E):l+z+(f===-2?h:E)}return[Kt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},tt=class n{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let s=0,r=0,h=t.length-1,l=this.parts,[c,u]=we(t,e);if(this.el=n.createElement(c,o),W.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=W.nextNode())!==null&&l.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(jt)){let C=u[r++],E=i.getAttribute(f).split(z),et=/([.?@])?(.*)/.exec(C);l.push({type:1,index:s,name:et[2],strings:E,ctor:et[1]==="."?ct:et[1]==="?"?ft:et[1]==="@"?dt:L}),i.removeAttribute(f)}else f.startsWith(z)&&(l.push({type:6,index:s}),i.removeAttribute(f));if(Xt.test(i.tagName)){let f=i.textContent.split(z),C=f.length-1;if(C>0){i.textContent=rt?rt.emptyScript:"";for(let E=0;E<C;E++)i.append(f[E],nt()),W.nextNode(),l.push({type:2,index:++s});i.append(f[C],nt())}}}else if(i.nodeType===8)if(i.data===Zt)l.push({type:2,index:s});else{let f=-1;for(;(f=i.data.indexOf(z,f+1))!==-1;)l.push({type:7,index:s}),f+=z.length-1}s++}}static createElement(t,e){let o=O.createElement("template");return o.innerHTML=t,o}};function N(n,t,e=n,o){if(t===Q)return t;let i=o!==void 0?e._$Co?.[o]:e._$Cl,s=J(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(n),i._$AT(n,e,o)),o!==void 0?(e._$Co??=[])[o]=i:e._$Cl=i),i!==void 0&&(t=N(n,i._$AS(n,t.values),i,o)),t}var ht=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,i=(t?.creationScope??O).importNode(e,!0);W.currentNode=i;let s=W.nextNode(),r=0,h=0,l=o[0];for(;l!==void 0;){if(r===l.index){let c;l.type===2?c=new st(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new yt(s,this,t)),this._$AV.push(c),l=o[++h]}r!==l?.index&&(s=W.nextNode(),r++)}return W.currentNode=O,i}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++}},st=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.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=N(this,t,e),J(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==Q&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):He(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!==m&&J(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,i=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=tt.createElement(Kt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{let s=new ht(i,this),r=s.u(this.options);s.p(e),this.T(r),this._$AH=s}}_$AC(t){let e=Ut.get(t.strings);return e===void 0&&Ut.set(t.strings,e=new tt(t)),e}k(t){gt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,i=0;for(let s of t)i===e.length?e.push(o=new n(this.O(nt()),this.O(nt()),this,this.options)):o=e[i],o._$AI(s),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$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))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,s){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=m}_$AI(t,e=this,o,i){let s=this.strings,r=!1;if(s===void 0)t=N(this,t,e,0),r=!J(t)||t!==this._$AH&&t!==Q,r&&(this._$AH=t);else{let h=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=N(this,h[o+l],e,l),c===Q&&(c=this._$AH[l]),r||=!J(c)||c!==this._$AH[l],c===m?t=m:t!==m&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}r&&!i&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},ft=class extends L{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},dt=class extends L{constructor(t,e,o,i,s){super(t,e,o,i,s),this.type=5}_$AI(t,e=this){if((t=N(this,t,e,0)??m)===Q)return;let o=this._$AH,i=t===m&&o!==m||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==m&&(o===m||i);i&&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)}},yt=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){N(this,t)}};var Ee=ut.litHtmlPolyfillSupport;Ee?.(tt,st),(ut.litHtmlVersions??=[]).push("3.3.0");var Qt=Symbol.for(""),ze=n=>{if(n?.r===Qt)return n?._$litStatic$},xt=n=>({_$litStatic$:n,r:Qt});var Jt=new Map,bt=n=>(t,...e)=>{let o=e.length,i,s,r=[],h=[],l,c=0,u=!1;for(;c<o;){for(l=t[c];c<o&&(s=e[c],(i=ze(s))!==void 0);)l+=i+t[++c],u=!0;c!==o&&h.push(s),r.push(l),c++}if(c===o&&r.push(t[o]),u){let f=r.join("$$lit$$");(t=Jt.get(f))===void 0&&(r.raw=r,Jt.set(f,t=r)),e=h}return n(t,...e)},$t=bt(Yt),Ke=bt(Gt),Je=bt(qt);var vt=g(it()),de=g(A());var D;(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"})(D||(D={}));var _=g(R()),p=g(A()),te=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),T=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),a={fontFamily:T,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},V={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",te),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",a.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",a.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",a.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",a.textTransform,"inherit")},P={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",te),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",a.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",a.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",a.textTransform,"inherit")},M={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",a.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",a.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",a.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",a.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",a.textTransform,"inherit")},I={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",a.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",a.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",a.textTransform,"inherit")},U={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",a.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",a.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",a.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",a.textTransform,"inherit")},j={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",a.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",a.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",a.textTransform,"inherit")},Z={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",a.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",a.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",a.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",a.textTransform,"inherit")},X={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",a.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",a.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",a.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",a.textTransform,"inherit")},Y={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",a.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",a.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",a.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",a.textTransform,"uppercase")},G={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",a.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",a.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",a.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",a.textTransform,"uppercase")},ee=_.css`
|
|
124
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((e=this.target)!==null&&e!==void 0?e:o)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...h)=>l=>{h.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),s=h=>{["Enter"," "].includes(h.key)&&e("keyup")(h)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",s,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",s,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,o=t,i,s;return e.x!=null?{x:i,y:s}=e:o.touches!=null&&(i=o.touches[0].clientX,s=o.touches[0].clientY),{x:i,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};d.elementDefinitions={};d.styles=Wt;v([(0,x.property)({type:Boolean})],d.prototype,"primary",void 0);v([(0,x.property)({type:Boolean})],d.prototype,"secondary",void 0);v([(0,x.property)({type:Boolean})],d.prototype,"unbounded",void 0);v([(0,x.property)({type:Boolean})],d.prototype,"activated",void 0);v([(0,x.property)({type:Boolean})],d.prototype,"selected",void 0);v([(0,x.property)({type:Boolean})],d.prototype,"disabled",void 0);v([(0,x.state)()],d.prototype,"hovered",void 0);v([(0,x.state)()],d.prototype,"focused",void 0);v([(0,x.state)()],d.prototype,"pressed",void 0);v([(0,x.state)()],d.prototype,"rippling",void 0);v([(0,x.state)()],d.prototype,"originX",void 0);v([(0,x.state)()],d.prototype,"originY",void 0);v([(0,x.query)(".ft-ripple")],d.prototype,"ripple",void 0);v([(0,x.query)(".ft-ripple--effect")],d.prototype,"rippleEffect",void 0);var Lt=g(A());var Rt={"ft-ripple":d};(0,Lt.customElements)(Rt);var ut=globalThis,Dt=r=>r,rt=ut.trustedTypes,Vt=rt?rt.createPolicy("lit-html",{createHTML:r=>r}):void 0,Xt="$lit$",z=`lit$${Math.random().toFixed(9).slice(2)}$`,Yt="?"+z,He=`<${Yt}>`,N=document,nt=()=>N.createComment(""),J=r=>r===null||typeof r!="object"&&typeof r!="function",gt=Array.isArray,we=r=>gt(r)||typeof r?.[Symbol.iterator]=="function",lt=`[
|
|
125
|
+
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,Pt=/>/g,B=RegExp(`>|${lt}(?:([^\\s"'>=/]+)(${lt}*=${lt}*(?:[^
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),It=/'/g,Ut=/"/g,Gt=/^(?:script|style|textarea|title)$/i,mt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zt=mt(1),qt=mt(2),Kt=mt(3),Q=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),jt=new WeakMap,W=N.createTreeWalker(N,129);function Jt(r,t){if(!gt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Ee=(r,t)=>{let e=r.length-1,o=[],i,s=t===2?"<svg>":t===3?"<math>":"",n=K;for(let h=0;h<e;h++){let l=r[h],c,u,f=-1,C=0;for(;C<l.length&&(n.lastIndex=C,u=n.exec(l),u!==null);)C=n.lastIndex,n===K?u[1]==="!--"?n=Mt:u[1]!==void 0?n=Pt:u[2]!==void 0?(Gt.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=B):u[3]!==void 0&&(n=B):n===B?u[0]===">"?(n=i??K,f=-1):u[1]===void 0?f=-2:(f=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?B:u[3]==='"'?Ut:It):n===Ut||n===It?n=B:n===Mt||n===Pt?n=K:(n=B,i=void 0);let E=n===B&&r[h+1].startsWith("/>")?" ":"";s+=n===K?l+He:f>=0?(o.push(c),l.slice(0,f)+Xt+l.slice(f)+z+E):l+z+(f===-2?h:E)}return[Jt(r,s+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},tt=class r{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let s=0,n=0,h=t.length-1,l=this.parts,[c,u]=Ee(t,e);if(this.el=r.createElement(c,o),W.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=W.nextNode())!==null&&l.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Xt)){let C=u[n++],E=i.getAttribute(f).split(z),et=/([.?@])?(.*)/.exec(C);l.push({type:1,index:s,name:et[2],strings:E,ctor:et[1]==="."?ct:et[1]==="?"?ft:et[1]==="@"?dt:L}),i.removeAttribute(f)}else f.startsWith(z)&&(l.push({type:6,index:s}),i.removeAttribute(f));if(Gt.test(i.tagName)){let f=i.textContent.split(z),C=f.length-1;if(C>0){i.textContent=rt?rt.emptyScript:"";for(let E=0;E<C;E++)i.append(f[E],nt()),W.nextNode(),l.push({type:2,index:++s});i.append(f[C],nt())}}}else if(i.nodeType===8)if(i.data===Yt)l.push({type:2,index:s});else{let f=-1;for(;(f=i.data.indexOf(z,f+1))!==-1;)l.push({type:7,index:s}),f+=z.length-1}s++}}static createElement(t,e){let o=N.createElement("template");return o.innerHTML=t,o}};function R(r,t,e=r,o){if(t===Q)return t;let i=o!==void 0?e._$Co?.[o]:e._$Cl,s=J(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(r),i._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=i:e._$Cl=i),i!==void 0&&(t=R(r,i._$AS(r,t.values),i,o)),t}var ht=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,i=(t?.creationScope??N).importNode(e,!0);W.currentNode=i;let s=W.nextNode(),n=0,h=0,l=o[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new st(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new yt(s,this,t)),this._$AV.push(c),l=o[++h]}n!==l?.index&&(s=W.nextNode(),n++)}return W.currentNode=N,i}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++}},st=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.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=R(this,t,e),J(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==Q&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):we(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!==m&&J(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,i=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=tt.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{let s=new ht(i,this),n=s.u(this.options);s.p(e),this.T(n),this._$AH=s}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new tt(t)),e}k(t){gt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,i=0;for(let s of t)i===e.length?e.push(o=new r(this.O(nt()),this.O(nt()),this,this.options)):o=e[i],o._$AI(s),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Dt(t).nextSibling;Dt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,s){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=m}_$AI(t,e=this,o,i){let s=this.strings,n=!1;if(s===void 0)t=R(this,t,e,0),n=!J(t)||t!==this._$AH&&t!==Q,n&&(this._$AH=t);else{let h=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=R(this,h[o+l],e,l),c===Q&&(c=this._$AH[l]),n||=!J(c)||c!==this._$AH[l],c===m?t=m:t!==m&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}n&&!i&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},ft=class extends L{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},dt=class extends L{constructor(t,e,o,i,s){super(t,e,o,i,s),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??m)===Q)return;let o=this._$AH,i=t===m&&o!==m||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==m&&(o===m||i);i&&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)}},yt=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){R(this,t)}};var ze=ut.litHtmlPolyfillSupport;ze?.(tt,st),(ut.litHtmlVersions??=[]).push("3.3.3");var te=Symbol.for(""),Be=r=>{if(r?.r===te)return r?._$litStatic$},xt=r=>({_$litStatic$:r,r:te});var Qt=new Map,bt=r=>(t,...e)=>{let o=e.length,i,s,n=[],h=[],l,c=0,u=!1;for(;c<o;){for(l=t[c];c<o&&(s=e[c],(i=Be(s))!==void 0);)l+=i+t[++c],u=!0;c!==o&&h.push(s),n.push(l),c++}if(c===o&&n.push(t[o]),u){let f=n.join("$$lit$$");(t=Qt.get(f))===void 0&&(n.raw=n,Qt.set(f,t=n)),e=h}return r(t,...e)},$t=bt(Zt),Je=bt(qt),Qe=bt(Kt);var vt=g(it()),ye=g(A());var D;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(D||(D={}));var _=g(O()),p=g(A()),ee=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),T=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),a={fontFamily:T,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},V={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",a.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",a.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",a.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",a.textTransform,"inherit")},M={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",a.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",a.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",a.textTransform,"inherit")},P={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",a.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",a.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",a.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",a.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",a.textTransform,"inherit")},I={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",a.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",a.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",a.textTransform,"inherit")},U={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",a.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",a.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",a.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",a.textTransform,"inherit")},j={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",a.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",a.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",a.textTransform,"inherit")},X={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",a.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",a.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",a.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",a.textTransform,"inherit")},Y={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",a.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",a.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",a.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",a.textTransform,"inherit")},G={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",a.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",a.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",a.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",a.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",a.textTransform,"uppercase")},Z={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",T),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",a.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",a.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",a.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",a.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",a.textTransform,"uppercase")},oe=_.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
128
|
font-family: ${V.fontFamily};
|
|
129
129
|
font-size: ${V.fontSize};
|
|
@@ -132,17 +132,8 @@
|
|
|
132
132
|
line-height: ${V.lineHeight};
|
|
133
133
|
text-transform: ${V.textTransform};
|
|
134
134
|
}
|
|
135
|
-
`,oe=_.css`
|
|
136
|
-
.ft-typography--title-dense {
|
|
137
|
-
font-family: ${P.fontFamily};
|
|
138
|
-
font-size: ${P.fontSize};
|
|
139
|
-
font-weight: ${P.fontWeight};
|
|
140
|
-
letter-spacing: ${P.letterSpacing};
|
|
141
|
-
line-height: ${P.lineHeight};
|
|
142
|
-
text-transform: ${P.textTransform};
|
|
143
|
-
}
|
|
144
135
|
`,ie=_.css`
|
|
145
|
-
.ft-typography--
|
|
136
|
+
.ft-typography--title-dense {
|
|
146
137
|
font-family: ${M.fontFamily};
|
|
147
138
|
font-size: ${M.fontSize};
|
|
148
139
|
font-weight: ${M.fontWeight};
|
|
@@ -151,6 +142,15 @@
|
|
|
151
142
|
text-transform: ${M.textTransform};
|
|
152
143
|
}
|
|
153
144
|
`,re=_.css`
|
|
145
|
+
.ft-typography--subtitle1 {
|
|
146
|
+
font-family: ${P.fontFamily};
|
|
147
|
+
font-size: ${P.fontSize};
|
|
148
|
+
font-weight: ${P.fontWeight};
|
|
149
|
+
letter-spacing: ${P.letterSpacing};
|
|
150
|
+
line-height: ${P.lineHeight};
|
|
151
|
+
text-transform: ${P.textTransform};
|
|
152
|
+
}
|
|
153
|
+
`,ne=_.css`
|
|
154
154
|
.ft-typography--subtitle2 {
|
|
155
155
|
font-family: ${I.fontFamily};
|
|
156
156
|
font-size: ${I.fontSize};
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
text-transform: ${I.textTransform};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
`,
|
|
163
|
+
`,se=_.css`
|
|
164
164
|
.ft-typography--body1 {
|
|
165
165
|
font-family: ${U.fontFamily};
|
|
166
166
|
font-size: ${U.fontSize};
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
line-height: ${U.lineHeight};
|
|
170
170
|
text-transform: ${U.textTransform};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,pe=_.css`
|
|
173
173
|
.ft-typography--body2 {
|
|
174
174
|
font-family: ${j.fontFamily};
|
|
175
175
|
font-size: ${j.fontSize};
|
|
@@ -178,17 +178,8 @@
|
|
|
178
178
|
line-height: ${j.lineHeight};
|
|
179
179
|
text-transform: ${j.textTransform};
|
|
180
180
|
}
|
|
181
|
-
`,pe=_.css`
|
|
182
|
-
.ft-typography--caption {
|
|
183
|
-
font-family: ${Z.fontFamily};
|
|
184
|
-
font-size: ${Z.fontSize};
|
|
185
|
-
font-weight: ${Z.fontWeight};
|
|
186
|
-
letter-spacing: ${Z.letterSpacing};
|
|
187
|
-
line-height: ${Z.lineHeight};
|
|
188
|
-
text-transform: ${Z.textTransform};
|
|
189
|
-
}
|
|
190
181
|
`,ae=_.css`
|
|
191
|
-
.ft-typography--
|
|
182
|
+
.ft-typography--caption {
|
|
192
183
|
font-family: ${X.fontFamily};
|
|
193
184
|
font-size: ${X.fontSize};
|
|
194
185
|
font-weight: ${X.fontWeight};
|
|
@@ -197,7 +188,7 @@
|
|
|
197
188
|
text-transform: ${X.textTransform};
|
|
198
189
|
}
|
|
199
190
|
`,le=_.css`
|
|
200
|
-
.ft-typography--
|
|
191
|
+
.ft-typography--breadcrumb {
|
|
201
192
|
font-family: ${Y.fontFamily};
|
|
202
193
|
font-size: ${Y.fontSize};
|
|
203
194
|
font-weight: ${Y.fontWeight};
|
|
@@ -206,7 +197,7 @@
|
|
|
206
197
|
text-transform: ${Y.textTransform};
|
|
207
198
|
}
|
|
208
199
|
`,he=_.css`
|
|
209
|
-
.ft-typography--
|
|
200
|
+
.ft-typography--overline {
|
|
210
201
|
font-family: ${G.fontFamily};
|
|
211
202
|
font-size: ${G.fontSize};
|
|
212
203
|
font-weight: ${G.fontWeight};
|
|
@@ -215,10 +206,19 @@
|
|
|
215
206
|
text-transform: ${G.textTransform};
|
|
216
207
|
}
|
|
217
208
|
`,ce=_.css`
|
|
209
|
+
.ft-typography--button {
|
|
210
|
+
font-family: ${Z.fontFamily};
|
|
211
|
+
font-size: ${Z.fontSize};
|
|
212
|
+
font-weight: ${Z.fontWeight};
|
|
213
|
+
letter-spacing: ${Z.letterSpacing};
|
|
214
|
+
line-height: ${Z.lineHeight};
|
|
215
|
+
text-transform: ${Z.textTransform};
|
|
216
|
+
}
|
|
217
|
+
`,fe=_.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`;var
|
|
221
|
+
`;var de=function(r,t,e,o){var i=arguments.length,s=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,o);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(i<3?n(s):i>3?n(t,e,s):n(t,e))||s);return i>3&&s&&Object.defineProperty(t,e,s),s},H=class extends ye.FtLitElement{constructor(){super(...arguments),this.variant=D.body1}render(){return this.element?$t`
|
|
222
222
|
<${xt(this.element)}
|
|
223
223
|
part="text"
|
|
224
224
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
</${xt(this.element)}>
|
|
227
227
|
`:$t`
|
|
228
228
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
229
|
-
`}};H.styles=[
|
|
229
|
+
`}};H.styles=[oe,ie,re,ne,se,pe,ae,le,he,ce,fe];de([(0,vt.property)()],H.prototype,"element",void 0);de([(0,vt.property)()],H.prototype,"variant",void 0);var ge=g(A());var ue={"ft-typography":H};(0,ge.customElements)(ue);var b=g(A()),me=g(O());var k={textColor:b.FtCssVariableFactory.extend("--ft-checkbox-text-color","",b.designSystemVariables.colorOnSurfaceHigh),fontSize:b.FtCssVariableFactory.extend("--ft-checkbox-font-size","",a.fontSize),activeColor:b.FtCssVariableFactory.extend("--ft-checkbox-active-color","",b.designSystemVariables.colorPrimary),checkColor:b.FtCssVariableFactory.extend("--ft-checkbox-check-color","",b.designSystemVariables.colorOnPrimary),borderColor:b.FtCssVariableFactory.extend("--ft-checkbox-border-color","",b.designSystemVariables.colorOnSurfaceMedium),disabledColor:b.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",b.designSystemVariables.colorOnSurfaceDisabled),errorColor:b.FtCssVariableFactory.extend("--ft-checkbox-error-color","",b.designSystemVariables.colorError)},xe=me.css`
|
|
230
230
|
* {
|
|
231
231
|
box-sizing: border-box;
|
|
232
232
|
}
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
`;var w=function(
|
|
322
|
+
`;var w=function(r,t,e,o){var i=arguments.length,s=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,o);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(i<3?n(s):i>3?n(t,e,s):n(t,e))||s);return i>3&&s&&Object.defineProperty(t,e,s),s},kt=class extends CustomEvent{constructor(t){super("change",{detail:t})}},$=class extends be.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return pt.html`
|
|
323
323
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
324
324
|
<ft-ripple part="checkbox-ripple"
|
|
325
325
|
?disabled=${this.disabled}
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
>
|
|
343
343
|
</div>
|
|
344
344
|
`}render(){return pt.html`
|
|
345
|
-
<label class="${(0
|
|
345
|
+
<label class="${(0,$e.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
346
346
|
${this.renderBoxContainer()}
|
|
347
347
|
<ft-typography variant="${D.body2}" part="checkbox-body">
|
|
348
348
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
354
354
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
355
355
|
</svg>
|
|
356
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new kt(this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),(e=this.ripple)===null||e===void 0||e.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};$.elementDefinitions={"ft-ripple":d,"ft-typography":H};$.styles=
|
|
356
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new kt(this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),(e=this.ripple)===null||e===void 0||e.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};$.elementDefinitions={"ft-ripple":d,"ft-typography":H};$.styles=xe;w([(0,S.property)()],$.prototype,"name",void 0);w([(0,S.property)()],$.prototype,"value",void 0);w([(0,S.property)({type:Boolean,reflect:!0})],$.prototype,"checked",void 0);w([(0,S.property)({type:Boolean})],$.prototype,"indeterminate",void 0);w([(0,S.property)({type:Boolean})],$.prototype,"disabled",void 0);w([(0,S.property)({type:Boolean})],$.prototype,"error",void 0);w([(0,S.query)(".ft-checkbox")],$.prototype,"container",void 0);w([(0,S.query)("ft-ripple")],$.prototype,"ripple",void 0);w([(0,S.query)("input")],$.prototype,"input",void 0);var ve={"ft-checkbox":$};(0,ke.customElements)(ve);})();
|
|
357
357
|
/*! Bundled license information:
|
|
358
358
|
|
|
359
359
|
lit-html/lit-html.js:
|