@fluid-topics/ft-filterable-table 0.3.67 → 0.3.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filterable-table.light.js +108 -97
- package/build/ft-filterable-table.min.js +124 -113
- package/package.json +6 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
!function(t,e,i,o,s,l
|
|
1
|
+
!function(t,e,i,o,s,n,l){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var r;const a=window,p=a.trustedTypes,f=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,h="?"+d,c=`<${h}>`,u=document,x=(t="")=>u.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,m
|
|
7
|
+
var r;const a=window,p=a.trustedTypes,f=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,h="?"+d,c=`<${h}>`,u=document,x=(t="")=>u.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,$=/>/g,m=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),w=/'/g,k=/"/g,S=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),C=new WeakMap,I=u.createTreeWalker(u,129,null,!1),D=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",l=v;for(let e=0;e<i;e++){const i=t[e];let r,a,p=-1,f=0;for(;f<i.length&&(l.lastIndex=f,a=l.exec(i),null!==a);)f=l.lastIndex,l===v?"!--"===a[1]?l=y:void 0!==a[1]?l=$:void 0!==a[2]?(S.test(a[2])&&(s=RegExp("</"+a[2],"g")),l=m):void 0!==a[3]&&(l=m):l===m?">"===a[0]?(l=null!=s?s:v,p=-1):void 0===a[1]?p=-2:(p=l.lastIndex-a[2].length,r=a[1],l=void 0===a[3]?m:'"'===a[3]?k:w):l===k||l===w?l=m:l===y||l===$?l=v:(l=m,s=void 0);const h=l===m&&t[e+1].startsWith("/>")?" ":"";n+=l===v?i+c:p>=0?(o.push(r),i.slice(0,p)+"$lit$"+i.slice(p)+d+h):i+d+(-2===p?(o.push(void 0),e):h)}const r=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==f?f.createHTML(r):r,o]};class B{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const l=t.length-1,r=this.parts,[a,f]=D(t,e);if(this.el=B.createElement(a,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.nextNode())&&r.length<l;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(d)){const i=f[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(d),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?A:"?"===e[1]?T:"@"===e[1]?R:Z})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(S.test(o.tagName)){const t=o.textContent.split(d),e=t.length-1;if(e>0){o.textContent=p?p.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),I.nextNode(),r.push({type:2,index:++s});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===h)r.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)r.push({type:7,index:s}),t+=d.length-1}s++}}static createElement(t,e){const i=u.createElement("template");return i.innerHTML=t,i}}function j(t,e,i=t,o){var s,n,l,r;if(e===O)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=g(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(l=(r=i)._$Co)&&void 0!==l?l:r._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=j(t,a._$AS(t,e.values),a,o)),e}class N{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:u).importNode(i,!0);I.currentNode=s;let n=I.nextNode(),l=0,r=0,a=o[0];for(;void 0!==a;){if(l===a.index){let e;2===a.type?e=new F(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new _(n,this,t)),this.u.push(e),a=o[++r]}l!==(null==a?void 0:a.index)&&(n=I.nextNode(),l++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class F{constructor(t,e,i,o){var s;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=j(this,t,e),g(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==O&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>b(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==E&&g(this._$AH)?this._$AA.nextSibling.data=t:this.T(u.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new N(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new B(t)),e}k(t){b(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new F(this.O(x()),this.O(x()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,o,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=j(this,t,e,0),n=!g(t)||t!==this._$AH&&t!==O,n&&(this._$AH=t);else{const o=t;let l,r;for(t=s[0],l=0;l<s.length-1;l++)r=j(this,o[i+l],e,l),r===O&&(r=this._$AH[l]),n||(n=!g(r)||r!==this._$AH[l]),r===E?t=E:t!==E&&(t+=(null!=r?r:"")+s[l+1]),this._$AH[l]=r}n&&!o&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const M=p?p.emptyScript:"";class T extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class R extends Z{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=j(this,t,e,0))&&void 0!==i?i:E)===O)return;const o=this._$AH,s=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==E&&(o===E||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class _{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}}const U=a.litHtmlPolyfillSupport;null==U||U(B,F),(null!==(r=a.litHtmlVersions)&&void 0!==r?r:a.litHtmlVersions=[]).push("2.4.0");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:H}),K=new Map,L=(t=>(e,...i)=>{const o=i.length;let s,
|
|
13
|
+
const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:H}),K=new Map,L=(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=P(n));)a+=s+e[++p],f=!0;r.push(n),l.push(a),p++}if(p===o&&l.push(e[o]),f){const t=l.join("$$lit$$");void 0===(e=K.get(t))&&(l.raw=l,K.set(t,e=l)),i=r}return t(e,...i)})(z);var V;!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"}(V||(V={}));const G=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),X={fontFamily:q,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")},Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",G),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",X.fontSize,"20px"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),et=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",X.lineHeight,"1.2"),it=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",G),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",X.lineHeight,"1.7"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"1.5"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"1.7"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),mt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",X.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit")},wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",X.lineHeight,"1.4"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",X.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit")},It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"1.6"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",X.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Ut={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",X.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",X.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase")},Ht=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${Y};
|
|
16
16
|
font-size: ${J};
|
|
@@ -23,8 +23,8 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
24
|
font-family: ${ot};
|
|
25
25
|
font-size: ${st};
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
26
|
+
font-weight: ${nt};
|
|
27
|
+
letter-spacing: ${lt};
|
|
28
28
|
line-height: ${rt};
|
|
29
29
|
text-transform: ${at};
|
|
30
30
|
}
|
|
@@ -44,17 +44,17 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
44
44
|
font-weight: ${bt};
|
|
45
45
|
letter-spacing: ${vt};
|
|
46
46
|
line-height: ${yt};
|
|
47
|
-
text-transform: ${
|
|
47
|
+
text-transform: ${$t};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
`,Lt=i.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${mt.fontFamily};
|
|
53
|
+
font-size: ${mt.fontSize};
|
|
54
|
+
font-weight: ${mt.fontWeight};
|
|
55
|
+
letter-spacing: ${mt.letterSpacing};
|
|
56
|
+
line-height: ${mt.lineHeight};
|
|
57
|
+
text-transform: ${mt.textTransform};
|
|
58
58
|
}
|
|
59
59
|
`,Vt=i.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
@@ -105,7 +105,7 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var Qt=function(t,e,i,o){for(var s,
|
|
108
|
+
`;var Qt=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 te extends e.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?L`
|
|
109
109
|
<${W(this.element)}
|
|
110
110
|
class="ft-typography ft-typography--${this.variant}">
|
|
111
111
|
<slot></slot>
|
|
@@ -234,8 +234,8 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
234
234
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
235
235
|
border-top: none;
|
|
236
236
|
}
|
|
237
|
-
`;var oe=function(t,e,i,o){for(var s,
|
|
238
|
-
<div class="${
|
|
237
|
+
`;var oe=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 se extends e.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 i.html`
|
|
238
|
+
<div class="${l.classMap(t)}">
|
|
239
239
|
${this.text?i.html`
|
|
240
240
|
<div class="ft-input-label--text ft-typography--caption">
|
|
241
241
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -243,7 +243,7 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
243
243
|
</div>
|
|
244
244
|
`:null}
|
|
245
245
|
</div>
|
|
246
|
-
`}}se.elementDefinitions={},se.styles=[Gt,ie],oe([o.property({type:String})],se.prototype,"text",void 0),oe([o.property({type:Boolean})],se.prototype,"raised",void 0),oe([o.property({type:Boolean})],se.prototype,"outlined",void 0),oe([o.property({type:Boolean})],se.prototype,"disabled",void 0),oe([o.property({type:Boolean})],se.prototype,"error",void 0),e.customElement("ft-input-label")(se);const
|
|
246
|
+
`}}se.elementDefinitions={},se.styles=[Gt,ie],oe([o.property({type:String})],se.prototype,"text",void 0),oe([o.property({type:Boolean})],se.prototype,"raised",void 0),oe([o.property({type:Boolean})],se.prototype,"outlined",void 0),oe([o.property({type:Boolean})],se.prototype,"disabled",void 0),oe([o.property({type:Boolean})],se.prototype,"error",void 0),e.customElement("ft-input-label")(se);const ne=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),le={color:ne,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",ne),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},re=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ae=re,pe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",re),fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),de=fe,he=e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),ce=i.css`
|
|
247
247
|
:host {
|
|
248
248
|
display: contents;
|
|
249
249
|
}
|
|
@@ -265,11 +265,11 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.ft-ripple .ft-ripple--background {
|
|
268
|
-
background-color: ${
|
|
268
|
+
background-color: ${le.backgroundColor};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-ripple .ft-ripple--effect {
|
|
272
|
-
background-color: ${
|
|
272
|
+
background-color: ${le.color};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -317,22 +317,22 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
320
|
-
opacity: ${
|
|
320
|
+
opacity: ${le.opacityContentOnSurfaceHover};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
324
|
-
opacity: ${
|
|
324
|
+
opacity: ${le.opacityContentOnSurfaceSelected};
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
328
|
-
opacity: ${
|
|
328
|
+
opacity: ${le.opacityContentOnSurfaceFocused};
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
332
|
-
opacity: ${
|
|
332
|
+
opacity: ${le.opacityContentOnSurfacePressed};
|
|
333
333
|
transform: translate(-50%, -50%) scale(1);
|
|
334
334
|
}
|
|
335
|
-
`;var ue,xe,ge=function(t,e,i,o){for(var s,
|
|
335
|
+
`;var ue,xe,ge=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 be extends e.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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.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 e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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 i.html`
|
|
336
336
|
<style>
|
|
337
337
|
.ft-ripple .ft-ripple--effect,
|
|
338
338
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -345,7 +345,7 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
345
345
|
top: ${this.originY}px;
|
|
346
346
|
}
|
|
347
347
|
</style>
|
|
348
|
-
<div class="${
|
|
348
|
+
<div class="${l.classMap(t)}">
|
|
349
349
|
<div class="ft-ripple--background"></div>
|
|
350
350
|
<div class="ft-ripple--effect"></div>
|
|
351
351
|
</div>
|
|
@@ -396,12 +396,12 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
396
396
|
.ft-icon--material {
|
|
397
397
|
font-family: ${ve.materialFontFamily}, "Material Icons", sans-serif;
|
|
398
398
|
}
|
|
399
|
-
`;var
|
|
399
|
+
`;var $e;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}($e||($e={}));var me=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 we extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:$e.fluid_topics,o="material"!==e||this.value;return i.html`
|
|
400
400
|
<i class="ft-icon ${"ft-icon--"+e}">
|
|
401
|
-
${
|
|
401
|
+
${n.unsafeHTML(this.resolvedIcon)}
|
|
402
402
|
<slot ?hidden=${o}></slot>
|
|
403
403
|
</i>
|
|
404
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case
|
|
404
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case $e.file_format:this.resolvedIcon=null!==(t=xe[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case $e.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=ue[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}we.elementDefinitions={},we.styles=ye,me([o.property()],we.prototype,"variant",void 0),me([o.property()],we.prototype,"value",void 0),me([o.state()],we.prototype,"resolvedIcon",void 0),me([o.query("slot")],we.prototype,"slottedContent",void 0),e.customElement("ft-icon")(we);const ke={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Se=i.css`
|
|
405
405
|
*:focus {
|
|
406
406
|
outline: none;
|
|
407
407
|
}
|
|
@@ -428,13 +428,13 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
428
428
|
padding-right: ${ke.horizontalSpacing};
|
|
429
429
|
gap: 8px;
|
|
430
430
|
color: ${ke.selectedOptionColor};
|
|
431
|
-
${e.setVariable(
|
|
431
|
+
${e.setVariable(le.color,ke.selectedOptionColor)};
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
.ft-select--input-panel,
|
|
435
435
|
.ft-select--option {
|
|
436
|
-
${e.setVariable(
|
|
437
|
-
${e.setVariable(
|
|
436
|
+
${e.setVariable(le.opacityContentOnSurfaceHover,"0.08")};
|
|
437
|
+
${e.setVariable(le.opacityContentOnSurfacePressed,"0.04")};
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -476,8 +476,8 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
476
476
|
overflow: hidden;
|
|
477
477
|
white-space: nowrap;
|
|
478
478
|
text-overflow: ellipsis;
|
|
479
|
-
${e.setVariable(
|
|
480
|
-
${e.setVariable(
|
|
479
|
+
${e.setVariable(mt.fontSize,ke.selectedOptionSize)};
|
|
480
|
+
${e.setVariable(mt.lineHeight,ke.selectedOptionSize)};
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
.ft-select--in-error .ft-select--selected-option {
|
|
@@ -550,8 +550,8 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
550
550
|
.ft-select--in-error .ft-select--helper-text {
|
|
551
551
|
color: ${ke.colorError};
|
|
552
552
|
}
|
|
553
|
-
`;var ze=function(t,e,i,o){for(var s,
|
|
554
|
-
<div class="${
|
|
553
|
+
`;var ze=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 Oe extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Oe.elementDefinitions={},ze([o.property({type:String})],Oe.prototype,"label",void 0),ze([o.property({type:Object,converter:t=>t})],Oe.prototype,"value",void 0),ze([o.property({type:Boolean,reflect:!0})],Oe.prototype,"selected",void 0);class Ee extends e.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,e,o,n,r;let a=this.hasOptionsMenuOpen,p=this.disabled||!this.hasOptions;const f=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":p,"ft-select--options-displayed":a,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
|
|
554
|
+
<div class="${l.classMap(d)}" part="container">
|
|
555
555
|
<div class="ft-select--main-panel" part="main-panel">
|
|
556
556
|
<ft-input-label text="${this.label}"
|
|
557
557
|
part="label"
|
|
@@ -570,7 +570,7 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
570
570
|
aria-expanded="${a}">
|
|
571
571
|
<ft-ripple ?disabled=${p} ?activated=${!this.outlined}></ft-ripple>
|
|
572
572
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
573
|
-
${null!==(r=null===(
|
|
573
|
+
${null!==(r=null===(n=this.selectedOption)||void 0===n?void 0:n.label)&&void 0!==r?r:""}
|
|
574
574
|
</ft-typography>
|
|
575
575
|
<ft-icon variant="material">${a?"expand_less":"expand_more"}</ft-icon>
|
|
576
576
|
</div>
|
|
@@ -589,7 +589,7 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
589
589
|
@option-change=${this.updateOptionsFromSlot}
|
|
590
590
|
></slot>
|
|
591
591
|
`}renderOption(t){let e=this.selectedOption===t;const o={"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0};return i.html`
|
|
592
|
-
<div class="${
|
|
592
|
+
<div class="${l.classMap(o)}"
|
|
593
593
|
part="option"
|
|
594
594
|
tabindex="0"
|
|
595
595
|
data-value="${t.value}"
|
|
@@ -598,7 +598,7 @@ const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
598
598
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
599
599
|
<span>${t.label}</span>
|
|
600
600
|
</div>
|
|
601
|
-
`}updated(t){super.updated(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,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}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 e,i,o,s,
|
|
601
|
+
`}updated(t){super.updated(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,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}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 e,i,o,s,n;let l;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),l=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),l=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==l||l.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var i,o;if(!e.deepEqual(null===(i=this.selectedOption)||void 0===i?void 0:i.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ee.elementDefinitions={"ft-input-label":se,"ft-typography":te,"ft-ripple":be,"ft-icon":we},Ee.styles=[Vt,Gt,Se],ze([o.property({type:String})],Ee.prototype,"label",void 0),ze([o.property({type:String})],Ee.prototype,"helper",void 0),ze([o.property({type:Boolean})],Ee.prototype,"outlined",void 0),ze([o.property({type:Boolean})],Ee.prototype,"disabled",void 0),ze([o.property({type:Boolean})],Ee.prototype,"error",void 0),ze([o.property({type:Boolean})],Ee.prototype,"fixedMenuPosition",void 0),ze([o.property({type:Array})],Ee.prototype,"options",void 0),ze([o.state()],Ee.prototype,"selectedOption",void 0),ze([o.state()],Ee.prototype,"optionsDisplayed",void 0),ze([o.state()],Ee.prototype,"focusOptions",void 0),ze([o.query(".ft-select")],Ee.prototype,"container",void 0),ze([o.query(".ft-select--options")],Ee.prototype,"optionsMenu",void 0),ze([o.query(".ft-select--input-panel")],Ee.prototype,"mainPanel",void 0),ze([o.query(".ft-select--option:first-child")],Ee.prototype,"firstOption",void 0),ze([o.query(".ft-select--option:focus")],Ee.prototype,"focusedOption",void 0),ze([o.query(".ft-select--option.ft-select--option-selected")],Ee.prototype,"selectedOptionElement",void 0),ze([o.query(".ft-select--option:last-child")],Ee.prototype,"lastOption",void 0),ze([o.query("slot")],Ee.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Ee),e.customElement("ft-select-option")(Oe);
|
|
602
602
|
/**
|
|
603
603
|
* @license
|
|
604
604
|
* Copyright 2018 Google LLC
|
|
@@ -637,13 +637,13 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
637
637
|
overflow: hidden;
|
|
638
638
|
padding: 0 ${Ce.horizontalSpacing};
|
|
639
639
|
|
|
640
|
-
${e.setVariable(
|
|
641
|
-
${e.setVariable(
|
|
640
|
+
${e.setVariable(mt.fontSize,Ce.fontSize)};
|
|
641
|
+
${e.setVariable(mt.lineHeight,Ce.fontSize)};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-text-field--input-panel ft-ripple {
|
|
645
|
-
${e.setVariable(
|
|
646
|
-
${e.setVariable(
|
|
645
|
+
${e.setVariable(le.opacityContentOnSurfaceHover,"0.08")};
|
|
646
|
+
${e.setVariable(le.opacityContentOnSurfacePressed,"0.04")};
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
@@ -756,15 +756,15 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
756
756
|
.ft-text-field--with-icon {
|
|
757
757
|
${e.setVariable(ee.labelMaxWidth,`calc(100% - ${ve.size} - ${ee.horizontalSpacing})`)};
|
|
758
758
|
}
|
|
759
|
-
`;var De=function(t,e,i,o){for(var s,
|
|
760
|
-
<div class="${
|
|
759
|
+
`;var De=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 Be extends e.FtLitElement{constructor(){super(...arguments),this._value="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.filterSuggestions=!1,this.focused=!1,this.lastFiredValue="",this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value}set value(t){this.setValue(t,!1)}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};return i.html`
|
|
760
|
+
<div class="${l.classMap(t)}">
|
|
761
761
|
<div class="ft-text-field--main-panel"
|
|
762
762
|
@keydown=${this.handleKeyboardNavigation}
|
|
763
763
|
@focusout=${this.onMainPanelBlur}>
|
|
764
764
|
<ft-input-label text="${this.label}"
|
|
765
765
|
?disabled=${this.disabled}
|
|
766
766
|
?outlined=${this.outlined}
|
|
767
|
-
?raised=${this.focused||""!=this.
|
|
767
|
+
?raised=${this.focused||""!=this._value}
|
|
768
768
|
?error=${this.error}></ft-input-label>
|
|
769
769
|
<div class="ft-text-field--input-panel">
|
|
770
770
|
${this.outlined?i.nothing:i.html`
|
|
@@ -780,7 +780,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
780
780
|
aria-label="${this.label}"
|
|
781
781
|
class="ft-typography--body1 ft-text-field--input"
|
|
782
782
|
?disabled=${this.disabled}
|
|
783
|
-
.value=${this.
|
|
783
|
+
.value=${this._value}
|
|
784
784
|
@click=${this.handleClick}
|
|
785
785
|
@keyup=${this.handleInput}
|
|
786
786
|
@focus=${this.onFocus}/>
|
|
@@ -802,7 +802,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
802
802
|
</ft-typography>
|
|
803
803
|
`:i.nothing}
|
|
804
804
|
</div>
|
|
805
|
-
`}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.
|
|
805
|
+
`}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded()}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 e,i;if(super.contentAvailableCallback(t),!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}updateValueFromInputField(){var t;this.setValue((null===(t=this.input)||void 0===t?void 0:t.value)||"",!0)}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";"Escape"==t.key||"Enter"==t.key?this.updateValueFromInputField():this._value!==i&&(this.hideSuggestions=!1,this._value=i,this.dispatchEvent(new CustomEvent("live-change",{detail:this._value})))}handleClick(){this.hideSuggestions=!1}setValue(t,e){e&&this._value!==t&&this.dispatchEvent(new CustomEvent("live-change",{detail:t})),this._value=t,e&&this.lastFiredValue!==this._value&&this.dispatchEvent(new CustomEvent("change",{detail:this._value})),this.lastFiredValue=this._value}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.updateValueFromInputField())}}Be.elementDefinitions={"ft-input-label":se,"ft-ripple":be,"ft-typography":te,"ft-icon":we},Be.styles=[Lt,Ie],De([o.property()],Be.prototype,"label",void 0),De([o.property()],Be.prototype,"_value",void 0),De([o.property()],Be.prototype,"helper",void 0),De([o.property({type:Boolean})],Be.prototype,"outlined",void 0),De([o.property({type:Boolean})],Be.prototype,"disabled",void 0),De([o.property({type:Boolean})],Be.prototype,"error",void 0),De([o.property()],Be.prototype,"prefix",void 0),De([o.property()],Be.prototype,"icon",void 0),De([o.property()],Be.prototype,"iconVariant",void 0),De([o.property({type:Boolean})],Be.prototype,"filterSuggestions",void 0),De([o.property({type:Number})],Be.prototype,"maxLength",void 0),De([o.state()],Be.prototype,"focused",void 0),De([o.state()],Be.prototype,"lastFiredValue",void 0),De([o.state()],Be.prototype,"suggestionsOnTop",void 0),De([o.state()],Be.prototype,"hideSuggestions",void 0),De([o.state()],Be.prototype,"visibleSuggestions",void 0),De([o.query(".ft-text-field--main-panel")],Be.prototype,"mainPanel",void 0),De([o.query(".ft-text-field--input")],Be.prototype,"input",void 0),De([o.query(".ft-text-field--suggestions")],Be.prototype,"suggestionsContainer",void 0),De([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],Be.prototype,"suggestions",void 0);const je=i.css`
|
|
806
806
|
.ft-text-field-suggestion {
|
|
807
807
|
position: relative;
|
|
808
808
|
padding: 8px 16px;
|
|
@@ -827,7 +827,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
827
827
|
slot {
|
|
828
828
|
pointer-events: none;
|
|
829
829
|
}
|
|
830
|
-
`;var Ne=function(t,e,i,o){for(var s,
|
|
830
|
+
`;var Ne=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 Fe extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Ze extends e.FtLitElement{render(){return i.html`
|
|
831
831
|
<div class="ft-text-field-suggestion"
|
|
832
832
|
tabindex="-1"
|
|
833
833
|
@keydown=${this.onKeyDown}
|
|
@@ -871,7 +871,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
871
871
|
position: relative;
|
|
872
872
|
word-break: break-word;
|
|
873
873
|
}
|
|
874
|
-
`;var Pe=function(t,e,i,o){for(var s,
|
|
874
|
+
`;var Pe=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 We 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`
|
|
875
875
|
<div part="container"
|
|
876
876
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
877
877
|
@mouseenter=${this.onHover}
|
|
@@ -889,7 +889,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
889
889
|
</div>
|
|
890
890
|
</div>
|
|
891
891
|
</div>
|
|
892
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}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=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,
|
|
892
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}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=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const l=this.tooltip.style;l.left=s+"px",l.top=n+"px",l.maxWidth=`max(${e.width}px, ${Ue})`}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())}}We.elementDefinitions={"ft-typography":te},We.styles=He,Pe([o.property()],We.prototype,"text",void 0),Pe([o.property({type:Boolean})],We.prototype,"manual",void 0),Pe([o.property({type:Boolean})],We.prototype,"inline",void 0),Pe([o.property({type:Number})],We.prototype,"delay",void 0),Pe([o.property()],We.prototype,"position",void 0),Pe([o.queryAssignedNodes("",!0)],We.prototype,"slotNodes",void 0),Pe([o.query(".ft-tooltip--container")],We.prototype,"container",void 0),Pe([o.query("slot")],We.prototype,"target",void 0),Pe([o.query(".ft-tooltip")],We.prototype,"tooltip",void 0),Pe([o.query(".ft-tooltip--content")],We.prototype,"tooltipContent",void 0),Pe([o.state()],We.prototype,"visible",void 0),e.customElement("ft-tooltip")(We);const Ke={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Le=i.css`
|
|
893
893
|
:host {
|
|
894
894
|
line-height: 0;
|
|
895
895
|
}
|
|
@@ -965,7 +965,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
965
965
|
<div></div>
|
|
966
966
|
<div></div>
|
|
967
967
|
</div>
|
|
968
|
-
`}}Ve.styles=Le,e.customElement("ft-loader")(Ve);const Ge=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),qe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Ge,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Ut.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Ge),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Xe=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Ye={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Xe,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Xe)},Je=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Qe=[e.noTextSelect,i.css`
|
|
968
|
+
`}}Ve.styles=Le,e.customElement("ft-loader")(Ve);const Ge=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),qe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Ge,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Ut.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Ge),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")},Xe=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Ye={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Xe,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Xe)},Je=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Qe=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),ti=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),ei=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),ii=[e.noTextSelect,i.css`
|
|
969
969
|
:host {
|
|
970
970
|
display: inline-block;
|
|
971
971
|
max-width: 100%;
|
|
@@ -1004,13 +1004,12 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1004
1004
|
box-sizing: border-box;
|
|
1005
1005
|
border: none;
|
|
1006
1006
|
pointer-events: auto;
|
|
1007
|
+
gap: ${qe.iconPadding};
|
|
1007
1008
|
|
|
1008
1009
|
--ft-button-internal-line-height: calc(${qe.fontSize} + 2px);
|
|
1009
1010
|
--ft-button-internal-color: ${qe.color};
|
|
1010
1011
|
${e.setVariable(ve.size,qe.iconSize)};
|
|
1011
|
-
|
|
1012
|
-
--ft-button-internal-horizontal-padding: 8px;
|
|
1013
|
-
${e.setVariable(ne.color,qe.rippleColor)};
|
|
1012
|
+
${e.setVariable(le.color,qe.rippleColor)};
|
|
1014
1013
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${qe.iconSize});
|
|
1015
1014
|
|
|
1016
1015
|
border-radius: ${qe.borderRadius};
|
|
@@ -1020,18 +1019,31 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1020
1019
|
-webkit-mask-image: radial-gradient(white, black);
|
|
1021
1020
|
}
|
|
1022
1021
|
|
|
1022
|
+
.ft-button.ft-button--outlined {
|
|
1023
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
1024
|
+
padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.ft-button.ft-button--dense {
|
|
1028
|
+
padding: ${Qe} ${ti};
|
|
1029
|
+
border-radius: ${Je};
|
|
1030
|
+
gap: ${ei};
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
1034
|
+
padding: calc(${Qe} - 1px) calc(${ti} - 1px);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1023
1037
|
.ft-button:not([disabled]):hover {
|
|
1024
1038
|
cursor: pointer;
|
|
1025
1039
|
}
|
|
1026
1040
|
|
|
1027
|
-
.ft-button--
|
|
1028
|
-
--ft-button-internal-
|
|
1029
|
-
--ft-button-internal-horizontal-padding: 4px;
|
|
1030
|
-
border-radius: ${Je};
|
|
1041
|
+
.ft-button--round {
|
|
1042
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${qe.verticalPadding});
|
|
1031
1043
|
}
|
|
1032
1044
|
|
|
1033
|
-
.ft-button--round {
|
|
1034
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 +
|
|
1045
|
+
.ft-button--round.ft-button--dense {
|
|
1046
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Qe});
|
|
1035
1047
|
}
|
|
1036
1048
|
|
|
1037
1049
|
.ft-button[disabled] {
|
|
@@ -1042,12 +1054,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1042
1054
|
.ft-button.ft-button--primary {
|
|
1043
1055
|
background-color: ${Ye.backgroundColor};
|
|
1044
1056
|
--ft-button-internal-color: ${Ye.color};
|
|
1045
|
-
${e.setVariable(
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
.ft-button.ft-button--outlined {
|
|
1049
|
-
border: 1px solid var(--ft-button-internal-color);
|
|
1050
|
-
padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
|
|
1057
|
+
${e.setVariable(le.color,Ye.rippleColor)};
|
|
1051
1058
|
}
|
|
1052
1059
|
|
|
1053
1060
|
.ft-button:focus {
|
|
@@ -1060,7 +1067,6 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1060
1067
|
white-space: nowrap;
|
|
1061
1068
|
text-overflow: ellipsis;
|
|
1062
1069
|
display: block;
|
|
1063
|
-
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
1064
1070
|
${e.setVariable(Ut.fontSize,"1em")};
|
|
1065
1071
|
${e.setVariable(Ut.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
1066
1072
|
}
|
|
@@ -1075,8 +1081,13 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1075
1081
|
}
|
|
1076
1082
|
|
|
1077
1083
|
.ft-button--label[hidden] + ft-icon {
|
|
1078
|
-
margin: 0 calc(
|
|
1079
|
-
padding: 0
|
|
1084
|
+
margin: 0 calc(${qe.horizontalPadding} * -1);
|
|
1085
|
+
padding: 0 ${qe.verticalPadding};
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
1089
|
+
margin: 0 calc(${ti} * -1);
|
|
1090
|
+
padding: 0 ${Qe};
|
|
1080
1091
|
}
|
|
1081
1092
|
|
|
1082
1093
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -1088,9 +1099,9 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1088
1099
|
${e.setVariable(Ke.size,qe.iconSize)};
|
|
1089
1100
|
${e.setVariable(Ke.color,"var(--ft-button-internal-color)")};
|
|
1090
1101
|
}
|
|
1091
|
-
`];var
|
|
1102
|
+
`];var oi=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 si extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=$e.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(i.html`
|
|
1092
1103
|
<button part="button"
|
|
1093
|
-
class="${
|
|
1104
|
+
class="${l.classMap(t)}"
|
|
1094
1105
|
aria-label="${this.getLabel()}"
|
|
1095
1106
|
?disabled=${this.isDisabled()}>
|
|
1096
1107
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -1111,7 +1122,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1111
1122
|
</ft-tooltip>
|
|
1112
1123
|
`:t}resolveIcon(){return this.loading?i.html`
|
|
1113
1124
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?i.html`
|
|
1114
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.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}}
|
|
1125
|
+
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.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}}si.elementDefinitions={"ft-ripple":be,"ft-tooltip":We,"ft-typography":te,"ft-icon":we,"ft-loader":Ve},si.styles=[e.safariEllipsisFix,ii],oi([o.property({type:String,reflect:!0})],si.prototype,"role",void 0),oi([o.property({type:Boolean})],si.prototype,"primary",void 0),oi([o.property({type:Boolean})],si.prototype,"outlined",void 0),oi([o.property({type:Boolean})],si.prototype,"disabled",void 0),oi([o.property({type:Boolean})],si.prototype,"dense",void 0),oi([o.property({type:Boolean})],si.prototype,"round",void 0),oi([o.property({type:String})],si.prototype,"label",void 0),oi([o.property({type:String})],si.prototype,"icon",void 0),oi([o.property({type:String})],si.prototype,"iconVariant",void 0),oi([o.property({type:Boolean})],si.prototype,"trailingIcon",void 0),oi([o.property({type:Boolean})],si.prototype,"loading",void 0),oi([o.property({type:String})],si.prototype,"tooltipPosition",void 0),oi([o.property({type:Boolean})],si.prototype,"hideTooltip",void 0),oi([o.property({type:Boolean})],si.prototype,"forceTooltip",void 0),oi([o.query(".ft-button")],si.prototype,"button",void 0),oi([o.query(".ft-button--label slot")],si.prototype,"slottedContent",void 0),e.customElement("ft-button")(si);class ni extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const li={headerBackground:e.FtCssVariableFactory.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:e.FtCssVariableFactory.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:e.FtCssVariableFactory.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:e.FtCssVariableFactory.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:e.FtCssVariableFactory.external(e.designSystemVariables.titleFont,"Design system"),contentFont:e.FtCssVariableFactory.external(e.designSystemVariables.contentFont,"Design system")},ri=i.css`
|
|
1115
1126
|
:host {
|
|
1116
1127
|
display: block;
|
|
1117
1128
|
}
|
|
@@ -1127,15 +1138,15 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1127
1138
|
.header-cell {
|
|
1128
1139
|
display: flex;
|
|
1129
1140
|
flex-direction: column;
|
|
1130
|
-
background: ${
|
|
1131
|
-
color: ${
|
|
1141
|
+
background: ${li.headerBackground};
|
|
1142
|
+
color: ${li.colorOnSurfaceHigh};
|
|
1132
1143
|
padding: .5rem 1rem;
|
|
1133
|
-
font-family: ${
|
|
1144
|
+
font-family: ${li.titleFont};
|
|
1134
1145
|
}
|
|
1135
1146
|
|
|
1136
1147
|
.header-cell--sticky {
|
|
1137
1148
|
top: 0;
|
|
1138
|
-
z-index: ${
|
|
1149
|
+
z-index: ${li.stickyHeaderZIndex};
|
|
1139
1150
|
position: sticky;
|
|
1140
1151
|
}
|
|
1141
1152
|
|
|
@@ -1153,8 +1164,8 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1153
1164
|
}
|
|
1154
1165
|
|
|
1155
1166
|
.column-title-container ft-button {
|
|
1156
|
-
${e.setVariable(qe.backgroundColor,
|
|
1157
|
-
${e.setVariable(qe.color,
|
|
1167
|
+
${e.setVariable(qe.backgroundColor,li.headerBackground)};
|
|
1168
|
+
${e.setVariable(qe.color,li.colorOnSurfaceHigh)};
|
|
1158
1169
|
}
|
|
1159
1170
|
|
|
1160
1171
|
.column-title {
|
|
@@ -1183,31 +1194,31 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1183
1194
|
|
|
1184
1195
|
.cell {
|
|
1185
1196
|
padding: 1rem;
|
|
1186
|
-
border-left-color: ${
|
|
1197
|
+
border-left-color: ${li.headerBackground};
|
|
1187
1198
|
border-left-style: solid;
|
|
1188
|
-
border-left-width: ${
|
|
1189
|
-
border-bottom: 1px solid ${
|
|
1199
|
+
border-left-width: ${li.cellVerticalBorderWidth};
|
|
1200
|
+
border-bottom: 1px solid ${li.headerBackground};
|
|
1190
1201
|
overflow-x: auto;
|
|
1191
1202
|
display: flex;
|
|
1192
1203
|
align-items: center;
|
|
1193
|
-
font-family: ${
|
|
1204
|
+
font-family: ${li.contentFont};
|
|
1194
1205
|
}
|
|
1195
1206
|
|
|
1196
1207
|
/* Even is 2n+1 and odd is 2n because of the header */
|
|
1197
1208
|
.row:nth-child(2n) > .cell {
|
|
1198
|
-
background: ${
|
|
1209
|
+
background: ${li.oddRowBackground};
|
|
1199
1210
|
}
|
|
1200
1211
|
|
|
1201
1212
|
.row:nth-child(2n + 1) > .cell {
|
|
1202
|
-
background: ${
|
|
1213
|
+
background: ${li.evenRowBackground};
|
|
1203
1214
|
}
|
|
1204
1215
|
|
|
1205
1216
|
.row:hover > .cell {
|
|
1206
|
-
background: ${
|
|
1217
|
+
background: ${li.rowHoverBackground};
|
|
1207
1218
|
}
|
|
1208
1219
|
|
|
1209
1220
|
.cell:last-of-type {
|
|
1210
|
-
border-right: 1px solid ${
|
|
1221
|
+
border-right: 1px solid ${li.headerBackground};
|
|
1211
1222
|
}
|
|
1212
1223
|
|
|
1213
1224
|
.row:last-of-type .cell:first-of-type {
|
|
@@ -1221,7 +1232,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1221
1232
|
.hidden {
|
|
1222
1233
|
visibility: hidden;
|
|
1223
1234
|
}
|
|
1224
|
-
`;var
|
|
1235
|
+
`;var ai=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};const pi=t=>i.html`${t}`,fi=(t,e)=>t-e;class di extends e.FtLitElement{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return i.html`
|
|
1225
1236
|
<style>
|
|
1226
1237
|
.table {
|
|
1227
1238
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1233,13 +1244,13 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1233
1244
|
</div>
|
|
1234
1245
|
${s.repeat(t,((t,e)=>"row-"+e),((t,e)=>i.html`
|
|
1235
1246
|
<div class="row"
|
|
1236
|
-
@click=${()=>this.dispatchEvent(new
|
|
1247
|
+
@click=${()=>this.dispatchEvent(new ni(t))}>
|
|
1237
1248
|
${s.repeat(this.columns,((t,i)=>"cell-"+i+"-"+e),((i,o)=>this.renderCell(i,o,t,e)))}
|
|
1238
1249
|
</div>
|
|
1239
1250
|
`))}
|
|
1240
1251
|
</div>
|
|
1241
|
-
`}filterData(){return this.filters.reduce(((t,e,i)=>{var o;const s=this.columns[i];if(e&&e.value)switch(null!==(o=s.filter)&&void 0!==o?o:"text"){case"text":return t.filter((t=>this.getValueAsString(s,t,i).toLowerCase().includes(e.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(s,t,i)===e.value))}return t}),this.data)}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:
|
|
1242
|
-
<div class="${
|
|
1252
|
+
`}filterData(){return this.filters.reduce(((t,e,i)=>{var o;const s=this.columns[i];if(e&&e.value)switch(null!==(o=s.filter)&&void 0!==o?o:"text"){case"text":return t.filter((t=>this.getValueAsString(s,t,i).toLowerCase().includes(e.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(s,t,i)===e.value))}return t}),this.data)}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:fi,s="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return[...t].sort(((t,e)=>s(this.getValue(i,t),this.getValue(i,e))))}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,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const o={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return i.html`
|
|
1253
|
+
<div class="${l.classMap(o)}"
|
|
1243
1254
|
part="${this.columnPart("header-cell",e)}">
|
|
1244
1255
|
<div class="column-title-container">
|
|
1245
1256
|
<span class="column-title"
|
|
@@ -1250,28 +1261,28 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1250
1261
|
</div>
|
|
1251
1262
|
${this.renderColumnFilter(t,e)}
|
|
1252
1263
|
</div>
|
|
1253
|
-
`}renderColumnSort(t,e){var o;const s=this.currentSort&&this.currentSort.column===e,
|
|
1264
|
+
`}renderColumnSort(t,e){var o;const s=this.currentSort&&this.currentSort.column===e,n=s?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return i.html`
|
|
1254
1265
|
<ft-button
|
|
1255
1266
|
round
|
|
1256
1267
|
dense
|
|
1257
1268
|
class="${null===(o=t.sortable)||void 0===o||o?"":"hidden"}"
|
|
1258
|
-
icon="${
|
|
1269
|
+
icon="${n}"
|
|
1259
1270
|
label="Sort ${t.title}"
|
|
1260
1271
|
@click=${()=>{var t;s?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
|
|
1261
1272
|
part="${this.columnPart("sort-button",e)}"
|
|
1262
1273
|
></ft-button>
|
|
1263
|
-
`}renderColumnFilter(t,e){var o,s;const
|
|
1274
|
+
`}renderColumnFilter(t,e){var o,s;const n=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(o=t.filter)&&void 0!==o?o:"text"){case"text":return i.html`
|
|
1264
1275
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1265
1276
|
<ft-text-field
|
|
1266
1277
|
label="Search ${t.title}"
|
|
1267
|
-
@live-change="${
|
|
1278
|
+
@live-change="${n}"
|
|
1268
1279
|
part="${this.columnPart("filter",e)}"
|
|
1269
1280
|
></ft-text-field>
|
|
1270
1281
|
</div>
|
|
1271
1282
|
`;case"select":const o=null!==(s=this.selectData[e])&&void 0!==s?s:[];return o.length?i.html`
|
|
1272
1283
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1273
1284
|
<ft-select label="Filter ${t.title}"
|
|
1274
|
-
@change=${
|
|
1285
|
+
@change=${n}
|
|
1275
1286
|
part="${this.columnPart("filter",e)}">
|
|
1276
1287
|
<ft-select-option></ft-select-option>
|
|
1277
1288
|
${o.map((t=>i.html`
|
|
@@ -1279,9 +1290,9 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1279
1290
|
`))}
|
|
1280
1291
|
</ft-select>
|
|
1281
1292
|
</div>
|
|
1282
|
-
`:i.nothing}return i.nothing}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,o,s){var
|
|
1293
|
+
`:i.nothing}return i.nothing}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,o,s){var l;const r=null!==(l=t.render)&&void 0!==l?l:pi;return i.html`
|
|
1283
1294
|
<div class="cell"
|
|
1284
1295
|
part="${this.columnPart("cell",e)} cell-row-${s} cell-column-${e}-row-${s}">
|
|
1285
|
-
${(t=>{const e=r(t,s);return"string"==typeof e?
|
|
1296
|
+
${(t=>{const e=r(t,s);return"string"==typeof e?n.unsafeHTML(e):e})(this.getValue(t,o))}
|
|
1286
1297
|
</div>
|
|
1287
|
-
`}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}
|
|
1298
|
+
`}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}di.styles=ri,ai([o.property({attribute:!1})],di.prototype,"data",void 0),ai([o.property({attribute:!1})],di.prototype,"columns",void 0),ai([o.property({attribute:!1})],di.prototype,"sort",void 0),ai([o.property()],di.prototype,"stickyHeaders",void 0),ai([o.state()],di.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(di),t.FtFilterableTable=di,t.FtFilterableTableCssVariables=li,t.RowClickEvent=ni,t.styles=ri,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|