@fluid-topics/ft-text-area 0.2.16 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,13 @@
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var n;const l=globalThis.trustedTypes,a=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,f="?"+p,h=`<${f}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,b=/>/g,m=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),E=new WeakMap,N=d.createTreeWalker(d,129,null,!1),O=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=y;for(let e=0;e<i;e++){const i=t[e];let l,a,f=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===y?"!--"===a[1]?n=g:void 0!==a[1]?n=b:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=m):void 0!==a[3]&&(n=m):n===m?">"===a[0]?(n=null!=s?s:y,f=-1):void 0===a[1]?f=-2:(f=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?m:'"'===a[3]?$:v):n===$||n===v?n=m:n===g||n===b?n=y:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";r+=n===y?i+h:f>=0?(o.push(l),i.slice(0,f)+"$lit$"+i.slice(f)+p+c):i+p+(-2===f?(o.push(void 0),e):c)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(l):l,o]};class j{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[h,d]=O(t,e);if(this.el=j.createElement(h,i),N.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=N.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(p)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(p),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?M:"@"===e[1]?Z:A})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(w.test(o.tagName)){const t=o.textContent.split(p),e=t.length-1;if(e>0){o.textContent=l?l.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],c()),N.nextNode(),a.push({type:2,index:++s});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===f)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)a.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function C(t,e,i=t,o){var s,r,n,l;if(e===k)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=u(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=C(t,a._$AS(t,e.values),a,o)),e}class I{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:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);N.currentNode=s;let r=N.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new T(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=N.nextNode(),n++)}return s}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 D{constructor(t,e,i,o){var s;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$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=C(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new I(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new j(t)),e}S(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new D(this.M(c()),this.M(c()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class A{constructor(t,e,i,o,s){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=C(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=C(this,o[i+n],e,n),l===k&&(l=this._$AH[n]),r||(r=!u(l)||l!==this._$AH[n]),l===S?t=S:t!==S&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.C(t)}C(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends A{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const B=l?l.emptyScript:"";class M extends A{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class Z extends A{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=C(this,t,e,0))&&void 0!==i?i:S)===k)return;const o=this._$AH,s=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 T{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){C(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(j,D),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.2.4");
7
+ var n;const l=globalThis.trustedTypes,a=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,f="?"+p,h=`<${f}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,b=/>/g,m=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),E=new WeakMap,N=d.createTreeWalker(d,129,null,!1),O=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=g;for(let e=0;e<i;e++){const i=t[e];let l,a,f=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===g?"!--"===a[1]?n=y:void 0!==a[1]?n=b:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=m):void 0!==a[3]&&(n=m):n===m?">"===a[0]?(n=null!=s?s:g,f=-1):void 0===a[1]?f=-2:(f=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?m:'"'===a[3]?$:v):n===$||n===v?n=m:n===y||n===b?n=g:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";r+=n===g?i+h:f>=0?(o.push(l),i.slice(0,f)+"$lit$"+i.slice(f)+p+c):i+p+(-2===f?(o.push(void 0),e):c)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(l):l,o]};class j{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[h,d]=O(t,e);if(this.el=j.createElement(h,i),N.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=N.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(p)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(p),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?M:"@"===e[1]?Z:A})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(w.test(o.tagName)){const t=o.textContent.split(p),e=t.length-1;if(e>0){o.textContent=l?l.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],c()),N.nextNode(),a.push({type:2,index:++s});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===f)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)a.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function C(t,e,i=t,o){var s,r,n,l;if(e===k)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=u(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=C(t,a._$AS(t,e.values),a,o)),e}class I{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:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);N.currentNode=s;let r=N.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new T(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=N.nextNode(),n++)}return s}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 D{constructor(t,e,i,o){var s;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$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=C(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new I(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new j(t)),e}S(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new D(this.M(c()),this.M(c()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class A{constructor(t,e,i,o,s){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=C(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=C(this,o[i+n],e,n),l===k&&(l=this._$AH[n]),r||(r=!u(l)||l!==this._$AH[n]),l===S?t=S:t!==S&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.C(t)}C(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends A{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const B=l?l.emptyScript:"";class M extends A{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class Z extends A{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=C(this,t,e,0))&&void 0!==i?i:S)===k)return;const o=this._$AH,s=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 T{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){C(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(j,D),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.2.4");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===U)return null===(i=t)||void 0===i?void 0:i._$litStatic$},W=t=>({_$litStatic$:t,r:U}),H=new Map,K=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(r=i[p],s=R(r));)a+=s+e[++p],f=!0;l.push(r),n.push(a),p++}if(p===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=H.get(t))&&(n.raw=n,H.set(t,e=n)),i=l}return t(e,...i)})(z);var G,q=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(G||(G={}));const L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),P=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),V={fontFamily:P,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Y=e.FtCssVariable.extend("--ft-typography-title-font-size",V.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",V.fontWeight,"normal"),Q=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",V.letterSpacing,"0.15px"),tt=e.FtCssVariable.extend("--ft-typography-title-line-height",V.lineHeight,"1.2"),et=e.FtCssVariable.extend("--ft-typography-title-text-transform",V.textTransform,"inherit"),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",V.fontSize,"14px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",V.fontWeight,"normal"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",V.letterSpacing,"0.105px"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",V.lineHeight,"1.7"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",V.textTransform,"inherit"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",P),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",V.fontSize,"16px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",V.fontWeight,"600"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",V.letterSpacing,"0.144px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",V.lineHeight,"1.5"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",V.textTransform,"inherit"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",P),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",V.fontSize,"14px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",V.fontWeight,"normal"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",V.letterSpacing,"0.098px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",V.lineHeight,"1.7"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",V.textTransform,"inherit"),vt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",P),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",V.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",V.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",V.lineHeight,"1.5"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",V.textTransform,"inherit")},$t=e.FtCssVariable.extend("--ft-typography-body2-font-family",P),wt=e.FtCssVariable.extend("--ft-typography-body2-font-size",V.fontSize,"14px"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",V.fontWeight,"normal"),kt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",V.letterSpacing,"0.252px"),St=e.FtCssVariable.extend("--ft-typography-body2-line-height",V.lineHeight,"1.4"),Et=e.FtCssVariable.extend("--ft-typography-body2-text-transform",V.textTransform,"inherit"),Nt={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",P),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",V.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",V.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",V.lineHeight,"1.33"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",V.textTransform,"inherit")},Ot=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",P),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",V.fontSize,"10px"),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",V.fontWeight,"normal"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",V.letterSpacing,"0.33px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",V.lineHeight,"1.6"),At=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",V.textTransform,"inherit"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-family",P),Bt=e.FtCssVariable.extend("--ft-typography-overline-font-size",V.fontSize,"10px"),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",V.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",V.letterSpacing,"1.5px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-line-height",V.lineHeight,"1.6"),Ft=e.FtCssVariable.extend("--ft-typography-overline-text-transform",V.textTransform,"uppercase"),Ut=e.FtCssVariable.extend("--ft-typography-button-font-family",P),Rt=e.FtCssVariable.extend("--ft-typography-button-font-size",V.fontSize,"14px"),Wt=e.FtCssVariable.extend("--ft-typography-button-font-weight",V.fontWeight,"600"),Ht=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",V.letterSpacing,"1.246px"),Kt=e.FtCssVariable.extend("--ft-typography-button-line-height",V.lineHeight,"1.15"),Gt=e.FtCssVariable.extend("--ft-typography-button-text-transform",V.textTransform,"uppercase"),qt=i.css`
13
+ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===U)return null===(i=t)||void 0===i?void 0:i._$litStatic$},W=t=>({_$litStatic$:t,r:U}),H=new Map,K=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(r=i[p],s=R(r));)a+=s+e[++p],f=!0;l.push(r),n.push(a),p++}if(p===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=H.get(t))&&(n.raw=n,H.set(t,e=n)),i=l}return t(e,...i)})(z);var G,q=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(G||(G={}));const L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),P=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),V={fontFamily:P,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Y=e.FtCssVariable.extend("--ft-typography-title-font-size",V.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",V.fontWeight,"normal"),Q=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",V.letterSpacing,"0.15px"),tt=e.FtCssVariable.extend("--ft-typography-title-line-height",V.lineHeight,"1.2"),et=e.FtCssVariable.extend("--ft-typography-title-text-transform",V.textTransform,"inherit"),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",V.fontSize,"14px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",V.fontWeight,"normal"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",V.letterSpacing,"0.105px"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",V.lineHeight,"1.7"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",V.textTransform,"inherit"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",P),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",V.fontSize,"16px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",V.fontWeight,"600"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",V.letterSpacing,"0.144px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",V.lineHeight,"1.5"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",V.textTransform,"inherit"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",P),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",V.fontSize,"14px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",V.fontWeight,"normal"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",V.letterSpacing,"0.098px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",V.lineHeight,"1.7"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",V.textTransform,"inherit"),vt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",P),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",V.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",V.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",V.lineHeight,"1.5"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",V.textTransform,"inherit")},$t=e.FtCssVariable.extend("--ft-typography-body2-font-family",P),wt=e.FtCssVariable.extend("--ft-typography-body2-font-size",V.fontSize,"14px"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",V.fontWeight,"normal"),kt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",V.letterSpacing,"0.252px"),St=e.FtCssVariable.extend("--ft-typography-body2-line-height",V.lineHeight,"1.4"),Et=e.FtCssVariable.extend("--ft-typography-body2-text-transform",V.textTransform,"inherit"),Nt={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",P),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",V.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",V.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",V.lineHeight,"1.33"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",V.textTransform,"inherit")},Ot=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",P),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",V.fontSize,"10px"),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",V.fontWeight,"normal"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",V.letterSpacing,"0.33px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",V.lineHeight,"1.6"),At=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",V.textTransform,"inherit"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-family",P),Bt=e.FtCssVariable.extend("--ft-typography-overline-font-size",V.fontSize,"10px"),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",V.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",V.letterSpacing,"1.5px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-line-height",V.lineHeight,"1.6"),Ft=e.FtCssVariable.extend("--ft-typography-overline-text-transform",V.textTransform,"uppercase"),Ut=e.FtCssVariable.extend("--ft-typography-button-font-family",P),Rt=e.FtCssVariable.extend("--ft-typography-button-font-size",V.fontSize,"14px"),Wt=e.FtCssVariable.extend("--ft-typography-button-font-weight",V.fontWeight,"600"),Ht=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",V.letterSpacing,"1.246px"),Kt=e.FtCssVariable.extend("--ft-typography-button-line-height",V.lineHeight,"1.15"),Gt=e.FtCssVariable.extend("--ft-typography-button-text-transform",V.textTransform,"uppercase"),qt=i.css`
14
14
  .ft-typography--title {
15
15
  font-family: ${X};
16
16
  font-size: ${Y};
@@ -41,8 +41,8 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
41
41
  .ft-typography--subtitle2 {
42
42
  font-family: ${ut};
43
43
  font-size: ${xt};
44
- font-weight: ${yt};
45
- letter-spacing: ${gt};
44
+ font-weight: ${gt};
45
+ letter-spacing: ${yt};
46
46
  line-height: ${bt};
47
47
  text-transform: ${mt};
48
48
  }
@@ -152,7 +152,7 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
152
152
  .ft-icon--material {
153
153
  font-family: ${fe}, "Material Icons", sans-serif;
154
154
  }
155
- `,ne([o.property()],he.prototype,"variant",void 0),ne([o.query("slot")],he.prototype,"slottedContent",void 0),e.customElement("ft-icon")(he);var de=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ce extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const ue=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),xe=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system");class ye extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
155
+ `,ne([o.property()],he.prototype,"variant",void 0),ne([o.query("slot")],he.prototype,"slottedContent",void 0),e.customElement("ft-icon")(he);var de=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ce extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const ue=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),xe=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system");class ge extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
156
156
  <style>
157
157
  .ft-resizer {
158
158
  cursor: ${i.unsafeCSS(this.cursor)}
@@ -163,7 +163,7 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
163
163
  @touchstart=${this.initDragFromTouch}>
164
164
  <ft-icon variant="material">${this.icon}</ft-icon>
165
165
  </div>
166
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ce(i,o))}}ye.elementDefinitions={"ft-icon":he},ye.styles=[e.noTextSelect,i.css`
166
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ce(i,o))}}ge.elementDefinitions={"ft-icon":he},ge.styles=[e.noTextSelect,i.css`
167
167
  :host {
168
168
  display: block;
169
169
  }
@@ -181,7 +181,7 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
181
181
  .ft-resizer:hover ft-icon {
182
182
  color: ${xe};
183
183
  }
184
- `],de([o.property({type:Number})],ye.prototype,"initialWidth",void 0),de([o.property({type:Number})],ye.prototype,"initialHeight",void 0),de([o.property()],ye.prototype,"icon",void 0),de([o.property()],ye.prototype,"cursor",void 0),de([o.state()],ye.prototype,"dragging",void 0),e.customElement("ft-resizer")(ye);var ge=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const be={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class me extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
184
+ `],de([o.property({type:Number})],ge.prototype,"initialWidth",void 0),de([o.property({type:Number})],ge.prototype,"initialHeight",void 0),de([o.property()],ge.prototype,"icon",void 0),de([o.property()],ge.prototype,"cursor",void 0),de([o.state()],ge.prototype,"dragging",void 0),e.customElement("ft-resizer")(ge);var ye=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const be={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class me extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
185
185
  <div class="${s.classMap(t)}">
186
186
  ${this.text?i.html`
187
187
  <div class="ft-input-label--text ft-typography--caption">
@@ -195,6 +195,12 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
195
195
  position: absolute;
196
196
  inset: 0;
197
197
  display: flex;
198
+ background-color: ${be.colorSurface};
199
+ border-radius: ${be.borderRadiusS} ${be.borderRadiusS} 0 0;
200
+ }
201
+
202
+ .ft-input-label--outlined {
203
+ border-radius: ${be.borderRadiusS};
198
204
  }
199
205
 
200
206
  .ft-input-label {
@@ -301,7 +307,7 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
301
307
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
302
308
  border-top: none;
303
309
  }
304
- `],ge([o.property({type:String})],me.prototype,"text",void 0),ge([o.property({type:Boolean})],me.prototype,"raised",void 0),ge([o.property({type:Boolean})],me.prototype,"outlined",void 0),ge([o.property({type:Boolean})],me.prototype,"disabled",void 0),ge([o.property({type:Boolean})],me.prototype,"error",void 0),e.customElement("ft-input-label")(me);var ve=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const $e=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),we={color:$e,backgroundColor:e.FtCssVariable.extend("--ft-ripple-background-color",$e),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ze=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ke=ze,Se=e.FtCssVariable.extend("--ft-ripple-background-color",ze),Ee=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),Ne=Ee,Oe=e.FtCssVariable.extend("--ft-ripple-background-color",Ee);class je extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
310
+ `],ye([o.property({type:String})],me.prototype,"text",void 0),ye([o.property({type:Boolean})],me.prototype,"raised",void 0),ye([o.property({type:Boolean})],me.prototype,"outlined",void 0),ye([o.property({type:Boolean})],me.prototype,"disabled",void 0),ye([o.property({type:Boolean})],me.prototype,"error",void 0),e.customElement("ft-input-label")(me);var ve=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const $e=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),we={color:$e,backgroundColor:e.FtCssVariable.extend("--ft-ripple-background-color",$e),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ze=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ke=ze,Se=e.FtCssVariable.extend("--ft-ripple-background-color",ze),Ee=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),Ne=Ee,Oe=e.FtCssVariable.extend("--ft-ripple-background-color",Ee);class je extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
305
311
  <style>
306
312
  .ft-ripple .ft-ripple--effect,
307
313
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -445,7 +451,7 @@ const U=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
445
451
  ${this.helper}
446
452
  </ft-typography>`:void 0}
447
453
  </div>
448
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}De.elementDefinitions={"ft-input-label":me,"ft-resizer":ye,"ft-ripple":je,"ft-typography":ie},De.styles=[Xt,i.css`
454
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}De.elementDefinitions={"ft-input-label":me,"ft-resizer":ge,"ft-ripple":je,"ft-typography":ie},De.styles=[Xt,i.css`
449
455
  *:focus {
450
456
  outline: none;
451
457
  }