@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.
@@ -107,109 +107,225 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
107
107
  * @license
108
108
  * Copyright 2018 Google LLC
109
109
  * SPDX-License-Identifier: BSD-3-Clause
110
- */var _t,Ht=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(_t||(_t={}));const Wt=ft.extend("--ft-typography-font-family",ut.titleFont),Zt=ft.extend("--ft-typography-font-family",ut.contentFont),Kt={fontFamily:Zt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Vt=ft.extend("--ft-typography-title-font-family",Wt),Jt=ft.extend("--ft-typography-title-font-size",Kt.fontSize,"20px"),qt=ft.extend("--ft-typography-title-font-weight",Kt.fontWeight,"normal"),Xt=ft.extend("--ft-typography-title-letter-spacing",Kt.letterSpacing,"0.15px"),Yt=ft.extend("--ft-typography-title-line-height",Kt.lineHeight,"1.2"),Gt=ft.extend("--ft-typography-title-text-transform",Kt.textTransform,"inherit"),Qt=ft.extend("--ft-typography-title-dense-font-family",Wt),te=ft.extend("--ft-typography-title-dense-font-size",Kt.fontSize,"14px"),ee=ft.extend("--ft-typography-title-dense-font-weight",Kt.fontWeight,"normal"),ie=ft.extend("--ft-typography-title-dense-letter-spacing",Kt.letterSpacing,"0.105px"),oe=ft.extend("--ft-typography-title-dense-line-height",Kt.lineHeight,"1.7"),ne=ft.extend("--ft-typography-title-dense-text-transform",Kt.textTransform,"inherit"),se=ft.extend("--ft-typography-subtitle1-font-family",Zt),re=ft.extend("--ft-typography-subtitle1-font-size",Kt.fontSize,"16px"),le=ft.extend("--ft-typography-subtitle1-font-weight",Kt.fontWeight,"600"),ae=ft.extend("--ft-typography-subtitle1-letter-spacing",Kt.letterSpacing,"0.144px"),pe=ft.extend("--ft-typography-subtitle1-line-height",Kt.lineHeight,"1.5"),ce=ft.extend("--ft-typography-subtitle1-text-transform",Kt.textTransform,"inherit"),de=ft.extend("--ft-typography-subtitle2-font-family",Zt),fe=ft.extend("--ft-typography-subtitle2-font-size",Kt.fontSize,"14px"),he=ft.extend("--ft-typography-subtitle2-font-weight",Kt.fontWeight,"normal"),ue=ft.extend("--ft-typography-subtitle2-letter-spacing",Kt.letterSpacing,"0.098px"),ve=ft.extend("--ft-typography-subtitle2-line-height",Kt.lineHeight,"1.7"),be=ft.extend("--ft-typography-subtitle2-text-transform",Kt.textTransform,"inherit"),xe={fontFamily:ft.extend("--ft-typography-body1-font-family",Zt),fontSize:ft.extend("--ft-typography-body1-font-size",Kt.fontSize,"16px"),fontWeight:ft.extend("--ft-typography-body1-font-weight",Kt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body1-letter-spacing",Kt.letterSpacing,"0.496px"),lineHeight:ft.extend("--ft-typography-body1-line-height",Kt.lineHeight,"1.5"),textTransform:ft.extend("--ft-typography-body1-text-transform",Kt.textTransform,"inherit")},ye=ft.extend("--ft-typography-body2-font-family",Zt),ge=ft.extend("--ft-typography-body2-font-size",Kt.fontSize,"14px"),me=ft.extend("--ft-typography-body2-font-weight",Kt.fontWeight,"normal"),$e=ft.extend("--ft-typography-body2-letter-spacing",Kt.letterSpacing,"0.252px"),we=ft.extend("--ft-typography-body2-line-height",Kt.lineHeight,"1.4"),Oe=ft.extend("--ft-typography-body2-text-transform",Kt.textTransform,"inherit"),Se={fontFamily:ft.extend("--ft-typography-caption-font-family",Zt),fontSize:ft.extend("--ft-typography-caption-font-size",Kt.fontSize,"12px"),fontWeight:ft.extend("--ft-typography-caption-font-weight",Kt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-caption-letter-spacing",Kt.letterSpacing,"0.396px"),lineHeight:ft.extend("--ft-typography-caption-line-height",Kt.lineHeight,"1.33"),textTransform:ft.extend("--ft-typography-caption-text-transform",Kt.textTransform,"inherit")},ke=ft.extend("--ft-typography-breadcrumb-font-family",Zt),Ce=ft.extend("--ft-typography-breadcrumb-font-size",Kt.fontSize,"10px"),Ee=ft.extend("--ft-typography-breadcrumb-font-weight",Kt.fontWeight,"normal"),Ne=ft.extend("--ft-typography-breadcrumb-letter-spacing",Kt.letterSpacing,"0.33px"),Re=ft.extend("--ft-typography-breadcrumb-line-height",Kt.lineHeight,"1.6"),ze=ft.extend("--ft-typography-breadcrumb-text-transform",Kt.textTransform,"inherit"),Me=ft.extend("--ft-typography-overline-font-family",Zt),Fe=ft.extend("--ft-typography-overline-font-size",Kt.fontSize,"10px"),Ue=ft.extend("--ft-typography-overline-font-weight",Kt.fontWeight,"normal"),Be=ft.extend("--ft-typography-overline-letter-spacing",Kt.letterSpacing,"1.5px"),De=ft.extend("--ft-typography-overline-line-height",Kt.lineHeight,"1.6"),je=ft.extend("--ft-typography-overline-text-transform",Kt.textTransform,"uppercase"),Ae={fontFamily:ft.extend("--ft-typography-button-font-family",Zt),fontSize:ft.extend("--ft-typography-button-font-size",Kt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Kt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Kt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Kt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Kt.textTransform,"uppercase")},Te=v`
110
+ */var _t;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(_t||(_t={}));const Ht=ft.extend("--ft-typography-font-family",ut.titleFont),Wt=ft.extend("--ft-typography-font-family",ut.contentFont),Zt={fontFamily:Wt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=ft.extend("--ft-typography-title-font-family",Ht),Vt=ft.extend("--ft-typography-title-font-size",Zt.fontSize,"20px"),Jt=ft.extend("--ft-typography-title-font-weight",Zt.fontWeight,"normal"),qt=ft.extend("--ft-typography-title-letter-spacing",Zt.letterSpacing,"0.15px"),Xt=ft.extend("--ft-typography-title-line-height",Zt.lineHeight,"1.2"),Yt=ft.extend("--ft-typography-title-text-transform",Zt.textTransform,"inherit"),Gt=ft.extend("--ft-typography-title-dense-font-family",Ht),Qt=ft.extend("--ft-typography-title-dense-font-size",Zt.fontSize,"14px"),te=ft.extend("--ft-typography-title-dense-font-weight",Zt.fontWeight,"normal"),ee=ft.extend("--ft-typography-title-dense-letter-spacing",Zt.letterSpacing,"0.105px"),ie=ft.extend("--ft-typography-title-dense-line-height",Zt.lineHeight,"1.7"),oe=ft.extend("--ft-typography-title-dense-text-transform",Zt.textTransform,"inherit"),ne=ft.extend("--ft-typography-subtitle1-font-family",Wt),se=ft.extend("--ft-typography-subtitle1-font-size",Zt.fontSize,"16px"),re=ft.extend("--ft-typography-subtitle1-font-weight",Zt.fontWeight,"600"),le=ft.extend("--ft-typography-subtitle1-letter-spacing",Zt.letterSpacing,"0.144px"),ae=ft.extend("--ft-typography-subtitle1-line-height",Zt.lineHeight,"1.5"),pe=ft.extend("--ft-typography-subtitle1-text-transform",Zt.textTransform,"inherit"),ce=ft.extend("--ft-typography-subtitle2-font-family",Wt),de=ft.extend("--ft-typography-subtitle2-font-size",Zt.fontSize,"14px"),fe=ft.extend("--ft-typography-subtitle2-font-weight",Zt.fontWeight,"normal"),he=ft.extend("--ft-typography-subtitle2-letter-spacing",Zt.letterSpacing,"0.098px"),ue=ft.extend("--ft-typography-subtitle2-line-height",Zt.lineHeight,"1.7"),ve=ft.extend("--ft-typography-subtitle2-text-transform",Zt.textTransform,"inherit"),be={fontFamily:ft.extend("--ft-typography-body1-font-family",Wt),fontSize:ft.extend("--ft-typography-body1-font-size",Zt.fontSize,"16px"),fontWeight:ft.extend("--ft-typography-body1-font-weight",Zt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body1-letter-spacing",Zt.letterSpacing,"0.496px"),lineHeight:ft.extend("--ft-typography-body1-line-height",Zt.lineHeight,"1.5"),textTransform:ft.extend("--ft-typography-body1-text-transform",Zt.textTransform,"inherit")},xe=ft.extend("--ft-typography-body2-font-family",Wt),ye=ft.extend("--ft-typography-body2-font-size",Zt.fontSize,"14px"),ge=ft.extend("--ft-typography-body2-font-weight",Zt.fontWeight,"normal"),me=ft.extend("--ft-typography-body2-letter-spacing",Zt.letterSpacing,"0.252px"),$e=ft.extend("--ft-typography-body2-line-height",Zt.lineHeight,"1.4"),we=ft.extend("--ft-typography-body2-text-transform",Zt.textTransform,"inherit"),Oe={fontFamily:ft.extend("--ft-typography-caption-font-family",Wt),fontSize:ft.extend("--ft-typography-caption-font-size",Zt.fontSize,"12px"),fontWeight:ft.extend("--ft-typography-caption-font-weight",Zt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-caption-letter-spacing",Zt.letterSpacing,"0.396px"),lineHeight:ft.extend("--ft-typography-caption-line-height",Zt.lineHeight,"1.33"),textTransform:ft.extend("--ft-typography-caption-text-transform",Zt.textTransform,"inherit")},Se=ft.extend("--ft-typography-breadcrumb-font-family",Wt),ke=ft.extend("--ft-typography-breadcrumb-font-size",Zt.fontSize,"10px"),Ce=ft.extend("--ft-typography-breadcrumb-font-weight",Zt.fontWeight,"normal"),Ee=ft.extend("--ft-typography-breadcrumb-letter-spacing",Zt.letterSpacing,"0.33px"),Ne=ft.extend("--ft-typography-breadcrumb-line-height",Zt.lineHeight,"1.6"),Re=ft.extend("--ft-typography-breadcrumb-text-transform",Zt.textTransform,"inherit"),ze=ft.extend("--ft-typography-overline-font-family",Wt),Me=ft.extend("--ft-typography-overline-font-size",Zt.fontSize,"10px"),Fe=ft.extend("--ft-typography-overline-font-weight",Zt.fontWeight,"normal"),Ue=ft.extend("--ft-typography-overline-letter-spacing",Zt.letterSpacing,"1.5px"),Be=ft.extend("--ft-typography-overline-line-height",Zt.lineHeight,"1.6"),De=ft.extend("--ft-typography-overline-text-transform",Zt.textTransform,"uppercase"),je={fontFamily:ft.extend("--ft-typography-button-font-family",Wt),fontSize:ft.extend("--ft-typography-button-font-size",Zt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Zt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Zt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Zt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Zt.textTransform,"uppercase")},Ae=v`
111
111
  .ft-typography--title {
112
- font-family: ${Vt};
113
- font-size: ${Jt};
114
- font-weight: ${qt};
115
- letter-spacing: ${Xt};
116
- line-height: ${Yt};
117
- text-transform: ${Gt};
112
+ font-family: ${Kt};
113
+ font-size: ${Vt};
114
+ font-weight: ${Jt};
115
+ letter-spacing: ${qt};
116
+ line-height: ${Xt};
117
+ text-transform: ${Yt};
118
118
  }
119
- `,Le=v`
119
+ `,Te=v`
120
120
  .ft-typography--title-dense {
121
- font-family: ${Qt};
122
- font-size: ${te};
123
- font-weight: ${ee};
124
- letter-spacing: ${ie};
125
- line-height: ${oe};
126
- text-transform: ${ne};
121
+ font-family: ${Gt};
122
+ font-size: ${Qt};
123
+ font-weight: ${te};
124
+ letter-spacing: ${ee};
125
+ line-height: ${ie};
126
+ text-transform: ${oe};
127
127
  }
128
- `,Ie=v`
128
+ `,Le=v`
129
129
  .ft-typography--subtitle1 {
130
- font-family: ${se};
131
- font-size: ${re};
132
- font-weight: ${le};
133
- letter-spacing: ${ae};
134
- line-height: ${pe};
135
- text-transform: ${ce};
130
+ font-family: ${ne};
131
+ font-size: ${se};
132
+ font-weight: ${re};
133
+ letter-spacing: ${le};
134
+ line-height: ${ae};
135
+ text-transform: ${pe};
136
136
  }
137
- `,Pe=v`
137
+ `,Ie=v`
138
138
  .ft-typography--subtitle2 {
139
- font-family: ${de};
140
- font-size: ${fe};
141
- font-weight: ${he};
142
- letter-spacing: ${ue};
143
- line-height: ${ve};
144
- text-transform: ${be};
139
+ font-family: ${ce};
140
+ font-size: ${de};
141
+ font-weight: ${fe};
142
+ letter-spacing: ${he};
143
+ line-height: ${ue};
144
+ text-transform: ${ve};
145
145
  }
146
146
 
147
- `,_e=v`
147
+ `,Pe=v`
148
148
  .ft-typography--body1 {
149
- font-family: ${xe.fontFamily};
150
- font-size: ${xe.fontSize};
151
- font-weight: ${xe.fontWeight};
152
- letter-spacing: ${xe.letterSpacing};
153
- line-height: ${xe.lineHeight};
154
- text-transform: ${xe.textTransform};
149
+ font-family: ${be.fontFamily};
150
+ font-size: ${be.fontSize};
151
+ font-weight: ${be.fontWeight};
152
+ letter-spacing: ${be.letterSpacing};
153
+ line-height: ${be.lineHeight};
154
+ text-transform: ${be.textTransform};
155
155
  }
156
- `,He=v`
156
+ `,_e=v`
157
157
  .ft-typography--body2 {
158
- font-family: ${ye};
159
- font-size: ${ge};
160
- font-weight: ${me};
161
- letter-spacing: ${$e};
162
- line-height: ${we};
163
- text-transform: ${Oe};
158
+ font-family: ${xe};
159
+ font-size: ${ye};
160
+ font-weight: ${ge};
161
+ letter-spacing: ${me};
162
+ line-height: ${$e};
163
+ text-transform: ${we};
164
164
  }
165
- `,We=v`
165
+ `,He=v`
166
166
  .ft-typography--caption {
167
- font-family: ${Se.fontFamily};
168
- font-size: ${Se.fontSize};
169
- font-weight: ${Se.fontWeight};
170
- letter-spacing: ${Se.letterSpacing};
171
- line-height: ${Se.lineHeight};
172
- text-transform: ${Se.textTransform};
167
+ font-family: ${Oe.fontFamily};
168
+ font-size: ${Oe.fontSize};
169
+ font-weight: ${Oe.fontWeight};
170
+ letter-spacing: ${Oe.letterSpacing};
171
+ line-height: ${Oe.lineHeight};
172
+ text-transform: ${Oe.textTransform};
173
173
  }
174
- `,Ze=v`
174
+ `,We=v`
175
175
  .ft-typography--breadcrumb {
176
- font-family: ${ke};
177
- font-size: ${Ce};
178
- font-weight: ${Ee};
179
- letter-spacing: ${Ne};
180
- line-height: ${Re};
181
- text-transform: ${ze};
176
+ font-family: ${Se};
177
+ font-size: ${ke};
178
+ font-weight: ${Ce};
179
+ letter-spacing: ${Ee};
180
+ line-height: ${Ne};
181
+ text-transform: ${Re};
182
182
  }
183
- `,Ke=v`
183
+ `,Ze=v`
184
184
  .ft-typography--overline {
185
- font-family: ${Me};
186
- font-size: ${Fe};
187
- font-weight: ${Ue};
188
- letter-spacing: ${Be};
189
- line-height: ${De};
190
- text-transform: ${je};
185
+ font-family: ${ze};
186
+ font-size: ${Me};
187
+ font-weight: ${Fe};
188
+ letter-spacing: ${Ue};
189
+ line-height: ${Be};
190
+ text-transform: ${De};
191
191
  }
192
- `,Ve=v`
192
+ `,Ke=v`
193
193
  .ft-typography--button {
194
- font-family: ${Ae.fontFamily};
195
- font-size: ${Ae.fontSize};
196
- font-weight: ${Ae.fontWeight};
197
- letter-spacing: ${Ae.letterSpacing};
198
- line-height: ${Ae.lineHeight};
199
- text-transform: ${Ae.textTransform};
200
- }
201
- `;class Je extends bt{constructor(){super(...arguments),this.variant=_t.body1}render(){return this.element?Pt`
194
+ font-family: ${je.fontFamily};
195
+ font-size: ${je.fontSize};
196
+ font-weight: ${je.fontWeight};
197
+ letter-spacing: ${je.letterSpacing};
198
+ line-height: ${je.lineHeight};
199
+ text-transform: ${je.textTransform};
200
+ }
201
+ `,Ve=v`
202
+ .ft-typography {
203
+ vertical-align: inherit;
204
+ }
205
+ `;var Je=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class qe extends bt{constructor(){super(...arguments),this.variant=_t.body1}render(){return this.element?Pt`
202
206
  <${Lt(this.element)}
203
207
  class="ft-typography ft-typography--${this.variant}">
204
208
  <slot></slot>
205
209
  </${Lt(this.element)}>
206
210
  `:Pt`
207
211
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
208
- `}}Je.styles=[Te,Le,Ie,Pe,_e,He,We,Ze,Ke,Ve,v`
209
- .ft-typography {
210
- vertical-align: inherit;
211
- }
212
- `],Ht([o()],Je.prototype,"element",void 0),Ht([o()],Je.prototype,"variant",void 0),p("ft-typography")(Je);var qe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Xe={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ft.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ft.external(ut.colorSurface,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system")};class Ye extends bt{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 W`
212
+ `}}qe.styles=[Ae,Te,Le,Ie,Pe,_e,He,We,Ze,Ke,Ve],Je([o()],qe.prototype,"element",void 0),Je([o()],qe.prototype,"variant",void 0),p("ft-typography")(qe);const Xe={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ft.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ft.external(ut.colorSurface,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system")},Ye=v`
213
+ .ft-input-label {
214
+ position: absolute;
215
+ inset: 0;
216
+ display: flex;
217
+ background-color: ${Xe.colorSurface};
218
+ border-radius: ${Xe.borderRadiusS} ${Xe.borderRadiusS} 0 0;
219
+ }
220
+
221
+ .ft-input-label--outlined {
222
+ border-radius: ${Xe.borderRadiusS};
223
+ }
224
+
225
+ .ft-input-label {
226
+ border-color: ${Xe.borderColor};
227
+ }
228
+
229
+ .ft-input-label.ft-input-label--in-error {
230
+ border-color: ${Xe.colorError}
231
+ }
232
+
233
+ .ft-input-label:before,
234
+ .ft-input-label:after {
235
+ content: "";
236
+ display: flex;
237
+ border-bottom-width: 1px;
238
+ border-bottom-style: solid;
239
+ border-color: inherit;
240
+ }
241
+
242
+ .ft-input-label:before {
243
+ width: ${Xe.horizontalSpacing};
244
+ flex-shrink: 0;
245
+ }
246
+
247
+ .ft-input-label:after {
248
+ flex-grow: 1;
249
+ flex-shrink: 1;
250
+ }
251
+
252
+ .ft-input-label--text {
253
+ display: flex;
254
+ flex-shrink: 1;
255
+ position: relative;
256
+ border-bottom-width: 1px;
257
+ border-bottom-style: solid;
258
+ border-color: inherit;
259
+ color: ${Xe.textColor};
260
+ transition: font-size 250ms, line-height 250ms, color 250ms;
261
+ ${ht(Oe.fontSize,Xe.fontSize)};
262
+ ${ht(Oe.lineHeight,Xe.fontSize)};
263
+ }
264
+
265
+ .ft-input-label--in-error .ft-input-label--text {
266
+ color: ${Xe.colorError}
267
+ }
268
+
269
+ .ft-input-label--disabled .ft-input-label--text {
270
+ color: ${Xe.disabledTextColor};
271
+ }
272
+
273
+ .ft-input-label--hidden-text {
274
+ padding: 0 4px;
275
+ opacity: 0;
276
+ }
277
+
278
+ .ft-input-label--floating-text {
279
+ position: absolute;
280
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
281
+ transition: top 250ms;
282
+ overflow: hidden;
283
+ white-space: nowrap;
284
+ text-overflow: ellipsis;
285
+ padding: ${Xe.verticalSpacing} 4px;
286
+ margin: calc(${Xe.verticalSpacing} * -1) 0;
287
+ }
288
+
289
+ .ft-input-label--raised .ft-input-label--text {
290
+ ${ht(Oe.fontSize,Xe.raisedFontSize)};
291
+ ${ht(Oe.lineHeight,Xe.raisedFontSize)};
292
+ }
293
+
294
+ .ft-input-label--raised .ft-input-label--floating-text {
295
+ top: ${Xe.verticalSpacing};
296
+ }
297
+
298
+ .ft-input-label--outlined .ft-input-label--text,
299
+ .ft-input-label--outlined:before,
300
+ .ft-input-label--outlined:after {
301
+ border-top-width: 1px;
302
+ border-top-style: solid;
303
+ }
304
+
305
+ .ft-input-label--outlined:before {
306
+ border-left-width: 1px;
307
+ border-left-style: solid;
308
+ border-radius: ${Xe.borderRadiusS} 0 0 ${Xe.borderRadiusS};
309
+ }
310
+
311
+ .ft-input-label--outlined:after {
312
+ border-right-width: 1px;
313
+ border-right-style: solid;
314
+ border-radius: 0 ${Xe.borderRadiusS} ${Xe.borderRadiusS} 0;
315
+ }
316
+
317
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
318
+ padding: 2px 4px;
319
+ z-index: ${Xe.raisedZIndex};
320
+ background-color: ${Xe.colorSurface};
321
+ border-radius: ${Xe.borderRadiusS};
322
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
323
+ }
324
+
325
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
326
+ border-top: none;
327
+ }
328
+ `;var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Qe extends bt{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 W`
213
329
  <div class="${jt(t)}">
214
330
  ${this.text?W`
215
331
  <div class="ft-input-label--text ft-typography--caption">
@@ -218,123 +334,96 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
218
334
  </div>
219
335
  `:null}
220
336
  </div>
221
- `}}Ye.elementDefinitions={},Ye.styles=[We,v`
222
- .ft-input-label {
223
- position: absolute;
224
- inset: 0;
225
- display: flex;
226
- background-color: ${Xe.colorSurface};
227
- border-radius: ${Xe.borderRadiusS} ${Xe.borderRadiusS} 0 0;
228
- }
229
-
230
- .ft-input-label--outlined {
231
- border-radius: ${Xe.borderRadiusS};
232
- }
233
-
234
- .ft-input-label {
235
- border-color: ${Xe.borderColor};
236
- }
237
-
238
- .ft-input-label.ft-input-label--in-error {
239
- border-color: ${Xe.colorError}
240
- }
241
-
242
- .ft-input-label:before,
243
- .ft-input-label:after {
244
- content: "";
245
- display: flex;
246
- border-bottom-width: 1px;
247
- border-bottom-style: solid;
248
- border-color: inherit;
249
- }
250
-
251
- .ft-input-label:before {
252
- width: ${Xe.horizontalSpacing};
253
- flex-shrink: 0;
254
- }
255
-
256
- .ft-input-label:after {
257
- flex-grow: 1;
258
- flex-shrink: 1;
259
- }
260
-
261
- .ft-input-label--text {
262
- display: flex;
263
- flex-shrink: 1;
264
- position: relative;
265
- border-bottom-width: 1px;
266
- border-bottom-style: solid;
267
- border-color: inherit;
268
- color: ${Xe.textColor};
269
- transition: font-size 250ms, line-height 250ms, color 250ms;
270
- ${ht(Se.fontSize,Xe.fontSize)};
271
- ${ht(Se.lineHeight,Xe.fontSize)};
272
- }
273
-
274
- .ft-input-label--in-error .ft-input-label--text {
275
- color: ${Xe.colorError}
276
- }
277
-
278
- .ft-input-label--disabled .ft-input-label--text {
279
- color: ${Xe.disabledTextColor};
280
- }
281
-
282
- .ft-input-label--hidden-text {
283
- padding: 0 4px;
284
- opacity: 0;
285
- }
286
-
287
- .ft-input-label--floating-text {
288
- position: absolute;
289
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
290
- transition: top 250ms;
291
- overflow: hidden;
292
- white-space: nowrap;
293
- text-overflow: ellipsis;
294
- padding: ${Xe.verticalSpacing} 4px;
295
- margin: calc(${Xe.verticalSpacing} * -1) 0;
296
- }
297
-
298
- .ft-input-label--raised .ft-input-label--text {
299
- ${ht(Se.fontSize,Xe.raisedFontSize)};
300
- ${ht(Se.lineHeight,Xe.raisedFontSize)};
301
- }
302
-
303
- .ft-input-label--raised .ft-input-label--floating-text {
304
- top: ${Xe.verticalSpacing};
305
- }
306
-
307
- .ft-input-label--outlined .ft-input-label--text,
308
- .ft-input-label--outlined:before,
309
- .ft-input-label--outlined:after {
310
- border-top-width: 1px;
311
- border-top-style: solid;
312
- }
313
-
314
- .ft-input-label--outlined:before {
315
- border-left-width: 1px;
316
- border-left-style: solid;
317
- border-radius: ${Xe.borderRadiusS} 0 0 ${Xe.borderRadiusS};
318
- }
319
-
320
- .ft-input-label--outlined:after {
321
- border-right-width: 1px;
322
- border-right-style: solid;
323
- border-radius: 0 ${Xe.borderRadiusS} ${Xe.borderRadiusS} 0;
324
- }
325
-
326
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
327
- padding: 2px 4px;
328
- z-index: ${Xe.raisedZIndex};
329
- background-color: ${Xe.colorSurface};
330
- border-radius: ${Xe.borderRadiusS};
331
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
332
- }
333
-
334
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
335
- border-top: none;
336
- }
337
- `],qe([o({type:String})],Ye.prototype,"text",void 0),qe([o({type:Boolean})],Ye.prototype,"raised",void 0),qe([o({type:Boolean})],Ye.prototype,"outlined",void 0),qe([o({type:Boolean})],Ye.prototype,"disabled",void 0),qe([o({type:Boolean})],Ye.prototype,"error",void 0),p("ft-input-label")(Ye);var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Qe=ft.extend("--ft-ripple-color",ut.colorContent),ti={color:Qe,backgroundColor:ft.extend("--ft-ripple-background-color",Qe),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},ei=ft.extend("--ft-ripple-color",ut.colorPrimary),ii=ei,oi=ft.extend("--ft-ripple-background-color",ei),ni=ft.extend("--ft-ripple-color",ut.colorSecondary),si=ni,ri=ft.extend("--ft-ripple-background-color",ni);class li extends bt{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(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),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 W`
337
+ `}}Qe.elementDefinitions={},Qe.styles=[He,Ye],Ge([o({type:String})],Qe.prototype,"text",void 0),Ge([o({type:Boolean})],Qe.prototype,"raised",void 0),Ge([o({type:Boolean})],Qe.prototype,"outlined",void 0),Ge([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ge([o({type:Boolean})],Qe.prototype,"error",void 0),p("ft-input-label")(Qe);const ti=ft.extend("--ft-ripple-color",ut.colorContent),ei={color:ti,backgroundColor:ft.extend("--ft-ripple-background-color",ti),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},ii=ft.extend("--ft-ripple-color",ut.colorPrimary),oi=ii,ni=ft.extend("--ft-ripple-background-color",ii),si=ft.extend("--ft-ripple-color",ut.colorSecondary),ri=si,li=ft.extend("--ft-ripple-background-color",si),ai=v`
338
+ :host {
339
+ display: contents;
340
+ }
341
+
342
+ .ft-ripple {
343
+ position: absolute;
344
+ inset: 0;
345
+ pointer-events: none;
346
+ }
347
+
348
+ .ft-ripple:not(.ft-ripple--unbounded) {
349
+ overflow: hidden;
350
+ }
351
+
352
+ .ft-ripple .ft-ripple--background,
353
+ .ft-ripple .ft-ripple--effect {
354
+ position: absolute;
355
+ opacity: 0;
356
+ }
357
+
358
+ .ft-ripple .ft-ripple--background {
359
+ background-color: ${ei.backgroundColor};
360
+ }
361
+
362
+ .ft-ripple .ft-ripple--effect {
363
+ background-color: ${ei.color};
364
+ }
365
+
366
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
367
+ background-color: ${li};
368
+ }
369
+
370
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
371
+ background-color: ${ri};
372
+ }
373
+
374
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
375
+ background-color: ${ni};
376
+ }
377
+
378
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
379
+ background-color: ${oi};
380
+ }
381
+
382
+ .ft-ripple .ft-ripple--background {
383
+ top: 0;
384
+ left: 0;
385
+ height: 100%;
386
+ width: 100%;
387
+ transition: opacity 75ms linear;
388
+ }
389
+
390
+ .ft-ripple .ft-ripple--effect,
391
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
392
+ border-radius: 50%;
393
+ }
394
+
395
+ .ft-ripple .ft-ripple--effect {
396
+ transform: translate(-50%, -50%) scale(0.15);
397
+ transition: transform 300ms ease, opacity 75ms linear;
398
+ }
399
+
400
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
401
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
402
+ left: 50%;
403
+ top: 50%;
404
+ }
405
+
406
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
407
+ transform: translate(-50%, -50%);
408
+ }
409
+
410
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
411
+ opacity: ${ei.opacityContentOnSurfaceHover};
412
+ }
413
+
414
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
415
+ opacity: ${ei.opacityContentOnSurfaceSelected};
416
+ }
417
+
418
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
419
+ opacity: ${ei.opacityContentOnSurfaceFocused};
420
+ }
421
+
422
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
423
+ opacity: ${ei.opacityContentOnSurfacePressed};
424
+ transform: translate(-50%, -50%) scale(1);
425
+ }
426
+ `;var pi,ci,di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class fi extends bt{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(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),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 W`
338
427
  <style>
339
428
  .ft-ripple .ft-ripple--effect,
340
429
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -351,138 +440,196 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
351
440
  <div class="ft-ripple--background"></div>
352
441
  <div class="ft-ripple--effect"></div>
353
442
  </div>
354
- `}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 ai,pi;li.elementDefinitions={},li.styles=v`
355
- :host {
356
- display: contents;
357
- }
443
+ `}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()}}fi.elementDefinitions={},fi.styles=ai,di([o({type:Boolean})],fi.prototype,"primary",void 0),di([o({type:Boolean})],fi.prototype,"secondary",void 0),di([o({type:Boolean})],fi.prototype,"unbounded",void 0),di([o({type:Boolean})],fi.prototype,"activated",void 0),di([o({type:Boolean})],fi.prototype,"selected",void 0),di([o({type:Boolean})],fi.prototype,"disabled",void 0),di([n()],fi.prototype,"hovered",void 0),di([n()],fi.prototype,"focused",void 0),di([n()],fi.prototype,"pressed",void 0),di([n()],fi.prototype,"rippling",void 0),di([n()],fi.prototype,"rippleSize",void 0),di([n()],fi.prototype,"originX",void 0),di([n()],fi.prototype,"originY",void 0),di([r(".ft-ripple")],fi.prototype,"ripple",void 0),di([r(".ft-ripple--effect")],fi.prototype,"rippleEffect",void 0),p("ft-ripple")(fi),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;"}(pi||(pi={})),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;"}(ci||(ci={})),new Map([...["abw"].map((t=>[t,ci.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,ci.AUDIO])),...["avi"].map((t=>[t,ci.AVI])),...["chm","xhs"].map((t=>[t,ci.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,ci.CODE])),...["csv"].map((t=>[t,ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ci.DITA])),...["epub"].map((t=>[t,ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ci.EXCEL])),...["flac"].map((t=>[t,ci.FLAC])),...["gif"].map((t=>[t,ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,ci.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,ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ci.JPEG])),...["json"].map((t=>[t,ci.JSON])),...["m4a","m4p"].map((t=>[t,ci.M4A])),...["mov","qt"].map((t=>[t,ci.MOV])),...["mp3"].map((t=>[t,ci.MP3])),...["mp4","m4v"].map((t=>[t,ci.MP4])),...["ogg","oga"].map((t=>[t,ci.OGG])),...["pdf","ps"].map((t=>[t,ci.PDF])),...["png"].map((t=>[t,ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ci.POWERPOINT])),...["rar"].map((t=>[t,ci.RAR])),...["stp"].map((t=>[t,ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ci.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,ci.VIDEO])),...["wav"].map((t=>[t,ci.WAV])),...["wma"].map((t=>[t,ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ci.YAML])),...["zip"].map((t=>[t,ci.ZIP]))]);const hi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")},ui=v`
444
+ :host {
445
+ display: inline-block;
446
+ }
358
447
 
359
- .ft-ripple {
360
- position: absolute;
361
- inset: 0;
362
- pointer-events: none;
363
- }
448
+ :host, i.ft-icon {
449
+ width: ${hi.size};
450
+ height: ${hi.size};
451
+ text-align: center;
452
+ }
364
453
 
365
- .ft-ripple:not(.ft-ripple--unbounded) {
366
- overflow: hidden;
367
- }
454
+ i.ft-icon {
455
+ font-size: ${hi.size};
456
+ line-height: 1;
457
+ font-weight: normal;
458
+ text-transform: none;
459
+ font-style: normal;
460
+ font-variant: normal;
461
+ speak: none;
462
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
463
+ text-rendering: auto;
464
+ -webkit-font-smoothing: antialiased;
465
+ -moz-osx-font-smoothing: grayscale;
466
+ vertical-align: ${hi.verticalAlign};
467
+ }
368
468
 
369
- .ft-ripple .ft-ripple--background,
370
- .ft-ripple .ft-ripple--effect {
371
- position: absolute;
372
- opacity: 0;
373
- }
469
+ .ft-icon--fluid-topics {
470
+ font-family: ${hi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
471
+ }
374
472
 
375
- .ft-ripple .ft-ripple--background {
376
- background-color: ${ti.backgroundColor};
377
- }
473
+ .ft-icon--file-format {
474
+ font-family: ${hi.fileFormatFontFamily}, ft-mime, sans-serif;
475
+ }
378
476
 
379
- .ft-ripple .ft-ripple--effect {
380
- background-color: ${ti.color};
381
- }
477
+ .ft-icon--material {
478
+ font-family: ${hi.materialFontFamily}, "Material Icons", sans-serif;
479
+ }
480
+ `;var vi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(vi||(vi={}));var bi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class xi extends bt{constructor(){super(...arguments),this.variant=vi.fluid_topics,this.resolvedIcon=K}render(){const t="material"!==this.variant||this.value;return W`
481
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
482
+ ${Dt(this.resolvedIcon)}
483
+ <slot ?hidden=${t}></slot>
484
+ </i>
485
+ `}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 i=this.value||this.textContent;switch(this.variant){case vi.file_format:this.resolvedIcon=null!==(t=ci[i.toUpperCase()])&&void 0!==t?t:i;break;case vi.fluid_topics:this.resolvedIcon=null!==(e=pi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}xi.elementDefinitions={},xi.styles=ui,bi([o()],xi.prototype,"variant",void 0),bi([o()],xi.prototype,"value",void 0),bi([n()],xi.prototype,"resolvedIcon",void 0),bi([r("slot")],xi.prototype,"slottedContent",void 0),p("ft-icon")(xi);const yi={labelSize:ft.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ft.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ft.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ft.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ft.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ft.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ft.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ft.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ft.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(ut.colorPrimary,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),elevation02:ft.external(ut.elevation02,"Design system"),colorError:ft.external(ut.colorError,"Design system")},gi=v`
486
+ *:focus {
487
+ outline: none;
488
+ }
382
489
 
383
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
384
- background-color: ${ri};
385
- }
490
+ .ft-select {
491
+ display: flex;
492
+ flex-direction: column;
493
+ align-items: stretch;
494
+ }
386
495
 
387
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
388
- background-color: ${si};
389
- }
496
+ .ft-select--main-panel {
497
+ position: relative;
498
+ display: flex;
499
+ height: calc(4 * ${yi.verticalSpacing} + ${yi.labelSize} + ${yi.selectedOptionSize});
500
+ }
390
501
 
391
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
392
- background-color: ${oi};
393
- }
502
+ .ft-select--input-panel {
503
+ flex-grow: 1;
504
+ position: relative;
505
+ display: flex;
506
+ align-items: center;
507
+ overflow: hidden;
508
+ padding-left: 16px;
509
+ padding-right: 8px;
510
+ gap: 8px;
511
+ color: ${yi.selectedOptionColor};
512
+ ${ht(ei.color,yi.selectedOptionColor)};
513
+ }
394
514
 
395
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
396
- background-color: ${ii};
397
- }
515
+ .ft-select--input-panel,
516
+ .ft-select--option {
517
+ ${ht(ei.opacityContentOnSurfaceHover,"0.08")};
518
+ ${ht(ei.opacityContentOnSurfacePressed,"0.04")};
519
+ }
398
520
 
399
- .ft-ripple .ft-ripple--background {
400
- top: 0;
401
- left: 0;
402
- height: 100%;
403
- width: 100%;
404
- transition: opacity 75ms linear;
405
- }
521
+ .ft-select--input-panel > *:not(ft-ripple),
522
+ .ft-select--option > *:not(ft-ripple) {
523
+ position: relative;
524
+ }
406
525
 
407
- .ft-ripple .ft-ripple--effect,
408
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
409
- border-radius: 50%;
410
- }
526
+ .ft-select--disabled .ft-select--input-panel,
527
+ .ft-select--disabled .ft-select--option {
528
+ color: ${yi.colorOnSurfaceDisabled};
529
+ }
411
530
 
412
- .ft-ripple .ft-ripple--effect {
413
- transform: translate(-50%, -50%) scale(0.15);
414
- transition: transform 300ms ease, opacity 75ms linear;
415
- }
531
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
532
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
533
+ cursor: pointer;
534
+ }
416
535
 
417
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
418
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
419
- left: 50%;
420
- top: 50%;
421
- }
536
+ ft-input-label {
537
+ ${ht(Xe.fontSize,yi.selectedOptionSize)};
538
+ ${ht(Xe.raisedFontSize,yi.labelSize)};
539
+ ${ht(Xe.verticalSpacing,yi.verticalSpacing)};
540
+ }
422
541
 
423
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
424
- transform: translate(-50%, -50%);
425
- }
542
+ .ft-select:not(.ft-select--disabled):focus-within ft-icon {
543
+ color: ${yi.colorPrimary};
544
+ }
426
545
 
427
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
428
- opacity: ${ti.opacityContentOnSurfaceHover};
429
- }
546
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
547
+ ${ht(Xe.borderColor,yi.colorPrimary)};
548
+ ${ht(Xe.textColor,yi.colorPrimary)};
549
+ }
430
550
 
431
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
432
- opacity: ${ti.opacityContentOnSurfaceSelected};
433
- }
551
+ .ft-select--selected-option {
552
+ display: block;
553
+ flex-grow: 1;
554
+ flex-shrink: 1;
555
+ overflow: hidden;
556
+ white-space: nowrap;
557
+ text-overflow: ellipsis;
558
+ ${ht(be.fontSize,yi.selectedOptionSize)};
559
+ ${ht(be.lineHeight,yi.selectedOptionSize)};
560
+ }
434
561
 
435
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
436
- opacity: ${ti.opacityContentOnSurfaceFocused};
437
- }
562
+ .ft-select--in-error .ft-select--selected-option {
563
+ color: ${yi.colorError};
564
+ }
438
565
 
439
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
440
- opacity: ${ti.opacityContentOnSurfacePressed};
441
- transform: translate(-50%, -50%) scale(1);
442
- }
443
- `,Ge([o({type:Boolean})],li.prototype,"primary",void 0),Ge([o({type:Boolean})],li.prototype,"secondary",void 0),Ge([o({type:Boolean})],li.prototype,"unbounded",void 0),Ge([o({type:Boolean})],li.prototype,"activated",void 0),Ge([o({type:Boolean})],li.prototype,"selected",void 0),Ge([o({type:Boolean})],li.prototype,"disabled",void 0),Ge([n()],li.prototype,"hovered",void 0),Ge([n()],li.prototype,"focused",void 0),Ge([n()],li.prototype,"pressed",void 0),Ge([n()],li.prototype,"rippling",void 0),Ge([n()],li.prototype,"rippleSize",void 0),Ge([n()],li.prototype,"originX",void 0),Ge([n()],li.prototype,"originY",void 0),Ge([r(".ft-ripple")],li.prototype,"ripple",void 0),Ge([r(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),p("ft-ripple")(li),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;"}(ai||(ai={})),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;"}(pi||(pi={})),new Map([...["abw"].map((t=>[t,pi.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,pi.AUDIO])),...["avi"].map((t=>[t,pi.AVI])),...["chm","xhs"].map((t=>[t,pi.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,pi.CODE])),...["csv"].map((t=>[t,pi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,pi.DITA])),...["epub"].map((t=>[t,pi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,pi.EXCEL])),...["flac"].map((t=>[t,pi.FLAC])),...["gif"].map((t=>[t,pi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,pi.GZIP])),...["html","htm","xhtml"].map((t=>[t,pi.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,pi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,pi.JPEG])),...["json"].map((t=>[t,pi.JSON])),...["m4a","m4p"].map((t=>[t,pi.M4A])),...["mov","qt"].map((t=>[t,pi.MOV])),...["mp3"].map((t=>[t,pi.MP3])),...["mp4","m4v"].map((t=>[t,pi.MP4])),...["ogg","oga"].map((t=>[t,pi.OGG])),...["pdf","ps"].map((t=>[t,pi.PDF])),...["png"].map((t=>[t,pi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,pi.POWERPOINT])),...["rar"].map((t=>[t,pi.RAR])),...["stp"].map((t=>[t,pi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,pi.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,pi.VIDEO])),...["wav"].map((t=>[t,pi.WAV])),...["wma"].map((t=>[t,pi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,pi.WORD])),...["xml","xsl","rdf"].map((t=>[t,pi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,pi.YAML])),...["zip"].map((t=>[t,pi.ZIP]))]);var ci,di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ci||(ci={}));const fi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")};class hi extends bt{constructor(){super(...arguments),this.variant=ci.fluid_topics,this.resolvedIcon=K}render(){const t="material"!==this.variant||this.value;return W`
444
- <i class="ft-icon ${"ft-icon--"+this.variant}">
445
- ${Dt(this.resolvedIcon)}
446
- <slot ?hidden=${t}></slot>
447
- </i>
448
- `}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 i=this.value||this.textContent;switch(this.variant){case ci.file_format:this.resolvedIcon=null!==(t=pi[i.toUpperCase()])&&void 0!==t?t:i;break;case ci.fluid_topics:this.resolvedIcon=null!==(e=ai[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}hi.elementDefinitions={},hi.styles=v`
449
- :host {
450
- display: inline-block;
451
- }
566
+ ft-icon {
567
+ flex-shrink: 0;
568
+ }
452
569
 
453
- :host, i.ft-icon {
454
- width: ${fi.size};
455
- height: ${fi.size};
456
- text-align: center;
457
- }
570
+ slot {
571
+ display: none;
572
+ }
458
573
 
459
- i.ft-icon {
460
- font-size: ${fi.size};
461
- line-height: 1;
462
- font-weight: normal;
463
- text-transform: none;
464
- font-style: normal;
465
- font-variant: normal;
466
- speak: none;
467
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
468
- text-rendering: auto;
469
- -webkit-font-smoothing: antialiased;
470
- -moz-osx-font-smoothing: grayscale;
471
- vertical-align: ${fi.verticalAlign};
472
- }
574
+ .ft-select--filled .ft-select--input-panel {
575
+ border-radius: ${yi.borderRadiusS} ${yi.borderRadiusS} 0 0;
576
+ }
473
577
 
474
- .ft-icon--fluid-topics {
475
- font-family: ${fi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
476
- }
578
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
579
+ align-self: stretch;
580
+ padding-top: calc(${yi.labelSize} + 2 * ${yi.verticalSpacing});
581
+ }
477
582
 
478
- .ft-icon--file-format {
479
- font-family: ${fi.fileFormatFontFamily}, ft-mime, sans-serif;
480
- }
583
+ .ft-select--outlined .ft-select--input-panel {
584
+ border-radius: ${yi.borderRadiusS};
585
+ }
481
586
 
482
- .ft-icon--material {
483
- font-family: ${fi.materialFontFamily}, "Material Icons", sans-serif;
484
- }
485
- `,di([o()],hi.prototype,"variant",void 0),di([o()],hi.prototype,"value",void 0),di([n()],hi.prototype,"resolvedIcon",void 0),di([r("slot")],hi.prototype,"slottedContent",void 0),p("ft-icon")(hi);var ui=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class vi extends bt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vi.elementDefinitions={},ui([o({type:String})],vi.prototype,"label",void 0),ui([o({type:Object,converter:t=>t})],vi.prototype,"value",void 0),ui([o({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0);const bi={labelSize:ft.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ft.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ft.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ft.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ft.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ft.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ft.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ft.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ft.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(ut.colorPrimary,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),elevation02:ft.external(ut.elevation02,"Design system"),colorError:ft.external(ut.colorError,"Design system")};class xi extends bt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
587
+ .ft-select--options {
588
+ display: none;
589
+ position: absolute;
590
+ top: 100%;
591
+ left: 0;
592
+ right: 0;
593
+ color: ${yi.optionsColor};
594
+ background: ${yi.colorSurface};
595
+ z-index: ${yi.optionsZIndex};
596
+ box-shadow: ${yi.elevation02};
597
+ }
598
+
599
+ .ft-select--fixed .ft-select--options {
600
+ position: fixed;
601
+ right: unset;
602
+ /* left and top are set dynamically */
603
+ }
604
+
605
+ .ft-select--options-displayed .ft-select--options {
606
+ display: block;
607
+ max-height: ${yi.optionsHeight};
608
+ overflow-y: auto;
609
+ }
610
+
611
+ .ft-select--option {
612
+ position: relative;
613
+ padding: 4px 16px;
614
+ min-height: 32px;
615
+ display: flex;
616
+ align-items: center;
617
+ }
618
+
619
+ .ft-select--option span {
620
+ text-overflow: ellipsis;
621
+ overflow: hidden;
622
+ }
623
+
624
+ .ft-select--helper-text {
625
+ padding: 0 12px 0 16px;
626
+ color: ${yi.helperColor};
627
+ }
628
+
629
+ .ft-select--in-error .ft-select--helper-text {
630
+ color: ${yi.colorError};
631
+ }
632
+ `;var mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class $i extends bt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}$i.elementDefinitions={},mi([o({type:String})],$i.prototype,"label",void 0),mi([o({type:Object,converter:t=>t})],$i.prototype,"value",void 0),mi([o({type:Boolean,reflect:!0})],$i.prototype,"selected",void 0);class wi extends bt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
486
633
  <div class="${jt(a)}" part="container">
487
634
  <div class="ft-select--main-panel" part="main-panel">
488
635
  <ft-input-label text="${this.label}"
@@ -530,154 +677,130 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
530
677
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
531
678
  <span>${t.label}</span>
532
679
  </div>
533
- `}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,s;let r;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(),r=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(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.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)}}xi.elementDefinitions={"ft-input-label":Ye,"ft-typography":Je,"ft-ripple":li,"ft-icon":hi},xi.styles=[He,We,v`
534
- *:focus {
535
- outline: none;
536
- }
537
-
538
- .ft-select {
539
- display: flex;
540
- flex-direction: column;
541
- align-items: stretch;
542
- }
543
-
544
- .ft-select--main-panel {
545
- position: relative;
546
- display: flex;
547
- height: calc(4 * ${bi.verticalSpacing} + ${bi.labelSize} + ${bi.selectedOptionSize});
548
- }
549
-
550
- .ft-select--input-panel {
551
- flex-grow: 1;
552
- position: relative;
553
- display: flex;
554
- align-items: center;
555
- overflow: hidden;
556
- padding-left: 16px;
557
- padding-right: 8px;
558
- gap: 8px;
559
- color: ${bi.selectedOptionColor};
560
- ${ht(ti.color,bi.selectedOptionColor)};
561
- }
562
-
563
- .ft-select--input-panel,
564
- .ft-select--option {
565
- ${ht(ti.opacityContentOnSurfaceHover,"0.08")};
566
- ${ht(ti.opacityContentOnSurfacePressed,"0.04")};
567
- }
568
-
569
- .ft-select--input-panel > *:not(ft-ripple),
570
- .ft-select--option > *:not(ft-ripple) {
571
- position: relative;
572
- }
573
-
574
- .ft-select--disabled .ft-select--input-panel,
575
- .ft-select--disabled .ft-select--option {
576
- color: ${bi.colorOnSurfaceDisabled};
577
- }
578
-
579
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
580
- .ft-select:not(.ft-select--disabled) .ft-select--option {
581
- cursor: pointer;
582
- }
583
-
584
- ft-input-label {
585
- ${ht(Xe.fontSize,bi.selectedOptionSize)};
586
- ${ht(Xe.raisedFontSize,bi.labelSize)};
587
- ${ht(Xe.verticalSpacing,bi.verticalSpacing)};
588
- }
589
-
590
- .ft-select:not(.ft-select--disabled):focus-within ft-icon {
591
- color: ${bi.colorPrimary};
592
- }
593
-
594
- .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
595
- ${ht(Xe.borderColor,bi.colorPrimary)};
596
- ${ht(Xe.textColor,bi.colorPrimary)};
597
- }
598
-
599
- .ft-select--selected-option {
600
- display: block;
601
- flex-grow: 1;
602
- flex-shrink: 1;
603
- overflow: hidden;
604
- white-space: nowrap;
605
- text-overflow: ellipsis;
606
- ${ht(xe.fontSize,bi.selectedOptionSize)};
607
- ${ht(xe.lineHeight,bi.selectedOptionSize)};
608
- }
609
-
610
- .ft-select--in-error .ft-select--selected-option {
611
- color: ${bi.colorError};
612
- }
613
-
614
- ft-icon {
615
- flex-shrink: 0;
616
- }
617
-
618
- slot {
619
- display: none;
620
- }
621
-
622
- .ft-select--filled .ft-select--input-panel {
623
- border-radius: ${bi.borderRadiusS} ${bi.borderRadiusS} 0 0;
624
- }
625
-
626
- .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
627
- align-self: stretch;
628
- padding-top: calc(${bi.labelSize} + 2 * ${bi.verticalSpacing});
629
- }
630
-
631
- .ft-select--outlined .ft-select--input-panel {
632
- border-radius: ${bi.borderRadiusS};
633
- }
634
-
635
- .ft-select--options {
636
- display: none;
637
- position: absolute;
638
- top: 100%;
639
- left: 0;
640
- right: 0;
641
- color: ${bi.optionsColor};
642
- background: ${bi.colorSurface};
643
- z-index: ${bi.optionsZIndex};
644
- box-shadow: ${bi.elevation02};
645
- }
646
-
647
- .ft-select--fixed .ft-select--options {
648
- position: fixed;
649
- right: unset;
650
- /* left and top are set dynamically */
651
- }
652
-
653
- .ft-select--options-displayed .ft-select--options {
654
- display: block;
655
- max-height: ${bi.optionsHeight};
656
- overflow-y: auto;
657
- }
658
-
659
- .ft-select--option {
660
- position: relative;
661
- padding: 4px 16px;
662
- min-height: 32px;
663
- display: flex;
664
- align-items: center;
665
- }
666
-
667
- .ft-select--option span {
668
- text-overflow: ellipsis;
669
- overflow: hidden;
670
- }
671
-
672
- .ft-select--helper-text {
673
- padding: 0 12px 0 16px;
674
- color: ${bi.helperColor};
675
- }
676
-
677
- .ft-select--in-error .ft-select--helper-text {
678
- color: ${bi.colorError};
679
- }
680
- `],ui([o({type:String})],xi.prototype,"label",void 0),ui([o({type:String})],xi.prototype,"helper",void 0),ui([o({type:Boolean})],xi.prototype,"outlined",void 0),ui([o({type:Boolean})],xi.prototype,"disabled",void 0),ui([o({type:Boolean})],xi.prototype,"error",void 0),ui([o({type:Boolean})],xi.prototype,"fixedMenuPosition",void 0),ui([o({type:Array})],xi.prototype,"options",void 0),ui([n()],xi.prototype,"selectedOption",void 0),ui([n()],xi.prototype,"optionsDisplayed",void 0),ui([n()],xi.prototype,"focusOptions",void 0),ui([r(".ft-select")],xi.prototype,"container",void 0),ui([r(".ft-select--options")],xi.prototype,"optionsMenu",void 0),ui([r(".ft-select--input-panel")],xi.prototype,"mainPanel",void 0),ui([r(".ft-select--option:first-child")],xi.prototype,"firstOption",void 0),ui([r(".ft-select--option:focus")],xi.prototype,"focusedOption",void 0),ui([r(".ft-select--option.ft-select--option-selected")],xi.prototype,"selectedOptionElement",void 0),ui([r(".ft-select--option:last-child")],xi.prototype,"lastOption",void 0),ui([r("slot")],xi.prototype,"optionsSlot",void 0),p("ft-select")(xi),p("ft-select-option")(vi);var yi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const gi={fontSize:ft.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ft.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ft.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ft.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ft.external(ut.colorPrimary,"Design system"),colorOnSurface:ft.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system"),prefixColor:ft.extend("--ft-text-field-prefix-color",ut.colorOnSurfaceMedium),iconColor:ft.extend("--ft-text-field-icon-color",ut.colorOnSurfaceMedium)};class mi extends bt{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 W`
680
+ `}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,s;let r;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(),r=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(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.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)}}wi.elementDefinitions={"ft-input-label":Qe,"ft-typography":qe,"ft-ripple":fi,"ft-icon":xi},wi.styles=[_e,He,gi],mi([o({type:String})],wi.prototype,"label",void 0),mi([o({type:String})],wi.prototype,"helper",void 0),mi([o({type:Boolean})],wi.prototype,"outlined",void 0),mi([o({type:Boolean})],wi.prototype,"disabled",void 0),mi([o({type:Boolean})],wi.prototype,"error",void 0),mi([o({type:Boolean})],wi.prototype,"fixedMenuPosition",void 0),mi([o({type:Array})],wi.prototype,"options",void 0),mi([n()],wi.prototype,"selectedOption",void 0),mi([n()],wi.prototype,"optionsDisplayed",void 0),mi([n()],wi.prototype,"focusOptions",void 0),mi([r(".ft-select")],wi.prototype,"container",void 0),mi([r(".ft-select--options")],wi.prototype,"optionsMenu",void 0),mi([r(".ft-select--input-panel")],wi.prototype,"mainPanel",void 0),mi([r(".ft-select--option:first-child")],wi.prototype,"firstOption",void 0),mi([r(".ft-select--option:focus")],wi.prototype,"focusedOption",void 0),mi([r(".ft-select--option.ft-select--option-selected")],wi.prototype,"selectedOptionElement",void 0),mi([r(".ft-select--option:last-child")],wi.prototype,"lastOption",void 0),mi([r("slot")],wi.prototype,"optionsSlot",void 0),p("ft-select")(wi),p("ft-select-option")($i);const Oi={fontSize:ft.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ft.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ft.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ft.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ft.external(ut.colorPrimary,"Design system"),colorOnSurface:ft.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system"),prefixColor:ft.extend("--ft-text-field-prefix-color",ut.colorOnSurfaceMedium),iconColor:ft.extend("--ft-text-field-icon-color",ut.colorOnSurfaceMedium)},Si=v`
681
+ *:focus {
682
+ outline: none;
683
+ }
684
+
685
+ .ft-text-field {
686
+ display: flex;
687
+ flex-direction: column;
688
+ align-items: stretch;
689
+ }
690
+
691
+ ft-input-label {
692
+ ${ht(Xe.fontSize,Oi.fontSize)};
693
+ ${ht(Xe.raisedFontSize,Oi.labelSize)};
694
+ ${ht(Xe.verticalSpacing,Oi.verticalSpacing)};
695
+ ${ht(Xe.horizontalSpacing,v`calc(${Oi.horizontalSpacing} - 4px)`)};
696
+ }
697
+
698
+ .ft-text-field--main-panel {
699
+ position: relative;
700
+ display: flex;
701
+ height: calc(4 * ${Oi.verticalSpacing} + ${Oi.labelSize} + ${Oi.fontSize});
702
+ }
703
+
704
+ .ft-text-field--input-panel {
705
+ flex-grow: 1;
706
+ position: relative;
707
+ display: flex;
708
+ align-items: center;
709
+ overflow: hidden;
710
+ }
711
+
712
+ .ft-text-field--input-panel ft-ripple {
713
+ ${ht(ei.opacityContentOnSurfaceHover,"0.08")};
714
+ ${ht(ei.opacityContentOnSurfacePressed,"0.04")};
715
+ }
716
+
717
+ .ft-text-field--input-wrapper {
718
+ flex-grow: 1;
719
+ flex-shrink: 1;
720
+
721
+ display: flex;
722
+ align-items: center;
723
+
724
+ ${ht(be.fontSize,Oi.fontSize)};
725
+ ${ht(be.lineHeight,Oi.fontSize)};
726
+
727
+ padding: 0 ${Oi.horizontalSpacing};
728
+ }
729
+
730
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
731
+ align-items: flex-end;
732
+ padding: 0 ${Oi.horizontalSpacing} ${Oi.verticalSpacing} ${Oi.horizontalSpacing};
733
+ }
734
+
735
+ .ft-text-field--prefix {
736
+ display: none;
737
+ color: ${Oi.prefixColor}
738
+ }
739
+
740
+ .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
741
+ display: block;
742
+ }
743
+
744
+ .ft-text-field--input {
745
+ display: block;
746
+ position: relative;
747
+ flex-grow: 1;
748
+ flex-shrink: 1;
749
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
750
+
751
+ color: ${Oi.colorOnSurface};
752
+ padding: calc(2 * ${Oi.verticalSpacing}) 0;
753
+ border: none;
754
+ background: none;
755
+ }
756
+
757
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
758
+ padding-bottom: 0;
759
+ padding-top: calc(${Oi.labelSize} + 2 * ${Oi.verticalSpacing});
760
+ }
761
+
762
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
763
+ .ft-text-field--input::-webkit-list-button {
764
+ display: none !important;
765
+ }
766
+
767
+ .ft-text-field--disabled .ft-text-field--input {
768
+ color: ${Oi.colorOnSurfaceDisabled};
769
+ }
770
+
771
+ .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
772
+ cursor: pointer;
773
+ }
774
+
775
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
776
+ ${ht(Xe.borderColor,Oi.colorPrimary)};
777
+ ${ht(Xe.textColor,Oi.colorPrimary)};
778
+ }
779
+
780
+ .ft-text-field--filled .ft-text-field--input-panel {
781
+ border-radius: ${Oi.borderRadiusS} ${Oi.borderRadiusS} 0 0;
782
+ }
783
+
784
+ .ft-text-field--outlined .ft-text-field--input-panel {
785
+ border-radius: ${Oi.borderRadiusS};
786
+ }
787
+
788
+ .ft-text-field--helper-text {
789
+ padding: 0 12px 0 ${Oi.horizontalSpacing};
790
+ color: ${Oi.helperColor};
791
+ }
792
+
793
+ .ft-text-field--in-error .ft-text-field--input,
794
+ .ft-text-field--in-error .ft-text-field--helper-text,
795
+ .ft-text-field--in-error .ft-text-field--prefix {
796
+ color: ${Oi.colorError};
797
+ }
798
+
799
+ .ft-text-field--icon {
800
+ padding-right: ${Oi.horizontalSpacing};
801
+ color: ${Oi.iconColor};
802
+ }
803
+ `;var ki=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ci extends bt{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 W`
681
804
  <div class="${jt(t)}">
682
805
  <div class="ft-text-field--main-panel">
683
806
  <ft-input-label text="${this.label}"
@@ -712,130 +835,39 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
712
835
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
713
836
  </ft-typography>`:void 0}
714
837
  </div>
715
- `}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)||""}}mi.elementDefinitions={"ft-input-label":Ye,"ft-ripple":li,"ft-typography":Je,"ft-icon":hi},mi.styles=[_e,v`
716
- *:focus {
717
- outline: none;
718
- }
719
-
720
- .ft-text-field {
721
- display: flex;
722
- flex-direction: column;
723
- align-items: stretch;
724
- }
725
-
726
- ft-input-label {
727
- ${ht(Xe.fontSize,gi.fontSize)};
728
- ${ht(Xe.raisedFontSize,gi.labelSize)};
729
- ${ht(Xe.verticalSpacing,gi.verticalSpacing)};
730
- ${ht(Xe.horizontalSpacing,v`calc(${gi.horizontalSpacing} - 4px)`)};
731
- }
732
-
733
- .ft-text-field--main-panel {
734
- position: relative;
735
- display: flex;
736
- height: calc(4 * ${gi.verticalSpacing} + ${gi.labelSize} + ${gi.fontSize});
737
- }
738
-
739
- .ft-text-field--input-panel {
740
- flex-grow: 1;
741
- position: relative;
742
- display: flex;
743
- align-items: center;
744
- overflow: hidden;
745
- }
746
-
747
- .ft-text-field--input-panel ft-ripple {
748
- ${ht(ti.opacityContentOnSurfaceHover,"0.08")};
749
- ${ht(ti.opacityContentOnSurfacePressed,"0.04")};
750
- }
751
-
752
- .ft-text-field--input-wrapper {
753
- flex-grow: 1;
754
- flex-shrink: 1;
755
-
756
- display: flex;
757
- align-items: center;
758
-
759
- ${ht(xe.fontSize,gi.fontSize)};
760
- ${ht(xe.lineHeight,gi.fontSize)};
761
-
762
- padding: 0 ${gi.horizontalSpacing};
763
- }
764
-
765
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
766
- align-items: flex-end;
767
- padding: 0 ${gi.horizontalSpacing} ${gi.verticalSpacing} ${gi.horizontalSpacing};
768
- }
769
-
770
- .ft-text-field--prefix {
771
- display: none;
772
- color: ${gi.prefixColor}
773
- }
774
-
775
- .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
776
- display: block;
777
- }
778
-
779
- .ft-text-field--input {
780
- display: block;
781
- position: relative;
782
- flex-grow: 1;
783
- flex-shrink: 1;
784
- min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
785
-
786
- color: ${gi.colorOnSurface};
787
- padding: calc(2 * ${gi.verticalSpacing}) 0;
788
- border: none;
789
- background: none;
790
- }
791
-
792
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
793
- padding-bottom: 0;
794
- padding-top: calc(${gi.labelSize} + 2 * ${gi.verticalSpacing});
795
- }
796
-
797
- .ft-text-field--input::-webkit-calendar-picker-indicator,
798
- .ft-text-field--input::-webkit-list-button {
799
- display: none !important;
800
- }
801
-
802
- .ft-text-field--disabled .ft-text-field--input {
803
- color: ${gi.colorOnSurfaceDisabled};
804
- }
805
-
806
- .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
807
- cursor: pointer;
808
- }
809
-
810
- .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
811
- ${ht(Xe.borderColor,gi.colorPrimary)};
812
- ${ht(Xe.textColor,gi.colorPrimary)};
813
- }
814
-
815
- .ft-text-field--filled .ft-text-field--input-panel {
816
- border-radius: ${gi.borderRadiusS} ${gi.borderRadiusS} 0 0;
817
- }
818
-
819
- .ft-text-field--outlined .ft-text-field--input-panel {
820
- border-radius: ${gi.borderRadiusS};
821
- }
822
-
823
- .ft-text-field--helper-text {
824
- padding: 0 12px 0 ${gi.horizontalSpacing};
825
- color: ${gi.helperColor};
826
- }
827
-
828
- .ft-text-field--in-error .ft-text-field--input,
829
- .ft-text-field--in-error .ft-text-field--helper-text,
830
- .ft-text-field--in-error .ft-text-field--prefix {
831
- color: ${gi.colorError};
832
- }
833
-
834
- .ft-text-field--icon {
835
- padding-right: ${gi.horizontalSpacing};
836
- color: ${gi.iconColor};
837
- }
838
- `],yi([o({type:String})],mi.prototype,"label",void 0),yi([o({reflect:!0})],mi.prototype,"value",void 0),yi([o({type:String})],mi.prototype,"helper",void 0),yi([o({type:Boolean})],mi.prototype,"outlined",void 0),yi([o({type:Boolean})],mi.prototype,"disabled",void 0),yi([o({type:Boolean})],mi.prototype,"error",void 0),yi([r(".ft-text-field--input")],mi.prototype,"input",void 0),yi([o({type:String})],mi.prototype,"prefix",void 0),yi([o({type:String})],mi.prototype,"icon",void 0),yi([o({type:String})],mi.prototype,"iconVariant",void 0),yi([n()],mi.prototype,"focused",void 0),p("ft-text-field")(mi);var $i=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const wi=ft.create("--ft-tooltip-distance","SIZE","4px"),Oi=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),Si=ft.create("--ft-tooltip-background-color","COLOR","#666666"),ki=ft.create("--ft-tooltip-z-index","NUMBER","1"),Ci=ft.external(ut.borderRadiusS,"Design system"),Ei=ft.create("--ft-tooltip-max-width","SIZE","150px");class Ni extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return W`
838
+ `}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)||""}}Ci.elementDefinitions={"ft-input-label":Qe,"ft-ripple":fi,"ft-typography":qe,"ft-icon":xi},Ci.styles=[Pe,Si],ki([o({type:String})],Ci.prototype,"label",void 0),ki([o({reflect:!0})],Ci.prototype,"value",void 0),ki([o({type:String})],Ci.prototype,"helper",void 0),ki([o({type:Boolean})],Ci.prototype,"outlined",void 0),ki([o({type:Boolean})],Ci.prototype,"disabled",void 0),ki([o({type:Boolean})],Ci.prototype,"error",void 0),ki([r(".ft-text-field--input")],Ci.prototype,"input",void 0),ki([o({type:String})],Ci.prototype,"prefix",void 0),ki([o({type:String})],Ci.prototype,"icon",void 0),ki([o({type:String})],Ci.prototype,"iconVariant",void 0),ki([n()],Ci.prototype,"focused",void 0),p("ft-text-field")(Ci);const Ei=ft.create("--ft-tooltip-distance","SIZE","4px"),Ni=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ri=ft.create("--ft-tooltip-background-color","COLOR","#666666"),zi=ft.create("--ft-tooltip-z-index","NUMBER","1"),Mi=ft.external(ut.borderRadiusS,"Design system"),Fi=ft.create("--ft-tooltip-max-width","SIZE","150px"),Ui=v`
839
+ .ft-tooltip--container {
840
+ display: block;
841
+ position: relative;
842
+ }
843
+
844
+ .ft-tooltip--inline {
845
+ display: inline-block;
846
+ max-width: 100%;
847
+ }
848
+
849
+ .ft-tooltip {
850
+ position: absolute;
851
+ box-sizing: border-box;
852
+ overflow: hidden;
853
+ width: max-content;
854
+ max-width: ${Fi};
855
+ text-align: center;
856
+ padding: ${Ei};
857
+ z-index: ${zi};
858
+ }
859
+
860
+ .ft-tooltip--content {
861
+ padding: 4px 8px;
862
+ border-radius: ${Mi};
863
+ background-color: ${Ri};
864
+ color: ${Ni};
865
+ top: -500px;
866
+ left: -500px;
867
+ position: relative;
868
+ word-break: break-word;
869
+ }
870
+ `;var Bi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Di extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return W`
839
871
  <div part="container"
840
872
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
841
873
  @mouseenter=${this.onHover}
@@ -851,254 +883,222 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
851
883
  </div>
852
884
  <slot></slot>
853
885
  </div>
854
- `}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,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=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 r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Ei})`}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())}}Ni.elementDefinitions={"ft-typography":Je},Ni.styles=v`
855
- .ft-tooltip--container {
856
- display: block;
857
- position: relative;
858
- }
859
-
860
- .ft-tooltip--inline {
861
- display: inline-block;
862
- max-width: 100%;
863
- }
864
-
865
- .ft-tooltip {
866
- position: absolute;
867
- box-sizing: border-box;
868
- overflow: hidden;
869
- width: max-content;
870
- max-width: ${Ei};
871
- text-align: center;
872
- padding: ${wi};
873
- z-index: ${ki};
874
- }
875
-
876
- .ft-tooltip--content {
877
- padding: 4px 8px;
878
- border-radius: ${Ci};
879
- background-color: ${Si};
880
- color: ${Oi};
881
- top: -500px;
882
- left: -500px;
883
- position: relative;
884
- word-break: break-word;
885
- }
886
- `,$i([o()],Ni.prototype,"text",void 0),$i([o({type:Boolean})],Ni.prototype,"manual",void 0),$i([o({type:Boolean})],Ni.prototype,"inline",void 0),$i([o({type:Number})],Ni.prototype,"delay",void 0),$i([o()],Ni.prototype,"position",void 0),$i([
886
+ `}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,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=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 r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Fi})`}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())}}Di.elementDefinitions={"ft-typography":qe},Di.styles=Ui,Bi([o()],Di.prototype,"text",void 0),Bi([o({type:Boolean})],Di.prototype,"manual",void 0),Bi([o({type:Boolean})],Di.prototype,"inline",void 0),Bi([o({type:Number})],Di.prototype,"delay",void 0),Bi([o()],Di.prototype,"position",void 0),Bi([
887
887
  /**
888
888
  * @license
889
889
  * Copyright 2017 Google LLC
890
890
  * SPDX-License-Identifier: BSD-3-Clause
891
891
  */
892
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ni.prototype,"slotNodes",void 0),$i([r(".ft-tooltip--container")],Ni.prototype,"container",void 0),$i([r("slot")],Ni.prototype,"target",void 0),$i([r(".ft-tooltip")],Ni.prototype,"tooltip",void 0),$i([r(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),$i([n()],Ni.prototype,"visible",void 0),p("ft-tooltip")(Ni);const Ri={color:ft.extend("--ft-loader-color",ut.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")};class zi extends bt{static get styles(){return v`
893
- :host {
894
- line-height: 0;
895
- }
896
-
897
- .ft-loader {
898
- display: inline-block;
899
- position: relative;
900
-
901
- width: ${Ri.size};
902
- height: ${Ri.size};
903
- }
904
-
905
- .ft-loader div {
906
- position: absolute;
907
- top: 37.5%;
908
- width: 25%;
909
- height: 25%;
910
- border-radius: 50%;
911
- background: ${Ri.color};
912
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
913
- }
914
-
915
- .ft-loader div:nth-child(1) {
916
- left: 2.5%;
917
- animation: appear 0.6s infinite;
918
- }
919
-
920
- .ft-loader div:nth-child(2) {
921
- left: 2.5%;
922
- animation: move 0.6s infinite;
923
- }
924
-
925
- .ft-loader div:nth-child(3) {
926
- left: 37.5%;
927
- animation: move 0.6s infinite;
928
- }
929
-
930
- .ft-loader div:nth-child(4) {
931
- left: 72.5%;
932
- animation: disappear 0.6s infinite;
933
- }
934
-
935
- @keyframes appear {
936
- 0% {
937
- transform: scale(0);
938
- }
939
- 100% {
940
- transform: scale(1);
941
- }
942
- }
892
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Di.prototype,"slotNodes",void 0),Bi([r(".ft-tooltip--container")],Di.prototype,"container",void 0),Bi([r("slot")],Di.prototype,"target",void 0),Bi([r(".ft-tooltip")],Di.prototype,"tooltip",void 0),Bi([r(".ft-tooltip--content")],Di.prototype,"tooltipContent",void 0),Bi([n()],Di.prototype,"visible",void 0),p("ft-tooltip")(Di);const ji={color:ft.extend("--ft-loader-color",ut.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")},Ai=v`
893
+ :host {
894
+ line-height: 0;
895
+ }
943
896
 
944
- @keyframes disappear {
945
- 0% {
946
- transform: scale(1);
947
- }
948
- 100% {
949
- transform: scale(0);
950
- }
951
- }
897
+ .ft-loader {
898
+ display: inline-block;
899
+ position: relative;
952
900
 
953
- @keyframes move {
954
- 0% {
955
- transform: translate(0, 0);
956
- }
957
- 100% {
958
- transform: translate(calc(0.35 * ${Ri.size}), 0);
959
- }
960
- }
961
- `}render(){return W`
901
+ width: ${ji.size};
902
+ height: ${ji.size};
903
+ }
904
+
905
+ .ft-loader div {
906
+ position: absolute;
907
+ top: 37.5%;
908
+ width: 25%;
909
+ height: 25%;
910
+ border-radius: 50%;
911
+ background: ${ji.color};
912
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
913
+ }
914
+
915
+ .ft-loader div:nth-child(1) {
916
+ left: 2.5%;
917
+ animation: appear 0.6s infinite;
918
+ }
919
+
920
+ .ft-loader div:nth-child(2) {
921
+ left: 2.5%;
922
+ animation: move 0.6s infinite;
923
+ }
924
+
925
+ .ft-loader div:nth-child(3) {
926
+ left: 37.5%;
927
+ animation: move 0.6s infinite;
928
+ }
929
+
930
+ .ft-loader div:nth-child(4) {
931
+ left: 72.5%;
932
+ animation: disappear 0.6s infinite;
933
+ }
934
+
935
+ @keyframes appear {
936
+ 0% {
937
+ transform: scale(0);
938
+ }
939
+ 100% {
940
+ transform: scale(1);
941
+ }
942
+ }
943
+
944
+ @keyframes disappear {
945
+ 0% {
946
+ transform: scale(1);
947
+ }
948
+ 100% {
949
+ transform: scale(0);
950
+ }
951
+ }
952
+
953
+ @keyframes move {
954
+ 0% {
955
+ transform: translate(0, 0);
956
+ }
957
+ 100% {
958
+ transform: translate(calc(0.35 * ${ji.size}), 0);
959
+ }
960
+ }
961
+ `;class Ti extends bt{render(){return W`
962
962
  <div class="ft-loader">
963
963
  <div></div>
964
964
  <div></div>
965
965
  <div></div>
966
966
  <div></div>
967
967
  </div>
968
- `}}p("ft-loader")(zi);var Mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Fi=ft.extend("--ft-button-color",ut.colorPrimary),Ui={backgroundColor:ft.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",ut.borderRadiusL),color:Fi,fontSize:ft.extend("--ft-button-font-size",Ae.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Fi),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},Bi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",ut.colorOnPrimary)),Di={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",ut.colorPrimary)),color:Bi,rippleColor:ft.extend("--ft-button-primary-ripple-color",Bi)},ji=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",ut.borderRadiusM));class Ai extends bt{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=ci.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[xt,v`
969
- :host {
970
- display: inline-block;
971
- max-width: 100%;
972
- pointer-events: none;
973
- }
968
+ `}}Ti.styles=Ai,p("ft-loader")(Ti);const Li=ft.extend("--ft-button-color",ut.colorPrimary),Ii={backgroundColor:ft.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",ut.borderRadiusL),color:Li,fontSize:ft.extend("--ft-button-font-size",je.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Li),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},Pi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",ut.colorOnPrimary)),_i={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",ut.colorPrimary)),color:Pi,rippleColor:ft.extend("--ft-button-primary-ripple-color",Pi)},Hi=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",ut.borderRadiusM)),Wi=[xt,v`
969
+ :host {
970
+ display: inline-block;
971
+ max-width: 100%;
972
+ pointer-events: none;
973
+ }
974
974
 
975
- button {
976
- box-shadow: 0px 0px 0px transparent;
977
- border: 0px solid transparent;
978
- text-shadow: 0px 0px 0px transparent;
979
- font-size: ${Ui.fontSize};
980
- }
975
+ button {
976
+ box-shadow: 0px 0px 0px transparent;
977
+ border: 0px solid transparent;
978
+ text-shadow: 0px 0px 0px transparent;
979
+ font-size: ${Ii.fontSize};
980
+ }
981
981
 
982
- button:hover {
983
- box-shadow: 0px 0px 0px transparent;
984
- border: 0px solid transparent;
985
- text-shadow: 0px 0px 0px transparent;
986
- }
982
+ button:hover {
983
+ box-shadow: 0px 0px 0px transparent;
984
+ border: 0px solid transparent;
985
+ text-shadow: 0px 0px 0px transparent;
986
+ }
987
987
 
988
- button:active {
989
- outline: none;
990
- border: none;
991
- }
988
+ button:active {
989
+ outline: none;
990
+ border: none;
991
+ }
992
992
 
993
- button:focus {
994
- outline: 0;
995
- }
993
+ button:focus {
994
+ outline: 0;
995
+ }
996
996
 
997
- .ft-button {
998
- position: relative;
999
- display: flex;
1000
- justify-content: center;
1001
- align-items: center;
1002
- width: 100%;
1003
- overflow: hidden;
1004
- box-sizing: border-box;
1005
- border: none;
1006
- pointer-events: auto;
1007
-
1008
- --ft-button-internal-line-height: calc(${Ui.fontSize} + 2px);
1009
- --ft-button-internal-color: ${Ui.color};
1010
- ${ht(fi.size,Ui.iconSize)};
1011
- --ft-button-internal-vertical-padding: 6px;
1012
- --ft-button-internal-horizontal-padding: 8px;
1013
- ${ht(ti.color,Ui.rippleColor)};
1014
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ui.iconSize});
1015
-
1016
- border-radius: ${Ui.borderRadius};
1017
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
1018
- background-color: ${Ui.backgroundColor};
1019
- color: var(--ft-button-internal-color);
1020
- -webkit-mask-image: radial-gradient(white, black);
1021
- }
997
+ .ft-button {
998
+ position: relative;
999
+ display: flex;
1000
+ justify-content: center;
1001
+ align-items: center;
1002
+ width: 100%;
1003
+ overflow: hidden;
1004
+ box-sizing: border-box;
1005
+ border: none;
1006
+ pointer-events: auto;
1007
+
1008
+ --ft-button-internal-line-height: calc(${Ii.fontSize} + 2px);
1009
+ --ft-button-internal-color: ${Ii.color};
1010
+ ${ht(hi.size,Ii.iconSize)};
1011
+ --ft-button-internal-vertical-padding: 6px;
1012
+ --ft-button-internal-horizontal-padding: 8px;
1013
+ ${ht(ei.color,Ii.rippleColor)};
1014
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ii.iconSize});
1015
+
1016
+ border-radius: ${Ii.borderRadius};
1017
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
1018
+ background-color: ${Ii.backgroundColor};
1019
+ color: var(--ft-button-internal-color);
1020
+ -webkit-mask-image: radial-gradient(white, black);
1021
+ }
1022
1022
 
1023
- .ft-button:not([disabled]):hover {
1024
- cursor: pointer;
1025
- }
1023
+ .ft-button:not([disabled]):hover {
1024
+ cursor: pointer;
1025
+ }
1026
1026
 
1027
- .ft-button--dense {
1028
- --ft-button-internal-vertical-padding: 2px;
1029
- --ft-button-internal-horizontal-padding: 4px;
1030
- border-radius: ${ji};
1031
- }
1027
+ .ft-button--dense {
1028
+ --ft-button-internal-vertical-padding: 2px;
1029
+ --ft-button-internal-horizontal-padding: 4px;
1030
+ border-radius: ${Hi};
1031
+ }
1032
1032
 
1033
- .ft-button--round {
1034
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
1035
- }
1033
+ .ft-button--round {
1034
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
1035
+ }
1036
1036
 
1037
- .ft-button[disabled] {
1038
- filter: grayscale(1);
1039
- opacity: ${Ui.opacityDisabled};
1040
- }
1037
+ .ft-button[disabled] {
1038
+ filter: grayscale(1);
1039
+ opacity: ${Ii.opacityDisabled};
1040
+ }
1041
1041
 
1042
- .ft-button.ft-button--primary {
1043
- background-color: ${Di.backgroundColor};
1044
- --ft-button-internal-color: ${Di.color};
1045
- ${ht(ti.color,Di.rippleColor)};
1046
- }
1042
+ .ft-button.ft-button--primary {
1043
+ background-color: ${_i.backgroundColor};
1044
+ --ft-button-internal-color: ${_i.color};
1045
+ ${ht(ei.color,_i.rippleColor)};
1046
+ }
1047
1047
 
1048
- .ft-button.ft-button--outlined {
1049
- border: 1px solid var(--ft-button-internal-color);
1050
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
1051
- }
1048
+ .ft-button.ft-button--outlined {
1049
+ border: 1px solid var(--ft-button-internal-color);
1050
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
1051
+ }
1052
1052
 
1053
- .ft-button:focus {
1054
- outline: none;
1055
- }
1053
+ .ft-button:focus {
1054
+ outline: none;
1055
+ }
1056
1056
 
1057
- .ft-button--label {
1058
- position: relative;
1059
- overflow: hidden;
1060
- white-space: nowrap;
1061
- text-overflow: ellipsis;
1062
- display: block;
1063
- margin: 0 var(--ft-button-internal-horizontal-padding);
1064
- ${ht(Ae.fontSize,"1em")};
1065
- ${ht(Ae.lineHeight,"var(--ft-button-internal-content-height)")};
1066
- }
1057
+ .ft-button--label {
1058
+ position: relative;
1059
+ overflow: hidden;
1060
+ white-space: nowrap;
1061
+ text-overflow: ellipsis;
1062
+ display: block;
1063
+ margin: 0 var(--ft-button-internal-horizontal-padding);
1064
+ ${ht(je.fontSize,"1em")};
1065
+ ${ht(je.lineHeight,"var(--ft-button-internal-content-height)")};
1066
+ }
1067
1067
 
1068
- .ft-button--safari-fix .ft-button--label {
1069
- margin-right: 0;
1070
- }
1068
+ .ft-button--safari-fix .ft-button--label {
1069
+ margin-right: 0;
1070
+ }
1071
1071
 
1072
- .ft-button--safari-fix .ft-button--label:after {
1073
- content: "\\0000a0";
1074
- display: inline-block;
1075
- width: 0;
1076
- }
1072
+ .ft-button--safari-fix .ft-button--label:after {
1073
+ content: "\\0000a0";
1074
+ display: inline-block;
1075
+ width: 0;
1076
+ }
1077
1077
 
1078
- .ft-button--label[hidden] {
1079
- display: none;
1080
- }
1078
+ .ft-button--label[hidden] {
1079
+ display: none;
1080
+ }
1081
1081
 
1082
- ft-icon {
1083
- flex-shrink: 0;
1084
- position: relative;
1085
- }
1082
+ ft-icon {
1083
+ flex-shrink: 0;
1084
+ position: relative;
1085
+ }
1086
1086
 
1087
- .ft-button--label[hidden] + ft-icon {
1088
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
1089
- padding: 0 var(--ft-button-internal-vertical-padding);
1090
- }
1087
+ .ft-button--label[hidden] + ft-icon {
1088
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
1089
+ padding: 0 var(--ft-button-internal-vertical-padding);
1090
+ }
1091
1091
 
1092
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
1093
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
1094
- order: -1;
1095
- }
1092
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
1093
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
1094
+ order: -1;
1095
+ }
1096
1096
 
1097
- ft-loader {
1098
- ${ht(Ri.size,Ui.iconSize)};
1099
- ${ht(Ri.color,"var(--ft-button-internal-color)")};
1100
- }
1101
- `]}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":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
1097
+ ft-loader {
1098
+ ${ht(ji.size,Ii.iconSize)};
1099
+ ${ht(ji.color,"var(--ft-button-internal-color)")};
1100
+ }
1101
+ `];var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends bt{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=vi.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":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
1102
1102
  <button part="button"
1103
1103
  class="${jt(t)}"
1104
1104
  aria-label="${this.getLabel()}"
@@ -1120,7 +1120,115 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1120
1120
  </ft-tooltip>
1121
1121
  `}resolveIcon(){return this.loading?W`
1122
1122
  <ft-loader></ft-loader> `:this.icon?W`
1123
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ai.elementDefinitions={"ft-ripple":li,"ft-tooltip":Ni,"ft-typography":Je,"ft-icon":hi,"ft-loader":zi},Mi([o({type:Boolean})],Ai.prototype,"primary",void 0),Mi([o({type:Boolean})],Ai.prototype,"outlined",void 0),Mi([o({type:Boolean})],Ai.prototype,"disabled",void 0),Mi([o({type:Boolean})],Ai.prototype,"dense",void 0),Mi([o({type:Boolean})],Ai.prototype,"round",void 0),Mi([o({type:String})],Ai.prototype,"label",void 0),Mi([o({type:String})],Ai.prototype,"icon",void 0),Mi([o({type:String})],Ai.prototype,"iconVariant",void 0),Mi([o({type:Boolean})],Ai.prototype,"trailingIcon",void 0),Mi([o({type:Boolean})],Ai.prototype,"loading",void 0),Mi([o({type:String})],Ai.prototype,"tooltipPosition",void 0),Mi([o({type:Boolean})],Ai.prototype,"hideTooltip",void 0),Mi([r(".ft-button")],Ai.prototype,"button",void 0),Mi([r(".ft-button--label slot")],Ai.prototype,"slottedContent",void 0),p("ft-button")(Ai);var Ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Li extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ii={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},Pi=t=>W`${t}`,_i=(t,e)=>t-e;class Hi extends bt{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 W`
1123
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ki.elementDefinitions={"ft-ripple":fi,"ft-tooltip":Di,"ft-typography":qe,"ft-icon":xi,"ft-loader":Ti},Ki.styles=Wi,Zi([o({type:Boolean})],Ki.prototype,"primary",void 0),Zi([o({type:Boolean})],Ki.prototype,"outlined",void 0),Zi([o({type:Boolean})],Ki.prototype,"disabled",void 0),Zi([o({type:Boolean})],Ki.prototype,"dense",void 0),Zi([o({type:Boolean})],Ki.prototype,"round",void 0),Zi([o({type:String})],Ki.prototype,"label",void 0),Zi([o({type:String})],Ki.prototype,"icon",void 0),Zi([o({type:String})],Ki.prototype,"iconVariant",void 0),Zi([o({type:Boolean})],Ki.prototype,"trailingIcon",void 0),Zi([o({type:Boolean})],Ki.prototype,"loading",void 0),Zi([o({type:String})],Ki.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Ki.prototype,"hideTooltip",void 0),Zi([r(".ft-button")],Ki.prototype,"button",void 0),Zi([r(".ft-button--label slot")],Ki.prototype,"slottedContent",void 0),p("ft-button")(Ki);class Vi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ji={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},qi=v`
1124
+ :host {
1125
+ display: block;
1126
+ }
1127
+
1128
+ .table {
1129
+ display: grid;
1130
+ }
1131
+
1132
+ .header, .row {
1133
+ display: contents;
1134
+ }
1135
+
1136
+ .header-cell {
1137
+ display: flex;
1138
+ flex-direction: column;
1139
+ background: ${Ji.headerBackground};
1140
+ color: ${Ji.colorOnSurfaceHigh};
1141
+ padding: .5rem 1rem;
1142
+ font-family: ${Ji.titleFont};
1143
+ }
1144
+
1145
+ .header-cell--sticky {
1146
+ top: 0;
1147
+ z-index: ${Ji.stickyHeaderZIndex};
1148
+ position: sticky;
1149
+ }
1150
+
1151
+ .header-cell:first-of-type {
1152
+ border-radius: .5rem 0 0 0;
1153
+ }
1154
+
1155
+ .header-cell:last-of-type {
1156
+ border-radius: 0 .5rem 0 0;
1157
+ }
1158
+
1159
+ .column-title-container {
1160
+ display: flex;
1161
+ align-items: center;
1162
+ }
1163
+
1164
+ .column-title-container ft-button {
1165
+ ${ht(Ii.backgroundColor,Ji.headerBackground)};
1166
+ ${ht(Ii.color,Ji.colorOnSurfaceHigh)};
1167
+ }
1168
+
1169
+ .column-title {
1170
+ white-space: nowrap;
1171
+ text-transform: uppercase;
1172
+ margin-right: .5rem;
1173
+ font-weight: normal;
1174
+ letter-spacing: 1.5px;
1175
+ font-size: 0.8em;
1176
+ }
1177
+
1178
+ .column-filter {
1179
+ flex-grow: 1;
1180
+ flex-shrink: 0;
1181
+ }
1182
+
1183
+ .column-filter:not(:empty) {
1184
+ padding-top: .5rem;
1185
+ }
1186
+
1187
+ .column-filter ft-text-field,
1188
+ .column-filter ft-select {
1189
+ width: 150px;
1190
+ min-width: 100%;
1191
+ }
1192
+
1193
+ .cell {
1194
+ padding: 1rem;
1195
+ border-left: 1px solid ${Ji.headerBackground};
1196
+ border-bottom: 1px solid ${Ji.headerBackground};
1197
+ overflow-x: auto;
1198
+ display: flex;
1199
+ align-items: center;
1200
+ font-family: ${Ji.contentFont};
1201
+ }
1202
+
1203
+ /* Even is 2n+1 and odd is 2n because of the header */
1204
+ .row:nth-child(2n) > .cell {
1205
+ background: ${Ji.oddRowBackground};
1206
+ }
1207
+
1208
+ .row:nth-child(2n + 1) > .cell {
1209
+ background: ${Ji.evenRowBackground};
1210
+ }
1211
+
1212
+ .row:hover > .cell {
1213
+ background: ${Ji.rowHoverBackground};
1214
+ }
1215
+
1216
+ .cell:last-of-type {
1217
+ border-right: 1px solid ${Ji.headerBackground};
1218
+ }
1219
+
1220
+ .row:last-of-type .cell:first-of-type {
1221
+ border-radius: 0 0 0 .5rem;
1222
+ }
1223
+
1224
+ .row:last-of-type .cell:last-of-type {
1225
+ border-radius: 0 0 .5rem 0;
1226
+ }
1227
+
1228
+ .hidden {
1229
+ visibility: hidden;
1230
+ }
1231
+ `;var Xi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Yi=t=>W`${t}`,Gi=(t,e)=>t-e;class Qi extends bt{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 W`
1124
1232
  <style>
1125
1233
  .table {
1126
1234
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1132,12 +1240,12 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1132
1240
  </div>
1133
1241
  ${Ut(t,((t,e)=>"row-"+e),((t,e)=>W`
1134
1242
  <div class="row"
1135
- @click=${()=>this.dispatchEvent(new Li(t))}>
1243
+ @click=${()=>this.dispatchEvent(new Vi(t))}>
1136
1244
  ${Ut(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1137
1245
  </div>
1138
1246
  `))}
1139
1247
  </div>
1140
- `}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:_i,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 i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return W`
1248
+ `}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:Gi,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 i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return W`
1141
1249
  <div class="${jt(i)}">
1142
1250
  <div class="column-title-container">
1143
1251
  <span class="column-title">${t.title}</span>
@@ -1169,114 +1277,6 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1169
1277
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1170
1278
  `))}
1171
1279
  </ft-select>
1172
- `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:Pi;return W`
1280
+ `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:Yi;return W`
1173
1281
  <div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Dt(e):e})(this.getValue(t,e))}</div>
1174
- `}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)}}Hi.styles=v`
1175
- :host {
1176
- display: block;
1177
- }
1178
-
1179
- .table {
1180
- display: grid;
1181
- }
1182
-
1183
- .header, .row {
1184
- display: contents;
1185
- }
1186
-
1187
- .header-cell {
1188
- display: flex;
1189
- flex-direction: column;
1190
- background: ${Ii.headerBackground};
1191
- color: ${Ii.colorOnSurfaceHigh};
1192
- padding: .5rem 1rem;
1193
- font-family: ${Ii.titleFont};
1194
- }
1195
-
1196
- .header-cell--sticky {
1197
- top: 0;
1198
- z-index: ${Ii.stickyHeaderZIndex};
1199
- position: sticky;
1200
- }
1201
-
1202
- .header-cell:first-of-type {
1203
- border-radius: .5rem 0 0 0;
1204
- }
1205
-
1206
- .header-cell:last-of-type {
1207
- border-radius: 0 .5rem 0 0;
1208
- }
1209
-
1210
- .column-title-container {
1211
- display: flex;
1212
- align-items: center;
1213
- }
1214
-
1215
- .column-title-container ft-button {
1216
- ${ht(Ui.backgroundColor,Ii.headerBackground)};
1217
- ${ht(Ui.color,Ii.colorOnSurfaceHigh)};
1218
- }
1219
-
1220
- .column-title {
1221
- white-space: nowrap;
1222
- text-transform: uppercase;
1223
- margin-right: .5rem;
1224
- font-weight: normal;
1225
- letter-spacing: 1.5px;
1226
- font-size: 0.8em;
1227
- }
1228
-
1229
- .column-filter {
1230
- flex-grow: 1;
1231
- flex-shrink: 0;
1232
- }
1233
-
1234
- .column-filter:not(:empty) {
1235
- padding-top: .5rem;
1236
- }
1237
-
1238
- .column-filter ft-text-field,
1239
- .column-filter ft-select {
1240
- width: 150px;
1241
- min-width: 100%;
1242
- }
1243
-
1244
- .cell {
1245
- padding: 1rem;
1246
- border-left: 1px solid ${Ii.headerBackground};
1247
- border-bottom: 1px solid ${Ii.headerBackground};
1248
- overflow-x: auto;
1249
- display: flex;
1250
- align-items: center;
1251
- font-family: ${Ii.contentFont};
1252
- }
1253
-
1254
- /* Even is 2n+1 and odd is 2n because of the header */
1255
- .row:nth-child(2n) > .cell {
1256
- background: ${Ii.oddRowBackground};
1257
- }
1258
-
1259
- .row:nth-child(2n + 1) > .cell {
1260
- background: ${Ii.evenRowBackground};
1261
- }
1262
-
1263
- .row:hover > .cell {
1264
- background: ${Ii.rowHoverBackground};
1265
- }
1266
-
1267
- .cell:last-of-type {
1268
- border-right: 1px solid ${Ii.headerBackground};
1269
- }
1270
-
1271
- .row:last-of-type .cell:first-of-type {
1272
- border-radius: 0 0 0 .5rem;
1273
- }
1274
-
1275
- .row:last-of-type .cell:last-of-type {
1276
- border-radius: 0 0 .5rem 0;
1277
- }
1278
-
1279
- .hidden {
1280
- visibility: hidden;
1281
- }
1282
- `,Ti([o({attribute:!1})],Hi.prototype,"data",void 0),Ti([o({attribute:!1})],Hi.prototype,"columns",void 0),Ti([o({attribute:!1})],Hi.prototype,"sort",void 0),Ti([o()],Hi.prototype,"stickyHeaders",void 0),Ti([n()],Hi.prototype,"currentSort",void 0),p("ft-filterable-table")(Hi),t.FtFilterableTable=Hi,t.FtFilterableTableCssVariables=Ii,t.RowClickEvent=Li,Object.defineProperty(t,"i",{value:!0})}({});
1282
+ `}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)}}Qi.styles=qi,Xi([o({attribute:!1})],Qi.prototype,"data",void 0),Xi([o({attribute:!1})],Qi.prototype,"columns",void 0),Xi([o({attribute:!1})],Qi.prototype,"sort",void 0),Xi([o()],Qi.prototype,"stickyHeaders",void 0),Xi([n()],Qi.prototype,"currentSort",void 0),p("ft-filterable-table")(Qi),t.FtFilterableTable=Qi,t.FtFilterableTableCssVariables=Ji,t.RowClickEvent=Vi,t.styles=qi,Object.defineProperty(t,"i",{value:!0})}({});