@fluid-topics/ft-text-field 0.3.12 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,109 +10,225 @@ var r;const n=globalThis.trustedTypes,p=n?n.createPolicy("lit-html",{createHTML:
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const F=Symbol.for(""),R=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:F}),K=new Map,G=(t=>(e,...i)=>{const o=i.length;let l,s;const r=[],n=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(s=i[a],l=R(s));)p+=l+e[++a],f=!0;n.push(s),r.push(p),a++}if(a===o&&r.push(e[o]),f){const t=r.join("$$lit$$");void 0===(e=K.get(t))&&(r.raw=r,K.set(t,e=r)),i=n}return t(e,...i)})(k);var H,P=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(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"}(H||(H={}));const V=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",V),Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",L.fontSize,"20px"),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",L.lineHeight,"1.2"),et=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),it=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",V),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",L.lineHeight,"1.7"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"1.5"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"1.7"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),mt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",L.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},$t=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",L.lineHeight,"1.4"),Nt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),Et={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",L.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),Bt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",L.lineHeight,"1.6"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Ft=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),Rt=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Wt=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",L.lineHeight,"1.15"),Ht=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Pt=i.css`
13
+ const F=Symbol.for(""),R=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:F}),K=new Map,G=(t=>(e,...i)=>{const o=i.length;let l,s;const r=[],n=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(s=i[a],l=R(s));)p+=l+e[++a],f=!0;n.push(s),r.push(p),a++}if(a===o&&r.push(e[o]),f){const t=r.join("$$lit$$");void 0===(e=K.get(t))&&(r.raw=r,K.set(t,e=r)),i=n}return t(e,...i)})(k);var H;!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"}(H||(H={}));const P=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),V=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),q={fontFamily:V,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",P),X=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",q.fontSize,"20px"),Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),J=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",q.lineHeight,"1.2"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",q.textTransform,"inherit"),et=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",P),it=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",q.lineHeight,"1.7"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit"),nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",V),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"1.5"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",V),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"1.7"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit"),vt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",V),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",q.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit")},mt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",V),$t=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",q.lineHeight,"1.4"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit"),Nt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",V),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",q.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit")},Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",V),Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"1.6"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",V),Bt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",q.lineHeight,"1.6"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase"),Tt=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",V),Ft=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",q.fontSize,"14px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),Wt=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",q.lineHeight,"1.15"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase"),Ht=i.css`
14
14
  .ft-typography--title {
15
- font-family: ${X};
16
- font-size: ${Y};
17
- font-weight: ${J};
18
- letter-spacing: ${Q};
19
- line-height: ${tt};
20
- text-transform: ${et};
15
+ font-family: ${L};
16
+ font-size: ${X};
17
+ font-weight: ${Y};
18
+ letter-spacing: ${J};
19
+ line-height: ${Q};
20
+ text-transform: ${tt};
21
21
  }
22
- `,Vt=i.css`
22
+ `,Pt=i.css`
23
23
  .ft-typography--title-dense {
24
- font-family: ${it};
25
- font-size: ${ot};
26
- font-weight: ${lt};
27
- letter-spacing: ${st};
28
- line-height: ${rt};
29
- text-transform: ${nt};
24
+ font-family: ${et};
25
+ font-size: ${it};
26
+ font-weight: ${ot};
27
+ letter-spacing: ${lt};
28
+ line-height: ${st};
29
+ text-transform: ${rt};
30
30
  }
31
- `,qt=i.css`
31
+ `,Vt=i.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${pt};
34
- font-size: ${at};
35
- font-weight: ${ft};
36
- letter-spacing: ${ht};
37
- line-height: ${dt};
38
- text-transform: ${ct};
33
+ font-family: ${nt};
34
+ font-size: ${pt};
35
+ font-weight: ${at};
36
+ letter-spacing: ${ft};
37
+ line-height: ${ht};
38
+ text-transform: ${dt};
39
39
  }
40
- `,Lt=i.css`
40
+ `,qt=i.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${xt};
43
- font-size: ${ut};
44
- font-weight: ${yt};
45
- letter-spacing: ${gt};
46
- line-height: ${bt};
47
- text-transform: ${vt};
42
+ font-family: ${ct};
43
+ font-size: ${xt};
44
+ font-weight: ${ut};
45
+ letter-spacing: ${yt};
46
+ line-height: ${gt};
47
+ text-transform: ${bt};
48
48
  }
49
49
 
50
- `,Xt=i.css`
50
+ `,Lt=i.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${mt.fontFamily};
53
- font-size: ${mt.fontSize};
54
- font-weight: ${mt.fontWeight};
55
- letter-spacing: ${mt.letterSpacing};
56
- line-height: ${mt.lineHeight};
57
- text-transform: ${mt.textTransform};
52
+ font-family: ${vt.fontFamily};
53
+ font-size: ${vt.fontSize};
54
+ font-weight: ${vt.fontWeight};
55
+ letter-spacing: ${vt.letterSpacing};
56
+ line-height: ${vt.lineHeight};
57
+ text-transform: ${vt.textTransform};
58
58
  }
59
- `,Yt=i.css`
59
+ `,Xt=i.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${$t};
62
- font-size: ${wt};
63
- font-weight: ${kt};
64
- letter-spacing: ${zt};
65
- line-height: ${St};
66
- text-transform: ${Nt};
61
+ font-family: ${mt};
62
+ font-size: ${$t};
63
+ font-weight: ${wt};
64
+ letter-spacing: ${kt};
65
+ line-height: ${zt};
66
+ text-transform: ${St};
67
67
  }
68
- `,Jt=i.css`
68
+ `,Yt=i.css`
69
69
  .ft-typography--caption {
70
- font-family: ${Et.fontFamily};
71
- font-size: ${Et.fontSize};
72
- font-weight: ${Et.fontWeight};
73
- letter-spacing: ${Et.letterSpacing};
74
- line-height: ${Et.lineHeight};
75
- text-transform: ${Et.textTransform};
70
+ font-family: ${Nt.fontFamily};
71
+ font-size: ${Nt.fontSize};
72
+ font-weight: ${Nt.fontWeight};
73
+ letter-spacing: ${Nt.letterSpacing};
74
+ line-height: ${Nt.lineHeight};
75
+ text-transform: ${Nt.textTransform};
76
76
  }
77
- `,Qt=i.css`
77
+ `,Jt=i.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Ot};
80
- font-size: ${jt};
81
- font-weight: ${It};
82
- letter-spacing: ${Ct};
83
- line-height: ${At};
84
- text-transform: ${_t};
79
+ font-family: ${Et};
80
+ font-size: ${Ot};
81
+ font-weight: ${jt};
82
+ letter-spacing: ${It};
83
+ line-height: ${Ct};
84
+ text-transform: ${At};
85
85
  }
86
- `,te=i.css`
86
+ `,Qt=i.css`
87
87
  .ft-typography--overline {
88
- font-family: ${Bt};
89
- font-size: ${Ut};
90
- font-weight: ${Zt};
91
- letter-spacing: ${Dt};
92
- line-height: ${Mt};
93
- text-transform: ${Tt};
88
+ font-family: ${_t};
89
+ font-size: ${Bt};
90
+ font-weight: ${Ut};
91
+ letter-spacing: ${Zt};
92
+ line-height: ${Dt};
93
+ text-transform: ${Mt};
94
94
  }
95
- `,ee=i.css`
95
+ `,te=i.css`
96
96
  .ft-typography--button {
97
- font-family: ${Ft};
98
- font-size: ${Rt};
99
- font-weight: ${Wt};
100
- letter-spacing: ${Kt};
101
- line-height: ${Gt};
102
- text-transform: ${Ht};
103
- }
104
- `;class ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?G`
97
+ font-family: ${Tt};
98
+ font-size: ${Ft};
99
+ font-weight: ${Rt};
100
+ letter-spacing: ${Wt};
101
+ line-height: ${Kt};
102
+ text-transform: ${Gt};
103
+ }
104
+ `,ee=i.css`
105
+ .ft-typography {
106
+ vertical-align: inherit;
107
+ }
108
+ `;var ie=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oe extends e.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?G`
105
109
  <${W(this.element)}
106
110
  class="ft-typography ft-typography--${this.variant}">
107
111
  <slot></slot>
108
112
  </${W(this.element)}>
109
113
  `:G`
110
114
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
- `}}ie.styles=[Pt,Vt,qt,Lt,Xt,Yt,Jt,Qt,te,ee,i.css`
112
- .ft-typography {
113
- vertical-align: inherit;
114
- }
115
- `],P([o.property()],ie.prototype,"element",void 0),P([o.property()],ie.prototype,"variant",void 0),e.customElement("ft-typography")(ie);var oe=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const le={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")};class se extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
115
+ `}}oe.styles=[Ht,Pt,Vt,qt,Lt,Xt,Yt,Jt,Qt,te,ee],ie([o.property()],oe.prototype,"element",void 0),ie([o.property()],oe.prototype,"variant",void 0),e.customElement("ft-typography")(oe);const le={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},se=i.css`
116
+ .ft-input-label {
117
+ position: absolute;
118
+ inset: 0;
119
+ display: flex;
120
+ background-color: ${le.colorSurface};
121
+ border-radius: ${le.borderRadiusS} ${le.borderRadiusS} 0 0;
122
+ }
123
+
124
+ .ft-input-label--outlined {
125
+ border-radius: ${le.borderRadiusS};
126
+ }
127
+
128
+ .ft-input-label {
129
+ border-color: ${le.borderColor};
130
+ }
131
+
132
+ .ft-input-label.ft-input-label--in-error {
133
+ border-color: ${le.colorError}
134
+ }
135
+
136
+ .ft-input-label:before,
137
+ .ft-input-label:after {
138
+ content: "";
139
+ display: flex;
140
+ border-bottom-width: 1px;
141
+ border-bottom-style: solid;
142
+ border-color: inherit;
143
+ }
144
+
145
+ .ft-input-label:before {
146
+ width: ${le.horizontalSpacing};
147
+ flex-shrink: 0;
148
+ }
149
+
150
+ .ft-input-label:after {
151
+ flex-grow: 1;
152
+ flex-shrink: 1;
153
+ }
154
+
155
+ .ft-input-label--text {
156
+ display: flex;
157
+ flex-shrink: 1;
158
+ position: relative;
159
+ border-bottom-width: 1px;
160
+ border-bottom-style: solid;
161
+ border-color: inherit;
162
+ color: ${le.textColor};
163
+ transition: font-size 250ms, line-height 250ms, color 250ms;
164
+ ${e.setVariable(Nt.fontSize,le.fontSize)};
165
+ ${e.setVariable(Nt.lineHeight,le.fontSize)};
166
+ }
167
+
168
+ .ft-input-label--in-error .ft-input-label--text {
169
+ color: ${le.colorError}
170
+ }
171
+
172
+ .ft-input-label--disabled .ft-input-label--text {
173
+ color: ${le.disabledTextColor};
174
+ }
175
+
176
+ .ft-input-label--hidden-text {
177
+ padding: 0 4px;
178
+ opacity: 0;
179
+ }
180
+
181
+ .ft-input-label--floating-text {
182
+ position: absolute;
183
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
184
+ transition: top 250ms;
185
+ overflow: hidden;
186
+ white-space: nowrap;
187
+ text-overflow: ellipsis;
188
+ padding: ${le.verticalSpacing} 4px;
189
+ margin: calc(${le.verticalSpacing} * -1) 0;
190
+ }
191
+
192
+ .ft-input-label--raised .ft-input-label--text {
193
+ ${e.setVariable(Nt.fontSize,le.raisedFontSize)};
194
+ ${e.setVariable(Nt.lineHeight,le.raisedFontSize)};
195
+ }
196
+
197
+ .ft-input-label--raised .ft-input-label--floating-text {
198
+ top: ${le.verticalSpacing};
199
+ }
200
+
201
+ .ft-input-label--outlined .ft-input-label--text,
202
+ .ft-input-label--outlined:before,
203
+ .ft-input-label--outlined:after {
204
+ border-top-width: 1px;
205
+ border-top-style: solid;
206
+ }
207
+
208
+ .ft-input-label--outlined:before {
209
+ border-left-width: 1px;
210
+ border-left-style: solid;
211
+ border-radius: ${le.borderRadiusS} 0 0 ${le.borderRadiusS};
212
+ }
213
+
214
+ .ft-input-label--outlined:after {
215
+ border-right-width: 1px;
216
+ border-right-style: solid;
217
+ border-radius: 0 ${le.borderRadiusS} ${le.borderRadiusS} 0;
218
+ }
219
+
220
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
221
+ padding: 2px 4px;
222
+ z-index: ${le.raisedZIndex};
223
+ background-color: ${le.colorSurface};
224
+ border-radius: ${le.borderRadiusS};
225
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
226
+ }
227
+
228
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
229
+ border-top: none;
230
+ }
231
+ `;var re=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ne extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
116
232
  <div class="${l.classMap(t)}">
117
233
  ${this.text?i.html`
118
234
  <div class="ft-input-label--text ft-typography--caption">
@@ -121,123 +237,96 @@ const F=Symbol.for(""),R=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
121
237
  </div>
122
238
  `:null}
123
239
  </div>
124
- `}}se.elementDefinitions={},se.styles=[Jt,i.css`
125
- .ft-input-label {
126
- position: absolute;
127
- inset: 0;
128
- display: flex;
129
- background-color: ${le.colorSurface};
130
- border-radius: ${le.borderRadiusS} ${le.borderRadiusS} 0 0;
131
- }
132
-
133
- .ft-input-label--outlined {
134
- border-radius: ${le.borderRadiusS};
135
- }
136
-
137
- .ft-input-label {
138
- border-color: ${le.borderColor};
139
- }
140
-
141
- .ft-input-label.ft-input-label--in-error {
142
- border-color: ${le.colorError}
143
- }
144
-
145
- .ft-input-label:before,
146
- .ft-input-label:after {
147
- content: "";
148
- display: flex;
149
- border-bottom-width: 1px;
150
- border-bottom-style: solid;
151
- border-color: inherit;
152
- }
153
-
154
- .ft-input-label:before {
155
- width: ${le.horizontalSpacing};
156
- flex-shrink: 0;
157
- }
158
-
159
- .ft-input-label:after {
160
- flex-grow: 1;
161
- flex-shrink: 1;
162
- }
163
-
164
- .ft-input-label--text {
165
- display: flex;
166
- flex-shrink: 1;
167
- position: relative;
168
- border-bottom-width: 1px;
169
- border-bottom-style: solid;
170
- border-color: inherit;
171
- color: ${le.textColor};
172
- transition: font-size 250ms, line-height 250ms, color 250ms;
173
- ${e.setVariable(Et.fontSize,le.fontSize)};
174
- ${e.setVariable(Et.lineHeight,le.fontSize)};
175
- }
176
-
177
- .ft-input-label--in-error .ft-input-label--text {
178
- color: ${le.colorError}
179
- }
180
-
181
- .ft-input-label--disabled .ft-input-label--text {
182
- color: ${le.disabledTextColor};
183
- }
184
-
185
- .ft-input-label--hidden-text {
186
- padding: 0 4px;
187
- opacity: 0;
188
- }
189
-
190
- .ft-input-label--floating-text {
191
- position: absolute;
192
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
193
- transition: top 250ms;
194
- overflow: hidden;
195
- white-space: nowrap;
196
- text-overflow: ellipsis;
197
- padding: ${le.verticalSpacing} 4px;
198
- margin: calc(${le.verticalSpacing} * -1) 0;
199
- }
200
-
201
- .ft-input-label--raised .ft-input-label--text {
202
- ${e.setVariable(Et.fontSize,le.raisedFontSize)};
203
- ${e.setVariable(Et.lineHeight,le.raisedFontSize)};
204
- }
205
-
206
- .ft-input-label--raised .ft-input-label--floating-text {
207
- top: ${le.verticalSpacing};
208
- }
209
-
210
- .ft-input-label--outlined .ft-input-label--text,
211
- .ft-input-label--outlined:before,
212
- .ft-input-label--outlined:after {
213
- border-top-width: 1px;
214
- border-top-style: solid;
215
- }
216
-
217
- .ft-input-label--outlined:before {
218
- border-left-width: 1px;
219
- border-left-style: solid;
220
- border-radius: ${le.borderRadiusS} 0 0 ${le.borderRadiusS};
221
- }
222
-
223
- .ft-input-label--outlined:after {
224
- border-right-width: 1px;
225
- border-right-style: solid;
226
- border-radius: 0 ${le.borderRadiusS} ${le.borderRadiusS} 0;
227
- }
228
-
229
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
230
- padding: 2px 4px;
231
- z-index: ${le.raisedZIndex};
232
- background-color: ${le.colorSurface};
233
- border-radius: ${le.borderRadiusS};
234
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
235
- }
236
-
237
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
238
- border-top: none;
239
- }
240
- `],oe([o.property({type:String})],se.prototype,"text",void 0),oe([o.property({type:Boolean})],se.prototype,"raised",void 0),oe([o.property({type:Boolean})],se.prototype,"outlined",void 0),oe([o.property({type:Boolean})],se.prototype,"disabled",void 0),oe([o.property({type:Boolean})],se.prototype,"error",void 0),e.customElement("ft-input-label")(se);var re=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ne=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),pe={color:ne,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",ne),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ae=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),fe=ae,he=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ae),de=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ce=de,xe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",de);class ue extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:l}=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!=l?l-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 i.html`
240
+ `}}ne.elementDefinitions={},ne.styles=[Yt,se],re([o.property({type:String})],ne.prototype,"text",void 0),re([o.property({type:Boolean})],ne.prototype,"raised",void 0),re([o.property({type:Boolean})],ne.prototype,"outlined",void 0),re([o.property({type:Boolean})],ne.prototype,"disabled",void 0),re([o.property({type:Boolean})],ne.prototype,"error",void 0),e.customElement("ft-input-label")(ne);const pe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ae={color:pe,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",pe),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),he=fe,de=e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),xe=ce,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ce),ye=i.css`
241
+ :host {
242
+ display: contents;
243
+ }
244
+
245
+ .ft-ripple {
246
+ position: absolute;
247
+ inset: 0;
248
+ pointer-events: none;
249
+ }
250
+
251
+ .ft-ripple:not(.ft-ripple--unbounded) {
252
+ overflow: hidden;
253
+ }
254
+
255
+ .ft-ripple .ft-ripple--background,
256
+ .ft-ripple .ft-ripple--effect {
257
+ position: absolute;
258
+ opacity: 0;
259
+ }
260
+
261
+ .ft-ripple .ft-ripple--background {
262
+ background-color: ${ae.backgroundColor};
263
+ }
264
+
265
+ .ft-ripple .ft-ripple--effect {
266
+ background-color: ${ae.color};
267
+ }
268
+
269
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
270
+ background-color: ${ue};
271
+ }
272
+
273
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
274
+ background-color: ${xe};
275
+ }
276
+
277
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
278
+ background-color: ${de};
279
+ }
280
+
281
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
282
+ background-color: ${he};
283
+ }
284
+
285
+ .ft-ripple .ft-ripple--background {
286
+ top: 0;
287
+ left: 0;
288
+ height: 100%;
289
+ width: 100%;
290
+ transition: opacity 75ms linear;
291
+ }
292
+
293
+ .ft-ripple .ft-ripple--effect,
294
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
295
+ border-radius: 50%;
296
+ }
297
+
298
+ .ft-ripple .ft-ripple--effect {
299
+ transform: translate(-50%, -50%) scale(0.15);
300
+ transition: transform 300ms ease, opacity 75ms linear;
301
+ }
302
+
303
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
304
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
305
+ left: 50%;
306
+ top: 50%;
307
+ }
308
+
309
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
310
+ transform: translate(-50%, -50%);
311
+ }
312
+
313
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
314
+ opacity: ${ae.opacityContentOnSurfaceHover};
315
+ }
316
+
317
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
318
+ opacity: ${ae.opacityContentOnSurfaceSelected};
319
+ }
320
+
321
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
322
+ opacity: ${ae.opacityContentOnSurfaceFocused};
323
+ }
324
+
325
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
326
+ opacity: ${ae.opacityContentOnSurfacePressed};
327
+ transform: translate(-50%, -50%) scale(1);
328
+ }
329
+ `;var ge,be,ve=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class me extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:l}=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!=l?l-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 i.html`
241
330
  <style>
242
331
  .ft-ripple .ft-ripple--effect,
243
332
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -254,138 +343,172 @@ const F=Symbol.for(""),R=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
254
343
  <div class="ft-ripple--background"></div>
255
344
  <div class="ft-ripple--effect"></div>
256
345
  </div>
257
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),l=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",l),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",l),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,l;return null!=e.x?({x:o,y:l}=e):null!=i.touches&&(o=i.touches[0].clientX,l=i.touches[0].clientY),{x:o,y:l}}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 ye,ge;ue.elementDefinitions={},ue.styles=i.css`
258
- :host {
259
- display: contents;
260
- }
261
-
262
- .ft-ripple {
263
- position: absolute;
264
- inset: 0;
265
- pointer-events: none;
266
- }
267
-
268
- .ft-ripple:not(.ft-ripple--unbounded) {
269
- overflow: hidden;
270
- }
271
-
272
- .ft-ripple .ft-ripple--background,
273
- .ft-ripple .ft-ripple--effect {
274
- position: absolute;
275
- opacity: 0;
276
- }
277
-
278
- .ft-ripple .ft-ripple--background {
279
- background-color: ${pe.backgroundColor};
280
- }
281
-
282
- .ft-ripple .ft-ripple--effect {
283
- background-color: ${pe.color};
284
- }
285
-
286
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
287
- background-color: ${xe};
288
- }
289
-
290
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
291
- background-color: ${ce};
292
- }
293
-
294
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
295
- background-color: ${he};
296
- }
297
-
298
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
299
- background-color: ${fe};
300
- }
301
-
302
- .ft-ripple .ft-ripple--background {
303
- top: 0;
304
- left: 0;
305
- height: 100%;
306
- width: 100%;
307
- transition: opacity 75ms linear;
308
- }
309
-
310
- .ft-ripple .ft-ripple--effect,
311
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
312
- border-radius: 50%;
313
- }
314
-
315
- .ft-ripple .ft-ripple--effect {
316
- transform: translate(-50%, -50%) scale(0.15);
317
- transition: transform 300ms ease, opacity 75ms linear;
318
- }
319
-
320
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
321
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
322
- left: 50%;
323
- top: 50%;
324
- }
325
-
326
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
327
- transform: translate(-50%, -50%);
328
- }
329
-
330
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
331
- opacity: ${pe.opacityContentOnSurfaceHover};
332
- }
333
-
334
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
335
- opacity: ${pe.opacityContentOnSurfaceSelected};
336
- }
337
-
338
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
339
- opacity: ${pe.opacityContentOnSurfaceFocused};
340
- }
341
-
342
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
343
- opacity: ${pe.opacityContentOnSurfacePressed};
344
- transform: translate(-50%, -50%) scale(1);
345
- }
346
- `,re([o.property({type:Boolean})],ue.prototype,"primary",void 0),re([o.property({type:Boolean})],ue.prototype,"secondary",void 0),re([o.property({type:Boolean})],ue.prototype,"unbounded",void 0),re([o.property({type:Boolean})],ue.prototype,"activated",void 0),re([o.property({type:Boolean})],ue.prototype,"selected",void 0),re([o.property({type:Boolean})],ue.prototype,"disabled",void 0),re([o.state()],ue.prototype,"hovered",void 0),re([o.state()],ue.prototype,"focused",void 0),re([o.state()],ue.prototype,"pressed",void 0),re([o.state()],ue.prototype,"rippling",void 0),re([o.state()],ue.prototype,"rippleSize",void 0),re([o.state()],ue.prototype,"originX",void 0),re([o.state()],ue.prototype,"originY",void 0),re([o.query(".ft-ripple")],ue.prototype,"ripple",void 0),re([o.query(".ft-ripple--effect")],ue.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ue),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;"}(ye||(ye={})),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;"}(ge||(ge={})),new Map([...["abw"].map((t=>[t,ge.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,ge.AUDIO])),...["avi"].map((t=>[t,ge.AVI])),...["chm","xhs"].map((t=>[t,ge.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,ge.CODE])),...["csv"].map((t=>[t,ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ge.DITA])),...["epub"].map((t=>[t,ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ge.EXCEL])),...["flac"].map((t=>[t,ge.FLAC])),...["gif"].map((t=>[t,ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,ge.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,ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ge.JPEG])),...["json"].map((t=>[t,ge.JSON])),...["m4a","m4p"].map((t=>[t,ge.M4A])),...["mov","qt"].map((t=>[t,ge.MOV])),...["mp3"].map((t=>[t,ge.MP3])),...["mp4","m4v"].map((t=>[t,ge.MP4])),...["ogg","oga"].map((t=>[t,ge.OGG])),...["pdf","ps"].map((t=>[t,ge.PDF])),...["png"].map((t=>[t,ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ge.POWERPOINT])),...["rar"].map((t=>[t,ge.RAR])),...["stp"].map((t=>[t,ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ge.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,ge.VIDEO])),...["wav"].map((t=>[t,ge.WAV])),...["wma"].map((t=>[t,ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ge.YAML])),...["zip"].map((t=>[t,ge.ZIP]))]);var be,ve=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(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"}(be||(be={}));const me=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),$e=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),we=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ke=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),ze=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset");class Se extends e.FtLitElement{constructor(){super(...arguments),this.variant=be.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
346
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),l=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",l),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",l),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,l;return null!=e.x?({x:o,y:l}=e):null!=i.touches&&(o=i.touches[0].clientX,l=i.touches[0].clientY),{x:o,y:l}}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()}}me.elementDefinitions={},me.styles=ye,ve([o.property({type:Boolean})],me.prototype,"primary",void 0),ve([o.property({type:Boolean})],me.prototype,"secondary",void 0),ve([o.property({type:Boolean})],me.prototype,"unbounded",void 0),ve([o.property({type:Boolean})],me.prototype,"activated",void 0),ve([o.property({type:Boolean})],me.prototype,"selected",void 0),ve([o.property({type:Boolean})],me.prototype,"disabled",void 0),ve([o.state()],me.prototype,"hovered",void 0),ve([o.state()],me.prototype,"focused",void 0),ve([o.state()],me.prototype,"pressed",void 0),ve([o.state()],me.prototype,"rippling",void 0),ve([o.state()],me.prototype,"rippleSize",void 0),ve([o.state()],me.prototype,"originX",void 0),ve([o.state()],me.prototype,"originY",void 0),ve([o.query(".ft-ripple")],me.prototype,"ripple",void 0),ve([o.query(".ft-ripple--effect")],me.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(me),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;"}(ge||(ge={})),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;"}(be||(be={})),new Map([...["abw"].map((t=>[t,be.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,be.AUDIO])),...["avi"].map((t=>[t,be.AVI])),...["chm","xhs"].map((t=>[t,be.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,be.CODE])),...["csv"].map((t=>[t,be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,be.DITA])),...["epub"].map((t=>[t,be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,be.EXCEL])),...["flac"].map((t=>[t,be.FLAC])),...["gif"].map((t=>[t,be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,be.GZIP])),...["html","htm","xhtml"].map((t=>[t,be.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,be.JPEG])),...["json"].map((t=>[t,be.JSON])),...["m4a","m4p"].map((t=>[t,be.M4A])),...["mov","qt"].map((t=>[t,be.MOV])),...["mp3"].map((t=>[t,be.MP3])),...["mp4","m4v"].map((t=>[t,be.MP4])),...["ogg","oga"].map((t=>[t,be.OGG])),...["pdf","ps"].map((t=>[t,be.PDF])),...["png"].map((t=>[t,be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,be.POWERPOINT])),...["rar"].map((t=>[t,be.RAR])),...["stp"].map((t=>[t,be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,be.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,be.VIDEO])),...["wav"].map((t=>[t,be.WAV])),...["wma"].map((t=>[t,be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,be.WORD])),...["xml","xsl","rdf"].map((t=>[t,be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,be.YAML])),...["zip"].map((t=>[t,be.ZIP]))]);const $e=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),we=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ke=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ze=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Se=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ne=i.css`
347
+ :host {
348
+ display: inline-block;
349
+ }
350
+
351
+ :host, i.ft-icon {
352
+ width: ${$e};
353
+ height: ${$e};
354
+ text-align: center;
355
+ }
356
+
357
+ i.ft-icon {
358
+ font-size: ${$e};
359
+ line-height: 1;
360
+ font-weight: normal;
361
+ text-transform: none;
362
+ font-style: normal;
363
+ font-variant: normal;
364
+ speak: none;
365
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
366
+ text-rendering: auto;
367
+ -webkit-font-smoothing: antialiased;
368
+ -moz-osx-font-smoothing: grayscale;
369
+ vertical-align: ${Se};
370
+ }
371
+
372
+ .ft-icon--fluid-topics {
373
+ font-family: ${we}, ft-icons, fticons, sans-serif;
374
+ }
375
+
376
+ .ft-icon--file-format {
377
+ font-family: ${ke}, ft-mime, sans-serif;
378
+ }
379
+
380
+ .ft-icon--material {
381
+ font-family: ${ze}, "Material Icons", sans-serif;
382
+ }
383
+ `;var Ee;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ee||(Ee={}));var Oe=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class je extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ee.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
347
384
  <i class="ft-icon ${"ft-icon--"+this.variant}">
348
385
  ${s.unsafeHTML(this.resolvedIcon)}
349
386
  <slot ?hidden=${t}></slot>
350
387
  </i>
351
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case be.file_format:this.resolvedIcon=null!==(t=ge[o.toUpperCase()])&&void 0!==t?t:o;break;case be.fluid_topics:this.resolvedIcon=null!==(e=ye[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Se.elementDefinitions={},Se.styles=i.css`
352
- :host {
353
- display: inline-block;
354
- }
355
-
356
- :host, i.ft-icon {
357
- width: ${me};
358
- height: ${me};
359
- text-align: center;
360
- }
361
-
362
- i.ft-icon {
363
- font-size: ${me};
364
- line-height: 1;
365
- font-weight: normal;
366
- text-transform: none;
367
- font-style: normal;
368
- font-variant: normal;
369
- speak: none;
370
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
371
- text-rendering: auto;
372
- -webkit-font-smoothing: antialiased;
373
- -moz-osx-font-smoothing: grayscale;
374
- vertical-align: ${ze};
375
- }
376
-
377
- .ft-icon--fluid-topics {
378
- font-family: ${$e}, ft-icons, fticons, sans-serif;
379
- }
380
-
381
- .ft-icon--file-format {
382
- font-family: ${we}, ft-mime, sans-serif;
383
- }
384
-
385
- .ft-icon--material {
386
- font-family: ${ke}, "Material Icons", sans-serif;
387
- }
388
- `,ve([o.property()],Se.prototype,"variant",void 0),ve([o.property()],Se.prototype,"value",void 0),ve([o.state()],Se.prototype,"resolvedIcon",void 0),ve([o.query("slot")],Se.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Se);var Ne=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ee={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium)};class Oe extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
388
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Ee.file_format:this.resolvedIcon=null!==(t=be[o.toUpperCase()])&&void 0!==t?t:o;break;case Ee.fluid_topics:this.resolvedIcon=null!==(e=ge[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}je.elementDefinitions={},je.styles=Ne,Oe([o.property()],je.prototype,"variant",void 0),Oe([o.property()],je.prototype,"value",void 0),Oe([o.state()],je.prototype,"resolvedIcon",void 0),Oe([o.query("slot")],je.prototype,"slottedContent",void 0),e.customElement("ft-icon")(je);const Ie={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium)},Ce=i.css`
389
+ *:focus {
390
+ outline: none;
391
+ }
392
+
393
+ .ft-text-field {
394
+ display: flex;
395
+ flex-direction: column;
396
+ align-items: stretch;
397
+ }
398
+
399
+ ft-input-label {
400
+ ${e.setVariable(le.fontSize,Ie.fontSize)};
401
+ ${e.setVariable(le.raisedFontSize,Ie.labelSize)};
402
+ ${e.setVariable(le.verticalSpacing,Ie.verticalSpacing)};
403
+ ${e.setVariable(le.horizontalSpacing,i.css`calc(${Ie.horizontalSpacing} - 4px)`)};
404
+ }
405
+
406
+ .ft-text-field--main-panel {
407
+ position: relative;
408
+ display: flex;
409
+ height: calc(4 * ${Ie.verticalSpacing} + ${Ie.labelSize} + ${Ie.fontSize});
410
+ }
411
+
412
+ .ft-text-field--input-panel {
413
+ flex-grow: 1;
414
+ position: relative;
415
+ display: flex;
416
+ align-items: center;
417
+ overflow: hidden;
418
+ }
419
+
420
+ .ft-text-field--input-panel ft-ripple {
421
+ ${e.setVariable(ae.opacityContentOnSurfaceHover,"0.08")};
422
+ ${e.setVariable(ae.opacityContentOnSurfacePressed,"0.04")};
423
+ }
424
+
425
+ .ft-text-field--input-wrapper {
426
+ flex-grow: 1;
427
+ flex-shrink: 1;
428
+
429
+ display: flex;
430
+ align-items: center;
431
+
432
+ ${e.setVariable(vt.fontSize,Ie.fontSize)};
433
+ ${e.setVariable(vt.lineHeight,Ie.fontSize)};
434
+
435
+ padding: 0 ${Ie.horizontalSpacing};
436
+ }
437
+
438
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
439
+ align-items: flex-end;
440
+ padding: 0 ${Ie.horizontalSpacing} ${Ie.verticalSpacing} ${Ie.horizontalSpacing};
441
+ }
442
+
443
+ .ft-text-field--prefix {
444
+ display: none;
445
+ color: ${Ie.prefixColor}
446
+ }
447
+
448
+ .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
449
+ display: block;
450
+ }
451
+
452
+ .ft-text-field--input {
453
+ display: block;
454
+ position: relative;
455
+ flex-grow: 1;
456
+ flex-shrink: 1;
457
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
458
+
459
+ color: ${Ie.colorOnSurface};
460
+ padding: calc(2 * ${Ie.verticalSpacing}) 0;
461
+ border: none;
462
+ background: none;
463
+ }
464
+
465
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
466
+ padding-bottom: 0;
467
+ padding-top: calc(${Ie.labelSize} + 2 * ${Ie.verticalSpacing});
468
+ }
469
+
470
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
471
+ .ft-text-field--input::-webkit-list-button {
472
+ display: none !important;
473
+ }
474
+
475
+ .ft-text-field--disabled .ft-text-field--input {
476
+ color: ${Ie.colorOnSurfaceDisabled};
477
+ }
478
+
479
+ .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
480
+ cursor: pointer;
481
+ }
482
+
483
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
484
+ ${e.setVariable(le.borderColor,Ie.colorPrimary)};
485
+ ${e.setVariable(le.textColor,Ie.colorPrimary)};
486
+ }
487
+
488
+ .ft-text-field--filled .ft-text-field--input-panel {
489
+ border-radius: ${Ie.borderRadiusS} ${Ie.borderRadiusS} 0 0;
490
+ }
491
+
492
+ .ft-text-field--outlined .ft-text-field--input-panel {
493
+ border-radius: ${Ie.borderRadiusS};
494
+ }
495
+
496
+ .ft-text-field--helper-text {
497
+ padding: 0 12px 0 ${Ie.horizontalSpacing};
498
+ color: ${Ie.helperColor};
499
+ }
500
+
501
+ .ft-text-field--in-error .ft-text-field--input,
502
+ .ft-text-field--in-error .ft-text-field--helper-text,
503
+ .ft-text-field--in-error .ft-text-field--prefix {
504
+ color: ${Ie.colorError};
505
+ }
506
+
507
+ .ft-text-field--icon {
508
+ padding-right: ${Ie.horizontalSpacing};
509
+ color: ${Ie.iconColor};
510
+ }
511
+ `;var Ae=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class _e extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
389
512
  <div class="${l.classMap(t)}">
390
513
  <div class="ft-text-field--main-panel">
391
514
  <ft-input-label text="${this.label}"
@@ -420,127 +543,4 @@ const F=Symbol.for(""),R=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
420
543
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
421
544
  </ft-typography>`:void 0}
422
545
  </div>
423
- `}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)||""}}Oe.elementDefinitions={"ft-input-label":se,"ft-ripple":ue,"ft-typography":ie,"ft-icon":Se},Oe.styles=[Xt,i.css`
424
- *:focus {
425
- outline: none;
426
- }
427
-
428
- .ft-text-field {
429
- display: flex;
430
- flex-direction: column;
431
- align-items: stretch;
432
- }
433
-
434
- ft-input-label {
435
- ${e.setVariable(le.fontSize,Ee.fontSize)};
436
- ${e.setVariable(le.raisedFontSize,Ee.labelSize)};
437
- ${e.setVariable(le.verticalSpacing,Ee.verticalSpacing)};
438
- ${e.setVariable(le.horizontalSpacing,i.css`calc(${Ee.horizontalSpacing} - 4px)`)};
439
- }
440
-
441
- .ft-text-field--main-panel {
442
- position: relative;
443
- display: flex;
444
- height: calc(4 * ${Ee.verticalSpacing} + ${Ee.labelSize} + ${Ee.fontSize});
445
- }
446
-
447
- .ft-text-field--input-panel {
448
- flex-grow: 1;
449
- position: relative;
450
- display: flex;
451
- align-items: center;
452
- overflow: hidden;
453
- }
454
-
455
- .ft-text-field--input-panel ft-ripple {
456
- ${e.setVariable(pe.opacityContentOnSurfaceHover,"0.08")};
457
- ${e.setVariable(pe.opacityContentOnSurfacePressed,"0.04")};
458
- }
459
-
460
- .ft-text-field--input-wrapper {
461
- flex-grow: 1;
462
- flex-shrink: 1;
463
-
464
- display: flex;
465
- align-items: center;
466
-
467
- ${e.setVariable(mt.fontSize,Ee.fontSize)};
468
- ${e.setVariable(mt.lineHeight,Ee.fontSize)};
469
-
470
- padding: 0 ${Ee.horizontalSpacing};
471
- }
472
-
473
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
474
- align-items: flex-end;
475
- padding: 0 ${Ee.horizontalSpacing} ${Ee.verticalSpacing} ${Ee.horizontalSpacing};
476
- }
477
-
478
- .ft-text-field--prefix {
479
- display: none;
480
- color: ${Ee.prefixColor}
481
- }
482
-
483
- .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
484
- display: block;
485
- }
486
-
487
- .ft-text-field--input {
488
- display: block;
489
- position: relative;
490
- flex-grow: 1;
491
- flex-shrink: 1;
492
- min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
493
-
494
- color: ${Ee.colorOnSurface};
495
- padding: calc(2 * ${Ee.verticalSpacing}) 0;
496
- border: none;
497
- background: none;
498
- }
499
-
500
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
501
- padding-bottom: 0;
502
- padding-top: calc(${Ee.labelSize} + 2 * ${Ee.verticalSpacing});
503
- }
504
-
505
- .ft-text-field--input::-webkit-calendar-picker-indicator,
506
- .ft-text-field--input::-webkit-list-button {
507
- display: none !important;
508
- }
509
-
510
- .ft-text-field--disabled .ft-text-field--input {
511
- color: ${Ee.colorOnSurfaceDisabled};
512
- }
513
-
514
- .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
515
- cursor: pointer;
516
- }
517
-
518
- .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
519
- ${e.setVariable(le.borderColor,Ee.colorPrimary)};
520
- ${e.setVariable(le.textColor,Ee.colorPrimary)};
521
- }
522
-
523
- .ft-text-field--filled .ft-text-field--input-panel {
524
- border-radius: ${Ee.borderRadiusS} ${Ee.borderRadiusS} 0 0;
525
- }
526
-
527
- .ft-text-field--outlined .ft-text-field--input-panel {
528
- border-radius: ${Ee.borderRadiusS};
529
- }
530
-
531
- .ft-text-field--helper-text {
532
- padding: 0 12px 0 ${Ee.horizontalSpacing};
533
- color: ${Ee.helperColor};
534
- }
535
-
536
- .ft-text-field--in-error .ft-text-field--input,
537
- .ft-text-field--in-error .ft-text-field--helper-text,
538
- .ft-text-field--in-error .ft-text-field--prefix {
539
- color: ${Ee.colorError};
540
- }
541
-
542
- .ft-text-field--icon {
543
- padding-right: ${Ee.horizontalSpacing};
544
- color: ${Ee.iconColor};
545
- }
546
- `],Ne([o.property({type:String})],Oe.prototype,"label",void 0),Ne([o.property({reflect:!0})],Oe.prototype,"value",void 0),Ne([o.property({type:String})],Oe.prototype,"helper",void 0),Ne([o.property({type:Boolean})],Oe.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],Oe.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Oe.prototype,"error",void 0),Ne([o.query(".ft-text-field--input")],Oe.prototype,"input",void 0),Ne([o.property({type:String})],Oe.prototype,"prefix",void 0),Ne([o.property({type:String})],Oe.prototype,"icon",void 0),Ne([o.property({type:String})],Oe.prototype,"iconVariant",void 0),Ne([o.state()],Oe.prototype,"focused",void 0),e.customElement("ft-text-field")(Oe),t.FtTextField=Oe,t.FtTextFieldCssVariables=Ee,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
546
+ `}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)||""}}_e.elementDefinitions={"ft-input-label":ne,"ft-ripple":me,"ft-typography":oe,"ft-icon":je},_e.styles=[Lt,Ce],Ae([o.property({type:String})],_e.prototype,"label",void 0),Ae([o.property({reflect:!0})],_e.prototype,"value",void 0),Ae([o.property({type:String})],_e.prototype,"helper",void 0),Ae([o.property({type:Boolean})],_e.prototype,"outlined",void 0),Ae([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Ae([o.property({type:Boolean})],_e.prototype,"error",void 0),Ae([o.query(".ft-text-field--input")],_e.prototype,"input",void 0),Ae([o.property({type:String})],_e.prototype,"prefix",void 0),Ae([o.property({type:String})],_e.prototype,"icon",void 0),Ae([o.property({type:String})],_e.prototype,"iconVariant",void 0),Ae([o.state()],_e.prototype,"focused",void 0),e.customElement("ft-text-field")(_e),t.FtTextField=_e,t.FtTextFieldCssVariables=Ie,t.styles=Ce,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);