@fluid-topics/ft-filterable-table 0.3.66 → 0.3.67
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,16 +1,16 @@
|
|
|
1
|
-
!function(t,e,i,o,s,n
|
|
1
|
+
!function(t,e,i,o,s,l,n){
|
|
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=/>/g,$=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,
|
|
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=/>/g,$=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,l=2===e?"<svg>":"",n=v;for(let e=0;e<i;e++){const i=t[e];let r,a,p=-1,f=0;for(;f<i.length&&(n.lastIndex=f,a=n.exec(i),null!==a);)f=n.lastIndex,n===v?"!--"===a[1]?n=y:void 0!==a[1]?n=m:void 0!==a[2]?(S.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=$):void 0!==a[3]&&(n=$):n===$?">"===a[0]?(n=null!=s?s:v,p=-1):void 0===a[1]?p=-2:(p=n.lastIndex-a[2].length,r=a[1],n=void 0===a[3]?$:'"'===a[3]?k:w):n===k||n===w?n=$:n===y||n===m?n=v:(n=$,s=void 0);const h=n===$&&t[e+1].startsWith("/>")?" ":"";l+=n===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=l+(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,l=0;const n=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<n;){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[l++];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,l,n,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===(l=null==a?void 0:a._$AO)||void 0===l||l.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(r=i)._$Co)&&void 0!==n?n: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 l=I.nextNode(),n=0,r=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new F(l,l.nextSibling,this,t):1===a.type?e=new a.ctor(l,a.name,a.strings,this,t):6===a.type&&(e=new _(l,this,t)),this.u.push(e),a=o[++r]}n!==(null==a?void 0:a.index)&&(l=I.nextNode(),n++)}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 l=!1;if(void 0===s)t=j(this,t,e,0),l=!g(t)||t!==this._$AH&&t!==O,l&&(this._$AH=t);else{const o=t;let n,r;for(t=s[0],n=0;n<s.length-1;n++)r=j(this,o[i+n],e,n),r===O&&(r=this._$AH[n]),l||(l=!g(r)||r!==this._$AH[n]),r===E?t=E:t!==E&&(t+=(null!=r?r:"")+s[n+1]),this._$AH[n]=r}l&&!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,l=t!==E&&(o===E||s);s&&this.element.removeEventListener(this.name,this,o),l&&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(""),
|
|
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,l;const n=[],r=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(l=i[p],s=P(l));)a+=s+e[++p],f=!0;r.push(l),n.push(a),p++}if(p===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=K.get(t))&&(n.raw=n,K.set(t,e=n)),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"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),nt=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"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),$t={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};
|
|
@@ -19,16 +19,16 @@ const H=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
19
19
|
line-height: ${et};
|
|
20
20
|
text-transform: ${it};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,Pt=i.css`
|
|
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: ${lt};
|
|
27
|
+
letter-spacing: ${nt};
|
|
28
28
|
line-height: ${rt};
|
|
29
29
|
text-transform: ${at};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,Wt=i.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
33
|
font-family: ${pt};
|
|
34
34
|
font-size: ${ft};
|
|
@@ -37,7 +37,7 @@ const H=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
37
37
|
line-height: ${ct};
|
|
38
38
|
text-transform: ${ut};
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,Kt=i.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
42
|
font-family: ${xt};
|
|
43
43
|
font-size: ${gt};
|
|
@@ -76,17 +76,17 @@ const H=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
76
76
|
}
|
|
77
77
|
`,qt=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
79
|
+
font-family: ${It};
|
|
80
|
+
font-size: ${Dt};
|
|
81
|
+
font-weight: ${Bt};
|
|
82
82
|
letter-spacing: ${jt};
|
|
83
83
|
line-height: ${Nt};
|
|
84
84
|
text-transform: ${Ft};
|
|
85
85
|
}
|
|
86
86
|
`,Xt=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
88
|
+
font-family: ${Zt};
|
|
89
|
+
font-size: ${At};
|
|
90
90
|
font-weight: ${Mt};
|
|
91
91
|
letter-spacing: ${Tt};
|
|
92
92
|
line-height: ${Rt};
|
|
@@ -105,14 +105,14 @@ const H=Symbol.for(""),W=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,
|
|
109
|
-
<${
|
|
108
|
+
`;var Qt=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class te extends e.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?L`
|
|
109
|
+
<${W(this.element)}
|
|
110
110
|
class="ft-typography ft-typography--${this.variant}">
|
|
111
111
|
<slot></slot>
|
|
112
|
-
</${
|
|
112
|
+
</${W(this.element)}>
|
|
113
113
|
`:L`
|
|
114
114
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}te.styles=[Ht,Wt,Kt,
|
|
115
|
+
`}}te.styles=[Ht,Pt,Wt,Kt,Lt,Vt,Gt,qt,Xt,Yt,Jt],Qt([o.property()],te.prototype,"element",void 0),Qt([o.property()],te.prototype,"variant",void 0),e.customElement("ft-typography")(te);const ee={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ie=i.css`
|
|
116
116
|
.ft-input-label {
|
|
117
117
|
position: absolute;
|
|
118
118
|
inset: 0;
|
|
@@ -234,8 +234,8 @@ const H=Symbol.for(""),W=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,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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="${n.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(""),W=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 le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ne={color:le,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),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(""),W=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: ${ne.backgroundColor};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-ripple .ft-ripple--effect {
|
|
272
|
-
background-color: ${
|
|
272
|
+
background-color: ${ne.color};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -317,22 +317,22 @@ const H=Symbol.for(""),W=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: ${ne.opacityContentOnSurfaceHover};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
324
|
-
opacity: ${
|
|
324
|
+
opacity: ${ne.opacityContentOnSurfaceSelected};
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
328
|
-
opacity: ${
|
|
328
|
+
opacity: ${ne.opacityContentOnSurfaceFocused};
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
332
|
-
opacity: ${
|
|
332
|
+
opacity: ${ne.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,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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),l=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-l.x:l.width/2),this.originY=Math.round(null!=s?s-l.y:l.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(""),W=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="${n.classMap(t)}">
|
|
349
349
|
<div class="ft-ripple--background"></div>
|
|
350
350
|
<div class="ft-ripple--effect"></div>
|
|
351
351
|
</div>
|
|
@@ -396,9 +396,9 @@ const H=Symbol.for(""),W=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 me;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(me||(me={}));var $e=function(t,e,i,o){for(var s,
|
|
399
|
+
`;var me;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(me||(me={}));var $e=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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:me.fluid_topics,o="material"!==e||this.value;return i.html`
|
|
400
400
|
<i class="ft-icon ${"ft-icon--"+e}">
|
|
401
|
-
${
|
|
401
|
+
${l.unsafeHTML(this.resolvedIcon)}
|
|
402
402
|
<slot ?hidden=${o}></slot>
|
|
403
403
|
</i>
|
|
404
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 me.file_format:this.resolvedIcon=null!==(t=xe[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case me.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,$e([o.property()],we.prototype,"variant",void 0),$e([o.property()],we.prototype,"value",void 0),$e([o.state()],we.prototype,"resolvedIcon",void 0),$e([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`
|
|
@@ -428,13 +428,13 @@ const H=Symbol.for(""),W=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(ne.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(ne.opacityContentOnSurfaceHover,"0.08")};
|
|
437
|
+
${e.setVariable(ne.opacityContentOnSurfacePressed,"0.04")};
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -550,8 +550,8 @@ const H=Symbol.for(""),W=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,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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,l,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="${n.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(""),W=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===(l=this.selectedOption)||void 0===l?void 0:l.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(""),W=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="${n.classMap(o)}"
|
|
593
593
|
part="option"
|
|
594
594
|
tabindex="0"
|
|
595
595
|
data-value="${t.value}"
|
|
@@ -598,13 +598,13 @@ const H=Symbol.for(""),W=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,l;let n;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(),n=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(),n=null!==(l=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==l?l:this.firstOption}null==n||n.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
|
|
605
605
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
606
606
|
*/
|
|
607
|
-
const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","SIZE","300px")},
|
|
607
|
+
const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","SIZE","300px")},Ie=i.css`
|
|
608
608
|
*:focus {
|
|
609
609
|
outline: none;
|
|
610
610
|
}
|
|
@@ -642,8 +642,8 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-text-field--input-panel ft-ripple {
|
|
645
|
-
${e.setVariable(
|
|
646
|
-
${e.setVariable(
|
|
645
|
+
${e.setVariable(ne.opacityContentOnSurfaceHover,"0.08")};
|
|
646
|
+
${e.setVariable(ne.opacityContentOnSurfacePressed,"0.04")};
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
@@ -756,8 +756,8 @@ 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
|
|
760
|
-
<div class="${
|
|
759
|
+
`;var De=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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=[]}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="${n.classMap(t)}">
|
|
761
761
|
<div class="ft-text-field--main-panel"
|
|
762
762
|
@keydown=${this.handleKeyboardNavigation}
|
|
763
763
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -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.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)||"";this.value!==i&&(this.hideSuggestions=!1,this.value=i,this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))),"Escape"!=t.key&&"Enter"!=t.key||this.updateValueFromInputField()}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())}}
|
|
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)||"";this.value!==i&&(this.hideSuggestions=!1,this.value=i,this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))),"Escape"!=t.key&&"Enter"!=t.key||this.updateValueFromInputField()}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,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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}
|
|
@@ -839,7 +839,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
839
839
|
<slot></slot>
|
|
840
840
|
</ft-typography>
|
|
841
841
|
</div>
|
|
842
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Fe(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())}}
|
|
842
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Fe(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())}}Ze.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":we},Ze.styles=je,Ne([o.property()],Ze.prototype,"value",void 0),Ne([o.query(".ft-text-field-suggestion")],Ze.prototype,"container",void 0),Ne([o.queryAssignedNodes()],Ze.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(Be),e.customElement("ft-text-field-suggestion")(Ze);const Ae=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Me=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Te=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Re=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),_e=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Ue=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),He=i.css`
|
|
843
843
|
.ft-tooltip--container {
|
|
844
844
|
display: block;
|
|
845
845
|
position: relative;
|
|
@@ -857,7 +857,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
857
857
|
width: max-content;
|
|
858
858
|
max-width: ${Ue};
|
|
859
859
|
text-align: center;
|
|
860
|
-
padding: ${
|
|
860
|
+
padding: ${Ae};
|
|
861
861
|
z-index: ${Re};
|
|
862
862
|
}
|
|
863
863
|
|
|
@@ -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
|
|
874
|
+
`;var Pe=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};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,l=0;switch(this.validPosition){case"top":l=-this.tooltip.clientHeight,s=o;break;case"bottom":l=e.height,s=o;break;case"left":l=i,s=-this.tooltip.clientWidth;break;case"right":l=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 n=this.tooltip.style;n.left=s+"px",n.top=l+"px",n.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
|
}
|
|
@@ -898,8 +898,8 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
898
898
|
display: inline-block;
|
|
899
899
|
position: relative;
|
|
900
900
|
|
|
901
|
-
width: ${
|
|
902
|
-
height: ${
|
|
901
|
+
width: ${Ke.size};
|
|
902
|
+
height: ${Ke.size};
|
|
903
903
|
}
|
|
904
904
|
|
|
905
905
|
.ft-loader div {
|
|
@@ -908,7 +908,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
908
908
|
width: 25%;
|
|
909
909
|
height: 25%;
|
|
910
910
|
border-radius: 50%;
|
|
911
|
-
background: ${
|
|
911
|
+
background: ${Ke.color};
|
|
912
912
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
913
913
|
}
|
|
914
914
|
|
|
@@ -955,7 +955,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
955
955
|
transform: translate(0, 0);
|
|
956
956
|
}
|
|
957
957
|
100% {
|
|
958
|
-
transform: translate(calc(0.35 * ${
|
|
958
|
+
transform: translate(calc(0.35 * ${Ke.size}), 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
`;class Ve extends e.FtLitElement{render(){return i.html`
|
|
@@ -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),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"),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`
|
|
969
969
|
:host {
|
|
970
970
|
display: inline-block;
|
|
971
971
|
max-width: 100%;
|
|
@@ -1010,11 +1010,11 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1010
1010
|
${e.setVariable(ve.size,qe.iconSize)};
|
|
1011
1011
|
--ft-button-internal-vertical-padding: 6px;
|
|
1012
1012
|
--ft-button-internal-horizontal-padding: 8px;
|
|
1013
|
-
${e.setVariable(
|
|
1013
|
+
${e.setVariable(ne.color,qe.rippleColor)};
|
|
1014
1014
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${qe.iconSize});
|
|
1015
1015
|
|
|
1016
1016
|
border-radius: ${qe.borderRadius};
|
|
1017
|
-
padding:
|
|
1017
|
+
padding: ${qe.verticalPadding} ${qe.horizontalPadding};
|
|
1018
1018
|
background-color: ${qe.backgroundColor};
|
|
1019
1019
|
color: var(--ft-button-internal-color);
|
|
1020
1020
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -1042,12 +1042,12 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1042
1042
|
.ft-button.ft-button--primary {
|
|
1043
1043
|
background-color: ${Ye.backgroundColor};
|
|
1044
1044
|
--ft-button-internal-color: ${Ye.color};
|
|
1045
|
-
${e.setVariable(
|
|
1045
|
+
${e.setVariable(ne.color,Ye.rippleColor)};
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
1048
|
.ft-button.ft-button--outlined {
|
|
1049
1049
|
border: 1px solid var(--ft-button-internal-color);
|
|
1050
|
-
padding: calc(
|
|
1050
|
+
padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
1053
|
.ft-button:focus {
|
|
@@ -1064,7 +1064,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1064
1064
|
${e.setVariable(Ut.fontSize,"1em")};
|
|
1065
1065
|
${e.setVariable(Ut.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
1066
1066
|
}
|
|
1067
|
-
|
|
1067
|
+
|
|
1068
1068
|
.ft-button--label[hidden] {
|
|
1069
1069
|
display: none;
|
|
1070
1070
|
}
|
|
@@ -1085,12 +1085,12 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
1087
1087
|
ft-loader {
|
|
1088
|
-
${e.setVariable(
|
|
1089
|
-
${e.setVariable(
|
|
1088
|
+
${e.setVariable(Ke.size,qe.iconSize)};
|
|
1089
|
+
${e.setVariable(Ke.color,"var(--ft-button-internal-color)")};
|
|
1090
1090
|
}
|
|
1091
|
-
`];var ti=function(t,e,i,o){for(var s,
|
|
1091
|
+
`];var ti=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class ei 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=me.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
1092
|
<button part="button"
|
|
1093
|
-
class="${
|
|
1093
|
+
class="${n.classMap(t)}"
|
|
1094
1094
|
aria-label="${this.getLabel()}"
|
|
1095
1095
|
?disabled=${this.isDisabled()}>
|
|
1096
1096
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -1111,7 +1111,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1111
1111
|
</ft-tooltip>
|
|
1112
1112
|
`:t}resolveIcon(){return this.loading?i.html`
|
|
1113
1113
|
<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}}ei.elementDefinitions={"ft-ripple":be,"ft-tooltip":
|
|
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}}ei.elementDefinitions={"ft-ripple":be,"ft-tooltip":We,"ft-typography":te,"ft-icon":we,"ft-loader":Ve},ei.styles=[e.safariEllipsisFix,Qe],ti([o.property({type:String,reflect:!0})],ei.prototype,"role",void 0),ti([o.property({type:Boolean})],ei.prototype,"primary",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),ti([o.property({type:Boolean})],ei.prototype,"dense",void 0),ti([o.property({type:Boolean})],ei.prototype,"round",void 0),ti([o.property({type:String})],ei.prototype,"label",void 0),ti([o.property({type:String})],ei.prototype,"icon",void 0),ti([o.property({type:String})],ei.prototype,"iconVariant",void 0),ti([o.property({type:Boolean})],ei.prototype,"trailingIcon",void 0),ti([o.property({type:Boolean})],ei.prototype,"loading",void 0),ti([o.property({type:String})],ei.prototype,"tooltipPosition",void 0),ti([o.property({type:Boolean})],ei.prototype,"hideTooltip",void 0),ti([o.property({type:Boolean})],ei.prototype,"forceTooltip",void 0),ti([o.query(".ft-button")],ei.prototype,"button",void 0),ti([o.query(".ft-button--label slot")],ei.prototype,"slottedContent",void 0),e.customElement("ft-button")(ei);class ii extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const oi={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")},si=i.css`
|
|
1115
1115
|
:host {
|
|
1116
1116
|
display: block;
|
|
1117
1117
|
}
|
|
@@ -1221,7 +1221,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1221
1221
|
.hidden {
|
|
1222
1222
|
visibility: hidden;
|
|
1223
1223
|
}
|
|
1224
|
-
`;var
|
|
1224
|
+
`;var li=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};const ni=t=>i.html`${t}`,ri=(t,e)=>t-e;class ai 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
1225
|
<style>
|
|
1226
1226
|
.table {
|
|
1227
1227
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1239,7 +1239,7 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1239
1239
|
`))}
|
|
1240
1240
|
</div>
|
|
1241
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:ri,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`
|
|
1242
|
-
<div class="${
|
|
1242
|
+
<div class="${n.classMap(o)}"
|
|
1243
1243
|
part="${this.columnPart("header-cell",e)}">
|
|
1244
1244
|
<div class="column-title-container">
|
|
1245
1245
|
<span class="column-title"
|
|
@@ -1250,28 +1250,28 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1250
1250
|
</div>
|
|
1251
1251
|
${this.renderColumnFilter(t,e)}
|
|
1252
1252
|
</div>
|
|
1253
|
-
`}renderColumnSort(t,e){var o;const s=this.currentSort&&this.currentSort.column===e,
|
|
1253
|
+
`}renderColumnSort(t,e){var o;const s=this.currentSort&&this.currentSort.column===e,l=s?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return i.html`
|
|
1254
1254
|
<ft-button
|
|
1255
1255
|
round
|
|
1256
1256
|
dense
|
|
1257
1257
|
class="${null===(o=t.sortable)||void 0===o||o?"":"hidden"}"
|
|
1258
|
-
icon="${
|
|
1258
|
+
icon="${l}"
|
|
1259
1259
|
label="Sort ${t.title}"
|
|
1260
1260
|
@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
1261
|
part="${this.columnPart("sort-button",e)}"
|
|
1262
1262
|
></ft-button>
|
|
1263
|
-
`}renderColumnFilter(t,e){var o,s;const
|
|
1263
|
+
`}renderColumnFilter(t,e){var o,s;const l=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
1264
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1265
1265
|
<ft-text-field
|
|
1266
1266
|
label="Search ${t.title}"
|
|
1267
|
-
@live-change="${
|
|
1267
|
+
@live-change="${l}"
|
|
1268
1268
|
part="${this.columnPart("filter",e)}"
|
|
1269
1269
|
></ft-text-field>
|
|
1270
1270
|
</div>
|
|
1271
1271
|
`;case"select":const o=null!==(s=this.selectData[e])&&void 0!==s?s:[];return o.length?i.html`
|
|
1272
1272
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1273
1273
|
<ft-select label="Filter ${t.title}"
|
|
1274
|
-
@change=${
|
|
1274
|
+
@change=${l}
|
|
1275
1275
|
part="${this.columnPart("filter",e)}">
|
|
1276
1276
|
<ft-select-option></ft-select-option>
|
|
1277
1277
|
${o.map((t=>i.html`
|
|
@@ -1279,9 +1279,9 @@ const Ce={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1279
1279
|
`))}
|
|
1280
1280
|
</ft-select>
|
|
1281
1281
|
</div>
|
|
1282
|
-
`:i.nothing}return i.nothing}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,o,s){var
|
|
1282
|
+
`:i.nothing}return i.nothing}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,o,s){var n;const r=null!==(n=t.render)&&void 0!==n?n:ni;return i.html`
|
|
1283
1283
|
<div class="cell"
|
|
1284
1284
|
part="${this.columnPart("cell",e)} cell-row-${s} cell-column-${e}-row-${s}">
|
|
1285
|
-
${(t=>{const e=r(t,s);return"string"==typeof e?
|
|
1285
|
+
${(t=>{const e=r(t,s);return"string"==typeof e?l.unsafeHTML(e):e})(this.getValue(t,o))}
|
|
1286
1286
|
</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)}}ai.styles=si,
|
|
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)}}ai.styles=si,li([o.property({attribute:!1})],ai.prototype,"data",void 0),li([o.property({attribute:!1})],ai.prototype,"columns",void 0),li([o.property({attribute:!1})],ai.prototype,"sort",void 0),li([o.property()],ai.prototype,"stickyHeaders",void 0),li([o.state()],ai.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(ai),t.FtFilterableTable=ai,t.FtFilterableTableCssVariables=oi,t.RowClickEvent=ii,t.styles=si,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);h(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);h(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Wt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -61,7 +61,7 @@ const f=window,u=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"
|
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:R}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.4.1");const F=window,U=F.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,D="?"+B,A=`<${D}>`,I=document,T=(t="")=>I.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),
|
|
64
|
+
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:R}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.4.1");const F=window,U=F.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,D="?"+B,A=`<${D}>`,I=document,T=(t="")=>I.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=I.createTreeWalker(I,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Z;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===Z?"!--"===a[1]?r=W:void 0!==a[1]?r=H:void 0!==a[2]?(q.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=K):void 0!==a[3]&&(r=K):r===K?">"===a[0]?(r=null!=s?s:Z,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?K:'"'===a[3]?J:V):r===J||r===V?r=K:r===W||r===H?r=Z:(r=K,s=void 0);const d=r===K&&t[e+1].startsWith("/>")?" ":"";n+=r===Z?i+A:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+B+d):i+B+(-2===p?(o.push(void 0),e):d)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(l):l,o]};class it{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=et(t,e);if(this.el=it.createElement(a,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(B)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(B),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?pt:"@"===e[1]?ct:rt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(B),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),tt.nextNode(),l.push({type:2,index:++s});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===D)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)l.push({type:7,index:s}),t+=B.length-1}s++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var s,n,r,l;if(e===Y)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=L(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!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=ot(t,a._$AS(t,e.values),a,o)),e}class st{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:I).importNode(i,!0);tt.currentNode=s;let n=tt.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new dt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=tt.nextNode(),r++)}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 nt{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,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=ot(this,t,e),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(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!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.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=it.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 st(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}k(t){P(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 nt(this.O(T()),this.O(T()),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 rt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,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=G}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=ot(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==Y,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=ot(this,o[i+r],e,r),l===Y&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===G?t=G:t!==G&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=U?U.emptyScript:"";class pt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{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=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==G&&(o===G||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 dt{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){ot(this,t)}}const ht={P:"$lit$",A:B,M:D,C:1,L:et,R:st,D:_,V:ot,I:nt,H:rt,N:pt,U:ct,B:lt,F:dt},ft=F.litHtmlPolyfillSupport;null==ft||ft(it,nt),(null!==(M=F.litHtmlVersions)&&void 0!==M?M:F.litHtmlVersions=[]).push("2.4.0");
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
@@ -130,12 +130,12 @@ var ut,vt;class xt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
130
130
|
* Copyright 2017 Google LLC
|
|
131
131
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
132
|
*/
|
|
133
|
-
class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Pt.directiveName="unsafeHTML",Pt.resultType=1;const _t=Mt(Pt),
|
|
133
|
+
class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Pt.directiveName="unsafeHTML",Pt.resultType=1;const _t=Mt(Pt),Zt=Mt(class extends Ft{constructor(t){var e;if(super(t),t.type!==zt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return Y}}),Wt=Symbol.for(""),Ht=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void 0:t._$litStatic$},Kt=t=>({_$litStatic$:t,r:Wt}),Vt=new Map,Jt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=Ht(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Vt.get(t))&&(r.raw=r,Vt.set(t,e=r)),i=l}return t(e,...i)})(X);
|
|
134
134
|
/**
|
|
135
135
|
* @license
|
|
136
136
|
* Copyright 2018 Google LLC
|
|
137
137
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
138
|
-
*/var qt;!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"}(qt||(qt={}));const Xt=gt.extend("--ft-typography-font-family",mt.titleFont),Yt=gt.extend("--ft-typography-font-family",mt.contentFont),Gt={fontFamily:Yt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qt=gt.extend("--ft-typography-title-font-family",Xt),te=gt.extend("--ft-typography-title-font-size",Gt.fontSize,"20px"),ee=gt.extend("--ft-typography-title-font-weight",Gt.fontWeight,"normal"),ie=gt.extend("--ft-typography-title-letter-spacing",Gt.letterSpacing,"0.15px"),oe=gt.extend("--ft-typography-title-line-height",Gt.lineHeight,"1.2"),se=gt.extend("--ft-typography-title-text-transform",Gt.textTransform,"inherit"),ne=gt.extend("--ft-typography-title-dense-font-family",Xt),re=gt.extend("--ft-typography-title-dense-font-size",Gt.fontSize,"14px"),le=gt.extend("--ft-typography-title-dense-font-weight",Gt.fontWeight,"normal"),ae=gt.extend("--ft-typography-title-dense-letter-spacing",Gt.letterSpacing,"0.105px"),pe=gt.extend("--ft-typography-title-dense-line-height",Gt.lineHeight,"1.7"),ce=gt.extend("--ft-typography-title-dense-text-transform",Gt.textTransform,"inherit"),de=gt.extend("--ft-typography-subtitle1-font-family",Yt),he=gt.extend("--ft-typography-subtitle1-font-size",Gt.fontSize,"16px"),fe=gt.extend("--ft-typography-subtitle1-font-weight",Gt.fontWeight,"600"),ue=gt.extend("--ft-typography-subtitle1-letter-spacing",Gt.letterSpacing,"0.144px"),ve=gt.extend("--ft-typography-subtitle1-line-height",Gt.lineHeight,"1.5"),xe=gt.extend("--ft-typography-subtitle1-text-transform",Gt.textTransform,"inherit"),be=gt.extend("--ft-typography-subtitle2-font-family",Yt),ge=gt.extend("--ft-typography-subtitle2-font-size",Gt.fontSize,"14px"),ye=gt.extend("--ft-typography-subtitle2-font-weight",Gt.fontWeight,"normal"),me=gt.extend("--ft-typography-subtitle2-letter-spacing",Gt.letterSpacing,"0.098px"),$e=gt.extend("--ft-typography-subtitle2-line-height",Gt.lineHeight,"1.7"),we=gt.extend("--ft-typography-subtitle2-text-transform",Gt.textTransform,"inherit"),Oe={fontFamily:gt.extend("--ft-typography-body1-font-family",Yt),fontSize:gt.extend("--ft-typography-body1-font-size",Gt.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",Gt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",Gt.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",Gt.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",Gt.textTransform,"inherit")},Se=gt.extend("--ft-typography-body2-font-family",Yt),ke=gt.extend("--ft-typography-body2-font-size",Gt.fontSize,"14px"),Ee=gt.extend("--ft-typography-body2-font-weight",Gt.fontWeight,"normal"),Ce=gt.extend("--ft-typography-body2-letter-spacing",Gt.letterSpacing,"0.252px"),Ne=gt.extend("--ft-typography-body2-line-height",Gt.lineHeight,"1.4"),ze=gt.extend("--ft-typography-body2-text-transform",Gt.textTransform,"inherit"),Re={fontFamily:gt.extend("--ft-typography-caption-font-family",Yt),fontSize:gt.extend("--ft-typography-caption-font-size",Gt.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",Gt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",Gt.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",Gt.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",Gt.textTransform,"inherit")},Me=gt.extend("--ft-typography-breadcrumb-font-family",Yt),Fe=gt.extend("--ft-typography-breadcrumb-font-size",Gt.fontSize,"10px"),Ue=gt.extend("--ft-typography-breadcrumb-font-weight",Gt.fontWeight,"normal"),je=gt.extend("--ft-typography-breadcrumb-letter-spacing",Gt.letterSpacing,"0.33px"),Be=gt.extend("--ft-typography-breadcrumb-line-height",Gt.lineHeight,"1.6"),De=gt.extend("--ft-typography-breadcrumb-text-transform",Gt.textTransform,"inherit"),Ae=gt.extend("--ft-typography-overline-font-family",Yt),Ie=gt.extend("--ft-typography-overline-font-size",Gt.fontSize,"10px"),Te=gt.extend("--ft-typography-overline-font-weight",Gt.fontWeight,"normal"),Le=gt.extend("--ft-typography-overline-letter-spacing",Gt.letterSpacing,"1.5px"),Pe=gt.extend("--ft-typography-overline-line-height",Gt.lineHeight,"1.6"),_e=gt.extend("--ft-typography-overline-text-transform",Gt.textTransform,"uppercase"),
|
|
138
|
+
*/var qt;!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"}(qt||(qt={}));const Xt=gt.extend("--ft-typography-font-family",mt.titleFont),Yt=gt.extend("--ft-typography-font-family",mt.contentFont),Gt={fontFamily:Yt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qt=gt.extend("--ft-typography-title-font-family",Xt),te=gt.extend("--ft-typography-title-font-size",Gt.fontSize,"20px"),ee=gt.extend("--ft-typography-title-font-weight",Gt.fontWeight,"normal"),ie=gt.extend("--ft-typography-title-letter-spacing",Gt.letterSpacing,"0.15px"),oe=gt.extend("--ft-typography-title-line-height",Gt.lineHeight,"1.2"),se=gt.extend("--ft-typography-title-text-transform",Gt.textTransform,"inherit"),ne=gt.extend("--ft-typography-title-dense-font-family",Xt),re=gt.extend("--ft-typography-title-dense-font-size",Gt.fontSize,"14px"),le=gt.extend("--ft-typography-title-dense-font-weight",Gt.fontWeight,"normal"),ae=gt.extend("--ft-typography-title-dense-letter-spacing",Gt.letterSpacing,"0.105px"),pe=gt.extend("--ft-typography-title-dense-line-height",Gt.lineHeight,"1.7"),ce=gt.extend("--ft-typography-title-dense-text-transform",Gt.textTransform,"inherit"),de=gt.extend("--ft-typography-subtitle1-font-family",Yt),he=gt.extend("--ft-typography-subtitle1-font-size",Gt.fontSize,"16px"),fe=gt.extend("--ft-typography-subtitle1-font-weight",Gt.fontWeight,"600"),ue=gt.extend("--ft-typography-subtitle1-letter-spacing",Gt.letterSpacing,"0.144px"),ve=gt.extend("--ft-typography-subtitle1-line-height",Gt.lineHeight,"1.5"),xe=gt.extend("--ft-typography-subtitle1-text-transform",Gt.textTransform,"inherit"),be=gt.extend("--ft-typography-subtitle2-font-family",Yt),ge=gt.extend("--ft-typography-subtitle2-font-size",Gt.fontSize,"14px"),ye=gt.extend("--ft-typography-subtitle2-font-weight",Gt.fontWeight,"normal"),me=gt.extend("--ft-typography-subtitle2-letter-spacing",Gt.letterSpacing,"0.098px"),$e=gt.extend("--ft-typography-subtitle2-line-height",Gt.lineHeight,"1.7"),we=gt.extend("--ft-typography-subtitle2-text-transform",Gt.textTransform,"inherit"),Oe={fontFamily:gt.extend("--ft-typography-body1-font-family",Yt),fontSize:gt.extend("--ft-typography-body1-font-size",Gt.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",Gt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",Gt.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",Gt.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",Gt.textTransform,"inherit")},Se=gt.extend("--ft-typography-body2-font-family",Yt),ke=gt.extend("--ft-typography-body2-font-size",Gt.fontSize,"14px"),Ee=gt.extend("--ft-typography-body2-font-weight",Gt.fontWeight,"normal"),Ce=gt.extend("--ft-typography-body2-letter-spacing",Gt.letterSpacing,"0.252px"),Ne=gt.extend("--ft-typography-body2-line-height",Gt.lineHeight,"1.4"),ze=gt.extend("--ft-typography-body2-text-transform",Gt.textTransform,"inherit"),Re={fontFamily:gt.extend("--ft-typography-caption-font-family",Yt),fontSize:gt.extend("--ft-typography-caption-font-size",Gt.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",Gt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",Gt.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",Gt.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",Gt.textTransform,"inherit")},Me=gt.extend("--ft-typography-breadcrumb-font-family",Yt),Fe=gt.extend("--ft-typography-breadcrumb-font-size",Gt.fontSize,"10px"),Ue=gt.extend("--ft-typography-breadcrumb-font-weight",Gt.fontWeight,"normal"),je=gt.extend("--ft-typography-breadcrumb-letter-spacing",Gt.letterSpacing,"0.33px"),Be=gt.extend("--ft-typography-breadcrumb-line-height",Gt.lineHeight,"1.6"),De=gt.extend("--ft-typography-breadcrumb-text-transform",Gt.textTransform,"inherit"),Ae=gt.extend("--ft-typography-overline-font-family",Yt),Ie=gt.extend("--ft-typography-overline-font-size",Gt.fontSize,"10px"),Te=gt.extend("--ft-typography-overline-font-weight",Gt.fontWeight,"normal"),Le=gt.extend("--ft-typography-overline-letter-spacing",Gt.letterSpacing,"1.5px"),Pe=gt.extend("--ft-typography-overline-line-height",Gt.lineHeight,"1.6"),_e=gt.extend("--ft-typography-overline-text-transform",Gt.textTransform,"uppercase"),Ze={fontFamily:gt.extend("--ft-typography-button-font-family",Yt),fontSize:gt.extend("--ft-typography-button-font-size",Gt.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",Gt.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",Gt.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",Gt.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",Gt.textTransform,"uppercase")},We=y`
|
|
139
139
|
.ft-typography--title {
|
|
140
140
|
font-family: ${Qt};
|
|
141
141
|
font-size: ${te};
|
|
@@ -144,7 +144,7 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
144
144
|
line-height: ${oe};
|
|
145
145
|
text-transform: ${se};
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,He=y`
|
|
148
148
|
.ft-typography--title-dense {
|
|
149
149
|
font-family: ${ne};
|
|
150
150
|
font-size: ${re};
|
|
@@ -219,12 +219,12 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
219
219
|
}
|
|
220
220
|
`,Qe=y`
|
|
221
221
|
.ft-typography--button {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
222
|
+
font-family: ${Ze.fontFamily};
|
|
223
|
+
font-size: ${Ze.fontSize};
|
|
224
|
+
font-weight: ${Ze.fontWeight};
|
|
225
|
+
letter-spacing: ${Ze.letterSpacing};
|
|
226
|
+
line-height: ${Ze.lineHeight};
|
|
227
|
+
text-transform: ${Ze.textTransform};
|
|
228
228
|
}
|
|
229
229
|
`,ti=y`
|
|
230
230
|
.ft-typography {
|
|
@@ -237,7 +237,7 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
237
237
|
</${Kt(this.element)}>
|
|
238
238
|
`:Jt`
|
|
239
239
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
240
|
-
`}}ii.styles=[He,
|
|
240
|
+
`}}ii.styles=[We,He,Ke,Ve,Je,qe,Xe,Ye,Ge,Qe,ti],ei([o()],ii.prototype,"element",void 0),ei([o()],ii.prototype,"variant",void 0),h("ft-typography")(ii);const oi={fontSize:gt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:gt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:gt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:gt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:gt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:gt.extend("--ft-input-label-border-color",mt.colorOutline),textColor:gt.extend("--ft-input-label-text-color",mt.colorOnSurfaceMedium),disabledTextColor:gt.extend("--ft-input-label-disabled-text-color",mt.colorOnSurfaceDisabled),colorSurface:gt.external(mt.colorSurface,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),colorError:gt.external(mt.colorError,"Design system")},si=y`
|
|
241
241
|
.ft-input-label {
|
|
242
242
|
position: absolute;
|
|
243
243
|
inset: 0;
|
|
@@ -360,7 +360,7 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
360
360
|
border-top: none;
|
|
361
361
|
}
|
|
362
362
|
`;var ni=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ri extends wt{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 X`
|
|
363
|
-
<div class="${
|
|
363
|
+
<div class="${Zt(t)}">
|
|
364
364
|
${this.text?X`
|
|
365
365
|
<div class="ft-input-label--text ft-typography--caption">
|
|
366
366
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -470,7 +470,7 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
470
470
|
top: ${this.originY}px;
|
|
471
471
|
}
|
|
472
472
|
</style>
|
|
473
|
-
<div class="${
|
|
473
|
+
<div class="${Zt(t)}">
|
|
474
474
|
<div class="ft-ripple--background"></div>
|
|
475
475
|
<div class="ft-ripple--effect"></div>
|
|
476
476
|
</div>
|
|
@@ -676,7 +676,7 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
676
676
|
color: ${ki.colorError};
|
|
677
677
|
}
|
|
678
678
|
`;var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends wt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return X``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ni.elementDefinitions={},Ci([o({type:String})],Ni.prototype,"label",void 0),Ci([o({type:Object,converter:t=>t})],Ni.prototype,"value",void 0),Ci([o({type:Boolean,reflect:!0})],Ni.prototype,"selected",void 0);class zi extends wt{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,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return X`
|
|
679
|
-
<div class="${
|
|
679
|
+
<div class="${Zt(a)}" part="container">
|
|
680
680
|
<div class="ft-select--main-panel" part="main-panel">
|
|
681
681
|
<ft-input-label text="${this.label}"
|
|
682
682
|
part="label"
|
|
@@ -714,7 +714,7 @@ class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error
|
|
|
714
714
|
@option-change=${this.updateOptionsFromSlot}
|
|
715
715
|
></slot>
|
|
716
716
|
`}renderOption(t){let e=this.selectedOption===t;return X`
|
|
717
|
-
<div class="${
|
|
717
|
+
<div class="${Zt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
|
|
718
718
|
part="option"
|
|
719
719
|
tabindex="0"
|
|
720
720
|
data-value="${t.value}"
|
|
@@ -882,7 +882,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
882
882
|
${yt(oi.labelMaxWidth,`calc(100% - ${mi.size} - ${oi.horizontalSpacing})`)};
|
|
883
883
|
}
|
|
884
884
|
`;var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends wt{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=[]}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 X`
|
|
885
|
-
<div class="${
|
|
885
|
+
<div class="${Zt(t)}">
|
|
886
886
|
<div class="ft-text-field--main-panel"
|
|
887
887
|
@keydown=${this.handleKeyboardNavigation}
|
|
888
888
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -964,7 +964,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
964
964
|
<slot></slot>
|
|
965
965
|
</ft-typography>
|
|
966
966
|
</div>
|
|
967
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Di(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())}}Ai.elementDefinitions={"ft-ripple":yi,"ft-typography":ii,"ft-icon":Si},Ai.styles=ji,Bi([o()],Ai.prototype,"value",void 0),Bi([r(".ft-text-field-suggestion")],Ai.prototype,"container",void 0),Bi([c()],Ai.prototype,"assignedNodes",void 0),h("ft-text-field")(Ui),h("ft-text-field-suggestion")(Ai);const Ii=gt.create("--ft-tooltip-distance","SIZE","4px"),Ti=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Li=gt.create("--ft-tooltip-background-color","COLOR","#666666"),Pi=gt.create("--ft-tooltip-z-index","NUMBER","1"),_i=gt.external(mt.borderRadiusS,"Design system"),
|
|
967
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Di(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())}}Ai.elementDefinitions={"ft-ripple":yi,"ft-typography":ii,"ft-icon":Si},Ai.styles=ji,Bi([o()],Ai.prototype,"value",void 0),Bi([r(".ft-text-field-suggestion")],Ai.prototype,"container",void 0),Bi([c()],Ai.prototype,"assignedNodes",void 0),h("ft-text-field")(Ui),h("ft-text-field-suggestion")(Ai);const Ii=gt.create("--ft-tooltip-distance","SIZE","4px"),Ti=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Li=gt.create("--ft-tooltip-background-color","COLOR","#666666"),Pi=gt.create("--ft-tooltip-z-index","NUMBER","1"),_i=gt.external(mt.borderRadiusS,"Design system"),Zi=gt.create("--ft-tooltip-max-width","SIZE","150px"),Wi=y`
|
|
968
968
|
.ft-tooltip--container {
|
|
969
969
|
display: block;
|
|
970
970
|
position: relative;
|
|
@@ -980,7 +980,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
980
980
|
box-sizing: border-box;
|
|
981
981
|
overflow: hidden;
|
|
982
982
|
width: max-content;
|
|
983
|
-
max-width: ${
|
|
983
|
+
max-width: ${Zi};
|
|
984
984
|
text-align: center;
|
|
985
985
|
padding: ${Ii};
|
|
986
986
|
z-index: ${Pi};
|
|
@@ -996,7 +996,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
996
996
|
position: relative;
|
|
997
997
|
word-break: break-word;
|
|
998
998
|
}
|
|
999
|
-
`;var
|
|
999
|
+
`;var Hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends wt{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,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
|
|
1000
1000
|
<div part="container"
|
|
1001
1001
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
1002
1002
|
@mouseenter=${this.onHover}
|
|
@@ -1014,7 +1014,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1014
1014
|
</div>
|
|
1015
1015
|
</div>
|
|
1016
1016
|
</div>
|
|
1017
|
-
`}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 r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${
|
|
1017
|
+
`}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 r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${Zi})`}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())}}Ki.elementDefinitions={"ft-typography":ii},Ki.styles=Wi,Hi([o()],Ki.prototype,"text",void 0),Hi([o({type:Boolean})],Ki.prototype,"manual",void 0),Hi([o({type:Boolean})],Ki.prototype,"inline",void 0),Hi([o({type:Number})],Ki.prototype,"delay",void 0),Hi([o()],Ki.prototype,"position",void 0),Hi([c("",!0)],Ki.prototype,"slotNodes",void 0),Hi([r(".ft-tooltip--container")],Ki.prototype,"container",void 0),Hi([r("slot")],Ki.prototype,"target",void 0),Hi([r(".ft-tooltip")],Ki.prototype,"tooltip",void 0),Hi([r(".ft-tooltip--content")],Ki.prototype,"tooltipContent",void 0),Hi([s()],Ki.prototype,"visible",void 0),h("ft-tooltip")(Ki);const Vi={color:gt.extend("--ft-loader-color",mt.colorPrimary),size:gt.create("--ft-loader-size","SIZE","80px")},Ji=y`
|
|
1018
1018
|
:host {
|
|
1019
1019
|
line-height: 0;
|
|
1020
1020
|
}
|
|
@@ -1090,7 +1090,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1090
1090
|
<div></div>
|
|
1091
1091
|
<div></div>
|
|
1092
1092
|
</div>
|
|
1093
|
-
`}}qi.styles=Ji,h("ft-loader")(qi);const Xi=gt.extend("--ft-button-color",mt.colorPrimary),Yi={backgroundColor:gt.extend("--ft-button-background-color",mt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",mt.borderRadiusL),color:Xi,fontSize:gt.extend("--ft-button-font-size",
|
|
1093
|
+
`}}qi.styles=Ji,h("ft-loader")(qi);const Xi=gt.extend("--ft-button-color",mt.colorPrimary),Yi={backgroundColor:gt.extend("--ft-button-background-color",mt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",mt.borderRadiusL),color:Xi,fontSize:gt.extend("--ft-button-font-size",Ze.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",Xi),verticalPadding:gt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:gt.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:gt.external(mt.colorOpacityDisabled,"Design system")},Gi=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",mt.colorOnPrimary)),Qi={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",mt.colorPrimary)),color:Gi,rippleColor:gt.extend("--ft-button-primary-ripple-color",Gi)},to=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",mt.borderRadiusM)),eo=[Ot,y`
|
|
1094
1094
|
:host {
|
|
1095
1095
|
display: inline-block;
|
|
1096
1096
|
max-width: 100%;
|
|
@@ -1139,7 +1139,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1139
1139
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Yi.iconSize});
|
|
1140
1140
|
|
|
1141
1141
|
border-radius: ${Yi.borderRadius};
|
|
1142
|
-
padding:
|
|
1142
|
+
padding: ${Yi.verticalPadding} ${Yi.horizontalPadding};
|
|
1143
1143
|
background-color: ${Yi.backgroundColor};
|
|
1144
1144
|
color: var(--ft-button-internal-color);
|
|
1145
1145
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -1172,7 +1172,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1172
1172
|
|
|
1173
1173
|
.ft-button.ft-button--outlined {
|
|
1174
1174
|
border: 1px solid var(--ft-button-internal-color);
|
|
1175
|
-
padding: calc(
|
|
1175
|
+
padding: calc(${Yi.verticalPadding} - 1px) calc(${Yi.horizontalPadding} - 1px);
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
.ft-button:focus {
|
|
@@ -1186,10 +1186,10 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1186
1186
|
text-overflow: ellipsis;
|
|
1187
1187
|
display: block;
|
|
1188
1188
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
1189
|
-
${yt(
|
|
1190
|
-
${yt(
|
|
1189
|
+
${yt(Ze.fontSize,"1em")};
|
|
1190
|
+
${yt(Ze.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
1191
1191
|
}
|
|
1192
|
-
|
|
1192
|
+
|
|
1193
1193
|
.ft-button--label[hidden] {
|
|
1194
1194
|
display: none;
|
|
1195
1195
|
}
|
|
@@ -1215,7 +1215,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1215
1215
|
}
|
|
1216
1216
|
`];var io=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class oo extends wt{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=wi.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(X`
|
|
1217
1217
|
<button part="button"
|
|
1218
|
-
class="${
|
|
1218
|
+
class="${Zt(t)}"
|
|
1219
1219
|
aria-label="${this.getLabel()}"
|
|
1220
1220
|
?disabled=${this.isDisabled()}>
|
|
1221
1221
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -1364,7 +1364,7 @@ const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1364
1364
|
`))}
|
|
1365
1365
|
</div>
|
|
1366
1366
|
`}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:po,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 i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return X`
|
|
1367
|
-
<div class="${
|
|
1367
|
+
<div class="${Zt(i)}"
|
|
1368
1368
|
part="${this.columnPart("header-cell",e)}">
|
|
1369
1369
|
<div class="column-title-container">
|
|
1370
1370
|
<span class="column-title"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-filterable-table",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.67",
|
|
4
4
|
"description": "A dynamic table with filters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fluid-topics/ft-button": "0.3.
|
|
26
|
-
"@fluid-topics/ft-select": "0.3.
|
|
27
|
-
"@fluid-topics/ft-text-field": "0.3.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
25
|
+
"@fluid-topics/ft-button": "0.3.67",
|
|
26
|
+
"@fluid-topics/ft-select": "0.3.67",
|
|
27
|
+
"@fluid-topics/ft-text-field": "0.3.67",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "0.3.67",
|
|
29
29
|
"lit": "2.2.8"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "9db69a3abe84d6fb5ec11e29164f2ceaa7369352"
|
|
32
32
|
}
|