@fluid-topics/ft-filterable-table 1.0.58 → 1.0.60
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.
|
@@ -1,136 +1,143 @@
|
|
|
1
|
-
!function(t,e,i,
|
|
1
|
+
!function(t,o,e,i,r,a,n){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var l;const s=window,c=s.trustedTypes,p=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,f="$lit$",d=`lit$${(Math.random()+"").slice(9)}$`,h="?"+d,g=`<${h}>`,y=document,u=()=>y.createComment(""),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,x="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,$=/>/g,N=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,w=/"/g,C=/^(?:script|style|textarea|title)$/i,I=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),k=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),R=new WeakMap,U=y.createTreeWalker(y,129,null,!1),W=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=v;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,p=0;for(;p<e.length&&(n.lastIndex=p,s=n.exec(e),null!==s);)p=n.lastIndex,n===v?"!--"===s[1]?n=O:void 0!==s[1]?n=$:void 0!==s[2]?(C.test(s[2])&&(r=RegExp("</"+s[2],"g")),n=N):void 0!==s[3]&&(n=N):n===N?">"===s[0]?(n=null!=r?r:v,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,l=s[1],n=void 0===s[3]?N:'"'===s[3]?w:S):n===w||n===S?n=N:n===O||n===$?n=v:(n=N,r=void 0);const h=n===N&&t[o+1].startsWith("/>")?" ":"";a+=n===v?e+g:c>=0?(i.push(l),e.slice(0,c)+f+e.slice(c)+d+h):e+d+(-2===c?(i.push(void 0),o):h)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(l):l,i]};class L{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[s,p]=W(t,o);if(this.el=L.createElement(s,e),U.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=U.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(f)||o.startsWith(d)){const e=p[a++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+f).split(d),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?B:"?"===o[1]?A:"@"===o[1]?H:D})}else l.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(C.test(i.tagName)){const t=i.textContent.split(d),o=t.length-1;if(o>0){i.textContent=c?c.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],u()),U.nextNode(),l.push({type:2,index:++r});i.append(t[o],u())}}}else if(8===i.nodeType)if(i.data===h)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(d,t+1));)l.push({type:7,index:r}),t+=d.length-1}r++}}static createElement(t,o){const e=y.createElement("template");return e.innerHTML=t,e}}function z(t,o,e=t,i){var r,a,n,l;if(o===k)return o;let s=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const c=b(o)?void 0:o._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(a=null==s?void 0:s._$AO)||void 0===a||a.call(s,!1),void 0===c?s=void 0:(s=new c(t),s._$AT(t,e,i)),void 0!==i?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[i]=s:e._$Cl=s),void 0!==s&&(o=z(t,s._$AS(t,o.values),s,i)),o}class Z{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:y).importNode(e,!0);U.currentNode=r;let a=U.nextNode(),n=0,l=0,s=i[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new K(a,a.nextSibling,this,t):1===s.type?o=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(o=new G(a,this,t)),this._$AV.push(o),s=i[++l]}n!==(null==s?void 0:s.index)&&(a=U.nextNode(),n++)}return r}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class K{constructor(t,o,e,i){var r;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=z(this,t,o),b(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==k&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==E&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=L.createElement(i.h,this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new Z(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=R.get(t.strings);return void 0===o&&R.set(t.strings,o=new L(t)),o}T(t){m(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new K(this.k(u()),this.k(u()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class D{constructor(t,o,e,i,r){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=z(this,t,o,0),a=!b(t)||t!==this._$AH&&t!==k,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=z(this,i[e+n],o,n),l===k&&(l=this._$AH[n]),a||(a=!b(l)||l!==this._$AH[n]),l===E?t=E:t!==E&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const F=c?c.emptyScript:"";class A extends D{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class H extends D{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=z(this,t,o,0))&&void 0!==e?e:E)===k)return;const i=this._$AH,r=t===E&&i!==E||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==E&&(i===E||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class G{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}}const j=s.litHtmlPolyfillSupport;null==j||j(L,K),(null!==(l=s.litHtmlVersions)&&void 0!==l?l:s.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t._$litStatic$},K=t=>({_$litStatic$:t,r:V}),L=new Map,G=(t=>(e,...i)=>{const o=i.length;let s,n;const l=[],r=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=W(n));)a+=s+e[++p],f=!0;p!==o&&r.push(n),l.push(a),p++}if(p===o&&l.push(e[o]),f){const t=l.join("$$lit$$");void 0===(e=L.get(t))&&(l.raw=l,L.set(t,e=l)),i=r}return t(e,...i)})(E);var q;!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"}(q||(q={}));const X=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),J={fontFamily:Y,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",X),tt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",J.fontSize,"20px"),et=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",J.fontWeight,"normal"),it=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",J.letterSpacing,"0.15px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",J.lineHeight,"1.2"),st=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",J.textTransform,"inherit"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",X),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",J.fontSize,"14px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",J.fontWeight,"normal"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",J.letterSpacing,"0.105px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",J.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",J.textTransform,"inherit"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Y),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",J.fontSize,"16px"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",J.fontWeight,"600"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",J.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",J.lineHeight,"1.5"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",J.textTransform,"inherit"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Y),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",J.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",J.fontWeight,"normal"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",J.letterSpacing,"0.098px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",J.lineHeight,"1.7"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",J.textTransform,"inherit"),kt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",J.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",J.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",J.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",J.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",J.textTransform,"inherit")},St=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Y),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",J.fontSize,"14px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",J.fontWeight,"normal"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",J.letterSpacing,"0.252px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",J.lineHeight,"1.4"),It=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",J.textTransform,"inherit"),Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",J.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",J.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",J.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",J.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",J.textTransform,"inherit")},Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Y),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",J.fontSize,"10px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",J.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",J.letterSpacing,"0.33px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",J.lineHeight,"1.6"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",J.textTransform,"inherit"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Y),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",J.fontSize,"10px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",J.fontWeight,"normal"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",J.letterSpacing,"1.5px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",J.lineHeight,"1.6"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",J.textTransform,"uppercase"),Ht={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",Y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",J.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",J.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",J.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",J.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",J.textTransform,"uppercase")},Vt=i.css`
|
|
13
|
+
const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t._$litStatic$},T=t=>({_$litStatic$:t,r:P}),_=new Map,V=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let s,c=0,p=!1;for(;c<i;){for(s=o[c];c<i&&void 0!==(a=e[c],r=M(a));)s+=r+o[++c],p=!0;c!==i&&l.push(a),n.push(s),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=_.get(t))&&(n.raw=n,_.set(t,o=n)),e=l}return t(o,...e)})(I);var Y;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Y||(Y={}));const q=t=>"string"==typeof t?e.unsafeCSS(t):t;class X{static create(t,o,i,r){const a=t=>q(null!=t?t:r),n=e.css`var(${q(t)}, ${a(r)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${q(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${q(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${q(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):q(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${q(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${q(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const J={colorWhite:X.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:X.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:X.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:X.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:X.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:X.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:X.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:X.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:X.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:X.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:X.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:X.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:X.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:X.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:X.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:X.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:X.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:X.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:X.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:X.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:X.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:X.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:X.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:X.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:X.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:X.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:X.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:X.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:X.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:X.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:X.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:X.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:X.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:X.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:X.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:X.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:X.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:X.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:X.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:X.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:X.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:X.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:X.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:X.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:X.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:X.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:X.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:X.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:X.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:X.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:X.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:X.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:X.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:X.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:X.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:X.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:X.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:X.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:X.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:X.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:X.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:X.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:X.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:X.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:X.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:X.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:X.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:X.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:X.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:X.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:X.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:X.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:X.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:X.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:X.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:X.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:X.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:X.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:X.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:X.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:X.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:X.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:X.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:X.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:X.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:X.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:X.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:X.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:X.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:X.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:X.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:X.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:X.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:X.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:X.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:X.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:X.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:X.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:X.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:X.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:X.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:X.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:X.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:X.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:X.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:X.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:X.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:X.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:X.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:X.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:X.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:X.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:X.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:X.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:X.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:X.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:X.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:X.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:X.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:X.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:X.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:X.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:X.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:X.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:X.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:X.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:X.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:X.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:X.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:X.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:X.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:X.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:X.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:X.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:X.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:X.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:X.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:X.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:X.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:X.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:X.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:X.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:X.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:X.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:X.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:X.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:X.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:X.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:X.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:X.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:X.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:X.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:X.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:X.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:X.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:X.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:X.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:X.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:X.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:X.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:X.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:X.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:X.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:X.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:X.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:X.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:X.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:X.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:X.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:X.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:X.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:X.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:X.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:X.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:X.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:X.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:X.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:X.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:X.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:X.create("--ft-icon-size-6","","SIZE","48px"),opacity0:X.create("--ft-opacity-0","","NUMBER","0"),opacity8:X.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:X.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:X.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:X.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:X.create("--ft-opacity-80","","NUMBER","0.8")},Q={display:{fontFamily:X.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:X.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:X.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:X.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:X.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:X.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:X.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:X.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:X.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:X.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:X.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:X.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:X.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:X.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:X.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:X.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:X.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:X.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:X.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:X.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:X.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:X.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:X.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:X.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:X.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:X.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:X.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},tt={backgroundActionPrimary:X.extend("--ft-background-action-primary","Used as backgorund of primary action components.",J.colorBrand0),backgroundErrorPrimary:X.extend("--ft-background-error-primary","Used as background of error components.",J.colorRed0),backgroundErrorSubtle:X.extend("--ft-background-error-subtle","Used as background of subtle error components.",J.colorRed10),backgroundInfoPrimary:X.extend("--ft-background-info-primary","Used as background of information components.",J.colorCyan200),backgroundInfoSubtle:X.extend("--ft-background-info-subtle","Used as background of subtle information components.",J.colorCyan10),backgroundWarningPrimary:X.extend("--ft-background-warning-primary","Used as background of warning components.",J.colorOrange300),backgroundWarningSubtle:X.extend("--ft-background-warning-subtle","Used as background of subtle information components.",J.colorOrange10),backgroundSuccessPrimary:X.extend("--ft-background-success-primary","Used as background of success components.",J.colorGreen200),backgroundSuccessSubtle:X.extend("--ft-background-success-subtle","Used as background of subtle success components.",J.colorGreen10),backgroundGlobalSurface:X.extend("--ft-background-global-surface","Used as app background.",J.colorWhite),backgroundGlobalOnSurface:X.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",J.colorGray10),backgroundGlobalOnSurfaceDark:X.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",J.colorGray30),contentActionPrimary:X.extend("--ft-content-action-primary","Used on label of primary action on light surface.",J.colorBrand0),contentWarningPrimary:X.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",J.colorOrange300),contentWarningIconOnly:X.extend("--ft-content-warning-icon-only","Used on warning status icons alone",J.colorOrange0),contentErrorPrimary:X.extend("--ft-content-error-primary","Used on label of error messages on light surface.",J.colorRed0),contentErrorIconOnly:X.extend("--ft-content-error-icon-only","Used on error status icons alone",J.colorRed0),contentInfoPrimary:X.extend("--ft-content-info-primary","Used on label of information messages on light surface.",J.colorCyan200),contentInfoIconOnly:X.extend("--ft-content-info-icon-only","Used on info status icons alone",J.colorCyan0),contentSuccessIconOnly:X.extend("--ft-content-success-icon-only","Used on success status icons alone",J.colorGreen0),contentSuccessPrimary:X.extend("--ft-content-success-primary","Used on label of success messages on light surface.",J.colorGreen200),contentGlobalPrimary:X.extend("--ft-content-global-primary","Used for main content on the page.",J.colorGray500),contentGlobalSecondary:X.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",J.colorGray200),contentGlobalSubtle:X.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",J.colorGray0),contentGlobalOnColor:X.extend("--ft-content-global-on-color","Used for content on a dominant color.",J.colorWhite),borderActionPrimary:X.extend("--ft-border-action-primary","Used as border for primary action components.",J.colorBrand0),borderActionFocusRing:X.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",J.colorCyan0),borderWarningPrimary:X.extend("--ft-border-warning-primary","Used as border for warning components.",J.colorOrange30),borderSuccessPrimary:X.extend("--ft-border-success-primary","Used as border for success components.",J.colorGreen30),borderErrorPrimary:X.extend("--ft-border-error-primary","Used as border for error components.",J.colorRed30),borderInfoPrimary:X.extend("--ft-border-info-primary","Used as border for information components.",J.colorCyan30),borderGlobalSubtle:X.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",J.colorGray30),borderGlobalPrimary:X.extend("--ft-border-global-primary","Used as border for element like input.",J.colorGray50),borderInputPrimary:X.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",J.colorGray80)},ot={largeHeight:X.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:X.extend("--ft-button-large-horizontal-padding","",J.spacing4),largeGap:X.extend("--ft-button-large-gap","",J.spacing2),largeBorderRadius:X.extend("--ft-button-large-border-radius","",J.borderRadiusS),largeIconSize:X.extend("--ft-button-large-icon-size","",J.iconSize3),largeBorderWidth:X.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:X.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:X.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:X.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:X.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:X.extend("--ft-button-small-horizontal-padding","",J.spacing3),smallGap:X.extend("--ft-button-small-gap","",J.spacing2),smallBorderRadius:X.extend("--ft-button-small-border-radius","",J.borderRadiusS),smallIconSize:X.extend("--ft-button-small-icon-size","",J.iconSize2),smallBorderWidth:X.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:X.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:X.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:X.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:X.extend("--ft-button-primary-background-color","",tt.backgroundActionPrimary),primaryColor:X.extend("--ft-button-primary-color","",tt.contentGlobalOnColor),primaryIconColor:X.extend("--ft-button-primary-icon-color","",tt.contentGlobalOnColor),primaryStateLayerColor:X.extend("--ft-button-primary-state-layer-color","",tt.contentGlobalOnColor),primaryStateLayerOpacityHover:X.extend("--ft-button-primary-state-layer-opacity-hover","",J.opacity16),primaryStateLayerOpacityFocus:X.extend("--ft-button-primary-state-layer-opacity-focus","",J.opacity16),primaryStateLayerOpacityActive:X.extend("--ft-button-primary-state-layer-opacity-active","",J.opacity24),primaryComponentOpacityDisabled:X.extend("--ft-button-primary-component-opacity-disabled","",J.opacity40),focusFocusRingColor:X.extend("--ft-button-focus-focus-ring-color","",tt.borderActionFocusRing),tertiaryBackgroundColor:X.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:X.extend("--ft-button-tertiary-color","",tt.contentActionPrimary),tertiaryIconColor:X.extend("--ft-button-tertiary-icon-color","",tt.contentActionPrimary),tertiaryStateLayerColor:X.extend("--ft-button-tertiary-state-layer-color","",tt.contentActionPrimary),tertiaryStateLayerOpacityHover:X.extend("--ft-button-tertiary-state-layer-opacity-hover","",J.opacity8),tertiaryStateLayerOpacityFocus:X.extend("--ft-button-tertiary-state-layer-opacity-focus","",J.opacity8),tertiaryStateLayerOpacityActive:X.extend("--ft-button-tertiary-state-layer-opacity-active","",J.opacity16),tertiaryComponentOpacityDisabled:X.extend("--ft-button-tertiary-component-opacity-disabled","",J.opacity40),secondaryBackgroundColor:X.extend("--ft-button-secondary-background-color","",J.colorWhite),secondaryColor:X.extend("--ft-button-secondary-color","",tt.contentActionPrimary),secondaryIconColor:X.extend("--ft-button-secondary-icon-color","",tt.contentActionPrimary),secondaryStateLayerColor:X.extend("--ft-button-secondary-state-layer-color","",tt.contentActionPrimary),secondaryStateLayerOpacityHover:X.extend("--ft-button-secondary-state-layer-opacity-hover","",J.opacity8),secondaryStateLayerOpacityFocus:X.extend("--ft-button-secondary-state-layer-opacity-focus","",J.opacity8),secondaryStateLayerOpacityActive:X.extend("--ft-button-secondary-state-layer-opacity-active","",J.opacity16),secondaryComponentOpacityDisabled:X.extend("--ft-button-secondary-component-opacity-disabled","",J.opacity40),secondaryBorderColor:X.extend("--ft-button-secondary-border-color","",tt.borderActionPrimary),neutralBackgroundColor:X.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:X.extend("--ft-button-neutral-icon-color","",tt.contentGlobalSecondary),neutralColor:X.extend("--ft-button-neutral-color","",tt.contentGlobalSecondary),neutralStateLayerColor:X.extend("--ft-button-neutral-state-layer-color","",tt.contentGlobalSecondary),neutralStateLayerOpacityHover:X.extend("--ft-button-neutral-state-layer-opacity-hover","",J.opacity8),neutralStateLayerOpacityFocus:X.extend("--ft-button-neutral-state-layer-opacity-focus","",J.opacity8),neutralStateLayerOpacityActive:X.extend("--ft-button-neutral-state-layer-opacity-active","",J.opacity16),neutralComponentOpacityDisabled:X.extend("--ft-button-neutral-component-opacity-disabled","",J.opacity40)};X.extend("--ft-tabs-top-left-border-radius","",J.borderRadiusS),X.extend("--ft-tabs-top-right-border-radius","",J.borderRadiusS),X.extend("--ft-tabs-label-horizontal-padding","",J.spacing4),X.extend("--ft-tabs-label-vertical-padding","",J.spacing3),X.extend("--ft-tabs-label-gap","",J.spacing1),X.extend("--ft-switch-group-horizontal-padding","",J.spacing1),X.extend("--ft-switch-group-vertical-padding","",J.spacing1),X.extend("--ft-switch-group-gap","",J.spacing1),X.extend("--ft-switch-group-background-color","",tt.backgroundGlobalSurface),X.extend("--ft-switch-group-border-color","",tt.borderGlobalSubtle),X.create("--ft-switch-group-border-radius","","SIZE","6px"),X.extend("--ft-switch-label-horizontal-padding","",J.spacing2),X.extend("--ft-switch-label-vertical-padding","",J.spacing1),X.extend("--ft-switch-icon-horizontal-padding","",J.spacing1),X.extend("--ft-switch-icon-vertical-padding","",J.spacing1),X.create("--ft-switch-focus-outline-width","","SIZE","2px"),X.extend("--ft-switch-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-switch-option-border-radius","",J.borderRadiusS),X.extend("--ft-switch-off-state-layer-opacity-hover","",J.opacity8),X.extend("--ft-switch-off-state-layer-opacity-focus","",J.opacity8),X.extend("--ft-switch-off-state-layer-opacity-active","",J.opacity16),X.extend("--ft-switch-off-component-opacity-disabled","",J.opacity40),X.extend("--ft-switch-off-color","",tt.contentGlobalSubtle),X.extend("--ft-switch-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-chart-1-light","for area color charts",J.colorBrand40),X.extend("--ft-chart-1-base","for line charts",J.colorBrand0),X.extend("--ft-chart-2-light","for area color charts",J.colorYellow60),X.extend("--ft-chart-2-base","for line charts",J.colorYellow100),X.extend("--ft-chart-3-light","",J.colorUltramarine40),X.extend("--ft-chart-3-base","",J.colorUltramarine70),X.extend("--ft-chart-4-light","",J.colorCyan50),X.extend("--ft-chart-4-base","",J.colorCyan100),X.extend("--ft-chart-5-light","",J.colorRed40),X.extend("--ft-chart-5-base","",J.colorRed60),X.extend("--ft-chart-6-light","",J.colorGreen40),X.extend("--ft-chart-6-base","",J.colorGreen70),X.extend("--ft-chart-7-light","",J.colorOrange70),X.extend("--ft-chart-7-base","",J.colorOrange100),X.extend("--ft-chart-8-light","",J.colorAvocado70),X.extend("--ft-chart-8-base","",J.colorAvocado200),X.extend("--ft-chart-9-light","",J.colorBrown50),X.extend("--ft-chart-9-base","",J.colorBrown200),X.extend("--ft-chart-10-light","",J.colorGray50),X.extend("--ft-chart-10-base","",J.colorGray80),X.extend("--ft-chart-monochrome-10","",J.colorBrand10),X.extend("--ft-chart-monochrome-20","",J.colorBrand20),X.extend("--ft-chart-monochrome-30","",J.colorBrand40),X.extend("--ft-chart-monochrome-40","",J.colorBrand60),X.extend("--ft-chart-monochrome-50","",J.colorBrand0),X.extend("--ft-chart-monochrome-60","",J.colorBrand200),X.extend("--ft-chip-large-horizontal-padding","",J.spacing4),X.extend("--ft-chip-large-vertical-padding","",J.spacing2),X.extend("--ft-chip-large-gap","",J.spacing1),X.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-large-border-radius","",J.borderRadiusPill),X.create("--ft-chip-large-border-width","","SIZE","1px"),X.extend("--ft-chip-large-icon-size","",J.iconSize3),X.extend("--ft-chip-medium-horizontal-padding","",J.spacing3),X.extend("--ft-chip-medium-vertical-padding","",J.spacing1),X.extend("--ft-chip-medium-gap","",J.spacing1),X.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-medium-border-radius","",J.borderRadiusPill),X.create("--ft-chip-medium-border-width","","SIZE","1px"),X.extend("--ft-chip-medium-icon-size","",J.iconSize2),X.extend("--ft-chip-small-horizontal-padding","",J.spacing2),X.extend("--ft-chip-small-vertical-padding","",J.spacing05),X.extend("--ft-chip-small-gap","",J.spacing1),X.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-small-border-radius","",J.borderRadiusPill),X.create("--ft-chip-small-border-width","","SIZE","1px"),X.extend("--ft-chip-small-icon-size","",J.iconSize1),X.extend("--ft-chip-neutral-background-color","",tt.backgroundGlobalOnSurface),X.extend("--ft-chip-neutral-color","",tt.contentGlobalPrimary),X.extend("--ft-chip-neutral-border-color","",tt.borderGlobalSubtle),X.extend("--ft-chip-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-chip-info-color","",tt.contentInfoPrimary),X.extend("--ft-chip-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-chip-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-chip-success-color","",tt.contentSuccessPrimary),X.extend("--ft-chip-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-chip-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-chip-warning-color","",tt.contentWarningPrimary),X.extend("--ft-chip-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-chip-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-chip-error-color","",tt.contentErrorPrimary),X.extend("--ft-chip-error-border-color","",tt.borderErrorPrimary),X.create("--ft-notice-border-width","","SIZE","1px"),X.extend("--ft-notice-horizontal-padding","",J.spacing2),X.extend("--ft-notice-vertical-padding","",J.spacing1),X.extend("--ft-notice-border-radius","",J.borderRadiusS),X.extend("--ft-notice-gap","",J.spacing2),X.extend("--ft-notice-icon-size","",J.iconSize3),X.extend("--ft-notice-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notice-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notice-info-color","",tt.contentInfoPrimary),X.extend("--ft-notice-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notice-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notice-warning-color","",tt.contentWarningPrimary),X.extend("--ft-checkbox-label-color","",tt.contentGlobalPrimary),X.extend("--ft-checkbox-checked-background-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-color","",tt.contentGlobalOnColor),X.extend("--ft-checkbox-checked-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-active","",J.opacity24),X.extend("--ft-checkbox-checked-component-opacity-disabled","",J.opacity40),X.extend("--ft-checkbox-unchecked-border-color","",J.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-color","",J.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",J.opacity24),X.extend("--ft-checkbox-unchecked-component-opacity-disabled","",J.opacity40),X.extend("--ft-checkbox-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),X.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),X.extend("--ft-checkbox-gap","",J.spacing3),X.extend("--ft-toggle-off-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-active","",J.opacity24),X.extend("--ft-toggle-off-component-opacity-disabled","",J.opacity40),X.extend("--ft-toggle-off-background-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-icon-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-on-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-active","",J.opacity24),X.extend("--ft-toggle-on-component-opacity-disabled","",J.opacity40),X.extend("--ft-toggle-on-background-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-icon-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-toggle-label-color","",tt.contentGlobalPrimary),X.extend("--ft-toggle-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-toggle-gap","",J.spacing3),X.extend("--ft-radio-label-color","",tt.contentGlobalPrimary),X.extend("--ft-radio-selected-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-active","",J.opacity24),X.extend("--ft-radio-selected-component-opacity-disabled","",J.opacity40),X.extend("--ft-radio-unselected-state-layer-color","",J.colorGray80),X.extend("--ft-radio-unselected-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-active","",J.opacity24),X.extend("--ft-radio-unselected-component-opacity-disabled","",J.opacity40),X.extend("--ft-radio-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-radio-focus-outline-offset","","SIZE","3px"),X.create("--ft-radio-focus-outline-width","","SIZE","2px"),X.extend("--ft-radio-gap","",J.spacing3),X.extend("--ft-notification-icon-size","",J.iconSize4),X.extend("--ft-notification-horizontal-padding","",J.spacing4),X.extend("--ft-notification-vertical-padding","",J.spacing4),X.extend("--ft-notification-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notification-info-color","",tt.contentInfoPrimary),X.extend("--ft-notification-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notification-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-notification-success-color","",tt.contentSuccessPrimary),X.extend("--ft-notification-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-notification-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notification-warning-color","",tt.contentWarningPrimary),X.extend("--ft-notification-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notification-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-notification-error-color","",tt.contentErrorPrimary),X.extend("--ft-notification-error-border-color","",tt.borderErrorPrimary),X.extend("--ft-notification-border-radius","",J.borderRadiusPill),X.create("--ft-notification-border-width","","SIZE","1px"),X.extend("--ft-notification-gap-leading","",J.spacing2),X.extend("--ft-notification-gap-trailing","",J.spacing8);const et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:it,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",et),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),st=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",et),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Et={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit")},Rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),Ut=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),zt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),Zt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit")},Dt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),Bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),At=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),Ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),jt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),Pt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),Mt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),Tt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),_t=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),Vt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),Yt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},qt=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
21
|
-
}
|
|
22
|
-
`,
|
|
15
|
+
font-family: ${at};
|
|
16
|
+
font-size: ${nt};
|
|
17
|
+
font-weight: ${lt};
|
|
18
|
+
letter-spacing: ${st};
|
|
19
|
+
line-height: ${ct};
|
|
20
|
+
text-transform: ${pt};
|
|
21
|
+
}
|
|
22
|
+
`,Xt=e.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
30
|
-
}
|
|
31
|
-
`,
|
|
24
|
+
font-family: ${ft};
|
|
25
|
+
font-size: ${dt};
|
|
26
|
+
font-weight: ${ht};
|
|
27
|
+
letter-spacing: ${gt};
|
|
28
|
+
line-height: ${yt};
|
|
29
|
+
text-transform: ${ut};
|
|
30
|
+
}
|
|
31
|
+
`,Jt=e.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${dt};
|
|
34
|
-
font-size: ${ht};
|
|
35
|
-
font-weight: ${ct};
|
|
36
|
-
letter-spacing: ${ut};
|
|
37
|
-
line-height: ${xt};
|
|
38
|
-
text-transform: ${gt};
|
|
39
|
-
}
|
|
40
|
-
`,Lt=i.css`
|
|
41
|
-
.ft-typography--subtitle2 {
|
|
42
33
|
font-family: ${bt};
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
34
|
+
font-size: ${mt};
|
|
35
|
+
font-weight: ${xt};
|
|
36
|
+
letter-spacing: ${vt};
|
|
37
|
+
line-height: ${Ot};
|
|
38
|
+
text-transform: ${$t};
|
|
39
|
+
}
|
|
40
|
+
`,Qt=e.css`
|
|
41
|
+
.ft-typography--subtitle2 {
|
|
42
|
+
font-family: ${Nt};
|
|
43
|
+
font-size: ${St};
|
|
44
|
+
font-weight: ${wt};
|
|
45
|
+
letter-spacing: ${Ct};
|
|
46
|
+
line-height: ${It};
|
|
47
|
+
text-transform: ${kt};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,
|
|
50
|
+
`,to=e.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
58
|
-
}
|
|
59
|
-
`,
|
|
52
|
+
font-family: ${Et.fontFamily};
|
|
53
|
+
font-size: ${Et.fontSize};
|
|
54
|
+
font-weight: ${Et.fontWeight};
|
|
55
|
+
letter-spacing: ${Et.letterSpacing};
|
|
56
|
+
line-height: ${Et.lineHeight};
|
|
57
|
+
text-transform: ${Et.textTransform};
|
|
58
|
+
}
|
|
59
|
+
`,oo=e.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
67
|
-
}
|
|
68
|
-
`,
|
|
61
|
+
font-family: ${Rt};
|
|
62
|
+
font-size: ${Ut};
|
|
63
|
+
font-weight: ${Wt};
|
|
64
|
+
letter-spacing: ${Lt};
|
|
65
|
+
line-height: ${zt};
|
|
66
|
+
text-transform: ${Zt};
|
|
67
|
+
}
|
|
68
|
+
`,eo=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
76
|
-
}
|
|
77
|
-
`,
|
|
70
|
+
font-family: ${Kt.fontFamily};
|
|
71
|
+
font-size: ${Kt.fontSize};
|
|
72
|
+
font-weight: ${Kt.fontWeight};
|
|
73
|
+
letter-spacing: ${Kt.letterSpacing};
|
|
74
|
+
line-height: ${Kt.lineHeight};
|
|
75
|
+
text-transform: ${Kt.textTransform};
|
|
76
|
+
}
|
|
77
|
+
`,io=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
79
|
font-family: ${Dt};
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
80
|
+
font-size: ${Bt};
|
|
81
|
+
font-weight: ${Ft};
|
|
82
|
+
letter-spacing: ${At};
|
|
83
|
+
line-height: ${Ht};
|
|
84
|
+
text-transform: ${Gt};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,ro=e.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
94
|
-
}
|
|
95
|
-
`,
|
|
88
|
+
font-family: ${jt};
|
|
89
|
+
font-size: ${Pt};
|
|
90
|
+
font-weight: ${Mt};
|
|
91
|
+
letter-spacing: ${Tt};
|
|
92
|
+
line-height: ${_t};
|
|
93
|
+
text-transform: ${Vt};
|
|
94
|
+
}
|
|
95
|
+
`,ao=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
103
|
-
}
|
|
104
|
-
`,
|
|
97
|
+
font-family: ${Yt.fontFamily};
|
|
98
|
+
font-size: ${Yt.fontSize};
|
|
99
|
+
font-weight: ${Yt.fontWeight};
|
|
100
|
+
letter-spacing: ${Yt.letterSpacing};
|
|
101
|
+
line-height: ${Yt.lineHeight};
|
|
102
|
+
text-transform: ${Yt.textTransform};
|
|
103
|
+
}
|
|
104
|
+
`,no=e.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
`,lo=[Object.keys(Q).map((t=>function(t){const o=Q[t];return e.css`
|
|
109
|
+
font-family: ${o.fontFamily};
|
|
110
|
+
font-size: ${o.fontSize};
|
|
111
|
+
font-weight: ${o.fontWeight};
|
|
112
|
+
letter-spacing: ${o.letterSpacing};
|
|
113
|
+
line-height: ${o.lineHeight};
|
|
114
|
+
text-transform: ${o.textCase};
|
|
115
|
+
`}(t)))];var so=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class co extends o.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?V`
|
|
116
|
+
<${T(this.element)}
|
|
117
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
111
118
|
<slot></slot>
|
|
112
|
-
</${
|
|
113
|
-
`:
|
|
119
|
+
</${T(this.element)}>
|
|
120
|
+
`:V`
|
|
114
121
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}
|
|
122
|
+
`}}co.styles=[qt,Xt,Jt,Qt,to,oo,eo,io,ro,ao,no,...lo],so([i.property()],co.prototype,"element",void 0),so([i.property()],co.prototype,"variant",void 0),o.customElement("ft-typography")(co);const po={fontSize:o.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.FtCssVariableFactory.extend("--ft-input-label-border-color","",o.designSystemVariables.colorOutline),textColor:o.FtCssVariableFactory.extend("--ft-input-label-text-color","",o.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:o.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",o.designSystemVariables.colorOnSurfaceDisabled),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system")},fo=e.css`
|
|
116
123
|
.ft-input-label {
|
|
117
124
|
position: absolute;
|
|
118
125
|
inset: 0;
|
|
119
126
|
display: flex;
|
|
120
|
-
background-color: ${
|
|
121
|
-
border-radius: ${
|
|
127
|
+
background-color: ${po.colorSurface};
|
|
128
|
+
border-radius: ${po.borderRadiusS} ${po.borderRadiusS} 0 0;
|
|
122
129
|
}
|
|
123
130
|
|
|
124
131
|
.ft-input-label--outlined {
|
|
125
|
-
border-radius: ${
|
|
132
|
+
border-radius: ${po.borderRadiusS};
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
.ft-input-label {
|
|
129
|
-
border-color: ${
|
|
136
|
+
border-color: ${po.borderColor};
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
.ft-input-label.ft-input-label--in-error {
|
|
133
|
-
border-color: ${
|
|
140
|
+
border-color: ${po.colorError}
|
|
134
141
|
}
|
|
135
142
|
|
|
136
143
|
.ft-input-label:before,
|
|
@@ -143,7 +150,7 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
143
150
|
}
|
|
144
151
|
|
|
145
152
|
.ft-input-label:before {
|
|
146
|
-
width: calc(${
|
|
153
|
+
width: calc(${po.horizontalSpacing} - 4px);
|
|
147
154
|
flex-shrink: 0;
|
|
148
155
|
}
|
|
149
156
|
|
|
@@ -159,20 +166,20 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
159
166
|
border-bottom-width: 1px;
|
|
160
167
|
border-bottom-style: solid;
|
|
161
168
|
border-color: inherit;
|
|
162
|
-
color: ${
|
|
169
|
+
color: ${po.textColor};
|
|
163
170
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
164
|
-
max-width: calc(${
|
|
171
|
+
max-width: calc(${po.labelMaxWidth} - 2 * (${po.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
165
172
|
text-overflow: ellipsis;
|
|
166
|
-
${
|
|
167
|
-
${
|
|
173
|
+
${o.setVariable(Kt.fontSize,po.fontSize)};
|
|
174
|
+
${o.setVariable(Kt.lineHeight,po.fontSize)};
|
|
168
175
|
}
|
|
169
176
|
|
|
170
177
|
.ft-input-label--in-error .ft-input-label--text {
|
|
171
|
-
color: ${
|
|
178
|
+
color: ${po.colorError}
|
|
172
179
|
}
|
|
173
180
|
|
|
174
181
|
.ft-input-label--disabled .ft-input-label--text {
|
|
175
|
-
color: ${
|
|
182
|
+
color: ${po.disabledTextColor};
|
|
176
183
|
}
|
|
177
184
|
|
|
178
185
|
.ft-input-label--hidden-text {
|
|
@@ -189,19 +196,19 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
189
196
|
overflow: hidden;
|
|
190
197
|
white-space: nowrap;
|
|
191
198
|
text-overflow: ellipsis;
|
|
192
|
-
padding: ${
|
|
193
|
-
margin: calc(${
|
|
199
|
+
padding: ${po.verticalSpacing} 4px;
|
|
200
|
+
margin: calc(${po.verticalSpacing} * -1) 0;
|
|
194
201
|
max-width: 100%;
|
|
195
202
|
box-sizing: border-box;
|
|
196
203
|
}
|
|
197
204
|
|
|
198
205
|
.ft-input-label--raised .ft-input-label--text {
|
|
199
|
-
${
|
|
200
|
-
${
|
|
206
|
+
${o.setVariable(Kt.fontSize,po.raisedFontSize)};
|
|
207
|
+
${o.setVariable(Kt.lineHeight,po.raisedFontSize)};
|
|
201
208
|
}
|
|
202
209
|
|
|
203
210
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
204
|
-
top: ${
|
|
211
|
+
top: ${po.verticalSpacing};
|
|
205
212
|
}
|
|
206
213
|
|
|
207
214
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -214,36 +221,36 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
214
221
|
.ft-input-label--outlined:before {
|
|
215
222
|
border-left-width: 1px;
|
|
216
223
|
border-left-style: solid;
|
|
217
|
-
border-radius: ${
|
|
224
|
+
border-radius: ${po.borderRadiusS} 0 0 ${po.borderRadiusS};
|
|
218
225
|
}
|
|
219
226
|
|
|
220
227
|
.ft-input-label--outlined:after {
|
|
221
228
|
border-right-width: 1px;
|
|
222
229
|
border-right-style: solid;
|
|
223
|
-
border-radius: 0 ${
|
|
230
|
+
border-radius: 0 ${po.borderRadiusS} ${po.borderRadiusS} 0;
|
|
224
231
|
}
|
|
225
232
|
|
|
226
233
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
227
234
|
padding: 2px 4px;
|
|
228
|
-
z-index: ${
|
|
229
|
-
background-color: ${
|
|
230
|
-
border-radius: ${
|
|
235
|
+
z-index: ${po.raisedZIndex};
|
|
236
|
+
background-color: ${po.colorSurface};
|
|
237
|
+
border-radius: ${po.borderRadiusS};
|
|
231
238
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
232
239
|
}
|
|
233
240
|
|
|
234
241
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
235
242
|
border-top: none;
|
|
236
243
|
}
|
|
237
|
-
`;var
|
|
238
|
-
<div class="${
|
|
239
|
-
${this.text?
|
|
244
|
+
`;var ho=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class go extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"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};return e.html`
|
|
245
|
+
<div class="${n.classMap(t)}">
|
|
246
|
+
${this.text?e.html`
|
|
240
247
|
<div class="ft-input-label--text ft-typography--caption">
|
|
241
248
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
242
249
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
243
250
|
</div>
|
|
244
251
|
`:null}
|
|
245
252
|
</div>
|
|
246
|
-
`}}
|
|
253
|
+
`}}go.elementDefinitions={},go.styles=[eo,fo],ho([i.property({type:String})],go.prototype,"text",void 0),ho([i.property({type:Boolean})],go.prototype,"raised",void 0),ho([i.property({type:Boolean})],go.prototype,"outlined",void 0),ho([i.property({type:Boolean})],go.prototype,"disabled",void 0),ho([i.property({type:Boolean})],go.prototype,"error",void 0),o.customElement("ft-input-label")(go);const yo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),uo={color:yo,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",yo),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},bo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),mo=bo,xo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",bo),vo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),Oo=vo,$o=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",vo),No=e.css`
|
|
247
254
|
:host {
|
|
248
255
|
display: contents;
|
|
249
256
|
}
|
|
@@ -256,7 +263,7 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
256
263
|
|
|
257
264
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
258
265
|
overflow: hidden;
|
|
259
|
-
border-radius: ${
|
|
266
|
+
border-radius: ${uo.borderRadius};
|
|
260
267
|
}
|
|
261
268
|
|
|
262
269
|
.ft-ripple .ft-ripple--background,
|
|
@@ -290,27 +297,27 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
290
297
|
}
|
|
291
298
|
|
|
292
299
|
.ft-ripple .ft-ripple--background {
|
|
293
|
-
background-color: ${
|
|
300
|
+
background-color: ${uo.backgroundColor};
|
|
294
301
|
}
|
|
295
302
|
|
|
296
303
|
.ft-ripple .ft-ripple--effect {
|
|
297
|
-
background-color: ${
|
|
304
|
+
background-color: ${uo.color};
|
|
298
305
|
}
|
|
299
306
|
|
|
300
307
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
301
|
-
background-color: ${
|
|
308
|
+
background-color: ${$o};
|
|
302
309
|
}
|
|
303
310
|
|
|
304
311
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
305
|
-
background-color: ${
|
|
312
|
+
background-color: ${Oo};
|
|
306
313
|
}
|
|
307
314
|
|
|
308
315
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
309
|
-
background-color: ${
|
|
316
|
+
background-color: ${xo};
|
|
310
317
|
}
|
|
311
318
|
|
|
312
319
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
313
|
-
background-color: ${
|
|
320
|
+
background-color: ${mo};
|
|
314
321
|
}
|
|
315
322
|
|
|
316
323
|
.ft-ripple .ft-ripple--background {
|
|
@@ -340,33 +347,33 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
340
347
|
}
|
|
341
348
|
|
|
342
349
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
343
|
-
opacity: ${
|
|
350
|
+
opacity: ${uo.opacityContentOnSurfaceHover};
|
|
344
351
|
}
|
|
345
352
|
|
|
346
353
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
347
|
-
opacity: ${
|
|
354
|
+
opacity: ${uo.opacityContentOnSurfaceSelected};
|
|
348
355
|
}
|
|
349
356
|
|
|
350
357
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
351
|
-
opacity: ${
|
|
358
|
+
opacity: ${uo.opacityContentOnSurfaceFocused};
|
|
352
359
|
}
|
|
353
360
|
|
|
354
361
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
355
|
-
opacity: ${
|
|
362
|
+
opacity: ${uo.opacityContentOnSurfacePressed};
|
|
356
363
|
transform: translate(-50%, -50%) scale(1);
|
|
357
364
|
}
|
|
358
|
-
`;var
|
|
365
|
+
`;var So,wo,Co=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Io extends o.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 o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
359
366
|
<style>
|
|
360
367
|
.ft-ripple .ft-ripple--effect {
|
|
361
368
|
left: ${this.originX}px;
|
|
362
369
|
top: ${this.originY}px;
|
|
363
370
|
}
|
|
364
371
|
</style>
|
|
365
|
-
<div class="${
|
|
372
|
+
<div class="${n.classMap(t)}">
|
|
366
373
|
<div class="ft-ripple--background"></div>
|
|
367
374
|
<div class="ft-ripple--effect"></div>
|
|
368
375
|
</div>
|
|
369
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ye.elementDefinitions={},ye.styles=xe,ve([o.property({type:Boolean})],ye.prototype,"primary",void 0),ve([o.property({type:Boolean})],ye.prototype,"secondary",void 0),ve([o.property({type:Boolean})],ye.prototype,"unbounded",void 0),ve([o.property({type:Boolean})],ye.prototype,"activated",void 0),ve([o.property({type:Boolean})],ye.prototype,"selected",void 0),ve([o.property({type:Boolean})],ye.prototype,"disabled",void 0),ve([o.state()],ye.prototype,"hovered",void 0),ve([o.state()],ye.prototype,"focused",void 0),ve([o.state()],ye.prototype,"pressed",void 0),ve([o.state()],ye.prototype,"rippling",void 0),ve([o.state()],ye.prototype,"originX",void 0),ve([o.state()],ye.prototype,"originY",void 0),ve([o.query(".ft-ripple")],ye.prototype,"ripple",void 0),ve([o.query(".ft-ripple--effect")],ye.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ye),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(ge||(ge={})),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=""}(be||(be={})),new Map([...["abw"].map((t=>[t,be.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,be.AUDIO])),...["avi"].map((t=>[t,be.AVI])),...["chm","xhs"].map((t=>[t,be.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,be.CODE])),...["csv"].map((t=>[t,be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,be.DITA])),...["epub"].map((t=>[t,be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,be.EXCEL])),...["flac"].map((t=>[t,be.FLAC])),...["gif"].map((t=>[t,be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,be.GZIP])),...["html","htm","xhtml"].map((t=>[t,be.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,be.JPEG])),...["json"].map((t=>[t,be.JSON])),...["m4a","m4p"].map((t=>[t,be.M4A])),...["mov","qt"].map((t=>[t,be.MOV])),...["mp3"].map((t=>[t,be.MP3])),...["mp4","m4v"].map((t=>[t,be.MP4])),...["ogg","oga"].map((t=>[t,be.OGG])),...["pdf","ps"].map((t=>[t,be.PDF])),...["png"].map((t=>[t,be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,be.POWERPOINT])),...["rar"].map((t=>[t,be.RAR])),...["stp"].map((t=>[t,be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,be.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,be.VIDEO])),...["wav"].map((t=>[t,be.WAV])),...["wma"].map((t=>[t,be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,be.WORD])),...["xml","xsl","rdf"].map((t=>[t,be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,be.YAML])),...["zip"].map((t=>[t,be.ZIP]))]);const $e={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},me=i.css`
|
|
376
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Io.elementDefinitions={},Io.styles=No,Co([i.property({type:Boolean})],Io.prototype,"primary",void 0),Co([i.property({type:Boolean})],Io.prototype,"secondary",void 0),Co([i.property({type:Boolean})],Io.prototype,"unbounded",void 0),Co([i.property({type:Boolean})],Io.prototype,"activated",void 0),Co([i.property({type:Boolean})],Io.prototype,"selected",void 0),Co([i.property({type:Boolean})],Io.prototype,"disabled",void 0),Co([i.state()],Io.prototype,"hovered",void 0),Co([i.state()],Io.prototype,"focused",void 0),Co([i.state()],Io.prototype,"pressed",void 0),Co([i.state()],Io.prototype,"rippling",void 0),Co([i.state()],Io.prototype,"originX",void 0),Co([i.state()],Io.prototype,"originY",void 0),Co([i.query(".ft-ripple")],Io.prototype,"ripple",void 0),Co([i.query(".ft-ripple--effect")],Io.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Io),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(So||(So={})),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=""}(wo||(wo={})),new Map([...["abw"].map((t=>[t,wo.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,wo.AUDIO])),...["avi"].map((t=>[t,wo.AVI])),...["chm","xhs"].map((t=>[t,wo.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,wo.CODE])),...["csv"].map((t=>[t,wo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,wo.DITA])),...["epub"].map((t=>[t,wo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,wo.EXCEL])),...["flac"].map((t=>[t,wo.FLAC])),...["gif"].map((t=>[t,wo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,wo.GZIP])),...["html","htm","xhtml"].map((t=>[t,wo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,wo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,wo.JPEG])),...["json"].map((t=>[t,wo.JSON])),...["m4a","m4p"].map((t=>[t,wo.M4A])),...["mov","qt"].map((t=>[t,wo.MOV])),...["mp3"].map((t=>[t,wo.MP3])),...["mp4","m4v"].map((t=>[t,wo.MP4])),...["ogg","oga"].map((t=>[t,wo.OGG])),...["pdf","ps"].map((t=>[t,wo.PDF])),...["png"].map((t=>[t,wo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,wo.POWERPOINT])),...["rar"].map((t=>[t,wo.RAR])),...["stp"].map((t=>[t,wo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,wo.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,wo.VIDEO])),...["wav"].map((t=>[t,wo.WAV])),...["wma"].map((t=>[t,wo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,wo.WORD])),...["xml","xsl","rdf"].map((t=>[t,wo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,wo.YAML])),...["zip"].map((t=>[t,wo.ZIP]))]);const ko={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Eo=e.css`
|
|
370
377
|
:host, i.ft-icon {
|
|
371
378
|
display: inline-flex;
|
|
372
379
|
align-items: center;
|
|
@@ -375,14 +382,14 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
375
382
|
}
|
|
376
383
|
|
|
377
384
|
:host {
|
|
378
|
-
width: ${
|
|
379
|
-
height: ${
|
|
385
|
+
width: ${ko.size};
|
|
386
|
+
height: ${ko.size};
|
|
380
387
|
}
|
|
381
388
|
|
|
382
389
|
i.ft-icon {
|
|
383
390
|
width: 100%;
|
|
384
391
|
height: 100%;
|
|
385
|
-
font-size: ${
|
|
392
|
+
font-size: ${ko.size};
|
|
386
393
|
line-height: 1;
|
|
387
394
|
font-weight: normal;
|
|
388
395
|
text-transform: none;
|
|
@@ -393,33 +400,33 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
393
400
|
text-rendering: auto;
|
|
394
401
|
-webkit-font-smoothing: antialiased;
|
|
395
402
|
-moz-osx-font-smoothing: grayscale;
|
|
396
|
-
vertical-align: ${
|
|
403
|
+
vertical-align: ${ko.verticalAlign};
|
|
397
404
|
}
|
|
398
405
|
|
|
399
406
|
i.ft-icon.ft-icon--fluid-topics {
|
|
400
|
-
font-family: ${
|
|
407
|
+
font-family: ${ko.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
401
408
|
|
|
402
409
|
/* Ugly fix because font is broken */
|
|
403
|
-
font-size: calc(0.75 * ${
|
|
404
|
-
line-height: ${
|
|
410
|
+
font-size: calc(0.75 * ${ko.size});
|
|
411
|
+
line-height: ${ko.size};
|
|
405
412
|
position: relative;
|
|
406
413
|
top: -4%;
|
|
407
414
|
justify-content: center;
|
|
408
415
|
}
|
|
409
416
|
|
|
410
417
|
.ft-icon--file-format {
|
|
411
|
-
font-family: ${
|
|
418
|
+
font-family: ${ko.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
412
419
|
}
|
|
413
420
|
|
|
414
421
|
.ft-icon--material {
|
|
415
|
-
font-family: ${
|
|
422
|
+
font-family: ${ko.materialFontFamily}, "Material Icons", sans-serif;
|
|
416
423
|
}
|
|
417
|
-
`;var
|
|
424
|
+
`;var Ro;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ro||(Ro={}));var Uo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Wo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ro).includes(this.variant)?this.variant:Ro.fluid_topics,o=t!==Ro.material||!!this.value;return e.html`
|
|
418
425
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
419
|
-
${
|
|
420
|
-
<slot ?hidden=${
|
|
426
|
+
${a.unsafeHTML(this.resolvedIcon)}
|
|
427
|
+
<slot ?hidden=${o}></slot>
|
|
421
428
|
</i>
|
|
422
|
-
`}get textContent(){var t,
|
|
429
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case Ro.file_format:this.resolvedIcon=null!==(t=wo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ro.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=So[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Wo.elementDefinitions={},Wo.styles=Eo,Uo([i.property()],Wo.prototype,"variant",void 0),Uo([i.property()],Wo.prototype,"value",void 0),Uo([i.state()],Wo.prototype,"resolvedIcon",void 0),Uo([i.query("slot")],Wo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Wo);const Lo={labelSize:o.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","unset"),selectedOptionColor:o.FtCssVariableFactory.extend("--ft-select-selected-option-color","",o.designSystemVariables.colorOnSurface),helperColor:o.FtCssVariableFactory.extend("--ft-select-helper-color","",o.designSystemVariables.colorOnSurfaceMedium),optionsColor:o.FtCssVariableFactory.extend("--ft-select-options-color","",o.designSystemVariables.colorOnSurface),optionsZIndex:o.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),elevation02:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system")},zo=e.css`
|
|
423
430
|
*:focus {
|
|
424
431
|
outline: none;
|
|
425
432
|
}
|
|
@@ -433,7 +440,7 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
433
440
|
.ft-select--main-panel {
|
|
434
441
|
position: relative;
|
|
435
442
|
display: flex;
|
|
436
|
-
height: calc(4 * ${
|
|
443
|
+
height: calc(4 * ${Lo.verticalSpacing} + ${Lo.labelSize} + ${Lo.selectedOptionSize});
|
|
437
444
|
}
|
|
438
445
|
|
|
439
446
|
.ft-select--input-panel {
|
|
@@ -442,17 +449,17 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
442
449
|
display: flex;
|
|
443
450
|
align-items: center;
|
|
444
451
|
overflow: hidden;
|
|
445
|
-
padding-left: ${
|
|
446
|
-
padding-right: ${
|
|
452
|
+
padding-left: ${Lo.horizontalSpacing};
|
|
453
|
+
padding-right: ${Lo.horizontalSpacing};
|
|
447
454
|
gap: 8px;
|
|
448
|
-
color: ${
|
|
449
|
-
${
|
|
455
|
+
color: ${Lo.selectedOptionColor};
|
|
456
|
+
${o.setVariable(uo.color,Lo.selectedOptionColor)};
|
|
450
457
|
}
|
|
451
458
|
|
|
452
459
|
.ft-select--input-panel,
|
|
453
460
|
.ft-select--option {
|
|
454
|
-
${
|
|
455
|
-
${
|
|
461
|
+
${o.setVariable(uo.opacityContentOnSurfaceHover,"0.08")};
|
|
462
|
+
${o.setVariable(uo.opacityContentOnSurfacePressed,"0.04")};
|
|
456
463
|
}
|
|
457
464
|
|
|
458
465
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -462,7 +469,7 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
462
469
|
|
|
463
470
|
.ft-select--disabled .ft-select--input-panel,
|
|
464
471
|
.ft-select--disabled .ft-select--option {
|
|
465
|
-
color: ${
|
|
472
|
+
color: ${Lo.colorOnSurfaceDisabled};
|
|
466
473
|
}
|
|
467
474
|
|
|
468
475
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -471,20 +478,20 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
471
478
|
}
|
|
472
479
|
|
|
473
480
|
ft-input-label {
|
|
474
|
-
${
|
|
475
|
-
${
|
|
476
|
-
${
|
|
477
|
-
${
|
|
478
|
-
${
|
|
481
|
+
${o.setVariable(po.fontSize,Lo.selectedOptionSize)};
|
|
482
|
+
${o.setVariable(po.raisedFontSize,Lo.labelSize)};
|
|
483
|
+
${o.setVariable(po.verticalSpacing,Lo.verticalSpacing)};
|
|
484
|
+
${o.setVariable(po.horizontalSpacing,Lo.horizontalSpacing)};
|
|
485
|
+
${o.setVariable(po.labelMaxWidth,`calc(100% - ${ko.size} - 8px)`)};
|
|
479
486
|
}
|
|
480
487
|
|
|
481
488
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
482
|
-
color: ${
|
|
489
|
+
color: ${Lo.colorPrimary};
|
|
483
490
|
}
|
|
484
491
|
|
|
485
492
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
486
|
-
${
|
|
487
|
-
${
|
|
493
|
+
${o.setVariable(po.borderColor,Lo.colorPrimary)};
|
|
494
|
+
${o.setVariable(po.textColor,Lo.colorPrimary)};
|
|
488
495
|
}
|
|
489
496
|
|
|
490
497
|
.ft-select--selected-option {
|
|
@@ -494,12 +501,12 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
494
501
|
overflow: hidden;
|
|
495
502
|
white-space: nowrap;
|
|
496
503
|
text-overflow: ellipsis;
|
|
497
|
-
${
|
|
498
|
-
${
|
|
504
|
+
${o.setVariable(Et.fontSize,Lo.selectedOptionSize)};
|
|
505
|
+
${o.setVariable(Et.lineHeight,Lo.selectedOptionSize)};
|
|
499
506
|
}
|
|
500
507
|
|
|
501
508
|
.ft-select--in-error .ft-select--selected-option {
|
|
502
|
-
color: ${
|
|
509
|
+
color: ${Lo.colorError};
|
|
503
510
|
}
|
|
504
511
|
|
|
505
512
|
ft-icon {
|
|
@@ -511,16 +518,16 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
511
518
|
}
|
|
512
519
|
|
|
513
520
|
.ft-select--filled .ft-select--input-panel {
|
|
514
|
-
border-radius: ${
|
|
521
|
+
border-radius: ${Lo.borderRadiusS} ${Lo.borderRadiusS} 0 0;
|
|
515
522
|
}
|
|
516
523
|
|
|
517
524
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
518
525
|
align-self: stretch;
|
|
519
|
-
padding-top: calc(${
|
|
526
|
+
padding-top: calc(${Lo.labelSize} + 2 * ${Lo.verticalSpacing});
|
|
520
527
|
}
|
|
521
528
|
|
|
522
529
|
.ft-select--outlined .ft-select--input-panel {
|
|
523
|
-
border-radius: ${
|
|
530
|
+
border-radius: ${Lo.borderRadiusS};
|
|
524
531
|
}
|
|
525
532
|
|
|
526
533
|
.ft-select--options {
|
|
@@ -529,10 +536,10 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
529
536
|
top: 100%;
|
|
530
537
|
left: 0;
|
|
531
538
|
right: 0;
|
|
532
|
-
color: ${
|
|
533
|
-
background: ${
|
|
534
|
-
z-index: ${
|
|
535
|
-
box-shadow: ${
|
|
539
|
+
color: ${Lo.optionsColor};
|
|
540
|
+
background: ${Lo.colorSurface};
|
|
541
|
+
z-index: ${Lo.optionsZIndex};
|
|
542
|
+
box-shadow: ${Lo.elevation02};
|
|
536
543
|
}
|
|
537
544
|
|
|
538
545
|
.ft-select--fixed .ft-select--options {
|
|
@@ -543,13 +550,13 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
543
550
|
|
|
544
551
|
.ft-select--options-displayed .ft-select--options {
|
|
545
552
|
display: block;
|
|
546
|
-
max-height: ${
|
|
553
|
+
max-height: ${Lo.optionsHeight};
|
|
547
554
|
overflow-y: auto;
|
|
548
555
|
}
|
|
549
556
|
|
|
550
557
|
.ft-select--option {
|
|
551
558
|
position: relative;
|
|
552
|
-
padding: 4px ${
|
|
559
|
+
padding: 4px ${Lo.horizontalSpacing};
|
|
553
560
|
min-height: 32px;
|
|
554
561
|
display: flex;
|
|
555
562
|
align-items: center;
|
|
@@ -561,68 +568,68 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
561
568
|
}
|
|
562
569
|
|
|
563
570
|
.ft-select--helper-text {
|
|
564
|
-
padding: 0 ${
|
|
565
|
-
color: ${
|
|
571
|
+
padding: 0 ${Lo.horizontalSpacing};
|
|
572
|
+
color: ${Lo.helperColor};
|
|
566
573
|
}
|
|
567
574
|
|
|
568
575
|
.ft-select--in-error .ft-select--helper-text {
|
|
569
|
-
color: ${
|
|
576
|
+
color: ${Lo.colorError};
|
|
570
577
|
}
|
|
571
|
-
`;var
|
|
572
|
-
<div class="${
|
|
578
|
+
`;var Zo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ko extends o.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return e.html``}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ko.elementDefinitions={},Zo([i.property({type:String})],Ko.prototype,"label",void 0),Zo([i.property({type:Object,converter:t=>t})],Ko.prototype,"value",void 0),Zo([i.property({type:Boolean,reflect:!0})],Ko.prototype,"selected",void 0);class Do extends o.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,o,i,a,l;let s=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const p=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==i?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":s,"ft-select--has-option-selected":p,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return e.html`
|
|
579
|
+
<div class="${n.classMap(f)}" part="container">
|
|
573
580
|
<div class="ft-select--main-panel" part="main-panel">
|
|
574
581
|
<ft-input-label text="${this.label}"
|
|
575
582
|
part="label"
|
|
576
|
-
?disabled=${
|
|
583
|
+
?disabled=${c}
|
|
577
584
|
?outlined=${this.outlined}
|
|
578
|
-
?raised=${
|
|
585
|
+
?raised=${p||s}
|
|
579
586
|
?error=${this.error}
|
|
580
587
|
></ft-input-label>
|
|
581
588
|
<div class="ft-select--input-panel"
|
|
582
589
|
part="selected-value"
|
|
583
|
-
tabindex="${
|
|
590
|
+
tabindex="${c?"-1":"0"}"
|
|
584
591
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
585
592
|
@keydown=${this.onMainPanelKeyDown}
|
|
586
593
|
aria-label="${this.label}"
|
|
587
594
|
aria-haspopup="listbox"
|
|
588
|
-
aria-expanded="${
|
|
589
|
-
<ft-ripple ?disabled=${
|
|
595
|
+
aria-expanded="${s}">
|
|
596
|
+
<ft-ripple ?disabled=${c} ?activated=${!this.outlined}></ft-ripple>
|
|
590
597
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
591
|
-
${null!==(
|
|
598
|
+
${null!==(l=null===(a=this.selectedOption)||void 0===a?void 0:a.label)&&void 0!==l?l:""}
|
|
592
599
|
</ft-typography>
|
|
593
|
-
<ft-icon>${
|
|
600
|
+
<ft-icon>${s?"thin_arrow_up":"thin_arrow"}</ft-icon>
|
|
594
601
|
</div>
|
|
595
602
|
<div class="ft-select--options"
|
|
596
603
|
part="options"
|
|
597
604
|
@keydown=${this.onOptionsKeyDown}
|
|
598
605
|
innerrole="listbox">
|
|
599
|
-
${
|
|
606
|
+
${r.repeat(this.options,(t=>t.value),(t=>this.renderOption(t)))}
|
|
600
607
|
</div>
|
|
601
608
|
</div>
|
|
602
|
-
${this.helper?
|
|
609
|
+
${this.helper?e.html`
|
|
603
610
|
<ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
|
|
604
611
|
</ft-typography>`:void 0}
|
|
605
612
|
</div>
|
|
606
613
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
607
614
|
@option-change=${this.updateOptionsFromSlot}
|
|
608
615
|
></slot>
|
|
609
|
-
`}renderOption(t){let
|
|
610
|
-
<div class="${
|
|
616
|
+
`}renderOption(t){let o=this.selectedOption===t;const i={"ft-select--option":!0,"ft-select--option-selected":o,"ft-typography--body2":!0};return e.html`
|
|
617
|
+
<div class="${n.classMap(i)}"
|
|
611
618
|
part="option"
|
|
612
619
|
tabindex="0"
|
|
613
620
|
data-value="${t.value}"
|
|
614
|
-
@keydown=${
|
|
621
|
+
@keydown=${o=>this.onOptionKeyDown(o,t)}
|
|
615
622
|
@click=${()=>this.selectOption(t)}>
|
|
616
|
-
<ft-ripple ?primary=${
|
|
623
|
+
<ft-ripple ?primary=${o} ?activated=${o}></ft-ripple>
|
|
617
624
|
<span>${t.label}</span>
|
|
618
625
|
</div>
|
|
619
|
-
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e
|
|
626
|
+
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var o,e;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(e=null!==(o=this.selectedOptionElement)&&void 0!==o?o:this.firstOption)||void 0===e||e.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var o;t.stopPropagation();let e=null===(o=this.optionsSlot)||void 0===o?void 0:o.assignedElements().map((t=>t));e&&e.length>0&&(this.options=e)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var o,e,i,r,a;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(i=null===(e=this.focusedOption)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(a=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,o){var e;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(o),this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus())}selectOption(t){var e,i;if(!o.deepEqual(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let o of this.options)o.selected=o===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Do.elementDefinitions={"ft-input-label":go,"ft-typography":co,"ft-ripple":Io,"ft-icon":Wo},Do.styles=[oo,eo,zo],Zo([i.property({type:String})],Do.prototype,"label",void 0),Zo([i.property({type:String})],Do.prototype,"helper",void 0),Zo([i.property({type:Boolean})],Do.prototype,"outlined",void 0),Zo([i.property({type:Boolean})],Do.prototype,"disabled",void 0),Zo([i.property({type:Boolean})],Do.prototype,"error",void 0),Zo([i.property({type:Boolean})],Do.prototype,"fixedMenuPosition",void 0),Zo([i.property({type:Array})],Do.prototype,"options",void 0),Zo([i.state()],Do.prototype,"selectedOption",void 0),Zo([i.state()],Do.prototype,"optionsDisplayed",void 0),Zo([i.state()],Do.prototype,"focusOptions",void 0),Zo([i.query(".ft-select")],Do.prototype,"container",void 0),Zo([i.query(".ft-select--options")],Do.prototype,"optionsMenu",void 0),Zo([i.query(".ft-select--input-panel")],Do.prototype,"mainPanel",void 0),Zo([i.query(".ft-select--option:first-child")],Do.prototype,"firstOption",void 0),Zo([i.query(".ft-select--option:focus")],Do.prototype,"focusedOption",void 0),Zo([i.query(".ft-select--option.ft-select--option-selected")],Do.prototype,"selectedOptionElement",void 0),Zo([i.query(".ft-select--option:last-child")],Do.prototype,"lastOption",void 0),Zo([i.query("slot")],Do.prototype,"optionsSlot",void 0),o.customElement("ft-select")(Do),o.customElement("ft-select-option")(Ko);
|
|
620
627
|
/**
|
|
621
628
|
* @license
|
|
622
629
|
* Copyright 2018 Google LLC
|
|
623
630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
624
631
|
*/
|
|
625
|
-
const
|
|
632
|
+
const Bo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.FtCssVariableFactory.extend("--ft-text-field-helper-color","",o.designSystemVariables.colorOnSurfaceMedium),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system"),prefixColor:o.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",o.designSystemVariables.colorOnSurfaceMedium),iconColor:o.FtCssVariableFactory.extend("--ft-text-field-icon-color","",o.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:o.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),elevation02:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),suggestSize:o.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Fo=e.css`
|
|
626
633
|
*:focus {
|
|
627
634
|
outline: none;
|
|
628
635
|
}
|
|
@@ -635,16 +642,16 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
635
642
|
}
|
|
636
643
|
|
|
637
644
|
ft-input-label {
|
|
638
|
-
${
|
|
639
|
-
${
|
|
640
|
-
${
|
|
641
|
-
${
|
|
645
|
+
${o.setVariable(po.fontSize,Bo.fontSize)};
|
|
646
|
+
${o.setVariable(po.raisedFontSize,Bo.labelSize)};
|
|
647
|
+
${o.setVariable(po.verticalSpacing,Bo.verticalSpacing)};
|
|
648
|
+
${o.setVariable(po.horizontalSpacing,Bo.horizontalSpacing)};
|
|
642
649
|
}
|
|
643
650
|
|
|
644
651
|
.ft-text-field--main-panel {
|
|
645
652
|
position: relative;
|
|
646
653
|
display: flex;
|
|
647
|
-
height: calc(4 * ${
|
|
654
|
+
height: calc(4 * ${Bo.verticalSpacing} + ${Bo.labelSize} + ${Bo.fontSize});
|
|
648
655
|
}
|
|
649
656
|
|
|
650
657
|
.ft-text-field--input-panel {
|
|
@@ -653,24 +660,24 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
653
660
|
display: flex;
|
|
654
661
|
align-items: center;
|
|
655
662
|
overflow: hidden;
|
|
656
|
-
padding: 0 ${
|
|
663
|
+
padding: 0 ${Bo.horizontalSpacing};
|
|
657
664
|
|
|
658
|
-
${
|
|
659
|
-
${
|
|
665
|
+
${o.setVariable(Et.fontSize,Bo.fontSize)};
|
|
666
|
+
${o.setVariable(Et.lineHeight,Bo.fontSize)};
|
|
660
667
|
}
|
|
661
668
|
|
|
662
669
|
.ft-text-field--input-panel ft-ripple {
|
|
663
|
-
${
|
|
664
|
-
${
|
|
670
|
+
${o.setVariable(uo.opacityContentOnSurfaceHover,"0.08")};
|
|
671
|
+
${o.setVariable(uo.opacityContentOnSurfacePressed,"0.04")};
|
|
665
672
|
}
|
|
666
673
|
|
|
667
674
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
668
675
|
align-items: flex-end;
|
|
669
|
-
padding: 0 ${
|
|
676
|
+
padding: 0 ${Bo.horizontalSpacing} ${Bo.verticalSpacing} ${Bo.horizontalSpacing};
|
|
670
677
|
}
|
|
671
678
|
|
|
672
679
|
.ft-text-field--prefix {
|
|
673
|
-
color: ${
|
|
680
|
+
color: ${Bo.prefixColor};
|
|
674
681
|
margin-right: 2px;
|
|
675
682
|
flex-shrink: 1;
|
|
676
683
|
overflow: hidden;
|
|
@@ -689,15 +696,15 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
689
696
|
flex-shrink: 1;
|
|
690
697
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
691
698
|
|
|
692
|
-
color: ${
|
|
693
|
-
padding: calc(2 * ${
|
|
699
|
+
color: ${Bo.colorOnSurface};
|
|
700
|
+
padding: calc(2 * ${Bo.verticalSpacing}) 0;
|
|
694
701
|
border: none;
|
|
695
702
|
background: none;
|
|
696
703
|
}
|
|
697
704
|
|
|
698
705
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
699
706
|
padding-bottom: 0;
|
|
700
|
-
padding-top: calc(${
|
|
707
|
+
padding-top: calc(${Bo.labelSize} + 2 * ${Bo.verticalSpacing});
|
|
701
708
|
}
|
|
702
709
|
|
|
703
710
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -706,37 +713,37 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
706
713
|
}
|
|
707
714
|
|
|
708
715
|
.ft-text-field--disabled .ft-text-field--input {
|
|
709
|
-
color: ${
|
|
716
|
+
color: ${Bo.colorOnSurfaceDisabled};
|
|
710
717
|
}
|
|
711
718
|
|
|
712
719
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
713
|
-
${
|
|
714
|
-
${
|
|
720
|
+
${o.setVariable(po.borderColor,Bo.colorPrimary)};
|
|
721
|
+
${o.setVariable(po.textColor,Bo.colorPrimary)};
|
|
715
722
|
}
|
|
716
723
|
|
|
717
724
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
718
|
-
border-radius: ${
|
|
725
|
+
border-radius: ${Bo.borderRadiusS} ${Bo.borderRadiusS} 0 0;
|
|
719
726
|
}
|
|
720
727
|
|
|
721
728
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
722
|
-
border-radius: ${
|
|
729
|
+
border-radius: ${Bo.borderRadiusS};
|
|
723
730
|
}
|
|
724
731
|
|
|
725
732
|
.ft-text-field--helper-text {
|
|
726
|
-
padding: 0 12px 0 ${
|
|
727
|
-
color: ${
|
|
733
|
+
padding: 0 12px 0 ${Bo.horizontalSpacing};
|
|
734
|
+
color: ${Bo.helperColor};
|
|
728
735
|
}
|
|
729
736
|
|
|
730
737
|
.ft-text-field--in-error .ft-text-field--input,
|
|
731
738
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
732
739
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
733
|
-
color: ${
|
|
740
|
+
color: ${Bo.colorError};
|
|
734
741
|
}
|
|
735
742
|
|
|
736
743
|
.ft-text-field--icon {
|
|
737
744
|
align-self: center;
|
|
738
745
|
margin-left: 8px;
|
|
739
|
-
color: ${
|
|
746
|
+
color: ${Bo.iconColor};
|
|
740
747
|
}
|
|
741
748
|
|
|
742
749
|
.ft-text-field--container {
|
|
@@ -749,13 +756,13 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
749
756
|
position: absolute;
|
|
750
757
|
left: 0;
|
|
751
758
|
right: 0;
|
|
752
|
-
z-index: ${
|
|
753
|
-
background: ${
|
|
754
|
-
border: 1px solid ${
|
|
755
|
-
border-radius: 0 0 ${
|
|
756
|
-
box-shadow: ${
|
|
759
|
+
z-index: ${Bo.floatingZIndex};
|
|
760
|
+
background: ${Bo.colorSurface};
|
|
761
|
+
border: 1px solid ${Bo.colorOutline};
|
|
762
|
+
border-radius: 0 0 ${Bo.borderRadiusS} ${Bo.borderRadiusS};
|
|
763
|
+
box-shadow: ${Bo.elevation02};
|
|
757
764
|
outline: none;
|
|
758
|
-
max-height: ${
|
|
765
|
+
max-height: ${Bo.suggestSize};
|
|
759
766
|
overflow-y: auto;
|
|
760
767
|
}
|
|
761
768
|
|
|
@@ -772,14 +779,14 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
772
779
|
}
|
|
773
780
|
|
|
774
781
|
.ft-text-field--with-icon {
|
|
775
|
-
${
|
|
782
|
+
${o.setVariable(po.labelMaxWidth,`calc(100% - ${ko.size} - ${po.horizontalSpacing})`)};
|
|
776
783
|
}
|
|
777
784
|
|
|
778
785
|
.ft-text-field--with-password ft-icon:hover {
|
|
779
786
|
cursor: pointer;
|
|
780
787
|
}
|
|
781
|
-
`;var
|
|
782
|
-
<div class="${
|
|
788
|
+
`;var Ao=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ho extends(o.toFtFormComponent(o.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=So.EYE_SLASH,this.passwordRevealedIcon=So.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const o=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",o)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return e.html`
|
|
789
|
+
<div class="${n.classMap(t)}">
|
|
783
790
|
<div class="ft-text-field--main-panel"
|
|
784
791
|
@keydown=${this.handleKeyboardNavigation}
|
|
785
792
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -789,16 +796,16 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
789
796
|
?raised=${this.focused||""!=this.value}
|
|
790
797
|
?error=${this.error}></ft-input-label>
|
|
791
798
|
<div class="ft-text-field--input-panel">
|
|
792
|
-
${this.outlined?
|
|
799
|
+
${this.outlined?e.nothing:e.html`
|
|
793
800
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
794
801
|
`}
|
|
795
|
-
${this.prefix?
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
802
|
+
${this.prefix?e.html`
|
|
803
|
+
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
804
|
+
${this.prefix}
|
|
805
|
+
</ft-typography>
|
|
806
|
+
`:e.nothing}
|
|
800
807
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
801
|
-
maxlength=${(t=>null!=t?t:
|
|
808
|
+
maxlength=${(t=>null!=t?t:E)(this.maxLength||void 0)}
|
|
802
809
|
aria-label="${this.label}"
|
|
803
810
|
class="ft-typography--body1 ft-text-field--input"
|
|
804
811
|
?disabled=${this.disabled}
|
|
@@ -813,23 +820,23 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
813
820
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
814
821
|
</div>
|
|
815
822
|
</div>
|
|
816
|
-
${this.helper?
|
|
823
|
+
${this.helper?e.html`
|
|
817
824
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
818
825
|
${this.helper}
|
|
819
826
|
</ft-typography>
|
|
820
|
-
`:
|
|
827
|
+
`:e.nothing}
|
|
821
828
|
</div>
|
|
822
|
-
`}renderPasswordIcon(){return
|
|
829
|
+
`}renderPasswordIcon(){return e.html`
|
|
823
830
|
<ft-icon class="ft-text-field--icon"
|
|
824
831
|
.variant=${this.iconVariant}
|
|
825
832
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
826
833
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
827
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?
|
|
834
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?e.html`
|
|
828
835
|
<ft-icon class="ft-text-field--icon"
|
|
829
836
|
.variant=${this.iconVariant}
|
|
830
837
|
.value=${this.icon}
|
|
831
838
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
832
|
-
`:
|
|
839
|
+
`:e.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var o,e;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(o=this.input)||void 0===o?void 0:o.getBoundingClientRect(),i=null===(e=this.suggestionsContainer)||void 0===e?void 0:e.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;const e=(null===(o=this.input)||void 0===o?void 0:o.value)||"";this.setValue(e,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const e=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?e<this.visibleSuggestions.length-1?e+1:0:e>0?e-1:this.visibleSuggestions.length-1,null===(o=this.visibleSuggestions[i])||void 0===o||o.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),null===(o=this.input)||void 0===o||o.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(o=this.input)||void 0===o?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ho.elementDefinitions={"ft-input-label":go,"ft-ripple":Io,"ft-typography":co,"ft-icon":Wo},Ho.styles=[to,Fo],Ao([i.property()],Ho.prototype,"label",void 0),Ao([i.property({noAccessor:!0})],Ho.prototype,"value",null),Ao([i.state()],Ho.prototype,"dispatchedValue",void 0),Ao([i.property()],Ho.prototype,"helper",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"outlined",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"disabled",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"error",void 0),Ao([i.property()],Ho.prototype,"prefix",void 0),Ao([i.property()],Ho.prototype,"icon",void 0),Ao([i.property()],Ho.prototype,"passwordHiddenIcon",void 0),Ao([i.property()],Ho.prototype,"passwordRevealedIcon",void 0),Ao([i.property()],Ho.prototype,"iconVariant",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"filterSuggestions",void 0),Ao([i.property({type:Number})],Ho.prototype,"maxLength",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"password",void 0),Ao([i.state()],Ho.prototype,"focused",void 0),Ao([i.state()],Ho.prototype,"hidePassword",void 0),Ao([i.state()],Ho.prototype,"suggestionsOnTop",void 0),Ao([i.state()],Ho.prototype,"hideSuggestions",void 0),Ao([i.state()],Ho.prototype,"visibleSuggestions",void 0),Ao([i.query(".ft-text-field--main-panel")],Ho.prototype,"mainPanel",void 0),Ao([i.query(".ft-text-field--input")],Ho.prototype,"input",void 0),Ao([i.query(".ft-text-field--suggestions")],Ho.prototype,"suggestionsContainer",void 0),Ao([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],Ho.prototype,"suggestions",void 0);const Go=e.css`
|
|
833
840
|
.ft-text-field-suggestion {
|
|
834
841
|
position: relative;
|
|
835
842
|
padding: 8px 16px;
|
|
@@ -854,7 +861,7 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
854
861
|
slot {
|
|
855
862
|
pointer-events: none;
|
|
856
863
|
}
|
|
857
|
-
`;var
|
|
864
|
+
`;var jo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Po extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Mo extends o.FtLitElement{render(){return e.html`
|
|
858
865
|
<div class="ft-text-field-suggestion"
|
|
859
866
|
tabindex="-1"
|
|
860
867
|
@keydown=${this.onKeyDown}
|
|
@@ -866,54 +873,7 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
866
873
|
<slot></slot>
|
|
867
874
|
</ft-typography>
|
|
868
875
|
</div>
|
|
869
|
-
`}focus(t){var
|
|
870
|
-
.ft-tooltip--container {
|
|
871
|
-
display: block;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
.ft-tooltip--inline {
|
|
875
|
-
display: inline-block;
|
|
876
|
-
max-width: 100%;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
.ft-tooltip {
|
|
880
|
-
position: absolute;
|
|
881
|
-
box-sizing: border-box;
|
|
882
|
-
overflow: hidden;
|
|
883
|
-
width: max-content;
|
|
884
|
-
max-width: ${He};
|
|
885
|
-
text-align: center;
|
|
886
|
-
padding: ${Te};
|
|
887
|
-
z-index: ${Ue};
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
.ft-tooltip--content {
|
|
891
|
-
padding: 4px 8px;
|
|
892
|
-
border-radius: ${Pe};
|
|
893
|
-
background-color: ${_e};
|
|
894
|
-
color: ${Re};
|
|
895
|
-
position: relative;
|
|
896
|
-
word-break: break-word;
|
|
897
|
-
}
|
|
898
|
-
`;var We=function(t,e,i,o){for(var s,n=arguments.length,l=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(l=(n<3?s(l):n>3?s(e,i,l):s(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l};class Ke extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
|
|
899
|
-
<div part="container"
|
|
900
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
901
|
-
@mouseenter=${this.onHover}
|
|
902
|
-
@mouseleave=${this.onOut}
|
|
903
|
-
@focusin=${this.onHover}
|
|
904
|
-
@focusout=${this.onOut}
|
|
905
|
-
@touchstart=${this.onTouch}>
|
|
906
|
-
<slot></slot>
|
|
907
|
-
<div part="tooltip" role="tooltip" inert
|
|
908
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
909
|
-
?hidden=${!this.visible}>
|
|
910
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
911
|
-
<slot name="text"></slot>
|
|
912
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
913
|
-
</div>
|
|
914
|
-
</div>
|
|
915
|
-
</div>
|
|
916
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,l=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":l=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":l=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":l=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":l=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const r=this.tooltip.style;r.left=n+"px",r.top=l+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,f=a.x+a.width-window.innerWidth;r.left=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px";let d=-a.y,h=a.y+a.height-window.innerHeight;r.top=l+Math.round(this.correctOutOfWindowPixels(d,h))+"px",r.maxWidth=`max(${t.offsetWidth}px, ${He})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ke.elementDefinitions={"ft-typography":ie},Ke.styles=Ve,We([o.property()],Ke.prototype,"text",void 0),We([o.property({type:Boolean})],Ke.prototype,"manual",void 0),We([o.property({type:Boolean})],Ke.prototype,"inline",void 0),We([o.property({type:Number})],Ke.prototype,"delay",void 0),We([o.property()],Ke.prototype,"position",void 0),We([o.queryAssignedNodes("",!0)],Ke.prototype,"slotNodes",void 0),We([o.query(".ft-tooltip--container")],Ke.prototype,"container",void 0),We([o.query(".ft-tooltip")],Ke.prototype,"tooltip",void 0),We([o.query(".ft-tooltip--content")],Ke.prototype,"tooltipContent",void 0),We([o.state()],Ke.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ke);const Le={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ge=i.css`
|
|
876
|
+
`}focus(t){var o;null===(o=this.container)||void 0===o||o.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Po(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Mo.elementDefinitions={"ft-ripple":Io,"ft-typography":co,"ft-icon":Wo},Mo.styles=Go,jo([i.property()],Mo.prototype,"value",void 0),jo([i.query(".ft-text-field-suggestion")],Mo.prototype,"container",void 0),jo([i.queryAssignedNodes()],Mo.prototype,"assignedNodes",void 0),o.customElement("ft-text-field")(Ho),o.customElement("ft-text-field-suggestion")(Mo);const To={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},_o=e.css`
|
|
917
877
|
:host {
|
|
918
878
|
line-height: 0;
|
|
919
879
|
}
|
|
@@ -922,8 +882,8 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
922
882
|
display: inline-block;
|
|
923
883
|
position: relative;
|
|
924
884
|
|
|
925
|
-
width: ${
|
|
926
|
-
height: ${
|
|
885
|
+
width: ${To.size};
|
|
886
|
+
height: ${To.size};
|
|
927
887
|
}
|
|
928
888
|
|
|
929
889
|
.ft-loader div {
|
|
@@ -932,7 +892,7 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
932
892
|
width: 25%;
|
|
933
893
|
height: 25%;
|
|
934
894
|
border-radius: 50%;
|
|
935
|
-
background: ${
|
|
895
|
+
background: ${To.color};
|
|
936
896
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
937
897
|
}
|
|
938
898
|
|
|
@@ -979,17 +939,10 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
979
939
|
transform: translate(0, 0);
|
|
980
940
|
}
|
|
981
941
|
100% {
|
|
982
|
-
transform: translate(calc(0.35 * ${
|
|
942
|
+
transform: translate(calc(0.35 * ${To.size}), 0);
|
|
983
943
|
}
|
|
984
944
|
}
|
|
985
|
-
|
|
986
|
-
<div class="ft-loader">
|
|
987
|
-
<div></div>
|
|
988
|
-
<div></div>
|
|
989
|
-
<div></div>
|
|
990
|
-
<div></div>
|
|
991
|
-
</div>
|
|
992
|
-
`}}qe.styles=Ge,e.customElement("ft-loader")(qe);const Xe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Ye={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Xe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Ht.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Xe),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Je=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Qe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Je,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Je)},ti=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),ei=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),ii=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),oi=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),si=[i.css`
|
|
945
|
+
`,Vo=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Yo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Vo,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",Yt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Vo),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},qo=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Xo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:qo,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",qo)},Jo=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),Qo=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),te=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),oe=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),ee=[e.css`
|
|
993
946
|
:host {
|
|
994
947
|
display: inline-block;
|
|
995
948
|
max-width: 100%;
|
|
@@ -1000,7 +953,7 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1000
953
|
box-shadow: 0px 0px 0px transparent;
|
|
1001
954
|
border: 0px solid transparent;
|
|
1002
955
|
text-shadow: 0px 0px 0px transparent;
|
|
1003
|
-
font-size: ${
|
|
956
|
+
font-size: ${Yo.fontSize};
|
|
1004
957
|
}
|
|
1005
958
|
|
|
1006
959
|
button:hover {
|
|
@@ -1029,31 +982,31 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1029
982
|
border: none;
|
|
1030
983
|
pointer-events: auto;
|
|
1031
984
|
|
|
1032
|
-
--ft-button-internal-line-height: max(calc(${
|
|
1033
|
-
--ft-button-internal-color: ${
|
|
1034
|
-
${
|
|
1035
|
-
${
|
|
985
|
+
--ft-button-internal-line-height: max(calc(${Yo.fontSize} + 2px), ${Yo.iconSize});
|
|
986
|
+
--ft-button-internal-color: ${Yo.color};
|
|
987
|
+
${o.setVariable(ko.size,Yo.iconSize)};
|
|
988
|
+
${o.setVariable(uo.color,Yo.rippleColor)};
|
|
1036
989
|
|
|
1037
|
-
border-radius: ${
|
|
1038
|
-
padding: ${
|
|
1039
|
-
background-color: ${
|
|
990
|
+
border-radius: ${Yo.borderRadius};
|
|
991
|
+
padding: ${Yo.verticalPadding} ${Yo.horizontalPadding};
|
|
992
|
+
background-color: ${Yo.backgroundColor};
|
|
1040
993
|
color: var(--ft-button-internal-color);
|
|
1041
994
|
-webkit-mask-image: radial-gradient(white, black);
|
|
1042
995
|
}
|
|
1043
996
|
|
|
1044
997
|
.ft-button.ft-button--outlined {
|
|
1045
998
|
border: 1px solid var(--ft-button-internal-color);
|
|
1046
|
-
padding: calc(${
|
|
999
|
+
padding: calc(${Yo.verticalPadding} - 1px) calc(${Yo.horizontalPadding} - 1px);
|
|
1047
1000
|
}
|
|
1048
1001
|
|
|
1049
1002
|
.ft-button.ft-button--dense {
|
|
1050
|
-
padding: ${
|
|
1051
|
-
border-radius: ${
|
|
1052
|
-
gap: ${
|
|
1003
|
+
padding: ${Qo} ${te};
|
|
1004
|
+
border-radius: ${Jo};
|
|
1005
|
+
gap: ${oe};
|
|
1053
1006
|
}
|
|
1054
1007
|
|
|
1055
1008
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
1056
|
-
padding: calc(${
|
|
1009
|
+
padding: calc(${Qo} - 1px) calc(${te} - 1px);
|
|
1057
1010
|
}
|
|
1058
1011
|
|
|
1059
1012
|
.ft-button:not([disabled]):hover {
|
|
@@ -1061,22 +1014,22 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1061
1014
|
}
|
|
1062
1015
|
|
|
1063
1016
|
.ft-button--round {
|
|
1064
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
1017
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Yo.verticalPadding});
|
|
1065
1018
|
}
|
|
1066
1019
|
|
|
1067
1020
|
.ft-button--round.ft-button--dense {
|
|
1068
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
1021
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Qo});
|
|
1069
1022
|
}
|
|
1070
1023
|
|
|
1071
1024
|
.ft-button[disabled] {
|
|
1072
1025
|
filter: grayscale(1);
|
|
1073
|
-
opacity: ${
|
|
1026
|
+
opacity: ${Yo.opacityDisabled};
|
|
1074
1027
|
}
|
|
1075
1028
|
|
|
1076
1029
|
.ft-button.ft-button--primary {
|
|
1077
|
-
background-color: ${
|
|
1078
|
-
--ft-button-internal-color: ${
|
|
1079
|
-
${
|
|
1030
|
+
background-color: ${Xo.backgroundColor};
|
|
1031
|
+
--ft-button-internal-color: ${Xo.color};
|
|
1032
|
+
${o.setVariable(uo.color,Xo.rippleColor)};
|
|
1080
1033
|
}
|
|
1081
1034
|
|
|
1082
1035
|
.ft-button:focus {
|
|
@@ -1089,13 +1042,13 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1089
1042
|
white-space: nowrap;
|
|
1090
1043
|
text-overflow: ellipsis;
|
|
1091
1044
|
display: block;
|
|
1092
|
-
margin: 0 ${
|
|
1093
|
-
${
|
|
1094
|
-
${
|
|
1045
|
+
margin: 0 ${Yo.iconPadding};
|
|
1046
|
+
${o.setVariable(Yt.fontSize,"1em")};
|
|
1047
|
+
${o.setVariable(Yt.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
1095
1048
|
}
|
|
1096
1049
|
|
|
1097
1050
|
.ft-button--dense .ft-button--label {
|
|
1098
|
-
margin: 0 ${
|
|
1051
|
+
margin: 0 ${oe};
|
|
1099
1052
|
}
|
|
1100
1053
|
|
|
1101
1054
|
.ft-button--label[hidden] {
|
|
@@ -1108,13 +1061,13 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1108
1061
|
}
|
|
1109
1062
|
|
|
1110
1063
|
.ft-button--label[hidden] + ft-icon {
|
|
1111
|
-
margin: 0 calc(${
|
|
1112
|
-
padding: 0 ${
|
|
1064
|
+
margin: 0 calc(${Yo.horizontalPadding} * -1);
|
|
1065
|
+
padding: 0 ${Yo.verticalPadding};
|
|
1113
1066
|
}
|
|
1114
1067
|
|
|
1115
1068
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
1116
|
-
margin: 0 calc(${
|
|
1117
|
-
padding: 0 ${
|
|
1069
|
+
margin: 0 calc(${te} * -1);
|
|
1070
|
+
padding: 0 ${Qo};
|
|
1118
1071
|
}
|
|
1119
1072
|
|
|
1120
1073
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -1123,33 +1076,305 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1123
1076
|
}
|
|
1124
1077
|
|
|
1125
1078
|
ft-loader {
|
|
1126
|
-
${
|
|
1127
|
-
${
|
|
1079
|
+
${o.setVariable(To.size,Yo.iconSize)};
|
|
1080
|
+
${o.setVariable(To.color,"var(--ft-button-internal-color)")};
|
|
1128
1081
|
}
|
|
1129
|
-
`,
|
|
1082
|
+
`,o.noTextSelect],ie=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),re=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ae=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ne=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),le=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),se=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),ce=e.css`
|
|
1083
|
+
.ft-tooltip--container {
|
|
1084
|
+
display: block;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.ft-tooltip--inline {
|
|
1088
|
+
display: inline-block;
|
|
1089
|
+
max-width: 100%;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.ft-tooltip {
|
|
1093
|
+
position: absolute;
|
|
1094
|
+
box-sizing: border-box;
|
|
1095
|
+
overflow: hidden;
|
|
1096
|
+
width: max-content;
|
|
1097
|
+
max-width: ${se};
|
|
1098
|
+
text-align: center;
|
|
1099
|
+
padding: ${ie};
|
|
1100
|
+
z-index: ${ne};
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.ft-tooltip--content {
|
|
1104
|
+
padding: 4px 8px;
|
|
1105
|
+
border-radius: ${le};
|
|
1106
|
+
background-color: ${ae};
|
|
1107
|
+
color: ${re};
|
|
1108
|
+
position: relative;
|
|
1109
|
+
word-break: break-word;
|
|
1110
|
+
}
|
|
1111
|
+
`;var pe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class fe extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
1112
|
+
<div part="container"
|
|
1113
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
1114
|
+
@mouseenter=${this.onHover}
|
|
1115
|
+
@mouseleave=${this.onOut}
|
|
1116
|
+
@focusin=${this.onHover}
|
|
1117
|
+
@focusout=${this.onOut}
|
|
1118
|
+
@touchstart=${this.onTouch}>
|
|
1119
|
+
<slot></slot>
|
|
1120
|
+
<div part="tooltip" role="tooltip" inert
|
|
1121
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
1122
|
+
?hidden=${!this.visible}>
|
|
1123
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
1124
|
+
<slot name="text"></slot>
|
|
1125
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
1126
|
+
</div>
|
|
1127
|
+
</div>
|
|
1128
|
+
</div>
|
|
1129
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,p=s.x+s.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-s.y,d=s.y+s.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${se})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}fe.elementDefinitions={"ft-typography":co},fe.styles=ce,pe([i.property()],fe.prototype,"text",void 0),pe([i.property({type:Boolean})],fe.prototype,"manual",void 0),pe([i.property({type:Boolean})],fe.prototype,"inline",void 0),pe([i.property({type:Number})],fe.prototype,"delay",void 0),pe([i.property()],fe.prototype,"position",void 0),pe([i.queryAssignedNodes("",!0)],fe.prototype,"slotNodes",void 0),pe([i.query(".ft-tooltip--container")],fe.prototype,"container",void 0),pe([i.query(".ft-tooltip")],fe.prototype,"tooltip",void 0),pe([i.query(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0),pe([i.state()],fe.prototype,"visible",void 0),o.customElement("ft-tooltip")(fe);class de extends o.FtLitElement{render(){return e.html`
|
|
1130
|
+
<div class="ft-loader">
|
|
1131
|
+
<div></div>
|
|
1132
|
+
<div></div>
|
|
1133
|
+
<div></div>
|
|
1134
|
+
<div></div>
|
|
1135
|
+
</div>
|
|
1136
|
+
`}}de.styles=_o,o.customElement("ft-loader")(de);var he=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ge extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
1130
1137
|
<button part="button"
|
|
1131
|
-
class="${
|
|
1138
|
+
class="${n.classMap(this.buttonClasses)}"
|
|
1132
1139
|
aria-label="${this.getLabel()}"
|
|
1133
1140
|
?disabled=${this.isDisabled()}>
|
|
1134
1141
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1135
1142
|
<ft-typography part="label"
|
|
1136
|
-
variant
|
|
1143
|
+
variant=${this.typographyVariant}
|
|
1137
1144
|
element="span"
|
|
1138
|
-
class="ft-button--label ${
|
|
1145
|
+
class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
1139
1146
|
?hidden=${!this.hasTextContent()}>
|
|
1140
1147
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1141
1148
|
</ft-typography>
|
|
1142
1149
|
${this.resolveIcon()}
|
|
1143
1150
|
</button>
|
|
1144
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
`:t}resolveIcon(){return this.loading?
|
|
1151
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1152
|
-
|
|
1151
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
|
|
1152
|
+
<ft-tooltip part="tooltip"
|
|
1153
|
+
text="${this.getLabel()}"
|
|
1154
|
+
position="${this.tooltipPosition}">
|
|
1155
|
+
${t}
|
|
1156
|
+
</ft-tooltip>
|
|
1157
|
+
`:t}resolveIcon(){return this.loading?e.html`
|
|
1158
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
1159
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ge.elementDefinitions={"ft-ripple":Io,"ft-tooltip":fe,"ft-typography":co,"ft-icon":Wo,"ft-loader":de},he([i.property({type:String,reflect:!0})],ge.prototype,"role",void 0),he([i.property()],ge.prototype,"type",void 0),he([i.property({type:Boolean})],ge.prototype,"disabled",void 0),he([i.property()],ge.prototype,"label",void 0),he([i.property()],ge.prototype,"icon",void 0),he([i.property()],ge.prototype,"iconVariant",void 0),he([i.property({type:Boolean})],ge.prototype,"trailingIcon",void 0),he([i.property({type:Boolean})],ge.prototype,"loading",void 0),he([i.property()],ge.prototype,"tooltipPosition",void 0),he([i.property({type:Boolean})],ge.prototype,"hideTooltip",void 0),he([i.property({type:Boolean})],ge.prototype,"forceTooltip",void 0),he([i.query(".ft-button")],ge.prototype,"button",void 0),he([i.query(".ft-button--label slot")],ge.prototype,"slottedContent",void 0);var ye=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ue extends ge{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ue.styles=[o.safariEllipsisFix,ee],ye([i.property({type:Boolean})],ue.prototype,"primary",void 0),ye([i.property({type:Boolean})],ue.prototype,"outlined",void 0),ye([i.property({type:Boolean})],ue.prototype,"disabled",void 0),ye([i.property({type:Boolean})],ue.prototype,"dense",void 0),ye([i.property({type:Boolean})],ue.prototype,"round",void 0);const be=[e.css`
|
|
1160
|
+
:host {
|
|
1161
|
+
display: inline-block;
|
|
1162
|
+
max-width: 100%;
|
|
1163
|
+
pointer-events: none;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/** Remove default button styles **/
|
|
1167
|
+
|
|
1168
|
+
button {
|
|
1169
|
+
box-shadow: 0 0 0 transparent;
|
|
1170
|
+
border: 0 solid transparent;
|
|
1171
|
+
text-shadow: 0 0 0 transparent;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
button:hover {
|
|
1175
|
+
box-shadow: 0 0 0 transparent;
|
|
1176
|
+
text-shadow: 0 0 0 transparent;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
button:active {
|
|
1180
|
+
outline: none;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
button:focus {
|
|
1184
|
+
outline: 0;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/** Base styles **/
|
|
1188
|
+
|
|
1189
|
+
.ft-button {
|
|
1190
|
+
position: relative;
|
|
1191
|
+
display: flex;
|
|
1192
|
+
justify-content: center;
|
|
1193
|
+
align-items: center;
|
|
1194
|
+
width: 100%;
|
|
1195
|
+
overflow: hidden;
|
|
1196
|
+
box-sizing: border-box;
|
|
1197
|
+
pointer-events: auto;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
.ft-button:not([disabled]):hover {
|
|
1201
|
+
cursor: pointer;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
.ft-button:focus {
|
|
1205
|
+
outline: none;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.ft-button:focus-visible {
|
|
1209
|
+
outline-color: ${ot.focusFocusRingColor};
|
|
1210
|
+
outline-style: solid;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
ft-icon {
|
|
1214
|
+
flex-shrink: 0;
|
|
1215
|
+
position: relative;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
1219
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
1220
|
+
order: -1;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
.ft-button--label {
|
|
1224
|
+
position: relative;
|
|
1225
|
+
overflow: hidden;
|
|
1226
|
+
white-space: nowrap;
|
|
1227
|
+
text-overflow: ellipsis;
|
|
1228
|
+
display: block;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.ft-button--label[hidden] {
|
|
1232
|
+
display: none;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/** Primary styles **/
|
|
1236
|
+
|
|
1237
|
+
.ft-button--primary {
|
|
1238
|
+
${o.setVariable(To.color,ot.primaryIconColor)};
|
|
1239
|
+
|
|
1240
|
+
${o.setVariable(uo.color,ot.primaryStateLayerColor)};
|
|
1241
|
+
${o.setVariable(uo.opacityContentOnSurfaceHover,ot.primaryStateLayerOpacityHover)};
|
|
1242
|
+
${o.setVariable(uo.opacityContentOnSurfaceFocused,ot.primaryStateLayerOpacityFocus)};
|
|
1243
|
+
${o.setVariable(uo.opacityContentOnSurfaceSelected,ot.primaryStateLayerOpacityActive)};
|
|
1244
|
+
${o.setVariable(uo.opacityContentOnSurfacePressed,ot.primaryStateLayerOpacityActive)};
|
|
1245
|
+
|
|
1246
|
+
background-color: ${ot.primaryBackgroundColor};
|
|
1247
|
+
color: ${ot.primaryColor};
|
|
1248
|
+
border-style: none;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
.ft-button--primary[disabled] {
|
|
1252
|
+
opacity: ${ot.primaryComponentOpacityDisabled};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.ft-button--primary ft-icon {
|
|
1256
|
+
color: ${ot.primaryIconColor};
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/** Secondary styles **/
|
|
1260
|
+
|
|
1261
|
+
.ft-button--secondary {
|
|
1262
|
+
${o.setVariable(To.color,ot.secondaryIconColor)};
|
|
1263
|
+
|
|
1264
|
+
${o.setVariable(uo.color,ot.secondaryStateLayerColor)};
|
|
1265
|
+
${o.setVariable(uo.opacityContentOnSurfaceHover,ot.secondaryStateLayerOpacityHover)};
|
|
1266
|
+
${o.setVariable(uo.opacityContentOnSurfaceFocused,ot.secondaryStateLayerOpacityFocus)};
|
|
1267
|
+
${o.setVariable(uo.opacityContentOnSurfaceSelected,ot.secondaryStateLayerOpacityActive)};
|
|
1268
|
+
${o.setVariable(uo.opacityContentOnSurfacePressed,ot.secondaryStateLayerOpacityActive)};
|
|
1269
|
+
|
|
1270
|
+
background-color: ${ot.secondaryBackgroundColor};
|
|
1271
|
+
color: ${ot.secondaryColor};
|
|
1272
|
+
border-color: ${ot.secondaryBorderColor};
|
|
1273
|
+
border-style: solid;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.ft-button--secondary[disabled] {
|
|
1277
|
+
opacity: ${ot.secondaryComponentOpacityDisabled};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.ft-button--secondary ft-icon {
|
|
1281
|
+
color: ${ot.secondaryIconColor};
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/** Tertiary styles **/
|
|
1285
|
+
|
|
1286
|
+
.ft-button--tertiary {
|
|
1287
|
+
${o.setVariable(To.color,ot.tertiaryIconColor)};
|
|
1288
|
+
|
|
1289
|
+
${o.setVariable(uo.color,ot.tertiaryStateLayerColor)};
|
|
1290
|
+
${o.setVariable(uo.opacityContentOnSurfaceHover,ot.tertiaryStateLayerOpacityHover)};
|
|
1291
|
+
${o.setVariable(uo.opacityContentOnSurfaceFocused,ot.tertiaryStateLayerOpacityFocus)};
|
|
1292
|
+
${o.setVariable(uo.opacityContentOnSurfaceSelected,ot.tertiaryStateLayerOpacityActive)};
|
|
1293
|
+
${o.setVariable(uo.opacityContentOnSurfacePressed,ot.tertiaryStateLayerOpacityActive)};
|
|
1294
|
+
|
|
1295
|
+
background-color: ${ot.tertiaryBackgroundColor};
|
|
1296
|
+
color: ${ot.tertiaryColor};
|
|
1297
|
+
border-style: none;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.ft-button--tertiary[disabled] {
|
|
1301
|
+
opacity: ${ot.tertiaryComponentOpacityDisabled};
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.ft-button--tertiary ft-icon {
|
|
1305
|
+
color: ${ot.tertiaryIconColor};
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/** Neutral styles **/
|
|
1309
|
+
|
|
1310
|
+
.ft-button--neutral {
|
|
1311
|
+
${o.setVariable(To.color,ot.neutralIconColor)};
|
|
1312
|
+
|
|
1313
|
+
${o.setVariable(uo.backgroundColor,ot.neutralStateLayerColor)};
|
|
1314
|
+
${o.setVariable(uo.opacityContentOnSurfaceHover,ot.neutralStateLayerOpacityHover)};
|
|
1315
|
+
${o.setVariable(uo.opacityContentOnSurfaceFocused,ot.neutralStateLayerOpacityFocus)};
|
|
1316
|
+
${o.setVariable(uo.opacityContentOnSurfaceSelected,ot.neutralStateLayerOpacityActive)};
|
|
1317
|
+
${o.setVariable(uo.opacityContentOnSurfacePressed,ot.neutralStateLayerOpacityActive)};
|
|
1318
|
+
|
|
1319
|
+
background-color: ${ot.neutralBackgroundColor};
|
|
1320
|
+
color: ${ot.neutralColor};
|
|
1321
|
+
border-style: none;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.ft-button--neutral[disabled] {
|
|
1325
|
+
opacity: ${ot.neutralComponentOpacityDisabled};
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.ft-button--neutral ft-icon {
|
|
1329
|
+
color: ${ot.neutralIconColor};
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/** Large styles **/
|
|
1333
|
+
|
|
1334
|
+
.ft-button--large {
|
|
1335
|
+
${o.setVariable(ko.size,ot.largeIconSize)};
|
|
1336
|
+
${o.setVariable(To.size,ot.largeIconSize)};
|
|
1337
|
+
|
|
1338
|
+
height: ${ot.largeHeight};
|
|
1339
|
+
padding: 0 ${ot.largeHorizontalPadding};
|
|
1340
|
+
gap: ${ot.largeGap};
|
|
1341
|
+
border-radius: ${ot.largeBorderRadius};
|
|
1342
|
+
border-width: ${ot.largeBorderWidth};
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.ft-button--large:focus-visible {
|
|
1346
|
+
outline-width: ${ot.largeFocusOutlineWidth};
|
|
1347
|
+
outline-offset: ${ot.largeFocusOutlineOffset};
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.ft-button--large.ft-button--icon-only {
|
|
1351
|
+
width: ${ot.largeIconOnlyWidth};
|
|
1352
|
+
padding: unset;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/** Small styles **/
|
|
1356
|
+
|
|
1357
|
+
.ft-button--small {
|
|
1358
|
+
${o.setVariable(ko.size,ot.smallIconSize)};
|
|
1359
|
+
${o.setVariable(To.size,ot.smallIconSize)};
|
|
1360
|
+
|
|
1361
|
+
height: ${ot.smallHeight};
|
|
1362
|
+
padding: 0 ${ot.smallHorizontalPadding};
|
|
1363
|
+
gap: ${ot.smallGap};
|
|
1364
|
+
border-radius: ${ot.smallBorderRadius};
|
|
1365
|
+
border-width: ${ot.smallBorderWidth};
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.ft-button--small:focus-visible {
|
|
1369
|
+
outline-width: ${ot.smallFocusOutlineWidth};
|
|
1370
|
+
outline-offset: ${ot.smallFocusOutlineOffset};
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.ft-button--small.ft-button--icon-only {
|
|
1374
|
+
width: ${ot.smallIconOnlyWidth};
|
|
1375
|
+
padding: unset;
|
|
1376
|
+
}
|
|
1377
|
+
`,o.noTextSelect];var me=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xe extends ge{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Y.caption1medium:Y.body2medium}}xe.styles=[o.safariEllipsisFix,be],me([i.property({type:Boolean})],xe.prototype,"primary",void 0),me([i.property({type:Boolean})],xe.prototype,"secondary",void 0),me([i.property({type:Boolean})],xe.prototype,"tertiary",void 0),me([i.property({type:Boolean})],xe.prototype,"neutral",void 0),me([i.property({type:Boolean})],xe.prototype,"small",void 0),o.customElement("ft-button")(ue),o.customElement("ftds-button")(xe);class ve extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Oe={headerBackground:o.FtCssVariableFactory.create("--ft-filterable-table-header-background","","COLOR","whitesmoke"),oddRowBackground:o.FtCssVariableFactory.create("--ft-filterable-table-odd-row-background","","COLOR","#FFFFFF"),evenRowBackground:o.FtCssVariableFactory.create("--ft-filterable-table-even-row-background","","COLOR","#fdfdfd"),rowHoverBackground:o.FtCssVariableFactory.create("--ft-filterable-table-row-hover-background","","COLOR","#fafafa"),stickyHeaderZIndex:o.FtCssVariableFactory.create("--ft-filterable-table-sticky-header-zindex","","NUMBER","100"),cellVerticalBorderWidth:o.FtCssVariableFactory.create("--ft-filterable-table-cell-vertical-border-width","","SIZE","1px"),colorOnSurfaceHigh:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:o.FtCssVariableFactory.external(o.designSystemVariables.titleFont,"Design system"),contentFont:o.FtCssVariableFactory.external(o.designSystemVariables.contentFont,"Design system")},$e=e.css`
|
|
1153
1378
|
:host {
|
|
1154
1379
|
display: block;
|
|
1155
1380
|
}
|
|
@@ -1165,15 +1390,15 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1165
1390
|
.header-cell {
|
|
1166
1391
|
display: flex;
|
|
1167
1392
|
flex-direction: column;
|
|
1168
|
-
background: ${
|
|
1169
|
-
color: ${
|
|
1393
|
+
background: ${Oe.headerBackground};
|
|
1394
|
+
color: ${Oe.colorOnSurfaceHigh};
|
|
1170
1395
|
padding: .5rem 1rem;
|
|
1171
|
-
font-family: ${
|
|
1396
|
+
font-family: ${Oe.titleFont};
|
|
1172
1397
|
}
|
|
1173
1398
|
|
|
1174
1399
|
.header-cell--sticky {
|
|
1175
1400
|
top: 0;
|
|
1176
|
-
z-index: ${
|
|
1401
|
+
z-index: ${Oe.stickyHeaderZIndex};
|
|
1177
1402
|
position: sticky;
|
|
1178
1403
|
}
|
|
1179
1404
|
|
|
@@ -1191,8 +1416,8 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1191
1416
|
}
|
|
1192
1417
|
|
|
1193
1418
|
.column-title-container ft-button {
|
|
1194
|
-
${
|
|
1195
|
-
${
|
|
1419
|
+
${o.setVariable(Yo.backgroundColor,Oe.headerBackground)};
|
|
1420
|
+
${o.setVariable(Yo.color,Oe.colorOnSurfaceHigh)};
|
|
1196
1421
|
}
|
|
1197
1422
|
|
|
1198
1423
|
.column-title {
|
|
@@ -1221,31 +1446,31 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1221
1446
|
|
|
1222
1447
|
.cell {
|
|
1223
1448
|
padding: 1rem;
|
|
1224
|
-
border-left-color: ${
|
|
1449
|
+
border-left-color: ${Oe.headerBackground};
|
|
1225
1450
|
border-left-style: solid;
|
|
1226
|
-
border-left-width: ${
|
|
1227
|
-
border-bottom: 1px solid ${
|
|
1451
|
+
border-left-width: ${Oe.cellVerticalBorderWidth};
|
|
1452
|
+
border-bottom: 1px solid ${Oe.headerBackground};
|
|
1228
1453
|
overflow-x: auto;
|
|
1229
1454
|
display: flex;
|
|
1230
1455
|
align-items: center;
|
|
1231
|
-
font-family: ${
|
|
1456
|
+
font-family: ${Oe.contentFont};
|
|
1232
1457
|
}
|
|
1233
1458
|
|
|
1234
1459
|
/* Even is 2n+1 and odd is 2n because of the header */
|
|
1235
1460
|
.row:nth-child(2n) > .cell {
|
|
1236
|
-
background: ${
|
|
1461
|
+
background: ${Oe.oddRowBackground};
|
|
1237
1462
|
}
|
|
1238
1463
|
|
|
1239
1464
|
.row:nth-child(2n + 1) > .cell {
|
|
1240
|
-
background: ${
|
|
1465
|
+
background: ${Oe.evenRowBackground};
|
|
1241
1466
|
}
|
|
1242
1467
|
|
|
1243
1468
|
.row:hover > .cell {
|
|
1244
|
-
background: ${
|
|
1469
|
+
background: ${Oe.rowHoverBackground};
|
|
1245
1470
|
}
|
|
1246
1471
|
|
|
1247
1472
|
.cell:last-of-type {
|
|
1248
|
-
border-right: 1px solid ${
|
|
1473
|
+
border-right: 1px solid ${Oe.headerBackground};
|
|
1249
1474
|
}
|
|
1250
1475
|
|
|
1251
1476
|
.row:last-of-type .cell:first-of-type {
|
|
@@ -1259,7 +1484,7 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1259
1484
|
.hidden {
|
|
1260
1485
|
visibility: hidden;
|
|
1261
1486
|
}
|
|
1262
|
-
`;var
|
|
1487
|
+
`;var Ne=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Se=t=>e.html`${t}`,we=(t,o)=>t-o;class Ce extends o.FtLitElement{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,o,e){this.data=t,this.columns=o,this.sort=e}render(){let t=this.sortData(this.filterData());return e.html`
|
|
1263
1488
|
<style>
|
|
1264
1489
|
.table {
|
|
1265
1490
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1267,60 +1492,60 @@ const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1267
1492
|
</style>
|
|
1268
1493
|
<div class="table">
|
|
1269
1494
|
<div class="header">
|
|
1270
|
-
${
|
|
1495
|
+
${r.repeat(this.columns,((t,o)=>"header-cell-"+o),((t,o)=>this.renderHeader(t,o)))}
|
|
1271
1496
|
</div>
|
|
1272
|
-
${
|
|
1497
|
+
${r.repeat(t,((t,o)=>"row-"+o),((t,o)=>e.html`
|
|
1273
1498
|
<div class="row"
|
|
1274
|
-
@click=${()=>this.dispatchEvent(new
|
|
1275
|
-
${
|
|
1499
|
+
@click=${()=>this.dispatchEvent(new ve(t))}>
|
|
1500
|
+
${r.repeat(this.columns,((t,e)=>"cell-"+e+"-"+o),((e,i)=>this.renderCell(e,i,t,o)))}
|
|
1276
1501
|
</div>
|
|
1277
1502
|
`))}
|
|
1278
1503
|
</div>
|
|
1279
|
-
`}filterData(){return this.filters.reduce(((t,e
|
|
1280
|
-
<div class="${
|
|
1281
|
-
part="${this.columnPart("header-cell",
|
|
1504
|
+
`}filterData(){return this.filters.reduce(((t,o,e)=>{var i;const r=this.columns[e];if(o&&o.value)switch(null!==(i=r.filter)&&void 0!==i?i:"text"){case"text":return t.filter((t=>this.getValueAsString(r,t,e).toLowerCase().includes(o.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(r,t,e)===o.value))}return t}),this.data)}sortData(t){var o;if(this.currentSort){const e=this.columns[this.currentSort.column],i=null!==(o=e.comparator)&&void 0!==o?o:we,r="asc"===this.currentSort.order?i:(t,o)=>-i(t,o);return[...t].sort(((t,o)=>r(this.getValue(e,t),this.getValue(e,o))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,o=this.columns;for(let e in o){const i=o[e];"select"===i.filter&&(this.selectData[e]=[...new Set(t.map(((t,o)=>this.getValueAsString(i,t,o))))].sort(((t,o)=>t.localeCompare(o))))}this.requestUpdate()}renderHeader(t,o){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return e.html`
|
|
1505
|
+
<div class="${n.classMap(i)}"
|
|
1506
|
+
part="${this.columnPart("header-cell",o)}">
|
|
1282
1507
|
<div class="column-title-container">
|
|
1283
1508
|
<span class="column-title"
|
|
1284
|
-
part="${this.columnPart("title",
|
|
1509
|
+
part="${this.columnPart("title",o)}">
|
|
1285
1510
|
${t.title}
|
|
1286
1511
|
</span>
|
|
1287
|
-
${this.renderColumnSort(t,
|
|
1512
|
+
${this.renderColumnSort(t,o)}
|
|
1288
1513
|
</div>
|
|
1289
|
-
${this.renderColumnFilter(t,
|
|
1514
|
+
${this.renderColumnFilter(t,o)}
|
|
1290
1515
|
</div>
|
|
1291
|
-
`}renderColumnSort(t,
|
|
1516
|
+
`}renderColumnSort(t,o){var i;const r=this.currentSort&&this.currentSort.column===o,a=r?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return e.html`
|
|
1292
1517
|
<ft-button
|
|
1293
1518
|
round
|
|
1294
1519
|
dense
|
|
1295
|
-
class="${null===(
|
|
1520
|
+
class="${null===(i=t.sortable)||void 0===i||i?"":"hidden"}"
|
|
1296
1521
|
iconVariant="material"
|
|
1297
|
-
icon="${
|
|
1522
|
+
icon="${a}"
|
|
1298
1523
|
label="Sort ${t.title}"
|
|
1299
|
-
@click=${()=>{var t;
|
|
1300
|
-
part="${this.columnPart("sort-button",
|
|
1524
|
+
@click=${()=>{var t;r?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:o,order:"desc"}:this.currentSort=void 0:this.currentSort={column:o,order:"asc"}}}
|
|
1525
|
+
part="${this.columnPart("sort-button",o)}"
|
|
1301
1526
|
></ft-button>
|
|
1302
|
-
`}renderColumnFilter(t,
|
|
1303
|
-
<div class="column-filter" part="${this.columnPart("filter-container",
|
|
1527
|
+
`}renderColumnFilter(t,o){var i,r;const a=t=>{this.filters[o]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return e.html`
|
|
1528
|
+
<div class="column-filter" part="${this.columnPart("filter-container",o)}">
|
|
1304
1529
|
<ft-text-field
|
|
1305
1530
|
label="Search ${t.title}"
|
|
1306
|
-
@live-change="${
|
|
1307
|
-
part="${this.columnPart("filter",
|
|
1531
|
+
@live-change="${a}"
|
|
1532
|
+
part="${this.columnPart("filter",o)}"
|
|
1308
1533
|
></ft-text-field>
|
|
1309
1534
|
</div>
|
|
1310
|
-
`;case"select":const
|
|
1311
|
-
<div class="column-filter" part="${this.columnPart("filter-container",
|
|
1535
|
+
`;case"select":const i=null!==(r=this.selectData[o])&&void 0!==r?r:[];return i.length?e.html`
|
|
1536
|
+
<div class="column-filter" part="${this.columnPart("filter-container",o)}">
|
|
1312
1537
|
<ft-select label="Filter ${t.title}"
|
|
1313
|
-
@change=${
|
|
1314
|
-
part="${this.columnPart("filter",
|
|
1538
|
+
@change=${a}
|
|
1539
|
+
part="${this.columnPart("filter",o)}">
|
|
1315
1540
|
<ft-select-option></ft-select-option>
|
|
1316
|
-
${
|
|
1541
|
+
${i.map((t=>e.html`
|
|
1317
1542
|
<ft-select-option value="${t}" label="${t}"></ft-select-option>
|
|
1318
1543
|
`))}
|
|
1319
1544
|
</ft-select>
|
|
1320
1545
|
</div>
|
|
1321
|
-
`:
|
|
1546
|
+
`:e.nothing}return e.nothing}columnPart(t,o){return`${t} ${t}-column-${o}`}renderCell(t,o,i,r){var n;const l=null!==(n=t.render)&&void 0!==n?n:Se;return e.html`
|
|
1322
1547
|
<div class="cell"
|
|
1323
|
-
part="${this.columnPart("cell",
|
|
1324
|
-
${(t=>{const
|
|
1548
|
+
part="${this.columnPart("cell",o)} cell-row-${r} cell-column-${o}-row-${r}">
|
|
1549
|
+
${(t=>{const o=l(t,r);return"string"==typeof o?a.unsafeHTML(o):o})(this.getValue(t,i))}
|
|
1325
1550
|
</div>
|
|
1326
|
-
`}getValue(t,
|
|
1551
|
+
`}getValue(t,o){return"string"==typeof t.getter?o[t.getter]:t.getter(o)}getValueAsString(t,o,e){const i=this.getValue(t,o);return"function"==typeof t.stringify?t.stringify(i,e):(t=>""+t)(i)}}Ce.styles=$e,Ne([i.property({attribute:!1})],Ce.prototype,"data",void 0),Ne([i.property({attribute:!1})],Ce.prototype,"columns",void 0),Ne([i.property({attribute:!1})],Ce.prototype,"sort",void 0),Ne([i.property()],Ce.prototype,"stickyHeaders",void 0),Ne([i.state()],Ce.prototype,"currentSort",void 0),o.customElement("ft-filterable-table")(Ce),t.FtFilterableTable=Ce,t.FtFilterableTableCssVariables=Oe,t.RowClickEvent=ve,t.styles=$e}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|