@fluid-topics/ft-filterable-table 0.3.12 → 0.3.13

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.
@@ -10,109 +10,225 @@ var r;const a=globalThis.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:U}),P=new Map,K=(t=>(e,...i)=>{const o=i.length;let n,l;const s=[],r=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(l=i[p],n=H(l));)a+=n+e[++p],f=!0;r.push(l),s.push(a),p++}if(p===o&&s.push(e[o]),f){const t=s.join("$$lit$$");void 0===(e=P.get(t))&&(s.raw=s,P.set(t,e=s)),i=r}return t(e,...i)})(S);var L,G=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!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"}(L||(L={}));const V=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",V),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",V),nt=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"),st=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),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),gt=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"),Ct=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),Et={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")},Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"1.6"),Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Mt=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`
13
+ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:U}),P=new Map,K=(t=>(e,...i)=>{const o=i.length;let n,l;const s=[],r=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(l=i[p],n=H(l));)a+=n+e[++p],f=!0;r.push(l),s.push(a),p++}if(p===o&&s.push(e[o]),f){const t=s.join("$$lit$$");void 0===(e=P.get(t))&&(s.raw=s,P.set(t,e=s)),i=r}return t(e,...i)})(S);var L;!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"}(L||(L={}));const G=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),V=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),q={fontFamily:V,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")},X=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",G),Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",q.fontSize,"20px"),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",q.lineHeight,"1.2"),et=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",q.textTransform,"inherit"),it=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",G),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",q.lineHeight,"1.7"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",V),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"1.5"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",V),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"1.7"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit"),mt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",V),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",q.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit")},$t=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",V),wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",q.lineHeight,"1.4"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit"),Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",V),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",q.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit")},Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",V),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"1.6"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",V),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",q.lineHeight,"1.6"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase"),_t={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",V),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",q.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",q.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase")},Ut=i.css`
14
14
  .ft-typography--title {
15
- font-family: ${Y};
16
- font-size: ${J};
17
- font-weight: ${Q};
18
- letter-spacing: ${tt};
19
- line-height: ${et};
20
- text-transform: ${it};
15
+ font-family: ${X};
16
+ font-size: ${Y};
17
+ font-weight: ${J};
18
+ letter-spacing: ${Q};
19
+ line-height: ${tt};
20
+ text-transform: ${et};
21
21
  }
22
- `,Wt=i.css`
22
+ `,Ht=i.css`
23
23
  .ft-typography--title-dense {
24
- font-family: ${ot};
25
- font-size: ${nt};
26
- font-weight: ${lt};
27
- letter-spacing: ${st};
28
- line-height: ${rt};
29
- text-transform: ${at};
24
+ font-family: ${it};
25
+ font-size: ${ot};
26
+ font-weight: ${nt};
27
+ letter-spacing: ${lt};
28
+ line-height: ${st};
29
+ text-transform: ${rt};
30
30
  }
31
- `,Pt=i.css`
31
+ `,Wt=i.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${pt};
34
- font-size: ${ft};
35
- font-weight: ${dt};
36
- letter-spacing: ${ht};
37
- line-height: ${ct};
38
- text-transform: ${ut};
33
+ font-family: ${at};
34
+ font-size: ${pt};
35
+ font-weight: ${ft};
36
+ letter-spacing: ${dt};
37
+ line-height: ${ht};
38
+ text-transform: ${ct};
39
39
  }
40
- `,Kt=i.css`
40
+ `,Pt=i.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${xt};
43
- font-size: ${bt};
44
- font-weight: ${vt};
45
- letter-spacing: ${gt};
46
- line-height: ${yt};
47
- text-transform: ${mt};
42
+ font-family: ${ut};
43
+ font-size: ${xt};
44
+ font-weight: ${bt};
45
+ letter-spacing: ${vt};
46
+ line-height: ${gt};
47
+ text-transform: ${yt};
48
48
  }
49
49
 
50
- `,Lt=i.css`
50
+ `,Kt=i.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${$t.fontFamily};
53
- font-size: ${$t.fontSize};
54
- font-weight: ${$t.fontWeight};
55
- letter-spacing: ${$t.letterSpacing};
56
- line-height: ${$t.lineHeight};
57
- text-transform: ${$t.textTransform};
52
+ font-family: ${mt.fontFamily};
53
+ font-size: ${mt.fontSize};
54
+ font-weight: ${mt.fontWeight};
55
+ letter-spacing: ${mt.letterSpacing};
56
+ line-height: ${mt.lineHeight};
57
+ text-transform: ${mt.textTransform};
58
58
  }
59
- `,Gt=i.css`
59
+ `,Lt=i.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${wt};
62
- font-size: ${kt};
63
- font-weight: ${St};
64
- letter-spacing: ${zt};
65
- line-height: ${Ot};
66
- text-transform: ${Ct};
61
+ font-family: ${$t};
62
+ font-size: ${wt};
63
+ font-weight: ${kt};
64
+ letter-spacing: ${St};
65
+ line-height: ${zt};
66
+ text-transform: ${Ot};
67
67
  }
68
- `,Vt=i.css`
68
+ `,Gt=i.css`
69
69
  .ft-typography--caption {
70
- font-family: ${Et.fontFamily};
71
- font-size: ${Et.fontSize};
72
- font-weight: ${Et.fontWeight};
73
- letter-spacing: ${Et.letterSpacing};
74
- line-height: ${Et.lineHeight};
75
- text-transform: ${Et.textTransform};
70
+ font-family: ${Ct.fontFamily};
71
+ font-size: ${Ct.fontSize};
72
+ font-weight: ${Ct.fontWeight};
73
+ letter-spacing: ${Ct.letterSpacing};
74
+ line-height: ${Ct.lineHeight};
75
+ text-transform: ${Ct.textTransform};
76
76
  }
77
- `,qt=i.css`
77
+ `,Vt=i.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Bt};
80
- font-size: ${Dt};
81
- font-weight: ${It};
82
- letter-spacing: ${Ft};
83
- line-height: ${jt};
84
- text-transform: ${Nt};
79
+ font-family: ${Et};
80
+ font-size: ${Bt};
81
+ font-weight: ${Dt};
82
+ letter-spacing: ${It};
83
+ line-height: ${Ft};
84
+ text-transform: ${jt};
85
85
  }
86
- `,Xt=i.css`
86
+ `,qt=i.css`
87
87
  .ft-typography--overline {
88
- font-family: ${At};
89
- font-size: ${Tt};
90
- font-weight: ${Zt};
91
- letter-spacing: ${Rt};
92
- line-height: ${Mt};
93
- text-transform: ${_t};
88
+ font-family: ${Nt};
89
+ font-size: ${At};
90
+ font-weight: ${Tt};
91
+ letter-spacing: ${Zt};
92
+ line-height: ${Rt};
93
+ text-transform: ${Mt};
94
94
  }
95
- `,Yt=i.css`
95
+ `,Xt=i.css`
96
96
  .ft-typography--button {
97
- font-family: ${Ut.fontFamily};
98
- font-size: ${Ut.fontSize};
99
- font-weight: ${Ut.fontWeight};
100
- letter-spacing: ${Ut.letterSpacing};
101
- line-height: ${Ut.lineHeight};
102
- text-transform: ${Ut.textTransform};
103
- }
104
- `;class Jt extends e.FtLitElement{constructor(){super(...arguments),this.variant=L.body1}render(){return this.element?K`
97
+ font-family: ${_t.fontFamily};
98
+ font-size: ${_t.fontSize};
99
+ font-weight: ${_t.fontWeight};
100
+ letter-spacing: ${_t.letterSpacing};
101
+ line-height: ${_t.lineHeight};
102
+ text-transform: ${_t.textTransform};
103
+ }
104
+ `,Yt=i.css`
105
+ .ft-typography {
106
+ vertical-align: inherit;
107
+ }
108
+ `;var Jt=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class Qt extends e.FtLitElement{constructor(){super(...arguments),this.variant=L.body1}render(){return this.element?K`
105
109
  <${W(this.element)}
106
110
  class="ft-typography ft-typography--${this.variant}">
107
111
  <slot></slot>
108
112
  </${W(this.element)}>
109
113
  `:K`
110
114
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
- `}}Jt.styles=[Ht,Wt,Pt,Kt,Lt,Gt,Vt,qt,Xt,Yt,i.css`
112
- .ft-typography {
113
- vertical-align: inherit;
114
- }
115
- `],G([o.property()],Jt.prototype,"element",void 0),G([o.property()],Jt.prototype,"variant",void 0),e.customElement("ft-typography")(Jt);var Qt=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const te={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"),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")};class ee 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`
115
+ `}}Qt.styles=[Ut,Ht,Wt,Pt,Kt,Lt,Gt,Vt,qt,Xt,Yt],Jt([o.property()],Qt.prototype,"element",void 0),Jt([o.property()],Qt.prototype,"variant",void 0),e.customElement("ft-typography")(Qt);const te={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"),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")},ee=i.css`
116
+ .ft-input-label {
117
+ position: absolute;
118
+ inset: 0;
119
+ display: flex;
120
+ background-color: ${te.colorSurface};
121
+ border-radius: ${te.borderRadiusS} ${te.borderRadiusS} 0 0;
122
+ }
123
+
124
+ .ft-input-label--outlined {
125
+ border-radius: ${te.borderRadiusS};
126
+ }
127
+
128
+ .ft-input-label {
129
+ border-color: ${te.borderColor};
130
+ }
131
+
132
+ .ft-input-label.ft-input-label--in-error {
133
+ border-color: ${te.colorError}
134
+ }
135
+
136
+ .ft-input-label:before,
137
+ .ft-input-label:after {
138
+ content: "";
139
+ display: flex;
140
+ border-bottom-width: 1px;
141
+ border-bottom-style: solid;
142
+ border-color: inherit;
143
+ }
144
+
145
+ .ft-input-label:before {
146
+ width: ${te.horizontalSpacing};
147
+ flex-shrink: 0;
148
+ }
149
+
150
+ .ft-input-label:after {
151
+ flex-grow: 1;
152
+ flex-shrink: 1;
153
+ }
154
+
155
+ .ft-input-label--text {
156
+ display: flex;
157
+ flex-shrink: 1;
158
+ position: relative;
159
+ border-bottom-width: 1px;
160
+ border-bottom-style: solid;
161
+ border-color: inherit;
162
+ color: ${te.textColor};
163
+ transition: font-size 250ms, line-height 250ms, color 250ms;
164
+ ${e.setVariable(Ct.fontSize,te.fontSize)};
165
+ ${e.setVariable(Ct.lineHeight,te.fontSize)};
166
+ }
167
+
168
+ .ft-input-label--in-error .ft-input-label--text {
169
+ color: ${te.colorError}
170
+ }
171
+
172
+ .ft-input-label--disabled .ft-input-label--text {
173
+ color: ${te.disabledTextColor};
174
+ }
175
+
176
+ .ft-input-label--hidden-text {
177
+ padding: 0 4px;
178
+ opacity: 0;
179
+ }
180
+
181
+ .ft-input-label--floating-text {
182
+ position: absolute;
183
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
184
+ transition: top 250ms;
185
+ overflow: hidden;
186
+ white-space: nowrap;
187
+ text-overflow: ellipsis;
188
+ padding: ${te.verticalSpacing} 4px;
189
+ margin: calc(${te.verticalSpacing} * -1) 0;
190
+ }
191
+
192
+ .ft-input-label--raised .ft-input-label--text {
193
+ ${e.setVariable(Ct.fontSize,te.raisedFontSize)};
194
+ ${e.setVariable(Ct.lineHeight,te.raisedFontSize)};
195
+ }
196
+
197
+ .ft-input-label--raised .ft-input-label--floating-text {
198
+ top: ${te.verticalSpacing};
199
+ }
200
+
201
+ .ft-input-label--outlined .ft-input-label--text,
202
+ .ft-input-label--outlined:before,
203
+ .ft-input-label--outlined:after {
204
+ border-top-width: 1px;
205
+ border-top-style: solid;
206
+ }
207
+
208
+ .ft-input-label--outlined:before {
209
+ border-left-width: 1px;
210
+ border-left-style: solid;
211
+ border-radius: ${te.borderRadiusS} 0 0 ${te.borderRadiusS};
212
+ }
213
+
214
+ .ft-input-label--outlined:after {
215
+ border-right-width: 1px;
216
+ border-right-style: solid;
217
+ border-radius: 0 ${te.borderRadiusS} ${te.borderRadiusS} 0;
218
+ }
219
+
220
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
221
+ padding: 2px 4px;
222
+ z-index: ${te.raisedZIndex};
223
+ background-color: ${te.colorSurface};
224
+ border-radius: ${te.borderRadiusS};
225
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
226
+ }
227
+
228
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
229
+ border-top: none;
230
+ }
231
+ `;var ie=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class oe 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`
116
232
  <div class="${s.classMap(t)}">
117
233
  ${this.text?i.html`
118
234
  <div class="ft-input-label--text ft-typography--caption">
@@ -121,123 +237,96 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
121
237
  </div>
122
238
  `:null}
123
239
  </div>
124
- `}}ee.elementDefinitions={},ee.styles=[Vt,i.css`
125
- .ft-input-label {
126
- position: absolute;
127
- inset: 0;
128
- display: flex;
129
- background-color: ${te.colorSurface};
130
- border-radius: ${te.borderRadiusS} ${te.borderRadiusS} 0 0;
131
- }
132
-
133
- .ft-input-label--outlined {
134
- border-radius: ${te.borderRadiusS};
135
- }
136
-
137
- .ft-input-label {
138
- border-color: ${te.borderColor};
139
- }
140
-
141
- .ft-input-label.ft-input-label--in-error {
142
- border-color: ${te.colorError}
143
- }
144
-
145
- .ft-input-label:before,
146
- .ft-input-label:after {
147
- content: "";
148
- display: flex;
149
- border-bottom-width: 1px;
150
- border-bottom-style: solid;
151
- border-color: inherit;
152
- }
153
-
154
- .ft-input-label:before {
155
- width: ${te.horizontalSpacing};
156
- flex-shrink: 0;
157
- }
158
-
159
- .ft-input-label:after {
160
- flex-grow: 1;
161
- flex-shrink: 1;
162
- }
163
-
164
- .ft-input-label--text {
165
- display: flex;
166
- flex-shrink: 1;
167
- position: relative;
168
- border-bottom-width: 1px;
169
- border-bottom-style: solid;
170
- border-color: inherit;
171
- color: ${te.textColor};
172
- transition: font-size 250ms, line-height 250ms, color 250ms;
173
- ${e.setVariable(Et.fontSize,te.fontSize)};
174
- ${e.setVariable(Et.lineHeight,te.fontSize)};
175
- }
176
-
177
- .ft-input-label--in-error .ft-input-label--text {
178
- color: ${te.colorError}
179
- }
180
-
181
- .ft-input-label--disabled .ft-input-label--text {
182
- color: ${te.disabledTextColor};
183
- }
184
-
185
- .ft-input-label--hidden-text {
186
- padding: 0 4px;
187
- opacity: 0;
188
- }
189
-
190
- .ft-input-label--floating-text {
191
- position: absolute;
192
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
193
- transition: top 250ms;
194
- overflow: hidden;
195
- white-space: nowrap;
196
- text-overflow: ellipsis;
197
- padding: ${te.verticalSpacing} 4px;
198
- margin: calc(${te.verticalSpacing} * -1) 0;
199
- }
200
-
201
- .ft-input-label--raised .ft-input-label--text {
202
- ${e.setVariable(Et.fontSize,te.raisedFontSize)};
203
- ${e.setVariable(Et.lineHeight,te.raisedFontSize)};
204
- }
205
-
206
- .ft-input-label--raised .ft-input-label--floating-text {
207
- top: ${te.verticalSpacing};
208
- }
209
-
210
- .ft-input-label--outlined .ft-input-label--text,
211
- .ft-input-label--outlined:before,
212
- .ft-input-label--outlined:after {
213
- border-top-width: 1px;
214
- border-top-style: solid;
215
- }
216
-
217
- .ft-input-label--outlined:before {
218
- border-left-width: 1px;
219
- border-left-style: solid;
220
- border-radius: ${te.borderRadiusS} 0 0 ${te.borderRadiusS};
221
- }
222
-
223
- .ft-input-label--outlined:after {
224
- border-right-width: 1px;
225
- border-right-style: solid;
226
- border-radius: 0 ${te.borderRadiusS} ${te.borderRadiusS} 0;
227
- }
228
-
229
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
230
- padding: 2px 4px;
231
- z-index: ${te.raisedZIndex};
232
- background-color: ${te.colorSurface};
233
- border-radius: ${te.borderRadiusS};
234
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
235
- }
236
-
237
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
238
- border-top: none;
239
- }
240
- `],Qt([o.property({type:String})],ee.prototype,"text",void 0),Qt([o.property({type:Boolean})],ee.prototype,"raised",void 0),Qt([o.property({type:Boolean})],ee.prototype,"outlined",void 0),Qt([o.property({type:Boolean})],ee.prototype,"disabled",void 0),Qt([o.property({type:Boolean})],ee.prototype,"error",void 0),e.customElement("ft-input-label")(ee);var ie=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const oe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ne={color:oe,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",oe),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")},le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),se=le,re=e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),ae=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),pe=ae,fe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ae);class de 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.moveRipple=t=>{var e,i;let{x:o,y:n}=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!=n?n-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`
240
+ `}}oe.elementDefinitions={},oe.styles=[Gt,ee],ie([o.property({type:String})],oe.prototype,"text",void 0),ie([o.property({type:Boolean})],oe.prototype,"raised",void 0),ie([o.property({type:Boolean})],oe.prototype,"outlined",void 0),ie([o.property({type:Boolean})],oe.prototype,"disabled",void 0),ie([o.property({type:Boolean})],oe.prototype,"error",void 0),e.customElement("ft-input-label")(oe);const ne=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),le={color:ne,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",ne),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},se=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),re=se,ae=e.FtCssVariableFactory.extend("--ft-ripple-background-color",se),pe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),fe=pe,de=e.FtCssVariableFactory.extend("--ft-ripple-background-color",pe),he=i.css`
241
+ :host {
242
+ display: contents;
243
+ }
244
+
245
+ .ft-ripple {
246
+ position: absolute;
247
+ inset: 0;
248
+ pointer-events: none;
249
+ }
250
+
251
+ .ft-ripple:not(.ft-ripple--unbounded) {
252
+ overflow: hidden;
253
+ }
254
+
255
+ .ft-ripple .ft-ripple--background,
256
+ .ft-ripple .ft-ripple--effect {
257
+ position: absolute;
258
+ opacity: 0;
259
+ }
260
+
261
+ .ft-ripple .ft-ripple--background {
262
+ background-color: ${le.backgroundColor};
263
+ }
264
+
265
+ .ft-ripple .ft-ripple--effect {
266
+ background-color: ${le.color};
267
+ }
268
+
269
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
270
+ background-color: ${de};
271
+ }
272
+
273
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
274
+ background-color: ${fe};
275
+ }
276
+
277
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
278
+ background-color: ${ae};
279
+ }
280
+
281
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
282
+ background-color: ${re};
283
+ }
284
+
285
+ .ft-ripple .ft-ripple--background {
286
+ top: 0;
287
+ left: 0;
288
+ height: 100%;
289
+ width: 100%;
290
+ transition: opacity 75ms linear;
291
+ }
292
+
293
+ .ft-ripple .ft-ripple--effect,
294
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
295
+ border-radius: 50%;
296
+ }
297
+
298
+ .ft-ripple .ft-ripple--effect {
299
+ transform: translate(-50%, -50%) scale(0.15);
300
+ transition: transform 300ms ease, opacity 75ms linear;
301
+ }
302
+
303
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
304
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
305
+ left: 50%;
306
+ top: 50%;
307
+ }
308
+
309
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
310
+ transform: translate(-50%, -50%);
311
+ }
312
+
313
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
314
+ opacity: ${le.opacityContentOnSurfaceHover};
315
+ }
316
+
317
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
318
+ opacity: ${le.opacityContentOnSurfaceSelected};
319
+ }
320
+
321
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
322
+ opacity: ${le.opacityContentOnSurfaceFocused};
323
+ }
324
+
325
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
326
+ opacity: ${le.opacityContentOnSurfacePressed};
327
+ transform: translate(-50%, -50%) scale(1);
328
+ }
329
+ `;var ce,ue,xe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};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.moveRipple=t=>{var e,i;let{x:o,y:n}=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!=n?n-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`
241
330
  <style>
242
331
  .ft-ripple .ft-ripple--effect,
243
332
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -254,138 +343,196 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
254
343
  <div class="ft-ripple--background"></div>
255
344
  <div class="ft-ripple--effect"></div>
256
345
  </div>
257
- `}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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(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"),n=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",n),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",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}var he,ce;de.elementDefinitions={},de.styles=i.css`
258
- :host {
259
- display: contents;
260
- }
346
+ `}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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(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"),n=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",n),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",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}be.elementDefinitions={},be.styles=he,xe([o.property({type:Boolean})],be.prototype,"primary",void 0),xe([o.property({type:Boolean})],be.prototype,"secondary",void 0),xe([o.property({type:Boolean})],be.prototype,"unbounded",void 0),xe([o.property({type:Boolean})],be.prototype,"activated",void 0),xe([o.property({type:Boolean})],be.prototype,"selected",void 0),xe([o.property({type:Boolean})],be.prototype,"disabled",void 0),xe([o.state()],be.prototype,"hovered",void 0),xe([o.state()],be.prototype,"focused",void 0),xe([o.state()],be.prototype,"pressed",void 0),xe([o.state()],be.prototype,"rippling",void 0),xe([o.state()],be.prototype,"rippleSize",void 0),xe([o.state()],be.prototype,"originX",void 0),xe([o.state()],be.prototype,"originY",void 0),xe([o.query(".ft-ripple")],be.prototype,"ripple",void 0),xe([o.query(".ft-ripple--effect")],be.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(be),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ce||(ce={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ue||(ue={})),new Map([...["abw"].map((t=>[t,ue.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,ue.AUDIO])),...["avi"].map((t=>[t,ue.AVI])),...["chm","xhs"].map((t=>[t,ue.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,ue.CODE])),...["csv"].map((t=>[t,ue.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ue.DITA])),...["epub"].map((t=>[t,ue.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ue.EXCEL])),...["flac"].map((t=>[t,ue.FLAC])),...["gif"].map((t=>[t,ue.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ue.GZIP])),...["html","htm","xhtml"].map((t=>[t,ue.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,ue.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ue.JPEG])),...["json"].map((t=>[t,ue.JSON])),...["m4a","m4p"].map((t=>[t,ue.M4A])),...["mov","qt"].map((t=>[t,ue.MOV])),...["mp3"].map((t=>[t,ue.MP3])),...["mp4","m4v"].map((t=>[t,ue.MP4])),...["ogg","oga"].map((t=>[t,ue.OGG])),...["pdf","ps"].map((t=>[t,ue.PDF])),...["png"].map((t=>[t,ue.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ue.POWERPOINT])),...["rar"].map((t=>[t,ue.RAR])),...["stp"].map((t=>[t,ue.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ue.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,ue.VIDEO])),...["wav"].map((t=>[t,ue.WAV])),...["wma"].map((t=>[t,ue.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ue.WORD])),...["xml","xsl","rdf"].map((t=>[t,ue.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ue.YAML])),...["zip"].map((t=>[t,ue.ZIP]))]);const ve={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")},ge=i.css`
347
+ :host {
348
+ display: inline-block;
349
+ }
261
350
 
262
- .ft-ripple {
263
- position: absolute;
264
- inset: 0;
265
- pointer-events: none;
266
- }
351
+ :host, i.ft-icon {
352
+ width: ${ve.size};
353
+ height: ${ve.size};
354
+ text-align: center;
355
+ }
267
356
 
268
- .ft-ripple:not(.ft-ripple--unbounded) {
269
- overflow: hidden;
270
- }
357
+ i.ft-icon {
358
+ font-size: ${ve.size};
359
+ line-height: 1;
360
+ font-weight: normal;
361
+ text-transform: none;
362
+ font-style: normal;
363
+ font-variant: normal;
364
+ speak: none;
365
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
366
+ text-rendering: auto;
367
+ -webkit-font-smoothing: antialiased;
368
+ -moz-osx-font-smoothing: grayscale;
369
+ vertical-align: ${ve.verticalAlign};
370
+ }
271
371
 
272
- .ft-ripple .ft-ripple--background,
273
- .ft-ripple .ft-ripple--effect {
274
- position: absolute;
275
- opacity: 0;
276
- }
372
+ .ft-icon--fluid-topics {
373
+ font-family: ${ve.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
374
+ }
277
375
 
278
- .ft-ripple .ft-ripple--background {
279
- background-color: ${ne.backgroundColor};
280
- }
376
+ .ft-icon--file-format {
377
+ font-family: ${ve.fileFormatFontFamily}, ft-mime, sans-serif;
378
+ }
281
379
 
282
- .ft-ripple .ft-ripple--effect {
283
- background-color: ${ne.color};
284
- }
380
+ .ft-icon--material {
381
+ font-family: ${ve.materialFontFamily}, "Material Icons", sans-serif;
382
+ }
383
+ `;var ye;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ye||(ye={}));var me=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class $e extends e.FtLitElement{constructor(){super(...arguments),this.variant=ye.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
384
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
385
+ ${l.unsafeHTML(this.resolvedIcon)}
386
+ <slot ?hidden=${t}></slot>
387
+ </i>
388
+ `}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 ye.file_format:this.resolvedIcon=null!==(t=ue[o.toUpperCase()])&&void 0!==t?t:o;break;case ye.fluid_topics:this.resolvedIcon=null!==(e=ce[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}$e.elementDefinitions={},$e.styles=ge,me([o.property()],$e.prototype,"variant",void 0),me([o.property()],$e.prototype,"value",void 0),me([o.state()],$e.prototype,"resolvedIcon",void 0),me([o.query("slot")],$e.prototype,"slottedContent",void 0),e.customElement("ft-icon")($e);const we={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"),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")},ke=i.css`
389
+ *:focus {
390
+ outline: none;
391
+ }
285
392
 
286
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
287
- background-color: ${fe};
288
- }
393
+ .ft-select {
394
+ display: flex;
395
+ flex-direction: column;
396
+ align-items: stretch;
397
+ }
289
398
 
290
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
291
- background-color: ${pe};
292
- }
399
+ .ft-select--main-panel {
400
+ position: relative;
401
+ display: flex;
402
+ height: calc(4 * ${we.verticalSpacing} + ${we.labelSize} + ${we.selectedOptionSize});
403
+ }
293
404
 
294
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
295
- background-color: ${re};
296
- }
405
+ .ft-select--input-panel {
406
+ flex-grow: 1;
407
+ position: relative;
408
+ display: flex;
409
+ align-items: center;
410
+ overflow: hidden;
411
+ padding-left: 16px;
412
+ padding-right: 8px;
413
+ gap: 8px;
414
+ color: ${we.selectedOptionColor};
415
+ ${e.setVariable(le.color,we.selectedOptionColor)};
416
+ }
297
417
 
298
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
299
- background-color: ${se};
300
- }
418
+ .ft-select--input-panel,
419
+ .ft-select--option {
420
+ ${e.setVariable(le.opacityContentOnSurfaceHover,"0.08")};
421
+ ${e.setVariable(le.opacityContentOnSurfacePressed,"0.04")};
422
+ }
301
423
 
302
- .ft-ripple .ft-ripple--background {
303
- top: 0;
304
- left: 0;
305
- height: 100%;
306
- width: 100%;
307
- transition: opacity 75ms linear;
308
- }
424
+ .ft-select--input-panel > *:not(ft-ripple),
425
+ .ft-select--option > *:not(ft-ripple) {
426
+ position: relative;
427
+ }
309
428
 
310
- .ft-ripple .ft-ripple--effect,
311
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
312
- border-radius: 50%;
313
- }
429
+ .ft-select--disabled .ft-select--input-panel,
430
+ .ft-select--disabled .ft-select--option {
431
+ color: ${we.colorOnSurfaceDisabled};
432
+ }
314
433
 
315
- .ft-ripple .ft-ripple--effect {
316
- transform: translate(-50%, -50%) scale(0.15);
317
- transition: transform 300ms ease, opacity 75ms linear;
318
- }
434
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
435
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
436
+ cursor: pointer;
437
+ }
319
438
 
320
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
321
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
322
- left: 50%;
323
- top: 50%;
324
- }
439
+ ft-input-label {
440
+ ${e.setVariable(te.fontSize,we.selectedOptionSize)};
441
+ ${e.setVariable(te.raisedFontSize,we.labelSize)};
442
+ ${e.setVariable(te.verticalSpacing,we.verticalSpacing)};
443
+ }
325
444
 
326
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
327
- transform: translate(-50%, -50%);
328
- }
445
+ .ft-select:not(.ft-select--disabled):focus-within ft-icon {
446
+ color: ${we.colorPrimary};
447
+ }
329
448
 
330
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
331
- opacity: ${ne.opacityContentOnSurfaceHover};
332
- }
449
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
450
+ ${e.setVariable(te.borderColor,we.colorPrimary)};
451
+ ${e.setVariable(te.textColor,we.colorPrimary)};
452
+ }
333
453
 
334
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
335
- opacity: ${ne.opacityContentOnSurfaceSelected};
336
- }
454
+ .ft-select--selected-option {
455
+ display: block;
456
+ flex-grow: 1;
457
+ flex-shrink: 1;
458
+ overflow: hidden;
459
+ white-space: nowrap;
460
+ text-overflow: ellipsis;
461
+ ${e.setVariable(mt.fontSize,we.selectedOptionSize)};
462
+ ${e.setVariable(mt.lineHeight,we.selectedOptionSize)};
463
+ }
337
464
 
338
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
339
- opacity: ${ne.opacityContentOnSurfaceFocused};
340
- }
465
+ .ft-select--in-error .ft-select--selected-option {
466
+ color: ${we.colorError};
467
+ }
341
468
 
342
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
343
- opacity: ${ne.opacityContentOnSurfacePressed};
344
- transform: translate(-50%, -50%) scale(1);
345
- }
346
- `,ie([o.property({type:Boolean})],de.prototype,"primary",void 0),ie([o.property({type:Boolean})],de.prototype,"secondary",void 0),ie([o.property({type:Boolean})],de.prototype,"unbounded",void 0),ie([o.property({type:Boolean})],de.prototype,"activated",void 0),ie([o.property({type:Boolean})],de.prototype,"selected",void 0),ie([o.property({type:Boolean})],de.prototype,"disabled",void 0),ie([o.state()],de.prototype,"hovered",void 0),ie([o.state()],de.prototype,"focused",void 0),ie([o.state()],de.prototype,"pressed",void 0),ie([o.state()],de.prototype,"rippling",void 0),ie([o.state()],de.prototype,"rippleSize",void 0),ie([o.state()],de.prototype,"originX",void 0),ie([o.state()],de.prototype,"originY",void 0),ie([o.query(".ft-ripple")],de.prototype,"ripple",void 0),ie([o.query(".ft-ripple--effect")],de.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(de),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(he||(he={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ce||(ce={})),new Map([...["abw"].map((t=>[t,ce.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,ce.AUDIO])),...["avi"].map((t=>[t,ce.AVI])),...["chm","xhs"].map((t=>[t,ce.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,ce.CODE])),...["csv"].map((t=>[t,ce.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ce.DITA])),...["epub"].map((t=>[t,ce.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ce.EXCEL])),...["flac"].map((t=>[t,ce.FLAC])),...["gif"].map((t=>[t,ce.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ce.GZIP])),...["html","htm","xhtml"].map((t=>[t,ce.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,ce.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ce.JPEG])),...["json"].map((t=>[t,ce.JSON])),...["m4a","m4p"].map((t=>[t,ce.M4A])),...["mov","qt"].map((t=>[t,ce.MOV])),...["mp3"].map((t=>[t,ce.MP3])),...["mp4","m4v"].map((t=>[t,ce.MP4])),...["ogg","oga"].map((t=>[t,ce.OGG])),...["pdf","ps"].map((t=>[t,ce.PDF])),...["png"].map((t=>[t,ce.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ce.POWERPOINT])),...["rar"].map((t=>[t,ce.RAR])),...["stp"].map((t=>[t,ce.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ce.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,ce.VIDEO])),...["wav"].map((t=>[t,ce.WAV])),...["wma"].map((t=>[t,ce.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ce.WORD])),...["xml","xsl","rdf"].map((t=>[t,ce.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ce.YAML])),...["zip"].map((t=>[t,ce.ZIP]))]);var ue,xe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ue||(ue={}));const be={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")};class ve extends e.FtLitElement{constructor(){super(...arguments),this.variant=ue.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
347
- <i class="ft-icon ${"ft-icon--"+this.variant}">
348
- ${l.unsafeHTML(this.resolvedIcon)}
349
- <slot ?hidden=${t}></slot>
350
- </i>
351
- `}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 ue.file_format:this.resolvedIcon=null!==(t=ce[o.toUpperCase()])&&void 0!==t?t:o;break;case ue.fluid_topics:this.resolvedIcon=null!==(e=he[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ve.elementDefinitions={},ve.styles=i.css`
352
- :host {
353
- display: inline-block;
354
- }
469
+ ft-icon {
470
+ flex-shrink: 0;
471
+ }
355
472
 
356
- :host, i.ft-icon {
357
- width: ${be.size};
358
- height: ${be.size};
359
- text-align: center;
360
- }
473
+ slot {
474
+ display: none;
475
+ }
361
476
 
362
- i.ft-icon {
363
- font-size: ${be.size};
364
- line-height: 1;
365
- font-weight: normal;
366
- text-transform: none;
367
- font-style: normal;
368
- font-variant: normal;
369
- speak: none;
370
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
371
- text-rendering: auto;
372
- -webkit-font-smoothing: antialiased;
373
- -moz-osx-font-smoothing: grayscale;
374
- vertical-align: ${be.verticalAlign};
375
- }
477
+ .ft-select--filled .ft-select--input-panel {
478
+ border-radius: ${we.borderRadiusS} ${we.borderRadiusS} 0 0;
479
+ }
376
480
 
377
- .ft-icon--fluid-topics {
378
- font-family: ${be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
379
- }
481
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
482
+ align-self: stretch;
483
+ padding-top: calc(${we.labelSize} + 2 * ${we.verticalSpacing});
484
+ }
380
485
 
381
- .ft-icon--file-format {
382
- font-family: ${be.fileFormatFontFamily}, ft-mime, sans-serif;
383
- }
486
+ .ft-select--outlined .ft-select--input-panel {
487
+ border-radius: ${we.borderRadiusS};
488
+ }
384
489
 
385
- .ft-icon--material {
386
- font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
387
- }
388
- `,xe([o.property()],ve.prototype,"variant",void 0),xe([o.property()],ve.prototype,"value",void 0),xe([o.state()],ve.prototype,"resolvedIcon",void 0),xe([o.query("slot")],ve.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ve);var ge=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class ye 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}))}}ye.elementDefinitions={},ge([o.property({type:String})],ye.prototype,"label",void 0),ge([o.property({type:Object,converter:t=>t})],ye.prototype,"value",void 0),ge([o.property({type:Boolean,reflect:!0})],ye.prototype,"selected",void 0);const me={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"),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")};class $e 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`
490
+ .ft-select--options {
491
+ display: none;
492
+ position: absolute;
493
+ top: 100%;
494
+ left: 0;
495
+ right: 0;
496
+ color: ${we.optionsColor};
497
+ background: ${we.colorSurface};
498
+ z-index: ${we.optionsZIndex};
499
+ box-shadow: ${we.elevation02};
500
+ }
501
+
502
+ .ft-select--fixed .ft-select--options {
503
+ position: fixed;
504
+ right: unset;
505
+ /* left and top are set dynamically */
506
+ }
507
+
508
+ .ft-select--options-displayed .ft-select--options {
509
+ display: block;
510
+ max-height: ${we.optionsHeight};
511
+ overflow-y: auto;
512
+ }
513
+
514
+ .ft-select--option {
515
+ position: relative;
516
+ padding: 4px 16px;
517
+ min-height: 32px;
518
+ display: flex;
519
+ align-items: center;
520
+ }
521
+
522
+ .ft-select--option span {
523
+ text-overflow: ellipsis;
524
+ overflow: hidden;
525
+ }
526
+
527
+ .ft-select--helper-text {
528
+ padding: 0 12px 0 16px;
529
+ color: ${we.helperColor};
530
+ }
531
+
532
+ .ft-select--in-error .ft-select--helper-text {
533
+ color: ${we.colorError};
534
+ }
535
+ `;var Se=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class ze 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}))}}ze.elementDefinitions={},Se([o.property({type:String})],ze.prototype,"label",void 0),Se([o.property({type:Object,converter:t=>t})],ze.prototype,"value",void 0),Se([o.property({type:Boolean,reflect:!0})],ze.prototype,"selected",void 0);class Oe 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`
389
536
  <div class="${s.classMap(d)}" part="container">
390
537
  <div class="ft-select--main-panel" part="main-panel">
391
538
  <ft-input-label text="${this.label}"
@@ -433,154 +580,130 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
433
580
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
434
581
  <span>${t.label}</span>
435
582
  </div>
436
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),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,n,l;let s;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(),s=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(),s=null!==(l=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==l?l:this.firstOption}null==s||s.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){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}$e.elementDefinitions={"ft-input-label":ee,"ft-typography":Jt,"ft-ripple":de,"ft-icon":ve},$e.styles=[Gt,Vt,i.css`
437
- *:focus {
438
- outline: none;
439
- }
440
-
441
- .ft-select {
442
- display: flex;
443
- flex-direction: column;
444
- align-items: stretch;
445
- }
446
-
447
- .ft-select--main-panel {
448
- position: relative;
449
- display: flex;
450
- height: calc(4 * ${me.verticalSpacing} + ${me.labelSize} + ${me.selectedOptionSize});
451
- }
452
-
453
- .ft-select--input-panel {
454
- flex-grow: 1;
455
- position: relative;
456
- display: flex;
457
- align-items: center;
458
- overflow: hidden;
459
- padding-left: 16px;
460
- padding-right: 8px;
461
- gap: 8px;
462
- color: ${me.selectedOptionColor};
463
- ${e.setVariable(ne.color,me.selectedOptionColor)};
464
- }
465
-
466
- .ft-select--input-panel,
467
- .ft-select--option {
468
- ${e.setVariable(ne.opacityContentOnSurfaceHover,"0.08")};
469
- ${e.setVariable(ne.opacityContentOnSurfacePressed,"0.04")};
470
- }
471
-
472
- .ft-select--input-panel > *:not(ft-ripple),
473
- .ft-select--option > *:not(ft-ripple) {
474
- position: relative;
475
- }
476
-
477
- .ft-select--disabled .ft-select--input-panel,
478
- .ft-select--disabled .ft-select--option {
479
- color: ${me.colorOnSurfaceDisabled};
480
- }
481
-
482
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
483
- .ft-select:not(.ft-select--disabled) .ft-select--option {
484
- cursor: pointer;
485
- }
486
-
487
- ft-input-label {
488
- ${e.setVariable(te.fontSize,me.selectedOptionSize)};
489
- ${e.setVariable(te.raisedFontSize,me.labelSize)};
490
- ${e.setVariable(te.verticalSpacing,me.verticalSpacing)};
491
- }
492
-
493
- .ft-select:not(.ft-select--disabled):focus-within ft-icon {
494
- color: ${me.colorPrimary};
495
- }
496
-
497
- .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
498
- ${e.setVariable(te.borderColor,me.colorPrimary)};
499
- ${e.setVariable(te.textColor,me.colorPrimary)};
500
- }
501
-
502
- .ft-select--selected-option {
503
- display: block;
504
- flex-grow: 1;
505
- flex-shrink: 1;
506
- overflow: hidden;
507
- white-space: nowrap;
508
- text-overflow: ellipsis;
509
- ${e.setVariable($t.fontSize,me.selectedOptionSize)};
510
- ${e.setVariable($t.lineHeight,me.selectedOptionSize)};
511
- }
512
-
513
- .ft-select--in-error .ft-select--selected-option {
514
- color: ${me.colorError};
515
- }
516
-
517
- ft-icon {
518
- flex-shrink: 0;
519
- }
520
-
521
- slot {
522
- display: none;
523
- }
524
-
525
- .ft-select--filled .ft-select--input-panel {
526
- border-radius: ${me.borderRadiusS} ${me.borderRadiusS} 0 0;
527
- }
528
-
529
- .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
530
- align-self: stretch;
531
- padding-top: calc(${me.labelSize} + 2 * ${me.verticalSpacing});
532
- }
533
-
534
- .ft-select--outlined .ft-select--input-panel {
535
- border-radius: ${me.borderRadiusS};
536
- }
537
-
538
- .ft-select--options {
539
- display: none;
540
- position: absolute;
541
- top: 100%;
542
- left: 0;
543
- right: 0;
544
- color: ${me.optionsColor};
545
- background: ${me.colorSurface};
546
- z-index: ${me.optionsZIndex};
547
- box-shadow: ${me.elevation02};
548
- }
549
-
550
- .ft-select--fixed .ft-select--options {
551
- position: fixed;
552
- right: unset;
553
- /* left and top are set dynamically */
554
- }
555
-
556
- .ft-select--options-displayed .ft-select--options {
557
- display: block;
558
- max-height: ${me.optionsHeight};
559
- overflow-y: auto;
560
- }
561
-
562
- .ft-select--option {
563
- position: relative;
564
- padding: 4px 16px;
565
- min-height: 32px;
566
- display: flex;
567
- align-items: center;
568
- }
569
-
570
- .ft-select--option span {
571
- text-overflow: ellipsis;
572
- overflow: hidden;
573
- }
574
-
575
- .ft-select--helper-text {
576
- padding: 0 12px 0 16px;
577
- color: ${me.helperColor};
578
- }
579
-
580
- .ft-select--in-error .ft-select--helper-text {
581
- color: ${me.colorError};
582
- }
583
- `],ge([o.property({type:String})],$e.prototype,"label",void 0),ge([o.property({type:String})],$e.prototype,"helper",void 0),ge([o.property({type:Boolean})],$e.prototype,"outlined",void 0),ge([o.property({type:Boolean})],$e.prototype,"disabled",void 0),ge([o.property({type:Boolean})],$e.prototype,"error",void 0),ge([o.property({type:Boolean})],$e.prototype,"fixedMenuPosition",void 0),ge([o.property({type:Array})],$e.prototype,"options",void 0),ge([o.state()],$e.prototype,"selectedOption",void 0),ge([o.state()],$e.prototype,"optionsDisplayed",void 0),ge([o.state()],$e.prototype,"focusOptions",void 0),ge([o.query(".ft-select")],$e.prototype,"container",void 0),ge([o.query(".ft-select--options")],$e.prototype,"optionsMenu",void 0),ge([o.query(".ft-select--input-panel")],$e.prototype,"mainPanel",void 0),ge([o.query(".ft-select--option:first-child")],$e.prototype,"firstOption",void 0),ge([o.query(".ft-select--option:focus")],$e.prototype,"focusedOption",void 0),ge([o.query(".ft-select--option.ft-select--option-selected")],$e.prototype,"selectedOptionElement",void 0),ge([o.query(".ft-select--option:last-child")],$e.prototype,"lastOption",void 0),ge([o.query("slot")],$e.prototype,"optionsSlot",void 0),e.customElement("ft-select")($e),e.customElement("ft-select-option")(ye);var we=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const ke={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)};class Se extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
583
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),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,n,l;let s;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(),s=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(),s=null!==(l=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==l?l:this.firstOption}null==s||s.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){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Oe.elementDefinitions={"ft-input-label":oe,"ft-typography":Qt,"ft-ripple":be,"ft-icon":$e},Oe.styles=[Lt,Gt,ke],Se([o.property({type:String})],Oe.prototype,"label",void 0),Se([o.property({type:String})],Oe.prototype,"helper",void 0),Se([o.property({type:Boolean})],Oe.prototype,"outlined",void 0),Se([o.property({type:Boolean})],Oe.prototype,"disabled",void 0),Se([o.property({type:Boolean})],Oe.prototype,"error",void 0),Se([o.property({type:Boolean})],Oe.prototype,"fixedMenuPosition",void 0),Se([o.property({type:Array})],Oe.prototype,"options",void 0),Se([o.state()],Oe.prototype,"selectedOption",void 0),Se([o.state()],Oe.prototype,"optionsDisplayed",void 0),Se([o.state()],Oe.prototype,"focusOptions",void 0),Se([o.query(".ft-select")],Oe.prototype,"container",void 0),Se([o.query(".ft-select--options")],Oe.prototype,"optionsMenu",void 0),Se([o.query(".ft-select--input-panel")],Oe.prototype,"mainPanel",void 0),Se([o.query(".ft-select--option:first-child")],Oe.prototype,"firstOption",void 0),Se([o.query(".ft-select--option:focus")],Oe.prototype,"focusedOption",void 0),Se([o.query(".ft-select--option.ft-select--option-selected")],Oe.prototype,"selectedOptionElement",void 0),Se([o.query(".ft-select--option:last-child")],Oe.prototype,"lastOption",void 0),Se([o.query("slot")],Oe.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Oe),e.customElement("ft-select-option")(ze);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)},Ee=i.css`
584
+ *:focus {
585
+ outline: none;
586
+ }
587
+
588
+ .ft-text-field {
589
+ display: flex;
590
+ flex-direction: column;
591
+ align-items: stretch;
592
+ }
593
+
594
+ ft-input-label {
595
+ ${e.setVariable(te.fontSize,Ce.fontSize)};
596
+ ${e.setVariable(te.raisedFontSize,Ce.labelSize)};
597
+ ${e.setVariable(te.verticalSpacing,Ce.verticalSpacing)};
598
+ ${e.setVariable(te.horizontalSpacing,i.css`calc(${Ce.horizontalSpacing} - 4px)`)};
599
+ }
600
+
601
+ .ft-text-field--main-panel {
602
+ position: relative;
603
+ display: flex;
604
+ height: calc(4 * ${Ce.verticalSpacing} + ${Ce.labelSize} + ${Ce.fontSize});
605
+ }
606
+
607
+ .ft-text-field--input-panel {
608
+ flex-grow: 1;
609
+ position: relative;
610
+ display: flex;
611
+ align-items: center;
612
+ overflow: hidden;
613
+ }
614
+
615
+ .ft-text-field--input-panel ft-ripple {
616
+ ${e.setVariable(le.opacityContentOnSurfaceHover,"0.08")};
617
+ ${e.setVariable(le.opacityContentOnSurfacePressed,"0.04")};
618
+ }
619
+
620
+ .ft-text-field--input-wrapper {
621
+ flex-grow: 1;
622
+ flex-shrink: 1;
623
+
624
+ display: flex;
625
+ align-items: center;
626
+
627
+ ${e.setVariable(mt.fontSize,Ce.fontSize)};
628
+ ${e.setVariable(mt.lineHeight,Ce.fontSize)};
629
+
630
+ padding: 0 ${Ce.horizontalSpacing};
631
+ }
632
+
633
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
634
+ align-items: flex-end;
635
+ padding: 0 ${Ce.horizontalSpacing} ${Ce.verticalSpacing} ${Ce.horizontalSpacing};
636
+ }
637
+
638
+ .ft-text-field--prefix {
639
+ display: none;
640
+ color: ${Ce.prefixColor}
641
+ }
642
+
643
+ .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
644
+ display: block;
645
+ }
646
+
647
+ .ft-text-field--input {
648
+ display: block;
649
+ position: relative;
650
+ flex-grow: 1;
651
+ flex-shrink: 1;
652
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
653
+
654
+ color: ${Ce.colorOnSurface};
655
+ padding: calc(2 * ${Ce.verticalSpacing}) 0;
656
+ border: none;
657
+ background: none;
658
+ }
659
+
660
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
661
+ padding-bottom: 0;
662
+ padding-top: calc(${Ce.labelSize} + 2 * ${Ce.verticalSpacing});
663
+ }
664
+
665
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
666
+ .ft-text-field--input::-webkit-list-button {
667
+ display: none !important;
668
+ }
669
+
670
+ .ft-text-field--disabled .ft-text-field--input {
671
+ color: ${Ce.colorOnSurfaceDisabled};
672
+ }
673
+
674
+ .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
675
+ cursor: pointer;
676
+ }
677
+
678
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
679
+ ${e.setVariable(te.borderColor,Ce.colorPrimary)};
680
+ ${e.setVariable(te.textColor,Ce.colorPrimary)};
681
+ }
682
+
683
+ .ft-text-field--filled .ft-text-field--input-panel {
684
+ border-radius: ${Ce.borderRadiusS} ${Ce.borderRadiusS} 0 0;
685
+ }
686
+
687
+ .ft-text-field--outlined .ft-text-field--input-panel {
688
+ border-radius: ${Ce.borderRadiusS};
689
+ }
690
+
691
+ .ft-text-field--helper-text {
692
+ padding: 0 12px 0 ${Ce.horizontalSpacing};
693
+ color: ${Ce.helperColor};
694
+ }
695
+
696
+ .ft-text-field--in-error .ft-text-field--input,
697
+ .ft-text-field--in-error .ft-text-field--helper-text,
698
+ .ft-text-field--in-error .ft-text-field--prefix {
699
+ color: ${Ce.colorError};
700
+ }
701
+
702
+ .ft-text-field--icon {
703
+ padding-right: ${Ce.horizontalSpacing};
704
+ color: ${Ce.iconColor};
705
+ }
706
+ `;var Be=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class De extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
584
707
  <div class="${s.classMap(t)}">
585
708
  <div class="ft-text-field--main-panel">
586
709
  <ft-input-label text="${this.label}"
@@ -615,130 +738,39 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
615
738
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
616
739
  </ft-typography>`:void 0}
617
740
  </div>
618
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}Se.elementDefinitions={"ft-input-label":ee,"ft-ripple":de,"ft-typography":Jt,"ft-icon":ve},Se.styles=[Lt,i.css`
619
- *:focus {
620
- outline: none;
621
- }
622
-
623
- .ft-text-field {
624
- display: flex;
625
- flex-direction: column;
626
- align-items: stretch;
627
- }
628
-
629
- ft-input-label {
630
- ${e.setVariable(te.fontSize,ke.fontSize)};
631
- ${e.setVariable(te.raisedFontSize,ke.labelSize)};
632
- ${e.setVariable(te.verticalSpacing,ke.verticalSpacing)};
633
- ${e.setVariable(te.horizontalSpacing,i.css`calc(${ke.horizontalSpacing} - 4px)`)};
634
- }
635
-
636
- .ft-text-field--main-panel {
637
- position: relative;
638
- display: flex;
639
- height: calc(4 * ${ke.verticalSpacing} + ${ke.labelSize} + ${ke.fontSize});
640
- }
641
-
642
- .ft-text-field--input-panel {
643
- flex-grow: 1;
644
- position: relative;
645
- display: flex;
646
- align-items: center;
647
- overflow: hidden;
648
- }
649
-
650
- .ft-text-field--input-panel ft-ripple {
651
- ${e.setVariable(ne.opacityContentOnSurfaceHover,"0.08")};
652
- ${e.setVariable(ne.opacityContentOnSurfacePressed,"0.04")};
653
- }
654
-
655
- .ft-text-field--input-wrapper {
656
- flex-grow: 1;
657
- flex-shrink: 1;
658
-
659
- display: flex;
660
- align-items: center;
661
-
662
- ${e.setVariable($t.fontSize,ke.fontSize)};
663
- ${e.setVariable($t.lineHeight,ke.fontSize)};
664
-
665
- padding: 0 ${ke.horizontalSpacing};
666
- }
667
-
668
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
669
- align-items: flex-end;
670
- padding: 0 ${ke.horizontalSpacing} ${ke.verticalSpacing} ${ke.horizontalSpacing};
671
- }
672
-
673
- .ft-text-field--prefix {
674
- display: none;
675
- color: ${ke.prefixColor}
676
- }
677
-
678
- .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
679
- display: block;
680
- }
681
-
682
- .ft-text-field--input {
683
- display: block;
684
- position: relative;
685
- flex-grow: 1;
686
- flex-shrink: 1;
687
- min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
688
-
689
- color: ${ke.colorOnSurface};
690
- padding: calc(2 * ${ke.verticalSpacing}) 0;
691
- border: none;
692
- background: none;
693
- }
694
-
695
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
696
- padding-bottom: 0;
697
- padding-top: calc(${ke.labelSize} + 2 * ${ke.verticalSpacing});
698
- }
699
-
700
- .ft-text-field--input::-webkit-calendar-picker-indicator,
701
- .ft-text-field--input::-webkit-list-button {
702
- display: none !important;
703
- }
704
-
705
- .ft-text-field--disabled .ft-text-field--input {
706
- color: ${ke.colorOnSurfaceDisabled};
707
- }
708
-
709
- .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
710
- cursor: pointer;
711
- }
712
-
713
- .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
714
- ${e.setVariable(te.borderColor,ke.colorPrimary)};
715
- ${e.setVariable(te.textColor,ke.colorPrimary)};
716
- }
717
-
718
- .ft-text-field--filled .ft-text-field--input-panel {
719
- border-radius: ${ke.borderRadiusS} ${ke.borderRadiusS} 0 0;
720
- }
721
-
722
- .ft-text-field--outlined .ft-text-field--input-panel {
723
- border-radius: ${ke.borderRadiusS};
724
- }
725
-
726
- .ft-text-field--helper-text {
727
- padding: 0 12px 0 ${ke.horizontalSpacing};
728
- color: ${ke.helperColor};
729
- }
730
-
731
- .ft-text-field--in-error .ft-text-field--input,
732
- .ft-text-field--in-error .ft-text-field--helper-text,
733
- .ft-text-field--in-error .ft-text-field--prefix {
734
- color: ${ke.colorError};
735
- }
736
-
737
- .ft-text-field--icon {
738
- padding-right: ${ke.horizontalSpacing};
739
- color: ${ke.iconColor};
740
- }
741
- `],we([o.property({type:String})],Se.prototype,"label",void 0),we([o.property({reflect:!0})],Se.prototype,"value",void 0),we([o.property({type:String})],Se.prototype,"helper",void 0),we([o.property({type:Boolean})],Se.prototype,"outlined",void 0),we([o.property({type:Boolean})],Se.prototype,"disabled",void 0),we([o.property({type:Boolean})],Se.prototype,"error",void 0),we([o.query(".ft-text-field--input")],Se.prototype,"input",void 0),we([o.property({type:String})],Se.prototype,"prefix",void 0),we([o.property({type:String})],Se.prototype,"icon",void 0),we([o.property({type:String})],Se.prototype,"iconVariant",void 0),we([o.state()],Se.prototype,"focused",void 0),e.customElement("ft-text-field")(Se);var ze=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const Oe=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ce=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ee=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Be=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),De=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Ie=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px");class Fe extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
741
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}De.elementDefinitions={"ft-input-label":oe,"ft-ripple":be,"ft-typography":Qt,"ft-icon":$e},De.styles=[Kt,Ee],Be([o.property({type:String})],De.prototype,"label",void 0),Be([o.property({reflect:!0})],De.prototype,"value",void 0),Be([o.property({type:String})],De.prototype,"helper",void 0),Be([o.property({type:Boolean})],De.prototype,"outlined",void 0),Be([o.property({type:Boolean})],De.prototype,"disabled",void 0),Be([o.property({type:Boolean})],De.prototype,"error",void 0),Be([o.query(".ft-text-field--input")],De.prototype,"input",void 0),Be([o.property({type:String})],De.prototype,"prefix",void 0),Be([o.property({type:String})],De.prototype,"icon",void 0),Be([o.property({type:String})],De.prototype,"iconVariant",void 0),Be([o.state()],De.prototype,"focused",void 0),e.customElement("ft-text-field")(De);const Ie=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Fe=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),je=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ne=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ae=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Te=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ze=i.css`
742
+ .ft-tooltip--container {
743
+ display: block;
744
+ position: relative;
745
+ }
746
+
747
+ .ft-tooltip--inline {
748
+ display: inline-block;
749
+ max-width: 100%;
750
+ }
751
+
752
+ .ft-tooltip {
753
+ position: absolute;
754
+ box-sizing: border-box;
755
+ overflow: hidden;
756
+ width: max-content;
757
+ max-width: ${Te};
758
+ text-align: center;
759
+ padding: ${Ie};
760
+ z-index: ${Ne};
761
+ }
762
+
763
+ .ft-tooltip--content {
764
+ padding: 4px 8px;
765
+ border-radius: ${Ae};
766
+ background-color: ${je};
767
+ color: ${Fe};
768
+ top: -500px;
769
+ left: -500px;
770
+ position: relative;
771
+ word-break: break-word;
772
+ }
773
+ `;var Re=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class Me extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
742
774
  <div part="container"
743
775
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
744
776
  @mouseenter=${this.onHover}
@@ -754,248 +786,216 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
754
786
  </div>
755
787
  <slot></slot>
756
788
  </div>
757
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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 n=0,l=0;switch(this.position){case"top":l=-this.tooltip.clientHeight,n=o;break;case"bottom":l=e.height,n=o;break;case"left":l=i,n=-this.tooltip.clientWidth;break;case"right":l=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=l+"px",s.maxWidth=`max(${e.width}px, ${Ie})`}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())}}Fe.elementDefinitions={"ft-typography":Jt},Fe.styles=i.css`
758
- .ft-tooltip--container {
759
- display: block;
760
- position: relative;
761
- }
789
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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 n=0,l=0;switch(this.position){case"top":l=-this.tooltip.clientHeight,n=o;break;case"bottom":l=e.height,n=o;break;case"left":l=i,n=-this.tooltip.clientWidth;break;case"right":l=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=l+"px",s.maxWidth=`max(${e.width}px, ${Te})`}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())}}Me.elementDefinitions={"ft-typography":Qt},Me.styles=Ze,Re([o.property()],Me.prototype,"text",void 0),Re([o.property({type:Boolean})],Me.prototype,"manual",void 0),Re([o.property({type:Boolean})],Me.prototype,"inline",void 0),Re([o.property({type:Number})],Me.prototype,"delay",void 0),Re([o.property()],Me.prototype,"position",void 0),Re([o.queryAssignedNodes("",!0)],Me.prototype,"slotNodes",void 0),Re([o.query(".ft-tooltip--container")],Me.prototype,"container",void 0),Re([o.query("slot")],Me.prototype,"target",void 0),Re([o.query(".ft-tooltip")],Me.prototype,"tooltip",void 0),Re([o.query(".ft-tooltip--content")],Me.prototype,"tooltipContent",void 0),Re([o.state()],Me.prototype,"visible",void 0),e.customElement("ft-tooltip")(Me);const _e={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ue=i.css`
790
+ :host {
791
+ line-height: 0;
792
+ }
762
793
 
763
- .ft-tooltip--inline {
764
- display: inline-block;
765
- max-width: 100%;
766
- }
794
+ .ft-loader {
795
+ display: inline-block;
796
+ position: relative;
767
797
 
768
- .ft-tooltip {
769
- position: absolute;
770
- box-sizing: border-box;
771
- overflow: hidden;
772
- width: max-content;
773
- max-width: ${Ie};
774
- text-align: center;
775
- padding: ${Oe};
776
- z-index: ${Be};
777
- }
798
+ width: ${_e.size};
799
+ height: ${_e.size};
800
+ }
778
801
 
779
- .ft-tooltip--content {
780
- padding: 4px 8px;
781
- border-radius: ${De};
782
- background-color: ${Ee};
783
- color: ${Ce};
784
- top: -500px;
785
- left: -500px;
786
- position: relative;
787
- word-break: break-word;
802
+ .ft-loader div {
803
+ position: absolute;
804
+ top: 37.5%;
805
+ width: 25%;
806
+ height: 25%;
807
+ border-radius: 50%;
808
+ background: ${_e.color};
809
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
810
+ }
811
+
812
+ .ft-loader div:nth-child(1) {
813
+ left: 2.5%;
814
+ animation: appear 0.6s infinite;
815
+ }
816
+
817
+ .ft-loader div:nth-child(2) {
818
+ left: 2.5%;
819
+ animation: move 0.6s infinite;
820
+ }
821
+
822
+ .ft-loader div:nth-child(3) {
823
+ left: 37.5%;
824
+ animation: move 0.6s infinite;
825
+ }
826
+
827
+ .ft-loader div:nth-child(4) {
828
+ left: 72.5%;
829
+ animation: disappear 0.6s infinite;
830
+ }
831
+
832
+ @keyframes appear {
833
+ 0% {
834
+ transform: scale(0);
788
835
  }
789
- `,ze([o.property()],Fe.prototype,"text",void 0),ze([o.property({type:Boolean})],Fe.prototype,"manual",void 0),ze([o.property({type:Boolean})],Fe.prototype,"inline",void 0),ze([o.property({type:Number})],Fe.prototype,"delay",void 0),ze([o.property()],Fe.prototype,"position",void 0),ze([o.queryAssignedNodes("",!0)],Fe.prototype,"slotNodes",void 0),ze([o.query(".ft-tooltip--container")],Fe.prototype,"container",void 0),ze([o.query("slot")],Fe.prototype,"target",void 0),ze([o.query(".ft-tooltip")],Fe.prototype,"tooltip",void 0),ze([o.query(".ft-tooltip--content")],Fe.prototype,"tooltipContent",void 0),ze([o.state()],Fe.prototype,"visible",void 0),e.customElement("ft-tooltip")(Fe);const je={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")};class Ne extends e.FtLitElement{static get styles(){return i.css`
790
- :host {
791
- line-height: 0;
792
- }
793
-
794
- .ft-loader {
795
- display: inline-block;
796
- position: relative;
797
-
798
- width: ${je.size};
799
- height: ${je.size};
800
- }
801
-
802
- .ft-loader div {
803
- position: absolute;
804
- top: 37.5%;
805
- width: 25%;
806
- height: 25%;
807
- border-radius: 50%;
808
- background: ${je.color};
809
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
810
- }
811
-
812
- .ft-loader div:nth-child(1) {
813
- left: 2.5%;
814
- animation: appear 0.6s infinite;
815
- }
816
-
817
- .ft-loader div:nth-child(2) {
818
- left: 2.5%;
819
- animation: move 0.6s infinite;
820
- }
821
-
822
- .ft-loader div:nth-child(3) {
823
- left: 37.5%;
824
- animation: move 0.6s infinite;
825
- }
826
-
827
- .ft-loader div:nth-child(4) {
828
- left: 72.5%;
829
- animation: disappear 0.6s infinite;
830
- }
831
-
832
- @keyframes appear {
833
- 0% {
834
- transform: scale(0);
835
- }
836
- 100% {
837
- transform: scale(1);
838
- }
839
- }
836
+ 100% {
837
+ transform: scale(1);
838
+ }
839
+ }
840
840
 
841
- @keyframes disappear {
842
- 0% {
843
- transform: scale(1);
844
- }
845
- 100% {
846
- transform: scale(0);
847
- }
848
- }
841
+ @keyframes disappear {
842
+ 0% {
843
+ transform: scale(1);
844
+ }
845
+ 100% {
846
+ transform: scale(0);
847
+ }
848
+ }
849
849
 
850
- @keyframes move {
851
- 0% {
852
- transform: translate(0, 0);
853
- }
854
- 100% {
855
- transform: translate(calc(0.35 * ${je.size}), 0);
856
- }
857
- }
858
- `}render(){return i.html`
850
+ @keyframes move {
851
+ 0% {
852
+ transform: translate(0, 0);
853
+ }
854
+ 100% {
855
+ transform: translate(calc(0.35 * ${_e.size}), 0);
856
+ }
857
+ }
858
+ `;class He extends e.FtLitElement{render(){return i.html`
859
859
  <div class="ft-loader">
860
860
  <div></div>
861
861
  <div></div>
862
862
  <div></div>
863
863
  <div></div>
864
864
  </div>
865
- `}}e.customElement("ft-loader")(Ne);var Ae=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const Te=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Ze={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Te,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",Te),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Re=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Me={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Re,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Re)},_e=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class Ue extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ue.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[e.noTextSelect,i.css`
866
- :host {
867
- display: inline-block;
868
- max-width: 100%;
869
- pointer-events: none;
870
- }
865
+ `}}He.styles=Ue,e.customElement("ft-loader")(He);const We=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Pe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:We,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",_t.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",We),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ke=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Le={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Ke,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ke)},Ge=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Ve=[e.noTextSelect,i.css`
866
+ :host {
867
+ display: inline-block;
868
+ max-width: 100%;
869
+ pointer-events: none;
870
+ }
871
871
 
872
- button {
873
- box-shadow: 0px 0px 0px transparent;
874
- border: 0px solid transparent;
875
- text-shadow: 0px 0px 0px transparent;
876
- font-size: ${Ze.fontSize};
877
- }
872
+ button {
873
+ box-shadow: 0px 0px 0px transparent;
874
+ border: 0px solid transparent;
875
+ text-shadow: 0px 0px 0px transparent;
876
+ font-size: ${Pe.fontSize};
877
+ }
878
878
 
879
- button:hover {
880
- box-shadow: 0px 0px 0px transparent;
881
- border: 0px solid transparent;
882
- text-shadow: 0px 0px 0px transparent;
883
- }
879
+ button:hover {
880
+ box-shadow: 0px 0px 0px transparent;
881
+ border: 0px solid transparent;
882
+ text-shadow: 0px 0px 0px transparent;
883
+ }
884
884
 
885
- button:active {
886
- outline: none;
887
- border: none;
888
- }
885
+ button:active {
886
+ outline: none;
887
+ border: none;
888
+ }
889
889
 
890
- button:focus {
891
- outline: 0;
892
- }
890
+ button:focus {
891
+ outline: 0;
892
+ }
893
893
 
894
- .ft-button {
895
- position: relative;
896
- display: flex;
897
- justify-content: center;
898
- align-items: center;
899
- width: 100%;
900
- overflow: hidden;
901
- box-sizing: border-box;
902
- border: none;
903
- pointer-events: auto;
904
-
905
- --ft-button-internal-line-height: calc(${Ze.fontSize} + 2px);
906
- --ft-button-internal-color: ${Ze.color};
907
- ${e.setVariable(be.size,Ze.iconSize)};
908
- --ft-button-internal-vertical-padding: 6px;
909
- --ft-button-internal-horizontal-padding: 8px;
910
- ${e.setVariable(ne.color,Ze.rippleColor)};
911
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ze.iconSize});
912
-
913
- border-radius: ${Ze.borderRadius};
914
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
915
- background-color: ${Ze.backgroundColor};
916
- color: var(--ft-button-internal-color);
917
- -webkit-mask-image: radial-gradient(white, black);
918
- }
894
+ .ft-button {
895
+ position: relative;
896
+ display: flex;
897
+ justify-content: center;
898
+ align-items: center;
899
+ width: 100%;
900
+ overflow: hidden;
901
+ box-sizing: border-box;
902
+ border: none;
903
+ pointer-events: auto;
904
+
905
+ --ft-button-internal-line-height: calc(${Pe.fontSize} + 2px);
906
+ --ft-button-internal-color: ${Pe.color};
907
+ ${e.setVariable(ve.size,Pe.iconSize)};
908
+ --ft-button-internal-vertical-padding: 6px;
909
+ --ft-button-internal-horizontal-padding: 8px;
910
+ ${e.setVariable(le.color,Pe.rippleColor)};
911
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Pe.iconSize});
912
+
913
+ border-radius: ${Pe.borderRadius};
914
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
915
+ background-color: ${Pe.backgroundColor};
916
+ color: var(--ft-button-internal-color);
917
+ -webkit-mask-image: radial-gradient(white, black);
918
+ }
919
919
 
920
- .ft-button:not([disabled]):hover {
921
- cursor: pointer;
922
- }
920
+ .ft-button:not([disabled]):hover {
921
+ cursor: pointer;
922
+ }
923
923
 
924
- .ft-button--dense {
925
- --ft-button-internal-vertical-padding: 2px;
926
- --ft-button-internal-horizontal-padding: 4px;
927
- border-radius: ${_e};
928
- }
924
+ .ft-button--dense {
925
+ --ft-button-internal-vertical-padding: 2px;
926
+ --ft-button-internal-horizontal-padding: 4px;
927
+ border-radius: ${Ge};
928
+ }
929
929
 
930
- .ft-button--round {
931
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
932
- }
930
+ .ft-button--round {
931
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
932
+ }
933
933
 
934
- .ft-button[disabled] {
935
- filter: grayscale(1);
936
- opacity: ${Ze.opacityDisabled};
937
- }
934
+ .ft-button[disabled] {
935
+ filter: grayscale(1);
936
+ opacity: ${Pe.opacityDisabled};
937
+ }
938
938
 
939
- .ft-button.ft-button--primary {
940
- background-color: ${Me.backgroundColor};
941
- --ft-button-internal-color: ${Me.color};
942
- ${e.setVariable(ne.color,Me.rippleColor)};
943
- }
939
+ .ft-button.ft-button--primary {
940
+ background-color: ${Le.backgroundColor};
941
+ --ft-button-internal-color: ${Le.color};
942
+ ${e.setVariable(le.color,Le.rippleColor)};
943
+ }
944
944
 
945
- .ft-button.ft-button--outlined {
946
- border: 1px solid var(--ft-button-internal-color);
947
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
948
- }
945
+ .ft-button.ft-button--outlined {
946
+ border: 1px solid var(--ft-button-internal-color);
947
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
948
+ }
949
949
 
950
- .ft-button:focus {
951
- outline: none;
952
- }
950
+ .ft-button:focus {
951
+ outline: none;
952
+ }
953
953
 
954
- .ft-button--label {
955
- position: relative;
956
- overflow: hidden;
957
- white-space: nowrap;
958
- text-overflow: ellipsis;
959
- display: block;
960
- margin: 0 var(--ft-button-internal-horizontal-padding);
961
- ${e.setVariable(Ut.fontSize,"1em")};
962
- ${e.setVariable(Ut.lineHeight,"var(--ft-button-internal-content-height)")};
963
- }
954
+ .ft-button--label {
955
+ position: relative;
956
+ overflow: hidden;
957
+ white-space: nowrap;
958
+ text-overflow: ellipsis;
959
+ display: block;
960
+ margin: 0 var(--ft-button-internal-horizontal-padding);
961
+ ${e.setVariable(_t.fontSize,"1em")};
962
+ ${e.setVariable(_t.lineHeight,"var(--ft-button-internal-content-height)")};
963
+ }
964
964
 
965
- .ft-button--safari-fix .ft-button--label {
966
- margin-right: 0;
967
- }
965
+ .ft-button--safari-fix .ft-button--label {
966
+ margin-right: 0;
967
+ }
968
968
 
969
- .ft-button--safari-fix .ft-button--label:after {
970
- content: "\\0000a0";
971
- display: inline-block;
972
- width: 0;
973
- }
969
+ .ft-button--safari-fix .ft-button--label:after {
970
+ content: "\\0000a0";
971
+ display: inline-block;
972
+ width: 0;
973
+ }
974
974
 
975
- .ft-button--label[hidden] {
976
- display: none;
977
- }
975
+ .ft-button--label[hidden] {
976
+ display: none;
977
+ }
978
978
 
979
- ft-icon {
980
- flex-shrink: 0;
981
- position: relative;
982
- }
979
+ ft-icon {
980
+ flex-shrink: 0;
981
+ position: relative;
982
+ }
983
983
 
984
- .ft-button--label[hidden] + ft-icon {
985
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
986
- padding: 0 var(--ft-button-internal-vertical-padding);
987
- }
984
+ .ft-button--label[hidden] + ft-icon {
985
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
986
+ padding: 0 var(--ft-button-internal-vertical-padding);
987
+ }
988
988
 
989
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
990
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
991
- order: -1;
992
- }
989
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
990
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
991
+ order: -1;
992
+ }
993
993
 
994
- ft-loader {
995
- ${e.setVariable(je.size,Ze.iconSize)};
996
- ${e.setVariable(je.color,"var(--ft-button-internal-color)")};
997
- }
998
- `]}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-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
994
+ ft-loader {
995
+ ${e.setVariable(_e.size,Pe.iconSize)};
996
+ ${e.setVariable(_e.color,"var(--ft-button-internal-color)")};
997
+ }
998
+ `];var qe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class Xe extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ye.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!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-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
999
999
  <button part="button"
1000
1000
  class="${s.classMap(t)}"
1001
1001
  aria-label="${this.getLabel()}"
@@ -1017,7 +1017,115 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
1017
1017
  </ft-tooltip>
1018
1018
  `}resolveIcon(){return this.loading?i.html`
1019
1019
  <ft-loader></ft-loader> `:this.icon?i.html`
1020
- <ft-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}}Ue.elementDefinitions={"ft-ripple":de,"ft-tooltip":Fe,"ft-typography":Jt,"ft-icon":ve,"ft-loader":Ne},Ae([o.property({type:Boolean})],Ue.prototype,"primary",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"outlined",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"disabled",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"dense",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"round",void 0),Ae([o.property({type:String})],Ue.prototype,"label",void 0),Ae([o.property({type:String})],Ue.prototype,"icon",void 0),Ae([o.property({type:String})],Ue.prototype,"iconVariant",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"trailingIcon",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"loading",void 0),Ae([o.property({type:String})],Ue.prototype,"tooltipPosition",void 0),Ae([o.property({type:Boolean})],Ue.prototype,"hideTooltip",void 0),Ae([o.query(".ft-button")],Ue.prototype,"button",void 0),Ae([o.query(".ft-button--label slot")],Ue.prototype,"slottedContent",void 0),e.customElement("ft-button")(Ue);var He=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class We extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Pe={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"),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")},Ke=t=>i.html`${t}`,Le=(t,e)=>t-e;class Ge 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`
1020
+ <ft-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}}Xe.elementDefinitions={"ft-ripple":be,"ft-tooltip":Me,"ft-typography":Qt,"ft-icon":$e,"ft-loader":He},Xe.styles=Ve,qe([o.property({type:Boolean})],Xe.prototype,"primary",void 0),qe([o.property({type:Boolean})],Xe.prototype,"outlined",void 0),qe([o.property({type:Boolean})],Xe.prototype,"disabled",void 0),qe([o.property({type:Boolean})],Xe.prototype,"dense",void 0),qe([o.property({type:Boolean})],Xe.prototype,"round",void 0),qe([o.property({type:String})],Xe.prototype,"label",void 0),qe([o.property({type:String})],Xe.prototype,"icon",void 0),qe([o.property({type:String})],Xe.prototype,"iconVariant",void 0),qe([o.property({type:Boolean})],Xe.prototype,"trailingIcon",void 0),qe([o.property({type:Boolean})],Xe.prototype,"loading",void 0),qe([o.property({type:String})],Xe.prototype,"tooltipPosition",void 0),qe([o.property({type:Boolean})],Xe.prototype,"hideTooltip",void 0),qe([o.query(".ft-button")],Xe.prototype,"button",void 0),qe([o.query(".ft-button--label slot")],Xe.prototype,"slottedContent",void 0),e.customElement("ft-button")(Xe);class Ye extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Je={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"),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")},Qe=i.css`
1021
+ :host {
1022
+ display: block;
1023
+ }
1024
+
1025
+ .table {
1026
+ display: grid;
1027
+ }
1028
+
1029
+ .header, .row {
1030
+ display: contents;
1031
+ }
1032
+
1033
+ .header-cell {
1034
+ display: flex;
1035
+ flex-direction: column;
1036
+ background: ${Je.headerBackground};
1037
+ color: ${Je.colorOnSurfaceHigh};
1038
+ padding: .5rem 1rem;
1039
+ font-family: ${Je.titleFont};
1040
+ }
1041
+
1042
+ .header-cell--sticky {
1043
+ top: 0;
1044
+ z-index: ${Je.stickyHeaderZIndex};
1045
+ position: sticky;
1046
+ }
1047
+
1048
+ .header-cell:first-of-type {
1049
+ border-radius: .5rem 0 0 0;
1050
+ }
1051
+
1052
+ .header-cell:last-of-type {
1053
+ border-radius: 0 .5rem 0 0;
1054
+ }
1055
+
1056
+ .column-title-container {
1057
+ display: flex;
1058
+ align-items: center;
1059
+ }
1060
+
1061
+ .column-title-container ft-button {
1062
+ ${e.setVariable(Pe.backgroundColor,Je.headerBackground)};
1063
+ ${e.setVariable(Pe.color,Je.colorOnSurfaceHigh)};
1064
+ }
1065
+
1066
+ .column-title {
1067
+ white-space: nowrap;
1068
+ text-transform: uppercase;
1069
+ margin-right: .5rem;
1070
+ font-weight: normal;
1071
+ letter-spacing: 1.5px;
1072
+ font-size: 0.8em;
1073
+ }
1074
+
1075
+ .column-filter {
1076
+ flex-grow: 1;
1077
+ flex-shrink: 0;
1078
+ }
1079
+
1080
+ .column-filter:not(:empty) {
1081
+ padding-top: .5rem;
1082
+ }
1083
+
1084
+ .column-filter ft-text-field,
1085
+ .column-filter ft-select {
1086
+ width: 150px;
1087
+ min-width: 100%;
1088
+ }
1089
+
1090
+ .cell {
1091
+ padding: 1rem;
1092
+ border-left: 1px solid ${Je.headerBackground};
1093
+ border-bottom: 1px solid ${Je.headerBackground};
1094
+ overflow-x: auto;
1095
+ display: flex;
1096
+ align-items: center;
1097
+ font-family: ${Je.contentFont};
1098
+ }
1099
+
1100
+ /* Even is 2n+1 and odd is 2n because of the header */
1101
+ .row:nth-child(2n) > .cell {
1102
+ background: ${Je.oddRowBackground};
1103
+ }
1104
+
1105
+ .row:nth-child(2n + 1) > .cell {
1106
+ background: ${Je.evenRowBackground};
1107
+ }
1108
+
1109
+ .row:hover > .cell {
1110
+ background: ${Je.rowHoverBackground};
1111
+ }
1112
+
1113
+ .cell:last-of-type {
1114
+ border-right: 1px solid ${Je.headerBackground};
1115
+ }
1116
+
1117
+ .row:last-of-type .cell:first-of-type {
1118
+ border-radius: 0 0 0 .5rem;
1119
+ }
1120
+
1121
+ .row:last-of-type .cell:last-of-type {
1122
+ border-radius: 0 0 .5rem 0;
1123
+ }
1124
+
1125
+ .hidden {
1126
+ visibility: hidden;
1127
+ }
1128
+ `;var ti=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const ei=t=>i.html`${t}`,ii=(t,e)=>t-e;class oi 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`
1021
1129
  <style>
1022
1130
  .table {
1023
1131
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1029,12 +1137,12 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
1029
1137
  </div>
1030
1138
  ${n.repeat(t,((t,e)=>"row-"+e),((t,e)=>i.html`
1031
1139
  <div class="row"
1032
- @click=${()=>this.dispatchEvent(new We(t))}>
1140
+ @click=${()=>this.dispatchEvent(new Ye(t))}>
1033
1141
  ${n.repeat(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1034
1142
  </div>
1035
1143
  `))}
1036
1144
  </div>
1037
- `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:Le,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(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`
1145
+ `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:ii,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(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`
1038
1146
  <div class="${s.classMap(o)}">
1039
1147
  <div class="column-title-container">
1040
1148
  <span class="column-title">${t.title}</span>
@@ -1066,114 +1174,6 @@ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t
1066
1174
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1067
1175
  `))}
1068
1176
  </ft-select>
1069
- `:null}return null}renderCell(t,e,o){var n;const s=null!==(n=t.render)&&void 0!==n?n:Ke;return i.html`
1177
+ `:null}return null}renderCell(t,e,o){var n;const s=null!==(n=t.render)&&void 0!==n?n:ei;return i.html`
1070
1178
  <div class="cell">${(t=>{const e=s(t,o);return"string"==typeof e?l.unsafeHTML(e):e})(this.getValue(t,e))}</div>
1071
- `}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)}}Ge.styles=i.css`
1072
- :host {
1073
- display: block;
1074
- }
1075
-
1076
- .table {
1077
- display: grid;
1078
- }
1079
-
1080
- .header, .row {
1081
- display: contents;
1082
- }
1083
-
1084
- .header-cell {
1085
- display: flex;
1086
- flex-direction: column;
1087
- background: ${Pe.headerBackground};
1088
- color: ${Pe.colorOnSurfaceHigh};
1089
- padding: .5rem 1rem;
1090
- font-family: ${Pe.titleFont};
1091
- }
1092
-
1093
- .header-cell--sticky {
1094
- top: 0;
1095
- z-index: ${Pe.stickyHeaderZIndex};
1096
- position: sticky;
1097
- }
1098
-
1099
- .header-cell:first-of-type {
1100
- border-radius: .5rem 0 0 0;
1101
- }
1102
-
1103
- .header-cell:last-of-type {
1104
- border-radius: 0 .5rem 0 0;
1105
- }
1106
-
1107
- .column-title-container {
1108
- display: flex;
1109
- align-items: center;
1110
- }
1111
-
1112
- .column-title-container ft-button {
1113
- ${e.setVariable(Ze.backgroundColor,Pe.headerBackground)};
1114
- ${e.setVariable(Ze.color,Pe.colorOnSurfaceHigh)};
1115
- }
1116
-
1117
- .column-title {
1118
- white-space: nowrap;
1119
- text-transform: uppercase;
1120
- margin-right: .5rem;
1121
- font-weight: normal;
1122
- letter-spacing: 1.5px;
1123
- font-size: 0.8em;
1124
- }
1125
-
1126
- .column-filter {
1127
- flex-grow: 1;
1128
- flex-shrink: 0;
1129
- }
1130
-
1131
- .column-filter:not(:empty) {
1132
- padding-top: .5rem;
1133
- }
1134
-
1135
- .column-filter ft-text-field,
1136
- .column-filter ft-select {
1137
- width: 150px;
1138
- min-width: 100%;
1139
- }
1140
-
1141
- .cell {
1142
- padding: 1rem;
1143
- border-left: 1px solid ${Pe.headerBackground};
1144
- border-bottom: 1px solid ${Pe.headerBackground};
1145
- overflow-x: auto;
1146
- display: flex;
1147
- align-items: center;
1148
- font-family: ${Pe.contentFont};
1149
- }
1150
-
1151
- /* Even is 2n+1 and odd is 2n because of the header */
1152
- .row:nth-child(2n) > .cell {
1153
- background: ${Pe.oddRowBackground};
1154
- }
1155
-
1156
- .row:nth-child(2n + 1) > .cell {
1157
- background: ${Pe.evenRowBackground};
1158
- }
1159
-
1160
- .row:hover > .cell {
1161
- background: ${Pe.rowHoverBackground};
1162
- }
1163
-
1164
- .cell:last-of-type {
1165
- border-right: 1px solid ${Pe.headerBackground};
1166
- }
1167
-
1168
- .row:last-of-type .cell:first-of-type {
1169
- border-radius: 0 0 0 .5rem;
1170
- }
1171
-
1172
- .row:last-of-type .cell:last-of-type {
1173
- border-radius: 0 0 .5rem 0;
1174
- }
1175
-
1176
- .hidden {
1177
- visibility: hidden;
1178
- }
1179
- `,He([o.property({attribute:!1})],Ge.prototype,"data",void 0),He([o.property({attribute:!1})],Ge.prototype,"columns",void 0),He([o.property({attribute:!1})],Ge.prototype,"sort",void 0),He([o.property()],Ge.prototype,"stickyHeaders",void 0),He([o.state()],Ge.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(Ge),t.FtFilterableTable=Ge,t.FtFilterableTableCssVariables=Pe,t.RowClickEvent=We,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
1179
+ `}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)}}oi.styles=Qe,ti([o.property({attribute:!1})],oi.prototype,"data",void 0),ti([o.property({attribute:!1})],oi.prototype,"columns",void 0),ti([o.property({attribute:!1})],oi.prototype,"sort",void 0),ti([o.property()],oi.prototype,"stickyHeaders",void 0),ti([o.state()],oi.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(oi),t.FtFilterableTable=oi,t.FtFilterableTableCssVariables=Je,t.RowClickEvent=Ye,t.styles=Qe,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);