@fluid-topics/ft-filterable-table 1.0.29 → 1.0.31
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.
|
@@ -4,13 +4,13 @@
|
|
|
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,
|
|
7
|
+
var r;const a=window,p=a.trustedTypes,d=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,f="$lit$",h=`lit$${(Math.random()+"").slice(9)}$`,c="?"+h,u=`<${c}>`,x=document,g=()=>x.createComment(""),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,v=Array.isArray,y="[ \t\n\f\r]",$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,w=/>/g,k=RegExp(`>|${y}(?:([^\\s"'>=/]+)(${y}*=${y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,z=/"/g,O=/^(?:script|style|textarea|title)$/i,E=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),C=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),B=new WeakMap,D=x.createTreeWalker(x,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,l=2===e?"<svg>":"",n=$;for(let e=0;e<i;e++){const i=t[e];let r,a,p=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===$?"!--"===a[1]?n=m:void 0!==a[1]?n=w:void 0!==a[2]?(O.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=k):void 0!==a[3]&&(n=k):n===k?">"===a[0]?(n=null!=s?s:$,p=-1):void 0===a[1]?p=-2:(p=n.lastIndex-a[2].length,r=a[1],n=void 0===a[3]?k:'"'===a[3]?z:S):n===z||n===S?n=k:n===m||n===w?n=$:(n=k,s=void 0);const c=n===k&&t[e+1].startsWith("/>")?" ":"";l+=n===$?i+u:p>=0?(o.push(r),i.slice(0,p)+f+i.slice(p)+h+c):i+h+(-2===p?(o.push(void 0),e):c)}const r=l+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==d?d.createHTML(r):r,o]};class N{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,l=0;const n=t.length-1,r=this.parts,[a,d]=j(t,e);if(this.el=N.createElement(a,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&r.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(f)||e.startsWith(h)){const i=d[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+f).split(h),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?T:"?"===e[1]?_:"@"===e[1]?U:R})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(O.test(o.tagName)){const t=o.textContent.split(h),e=t.length-1;if(e>0){o.textContent=p?p.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],g()),D.nextNode(),r.push({type:2,index:++s});o.append(t[e],g())}}}else if(8===o.nodeType)if(o.data===c)r.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(h,t+1));)r.push({type:7,index:s}),t+=h.length-1}s++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var s,l,n,r;if(e===C)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=b(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=Z(t,a._$AS(t,e.values),a,o)),e}class F{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);D.currentNode=s;let l=D.nextNode(),n=0,r=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new A(l,l.nextSibling,this,t):1===a.type?e=new a.ctor(l,a.name,a.strings,this,t):6===a.type&&(e=new P(l,this,t)),this._$AV.push(e),a=o[++r]}n!==(null==a?void 0:a.index)&&(l=D.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class A{constructor(t,e,i,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),b(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==C&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>v(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==I&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new F(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new N(t)),e}T(t){v(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 A(this.k(g()),this.k(g()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,i,o,s){this.type=1,this._$AH=I,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=I}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=Z(this,t,e,0),l=!b(t)||t!==this._$AH&&t!==C,l&&(this._$AH=t);else{const o=t;let n,r;for(t=s[0],n=0;n<s.length-1;n++)r=Z(this,o[i+n],e,n),r===C&&(r=this._$AH[n]),l||(l=!b(r)||r!==this._$AH[n]),r===I?t=I:t!==I&&(t+=(null!=r?r:"")+s[n+1]),this._$AH[n]=r}l&&!o&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class T extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const M=p?p.emptyScript:"";class _ extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class U extends R{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=Z(this,t,e,0))&&void 0!==i?i:I)===C)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==I&&(o===I||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 P{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){Z(this,t)}}const H=a.litHtmlPolyfillSupport;null==H||H(N,A),(null!==(r=a.litHtmlVersions)&&void 0!==r?r:a.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t._$litStatic$},K=t=>({_$litStatic$:t,r:V}),L=new Map,G=(t=>(e,...i)=>{const o=i.length;let s,l;const n=[],r=[];let a,p=0,d=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(l=i[p],s=W(l));)a+=s+e[++p],d=!0;p!==o&&r.push(l),n.push(a),p++}if(p===o&&n.push(e[o]),d){const t=n.join("$$lit$$");void 0===(e=L.get(t))&&(n.raw=n,L.set(t,e=n)),i=r}return t(e,...i)})(E);var q;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(q||(q={}));const X=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),J={fontFamily:Y,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",X),tt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",J.fontSize,"20px"),et=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",J.fontWeight,"normal"),it=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",J.letterSpacing,"0.15px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",J.lineHeight,"1.2"),st=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",J.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",X),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",J.fontSize,"14px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",J.fontWeight,"normal"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",J.letterSpacing,"0.105px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",J.lineHeight,"1.7"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",J.textTransform,"inherit"),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Y),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",J.fontSize,"16px"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",J.fontWeight,"600"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",J.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",J.lineHeight,"1.5"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",J.textTransform,"inherit"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Y),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",J.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",J.fontWeight,"normal"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",J.letterSpacing,"0.098px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",J.lineHeight,"1.7"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",J.textTransform,"inherit"),kt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",J.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",J.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",J.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",J.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",J.textTransform,"inherit")},St=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Y),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",J.fontSize,"14px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",J.fontWeight,"normal"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",J.letterSpacing,"0.252px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",J.lineHeight,"1.4"),It=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",J.textTransform,"inherit"),Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",J.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",J.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",J.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",J.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",J.textTransform,"inherit")},Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Y),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",J.fontSize,"10px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",J.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",J.letterSpacing,"0.33px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",J.lineHeight,"1.6"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",J.textTransform,"inherit"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Y),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",J.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",J.fontWeight,"normal"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",J.letterSpacing,"1.5px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",J.lineHeight,"1.6"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",J.textTransform,"uppercase"),Ht={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",Y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",J.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",J.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",J.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",J.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",J.textTransform,"uppercase")},Vt=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${Q};
|
|
16
16
|
font-size: ${tt};
|
|
@@ -19,18 +19,18 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
19
19
|
line-height: ${ot};
|
|
20
20
|
text-transform: ${st};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,Wt=i.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
24
|
font-family: ${lt};
|
|
25
25
|
font-size: ${nt};
|
|
26
26
|
font-weight: ${rt};
|
|
27
27
|
letter-spacing: ${at};
|
|
28
28
|
line-height: ${pt};
|
|
29
|
-
text-transform: ${
|
|
29
|
+
text-transform: ${dt};
|
|
30
30
|
}
|
|
31
31
|
`,Kt=i.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
33
|
+
font-family: ${ft};
|
|
34
34
|
font-size: ${ht};
|
|
35
35
|
font-weight: ${ct};
|
|
36
36
|
letter-spacing: ${ut};
|
|
@@ -67,16 +67,16 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
67
67
|
}
|
|
68
68
|
`,Xt=i.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
70
|
+
font-family: ${Bt.fontFamily};
|
|
71
|
+
font-size: ${Bt.fontSize};
|
|
72
|
+
font-weight: ${Bt.fontWeight};
|
|
73
|
+
letter-spacing: ${Bt.letterSpacing};
|
|
74
|
+
line-height: ${Bt.lineHeight};
|
|
75
|
+
text-transform: ${Bt.textTransform};
|
|
76
76
|
}
|
|
77
77
|
`,Yt=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
79
|
+
font-family: ${Dt};
|
|
80
80
|
font-size: ${jt};
|
|
81
81
|
font-weight: ${Nt};
|
|
82
82
|
letter-spacing: ${Zt};
|
|
@@ -90,16 +90,16 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
90
90
|
font-weight: ${Mt};
|
|
91
91
|
letter-spacing: ${_t};
|
|
92
92
|
line-height: ${Ut};
|
|
93
|
-
text-transform: ${
|
|
93
|
+
text-transform: ${Pt};
|
|
94
94
|
}
|
|
95
95
|
`,Qt=i.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
97
|
+
font-family: ${Ht.fontFamily};
|
|
98
|
+
font-size: ${Ht.fontSize};
|
|
99
|
+
font-weight: ${Ht.fontWeight};
|
|
100
|
+
letter-spacing: ${Ht.letterSpacing};
|
|
101
|
+
line-height: ${Ht.lineHeight};
|
|
102
|
+
text-transform: ${Ht.textTransform};
|
|
103
103
|
}
|
|
104
104
|
`,te=i.css`
|
|
105
105
|
.ft-typography {
|
|
@@ -112,7 +112,7 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
112
112
|
</${K(this.element)}>
|
|
113
113
|
`:G`
|
|
114
114
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}ie.styles=[Wt,
|
|
115
|
+
`}}ie.styles=[Vt,Wt,Kt,Lt,Gt,qt,Xt,Yt,Jt,Qt,te],ee([o.property()],ie.prototype,"element",void 0),ee([o.property()],ie.prototype,"variant",void 0),e.customElement("ft-typography")(ie);const oe={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")},se=i.css`
|
|
116
116
|
.ft-input-label {
|
|
117
117
|
position: absolute;
|
|
118
118
|
inset: 0;
|
|
@@ -163,8 +163,8 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
163
163
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
164
164
|
max-width: calc(${oe.labelMaxWidth} - 2 * (${oe.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
165
165
|
text-overflow: ellipsis;
|
|
166
|
-
${e.setVariable(
|
|
167
|
-
${e.setVariable(
|
|
166
|
+
${e.setVariable(Bt.fontSize,oe.fontSize)};
|
|
167
|
+
${e.setVariable(Bt.lineHeight,oe.fontSize)};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -196,8 +196,8 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.ft-input-label--raised .ft-input-label--text {
|
|
199
|
-
${e.setVariable(
|
|
200
|
-
${e.setVariable(
|
|
199
|
+
${e.setVariable(Bt.fontSize,oe.raisedFontSize)};
|
|
200
|
+
${e.setVariable(Bt.lineHeight,oe.raisedFontSize)};
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -243,7 +243,7 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
243
243
|
</div>
|
|
244
244
|
`:null}
|
|
245
245
|
</div>
|
|
246
|
-
`}}ne.elementDefinitions={},ne.styles=[Xt,se],le([o.property({type:String})],ne.prototype,"text",void 0),le([o.property({type:Boolean})],ne.prototype,"raised",void 0),le([o.property({type:Boolean})],ne.prototype,"outlined",void 0),le([o.property({type:Boolean})],ne.prototype,"disabled",void 0),le([o.property({type:Boolean})],ne.prototype,"error",void 0),e.customElement("ft-input-label")(ne);const re=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ae={color:re,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",re),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"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},pe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),
|
|
246
|
+
`}}ne.elementDefinitions={},ne.styles=[Xt,se],le([o.property({type:String})],ne.prototype,"text",void 0),le([o.property({type:Boolean})],ne.prototype,"raised",void 0),le([o.property({type:Boolean})],ne.prototype,"outlined",void 0),le([o.property({type:Boolean})],ne.prototype,"disabled",void 0),le([o.property({type:Boolean})],ne.prototype,"error",void 0),e.customElement("ft-input-label")(ne);const re=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ae={color:re,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",re),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"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},pe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),de=pe,fe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",pe),he=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ce=he,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",he),xe=i.css`
|
|
247
247
|
:host {
|
|
248
248
|
display: contents;
|
|
249
249
|
}
|
|
@@ -282,11 +282,11 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
285
|
-
background-color: ${
|
|
285
|
+
background-color: ${fe};
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
289
|
-
background-color: ${
|
|
289
|
+
background-color: ${de};
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
.ft-ripple .ft-ripple--background {
|
|
@@ -350,7 +350,7 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
350
350
|
<div class="ft-ripple--background"></div>
|
|
351
351
|
<div class="ft-ripple--effect"></div>
|
|
352
352
|
</div>
|
|
353
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ye.elementDefinitions={},ye.styles=xe,ve([o.property({type:Boolean})],ye.prototype,"primary",void 0),ve([o.property({type:Boolean})],ye.prototype,"secondary",void 0),ve([o.property({type:Boolean})],ye.prototype,"unbounded",void 0),ve([o.property({type:Boolean})],ye.prototype,"activated",void 0),ve([o.property({type:Boolean})],ye.prototype,"selected",void 0),ve([o.property({type:Boolean})],ye.prototype,"disabled",void 0),ve([o.state()],ye.prototype,"hovered",void 0),ve([o.state()],ye.prototype,"focused",void 0),ve([o.state()],ye.prototype,"pressed",void 0),ve([o.state()],ye.prototype,"rippling",void 0),ve([o.state()],ye.prototype,"rippleSize",void 0),ve([o.state()],ye.prototype,"originX",void 0),ve([o.state()],ye.prototype,"originY",void 0),ve([o.query(".ft-ripple")],ye.prototype,"ripple",void 0),ve([o.query(".ft-ripple--effect")],ye.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ye),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT=""}(ge||(ge={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(be||(be={})),new Map([...["abw"].map((t=>[t,be.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,be.AUDIO])),...["avi"].map((t=>[t,be.AVI])),...["chm","xhs"].map((t=>[t,be.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,be.CODE])),...["csv"].map((t=>[t,be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,be.DITA])),...["epub"].map((t=>[t,be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,be.EXCEL])),...["flac"].map((t=>[t,be.FLAC])),...["gif"].map((t=>[t,be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,be.GZIP])),...["html","htm","xhtml"].map((t=>[t,be.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,be.JPEG])),...["json"].map((t=>[t,be.JSON])),...["m4a","m4p"].map((t=>[t,be.M4A])),...["mov","qt"].map((t=>[t,be.MOV])),...["mp3"].map((t=>[t,be.MP3])),...["mp4","m4v"].map((t=>[t,be.MP4])),...["ogg","oga"].map((t=>[t,be.OGG])),...["pdf","ps"].map((t=>[t,be.PDF])),...["png"].map((t=>[t,be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,be.POWERPOINT])),...["rar"].map((t=>[t,be.RAR])),...["stp"].map((t=>[t,be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,be.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,be.VIDEO])),...["wav"].map((t=>[t,be.WAV])),...["wma"].map((t=>[t,be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,be.WORD])),...["xml","xsl","rdf"].map((t=>[t,be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,be.YAML])),...["zip"].map((t=>[t,be.ZIP]))]);const $e={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},me=i.css`
|
|
353
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ye.elementDefinitions={},ye.styles=xe,ve([o.property({type:Boolean})],ye.prototype,"primary",void 0),ve([o.property({type:Boolean})],ye.prototype,"secondary",void 0),ve([o.property({type:Boolean})],ye.prototype,"unbounded",void 0),ve([o.property({type:Boolean})],ye.prototype,"activated",void 0),ve([o.property({type:Boolean})],ye.prototype,"selected",void 0),ve([o.property({type:Boolean})],ye.prototype,"disabled",void 0),ve([o.state()],ye.prototype,"hovered",void 0),ve([o.state()],ye.prototype,"focused",void 0),ve([o.state()],ye.prototype,"pressed",void 0),ve([o.state()],ye.prototype,"rippling",void 0),ve([o.state()],ye.prototype,"rippleSize",void 0),ve([o.state()],ye.prototype,"originX",void 0),ve([o.state()],ye.prototype,"originY",void 0),ve([o.query(".ft-ripple")],ye.prototype,"ripple",void 0),ve([o.query(".ft-ripple--effect")],ye.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ye),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(ge||(ge={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(be||(be={})),new Map([...["abw"].map((t=>[t,be.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,be.AUDIO])),...["avi"].map((t=>[t,be.AVI])),...["chm","xhs"].map((t=>[t,be.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,be.CODE])),...["csv"].map((t=>[t,be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,be.DITA])),...["epub"].map((t=>[t,be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,be.EXCEL])),...["flac"].map((t=>[t,be.FLAC])),...["gif"].map((t=>[t,be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,be.GZIP])),...["html","htm","xhtml"].map((t=>[t,be.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,be.JPEG])),...["json"].map((t=>[t,be.JSON])),...["m4a","m4p"].map((t=>[t,be.M4A])),...["mov","qt"].map((t=>[t,be.MOV])),...["mp3"].map((t=>[t,be.MP3])),...["mp4","m4v"].map((t=>[t,be.MP4])),...["ogg","oga"].map((t=>[t,be.OGG])),...["pdf","ps"].map((t=>[t,be.PDF])),...["png"].map((t=>[t,be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,be.POWERPOINT])),...["rar"].map((t=>[t,be.RAR])),...["stp"].map((t=>[t,be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,be.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,be.VIDEO])),...["wav"].map((t=>[t,be.WAV])),...["wma"].map((t=>[t,be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,be.WORD])),...["xml","xsl","rdf"].map((t=>[t,be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,be.YAML])),...["zip"].map((t=>[t,be.ZIP]))]);const $e={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},me=i.css`
|
|
354
354
|
:host, i.ft-icon {
|
|
355
355
|
display: inline-flex;
|
|
356
356
|
align-items: center;
|
|
@@ -552,14 +552,14 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
552
552
|
.ft-select--in-error .ft-select--helper-text {
|
|
553
553
|
color: ${ze.colorError};
|
|
554
554
|
}
|
|
555
|
-
`;var Ee=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 Ce 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}))}}Ce.elementDefinitions={},Ee([o.property({type:String})],Ce.prototype,"label",void 0),Ee([o.property({type:Object,converter:t=>t})],Ce.prototype,"value",void 0),Ee([o.property({type:Boolean,reflect:!0})],Ce.prototype,"selected",void 0);class Ie 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
|
|
556
|
-
<div class="${n.classMap(
|
|
555
|
+
`;var Ee=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 Ce 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}))}}Ce.elementDefinitions={},Ee([o.property({type:String})],Ce.prototype,"label",void 0),Ee([o.property({type:Object,converter:t=>t})],Ce.prototype,"value",void 0),Ee([o.property({type:Boolean,reflect:!0})],Ce.prototype,"selected",void 0);class Ie 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 d=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,f={"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":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
|
|
556
|
+
<div class="${n.classMap(f)}" part="container">
|
|
557
557
|
<div class="ft-select--main-panel" part="main-panel">
|
|
558
558
|
<ft-input-label text="${this.label}"
|
|
559
559
|
part="label"
|
|
560
560
|
?disabled=${p}
|
|
561
561
|
?outlined=${this.outlined}
|
|
562
|
-
?raised=${
|
|
562
|
+
?raised=${d||a}
|
|
563
563
|
?error=${this.error}
|
|
564
564
|
></ft-input-label>
|
|
565
565
|
<div class="ft-select--input-panel"
|
|
@@ -606,7 +606,7 @@ const W=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
606
606
|
* Copyright 2018 Google LLC
|
|
607
607
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
608
|
*/
|
|
609
|
-
const
|
|
609
|
+
const Be={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")},De=i.css`
|
|
610
610
|
*:focus {
|
|
611
611
|
outline: none;
|
|
612
612
|
}
|
|
@@ -619,16 +619,16 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
ft-input-label {
|
|
622
|
-
${e.setVariable(oe.fontSize,
|
|
623
|
-
${e.setVariable(oe.raisedFontSize,
|
|
624
|
-
${e.setVariable(oe.verticalSpacing,
|
|
625
|
-
${e.setVariable(oe.horizontalSpacing,
|
|
622
|
+
${e.setVariable(oe.fontSize,Be.fontSize)};
|
|
623
|
+
${e.setVariable(oe.raisedFontSize,Be.labelSize)};
|
|
624
|
+
${e.setVariable(oe.verticalSpacing,Be.verticalSpacing)};
|
|
625
|
+
${e.setVariable(oe.horizontalSpacing,Be.horizontalSpacing)};
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
.ft-text-field--main-panel {
|
|
629
629
|
position: relative;
|
|
630
630
|
display: flex;
|
|
631
|
-
height: calc(4 * ${
|
|
631
|
+
height: calc(4 * ${Be.verticalSpacing} + ${Be.labelSize} + ${Be.fontSize});
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
.ft-text-field--input-panel {
|
|
@@ -637,10 +637,10 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
637
637
|
display: flex;
|
|
638
638
|
align-items: center;
|
|
639
639
|
overflow: hidden;
|
|
640
|
-
padding: 0 ${
|
|
640
|
+
padding: 0 ${Be.horizontalSpacing};
|
|
641
641
|
|
|
642
|
-
${e.setVariable(kt.fontSize,
|
|
643
|
-
${e.setVariable(kt.lineHeight,
|
|
642
|
+
${e.setVariable(kt.fontSize,Be.fontSize)};
|
|
643
|
+
${e.setVariable(kt.lineHeight,Be.fontSize)};
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
.ft-text-field--input-panel ft-ripple {
|
|
@@ -650,11 +650,11 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
650
650
|
|
|
651
651
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
652
652
|
align-items: flex-end;
|
|
653
|
-
padding: 0 ${
|
|
653
|
+
padding: 0 ${Be.horizontalSpacing} ${Be.verticalSpacing} ${Be.horizontalSpacing};
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
.ft-text-field--prefix {
|
|
657
|
-
color: ${
|
|
657
|
+
color: ${Be.prefixColor};
|
|
658
658
|
margin-right: 2px;
|
|
659
659
|
flex-shrink: 1;
|
|
660
660
|
overflow: hidden;
|
|
@@ -673,15 +673,15 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
673
673
|
flex-shrink: 1;
|
|
674
674
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
675
675
|
|
|
676
|
-
color: ${
|
|
677
|
-
padding: calc(2 * ${
|
|
676
|
+
color: ${Be.colorOnSurface};
|
|
677
|
+
padding: calc(2 * ${Be.verticalSpacing}) 0;
|
|
678
678
|
border: none;
|
|
679
679
|
background: none;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
683
683
|
padding-bottom: 0;
|
|
684
|
-
padding-top: calc(${
|
|
684
|
+
padding-top: calc(${Be.labelSize} + 2 * ${Be.verticalSpacing});
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -690,37 +690,37 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
.ft-text-field--disabled .ft-text-field--input {
|
|
693
|
-
color: ${
|
|
693
|
+
color: ${Be.colorOnSurfaceDisabled};
|
|
694
694
|
}
|
|
695
695
|
|
|
696
696
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
697
|
-
${e.setVariable(oe.borderColor,
|
|
698
|
-
${e.setVariable(oe.textColor,
|
|
697
|
+
${e.setVariable(oe.borderColor,Be.colorPrimary)};
|
|
698
|
+
${e.setVariable(oe.textColor,Be.colorPrimary)};
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
702
|
-
border-radius: ${
|
|
702
|
+
border-radius: ${Be.borderRadiusS} ${Be.borderRadiusS} 0 0;
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
706
|
-
border-radius: ${
|
|
706
|
+
border-radius: ${Be.borderRadiusS};
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
.ft-text-field--helper-text {
|
|
710
|
-
padding: 0 12px 0 ${
|
|
711
|
-
color: ${
|
|
710
|
+
padding: 0 12px 0 ${Be.horizontalSpacing};
|
|
711
|
+
color: ${Be.helperColor};
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
.ft-text-field--in-error .ft-text-field--input,
|
|
715
715
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
716
716
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
717
|
-
color: ${
|
|
717
|
+
color: ${Be.colorError};
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
.ft-text-field--icon {
|
|
721
721
|
align-self: center;
|
|
722
722
|
margin-left: 8px;
|
|
723
|
-
color: ${
|
|
723
|
+
color: ${Be.iconColor};
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
.ft-text-field--container {
|
|
@@ -733,13 +733,13 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
733
733
|
position: absolute;
|
|
734
734
|
left: 0;
|
|
735
735
|
right: 0;
|
|
736
|
-
z-index: ${
|
|
737
|
-
background: ${
|
|
738
|
-
border: 1px solid ${
|
|
739
|
-
border-radius: 0 0 ${
|
|
740
|
-
box-shadow: ${
|
|
736
|
+
z-index: ${Be.floatingZIndex};
|
|
737
|
+
background: ${Be.colorSurface};
|
|
738
|
+
border: 1px solid ${Be.colorOutline};
|
|
739
|
+
border-radius: 0 0 ${Be.borderRadiusS} ${Be.borderRadiusS};
|
|
740
|
+
box-shadow: ${Be.elevation02};
|
|
741
741
|
outline: none;
|
|
742
|
-
max-height: ${
|
|
742
|
+
max-height: ${Be.suggestSize};
|
|
743
743
|
overflow-y: auto;
|
|
744
744
|
}
|
|
745
745
|
|
|
@@ -758,7 +758,11 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
758
758
|
.ft-text-field--with-icon {
|
|
759
759
|
${e.setVariable(oe.labelMaxWidth,`calc(100% - ${$e.size} - ${oe.horizontalSpacing})`)};
|
|
760
760
|
}
|
|
761
|
-
|
|
761
|
+
|
|
762
|
+
.ft-text-field--with-password ft-icon:hover {
|
|
763
|
+
cursor: pointer;
|
|
764
|
+
}
|
|
765
|
+
`;var je=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 Ne extends e.FtLitElement{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ge.EYE_SLASH,this.passwordRevealedIcon=ge.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
|
|
762
766
|
<div class="${n.classMap(t)}">
|
|
763
767
|
<div class="ft-text-field--main-panel"
|
|
764
768
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -777,7 +781,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
777
781
|
${this.prefix}
|
|
778
782
|
</ft-typography>
|
|
779
783
|
`:i.nothing}
|
|
780
|
-
<input type
|
|
784
|
+
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
781
785
|
maxlength=${(t=>null!=t?t:I)(this.maxLength||void 0)}
|
|
782
786
|
aria-label="${this.label}"
|
|
783
787
|
class="ft-typography--body1 ft-text-field--input"
|
|
@@ -786,12 +790,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
786
790
|
@click=${this.handleClick}
|
|
787
791
|
@keyup=${this.handleInput}
|
|
788
792
|
@focus=${this.onFocus}/>
|
|
789
|
-
${this.
|
|
790
|
-
<ft-icon class="ft-text-field--icon"
|
|
791
|
-
.variant=${this.iconVariant}
|
|
792
|
-
.value=${this.icon}
|
|
793
|
-
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
794
|
-
`:i.nothing}
|
|
793
|
+
${this.renderIcon()}
|
|
795
794
|
</div>
|
|
796
795
|
<div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
|
|
797
796
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
@@ -804,7 +803,17 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
804
803
|
</ft-typography>
|
|
805
804
|
`:i.nothing}
|
|
806
805
|
</div>
|
|
807
|
-
`}
|
|
806
|
+
`}renderPasswordIcon(){return i.html`
|
|
807
|
+
<ft-icon class="ft-text-field--icon"
|
|
808
|
+
.variant=${this.iconVariant}
|
|
809
|
+
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
810
|
+
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
811
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?i.html`
|
|
812
|
+
<ft-icon class="ft-text-field--icon"
|
|
813
|
+
.variant=${this.iconVariant}
|
|
814
|
+
.value=${this.icon}
|
|
815
|
+
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
816
|
+
`:i.nothing}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var 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)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}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,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ne.elementDefinitions={"ft-input-label":ne,"ft-ripple":ye,"ft-typography":ie,"ft-icon":Se},Ne.styles=[Gt,De],je([o.property()],Ne.prototype,"label",void 0),je([o.property({noAccessor:!0})],Ne.prototype,"value",null),je([o.state()],Ne.prototype,"dispatchedValue",void 0),je([o.property()],Ne.prototype,"helper",void 0),je([o.property({type:Boolean})],Ne.prototype,"outlined",void 0),je([o.property({type:Boolean})],Ne.prototype,"disabled",void 0),je([o.property({type:Boolean})],Ne.prototype,"error",void 0),je([o.property()],Ne.prototype,"prefix",void 0),je([o.property()],Ne.prototype,"icon",void 0),je([o.property()],Ne.prototype,"passwordHiddenIcon",void 0),je([o.property()],Ne.prototype,"passwordRevealedIcon",void 0),je([o.property()],Ne.prototype,"iconVariant",void 0),je([o.property({type:Boolean})],Ne.prototype,"filterSuggestions",void 0),je([o.property({type:Number})],Ne.prototype,"maxLength",void 0),je([o.property({type:Boolean})],Ne.prototype,"password",void 0),je([o.state()],Ne.prototype,"focused",void 0),je([o.state()],Ne.prototype,"hidePassword",void 0),je([o.state()],Ne.prototype,"suggestionsOnTop",void 0),je([o.state()],Ne.prototype,"hideSuggestions",void 0),je([o.state()],Ne.prototype,"visibleSuggestions",void 0),je([o.query(".ft-text-field--main-panel")],Ne.prototype,"mainPanel",void 0),je([o.query(".ft-text-field--input")],Ne.prototype,"input",void 0),je([o.query(".ft-text-field--suggestions")],Ne.prototype,"suggestionsContainer",void 0),je([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],Ne.prototype,"suggestions",void 0);const Ze=i.css`
|
|
808
817
|
.ft-text-field-suggestion {
|
|
809
818
|
position: relative;
|
|
810
819
|
padding: 8px 16px;
|
|
@@ -841,7 +850,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
841
850
|
<slot></slot>
|
|
842
851
|
</ft-typography>
|
|
843
852
|
</div>
|
|
844
|
-
`}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 Ae(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())}}Re.elementDefinitions={"ft-ripple":ye,"ft-typography":ie,"ft-icon":Se},Re.styles=Ze,Fe([o.property()],Re.prototype,"value",void 0),Fe([o.query(".ft-text-field-suggestion")],Re.prototype,"container",void 0),Fe([o.queryAssignedNodes()],Re.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(Ne),e.customElement("ft-text-field-suggestion")(Re);const Te=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Me=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),_e=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ue=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),
|
|
853
|
+
`}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 Ae(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())}}Re.elementDefinitions={"ft-ripple":ye,"ft-typography":ie,"ft-icon":Se},Re.styles=Ze,Fe([o.property()],Re.prototype,"value",void 0),Fe([o.query(".ft-text-field-suggestion")],Re.prototype,"container",void 0),Fe([o.queryAssignedNodes()],Re.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(Ne),e.customElement("ft-text-field-suggestion")(Re);const Te=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Me=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),_e=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ue=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Pe=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),He=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ve=i.css`
|
|
845
854
|
.ft-tooltip--container {
|
|
846
855
|
display: block;
|
|
847
856
|
position: relative;
|
|
@@ -857,7 +866,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
857
866
|
box-sizing: border-box;
|
|
858
867
|
overflow: hidden;
|
|
859
868
|
width: max-content;
|
|
860
|
-
max-width: ${
|
|
869
|
+
max-width: ${He};
|
|
861
870
|
text-align: center;
|
|
862
871
|
padding: ${Te};
|
|
863
872
|
z-index: ${Ue};
|
|
@@ -865,7 +874,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
865
874
|
|
|
866
875
|
.ft-tooltip--content {
|
|
867
876
|
padding: 4px 8px;
|
|
868
|
-
border-radius: ${
|
|
877
|
+
border-radius: ${Pe};
|
|
869
878
|
background-color: ${_e};
|
|
870
879
|
color: ${Me};
|
|
871
880
|
top: -500px;
|
|
@@ -873,7 +882,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
873
882
|
position: relative;
|
|
874
883
|
word-break: break-word;
|
|
875
884
|
}
|
|
876
|
-
`;var
|
|
885
|
+
`;var We=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 Ke extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
|
|
877
886
|
<div part="container"
|
|
878
887
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
879
888
|
@mouseenter=${this.onHover}
|
|
@@ -891,7 +900,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
891
900
|
</div>
|
|
892
901
|
</div>
|
|
893
902
|
</div>
|
|
894
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=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=4-e.left);const n=this.tooltip.style;n.left=s+"px",n.top=l+"px",n.maxWidth=`max(${e.width}px, ${
|
|
903
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=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=4-e.left);const n=this.tooltip.style;n.left=s+"px",n.top=l+"px",n.maxWidth=`max(${e.width}px, ${He})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ke.elementDefinitions={"ft-typography":ie},Ke.styles=Ve,We([o.property()],Ke.prototype,"text",void 0),We([o.property({type:Boolean})],Ke.prototype,"manual",void 0),We([o.property({type:Boolean})],Ke.prototype,"inline",void 0),We([o.property({type:Number})],Ke.prototype,"delay",void 0),We([o.property()],Ke.prototype,"position",void 0),We([o.queryAssignedNodes("",!0)],Ke.prototype,"slotNodes",void 0),We([o.query(".ft-tooltip--container")],Ke.prototype,"container",void 0),We([o.query("slot")],Ke.prototype,"target",void 0),We([o.query(".ft-tooltip")],Ke.prototype,"tooltip",void 0),We([o.query(".ft-tooltip--content")],Ke.prototype,"tooltipContent",void 0),We([o.state()],Ke.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ke);const Le={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ge=i.css`
|
|
895
904
|
:host {
|
|
896
905
|
line-height: 0;
|
|
897
906
|
}
|
|
@@ -967,7 +976,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
967
976
|
<div></div>
|
|
968
977
|
<div></div>
|
|
969
978
|
</div>
|
|
970
|
-
`}}qe.styles=Ge,e.customElement("ft-loader")(qe);const Xe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Ye={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Xe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",
|
|
979
|
+
`}}qe.styles=Ge,e.customElement("ft-loader")(qe);const Xe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Ye={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Xe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Ht.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Xe),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Je=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Qe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Je,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Je)},ti=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),ei=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),ii=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),oi=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),si=[i.css`
|
|
971
980
|
:host {
|
|
972
981
|
display: inline-block;
|
|
973
982
|
max-width: 100%;
|
|
@@ -1068,8 +1077,8 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1068
1077
|
text-overflow: ellipsis;
|
|
1069
1078
|
display: block;
|
|
1070
1079
|
margin: 0 ${Ye.iconPadding};
|
|
1071
|
-
${e.setVariable(
|
|
1072
|
-
${e.setVariable(
|
|
1080
|
+
${e.setVariable(Ht.fontSize,"1em")};
|
|
1081
|
+
${e.setVariable(Ht.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
1073
1082
|
}
|
|
1074
1083
|
|
|
1075
1084
|
.ft-button--dense .ft-button--label {
|
|
@@ -1237,7 +1246,7 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1237
1246
|
.hidden {
|
|
1238
1247
|
visibility: hidden;
|
|
1239
1248
|
}
|
|
1240
|
-
`;var
|
|
1249
|
+
`;var di=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 fi=t=>i.html`${t}`,hi=(t,e)=>t-e;class ci 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`
|
|
1241
1250
|
<style>
|
|
1242
1251
|
.table {
|
|
1243
1252
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1296,9 +1305,9 @@ const De={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SI
|
|
|
1296
1305
|
`))}
|
|
1297
1306
|
</ft-select>
|
|
1298
1307
|
</div>
|
|
1299
|
-
`: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:
|
|
1308
|
+
`: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:fi;return i.html`
|
|
1300
1309
|
<div class="cell"
|
|
1301
1310
|
part="${this.columnPart("cell",e)} cell-row-${s} cell-column-${e}-row-${s}">
|
|
1302
1311
|
${(t=>{const e=r(t,s);return"string"==typeof e?l.unsafeHTML(e):e})(this.getValue(t,o))}
|
|
1303
1312
|
</div>
|
|
1304
|
-
`}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)}}ci.styles=pi,
|
|
1313
|
+
`}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)}}ci.styles=pi,di([o.property({attribute:!1})],ci.prototype,"data",void 0),di([o.property({attribute:!1})],ci.prototype,"columns",void 0),di([o.property({attribute:!1})],ci.prototype,"sort",void 0),di([o.property()],ci.prototype,"stickyHeaders",void 0),di([o.state()],ci.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(ci),t.FtFilterableTable=ci,t.FtFilterableTableCssVariables=ai,t.RowClickEvent=ri,t.styles=pi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|