@fluid-topics/ft-select 2.2.11 → 2.2.12
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 +43 -71
- package/build/ft-select.min.js +39 -67
- package/package.json +7 -7
package/build/ft-select.light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
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`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),se=/'/g,le=/"/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],u,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,u=S[1],a=S[3]===void 0?q:S[3]==='"'?le:se):a===le||a===se?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(u),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,[u,S]=_i(e,i);if(this.el=t.createElement(u,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 u;d.type===2?u=new Ct(n,n.nextSibling,this,e):d.type===1?u=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(u=new Bt(n,this,e)),this._$AV.push(u),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,u;for(e=n[0],d=0;d<n.length-1;d++)u=ft(this,f[o+d],i,d),u===bt&&(u=this._$AH[d]),a||=!gt(u)||u!==this._$AH[d],u===_?e=_:e!==_&&(e+=(u??"")+n[d+1]),this._$AH[d]=u}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,u=0,S=!1;for(;u<o;){for(d=e[u];u<o&&(n=i[u],(r=Ei(n))!==void 0);)d+=r+e[++u],S=!0;u!==o&&f.push(n),a.push(d),u++}if(u===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()),s=h($()),be=s.FtCssVariableFactory.extend("--ft-typography-font-family","",s.designSystemVariables.titleFont),G=s.FtCssVariableFactory.extend("--ft-typography-font-family","",s.designSystemVariables.contentFont),p={fontFamily:G,fontSize:s.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:s.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:s.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:s.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:s.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:s.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},F={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-title-font-family","",be),fontSize:s.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",p.textDecoration,"inherit")},tt={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",be),fontSize:s.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",p.textDecoration,"inherit")},et={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",p.textDecoration,"inherit")},it={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",p.textDecoration,"inherit")},W={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",p.textDecoration,"inherit")},ot={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",p.textDecoration,"inherit")},C={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",p.textDecoration,"inherit")},rt={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",p.textDecoration,"inherit")},nt={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",p.textDecoration,"inherit")},at={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:s.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase"),textDecoration:s.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",p.textDecoration,"inherit")},ve=H.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${F.fontFamily};
|
|
6
6
|
font-size: ${F.fontSize};
|
|
@@ -113,38 +113,36 @@
|
|
|
113
113
|
</${kt(this.element)}>
|
|
114
114
|
`:Vt`
|
|
115
115
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
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
|
|
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 m={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`
|
|
117
117
|
.ft-input-label {
|
|
118
118
|
position: absolute;
|
|
119
119
|
inset: 0;
|
|
120
120
|
display: flex;
|
|
121
|
-
background-color: ${
|
|
122
|
-
border-radius: ${
|
|
121
|
+
background-color: ${m.backgroundColor};
|
|
122
|
+
border-radius: ${m.borderRadius} ${m.borderRadius} 0 0;
|
|
123
|
+
border-color: ${m.borderColor};
|
|
124
|
+
border-bottom-width: 1px;
|
|
125
|
+
border-bottom-style: solid;
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
.ft-input-label--outlined {
|
|
126
|
-
border-radius: ${
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
.ft-input-label {
|
|
130
|
-
border-color: ${u.borderColor};
|
|
129
|
+
border-radius: ${m.borderRadius};
|
|
130
|
+
border-width: 1px;
|
|
131
|
+
border-style: solid;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
.ft-input-label.ft-input-label--in-error {
|
|
134
|
-
border-color: ${
|
|
135
|
+
border-color: ${m.colorError}
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.ft-input-label:before,
|
|
138
139
|
.ft-input-label:after {
|
|
139
140
|
content: "";
|
|
140
141
|
display: flex;
|
|
141
|
-
border-bottom-width: 1px;
|
|
142
|
-
border-bottom-style: solid;
|
|
143
|
-
border-color: inherit;
|
|
144
142
|
}
|
|
145
143
|
|
|
146
144
|
.ft-input-label:before {
|
|
147
|
-
width: calc(${
|
|
145
|
+
width: calc(${m.horizontalSpacing} - 4px);
|
|
148
146
|
flex-shrink: 0;
|
|
149
147
|
}
|
|
150
148
|
|
|
@@ -157,23 +155,20 @@
|
|
|
157
155
|
display: flex;
|
|
158
156
|
flex-shrink: 1;
|
|
159
157
|
position: relative;
|
|
160
|
-
|
|
161
|
-
border-bottom-style: solid;
|
|
162
|
-
border-color: inherit;
|
|
163
|
-
color: ${u.textColor};
|
|
158
|
+
color: ${m.textColor};
|
|
164
159
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
165
|
-
max-width: calc(${
|
|
160
|
+
max-width: calc(${m.labelMaxWidth} - 2 * (${m.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
166
161
|
text-overflow: ellipsis;
|
|
167
|
-
${(0,g.setVariable)(C.fontSize,
|
|
168
|
-
${(0,g.setVariable)(C.lineHeight,
|
|
162
|
+
${(0,g.setVariable)(C.fontSize,m.fontSize)};
|
|
163
|
+
${(0,g.setVariable)(C.lineHeight,m.fontSize)};
|
|
169
164
|
}
|
|
170
165
|
|
|
171
166
|
.ft-input-label--in-error .ft-input-label--text {
|
|
172
|
-
color: ${
|
|
167
|
+
color: ${m.colorError}
|
|
173
168
|
}
|
|
174
169
|
|
|
175
170
|
.ft-input-label--disabled .ft-input-label--text {
|
|
176
|
-
color: ${
|
|
171
|
+
color: ${m.disabledTextColor};
|
|
177
172
|
}
|
|
178
173
|
|
|
179
174
|
.ft-input-label--hidden-text {
|
|
@@ -190,52 +185,29 @@
|
|
|
190
185
|
overflow: hidden;
|
|
191
186
|
white-space: nowrap;
|
|
192
187
|
text-overflow: ellipsis;
|
|
193
|
-
padding: ${
|
|
194
|
-
margin: calc(${
|
|
188
|
+
padding: ${m.verticalSpacing} 4px;
|
|
189
|
+
margin: calc(${m.verticalSpacing} * -1) 0;
|
|
195
190
|
max-width: 100%;
|
|
196
191
|
box-sizing: border-box;
|
|
197
192
|
}
|
|
198
193
|
|
|
199
194
|
.ft-input-label--raised .ft-input-label--text {
|
|
200
|
-
${(0,g.setVariable)(C.fontSize,
|
|
201
|
-
${(0,g.setVariable)(C.lineHeight,
|
|
195
|
+
${(0,g.setVariable)(C.fontSize,m.raisedFontSize)};
|
|
196
|
+
${(0,g.setVariable)(C.lineHeight,m.raisedFontSize)};
|
|
202
197
|
}
|
|
203
198
|
|
|
204
199
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
205
|
-
top: ${
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.ft-input-label--outlined .ft-input-label--text,
|
|
209
|
-
.ft-input-label--outlined:before,
|
|
210
|
-
.ft-input-label--outlined:after {
|
|
211
|
-
border-top-width: 1px;
|
|
212
|
-
border-top-style: solid;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.ft-input-label--outlined:before {
|
|
216
|
-
border-left-width: 1px;
|
|
217
|
-
border-left-style: solid;
|
|
218
|
-
border-radius: ${u.borderRadius} 0 0 ${u.borderRadius};
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.ft-input-label--outlined:after {
|
|
222
|
-
border-right-width: 1px;
|
|
223
|
-
border-right-style: solid;
|
|
224
|
-
border-radius: 0 ${u.borderRadius} ${u.borderRadius} 0;
|
|
200
|
+
top: ${m.verticalSpacing};
|
|
225
201
|
}
|
|
226
202
|
|
|
227
203
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
228
204
|
padding: 2px 4px;
|
|
229
|
-
z-index: ${
|
|
230
|
-
background-color: ${
|
|
231
|
-
border-radius: ${
|
|
205
|
+
z-index: ${m.raisedZIndex};
|
|
206
|
+
background-color: ${m.backgroundColor};
|
|
207
|
+
border-radius: ${m.borderRadius};
|
|
232
208
|
top: calc((${C.lineHeight} / -2) + 2px);
|
|
233
209
|
}
|
|
234
|
-
|
|
235
|
-
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
236
|
-
border-top: none;
|
|
237
|
-
}
|
|
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`
|
|
210
|
+
`;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},st=class extends Be.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Zt.html`
|
|
239
211
|
<div class="${(0,Me.classMap)(this.inputLabelClasses)}">
|
|
240
212
|
${mt(this.text,()=>Zt.html`
|
|
241
213
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -244,7 +216,7 @@
|
|
|
244
216
|
</div>
|
|
245
217
|
`)}
|
|
246
218
|
</div>
|
|
247
|
-
`}};
|
|
219
|
+
`}};st.elementDefinitions={};we([(0,Yt.property)({type:String})],st.prototype,"text",void 0);we([(0,Yt.property)({type:Boolean})],st.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 st{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`
|
|
248
220
|
:host {
|
|
249
221
|
display: contents;
|
|
250
222
|
}
|
|
@@ -367,7 +339,7 @@
|
|
|
367
339
|
<div class="ft-ripple--background"></div>
|
|
368
340
|
<div class="ft-ripple--effect"></div>
|
|
369
341
|
</div>
|
|
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(
|
|
342
|
+
`}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(u=>window.addEventListener(u,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`
|
|
371
343
|
:host, i.ft-icon {
|
|
372
344
|
display: inline-flex;
|
|
373
345
|
align-items: center;
|
|
@@ -415,12 +387,12 @@
|
|
|
415
387
|
.ft-icon--material {
|
|
416
388
|
font-family: ${B.materialFontFamily}, "Material Icons", sans-serif;
|
|
417
389
|
}
|
|
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
|
|
390
|
+
`,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 lt;(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="󨃱"})(lt||(lt={}));var l;(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=""})(l||(l={}));var Mo=new Map([...["abw"].map(t=>[t,l.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,l.AUDIO]),...["avi"].map(t=>[t,l.AVI]),...["chm","xhs"].map(t=>[t,l.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,l.CODE]),...["csv"].map(t=>[t,l.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,l.DITA]),...["epub"].map(t=>[t,l.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,l.EXCEL]),...["flac"].map(t=>[t,l.FLAC]),...["gif"].map(t=>[t,l.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,l.GZIP]),...["html","htm","xhtml"].map(t=>[t,l.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,l.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,l.JPEG]),...["json"].map(t=>[t,l.JSON]),...["m4a","m4p"].map(t=>[t,l.M4A]),...["mov","qt"].map(t=>[t,l.MOV]),...["mp3"].map(t=>[t,l.MP3]),...["mp4","m4v"].map(t=>[t,l.MP4]),...["ogg","oga"].map(t=>[t,l.OGG]),...["pdf","ps"].map(t=>[t,l.PDF]),...["png"].map(t=>[t,l.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,l.POWERPOINT]),...["rar"].map(t=>[t,l.RAR]),...["stp"].map(t=>[t,l.STP]),...["txt","rtf","md","mdown"].map(t=>[t,l.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,l.VIDEO]),...["wav"].map(t=>[t,l.WAV]),...["wma"].map(t=>[t,l.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,l.WORD]),...["xml","xsl","rdf"].map(t=>[t,l.XML]),...["yaml","yml","x-yaml"].map(t=>[t,l.YAML]),...["zip"].map(t=>[t,l.ZIP])]);var Bo={[l.ABW]:"#91ABC6",[l.AUDIO]:"#1795E3",[l.AVI]:"#E63324",[l.CHM]:"#71C3EB",[l.CODE]:"#71C3EB",[l.CSV]:"#1F7345",[l.DITA]:"#71C3EB",[l.EPUB]:"#85B926",[l.EXCEL]:"#1F7345",[l.FLAC]:"#1795E3",[l.GIF]:"#59B031",[l.GZIP]:"#F8AB36",[l.HTML]:"#71C3EB",[l.IMAGE]:"#59B031",[l.JPEG]:"#59B031",[l.JSON]:"#71C3EB",[l.M4A]:"#1795E3",[l.MOV]:"#E63324",[l.MP3]:"#1795E3",[l.MP4]:"#E63324",[l.OGG]:"#1795E3",[l.PDF]:"#E44948",[l.PNG]:"#59B031",[l.POWERPOINT]:"#B54A2B",[l.RAR]:"#F8AB36",[l.STP]:"#3764B1",[l.TEXT]:"#3162AB",[l.UNKNOWN]:"#999999",[l.VIDEO]:"#E63324",[l.WAV]:"#1795E3",[l.WMA]:"#1795E3",[l.WORD]:"#3162AB",[l.XML]:"#71C3EB",[l.YAML]:"#71C3EB",[l.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
391
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
420
392
|
${(0,ii.unsafeHTML)(this.resolvedIcon)}
|
|
421
393
|
<slot ?hidden=${i}></slot>
|
|
422
394
|
</i>
|
|
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=
|
|
395
|
+
`}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=l[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Z.material:this.resolvedIcon=this.value||_t.nothing;break;default:this.resolvedIcon=(i=lt[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`
|
|
424
396
|
*:focus {
|
|
425
397
|
outline: none;
|
|
426
398
|
}
|
|
@@ -472,12 +444,12 @@
|
|
|
472
444
|
}
|
|
473
445
|
|
|
474
446
|
ft-input-label {
|
|
475
|
-
${(0,c.setVariable)(
|
|
476
|
-
${(0,c.setVariable)(
|
|
477
|
-
${(0,c.setVariable)(
|
|
478
|
-
${(0,c.setVariable)(
|
|
479
|
-
${(0,c.setVariable)(
|
|
480
|
-
${(0,c.setVariable)(
|
|
447
|
+
${(0,c.setVariable)(m.fontSize,x.selectedOptionSize)};
|
|
448
|
+
${(0,c.setVariable)(m.raisedFontSize,x.labelSize)};
|
|
449
|
+
${(0,c.setVariable)(m.verticalSpacing,x.verticalSpacing)};
|
|
450
|
+
${(0,c.setVariable)(m.horizontalSpacing,x.horizontalSpacing)};
|
|
451
|
+
${(0,c.setVariable)(m.backgroundColor,x.backgroundColor)};
|
|
452
|
+
${(0,c.setVariable)(m.labelMaxWidth,`calc(100% - ${B.size} - 8px)`)};
|
|
481
453
|
}
|
|
482
454
|
|
|
483
455
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -485,8 +457,8 @@
|
|
|
485
457
|
}
|
|
486
458
|
|
|
487
459
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
488
|
-
${(0,c.setVariable)(
|
|
489
|
-
${(0,c.setVariable)(
|
|
460
|
+
${(0,c.setVariable)(m.borderColor,x.colorPrimary)};
|
|
461
|
+
${(0,c.setVariable)(m.textColor,x.colorPrimary)};
|
|
490
462
|
}
|
|
491
463
|
|
|
492
464
|
.ft-select--selected-option {
|
|
@@ -556,7 +528,7 @@
|
|
|
556
528
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
557
529
|
opacity: 0;
|
|
558
530
|
}
|
|
559
|
-
`;var Dt=h($());var ct=h(P()),pi=h(ut()),X=h(V());var qt=h($());var
|
|
531
|
+
`;var Dt=h($());var ct=h(P()),pi=h(ut()),X=h(V());var qt=h($());var si=h(P()),li=si.css`
|
|
560
532
|
.ft-select--option {
|
|
561
533
|
${(0,qt.setVariable)(R.opacityContentOnSurfaceHover,"0.08")};
|
|
562
534
|
${(0,qt.setVariable)(R.opacityContentOnSurfacePressed,"0.04")};
|
|
@@ -595,8 +567,8 @@
|
|
|
595
567
|
</slot>
|
|
596
568
|
${this.isSlotEmpty?ct.html`<span>${this.label}</span>`:ct.html``}
|
|
597
569
|
</div>
|
|
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=[
|
|
599
|
-
<div class="${(0,fi.classMap)(
|
|
570
|
+
`}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=[li,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,u={"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`
|
|
571
|
+
<div class="${(0,fi.classMap)(u)}" part="container">
|
|
600
572
|
<div class="ft-select--main-panel" part="main-panel">
|
|
601
573
|
<ft-input-label text="${this.label}"
|
|
602
574
|
part="label"
|
|
@@ -625,7 +597,7 @@
|
|
|
625
597
|
${(n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:this.label}
|
|
626
598
|
</ft-typography>
|
|
627
599
|
</slot>
|
|
628
|
-
<ft-icon aria-hidden="true" .value=${a?
|
|
600
|
+
<ft-icon aria-hidden="true" .value=${a?lt.THIN_ARROW_UP:lt.THIN_ARROW}></ft-icon>
|
|
629
601
|
</div>
|
|
630
602
|
<div class="ft-select--options"
|
|
631
603
|
part="options"
|