@fluid-topics/ft-select 2.2.5 → 2.2.7
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-select.light.js +198 -188
- package/build/ft-select.min.js +118 -108
- package/package.json +7 -7
package/build/ft-select.light.js
CHANGED
|
@@ -1,127 +1,137 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,at=/"/g,ht=/^(?:script|style|textarea|title)$/i,Ue=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),ct=Ue(1),ut=Ue(2),xt=Ue(3),be=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),pt=new WeakMap,J=Q.createTreeWalker(Q,129);function mt(e,t){if(!We(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return rt!==void 0?rt.createHTML(t):t}var _i=(e,t)=>{let i=e.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",l=ye;for(let p=0;p<i;p++){let d=e[p],m,S,y=-1,W=0;for(;W<d.length&&(l.lastIndex=W,S=l.exec(d),S!==null);)W=l.lastIndex,l===ye?S[1]==="!--"?l=nt:S[1]!==void 0?l=lt:S[2]!==void 0?(ht.test(S[2])&&(r=RegExp("</"+S[2],"g")),l=q):S[3]!==void 0&&(l=q):l===q?S[0]===">"?(l=r??ye,y=-1):S[1]===void 0?y=-2:(y=l.lastIndex-S[2].length,m=S[1],l=S[3]===void 0?q:S[3]==='"'?at:st):l===at||l===st?l=q:l===nt||l===lt?l=ye:(l=q,r=void 0);let V=l===q&&e[p+1].startsWith("/>")?" ":"";n+=l===ye?d+vi:y>=0?(o.push(m),d.slice(0,y)+ft+d.slice(y)+j+V):d+j+(y===-2?p:V)}return[mt(e,n+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},ve=class e{constructor({strings:t,_$litType$:i},o){let r;this.parts=[];let n=0,l=0,p=t.length-1,d=this.parts,[m,S]=_i(t,i);if(this.el=e.createElement(m,o),J.currentNode=this.el.content,i===2||i===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(r=J.nextNode())!==null&&d.length<p;){if(r.nodeType===1){if(r.hasAttributes())for(let y of r.getAttributeNames())if(y.endsWith(ft)){let W=S[l++],V=r.getAttribute(y).split(j),Oe=/([.?@])?(.*)/.exec(W);d.push({type:1,index:n,name:Oe[2],strings:V,ctor:Oe[1]==="."?He:Oe[1]==="?"?we:Oe[1]==="@"?Me:oe}),r.removeAttribute(y)}else y.startsWith(j)&&(d.push({type:6,index:n}),r.removeAttribute(y));if(ht.test(r.tagName)){let y=r.textContent.split(j),W=y.length-1;if(W>0){r.textContent=$e?$e.emptyScript:"";for(let V=0;V<W;V++)r.append(y[V],Te()),J.nextNode(),d.push({type:2,index:++n});r.append(y[W],Te())}}}else if(r.nodeType===8)if(r.data===dt)d.push({type:2,index:n});else{let y=-1;for(;(y=r.data.indexOf(j,y+1))!==-1;)d.push({type:7,index:n}),y+=j.length-1}n++}}static createElement(t,i){let o=Q.createElement("template");return o.innerHTML=t,o}};function ie(e,t,i=e,o){if(t===be)return t;let r=o!==void 0?i._$Co?.[o]:i._$Cl,n=ge(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=r:i._$Cl=r),r!==void 0&&(t=ie(e,r._$AS(e,t.values),r,o)),t}var Pe=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:i},parts:o}=this._$AD,r=(t?.creationScope??Q).importNode(i,!0);J.currentNode=r;let n=J.nextNode(),l=0,p=0,d=o[0];for(;d!==void 0;){if(l===d.index){let m;d.type===2?m=new Ce(n,n.nextSibling,this,t):d.type===1?m=new d.ctor(n,d.name,d.strings,this,t):d.type===6&&(m=new Be(n,this,t)),this._$AV.push(m),d=o[++p]}l!==d?.index&&(n=J.nextNode(),l++)}return J.currentNode=Q,r}p(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},Ce=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,r){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=ie(this,t,i),ge(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==be&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Si(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!==_&&ge(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ve.createElement(mt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(i);else{let n=new Pe(r,this),l=n.u(this.options);n.p(i),this.T(l),this._$AH=n}}_$AC(t){let i=pt.get(t.strings);return i===void 0&&pt.set(t.strings,i=new ve(t)),i}k(t){We(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let n of t)r===i.length?i.push(o=new e(this.O(Te()),this.O(Te()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let o=ot(t).nextSibling;ot(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},oe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,r,n){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=_}_$AI(t,i=this,o,r){let n=this.strings,l=!1;if(n===void 0)t=ie(this,t,i,0),l=!ge(t)||t!==this._$AH&&t!==be,l&&(this._$AH=t);else{let p=t,d,m;for(t=n[0],d=0;d<n.length-1;d++)m=ie(this,p[o+d],i,d),m===be&&(m=this._$AH[d]),l||=!ge(m)||m!==this._$AH[d],m===_?t=_:t!==_&&(t+=(m??"")+n[d+1]),this._$AH[d]=m}l&&!r&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},He=class extends oe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}},we=class extends oe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==_)}},Me=class extends oe{constructor(t,i,o,r,n){super(t,i,o,r,n),this.type=5}_$AI(t,i=this){if((t=ie(this,t,i,0)??_)===be)return;let o=this._$AH,r=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==_&&(o===_||r);r&&this.element.removeEventListener(this.name,this,o),n&&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)}},Be=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ie(this,t)}};var Ai=ze.litHtmlPolyfillSupport;Ai?.(ve,Ce),(ze.litHtmlVersions??=[]).push("3.3.3");var Ge=e=>e??_;var w=h(O());var gt=Symbol.for(""),Ei=e=>{if(e?.r===gt)return e?._$litStatic$},ke=e=>({_$litStatic$:e,r:gt});var yt=new Map,Ve=e=>(t,...i)=>{let o=i.length,r,n,l=[],p=[],d,m=0,S=!1;for(;m<o;){for(d=t[m];m<o&&(n=i[m],(r=Ei(n))!==void 0);)d+=r+t[++m],S=!0;m!==o&&p.push(n),l.push(d),m++}if(m===o&&l.push(t[o]),S){let y=l.join("$$lit$$");(t=yt.get(y))===void 0&&(l.raw=l,yt.set(y,t=l)),i=p}return e(t,...i)},Ke=Ve(ct),Ui=Ve(ut),Gi=Ve(xt);var je=h(K()),Lt=h(O());var I;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(I||(I={}));var H=h(P()),a=h(O()),bt=a.FtCssVariableFactory.extend("--ft-typography-font-family","",a.designSystemVariables.titleFont),G=a.FtCssVariableFactory.extend("--ft-typography-font-family","",a.designSystemVariables.contentFont),f={fontFamily:G,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")},re={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-title-font-family","",bt),fontSize:a.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit")},ne={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",bt),fontSize:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit")},le={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit")},se={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit")},U={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit")},ae={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit")},N={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit")},pe={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit")},fe={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase")},de={fontFamily:a.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:a.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:a.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:a.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:a.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:a.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase")},vt=H.css`
|
|
1
|
+
"use strict";(()=>{var xi=Object.create;var Jt=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var mi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var pt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var bi=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of mi(e))!gi.call(t,r)&&r!==i&&Jt(t,r,{get:()=>e[r],enumerable:!(o=ui(e,r))||o.enumerable});return t};var h=(t,e,i)=>(i=t!=null?xi(yi(t)):{},bi(e||!t||!t.__esModule?Jt(i,"default",{value:t,enumerable:!0}):i,t));var $=pt((Oi,Qt)=>{Qt.exports=ftGlobals.wcUtils});var P=pt((Ti,It)=>{It.exports=ftGlobals.lit});var V=pt((Ci,Ft)=>{Ft.exports=ftGlobals.litDecorators});var ut=pt((Ri,te)=>{te.exports=ftGlobals.litClassMap});var ie=pt((Li,ee)=>{ee.exports=ftGlobals.litRepeat});var ti=pt((wo,Fe)=>{Fe.exports=ftGlobals.litUnsafeHTML});var ci=h($());var xt=h(P()),E=h(V()),fi=h(ut()),di=h(ie());function mt(t,e,i){return t?e(t):i?.(t)}var zt=globalThis,oe=t=>t,Ot=zt.trustedTypes,re=Ot?Ot.createPolicy("lit-html",{createHTML:t=>t}):void 0,fe="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,de="?"+j,vi=`<${de}>`,Q=document,Tt=()=>Q.createComment(""),gt=t=>t===null||typeof t!="object"&&typeof t!="function",Wt=Array.isArray,Si=t=>Wt(t)||typeof t?.[Symbol.iterator]=="function",Nt=`[
|
|
2
|
+
\f\r]`,yt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,ae=/>/g,q=RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,se=/"/g,he=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ce=Ut(1),xe=Ut(2),ue=Ut(3),bt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),pe=new WeakMap,J=Q.createTreeWalker(Q,129);function me(t,e){if(!Wt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return re!==void 0?re.createHTML(e):e}var _i=(t,e)=>{let i=t.length-1,o=[],r,n=e===2?"<svg>":e===3?"<math>":"",a=yt;for(let f=0;f<i;f++){let d=t[f],m,S,y=-1,U=0;for(;U<d.length&&(a.lastIndex=U,S=a.exec(d),S!==null);)U=a.lastIndex,a===yt?S[1]==="!--"?a=ne:S[1]!==void 0?a=ae:S[2]!==void 0?(he.test(S[2])&&(r=RegExp("</"+S[2],"g")),a=q):S[3]!==void 0&&(a=q):a===q?S[0]===">"?(a=r??yt,y=-1):S[1]===void 0?y=-2:(y=a.lastIndex-S[2].length,m=S[1],a=S[3]===void 0?q:S[3]==='"'?se:le):a===se||a===le?a=q:a===ne||a===ae?a=yt:(a=q,r=void 0);let K=a===q&&t[f+1].startsWith("/>")?" ":"";n+=a===yt?d+vi:y>=0?(o.push(m),d.slice(0,y)+fe+d.slice(y)+j+K):d+j+(y===-2?f:K)}return[me(t,n+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},vt=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0,f=e.length-1,d=this.parts,[m,S]=_i(e,i);if(this.el=t.createElement(m,o),J.currentNode=this.el.content,i===2||i===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(r=J.nextNode())!==null&&d.length<f;){if(r.nodeType===1){if(r.hasAttributes())for(let y of r.getAttributeNames())if(y.endsWith(fe)){let U=S[a++],K=r.getAttribute(y).split(j),$t=/([.?@])?(.*)/.exec(U);d.push({type:1,index:n,name:$t[2],strings:K,ctor:$t[1]==="."?Ht:$t[1]==="?"?wt:$t[1]==="@"?Mt:dt}),r.removeAttribute(y)}else y.startsWith(j)&&(d.push({type:6,index:n}),r.removeAttribute(y));if(he.test(r.tagName)){let y=r.textContent.split(j),U=y.length-1;if(U>0){r.textContent=Ot?Ot.emptyScript:"";for(let K=0;K<U;K++)r.append(y[K],Tt()),J.nextNode(),d.push({type:2,index:++n});r.append(y[U],Tt())}}}else if(r.nodeType===8)if(r.data===de)d.push({type:2,index:n});else{let y=-1;for(;(y=r.data.indexOf(j,y+1))!==-1;)d.push({type:7,index:n}),y+=j.length-1}n++}}static createElement(e,i){let o=Q.createElement("template");return o.innerHTML=e,o}};function ft(t,e,i=t,o){if(e===bt)return e;let r=o!==void 0?i._$Co?.[o]:i._$Cl,n=gt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(t),r._$AT(t,i,o)),o!==void 0?(i._$Co??=[])[o]=r:i._$Cl=r),r!==void 0&&(e=ft(t,r._$AS(t,e.values),r,o)),e}var Pt=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:o}=this._$AD,r=(e?.creationScope??Q).importNode(i,!0);J.currentNode=r;let n=J.nextNode(),a=0,f=0,d=o[0];for(;d!==void 0;){if(a===d.index){let m;d.type===2?m=new Ct(n,n.nextSibling,this,e):d.type===1?m=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(m=new Bt(n,this,e)),this._$AV.push(m),d=o[++f]}a!==d?.index&&(n=J.nextNode(),a++)}return J.currentNode=Q,r}p(e){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Ct=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,o,r){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ft(this,e,i),gt(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==bt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Si(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&>(this._$AH)?this._$AA.nextSibling.data=e:this.T(Q.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:o}=e,r=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=vt.createElement(me(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(i);else{let n=new Pt(r,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(e){let i=pe.get(e.strings);return i===void 0&&pe.set(e.strings,i=new vt(e)),i}k(e){Wt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let n of e)r===i.length?i.push(o=new t(this.O(Tt()),this.O(Tt()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let o=oe(e).nextSibling;oe(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},dt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,o,r,n){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=i,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=_}_$AI(e,i=this,o,r){let n=this.strings,a=!1;if(n===void 0)e=ft(this,e,i,0),a=!gt(e)||e!==this._$AH&&e!==bt,a&&(this._$AH=e);else{let f=e,d,m;for(e=n[0],d=0;d<n.length-1;d++)m=ft(this,f[o+d],i,d),m===bt&&(m=this._$AH[d]),a||=!gt(m)||m!==this._$AH[d],m===_?e=_:e!==_&&(e+=(m??"")+n[d+1]),this._$AH[d]=m}a&&!r&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ht=class extends dt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},wt=class extends dt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},Mt=class extends dt{constructor(e,i,o,r,n){super(e,i,o,r,n),this.type=5}_$AI(e,i=this){if((e=ft(this,e,i,0)??_)===bt)return;let o=this._$AH,r=e===_&&o!==_||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==_&&(o===_||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Bt=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}};var Ai=zt.litHtmlPolyfillSupport;Ai?.(vt,Ct),(zt.litHtmlVersions??=[]).push("3.3.3");var Gt=t=>t??_;var w=h($());var ge=Symbol.for(""),Ei=t=>{if(t?.r===ge)return t?._$litStatic$},kt=t=>({_$litStatic$:t,r:ge});var ye=new Map,Kt=t=>(e,...i)=>{let o=i.length,r,n,a=[],f=[],d,m=0,S=!1;for(;m<o;){for(d=e[m];m<o&&(n=i[m],(r=Ei(n))!==void 0);)d+=r+e[++m],S=!0;m!==o&&f.push(n),a.push(d),m++}if(m===o&&a.push(e[o]),S){let y=a.join("$$lit$$");(e=ye.get(y))===void 0&&(a.raw=a,ye.set(y,e=a)),i=f}return t(e,...i)},Vt=Kt(ce),Ui=Kt(xe),Gi=Kt(ue);var jt=h(V()),Le=h($());var I;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(I||(I={}));var H=h(P()),l=h($()),be=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.titleFont),G=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.contentFont),p={fontFamily:G,fontSize:l.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:l.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:l.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:l.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:l.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:l.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},F={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-font-family","",be),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",p.textDecoration,"inherit")},tt={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",be),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",p.textDecoration,"inherit")},et={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",p.textDecoration,"inherit")},it={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",p.textDecoration,"inherit")},W={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",p.textDecoration,"inherit")},ot={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",p.textDecoration,"inherit")},C={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",p.textDecoration,"inherit")},rt={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",p.textDecoration,"inherit")},nt={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",p.textDecoration,"inherit")},at={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",p.textDecoration,"inherit")},ve=H.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
|
-
font-family: ${
|
|
6
|
-
font-size: ${
|
|
7
|
-
font-weight: ${
|
|
8
|
-
letter-spacing: ${
|
|
9
|
-
line-height: ${
|
|
10
|
-
text-transform: ${
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
font-family: ${F.fontFamily};
|
|
6
|
+
font-size: ${F.fontSize};
|
|
7
|
+
font-weight: ${F.fontWeight};
|
|
8
|
+
letter-spacing: ${F.letterSpacing};
|
|
9
|
+
line-height: ${F.lineHeight};
|
|
10
|
+
text-transform: ${F.textTransform};
|
|
11
|
+
text-decoration: ${F.textDecoration};
|
|
12
|
+
}
|
|
13
|
+
`,Se=H.css`
|
|
13
14
|
.ft-typography--title-dense {
|
|
14
|
-
font-family: ${
|
|
15
|
-
font-size: ${
|
|
16
|
-
font-weight: ${
|
|
17
|
-
letter-spacing: ${
|
|
18
|
-
line-height: ${
|
|
19
|
-
text-transform: ${
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
font-family: ${tt.fontFamily};
|
|
16
|
+
font-size: ${tt.fontSize};
|
|
17
|
+
font-weight: ${tt.fontWeight};
|
|
18
|
+
letter-spacing: ${tt.letterSpacing};
|
|
19
|
+
line-height: ${tt.lineHeight};
|
|
20
|
+
text-transform: ${tt.textTransform};
|
|
21
|
+
text-decoration: ${tt.textDecoration};
|
|
22
|
+
}
|
|
23
|
+
`,_e=H.css`
|
|
22
24
|
.ft-typography--subtitle1 {
|
|
23
|
-
font-family: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
font-weight: ${
|
|
26
|
-
letter-spacing: ${
|
|
27
|
-
line-height: ${
|
|
28
|
-
text-transform: ${
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
font-family: ${et.fontFamily};
|
|
26
|
+
font-size: ${et.fontSize};
|
|
27
|
+
font-weight: ${et.fontWeight};
|
|
28
|
+
letter-spacing: ${et.letterSpacing};
|
|
29
|
+
line-height: ${et.lineHeight};
|
|
30
|
+
text-transform: ${et.textTransform};
|
|
31
|
+
text-decoration: ${et.textDecoration};
|
|
32
|
+
}
|
|
33
|
+
`,Ae=H.css`
|
|
31
34
|
.ft-typography--subtitle2 {
|
|
32
|
-
font-family: ${
|
|
33
|
-
font-size: ${
|
|
34
|
-
font-weight: ${
|
|
35
|
-
letter-spacing: ${
|
|
36
|
-
line-height: ${
|
|
37
|
-
text-transform: ${
|
|
35
|
+
font-family: ${it.fontFamily};
|
|
36
|
+
font-size: ${it.fontSize};
|
|
37
|
+
font-weight: ${it.fontWeight};
|
|
38
|
+
letter-spacing: ${it.letterSpacing};
|
|
39
|
+
line-height: ${it.lineHeight};
|
|
40
|
+
text-transform: ${it.textTransform};
|
|
41
|
+
text-decoration: ${it.textDecoration};
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
`,
|
|
44
|
+
`,Ee=H.css`
|
|
41
45
|
.ft-typography--body1 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
font-family: ${W.fontFamily};
|
|
47
|
+
font-size: ${W.fontSize};
|
|
48
|
+
font-weight: ${W.fontWeight};
|
|
49
|
+
letter-spacing: ${W.letterSpacing};
|
|
50
|
+
line-height: ${W.lineHeight};
|
|
51
|
+
text-transform: ${W.textTransform};
|
|
52
|
+
text-decoration: ${W.textDecoration};
|
|
53
|
+
}
|
|
54
|
+
`,Rt=H.css`
|
|
50
55
|
.ft-typography--body2 {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
56
|
-
text-transform: ${
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
font-family: ${ot.fontFamily};
|
|
57
|
+
font-size: ${ot.fontSize};
|
|
58
|
+
font-weight: ${ot.fontWeight};
|
|
59
|
+
letter-spacing: ${ot.letterSpacing};
|
|
60
|
+
line-height: ${ot.lineHeight};
|
|
61
|
+
text-transform: ${ot.textTransform};
|
|
62
|
+
text-decoration: ${ot.textDecoration};
|
|
63
|
+
}
|
|
64
|
+
`,ht=H.css`
|
|
59
65
|
.ft-typography--caption {
|
|
60
|
-
font-family: ${
|
|
61
|
-
font-size: ${
|
|
62
|
-
font-weight: ${
|
|
63
|
-
letter-spacing: ${
|
|
64
|
-
line-height: ${
|
|
65
|
-
text-transform: ${
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
font-family: ${C.fontFamily};
|
|
67
|
+
font-size: ${C.fontSize};
|
|
68
|
+
font-weight: ${C.fontWeight};
|
|
69
|
+
letter-spacing: ${C.letterSpacing};
|
|
70
|
+
line-height: ${C.lineHeight};
|
|
71
|
+
text-transform: ${C.textTransform};
|
|
72
|
+
text-decoration: ${C.textDecoration};
|
|
73
|
+
}
|
|
74
|
+
`,$e=H.css`
|
|
68
75
|
.ft-typography--breadcrumb {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
font-family: ${rt.fontFamily};
|
|
77
|
+
font-size: ${rt.fontSize};
|
|
78
|
+
font-weight: ${rt.fontWeight};
|
|
79
|
+
letter-spacing: ${rt.letterSpacing};
|
|
80
|
+
line-height: ${rt.lineHeight};
|
|
81
|
+
text-transform: ${rt.textTransform};
|
|
82
|
+
text-decoration: ${rt.textDecoration};
|
|
83
|
+
}
|
|
84
|
+
`,Oe=H.css`
|
|
77
85
|
.ft-typography--overline {
|
|
78
|
-
font-family: ${
|
|
79
|
-
font-size: ${
|
|
80
|
-
font-weight: ${
|
|
81
|
-
letter-spacing: ${
|
|
82
|
-
line-height: ${
|
|
83
|
-
text-transform: ${
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
font-family: ${nt.fontFamily};
|
|
87
|
+
font-size: ${nt.fontSize};
|
|
88
|
+
font-weight: ${nt.fontWeight};
|
|
89
|
+
letter-spacing: ${nt.letterSpacing};
|
|
90
|
+
line-height: ${nt.lineHeight};
|
|
91
|
+
text-transform: ${nt.textTransform};
|
|
92
|
+
text-decoration: ${nt.textDecoration};
|
|
93
|
+
}
|
|
94
|
+
`,Te=H.css`
|
|
86
95
|
.ft-typography--button {
|
|
87
|
-
font-family: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
92
|
-
text-transform: ${
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
font-family: ${at.fontFamily};
|
|
97
|
+
font-size: ${at.fontSize};
|
|
98
|
+
font-weight: ${at.fontWeight};
|
|
99
|
+
letter-spacing: ${at.letterSpacing};
|
|
100
|
+
line-height: ${at.lineHeight};
|
|
101
|
+
text-transform: ${at.textTransform};
|
|
102
|
+
text-decoration: ${at.textDecoration};
|
|
103
|
+
}
|
|
104
|
+
`,Ce=H.css`
|
|
95
105
|
.ft-typography {
|
|
96
106
|
vertical-align: inherit;
|
|
97
107
|
}
|
|
98
|
-
`;var
|
|
99
|
-
<${
|
|
108
|
+
`;var Re=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},k=class extends Le.FtLitElement{constructor(){super(...arguments),this.variant=I.body1}render(){return this.element?Vt`
|
|
109
|
+
<${kt(this.element)}
|
|
100
110
|
part="text"
|
|
101
111
|
class="ft-typography ft-typography--${this.variant}">
|
|
102
112
|
<slot></slot>
|
|
103
|
-
</${
|
|
104
|
-
`:
|
|
113
|
+
</${kt(this.element)}>
|
|
114
|
+
`:Vt`
|
|
105
115
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};k.styles=[
|
|
116
|
+
`}};k.styles=[ve,Se,_e,Ae,Ee,Rt,ht,$e,Oe,Te,Ce];Re([(0,jt.property)()],k.prototype,"element",void 0);Re([(0,jt.property)()],k.prototype,"variant",void 0);var Ne=h($());var De={"ft-typography":k};(0,Ne.customElements)(De);var Lt=h(V());var Pe=h(P()),g=h($());var u={fontSize:g.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:g.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:g.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:g.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:g.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:g.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:g.FtCssVariableFactory.extend("--ft-input-label-border-color","",g.designSystemVariables.colorOutline),textColor:g.FtCssVariableFactory.extend("--ft-input-label-text-color","",g.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:g.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",g.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:g.FtCssVariableFactory.extend("--ft-input-label-background-color","",g.designSystemVariables.colorSurface),borderRadius:g.FtCssVariableFactory.extend("--ft-input-label-border-radius","",g.designSystemVariables.borderRadiusS),colorError:g.FtCssVariableFactory.external(g.designSystemVariables.colorError,"Design system")},He=Pe.css`
|
|
107
117
|
.ft-input-label {
|
|
108
118
|
position: absolute;
|
|
109
119
|
inset: 0;
|
|
110
120
|
display: flex;
|
|
111
|
-
background-color: ${
|
|
112
|
-
border-radius: ${
|
|
121
|
+
background-color: ${u.backgroundColor};
|
|
122
|
+
border-radius: ${u.borderRadius} ${u.borderRadius} 0 0;
|
|
113
123
|
}
|
|
114
124
|
|
|
115
125
|
.ft-input-label--outlined {
|
|
116
|
-
border-radius: ${
|
|
126
|
+
border-radius: ${u.borderRadius};
|
|
117
127
|
}
|
|
118
128
|
|
|
119
129
|
.ft-input-label {
|
|
120
|
-
border-color: ${
|
|
130
|
+
border-color: ${u.borderColor};
|
|
121
131
|
}
|
|
122
132
|
|
|
123
133
|
.ft-input-label.ft-input-label--in-error {
|
|
124
|
-
border-color: ${
|
|
134
|
+
border-color: ${u.colorError}
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
.ft-input-label:before,
|
|
@@ -134,7 +144,7 @@
|
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
.ft-input-label:before {
|
|
137
|
-
width: calc(${
|
|
147
|
+
width: calc(${u.horizontalSpacing} - 4px);
|
|
138
148
|
flex-shrink: 0;
|
|
139
149
|
}
|
|
140
150
|
|
|
@@ -150,20 +160,20 @@
|
|
|
150
160
|
border-bottom-width: 1px;
|
|
151
161
|
border-bottom-style: solid;
|
|
152
162
|
border-color: inherit;
|
|
153
|
-
color: ${
|
|
163
|
+
color: ${u.textColor};
|
|
154
164
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
155
|
-
max-width: calc(${
|
|
165
|
+
max-width: calc(${u.labelMaxWidth} - 2 * (${u.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
156
166
|
text-overflow: ellipsis;
|
|
157
|
-
${(0,g.setVariable)(
|
|
158
|
-
${(0,g.setVariable)(
|
|
167
|
+
${(0,g.setVariable)(C.fontSize,u.fontSize)};
|
|
168
|
+
${(0,g.setVariable)(C.lineHeight,u.fontSize)};
|
|
159
169
|
}
|
|
160
170
|
|
|
161
171
|
.ft-input-label--in-error .ft-input-label--text {
|
|
162
|
-
color: ${
|
|
172
|
+
color: ${u.colorError}
|
|
163
173
|
}
|
|
164
174
|
|
|
165
175
|
.ft-input-label--disabled .ft-input-label--text {
|
|
166
|
-
color: ${
|
|
176
|
+
color: ${u.disabledTextColor};
|
|
167
177
|
}
|
|
168
178
|
|
|
169
179
|
.ft-input-label--hidden-text {
|
|
@@ -175,24 +185,24 @@
|
|
|
175
185
|
|
|
176
186
|
.ft-input-label--floating-text {
|
|
177
187
|
position: absolute;
|
|
178
|
-
top: calc(50% - ${
|
|
188
|
+
top: calc(50% - ${C.lineHeight} / 2);
|
|
179
189
|
transition: top 250ms;
|
|
180
190
|
overflow: hidden;
|
|
181
191
|
white-space: nowrap;
|
|
182
192
|
text-overflow: ellipsis;
|
|
183
|
-
padding: ${
|
|
184
|
-
margin: calc(${
|
|
193
|
+
padding: ${u.verticalSpacing} 4px;
|
|
194
|
+
margin: calc(${u.verticalSpacing} * -1) 0;
|
|
185
195
|
max-width: 100%;
|
|
186
196
|
box-sizing: border-box;
|
|
187
197
|
}
|
|
188
198
|
|
|
189
199
|
.ft-input-label--raised .ft-input-label--text {
|
|
190
|
-
${(0,g.setVariable)(
|
|
191
|
-
${(0,g.setVariable)(
|
|
200
|
+
${(0,g.setVariable)(C.fontSize,u.raisedFontSize)};
|
|
201
|
+
${(0,g.setVariable)(C.lineHeight,u.raisedFontSize)};
|
|
192
202
|
}
|
|
193
203
|
|
|
194
204
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
195
|
-
top: ${
|
|
205
|
+
top: ${u.verticalSpacing};
|
|
196
206
|
}
|
|
197
207
|
|
|
198
208
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -205,36 +215,36 @@
|
|
|
205
215
|
.ft-input-label--outlined:before {
|
|
206
216
|
border-left-width: 1px;
|
|
207
217
|
border-left-style: solid;
|
|
208
|
-
border-radius: ${
|
|
218
|
+
border-radius: ${u.borderRadius} 0 0 ${u.borderRadius};
|
|
209
219
|
}
|
|
210
220
|
|
|
211
221
|
.ft-input-label--outlined:after {
|
|
212
222
|
border-right-width: 1px;
|
|
213
223
|
border-right-style: solid;
|
|
214
|
-
border-radius: 0 ${
|
|
224
|
+
border-radius: 0 ${u.borderRadius} ${u.borderRadius} 0;
|
|
215
225
|
}
|
|
216
226
|
|
|
217
227
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
218
228
|
padding: 2px 4px;
|
|
219
|
-
z-index: ${
|
|
220
|
-
background-color: ${
|
|
221
|
-
border-radius: ${
|
|
222
|
-
top: calc((${
|
|
229
|
+
z-index: ${u.raisedZIndex};
|
|
230
|
+
background-color: ${u.backgroundColor};
|
|
231
|
+
border-radius: ${u.borderRadius};
|
|
232
|
+
top: calc((${C.lineHeight} / -2) + 2px);
|
|
223
233
|
}
|
|
224
234
|
|
|
225
235
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
226
236
|
border-top: none;
|
|
227
237
|
}
|
|
228
|
-
`;var
|
|
229
|
-
<div class="${(0,
|
|
230
|
-
${
|
|
238
|
+
`;var Zt=h(P()),Yt=h(V());var Me=h(ut()),Be=h($()),we=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},lt=class extends Be.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Zt.html`
|
|
239
|
+
<div class="${(0,Me.classMap)(this.inputLabelClasses)}">
|
|
240
|
+
${mt(this.text,()=>Zt.html`
|
|
231
241
|
<div class="ft-input-label--text ft-typography--caption">
|
|
232
242
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
233
243
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
234
244
|
</div>
|
|
235
245
|
`)}
|
|
236
246
|
</div>
|
|
237
|
-
`}};
|
|
247
|
+
`}};lt.elementDefinitions={};we([(0,Yt.property)({type:String})],lt.prototype,"text",void 0);we([(0,Yt.property)({type:Boolean})],lt.prototype,"raised",void 0);var Xt=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},M=class extends lt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};M.elementDefinitions={};M.styles=[ht,He];Xt([(0,Lt.property)({type:Boolean})],M.prototype,"outlined",void 0);Xt([(0,Lt.property)({type:Boolean})],M.prototype,"error",void 0);Xt([(0,Lt.property)({type:Boolean})],M.prototype,"disabled",void 0);var We=h($());var ze={"ft-input-label":M};(0,We.customElements)(ze);var Ye=h(P()),O=h(V()),Xe=h(ut()),St=h($());var je=h(P()),A=h($()),Ue=A.FtCssVariableFactory.extend("--ft-ripple-color","",A.designSystemVariables.colorContent),R={color:Ue,backgroundColor:A.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ue),opacityContentOnSurfacePressed:A.FtCssVariableFactory.external(A.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:A.FtCssVariableFactory.external(A.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:A.FtCssVariableFactory.external(A.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:A.FtCssVariableFactory.external(A.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:A.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ge=A.FtCssVariableFactory.extend("--ft-ripple-color","",A.designSystemVariables.colorPrimary),ke={color:Ge,backgroundColor:A.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ge)},Ke=A.FtCssVariableFactory.extend("--ft-ripple-color","",A.designSystemVariables.colorSecondary),Ve={color:Ke,backgroundColor:A.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ke)},Ze=je.css`
|
|
238
248
|
:host {
|
|
239
249
|
display: contents;
|
|
240
250
|
}
|
|
@@ -247,7 +257,7 @@
|
|
|
247
257
|
|
|
248
258
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
249
259
|
overflow: hidden;
|
|
250
|
-
border-radius: ${
|
|
260
|
+
border-radius: ${R.borderRadius};
|
|
251
261
|
}
|
|
252
262
|
|
|
253
263
|
.ft-ripple .ft-ripple--background,
|
|
@@ -281,27 +291,27 @@
|
|
|
281
291
|
}
|
|
282
292
|
|
|
283
293
|
.ft-ripple .ft-ripple--background {
|
|
284
|
-
background-color: ${
|
|
294
|
+
background-color: ${R.backgroundColor};
|
|
285
295
|
}
|
|
286
296
|
|
|
287
297
|
.ft-ripple .ft-ripple--effect {
|
|
288
|
-
background-color: ${
|
|
298
|
+
background-color: ${R.color};
|
|
289
299
|
}
|
|
290
300
|
|
|
291
301
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
292
|
-
background-color: ${
|
|
302
|
+
background-color: ${Ve.backgroundColor};
|
|
293
303
|
}
|
|
294
304
|
|
|
295
305
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
296
|
-
background-color: ${
|
|
306
|
+
background-color: ${Ve.color};
|
|
297
307
|
}
|
|
298
308
|
|
|
299
309
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
300
|
-
background-color: ${
|
|
310
|
+
background-color: ${ke.backgroundColor};
|
|
301
311
|
}
|
|
302
312
|
|
|
303
313
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
304
|
-
background-color: ${
|
|
314
|
+
background-color: ${ke.color};
|
|
305
315
|
}
|
|
306
316
|
|
|
307
317
|
.ft-ripple .ft-ripple--background {
|
|
@@ -331,33 +341,33 @@
|
|
|
331
341
|
}
|
|
332
342
|
|
|
333
343
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
334
|
-
opacity: ${
|
|
344
|
+
opacity: ${R.opacityContentOnSurfaceHover};
|
|
335
345
|
}
|
|
336
346
|
|
|
337
347
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
338
|
-
opacity: ${
|
|
348
|
+
opacity: ${R.opacityContentOnSurfaceSelected};
|
|
339
349
|
}
|
|
340
350
|
|
|
341
351
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
342
|
-
opacity: ${
|
|
352
|
+
opacity: ${R.opacityContentOnSurfaceFocused};
|
|
343
353
|
}
|
|
344
354
|
|
|
345
355
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
346
|
-
opacity: ${
|
|
356
|
+
opacity: ${R.opacityContentOnSurfacePressed};
|
|
347
357
|
transform: translate(-50%, -50%) scale(1);
|
|
348
358
|
}
|
|
349
|
-
`;var
|
|
359
|
+
`;var L=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},b=class extends St.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 St.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new St.Debouncer(10),this.moveRipple=e=>{var i,o;let{x:r,y:n}=this.getCoordinates(e),a=(o=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(r!=null?r-a.x:a.width/2),this.originY=Math.round(n!=null?n-a.y:a.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 Ye.html`
|
|
350
360
|
<style>
|
|
351
361
|
.ft-ripple .ft-ripple--effect {
|
|
352
362
|
left: ${this.originX}px;
|
|
353
363
|
top: ${this.originY}px;
|
|
354
364
|
}
|
|
355
365
|
</style>
|
|
356
|
-
<div class="${(0,
|
|
366
|
+
<div class="${(0,Xe.classMap)(e)}">
|
|
357
367
|
<div class="ft-ripple--background"></div>
|
|
358
368
|
<div class="ft-ripple--effect"></div>
|
|
359
369
|
</div>
|
|
360
|
-
`}contentAvailableCallback(
|
|
370
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var i,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.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 e,i;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((i=this.target)!==null&&i!==void 0?i:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let i=(...f)=>d=>{f.forEach(m=>window.addEventListener(m,this.endPress,{once:!0})),this.startPress(d)},o=i("mouseup","contextmenu"),r=i("touchend","touchcancel"),n=f=>{["Enter"," "].includes(f.key)&&i("keyup")(f)},a={passive:!0};e.addEventListener("mouseover",this.startHover,a),e.addEventListener("mousemove",this.moveRipple,a),e.addEventListener("mouseleave",this.endHover,a),e.addEventListener("mousedown",o,a),e.addEventListener("touchstart",r,a),e.addEventListener("touchmove",this.moveRipple,a),e.addEventListener("keydown",n,a),e.addEventListener("focus",this.startFocus,a),e.addEventListener("blur",this.endFocus,a),e.addEventListener("focusin",this.startFocus,a),e.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,a),e.removeEventListener("mousemove",this.moveRipple,a),e.removeEventListener("mouseleave",this.endHover,a),e.removeEventListener("mousedown",o,a),e.removeEventListener("touchstart",r,a),e.removeEventListener("touchmove",this.moveRipple,a),e.removeEventListener("keydown",n,a),e.removeEventListener("focus",this.startFocus,a),e.removeEventListener("blur",this.endFocus,a),e.removeEventListener("focusin",this.startFocus,a),e.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let i=e,o=e,r,n;return i.x!=null?{x:r,y:n}=i:o.touches!=null&&(r=o.touches[0].clientX,n=o.touches[0].clientY),{x:r,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};b.elementDefinitions={};b.styles=Ze;L([(0,O.property)({type:Boolean})],b.prototype,"primary",void 0);L([(0,O.property)({type:Boolean})],b.prototype,"secondary",void 0);L([(0,O.property)({type:Boolean})],b.prototype,"unbounded",void 0);L([(0,O.property)({type:Boolean})],b.prototype,"activated",void 0);L([(0,O.property)({type:Boolean})],b.prototype,"selected",void 0);L([(0,O.property)({type:Boolean})],b.prototype,"disabled",void 0);L([(0,O.state)()],b.prototype,"hovered",void 0);L([(0,O.state)()],b.prototype,"focused",void 0);L([(0,O.state)()],b.prototype,"pressed",void 0);L([(0,O.state)()],b.prototype,"rippling",void 0);L([(0,O.state)()],b.prototype,"originX",void 0);L([(0,O.state)()],b.prototype,"originY",void 0);L([(0,O.query)(".ft-ripple")],b.prototype,"ripple",void 0);L([(0,O.query)(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0);var Je=h($());var qe={"ft-ripple":b};(0,Je.customElements)(qe);var Qe=h(P()),z=h($()),B={size:z.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:z.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:z.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:z.FtCssVariableFactory.extend("--ft-icon-material-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:z.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ie=[Qe.css`
|
|
361
371
|
:host, i.ft-icon {
|
|
362
372
|
display: inline-flex;
|
|
363
373
|
align-items: center;
|
|
@@ -405,12 +415,12 @@
|
|
|
405
415
|
.ft-icon--material {
|
|
406
416
|
font-family: ${B.materialFontFamily}, "Material Icons", sans-serif;
|
|
407
417
|
}
|
|
408
|
-
`,z.noTextSelect];var Z;(function(
|
|
409
|
-
<i class="ft-icon ft-icon--${
|
|
418
|
+
`,z.noTextSelect];var Z;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Z||(Z={}));var _t=h(P()),Y=h(V()),ei=h($()),ii=h(ti());var st;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(st||(st={}));var s;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(s||(s={}));var Mo=new Map([...["abw"].map(t=>[t,s.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,s.AUDIO]),...["avi"].map(t=>[t,s.AVI]),...["chm","xhs"].map(t=>[t,s.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,s.CODE]),...["csv"].map(t=>[t,s.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,s.DITA]),...["epub"].map(t=>[t,s.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,s.EXCEL]),...["flac"].map(t=>[t,s.FLAC]),...["gif"].map(t=>[t,s.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,s.GZIP]),...["html","htm","xhtml"].map(t=>[t,s.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,s.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,s.JPEG]),...["json"].map(t=>[t,s.JSON]),...["m4a","m4p"].map(t=>[t,s.M4A]),...["mov","qt"].map(t=>[t,s.MOV]),...["mp3"].map(t=>[t,s.MP3]),...["mp4","m4v"].map(t=>[t,s.MP4]),...["ogg","oga"].map(t=>[t,s.OGG]),...["pdf","ps"].map(t=>[t,s.PDF]),...["png"].map(t=>[t,s.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,s.POWERPOINT]),...["rar"].map(t=>[t,s.RAR]),...["stp"].map(t=>[t,s.STP]),...["txt","rtf","md","mdown"].map(t=>[t,s.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,s.VIDEO]),...["wav"].map(t=>[t,s.WAV]),...["wma"].map(t=>[t,s.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,s.WORD]),...["xml","xsl","rdf"].map(t=>[t,s.XML]),...["yaml","yml","x-yaml"].map(t=>[t,s.YAML]),...["zip"].map(t=>[t,s.ZIP])]);var Bo={[s.ABW]:"#91ABC6",[s.AUDIO]:"#1795E3",[s.AVI]:"#E63324",[s.CHM]:"#71C3EB",[s.CODE]:"#71C3EB",[s.CSV]:"#1F7345",[s.DITA]:"#71C3EB",[s.EPUB]:"#85B926",[s.EXCEL]:"#1F7345",[s.FLAC]:"#1795E3",[s.GIF]:"#59B031",[s.GZIP]:"#F8AB36",[s.HTML]:"#71C3EB",[s.IMAGE]:"#59B031",[s.JPEG]:"#59B031",[s.JSON]:"#71C3EB",[s.M4A]:"#1795E3",[s.MOV]:"#E63324",[s.MP3]:"#1795E3",[s.MP4]:"#E63324",[s.OGG]:"#1795E3",[s.PDF]:"#E44948",[s.PNG]:"#59B031",[s.POWERPOINT]:"#B54A2B",[s.RAR]:"#F8AB36",[s.STP]:"#3764B1",[s.TEXT]:"#3162AB",[s.UNKNOWN]:"#999999",[s.VIDEO]:"#E63324",[s.WAV]:"#1795E3",[s.WMA]:"#1795E3",[s.WORD]:"#3162AB",[s.XML]:"#71C3EB",[s.YAML]:"#71C3EB",[s.ZIP]:"#F8AB36"};var At=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},N=class extends ei.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_t.nothing}render(){let e=this.variant&&Object.values(Z).includes(this.variant)?this.variant:Z.fluid_topics,i=e!==Z.material||!!this.value;return _t.html`
|
|
419
|
+
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
410
420
|
${(0,ii.unsafeHTML)(this.resolvedIcon)}
|
|
411
421
|
<slot ?hidden=${i}></slot>
|
|
412
422
|
</i>
|
|
413
|
-
`}getTextContent(){var
|
|
423
|
+
`}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let o=this.value||this.getTextContent();switch(this.variant){case Z.file_format:this.resolvedIcon=(e=s[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Z.material:this.resolvedIcon=this.value||_t.nothing;break;default:this.resolvedIcon=(i=st[o.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};N.elementDefinitions={};N.styles=Ie;At([(0,Y.property)()],N.prototype,"variant",void 0);At([(0,Y.property)()],N.prototype,"value",void 0);At([(0,Y.property)({reflect:!0,attribute:"aria-hidden"})],N.prototype,"ariaHidden",void 0);At([(0,Y.state)()],N.prototype,"resolvedIcon",void 0);At([(0,Y.query)("slot")],N.prototype,"slottedContent",void 0);var ri=h($());var oi={"ft-icon":N};(0,ri.customElements)(oi);var ni=h(P()),c=h($());var x={labelSize:c.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:c.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:c.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:c.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:c.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:c.FtCssVariableFactory.extend("--ft-select-selected-option-color","",c.designSystemVariables.colorOnSurface),helperColor:c.FtCssVariableFactory.extend("--ft-select-helper-color","",c.designSystemVariables.colorOnSurfaceMedium),optionsColor:c.FtCssVariableFactory.extend("--ft-select-options-color","",c.designSystemVariables.colorOnSurface),optionsZIndex:c.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:c.FtCssVariableFactory.extend("--ft-select-background-color","",c.designSystemVariables.colorSurface),colorOnSurfaceDisabled:c.FtCssVariableFactory.external(c.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:c.FtCssVariableFactory.external(c.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:c.FtCssVariableFactory.external(c.designSystemVariables.borderRadiusS,"Design system"),elevation02:c.FtCssVariableFactory.external(c.designSystemVariables.elevation02,"Design system"),colorError:c.FtCssVariableFactory.external(c.designSystemVariables.colorError,"Design system")},ai=ni.css`
|
|
414
424
|
*:focus {
|
|
415
425
|
outline: none;
|
|
416
426
|
}
|
|
@@ -425,7 +435,7 @@
|
|
|
425
435
|
.ft-select--main-panel {
|
|
426
436
|
position: relative;
|
|
427
437
|
display: flex;
|
|
428
|
-
height: calc(4 * ${
|
|
438
|
+
height: calc(4 * ${x.verticalSpacing} + ${x.labelSize} + ${x.selectedOptionSize});
|
|
429
439
|
}
|
|
430
440
|
|
|
431
441
|
.ft-select--input-panel {
|
|
@@ -434,17 +444,17 @@
|
|
|
434
444
|
display: flex;
|
|
435
445
|
align-items: center;
|
|
436
446
|
overflow: hidden;
|
|
437
|
-
padding-left: ${
|
|
438
|
-
padding-right: ${
|
|
447
|
+
padding-left: ${x.horizontalSpacing};
|
|
448
|
+
padding-right: ${x.horizontalSpacing};
|
|
439
449
|
gap: 8px;
|
|
440
|
-
color: ${
|
|
441
|
-
${(0,c.setVariable)(
|
|
450
|
+
color: ${x.selectedOptionColor};
|
|
451
|
+
${(0,c.setVariable)(R.color,x.selectedOptionColor)};
|
|
442
452
|
}
|
|
443
453
|
|
|
444
454
|
.ft-select--input-panel,
|
|
445
455
|
.ft-select--options {
|
|
446
|
-
${(0,c.setVariable)(
|
|
447
|
-
${(0,c.setVariable)(
|
|
456
|
+
${(0,c.setVariable)(R.opacityContentOnSurfaceHover,"0.08")};
|
|
457
|
+
${(0,c.setVariable)(R.opacityContentOnSurfacePressed,"0.04")};
|
|
448
458
|
}
|
|
449
459
|
|
|
450
460
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -453,7 +463,7 @@
|
|
|
453
463
|
|
|
454
464
|
.ft-select--disabled .ft-select--input-panel,
|
|
455
465
|
.ft-select--disabled .ft-select--options {
|
|
456
|
-
color: ${
|
|
466
|
+
color: ${x.colorOnSurfaceDisabled};
|
|
457
467
|
}
|
|
458
468
|
|
|
459
469
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -462,21 +472,21 @@
|
|
|
462
472
|
}
|
|
463
473
|
|
|
464
474
|
ft-input-label {
|
|
465
|
-
${(0,c.setVariable)(
|
|
466
|
-
${(0,c.setVariable)(
|
|
467
|
-
${(0,c.setVariable)(
|
|
468
|
-
${(0,c.setVariable)(
|
|
469
|
-
${(0,c.setVariable)(
|
|
470
|
-
${(0,c.setVariable)(
|
|
475
|
+
${(0,c.setVariable)(u.fontSize,x.selectedOptionSize)};
|
|
476
|
+
${(0,c.setVariable)(u.raisedFontSize,x.labelSize)};
|
|
477
|
+
${(0,c.setVariable)(u.verticalSpacing,x.verticalSpacing)};
|
|
478
|
+
${(0,c.setVariable)(u.horizontalSpacing,x.horizontalSpacing)};
|
|
479
|
+
${(0,c.setVariable)(u.backgroundColor,x.backgroundColor)};
|
|
480
|
+
${(0,c.setVariable)(u.labelMaxWidth,`calc(100% - ${B.size} - 8px)`)};
|
|
471
481
|
}
|
|
472
482
|
|
|
473
483
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
474
|
-
color: ${
|
|
484
|
+
color: ${x.colorPrimary};
|
|
475
485
|
}
|
|
476
486
|
|
|
477
487
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
478
|
-
${(0,c.setVariable)(
|
|
479
|
-
${(0,c.setVariable)(
|
|
488
|
+
${(0,c.setVariable)(u.borderColor,x.colorPrimary)};
|
|
489
|
+
${(0,c.setVariable)(u.textColor,x.colorPrimary)};
|
|
480
490
|
}
|
|
481
491
|
|
|
482
492
|
.ft-select--selected-option {
|
|
@@ -486,12 +496,12 @@
|
|
|
486
496
|
overflow: hidden;
|
|
487
497
|
white-space: nowrap;
|
|
488
498
|
text-overflow: ellipsis;
|
|
489
|
-
${(0,c.setVariable)(
|
|
490
|
-
${(0,c.setVariable)(
|
|
499
|
+
${(0,c.setVariable)(W.fontSize,x.selectedOptionSize)};
|
|
500
|
+
${(0,c.setVariable)(W.lineHeight,x.selectedOptionSize)};
|
|
491
501
|
}
|
|
492
502
|
|
|
493
503
|
.ft-select--in-error .ft-select--selected-option {
|
|
494
|
-
color: ${
|
|
504
|
+
color: ${x.colorError};
|
|
495
505
|
}
|
|
496
506
|
|
|
497
507
|
ft-icon {
|
|
@@ -501,26 +511,26 @@
|
|
|
501
511
|
|
|
502
512
|
|
|
503
513
|
.ft-select--filled .ft-select--input-panel {
|
|
504
|
-
border-radius: ${
|
|
514
|
+
border-radius: ${x.borderRadiusS} ${x.borderRadiusS} 0 0;
|
|
505
515
|
}
|
|
506
516
|
|
|
507
517
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
508
518
|
align-self: stretch;
|
|
509
|
-
padding-top: calc(${
|
|
519
|
+
padding-top: calc(${x.labelSize} + 2 * ${x.verticalSpacing});
|
|
510
520
|
}
|
|
511
521
|
|
|
512
522
|
.ft-select--outlined .ft-select--input-panel {
|
|
513
|
-
border-radius: ${
|
|
523
|
+
border-radius: ${x.borderRadiusS};
|
|
514
524
|
}
|
|
515
525
|
|
|
516
526
|
.ft-select--options {
|
|
517
527
|
display: none;
|
|
518
528
|
position: absolute;
|
|
519
529
|
top: 100%;
|
|
520
|
-
color: ${
|
|
521
|
-
background: ${
|
|
522
|
-
z-index: ${
|
|
523
|
-
box-shadow: ${
|
|
530
|
+
color: ${x.optionsColor};
|
|
531
|
+
background: ${x.backgroundColor};
|
|
532
|
+
z-index: ${x.optionsZIndex};
|
|
533
|
+
box-shadow: ${x.elevation02};
|
|
524
534
|
width: max-content;
|
|
525
535
|
}
|
|
526
536
|
|
|
@@ -530,26 +540,26 @@
|
|
|
530
540
|
|
|
531
541
|
.ft-select--options-displayed .ft-select--options {
|
|
532
542
|
display: block;
|
|
533
|
-
max-height: ${
|
|
543
|
+
max-height: ${x.optionsHeight};
|
|
534
544
|
overflow-y: auto;
|
|
535
545
|
}
|
|
536
546
|
|
|
537
547
|
.ft-select--helper-text {
|
|
538
|
-
padding: 0 ${
|
|
539
|
-
color: ${
|
|
548
|
+
padding: 0 ${x.horizontalSpacing};
|
|
549
|
+
color: ${x.helperColor};
|
|
540
550
|
}
|
|
541
551
|
|
|
542
552
|
.ft-select--in-error .ft-select--helper-text {
|
|
543
|
-
color: ${
|
|
553
|
+
color: ${x.colorError};
|
|
544
554
|
}
|
|
545
555
|
|
|
546
556
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
547
557
|
opacity: 0;
|
|
548
558
|
}
|
|
549
|
-
`;var
|
|
559
|
+
`;var Dt=h($());var ct=h(P()),pi=h(ut()),X=h(V());var qt=h($());var li=h(P()),si=li.css`
|
|
550
560
|
.ft-select--option {
|
|
551
|
-
${(0,
|
|
552
|
-
${(0,
|
|
561
|
+
${(0,qt.setVariable)(R.opacityContentOnSurfaceHover,"0.08")};
|
|
562
|
+
${(0,qt.setVariable)(R.opacityContentOnSurfacePressed,"0.04")};
|
|
553
563
|
}
|
|
554
564
|
|
|
555
565
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -558,14 +568,14 @@
|
|
|
558
568
|
|
|
559
569
|
.ft-select--option {
|
|
560
570
|
position: relative;
|
|
561
|
-
padding: 4px ${
|
|
571
|
+
padding: 4px ${x.horizontalSpacing};
|
|
562
572
|
min-height: 32px;
|
|
563
573
|
display: flex;
|
|
564
574
|
align-items: center;
|
|
565
575
|
}
|
|
566
576
|
|
|
567
577
|
.ft-select--option:hover {
|
|
568
|
-
border-left: 2px ${
|
|
578
|
+
border-left: 2px ${x.colorPrimary} solid;
|
|
569
579
|
}
|
|
570
580
|
|
|
571
581
|
.ft-select--option span {
|
|
@@ -573,9 +583,9 @@
|
|
|
573
583
|
overflow: hidden;
|
|
574
584
|
}
|
|
575
585
|
|
|
576
|
-
`;var
|
|
586
|
+
`;var Et=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},D=class extends Dt.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,i;let o={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return ct.html`
|
|
577
587
|
<div class="${(0,pi.classMap)(o)}"
|
|
578
|
-
part="option option-${(i=(
|
|
588
|
+
part="option option-${(i=(e=this.value)===null||e===void 0?void 0:e.toString())===null||i===void 0?void 0:i.replace(/[^\w-]/g,"")}"
|
|
579
589
|
tabindex="0"
|
|
580
590
|
aria-label="${this.label}"
|
|
581
591
|
data-value="${this.value}"
|
|
@@ -583,31 +593,31 @@
|
|
|
583
593
|
<ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
|
|
584
594
|
<slot @slotchange=${this.onSlotChange}>
|
|
585
595
|
</slot>
|
|
586
|
-
${this.isSlotEmpty?
|
|
596
|
+
${this.isSlotEmpty?ct.html`<span>${this.label}</span>`:ct.html``}
|
|
587
597
|
</div>
|
|
588
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
598
|
+
`}onSlotChange(){this.isSlotEmpty=(0,Dt.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};D.elementDefinitions={"ft-ripple":b};D.shadowRootOptions={...ct.LitElement.shadowRootOptions,delegatesFocus:!0};D.styles=[si,Rt];Et([(0,X.property)({type:String})],D.prototype,"label",void 0);Et([(0,X.property)({type:Object,converter:t=>t})],D.prototype,"value",void 0);Et([(0,X.property)({type:Boolean,reflect:!0})],D.prototype,"selected",void 0);Et([(0,X.query)("slot")],D.prototype,"slotElement",void 0);Et([(0,X.state)()],D.prototype,"isSlotEmpty",void 0);var T=function(t,e,i,o){var r=arguments.length,n=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(n=(r<3?a(n):r>3?a(e,i,n):a(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};var v=class t extends w.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,w.last)(this.optionsList)}render(){var e,i,o,r,n;let a=this.hasOptionsMenuOpen,f=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&o!==void 0?o:"").length>0,m={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":f,"ft-select--options-displayed":a,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return xt.html`
|
|
589
599
|
<div class="${(0,fi.classMap)(m)}" part="container">
|
|
590
600
|
<div class="ft-select--main-panel" part="main-panel">
|
|
591
601
|
<ft-input-label text="${this.label}"
|
|
592
602
|
part="label"
|
|
593
603
|
id="label"
|
|
594
|
-
?disabled=${
|
|
604
|
+
?disabled=${f}
|
|
595
605
|
?outlined=${this.outlined}
|
|
596
|
-
?raised=${d||
|
|
606
|
+
?raised=${d||a}
|
|
597
607
|
?error=${this.error}
|
|
598
608
|
></ft-input-label>
|
|
599
609
|
<div class="ft-select--input-panel"
|
|
600
610
|
part="selected-value"
|
|
601
|
-
tabindex="${
|
|
611
|
+
tabindex="${f?"-1":"0"}"
|
|
602
612
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
603
613
|
@keydown=${this.onMainPanelKeyDown}
|
|
604
|
-
aria-label="${
|
|
605
|
-
aria-labelledby="${
|
|
614
|
+
aria-label="${Gt(this.ariaLabel)}"
|
|
615
|
+
aria-labelledby="${mt(!this.ariaLabel,()=>"label")}"
|
|
606
616
|
aria-haspopup="listbox"
|
|
607
|
-
aria-expanded="${
|
|
608
|
-
aria-activedescendant="${
|
|
617
|
+
aria-expanded="${a}"
|
|
618
|
+
aria-activedescendant="${Gt(this.getOptionId(this.selectedOption))}"
|
|
609
619
|
role="combobox">
|
|
610
|
-
<ft-ripple ?disabled=${
|
|
620
|
+
<ft-ripple ?disabled=${f} ?activated=${!this.outlined}></ft-ripple>
|
|
611
621
|
<slot name="input-value">
|
|
612
622
|
<ft-typography variant="${I.body1}"
|
|
613
623
|
aria-hidden="${d?"false":"true"}"
|
|
@@ -615,7 +625,7 @@
|
|
|
615
625
|
${(n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:this.label}
|
|
616
626
|
</ft-typography>
|
|
617
627
|
</slot>
|
|
618
|
-
<ft-icon aria-hidden="true" .value=${
|
|
628
|
+
<ft-icon aria-hidden="true" .value=${a?st.THIN_ARROW_UP:st.THIN_ARROW}></ft-icon>
|
|
619
629
|
</div>
|
|
620
630
|
<div class="ft-select--options"
|
|
621
631
|
part="options"
|
|
@@ -626,22 +636,22 @@
|
|
|
626
636
|
@option-change=${this.updateOptionsFromSlot}
|
|
627
637
|
>
|
|
628
638
|
</slot>
|
|
629
|
-
${
|
|
639
|
+
${mt(this.isSlotEmpty,()=>(0,di.repeat)(this.options,S=>S.value,S=>this.renderOption(S)))}
|
|
630
640
|
</div>
|
|
631
641
|
</div>
|
|
632
642
|
<slot name="helper" part="helper">
|
|
633
|
-
${this.helper?
|
|
643
|
+
${this.helper?xt.html`
|
|
634
644
|
<ft-typography class="ft-select--helper-text" variant="${I.caption}">${this.helper}
|
|
635
|
-
</ft-typography>`:
|
|
645
|
+
</ft-typography>`:xt.nothing}
|
|
636
646
|
</slot>
|
|
637
647
|
</div>
|
|
638
|
-
`}renderOption(
|
|
648
|
+
`}renderOption(e){let i=this.selectedOption===e;return xt.html`
|
|
639
649
|
<ft-select-option
|
|
640
650
|
?selected=${i}
|
|
641
|
-
label="${
|
|
642
|
-
.value=${
|
|
651
|
+
label="${e.label}"
|
|
652
|
+
.value=${e.value}
|
|
643
653
|
></ft-select-option>
|
|
644
|
-
`}willUpdate(
|
|
654
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(i=>i.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var i,o;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((o=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||o===void 0||o.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let r=["bottom","top"];(0,w.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",r,"fixed",x.optionsHeight,0).then(({x:n,y:a})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${a}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var i;e.stopPropagation(),this.isSlotEmpty=(0,w.isSlotEmptyOrWithoutContent)(this.optionsSlot);let o=(i=this.optionsSlot)===null||i===void 0?void 0:i.assignedElements().map(r=>r);o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var i,o;let r,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Escape":this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),r=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),r=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(r=this.handleAlphanumericPress(e.key));break}r?.focus()}isKeyAlphanumeric(e){let i=e.charCodeAt(0);return i>47&&i<58||i>64&&i<91||i>96&&i<123}handleAlphanumericPress(e){let i=new Date;i.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let o=this.options.find(r=>{var n;return((n=r.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=i,o&&this.optionsList.find(r=>r.value===o.value)}getOptionId(e){if(!e)return;let i=this.options.findIndex(o=>(0,w.deepEqual)(o.value,e.value));if(i!==-1)return`option-${i}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,i=!0){let o=this.options.find(r=>(0,w.deepEqual)(r.value,e));o&&this.selectOption(o,i)}selectOption(e,i=!0){var o,r;if(!(0,w.deepEqual)((o=this.selectedOption)===null||o===void 0?void 0:o.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;i&&this.dispatchEvent(new CustomEvent("change",{detail:(r=this.selectedOption)===null||r===void 0?void 0:r.value}))}this.optionsDisplayed=!1}};v.elementDefinitions={"ft-input-label":M,"ft-typography":k,"ft-ripple":b,"ft-icon":N,"ft-select-option":D};v.searchTimeoutMilliseconds=2e3;v.styles=[ht,ai];T([(0,E.property)({type:String})],v.prototype,"label",void 0);T([(0,E.property)({type:String})],v.prototype,"ariaLabel",void 0);T([(0,E.property)({type:String})],v.prototype,"helper",void 0);T([(0,E.property)({type:Boolean})],v.prototype,"outlined",void 0);T([(0,E.property)({type:Boolean})],v.prototype,"disabled",void 0);T([(0,E.property)({type:Boolean})],v.prototype,"error",void 0);T([(0,E.property)({type:Boolean})],v.prototype,"fixedMenuPosition",void 0);T([(0,E.property)({type:Array})],v.prototype,"options",void 0);T([(0,E.state)()],v.prototype,"selectedOption",void 0);T([(0,E.state)()],v.prototype,"optionsDisplayed",void 0);T([(0,E.state)()],v.prototype,"focusOptions",void 0);T([(0,E.state)()],v.prototype,"currentSearch",void 0);T([(0,E.state)()],v.prototype,"lastSearchInputDate",void 0);T([(0,E.query)(".ft-select")],v.prototype,"container",void 0);T([(0,E.query)(".ft-select--options")],v.prototype,"optionsMenu",void 0);T([(0,E.query)(".ft-select--input-panel")],v.prototype,"mainPanel",void 0);T([(0,E.query)("slot:not([name])")],v.prototype,"optionsSlot",void 0);var hi={"ft-select":v,"ft-select-option":D};(0,ci.customElements)(hi);})();
|
|
645
655
|
/*! Bundled license information:
|
|
646
656
|
|
|
647
657
|
lit-html/directives/when.js:
|