@fluid-topics/ft-radio 2.1.11 → 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-radio.light.js +29 -29
- package/build/ft-radio.min.js +56 -56
- package/package.json +5 -5
package/build/ft-radio.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var ke=Object.create;var Ct=Object.defineProperty;var Ee=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var Be=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty;var st=(r,t)=>()=>{try{return t||r((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var Oe=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ze(t))!De.call(r,o)&&o!==e&&Ct(r,o,{get:()=>t[o],enumerable:!(i=Ee(t,o))||i.enumerable});return r};var d=(r,t,e)=>(e=r!=null?ke(Be(r)):{},Oe(t||!r||!r.__esModule?Ct(e,"default",{value:r,enumerable:!0}):e,r));var _=st((Ve,Ft)=>{Ft.exports=ftGlobals.wcUtils});var k=st((Me,Tt)=>{Tt.exports=ftGlobals.lit});var J=st((je,wt)=>{wt.exports=ftGlobals.litDecorators});var ft=st((Ue,Ht)=>{Ht.exports=ftGlobals.litClassMap});var He=d(_());var $e=d(k()),C=d(J()),Se=d(_()),_e=d(ft());var It=d(k()),x=d(J()),Lt=d(ft()),Q=d(_());var Ot=d(k()),y=d(_()),kt=y.FtCssVariableFactory.extend("--ft-ripple-color","",y.designSystemVariables.colorContent),O={color:kt,backgroundColor:y.FtCssVariableFactory.extend("--ft-ripple-background-color","",kt),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")},Et=y.FtCssVariableFactory.extend("--ft-ripple-color","",y.designSystemVariables.colorPrimary),zt={color:Et,backgroundColor:y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Et)},Bt=y.FtCssVariableFactory.extend("--ft-ripple-color","",y.designSystemVariables.colorSecondary),Dt={color:Bt,backgroundColor:y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Bt)},Rt=Ot.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${O.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`;var b=function(
|
|
113
|
+
`;var b=function(r,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,i);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(o<3?n(s):o>3?n(t,e,s):n(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},u=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,i;let{x:o,y:s}=this.getCoordinates(t),n=(i=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(o!=null?o-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 It.html`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
@@ -121,9 +121,9 @@
|
|
|
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,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}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(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(l)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=h=>{["Enter"," "].includes(h.key)&&e("keyup")(h)},
|
|
125
|
-
\f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),jt=/'/g,Ut=/"/g,Yt=/^(?:script|style|textarea|title)$/i,vt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),qt=vt(1),Kt=vt(2),Jt=vt(3),it=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Zt=new WeakMap,I=L.createTreeWalker(L,129);function Qt(n,t){if(!bt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nt!==void 0?Nt.createHTML(t):t}var Ie=(n,t)=>{let e=n.length-1,i=[],o,s=t===2?"<svg>":t===3?"<math>":"",r=tt;for(let h=0;h<e;h++){let l=n[h],f,g,c=-1,F=0;for(;F<l.length&&(r.lastIndex=F,g=r.exec(l),g!==null);)F=r.lastIndex,r===tt?g[1]==="!--"?r=Vt:g[1]!==void 0?r=Mt:g[2]!==void 0?(Yt.test(g[2])&&(o=RegExp("</"+g[2],"g")),r=R):g[3]!==void 0&&(r=R):r===R?g[0]===">"?(r=o??tt,c=-1):g[1]===void 0?c=-2:(c=r.lastIndex-g[2].length,f=g[1],r=g[3]===void 0?R:g[3]==='"'?Ut:jt):r===Ut||r===jt?r=R:r===Vt||r===Mt?r=tt:(r=R,o=void 0);let H=r===R&&n[h+1].startsWith("/>")?" ":"";s+=r===tt?l+Oe:c>=0?(i.push(f),l.slice(0,c)+Gt+l.slice(c)+E+H):l+E+(c===-2?h:H)}return[Qt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},ot=class n{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0,h=t.length-1,l=this.parts,[f,g]=Ie(t,e);if(this.el=n.createElement(f,i),I.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=I.nextNode())!==null&&l.length<h;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(Gt)){let F=g[r++],H=o.getAttribute(c).split(E),nt=/([.?@])?(.*)/.exec(F);l.push({type:1,index:s,name:nt[2],strings:H,ctor:nt[1]==="."?ut:nt[1]==="?"?yt:nt[1]==="@"?gt:W}),o.removeAttribute(c)}else c.startsWith(E)&&(l.push({type:6,index:s}),o.removeAttribute(c));if(Yt.test(o.tagName)){let c=o.textContent.split(E),F=c.length-1;if(F>0){o.textContent=at?at.emptyScript:"";for(let H=0;H<F;H++)o.append(c[H],pt()),I.nextNode(),l.push({type:2,index:++s});o.append(c[F],pt())}}}else if(o.nodeType===8)if(o.data===Xt)l.push({type:2,index:s});else{let c=-1;for(;(c=o.data.indexOf(E,c+1))!==-1;)l.push({type:7,index:s}),c+=E.length-1}s++}}static createElement(t,e){let i=L.createElement("template");return i.innerHTML=t,i}};function P(n,t,e=n,i){if(t===it)return t;let o=i!==void 0?e._$Co?.[i]:e._$Cl,s=et(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=P(n,o._$AS(n,t.values),o,i)),t}var dt=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??L).importNode(e,!0);I.currentNode=o;let s=I.nextNode(),r=0,h=0,l=i[0];for(;l!==void 0;){if(r===l.index){let f;l.type===2?f=new lt(s,s.nextSibling,this,t):l.type===1?f=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(f=new mt(s,this,t)),this._$AV.push(f),l=i[++h]}r!==l?.index&&(s=I.nextNode(),r++)}return I.currentNode=L,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++}},lt=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=m,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=P(this,t,e),et(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==it&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Re(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&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.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=ot.createElement(Qt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new dt(o,this),r=s.u(this.options);s.p(e),this.T(r),this._$AH=s}}_$AC(t){let e=Zt.get(t.strings);return e===void 0&&Zt.set(t.strings,e=new ot(t)),e}k(t){bt(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(pt()),this.O(pt()),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))}},W=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=m,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=m}_$AI(t,e=this,i,o){let s=this.strings,r=!1;if(s===void 0)t=P(this,t,e,0),r=!et(t)||t!==this._$AH&&t!==it,r&&(this._$AH=t);else{let h=t,l,f;for(t=s[0],l=0;l<s.length-1;l++)f=P(this,h[i+l],e,l),f===it&&(f=this._$AH[l]),r||=!et(f)||f!==this._$AH[l],f===m?t=m:t!==m&&(t+=(f??"")+s[l+1]),this._$AH[l]=f}r&&!o&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ut=class extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},yt=class extends W{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},gt=class extends W{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??m)===it)return;let i=this._$AH,o=t===m&&i!==m||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==m&&(i===m||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)}},mt=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){P(this,t)}};var Le=xt.litHtmlPolyfillSupport;Le?.(ot,lt),(xt.litHtmlVersions??=[]).push("3.3.0");var ee=Symbol.for(""),Pe=n=>{if(n?.r===ee)return n?._$litStatic$},$t=n=>({_$litStatic$:n,r:ee});var te=new Map,St=n=>(t,...e)=>{let i=e.length,o,s,r=[],h=[],l,f=0,g=!1;for(;f<i;){for(l=t[f];f<i&&(s=e[f],(o=Pe(s))!==void 0);)l+=o+t[++f],g=!0;f!==i&&h.push(s),r.push(l),f++}if(f===i&&r.push(t[i]),g){let c=r.join("$$lit$$");(t=te.get(c))===void 0&&(r.raw=r,te.set(c,t=r)),e=h}return n(t,...e)},_t=St(qt),ri=St(Kt),ni=St(Jt);var At=d(J()),ye=d(_());var N;(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"})(N||(N={}));var S=d(k()),a=d(_()),ie=a.FtCssVariableFactory.extend("--ft-typography-font-family","",a.designSystemVariables.titleFont),T=a.FtCssVariableFactory.extend("--ft-typography-font-family","",a.designSystemVariables.contentFont),p={fontFamily:T,fontSize:a.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:a.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:a.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:a.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:a.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},V={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ie),fontSize:a.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit")},M={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ie),fontSize:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit")},j={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit")},U={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit")},Z={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit")},G={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit")},X={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit")},Y={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit")},q={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase")},K={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-button-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase")},oe=S.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,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}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(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(l)},i=e("mouseup","contextmenu"),o=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",i,n),t.addEventListener("touchstart",o,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",i,n),t.removeEventListener("touchstart",o,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,i=t,o,s;return e.x!=null?{x:o,y:s}=e:i.touches!=null&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,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()}};u.elementDefinitions={};u.styles=Rt;b([(0,x.property)({type:Boolean})],u.prototype,"primary",void 0);b([(0,x.property)({type:Boolean})],u.prototype,"secondary",void 0);b([(0,x.property)({type:Boolean})],u.prototype,"unbounded",void 0);b([(0,x.property)({type:Boolean})],u.prototype,"activated",void 0);b([(0,x.property)({type:Boolean})],u.prototype,"selected",void 0);b([(0,x.property)({type:Boolean})],u.prototype,"disabled",void 0);b([(0,x.state)()],u.prototype,"hovered",void 0);b([(0,x.state)()],u.prototype,"focused",void 0);b([(0,x.state)()],u.prototype,"pressed",void 0);b([(0,x.state)()],u.prototype,"rippling",void 0);b([(0,x.state)()],u.prototype,"originX",void 0);b([(0,x.state)()],u.prototype,"originY",void 0);b([(0,x.query)(".ft-ripple")],u.prototype,"ripple",void 0);b([(0,x.query)(".ft-ripple--effect")],u.prototype,"rippleEffect",void 0);var Wt=d(_());var Pt={"ft-ripple":u};(0,Wt.customElements)(Pt);var xt=globalThis,Nt=r=>r,at=xt.trustedTypes,Vt=at?at.createPolicy("lit-html",{createHTML:r=>r}):void 0,Yt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,qt="?"+E,Re=`<${qt}>`,L=document,pt=()=>L.createComment(""),et=r=>r===null||typeof r!="object"&&typeof r!="function",bt=Array.isArray,Ie=r=>bt(r)||typeof r?.[Symbol.iterator]=="function",ct=`[
|
|
125
|
+
\f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,jt=/>/g,R=RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ut=/'/g,Gt=/"/g,Kt=/^(?:script|style|textarea|title)$/i,vt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zt=vt(1),Jt=vt(2),Qt=vt(3),it=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Xt=new WeakMap,I=L.createTreeWalker(L,129);function te(r,t){if(!bt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Le=(r,t)=>{let e=r.length-1,i=[],o,s=t===2?"<svg>":t===3?"<math>":"",n=tt;for(let h=0;h<e;h++){let l=r[h],f,g,c=-1,F=0;for(;F<l.length&&(n.lastIndex=F,g=n.exec(l),g!==null);)F=n.lastIndex,n===tt?g[1]==="!--"?n=Mt:g[1]!==void 0?n=jt:g[2]!==void 0?(Kt.test(g[2])&&(o=RegExp("</"+g[2],"g")),n=R):g[3]!==void 0&&(n=R):n===R?g[0]===">"?(n=o??tt,c=-1):g[1]===void 0?c=-2:(c=n.lastIndex-g[2].length,f=g[1],n=g[3]===void 0?R:g[3]==='"'?Gt:Ut):n===Gt||n===Ut?n=R:n===Mt||n===jt?n=tt:(n=R,o=void 0);let H=n===R&&r[h+1].startsWith("/>")?" ":"";s+=n===tt?l+Re:c>=0?(i.push(f),l.slice(0,c)+Yt+l.slice(c)+E+H):l+E+(c===-2?h:H)}return[te(r,s+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},ot=class r{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0,h=t.length-1,l=this.parts,[f,g]=Le(t,e);if(this.el=r.createElement(f,i),I.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=I.nextNode())!==null&&l.length<h;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(Yt)){let F=g[n++],H=o.getAttribute(c).split(E),nt=/([.?@])?(.*)/.exec(F);l.push({type:1,index:s,name:nt[2],strings:H,ctor:nt[1]==="."?ut:nt[1]==="?"?yt:nt[1]==="@"?gt:W}),o.removeAttribute(c)}else c.startsWith(E)&&(l.push({type:6,index:s}),o.removeAttribute(c));if(Kt.test(o.tagName)){let c=o.textContent.split(E),F=c.length-1;if(F>0){o.textContent=at?at.emptyScript:"";for(let H=0;H<F;H++)o.append(c[H],pt()),I.nextNode(),l.push({type:2,index:++s});o.append(c[F],pt())}}}else if(o.nodeType===8)if(o.data===qt)l.push({type:2,index:s});else{let c=-1;for(;(c=o.data.indexOf(E,c+1))!==-1;)l.push({type:7,index:s}),c+=E.length-1}s++}}static createElement(t,e){let i=L.createElement("template");return i.innerHTML=t,i}};function P(r,t,e=r,i){if(t===it)return t;let o=i!==void 0?e._$Co?.[i]:e._$Cl,s=et(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(r),o._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=o:e._$Cl=o),o!==void 0&&(t=P(r,o._$AS(r,t.values),o,i)),t}var dt=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??L).importNode(e,!0);I.currentNode=o;let s=I.nextNode(),n=0,h=0,l=i[0];for(;l!==void 0;){if(n===l.index){let f;l.type===2?f=new lt(s,s.nextSibling,this,t):l.type===1?f=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(f=new mt(s,this,t)),this._$AV.push(f),l=i[++h]}n!==l?.index&&(s=I.nextNode(),n++)}return I.currentNode=L,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++}},lt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=m,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=P(this,t,e),et(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==it&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ie(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&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.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=ot.createElement(te(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new dt(o,this),n=s.u(this.options);s.p(e),this.T(n),this._$AH=s}}_$AC(t){let e=Xt.get(t.strings);return e===void 0&&Xt.set(t.strings,e=new ot(t)),e}k(t){bt(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 r(this.O(pt()),this.O(pt()),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=Nt(t).nextSibling;Nt(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},W=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=m,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=m}_$AI(t,e=this,i,o){let s=this.strings,n=!1;if(s===void 0)t=P(this,t,e,0),n=!et(t)||t!==this._$AH&&t!==it,n&&(this._$AH=t);else{let h=t,l,f;for(t=s[0],l=0;l<s.length-1;l++)f=P(this,h[i+l],e,l),f===it&&(f=this._$AH[l]),n||=!et(f)||f!==this._$AH[l],f===m?t=m:t!==m&&(t+=(f??"")+s[l+1]),this._$AH[l]=f}n&&!o&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ut=class extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},yt=class extends W{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},gt=class extends W{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??m)===it)return;let i=this._$AH,o=t===m&&i!==m||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==m&&(i===m||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)}},mt=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){P(this,t)}};var Pe=xt.litHtmlPolyfillSupport;Pe?.(ot,lt),(xt.litHtmlVersions??=[]).push("3.3.3");var ie=Symbol.for(""),We=r=>{if(r?.r===ie)return r?._$litStatic$},$t=r=>({_$litStatic$:r,r:ie});var ee=new Map,St=r=>(t,...e)=>{let i=e.length,o,s,n=[],h=[],l,f=0,g=!1;for(;f<i;){for(l=t[f];f<i&&(s=e[f],(o=We(s))!==void 0);)l+=o+t[++f],g=!0;f!==i&&h.push(s),n.push(l),f++}if(f===i&&n.push(t[i]),g){let c=n.join("$$lit$$");(t=ee.get(c))===void 0&&(n.raw=n,ee.set(c,t=n)),e=h}return r(t,...e)},_t=St(Zt),ni=St(Jt),si=St(Qt);var At=d(J()),ge=d(_());var N;(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"})(N||(N={}));var S=d(k()),a=d(_()),oe=a.FtCssVariableFactory.extend("--ft-typography-font-family","",a.designSystemVariables.titleFont),T=a.FtCssVariableFactory.extend("--ft-typography-font-family","",a.designSystemVariables.contentFont),p={fontFamily:T,fontSize:a.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:a.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:a.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:a.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:a.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},V={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-title-font-family","",oe),fontSize:a.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit")},M={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",oe),fontSize:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit")},j={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit")},U={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit")},G={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit")},X={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit")},Y={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit")},q={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit")},K={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase")},Z={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-button-font-family","",T),fontSize:a.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase")},re=S.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
128
|
font-family: ${V.fontFamily};
|
|
129
129
|
font-size: ${V.fontSize};
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
line-height: ${V.lineHeight};
|
|
133
133
|
text-transform: ${V.textTransform};
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`,ne=S.css`
|
|
136
136
|
.ft-typography--title-dense {
|
|
137
137
|
font-family: ${M.fontFamily};
|
|
138
138
|
font-size: ${M.fontSize};
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
line-height: ${M.lineHeight};
|
|
142
142
|
text-transform: ${M.textTransform};
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`,se=S.css`
|
|
145
145
|
.ft-typography--subtitle1 {
|
|
146
146
|
font-family: ${j.fontFamily};
|
|
147
147
|
font-size: ${j.fontSize};
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
line-height: ${j.lineHeight};
|
|
151
151
|
text-transform: ${j.textTransform};
|
|
152
152
|
}
|
|
153
|
-
`,
|
|
153
|
+
`,ae=S.css`
|
|
154
154
|
.ft-typography--subtitle2 {
|
|
155
155
|
font-family: ${U.fontFamily};
|
|
156
156
|
font-size: ${U.fontSize};
|
|
@@ -160,17 +160,8 @@
|
|
|
160
160
|
text-transform: ${U.textTransform};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
`,ae=S.css`
|
|
164
|
-
.ft-typography--body1 {
|
|
165
|
-
font-family: ${Z.fontFamily};
|
|
166
|
-
font-size: ${Z.fontSize};
|
|
167
|
-
font-weight: ${Z.fontWeight};
|
|
168
|
-
letter-spacing: ${Z.letterSpacing};
|
|
169
|
-
line-height: ${Z.lineHeight};
|
|
170
|
-
text-transform: ${Z.textTransform};
|
|
171
|
-
}
|
|
172
163
|
`,pe=S.css`
|
|
173
|
-
.ft-typography--
|
|
164
|
+
.ft-typography--body1 {
|
|
174
165
|
font-family: ${G.fontFamily};
|
|
175
166
|
font-size: ${G.fontSize};
|
|
176
167
|
font-weight: ${G.fontWeight};
|
|
@@ -179,7 +170,7 @@
|
|
|
179
170
|
text-transform: ${G.textTransform};
|
|
180
171
|
}
|
|
181
172
|
`,le=S.css`
|
|
182
|
-
.ft-typography--
|
|
173
|
+
.ft-typography--body2 {
|
|
183
174
|
font-family: ${X.fontFamily};
|
|
184
175
|
font-size: ${X.fontSize};
|
|
185
176
|
font-weight: ${X.fontWeight};
|
|
@@ -188,7 +179,7 @@
|
|
|
188
179
|
text-transform: ${X.textTransform};
|
|
189
180
|
}
|
|
190
181
|
`,he=S.css`
|
|
191
|
-
.ft-typography--
|
|
182
|
+
.ft-typography--caption {
|
|
192
183
|
font-family: ${Y.fontFamily};
|
|
193
184
|
font-size: ${Y.fontSize};
|
|
194
185
|
font-weight: ${Y.fontWeight};
|
|
@@ -197,7 +188,7 @@
|
|
|
197
188
|
text-transform: ${Y.textTransform};
|
|
198
189
|
}
|
|
199
190
|
`,fe=S.css`
|
|
200
|
-
.ft-typography--
|
|
191
|
+
.ft-typography--breadcrumb {
|
|
201
192
|
font-family: ${q.fontFamily};
|
|
202
193
|
font-size: ${q.fontSize};
|
|
203
194
|
font-weight: ${q.fontWeight};
|
|
@@ -206,7 +197,7 @@
|
|
|
206
197
|
text-transform: ${q.textTransform};
|
|
207
198
|
}
|
|
208
199
|
`,ce=S.css`
|
|
209
|
-
.ft-typography--
|
|
200
|
+
.ft-typography--overline {
|
|
210
201
|
font-family: ${K.fontFamily};
|
|
211
202
|
font-size: ${K.fontSize};
|
|
212
203
|
font-weight: ${K.fontWeight};
|
|
@@ -215,10 +206,19 @@
|
|
|
215
206
|
text-transform: ${K.textTransform};
|
|
216
207
|
}
|
|
217
208
|
`,de=S.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
|
+
`,ue=S.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`;var
|
|
221
|
+
`;var ye=function(r,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,i);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(o<3?n(s):o>3?n(t,e,s):n(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},w=class extends ge.FtLitElement{constructor(){super(...arguments),this.variant=N.body1}render(){return this.element?_t`
|
|
222
222
|
<${$t(this.element)}
|
|
223
223
|
part="text"
|
|
224
224
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
</${$t(this.element)}>
|
|
227
227
|
`:_t`
|
|
228
228
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
229
|
-
`}};w.styles=[
|
|
229
|
+
`}};w.styles=[re,ne,se,ae,pe,le,he,fe,ce,de,ue];ye([(0,At.property)()],w.prototype,"element",void 0);ye([(0,At.property)()],w.prototype,"variant",void 0);var xe=d(_());var me={"ft-typography":w};(0,xe.customElements)(me);var be=d(k()),v=d(_());var z={textColor:v.FtCssVariableFactory.extend("--ft-radio-text-color","",v.designSystemVariables.colorOnSurfaceHigh),fontSize:v.FtCssVariableFactory.extend("--ft-radio-font-size","",p.fontSize),colorPrimary:v.FtCssVariableFactory.external(v.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:v.FtCssVariableFactory.external(v.designSystemVariables.colorOnPrimary,"Design system"),borderColor:v.FtCssVariableFactory.extend("--ft-radio-border-color","",v.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:v.FtCssVariableFactory.external(v.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ve=be.css`
|
|
230
230
|
* {
|
|
231
231
|
box-sizing: border-box;
|
|
232
232
|
}
|
|
@@ -315,8 +315,8 @@
|
|
|
315
315
|
.ft-radio ft-typography {
|
|
316
316
|
padding-right: 2px;
|
|
317
317
|
}
|
|
318
|
-
`;var B=function(
|
|
319
|
-
<div class="${(0,
|
|
318
|
+
`;var B=function(r,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,i);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(o<3?n(s):o>3?n(t,e,s):n(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},ht=class extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}},$=class extends Se.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return $e.html`
|
|
319
|
+
<div class="${(0,_e.classMap)(this.radioClasses)}"
|
|
320
320
|
@click=${this.onClick}>
|
|
321
321
|
<div class="ft-radio--box-container">
|
|
322
322
|
<ft-ripple
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
</ft-typography>
|
|
342
342
|
</label>
|
|
343
343
|
</div>
|
|
344
|
-
`}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ht(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),(e=this.ripple)===null||e===void 0||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ht(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var e;return(e=this.ripple)===null||e===void 0?void 0:e.forceFocusUpdate()},0)}onClick(t){var e;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(e=this.input)===null||e===void 0||e.click())}};$.elementDefinitions={"ft-ripple":u,"ft-typography":w};$.styles=
|
|
344
|
+
`}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ht(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),(e=this.ripple)===null||e===void 0||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ht(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var e;return(e=this.ripple)===null||e===void 0?void 0:e.forceFocusUpdate()},0)}onClick(t){var e;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(e=this.input)===null||e===void 0||e.click())}};$.elementDefinitions={"ft-ripple":u,"ft-typography":w};$.styles=ve;B([(0,C.property)()],$.prototype,"name",void 0);B([(0,C.property)()],$.prototype,"value",void 0);B([(0,C.property)({type:Boolean,reflect:!0})],$.prototype,"checked",void 0);B([(0,C.property)({attribute:"aria-checked",reflect:!0})],$.prototype,"ariaChecked",void 0);B([(0,C.property)({type:Boolean})],$.prototype,"disabled",void 0);B([(0,C.query)(".ft-radio")],$.prototype,"container",void 0);B([(0,C.query)("ft-ripple")],$.prototype,"ripple",void 0);B([(0,C.query)("input")],$.prototype,"input",void 0);var Fe=d(_()),D=d(J()),Te=d(k());var Ae=d(k());var Ce=Ae.css`
|
|
345
345
|
:host {
|
|
346
346
|
display: block;
|
|
347
347
|
}
|
|
@@ -349,12 +349,12 @@
|
|
|
349
349
|
:host(:focus-visible) {
|
|
350
350
|
outline: none;
|
|
351
351
|
}
|
|
352
|
-
`;var rt=function(
|
|
352
|
+
`;var rt=function(r,t,e,i){var o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,i);else for(var h=r.length-1;h>=0;h--)(n=r[h])&&(s=(o<3?n(s):o>3?n(t,e,s):n(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s},A=class extends Fe.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,e;return(e=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&e!==void 0?e:[]}render(){return Te.html`
|
|
353
353
|
<slot @slotchange=${this.onSlotChange}
|
|
354
354
|
@change=${this.onChange}
|
|
355
355
|
@keydown=${this.onKeyDown}
|
|
356
356
|
></slot>
|
|
357
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(e=>e.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(e=>e.checked=t.detail.value===e.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let e=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{e=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{e=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}e&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(e=>e.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};A.elementDefinitions={};A.styles=
|
|
357
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(e=>e.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(e=>e.checked=t.detail.value===e.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let e=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{e=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{e=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}e&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(e=>e.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};A.elementDefinitions={};A.styles=Ce;rt([(0,D.property)()],A.prototype,"name",void 0);rt([(0,D.property)({reflect:!0,attribute:"role"})],A.prototype,"role",void 0);rt([(0,D.property)({reflect:!0,attribute:"aria-labelledby"})],A.prototype,"ariaLabelledBy",void 0);rt([(0,D.queryAssignedElements)()],A.prototype,"assignedElements",void 0);rt([(0,D.state)()],A.prototype,"currentSelectedIndex",void 0);var we={"ft-radio":$,"ft-radio-group":A};(0,He.customElements)(we);})();
|
|
358
358
|
/*! Bundled license information:
|
|
359
359
|
|
|
360
360
|
lit-html/lit-html.js:
|