@fluid-topics/ft-text-field 0.1.15 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,69 +1,69 @@
1
- !function(t,e,i,r,a,o){
1
+ !function(t,i,e,o,l){
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var p;const s=globalThis.trustedTypes,n=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,l="?"+c,d=`<${l}>`,f=document,u=(t="")=>f.createComment(t),h=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,v=/>/g,b=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,x=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),A=new WeakMap,O=f.createTreeWalker(f,129,null,!1),T=(t,e)=>{const i=t.length-1,r=[];let a,o=2===e?"<svg>":"",p=y;for(let e=0;e<i;e++){const i=t[e];let s,n,l=-1,f=0;for(;f<i.length&&(p.lastIndex=f,n=p.exec(i),null!==n);)f=p.lastIndex,p===y?"!--"===n[1]?p=g:void 0!==n[1]?p=v:void 0!==n[2]?(w.test(n[2])&&(a=RegExp("</"+n[2],"g")),p=b):void 0!==n[3]&&(p=b):p===b?">"===n[0]?(p=null!=a?a:y,l=-1):void 0===n[1]?l=-2:(l=p.lastIndex-n[2].length,s=n[1],p=void 0===n[3]?b:'"'===n[3]?$:x):p===$||p===x?p=b:p===g||p===v?p=y:(p=b,a=void 0);const u=p===b&&t[e+1].startsWith("/>")?" ":"";o+=p===y?i+d:l>=0?(r.push(s),i.slice(0,l)+"$lit$"+i.slice(l)+c+u):i+c+(-2===l?(r.push(void 0),e):u)}const s=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==n?n.createHTML(s):s,r]};class _{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let a=0,o=0;const p=t.length-1,n=this.parts,[d,f]=T(t,e);if(this.el=_.createElement(d,i),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=O.nextNode())&&n.length<p;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(c)){const i=f[o++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(c),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:a,name:e[2],strings:t,ctor:"."===e[1]?D:"?"===e[1]?R:"@"===e[1]?B:F})}else n.push({type:6,index:a})}for(const e of t)r.removeAttribute(e)}if(w.test(r.tagName)){const t=r.textContent.split(c),e=t.length-1;if(e>0){r.textContent=s?s.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],u()),O.nextNode(),n.push({type:2,index:++a});r.append(t[e],u())}}}else if(8===r.nodeType)if(r.data===l)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(c,t+1));)n.push({type:7,index:a}),t+=c.length-1}a++}}static createElement(t,e){const i=f.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,r){var a,o,p,s;if(e===k)return e;let n=void 0!==r?null===(a=i._$Cl)||void 0===a?void 0:a[r]:i._$Cu;const c=h(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==c&&(null===(o=null==n?void 0:n._$AO)||void 0===o||o.call(n,!1),void 0===c?n=void 0:(n=new c(t),n._$AT(t,i,r)),void 0!==r?(null!==(p=(s=i)._$Cl)&&void 0!==p?p:s._$Cl=[])[r]=n:i._$Cu=n),void 0!==n&&(e=I(t,n._$AS(t,e.values),n,r)),e}class E{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,a=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:f).importNode(i,!0);O.currentNode=a;let o=O.nextNode(),p=0,s=0,n=r[0];for(;void 0!==n;){if(p===n.index){let e;2===n.type?e=new C(o,o.nextSibling,this,t):1===n.type?e=new n.ctor(o,n.name,n.strings,this,t):6===n.type&&(e=new N(o,this,t)),this.v.push(e),n=r[++s]}p!==(null==n?void 0:n.index)&&(o=O.nextNode(),p++)}return a}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class C{constructor(t,e,i,r){var a;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(a=null==r?void 0:r.isConnected)||void 0===a||a}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),h(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return m(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&h(this._$AH)?this._$AA.nextSibling.data=t:this.S(f.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,a="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=_.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===a)this._$AH.m(i);else{const t=new E(a,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=A.get(t.strings);return void 0===e&&A.set(t.strings,e=new _(t)),e}A(t){m(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const a of t)r===e.length?e.push(i=new C(this.M(u()),this.M(u()),this,this.options)):i=e[r],i._$AI(a),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class F{constructor(t,e,i,r,a){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const a=this.strings;let o=!1;if(void 0===a)t=I(this,t,e,0),o=!h(t)||t!==this._$AH&&t!==k,o&&(this._$AH=t);else{const r=t;let p,s;for(t=a[0],p=0;p<a.length-1;p++)s=I(this,r[i+p],e,p),s===k&&(s=this._$AH[p]),o||(o=!h(s)||s!==this._$AH[p]),s===z?t=z:t!==z&&(t+=(null!=s?s:"")+a[p+1]),this._$AH[p]=s}o&&!r&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends F{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const j=s?s.emptyScript:"";class R extends F{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,j):this.element.removeAttribute(this.name)}}class B extends F{constructor(t,e,i,r,a){super(t,e,i,r,a),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:z)===k)return;const r=this._$AH,a=t===z&&r!==z||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==z&&(r===z||a);a&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class N{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(_,C),(null!==(p=globalThis.litHtmlVersions)&&void 0!==p?p:globalThis.litHtmlVersions=[]).push("2.1.3");
7
+ var s;const r=globalThis.trustedTypes,n=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,a="?"+p,f=`<${a}>`,h=document,d=(t="")=>h.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,b=/>/g,v=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,x=/'/g,$=/"/g,m=/^(?:script|style|textarea|title)$/i,w=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),S=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),k=new WeakMap,E=h.createTreeWalker(h,129,null,!1),C=(t,i)=>{const e=t.length-1,o=[];let l,s=2===i?"<svg>":"",r=y;for(let i=0;i<e;i++){const e=t[i];let n,a,h=-1,d=0;for(;d<e.length&&(r.lastIndex=d,a=r.exec(e),null!==a);)d=r.lastIndex,r===y?"!--"===a[1]?r=g:void 0!==a[1]?r=b:void 0!==a[2]?(m.test(a[2])&&(l=RegExp("</"+a[2],"g")),r=v):void 0!==a[3]&&(r=v):r===v?">"===a[0]?(r=null!=l?l:y,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,n=a[1],r=void 0===a[3]?v:'"'===a[3]?$:x):r===$||r===x?r=v:r===g||r===b?r=y:(r=v,l=void 0);const u=r===v&&t[i+1].startsWith("/>")?" ":"";s+=r===y?e+f:h>=0?(o.push(n),e.slice(0,h)+"$lit$"+e.slice(h)+p+u):e+p+(-2===h?(o.push(void 0),i):u)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==n?n.createHTML(a):a,o]};class I{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let l=0,s=0;const n=t.length-1,f=this.parts,[h,u]=C(t,i);if(this.el=I.createElement(h,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=E.nextNode())&&f.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const e=u[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(e);f.push({type:1,index:l,name:i[2],strings:t,ctor:"."===i[1]?B:"?"===i[1]?T:"@"===i[1]?D:Z})}else f.push({type:6,index:l})}for(const i of t)o.removeAttribute(i)}if(m.test(o.tagName)){const t=o.textContent.split(p),i=t.length-1;if(i>0){o.textContent=r?r.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],d()),E.nextNode(),f.push({type:2,index:++l});o.append(t[i],d())}}}else if(8===o.nodeType)if(o.data===a)f.push({type:2,index:l});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)f.push({type:7,index:l}),t+=p.length-1}l++}}static createElement(t,i){const e=h.createElement("template");return e.innerHTML=t,e}}function A(t,i,e=t,o){var l,s,r,n;if(i===S)return i;let p=void 0!==o?null===(l=e._$Cl)||void 0===l?void 0:l[o]:e._$Cu;const a=u(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(n=e)._$Cl)&&void 0!==r?r:n._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=A(t,p._$AS(t,i.values),p,o)),i}class O{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,l=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:h).importNode(e,!0);E.currentNode=l;let s=E.nextNode(),r=0,n=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new _(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new j(s,this,t)),this.v.push(i),p=o[++n]}r!==(null==p?void 0:p.index)&&(s=E.nextNode(),r++)}return l}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class _{constructor(t,i,e,o){var l;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(l=null==o?void 0:o.isConnected)||void 0===l||l}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=A(this,t,i),u(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return c(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(h.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,l="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===l)this._$AH.m(e);else{const t=new O(l,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=k.get(t.strings);return void 0===i&&k.set(t.strings,i=new I(t)),i}A(t){c(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const l of t)o===i.length?i.push(e=new _(this.M(d()),this.M(d()),this,this.options)):e=i[o],e._$AI(l),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Z{constructor(t,i,e,o,l){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=l,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const l=this.strings;let s=!1;if(void 0===l)t=A(this,t,i,0),s=!u(t)||t!==this._$AH&&t!==S,s&&(this._$AH=t);else{const o=t;let r,n;for(t=l[0],r=0;r<l.length-1;r++)n=A(this,o[e+r],i,r),n===S&&(n=this._$AH[r]),s||(s=!u(n)||n!==this._$AH[r]),n===z?t=z:t!==z&&(t+=(null!=n?n:"")+l[r+1]),this._$AH[r]=n}s&&!o&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends Z{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const N=r?r.emptyScript:"";class T extends Z{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,N):this.element.removeAttribute(this.name)}}class D extends Z{constructor(t,i,e,o,l){super(t,i,e,o,l),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=A(this,t,i,0))&&void 0!==e?e:z)===S)return;const o=this._$AH,l=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==z&&(o===z||l);l&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){A(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(I,_),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s:globalThis.litHtmlVersions=[]).push("2.1.3");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=i.length;let o,p;const s=[],n=[];let c,l=0,d=!1;for(;l<a;){for(c=e[l];l<a&&void 0!==(p=i[l],o=null===(r=p)||void 0===r?void 0:r._$litStatic$);)c+=o+e[++l],d=!0;n.push(p),s.push(c),l++}if(l===a&&s.push(e[a]),d){const t=s.join("$$lit$$");void 0===(e=U.get(t))&&(s.raw=s,U.set(t,e=s)),i=n}return t(e,...i)})(S);var P,G=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(a=t[s])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};!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"}(P||(P={}));const Z=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.titleFont),L=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.contentFont),q={fontFamily:L,fontSize:a.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:a.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:a.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:a.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:a.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},W=a.FtCssVariable.extend("--ft-typography-title-font-family",Z),K=a.FtCssVariable.extend("--ft-typography-title-font-size",q.fontSize,"20px"),X=a.FtCssVariable.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),Y=a.FtCssVariable.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),J=a.FtCssVariable.extend("--ft-typography-title-line-height",q.lineHeight,"24px"),Q=a.FtCssVariable.extend("--ft-typography-title-text-transform",q.textTransform,"inherit"),tt=a.FtCssVariable.extend("--ft-typography-title-dense-font-family",Z),et=a.FtCssVariable.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),it=a.FtCssVariable.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),rt=a.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),at=a.FtCssVariable.extend("--ft-typography-title-dense-line-height",q.lineHeight,"24px"),ot=a.FtCssVariable.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit"),pt=a.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),st=a.FtCssVariable.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),nt=a.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),ct=a.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),lt=a.FtCssVariable.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"24px"),dt=a.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit"),ft=a.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),ut=a.FtCssVariable.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),ht=a.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),mt=a.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),yt=a.FtCssVariable.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"24px"),gt=a.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit"),vt={fontFamily:a.FtCssVariable.extend("--ft-typography-body1-font-family",L),fontSize:a.FtCssVariable.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body1-line-height",q.lineHeight,"24px"),textTransform:a.FtCssVariable.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit")},bt=a.FtCssVariable.extend("--ft-typography-body2-font-family",L),xt=a.FtCssVariable.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),$t=a.FtCssVariable.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),wt=a.FtCssVariable.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),St=a.FtCssVariable.extend("--ft-typography-body2-line-height",q.lineHeight,"20px"),kt=a.FtCssVariable.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit"),zt={fontFamily:a.FtCssVariable.extend("--ft-typography-caption-font-family",L),fontSize:a.FtCssVariable.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),fontWeight:a.FtCssVariable.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),lineHeight:a.FtCssVariable.extend("--ft-typography-caption-line-height",q.lineHeight,"16px"),textTransform:a.FtCssVariable.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit")},At=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),Ot=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),Tt=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),_t=a.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),It=a.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"16px"),Et=a.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit"),Ct=a.FtCssVariable.extend("--ft-typography-overline-font-family",L),Ft=a.FtCssVariable.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),Dt=a.FtCssVariable.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),jt=a.FtCssVariable.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),Rt=a.FtCssVariable.extend("--ft-typography-overline-line-height",q.lineHeight,"16px"),Bt=a.FtCssVariable.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase"),Nt=a.FtCssVariable.extend("--ft-typography-button-font-family",L),Ht=a.FtCssVariable.extend("--ft-typography-button-font-size",q.fontSize,"14px"),Mt=a.FtCssVariable.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),Ut=a.FtCssVariable.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),Vt=a.FtCssVariable.extend("--ft-typography-button-line-height",q.lineHeight,"16px"),Pt=a.FtCssVariable.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase"),Gt=e.css`
13
+ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;let s,r;const n=[],p=[];let a,f=0,h=!1;for(;f<l;){for(a=i[f];f<l&&void 0!==(r=e[f],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)a+=s+i[++f],h=!0;p.push(r),n.push(a),f++}if(f===l&&n.push(i[l]),h){const t=n.join("$$lit$$");void 0===(i=R.get(t))&&(n.raw=n,R.set(t,i=n)),e=p}return t(i,...e)})(w);var W,H=function(t,i,e,o){for(var l,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(i,e,r):l(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,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"}(W||(W={}));const G=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),K=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),L={fontFamily:K,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},P=i.FtCssVariable.extend("--ft-typography-title-font-family",G),V=i.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),X=i.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Y=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),q=i.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),J=i.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),Q=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",G),tt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),it=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),et=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),lt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),st=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",K),rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),nt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),ht=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",K),dt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),ct=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),bt={fontFamily:i.FtCssVariable.extend("--ft-typography-body1-font-family",K),fontSize:i.FtCssVariable.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:i.FtCssVariable.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:i.FtCssVariable.extend("--ft-typography-body1-line-height",L.lineHeight,"24px"),textTransform:i.FtCssVariable.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},vt=i.FtCssVariable.extend("--ft-typography-body2-font-family",K),xt=i.FtCssVariable.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),$t=i.FtCssVariable.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),mt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),wt=i.FtCssVariable.extend("--ft-typography-body2-line-height",L.lineHeight,"20px"),St=i.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),zt={fontFamily:i.FtCssVariable.extend("--ft-typography-caption-font-family",K),fontSize:i.FtCssVariable.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:i.FtCssVariable.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:i.FtCssVariable.extend("--ft-typography-caption-line-height",L.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},kt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",K),Et=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),Ct=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),It=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),At=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"16px"),Ot=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),_t=i.FtCssVariable.extend("--ft-typography-overline-font-family",K),Zt=i.FtCssVariable.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),Bt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Nt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Tt=i.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Dt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),jt=i.FtCssVariable.extend("--ft-typography-button-font-family",K),Ft=i.FtCssVariable.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Mt=i.FtCssVariable.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Rt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Ut=i.FtCssVariable.extend("--ft-typography-button-line-height",L.lineHeight,"16px"),Wt=i.FtCssVariable.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Ht=e.css`
14
14
  .ft-typography--title {
15
- font-family: ${W};
16
- font-size: ${K};
15
+ font-family: ${P};
16
+ font-size: ${V};
17
17
  font-weight: ${X};
18
18
  letter-spacing: ${Y};
19
- line-height: ${J};
20
- text-transform: ${Q};
19
+ line-height: ${q};
20
+ text-transform: ${J};
21
21
  }
22
- `,Zt=e.css`
22
+ `,Gt=e.css`
23
23
  .ft-typography--title-dense {
24
- font-family: ${tt};
25
- font-size: ${et};
24
+ font-family: ${Q};
25
+ font-size: ${tt};
26
26
  font-weight: ${it};
27
- letter-spacing: ${rt};
28
- line-height: ${at};
29
- text-transform: ${ot};
27
+ letter-spacing: ${et};
28
+ line-height: ${ot};
29
+ text-transform: ${lt};
30
30
  }
31
- `,Lt=e.css`
31
+ `,Kt=e.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${pt};
34
- font-size: ${st};
33
+ font-family: ${st};
34
+ font-size: ${rt};
35
35
  font-weight: ${nt};
36
- letter-spacing: ${ct};
37
- line-height: ${lt};
38
- text-transform: ${dt};
36
+ letter-spacing: ${pt};
37
+ line-height: ${at};
38
+ text-transform: ${ft};
39
39
  }
40
- `,qt=e.css`
40
+ `,Lt=e.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${ft};
43
- font-size: ${ut};
44
- font-weight: ${ht};
45
- letter-spacing: ${mt};
42
+ font-family: ${ht};
43
+ font-size: ${dt};
44
+ font-weight: ${ut};
45
+ letter-spacing: ${ct};
46
46
  line-height: ${yt};
47
47
  text-transform: ${gt};
48
48
  }
49
49
 
50
- `,Wt=e.css`
50
+ `,Pt=e.css`
51
51
  .ft-typography--body1 {
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};
52
+ font-family: ${bt.fontFamily};
53
+ font-size: ${bt.fontSize};
54
+ font-weight: ${bt.fontWeight};
55
+ letter-spacing: ${bt.letterSpacing};
56
+ line-height: ${bt.lineHeight};
57
+ text-transform: ${bt.textTransform};
58
58
  }
59
- `,Kt=e.css`
59
+ `,Vt=e.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${bt};
61
+ font-family: ${vt};
62
62
  font-size: ${xt};
63
63
  font-weight: ${$t};
64
- letter-spacing: ${wt};
65
- line-height: ${St};
66
- text-transform: ${kt};
64
+ letter-spacing: ${mt};
65
+ line-height: ${wt};
66
+ text-transform: ${St};
67
67
  }
68
68
  `,Xt=e.css`
69
69
  .ft-typography--caption {
@@ -76,147 +76,44 @@ const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=i.length;
76
76
  }
77
77
  `,Yt=e.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${At};
80
- font-size: ${Ot};
81
- font-weight: ${Tt};
82
- letter-spacing: ${_t};
83
- line-height: ${It};
84
- text-transform: ${Et};
79
+ font-family: ${kt};
80
+ font-size: ${Et};
81
+ font-weight: ${Ct};
82
+ letter-spacing: ${It};
83
+ line-height: ${At};
84
+ text-transform: ${Ot};
85
85
  }
86
- `,Jt=e.css`
86
+ `,qt=e.css`
87
87
  .ft-typography--overline {
88
- font-family: ${Ct};
89
- font-size: ${Ft};
90
- font-weight: ${Dt};
91
- letter-spacing: ${jt};
92
- line-height: ${Rt};
93
- text-transform: ${Bt};
88
+ font-family: ${_t};
89
+ font-size: ${Zt};
90
+ font-weight: ${Bt};
91
+ letter-spacing: ${Nt};
92
+ line-height: ${Tt};
93
+ text-transform: ${Dt};
94
94
  }
95
- `,Qt=e.css`
95
+ `,Jt=e.css`
96
96
  .ft-typography--button {
97
- font-family: ${Nt};
98
- font-size: ${Ht};
97
+ font-family: ${jt};
98
+ font-size: ${Ft};
99
99
  font-weight: ${Mt};
100
- letter-spacing: ${Ut};
101
- line-height: ${Vt};
102
- text-transform: ${Pt};
100
+ letter-spacing: ${Rt};
101
+ line-height: ${Ut};
102
+ text-transform: ${Wt};
103
103
  }
104
- `;let te=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=P.body1}getStyles(){return[Gt,Zt,Lt,qt,Wt,Kt,Xt,Yt,Jt,Qt,e.css`
105
- .ft-typography {
106
- vertical-align: inherit;
107
- }
108
- `]}getTemplate(){return this.element?V`
104
+ `;class Qt extends i.FtLitElement{constructor(){super(...arguments),this.variant=W.body1}render(){return this.element?U`
109
105
  <${M(this.element)}
110
106
  class="ft-typography ft-typography--${this.variant}">
111
107
  <slot></slot>
112
108
  </${M(this.element)}>
113
- `:V`
109
+ `:U`
114
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
115
- `}};G([i.property()],te.prototype,"element",void 0),G([i.property()],te.prototype,"variant",void 0),te=G([a.customElement("ft-typography")],te);var ee=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(a=t[s])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};const ie={fontSize:a.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:a.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:a.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:a.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:a.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:a.FtCssVariable.extend("--ft-input-label-border-color",a.designSystemVariables.colorOutline),textColor:a.FtCssVariable.extend("--ft-input-label-text-color",a.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:a.FtCssVariable.extend("--ft-input-label-disabled-text-color",a.designSystemVariables.colorOnSurfaceDisabled),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system")};let re=class extends a.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Xt,e.css`
116
- .ft-input-label {
117
- position: absolute;
118
- inset: 0;
119
- display: flex;
120
- }
121
-
122
- .ft-input-label {
123
- border-color: ${ie.borderColor};
124
- }
125
-
126
- .ft-input-label:before,
127
- .ft-input-label:after {
128
- content: "";
129
- display: flex;
130
- border-bottom-width: 1px;
131
- border-bottom-style: solid;
132
- border-color: inherit;
133
- }
134
-
135
- .ft-input-label:before {
136
- width: ${ie.horizontalSpacing};
137
- flex-shrink: 0;
138
- }
139
-
140
- .ft-input-label:after {
141
- flex-grow: 1;
142
- flex-shrink: 1;
143
- }
144
-
145
- .ft-input-label--text {
146
- display: flex;
147
- flex-shrink: 1;
148
- position: relative;
149
- border-bottom-width: 1px;
150
- border-bottom-style: solid;
151
- border-color: inherit;
152
- color: ${ie.textColor};
153
- transition: font-size 250ms, line-height 250ms, color 250ms;
154
- ${a.setVariable(zt.fontSize,ie.fontSize)};
155
- ${a.setVariable(zt.lineHeight,ie.fontSize)};
156
- }
157
-
158
- .ft-input-label--disabled .ft-input-label--text {
159
- color: ${ie.disabledTextColor};
160
- }
161
-
162
- .ft-input-label--hidden-text {
163
- padding: 0 4px;
164
- opacity: 0;
165
- }
166
-
167
- .ft-input-label--floating-text {
168
- position: absolute;
169
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
170
- transition: top 250ms;
171
- width: calc(100% - 8px);
172
- overflow: hidden;
173
- white-space: nowrap;
174
- text-overflow: ellipsis;
175
- padding: ${ie.verticalSpacing} 4px;
176
- margin: calc(${ie.verticalSpacing} * -1) 0;
177
- }
178
-
179
- .ft-input-label--raised .ft-input-label--text {
180
- ${a.setVariable(zt.fontSize,ie.raisedFontSize)};
181
- ${a.setVariable(zt.lineHeight,ie.raisedFontSize)};
182
- }
183
-
184
- .ft-input-label--raised .ft-input-label--floating-text {
185
- top: ${ie.verticalSpacing};
186
- }
187
-
188
- .ft-input-label--outlined .ft-input-label--text,
189
- .ft-input-label--outlined:before,
190
- .ft-input-label--outlined:after {
191
- border-top-width: 1px;
192
- border-top-style: solid;
193
- }
194
-
195
- .ft-input-label--outlined:before {
196
- border-left-width: 1px;
197
- border-left-style: solid;
198
- border-radius: ${ie.borderRadiusS} 0 0 ${ie.borderRadiusS};
199
- }
200
-
201
- .ft-input-label--outlined:after {
202
- border-right-width: 1px;
203
- border-right-style: solid;
204
- border-radius: 0 ${ie.borderRadiusS} ${ie.borderRadiusS} 0;
205
- }
206
-
207
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
208
- padding: 2px 4px;
209
- z-index: ${ie.raisedZIndex};
210
- background-color: ${ie.colorSurface};
211
- border-radius: ${ie.borderRadiusS};
212
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
213
- }
214
-
215
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
216
- border-top: none;
217
- }
218
- `]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return e.html`
219
- <div class="${r.classMap(t)}">
111
+ `}}Qt.styles=[Ht,Gt,Kt,Lt,Pt,Vt,Xt,Yt,qt,Jt,e.css`
112
+ .ft-typography {
113
+ vertical-align: inherit;
114
+ }
115
+ `],H([o.property()],Qt.prototype,"element",void 0),H([o.property()],Qt.prototype,"variant",void 0),i.customElement("ft-typography")(Qt);var ti=function(t,i,e,o){for(var l,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(i,e,r):l(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const ii={fontSize:i.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:i.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:i.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:i.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:i.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:i.FtCssVariable.extend("--ft-input-label-border-color",i.designSystemVariables.colorOutline),textColor:i.FtCssVariable.extend("--ft-input-label-text-color",i.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:i.FtCssVariable.extend("--ft-input-label-disabled-text-color",i.designSystemVariables.colorOnSurfaceDisabled),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system")};class ei extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!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};return e.html`
116
+ <div class="${l.classMap(t)}">
220
117
  ${this.text?e.html`
221
118
  <div class="ft-input-label--text ft-typography--caption">
222
119
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -224,266 +121,203 @@ const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=i.length;
224
121
  </div>
225
122
  `:null}
226
123
  </div>
227
- `}};re.elementDefinitions={},ee([i.property({type:String})],re.prototype,"text",void 0),ee([i.property({type:Boolean})],re.prototype,"raised",void 0),ee([i.property({type:Boolean})],re.prototype,"outlined",void 0),ee([i.property({type:Boolean})],re.prototype,"disabled",void 0),re=ee([a.customElement("ft-input-label")],re);
228
- /*! *****************************************************************************
229
- Copyright (c) Microsoft Corporation.
230
-
231
- Permission to use, copy, modify, and/or distribute this software for any
232
- purpose with or without fee is hereby granted.
233
-
234
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
235
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
236
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
237
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
238
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
239
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
240
- PERFORMANCE OF THIS SOFTWARE.
241
- ***************************************************************************** */
242
- var ae=function(t,e){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ae(t,e)};var oe=function(){return oe=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},oe.apply(this,arguments)};function pe(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(a=t[s])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p}function se(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
243
- /**
244
- * @license
245
- * Copyright 2018 Google Inc.
246
- *
247
- * Permission is hereby granted, free of charge, to any person obtaining a copy
248
- * of this software and associated documentation files (the "Software"), to deal
249
- * in the Software without restriction, including without limitation the rights
250
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
251
- * copies of the Software, and to permit persons to whom the Software is
252
- * furnished to do so, subject to the following conditions:
253
- *
254
- * The above copyright notice and this permission notice shall be included in
255
- * all copies or substantial portions of the Software.
256
- *
257
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
258
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
259
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
260
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
261
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
262
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
263
- * THE SOFTWARE.
264
- */
265
- /**
266
- * @license
267
- * Copyright 2018 Google LLC
268
- * SPDX-License-Identifier: Apache-2.0
269
- */
270
- const ne=()=>{},ce={get passive(){return!1}};document.addEventListener("x",ne,ce),document.removeEventListener("x",ne);
271
- /**
272
- * @license
273
- * Copyright 2018 Google LLC
274
- * SPDX-License-Identifier: Apache-2.0
275
- */
276
- class le extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
277
- /**
278
- * @license
279
- * Copyright 2016 Google Inc.
280
- *
281
- * Permission is hereby granted, free of charge, to any person obtaining a copy
282
- * of this software and associated documentation files (the "Software"), to deal
283
- * in the Software without restriction, including without limitation the rights
284
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
285
- * copies of the Software, and to permit persons to whom the Software is
286
- * furnished to do so, subject to the following conditions:
287
- *
288
- * The above copyright notice and this permission notice shall be included in
289
- * all copies or substantial portions of the Software.
290
- *
291
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
292
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
293
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
294
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
295
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
296
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
297
- * THE SOFTWARE.
298
- */var de=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),fe={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},ue={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},he={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
299
- /**
300
- * @license
301
- * Copyright 2016 Google Inc.
302
- *
303
- * Permission is hereby granted, free of charge, to any person obtaining a copy
304
- * of this software and associated documentation files (the "Software"), to deal
305
- * in the Software without restriction, including without limitation the rights
306
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
307
- * copies of the Software, and to permit persons to whom the Software is
308
- * furnished to do so, subject to the following conditions:
309
- *
310
- * The above copyright notice and this permission notice shall be included in
311
- * all copies or substantial portions of the Software.
312
- *
313
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
314
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
315
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
316
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
317
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
318
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
319
- * THE SOFTWARE.
320
- */
321
- /**
322
- * @license
323
- * Copyright 2016 Google Inc.
324
- *
325
- * Permission is hereby granted, free of charge, to any person obtaining a copy
326
- * of this software and associated documentation files (the "Software"), to deal
327
- * in the Software without restriction, including without limitation the rights
328
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
329
- * copies of the Software, and to permit persons to whom the Software is
330
- * furnished to do so, subject to the following conditions:
331
- *
332
- * The above copyright notice and this permission notice shall be included in
333
- * all copies or substantial portions of the Software.
334
- *
335
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
336
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
337
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
338
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
339
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
340
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
341
- * THE SOFTWARE.
342
- */
343
- var me=["touchstart","pointerdown","mousedown","keydown"],ye=["touchend","pointerup","mouseup","contextmenu"],ge=[],ve=function(t){function e(i){var r=t.call(this,oe(oe({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ae(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return fe},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ue},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return he},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,a=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(a),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(a),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=se(me),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=se(ye),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=se(me),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=se(ye),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&ge.length>0&&ge.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ge.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ge=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,o=e.cssClasses,p=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,n=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,u=d.endPoint;c=f.x+"px, "+f.y+"px",l=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(a,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(p),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),n)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,a,o=e.x,p=e.y,s=o+i.left,n=p+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,a=c.changedTouches[0].pageY-n}else{var l=t;r=l.pageX-s,a=l.pageY-n}return{x:r,y:a}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,a=r.hasDeactivationUXRun,o=r.isActivated;(a||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),he.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=oe({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},e}(de),be=ve;
344
- /**
345
- * @license
346
- * Copyright 2018 Google LLC
347
- * SPDX-License-Identifier: Apache-2.0
348
- */
349
- class xe extends le{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=be}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),i=this.selected&&(this.primary||!this.accent),a={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":i,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return e.html`
350
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${r.classMap(a)}"
351
- style="${o.styleMap({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}pe([i.query(".mdc-ripple-surface")],xe.prototype,"mdcRoot",void 0),pe([i.property({type:Boolean})],xe.prototype,"primary",void 0),pe([i.property({type:Boolean})],xe.prototype,"accent",void 0),pe([i.property({type:Boolean})],xe.prototype,"unbounded",void 0),pe([i.property({type:Boolean})],xe.prototype,"disabled",void 0),pe([i.property({type:Boolean})],xe.prototype,"activated",void 0),pe([i.property({type:Boolean})],xe.prototype,"selected",void 0),pe([i.property({type:Boolean})],xe.prototype,"internalUseStateLayerCustomProperties",void 0),pe([i.state()],xe.prototype,"hovering",void 0),pe([i.state()],xe.prototype,"bgFocused",void 0),pe([i.state()],xe.prototype,"fgActivation",void 0),pe([i.state()],xe.prototype,"fgDeactivation",void 0),pe([i.state()],xe.prototype,"fgScale",void 0),pe([i.state()],xe.prototype,"fgSize",void 0),pe([i.state()],xe.prototype,"translateStart",void 0),pe([i.state()],xe.prototype,"translateEnd",void 0),pe([i.state()],xe.prototype,"leftPos",void 0),pe([i.state()],xe.prototype,"topPos",void 0);
352
- /**
353
- * @license
354
- * Copyright 2021 Google LLC
355
- * SPDX-LIcense-Identifier: Apache-2.0
356
- */
357
- const $e=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
358
- /**
359
- * @license
360
- * Copyright 2018 Google LLC
361
- * SPDX-License-Identifier: Apache-2.0
362
- */;let we=class extends xe{};we.styles=[$e],we=pe([i.customElement("mwc-ripple")],we);
363
- /**
364
- * @license
365
- * Copyright 2020 Google LLC
366
- * SPDX-License-Identifier: Apache-2.0
367
- */
368
- class Se{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var ke=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(a=t[s])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};const ze={color:a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorContent),primaryColor:a.FtCssVariable.extend("--ft-ripple-primary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorPrimary)),secondaryColor:a.FtCssVariable.extend("--ft-ripple-secondary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let Ae=class extends a.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
369
- :host {
370
- display: contents;
371
-
372
- --mdc-ripple-color: ${ze.color};
373
- --mdc-ripple-press-opacity: ${ze.opacityContentOnSurfacePressed};
374
- --mdc-ripple-hover-opacity: ${ze.opacityContentOnSurfaceHover};
375
- --mdc-ripple-focus-opacity: ${ze.opacityContentOnSurfaceFocused};
376
- --mdc-ripple-selected-opacity: ${ze.opacityContentOnSurfaceSelected};
377
- --mdc-ripple-activated-opacity: ${ze.opacityContentOnSurfaceDragged};
378
- }
379
-
380
- mwc-ripple.ft-ripple--secondary {
381
- --mdc-ripple-color: ${ze.secondaryColor};
382
- }
383
-
384
- mwc-ripple.ft-ripple--primary {
385
- --mdc-ripple-color: ${ze.primaryColor};
386
- }
387
- `}getTemplate(){return e.html`
388
- <mwc-ripple
389
- class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
390
- ?unbounded=${this.unbounded}
391
- ?activated=${this.activated}
392
- ?selected=${this.selected}
393
- ?disabled=${this.disabled}
394
- ></mwc-ripple>
395
- `}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new Se((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),a=i("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",a),e.addEventListener("keydown",o),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",a),e.removeEventListener("keydown",o),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Ae.elementDefinitions={"mwc-ripple":we},ke([i.property({type:Boolean})],Ae.prototype,"primary",void 0),ke([i.property({type:Boolean})],Ae.prototype,"secondary",void 0),ke([i.property({type:Boolean})],Ae.prototype,"unbounded",void 0),ke([i.property({type:Boolean})],Ae.prototype,"activated",void 0),ke([i.property({type:Boolean})],Ae.prototype,"selected",void 0),ke([i.property({type:Boolean})],Ae.prototype,"disabled",void 0),ke([i.query("mwc-ripple")],Ae.prototype,"mwcRipple",void 0),Ae=ke([a.customElement("ft-ripple")],Ae);var Oe=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(a=t[s])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};const Te={fontSize:a.FtCssVariable.create("--ft-text-field-font-size","SIZE","14px"),labelSize:a.FtCssVariable.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:a.FtCssVariable.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:a.FtCssVariable.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:a.FtCssVariable.extend("--ft-text-field-helper-color",a.designSystemVariables.colorOnSurfaceMedium),colorPrimary:a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:a.FtCssVariable.external(a.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system")};t.FtTextField=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}getStyles(){return[Wt,e.css`
396
- *:focus {
397
- outline: none;
398
- }
399
-
400
- .ft-text-field {
401
- display: flex;
402
- flex-direction: column;
403
- align-items: stretch;
404
- }
405
-
406
- ft-input-label {
407
- ${a.setVariable(ie.fontSize,Te.fontSize)};
408
- ${a.setVariable(ie.raisedFontSize,Te.labelSize)};
409
- ${a.setVariable(ie.verticalSpacing,Te.verticalSpacing)};
410
- ${a.setVariable(ie.horizontalSpacing,e.css`calc(${Te.horizontalSpacing} - 4px)`)};
411
- }
124
+ `}}ei.elementDefinitions={},ei.styles=[Xt,e.css`
125
+ .ft-input-label {
126
+ position: absolute;
127
+ inset: 0;
128
+ display: flex;
129
+ }
412
130
 
413
- .ft-text-field--main-panel {
414
- position: relative;
415
- display: flex;
416
- height: calc(4 * ${Te.verticalSpacing} + ${Te.labelSize} + ${Te.fontSize});
417
- }
131
+ .ft-input-label {
132
+ border-color: ${ii.borderColor};
133
+ }
418
134
 
419
- .ft-text-field--input-panel {
420
- flex-grow: 1;
421
- position: relative;
422
- display: flex;
423
- align-items: center;
424
- overflow: hidden;
425
- gap: 8px;
426
- }
135
+ .ft-input-label:before,
136
+ .ft-input-label:after {
137
+ content: "";
138
+ display: flex;
139
+ border-bottom-width: 1px;
140
+ border-bottom-style: solid;
141
+ border-color: inherit;
142
+ }
427
143
 
428
- .ft-text-field--input-panel ft-ripple {
429
- ${a.setVariable(ze.opacityContentOnSurfaceHover,"0.08")};
430
- ${a.setVariable(ze.opacityContentOnSurfaceDragged,"0.04")};
431
- }
144
+ .ft-input-label:before {
145
+ width: ${ii.horizontalSpacing};
146
+ flex-shrink: 0;
147
+ }
432
148
 
433
- .ft-text-field--input {
434
- display: block;
435
- flex-grow: 1;
436
- flex-shrink: 1;
437
- min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
149
+ .ft-input-label:after {
150
+ flex-grow: 1;
151
+ flex-shrink: 1;
152
+ }
438
153
 
439
- ${a.setVariable(vt.fontSize,Te.fontSize)};
440
- ${a.setVariable(vt.lineHeight,Te.fontSize)};
441
- color: ${Te.colorOnSurface};
154
+ .ft-input-label--text {
155
+ display: flex;
156
+ flex-shrink: 1;
157
+ position: relative;
158
+ border-bottom-width: 1px;
159
+ border-bottom-style: solid;
160
+ border-color: inherit;
161
+ color: ${ii.textColor};
162
+ transition: font-size 250ms, line-height 250ms, color 250ms;
163
+ ${i.setVariable(zt.fontSize,ii.fontSize)};
164
+ ${i.setVariable(zt.lineHeight,ii.fontSize)};
165
+ }
442
166
 
443
- padding: 0 ${Te.horizontalSpacing};
167
+ .ft-input-label--disabled .ft-input-label--text {
168
+ color: ${ii.disabledTextColor};
169
+ }
444
170
 
445
- border: none;
446
- background: none;
447
- }
171
+ .ft-input-label--hidden-text {
172
+ padding: 0 4px;
173
+ opacity: 0;
174
+ }
448
175
 
449
- .ft-text-field--input::-webkit-calendar-picker-indicator,
450
- .ft-text-field--input::-webkit-list-button {
451
- display: none !important;
452
- }
176
+ .ft-input-label--floating-text {
177
+ position: absolute;
178
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
179
+ transition: top 250ms;
180
+ width: calc(100% - 8px);
181
+ overflow: hidden;
182
+ white-space: nowrap;
183
+ text-overflow: ellipsis;
184
+ padding: ${ii.verticalSpacing} 4px;
185
+ margin: calc(${ii.verticalSpacing} * -1) 0;
186
+ }
453
187
 
454
- .ft-text-field--disabled .ft-text-field--input {
455
- color: ${Te.colorOnSurfaceDisabled};
456
- }
188
+ .ft-input-label--raised .ft-input-label--text {
189
+ ${i.setVariable(zt.fontSize,ii.raisedFontSize)};
190
+ ${i.setVariable(zt.lineHeight,ii.raisedFontSize)};
191
+ }
457
192
 
458
- .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
459
- cursor: pointer;
460
- }
193
+ .ft-input-label--raised .ft-input-label--floating-text {
194
+ top: ${ii.verticalSpacing};
195
+ }
461
196
 
462
- .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
463
- ${a.setVariable(ie.borderColor,Te.colorPrimary)};
464
- ${a.setVariable(ie.textColor,Te.colorPrimary)};
465
- }
197
+ .ft-input-label--outlined .ft-input-label--text,
198
+ .ft-input-label--outlined:before,
199
+ .ft-input-label--outlined:after {
200
+ border-top-width: 1px;
201
+ border-top-style: solid;
202
+ }
466
203
 
467
- .ft-text-field--filled .ft-text-field--input-panel {
468
- border-radius: ${Te.borderRadiusS} ${Te.borderRadiusS} 0 0;
469
- }
204
+ .ft-input-label--outlined:before {
205
+ border-left-width: 1px;
206
+ border-left-style: solid;
207
+ border-radius: ${ii.borderRadiusS} 0 0 ${ii.borderRadiusS};
208
+ }
470
209
 
471
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
472
- align-self: stretch;
473
- padding-bottom: ${Te.verticalSpacing};
474
- padding-top: calc(${Te.labelSize} + 2 * ${Te.verticalSpacing});
475
- }
210
+ .ft-input-label--outlined:after {
211
+ border-right-width: 1px;
212
+ border-right-style: solid;
213
+ border-radius: 0 ${ii.borderRadiusS} ${ii.borderRadiusS} 0;
214
+ }
476
215
 
477
- .ft-text-field--outlined .ft-text-field--input-panel {
478
- border-radius: ${Te.borderRadiusS};
479
- }
216
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
217
+ padding: 2px 4px;
218
+ z-index: ${ii.raisedZIndex};
219
+ background-color: ${ii.colorSurface};
220
+ border-radius: ${ii.borderRadiusS};
221
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
222
+ }
480
223
 
481
- .ft-text-field--helper-text {
482
- padding: 0 12px 0 ${Te.horizontalSpacing};
483
- color: ${Te.helperColor};
484
- }
485
- `]}getTemplate(){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};return e.html`
486
- <div class="${r.classMap(t)}">
224
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
225
+ border-top: none;
226
+ }
227
+ `],ti([o.property({type:String})],ei.prototype,"text",void 0),ti([o.property({type:Boolean})],ei.prototype,"raised",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),i.customElement("ft-input-label")(ei);var oi=function(t,i,e,o){for(var l,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(i,e,r):l(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const li={color:i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),primaryColor:i.FtCssVariable.extend("--ft-ripple-primary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary)),secondaryColor:i.FtCssVariable.extend("--ft-ripple-secondary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class si extends i.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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:l}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{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 e.html`
228
+ <style>
229
+ .ft-ripple .ft-ripple--effect,
230
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
231
+ width: ${this.rippleSize}px;
232
+ height: ${this.rippleSize}px;
233
+ }
234
+
235
+ .ft-ripple .ft-ripple--effect {
236
+ left: ${this.originX}px;
237
+ top: ${this.originY}px;
238
+ }
239
+ </style>
240
+ <div class="${l.classMap(t)}">
241
+ <div class="ft-ripple--background"></div>
242
+ <div class="ft-ripple--effect"></div>
243
+ </div>
244
+ `}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),l=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",l),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",l),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,l;return null!=i.x?({x:o,y:l}=i):null!=e.touches&&(o=e.touches[0].clientX,l=e.touches[0].clientY),{x:o,y:l}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}si.elementDefinitions={},si.styles=e.css`
245
+ :host {
246
+ display: contents;
247
+ }
248
+
249
+ .ft-ripple {
250
+ position: absolute;
251
+ inset: 0;
252
+ pointer-events: none;
253
+ }
254
+
255
+ .ft-ripple:not(.ft-ripple--unbounded) {
256
+ overflow: hidden;
257
+ }
258
+
259
+ .ft-ripple .ft-ripple--background,
260
+ .ft-ripple .ft-ripple--effect {
261
+ position: absolute;
262
+ opacity: 0;
263
+ background-color: ${li.color};
264
+ }
265
+
266
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
267
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
268
+ background-color: ${li.secondaryColor};
269
+ }
270
+
271
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
272
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
273
+ background-color: ${li.primaryColor};
274
+ }
275
+
276
+ .ft-ripple .ft-ripple--background {
277
+ top: 0;
278
+ left: 0;
279
+ height: 100%;
280
+ width: 100%;
281
+ }
282
+
283
+ .ft-ripple .ft-ripple--effect,
284
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
285
+ border-radius: 50%;
286
+ }
287
+
288
+ .ft-ripple .ft-ripple--effect {
289
+ transform: translate(-50%, -50%) scale(0.15);
290
+ transition: transform 300ms ease, opacity 75ms linear;
291
+ }
292
+
293
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
294
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
295
+ left: 50%;
296
+ top: 50%;
297
+ }
298
+
299
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
300
+ transform: translate(-50%, -50%);
301
+ }
302
+
303
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
304
+ opacity: ${li.opacityContentOnSurfaceHover};
305
+ }
306
+
307
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
308
+ opacity: ${li.opacityContentOnSurfaceSelected};
309
+ }
310
+
311
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
312
+ opacity: ${li.opacityContentOnSurfaceFocused};
313
+ }
314
+
315
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
316
+ opacity: ${li.opacityContentOnSurfacePressed};
317
+ transform: translate(-50%, -50%) scale(1);
318
+ }
319
+ `,oi([o.property({type:Boolean})],si.prototype,"primary",void 0),oi([o.property({type:Boolean})],si.prototype,"secondary",void 0),oi([o.property({type:Boolean})],si.prototype,"unbounded",void 0),oi([o.property({type:Boolean})],si.prototype,"activated",void 0),oi([o.property({type:Boolean})],si.prototype,"selected",void 0),oi([o.property({type:Boolean})],si.prototype,"disabled",void 0),oi([o.state()],si.prototype,"hovered",void 0),oi([o.state()],si.prototype,"focused",void 0),oi([o.state()],si.prototype,"pressed",void 0),oi([o.state()],si.prototype,"rippling",void 0),oi([o.state()],si.prototype,"rippleSize",void 0),oi([o.state()],si.prototype,"originX",void 0),oi([o.state()],si.prototype,"originY",void 0),oi([o.query(".ft-ripple")],si.prototype,"ripple",void 0),oi([o.query(".ft-ripple--effect")],si.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(si);var ri=function(t,i,e,o){for(var l,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(i,e,r):l(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const ni={fontSize:i.FtCssVariable.create("--ft-text-field-font-size","SIZE","14px"),labelSize:i.FtCssVariable.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:i.FtCssVariable.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:i.FtCssVariable.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:i.FtCssVariable.extend("--ft-text-field-helper-color",i.designSystemVariables.colorOnSurfaceMedium),colorPrimary:i.FtCssVariable.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:i.FtCssVariable.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system")};class pi extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}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};return e.html`
320
+ <div class="${l.classMap(t)}">
487
321
  <div class="ft-text-field--main-panel">
488
322
  <ft-input-label text="${this.label}"
489
323
  ?disabled=${this.disabled}
@@ -517,4 +351,94 @@ class Se{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
517
351
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
518
352
  </ft-typography>`:void 0}
519
353
  </div>
520
- `}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)||""}},t.FtTextField.elementDefinitions={"ft-input-label":re,"ft-ripple":Ae,"ft-typography":te},Oe([i.property({type:String})],t.FtTextField.prototype,"label",void 0),Oe([i.property({reflect:!0})],t.FtTextField.prototype,"value",void 0),Oe([i.property({type:String})],t.FtTextField.prototype,"helper",void 0),Oe([i.property({type:Boolean})],t.FtTextField.prototype,"outlined",void 0),Oe([i.property({type:Boolean})],t.FtTextField.prototype,"disabled",void 0),Oe([i.query(".ft-text-field--input")],t.FtTextField.prototype,"input",void 0),Oe([i.property({attribute:!1})],t.FtTextField.prototype,"dataList",void 0),Oe([i.state()],t.FtTextField.prototype,"focused",void 0),t.FtTextField=Oe([a.customElement("ft-text-field")],t.FtTextField),t.FtTextFieldCssVariables=Te,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.wcUtils,ftGlobals.litStyleMap);
354
+ `}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)||""}}pi.elementDefinitions={"ft-input-label":ei,"ft-ripple":si,"ft-typography":Qt},pi.styles=[Pt,e.css`
355
+ *:focus {
356
+ outline: none;
357
+ }
358
+
359
+ .ft-text-field {
360
+ display: flex;
361
+ flex-direction: column;
362
+ align-items: stretch;
363
+ }
364
+
365
+ ft-input-label {
366
+ ${i.setVariable(ii.fontSize,ni.fontSize)};
367
+ ${i.setVariable(ii.raisedFontSize,ni.labelSize)};
368
+ ${i.setVariable(ii.verticalSpacing,ni.verticalSpacing)};
369
+ ${i.setVariable(ii.horizontalSpacing,e.css`calc(${ni.horizontalSpacing} - 4px)`)};
370
+ }
371
+
372
+ .ft-text-field--main-panel {
373
+ position: relative;
374
+ display: flex;
375
+ height: calc(4 * ${ni.verticalSpacing} + ${ni.labelSize} + ${ni.fontSize});
376
+ }
377
+
378
+ .ft-text-field--input-panel {
379
+ flex-grow: 1;
380
+ position: relative;
381
+ display: flex;
382
+ align-items: center;
383
+ overflow: hidden;
384
+ gap: 8px;
385
+ }
386
+
387
+ .ft-text-field--input-panel ft-ripple {
388
+ ${i.setVariable(li.opacityContentOnSurfaceHover,"0.08")};
389
+ ${i.setVariable(li.opacityContentOnSurfacePressed,"0.04")};
390
+ }
391
+
392
+ .ft-text-field--input {
393
+ display: block;
394
+ flex-grow: 1;
395
+ flex-shrink: 1;
396
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
397
+
398
+ ${i.setVariable(bt.fontSize,ni.fontSize)};
399
+ ${i.setVariable(bt.lineHeight,ni.fontSize)};
400
+ color: ${ni.colorOnSurface};
401
+
402
+ padding: 0 ${ni.horizontalSpacing};
403
+
404
+ border: none;
405
+ background: none;
406
+ }
407
+
408
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
409
+ .ft-text-field--input::-webkit-list-button {
410
+ display: none !important;
411
+ }
412
+
413
+ .ft-text-field--disabled .ft-text-field--input {
414
+ color: ${ni.colorOnSurfaceDisabled};
415
+ }
416
+
417
+ .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
418
+ cursor: pointer;
419
+ }
420
+
421
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
422
+ ${i.setVariable(ii.borderColor,ni.colorPrimary)};
423
+ ${i.setVariable(ii.textColor,ni.colorPrimary)};
424
+ }
425
+
426
+ .ft-text-field--filled .ft-text-field--input-panel {
427
+ border-radius: ${ni.borderRadiusS} ${ni.borderRadiusS} 0 0;
428
+ }
429
+
430
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
431
+ align-self: stretch;
432
+ padding-bottom: ${ni.verticalSpacing};
433
+ padding-top: calc(${ni.labelSize} + 2 * ${ni.verticalSpacing});
434
+ }
435
+
436
+ .ft-text-field--outlined .ft-text-field--input-panel {
437
+ border-radius: ${ni.borderRadiusS};
438
+ }
439
+
440
+ .ft-text-field--helper-text {
441
+ padding: 0 12px 0 ${ni.horizontalSpacing};
442
+ color: ${ni.helperColor};
443
+ }
444
+ `],ri([o.property({type:String})],pi.prototype,"label",void 0),ri([o.property({reflect:!0})],pi.prototype,"value",void 0),ri([o.property({type:String})],pi.prototype,"helper",void 0),ri([o.property({type:Boolean})],pi.prototype,"outlined",void 0),ri([o.property({type:Boolean})],pi.prototype,"disabled",void 0),ri([o.query(".ft-text-field--input")],pi.prototype,"input",void 0),ri([o.property({attribute:!1})],pi.prototype,"dataList",void 0),ri([o.state()],pi.prototype,"focused",void 0),i.customElement("ft-text-field")(pi),t.FtTextField=pi,t.FtTextFieldCssVariables=ni,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);