@fluid-topics/ft-text-area 0.3.48 → 0.3.49

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.
@@ -31,7 +31,7 @@ export const styles = css `
31
31
  ${setVariable(FtInputLabelCssVariables.fontSize, FtTextAreaCssVariables.fontSize)};
32
32
  ${setVariable(FtInputLabelCssVariables.raisedFontSize, FtTextAreaCssVariables.labelSize)};
33
33
  ${setVariable(FtInputLabelCssVariables.verticalSpacing, FtTextAreaCssVariables.verticalSpacing)};
34
- ${setVariable(FtInputLabelCssVariables.horizontalSpacing, css `calc(${FtTextAreaCssVariables.horizontalSpacing} - 4px)`)};
34
+ ${setVariable(FtInputLabelCssVariables.horizontalSpacing, FtTextAreaCssVariables.horizontalSpacing)};
35
35
  }
36
36
 
37
37
  .ft-text-area--main-panel {
@@ -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=window,a=l.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,h="?"+f,d=`<${h}>`,c=document,u=(t="")=>c.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,v=/>/g,m=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),$=/'/g,w=/"/g,z=/^(?:script|style|textarea|title)$/i,k=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),j=new WeakMap,E=c.createTreeWalker(c,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,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===g?"!--"===a[1]?n=b:void 0!==a[1]?n=v:void 0!==a[2]?(z.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,p=-1):void 0===a[1]?p=-2:(p=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?m:'"'===a[3]?w:$):n===w||n===$?n=m:n===b||n===v?n=g:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";r+=n===g?i+d:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+f+c):i+f+(-2===p?(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!==p?p.createHTML(l):l,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[p,d]=O(t,e);if(this.el=I.createElement(p,i),E.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=E.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?B:"?"===e[1]?U:"@"===e[1]?Z:A})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(z.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),E.nextNode(),l.push({type:2,index:++s});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===h)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)l.push({type:7,index:s}),t+=f.length-1}s++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function C(t,e,i=t,o){var s,r,n,l;if(e===S)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=x(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)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=C(t,a._$AS(t,e.values),a,o)),e}class D{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:c).importNode(i,!0);E.currentNode=s;let r=E.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new _(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new F(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=E.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class _{constructor(t,e,i,o){var s;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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),x(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==S&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>y(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==N&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(c.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new D(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new I(t)),e}k(t){y(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 _(this.O(u()),this.O(u()),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._$Cm=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=N,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=N}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=!x(t)||t!==this._$AH&&t!==S,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===S&&(l=this._$AH[n]),r||(r=!x(l)||l!==this._$AH[n]),l===N?t=N:t!==N&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends A{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===N?void 0:t}}const M=a?a.emptyScript:"";class U extends A{constructor(){super(...arguments),this.type=4}j(t){t&&t!==N?this.element.setAttribute(this.name,M):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:N)===S)return;const o=this._$AH,s=t===N&&o!==N||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==N&&(o===N||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 F{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 R=l.litHtmlPolyfillSupport;null==R||R(I,_),(null!==(n=l.litHtmlVersions)&&void 0!==n?n:l.litHtmlVersions=[]).push("2.4.0");
7
+ var n;const l=window,a=l.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,h="?"+f,d=`<${h}>`,c=document,u=(t="")=>c.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,m=/>/g,v=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),$=/'/g,w=/"/g,z=/^(?:script|style|textarea|title)$/i,k=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),N=new WeakMap,j=c.createTreeWalker(c,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,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===y?"!--"===a[1]?n=b:void 0!==a[1]?n=m:void 0!==a[2]?(z.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=v):void 0!==a[3]&&(n=v):n===v?">"===a[0]?(n=null!=s?s:y,p=-1):void 0===a[1]?p=-2:(p=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?v:'"'===a[3]?w:$):n===w||n===$?n=v:n===b||n===m?n=y:(n=v,s=void 0);const c=n===v&&t[e+1].startsWith("/>")?" ":"";r+=n===y?i+d:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+f+c):i+f+(-2===p?(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!==p?p.createHTML(l):l,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[p,d]=O(t,e);if(this.el=I.createElement(p,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?B:"?"===e[1]?Z:"@"===e[1]?U:A})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(z.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),j.nextNode(),l.push({type:2,index:++s});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===h)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)l.push({type:7,index:s}),t+=f.length-1}s++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function C(t,e,i=t,o){var s,r,n,l;if(e===S)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=x(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)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=C(t,a._$AS(t,e.values),a,o)),e}class D{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:c).importNode(i,!0);j.currentNode=s;let r=j.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new _(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new F(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=j.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class _{constructor(t,e,i,o){var s;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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),x(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==S&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>g(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==E&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(c.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new D(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new I(t)),e}k(t){g(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 _(this.O(u()),this.O(u()),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._$Cm=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=E,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=E}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=!x(t)||t!==this._$AH&&t!==S,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===S&&(l=this._$AH[n]),r||(r=!x(l)||l!==this._$AH[n]),l===E?t=E:t!==E&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends A{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const M=a?a.emptyScript:"";class Z extends A{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class U 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:E)===S)return;const o=this._$AH,s=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==E&&(o===E||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 F{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 W=l.litHtmlPolyfillSupport;null==W||W(I,_),(null!==(n=l.litHtmlVersions)&&void 0!==n?n:l.litHtmlVersions=[]).push("2.4.0");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t._$litStatic$},H=t=>({_$litStatic$:t,r:T}),K=new Map,G=(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=W(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=K.get(t))&&(n.raw=n,K.set(t,e=n)),i=l}return t(e,...i)})(k);var q;!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"}(q||(q={}));const L=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),P=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),V={fontFamily:P,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",L),Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",V.fontSize,"20px"),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",V.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",V.letterSpacing,"0.15px"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",V.lineHeight,"1.2"),et=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",V.textTransform,"inherit"),it=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",L),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",V.fontSize,"14px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",V.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",V.letterSpacing,"0.105px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",V.lineHeight,"1.7"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",V.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",P),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",V.fontSize,"16px"),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",V.fontWeight,"600"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",V.letterSpacing,"0.144px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",V.lineHeight,"1.5"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",V.textTransform,"inherit"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",P),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",V.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",V.fontWeight,"normal"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",V.letterSpacing,"0.098px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",V.lineHeight,"1.7"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",V.textTransform,"inherit"),mt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",P),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",V.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",V.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",V.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",V.textTransform,"inherit")},$t=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",P),wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",V.fontSize,"14px"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",V.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",V.letterSpacing,"0.252px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",V.lineHeight,"1.4"),Nt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",V.textTransform,"inherit"),jt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",P),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",V.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",V.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",V.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",V.textTransform,"inherit")},Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",P),Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",V.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",V.fontWeight,"normal"),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",V.letterSpacing,"0.33px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",V.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",V.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",P),Bt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",V.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",V.fontWeight,"normal"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",V.letterSpacing,"1.5px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",V.lineHeight,"1.6"),Ft=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",V.textTransform,"uppercase"),Rt=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",P),Tt=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",V.fontSize,"14px"),Wt=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",V.fontWeight,"600"),Ht=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",V.letterSpacing,"1.246px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",V.lineHeight,"1.15"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",V.textTransform,"uppercase"),qt=i.css`
13
+ const R=Symbol.for(""),T=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t._$litStatic$},H=t=>({_$litStatic$:t,r:R}),K=new Map,G=(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=T(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=K.get(t))&&(n.raw=n,K.set(t,e=n)),i=l}return t(e,...i)})(k);var q;!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"}(q||(q={}));const L=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),P=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),V={fontFamily:P,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",L),Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",V.fontSize,"20px"),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",V.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",V.letterSpacing,"0.15px"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",V.lineHeight,"1.2"),et=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",V.textTransform,"inherit"),it=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",L),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",V.fontSize,"14px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",V.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",V.letterSpacing,"0.105px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",V.lineHeight,"1.7"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",V.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",P),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",V.fontSize,"16px"),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",V.fontWeight,"600"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",V.letterSpacing,"0.144px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",V.lineHeight,"1.5"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",V.textTransform,"inherit"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",P),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",V.fontSize,"14px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",V.fontWeight,"normal"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",V.letterSpacing,"0.098px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",V.lineHeight,"1.7"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",V.textTransform,"inherit"),vt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",P),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",V.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",V.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",V.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",V.textTransform,"inherit")},$t=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",P),wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",V.fontSize,"14px"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",V.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",V.letterSpacing,"0.252px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",V.lineHeight,"1.4"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",V.textTransform,"inherit"),Nt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",P),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",V.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",V.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",V.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",V.textTransform,"inherit")},jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",P),Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",V.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",V.fontWeight,"normal"),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",V.letterSpacing,"0.33px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",V.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",V.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",P),Bt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",V.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",V.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",V.letterSpacing,"1.5px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",V.lineHeight,"1.6"),Ft=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",V.textTransform,"uppercase"),Wt=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",P),Rt=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",V.fontSize,"14px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",V.fontWeight,"600"),Ht=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",V.letterSpacing,"1.246px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",V.lineHeight,"1.15"),Gt=e.FtCssVariableFactory.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,20 +41,20 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
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
- text-transform: ${vt};
47
+ text-transform: ${mt};
48
48
  }
49
49
 
50
50
  `,Xt=i.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${mt.fontFamily};
53
- font-size: ${mt.fontSize};
54
- font-weight: ${mt.fontWeight};
55
- letter-spacing: ${mt.letterSpacing};
56
- line-height: ${mt.lineHeight};
57
- text-transform: ${mt.textTransform};
52
+ font-family: ${vt.fontFamily};
53
+ font-size: ${vt.fontSize};
54
+ font-weight: ${vt.fontWeight};
55
+ letter-spacing: ${vt.letterSpacing};
56
+ line-height: ${vt.lineHeight};
57
+ text-transform: ${vt.textTransform};
58
58
  }
59
59
  `,Yt=i.css`
60
60
  .ft-typography--body2 {
@@ -63,20 +63,20 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
63
63
  font-weight: ${zt};
64
64
  letter-spacing: ${kt};
65
65
  line-height: ${St};
66
- text-transform: ${Nt};
66
+ text-transform: ${Et};
67
67
  }
68
68
  `,Jt=i.css`
69
69
  .ft-typography--caption {
70
- font-family: ${jt.fontFamily};
71
- font-size: ${jt.fontSize};
72
- font-weight: ${jt.fontWeight};
73
- letter-spacing: ${jt.letterSpacing};
74
- line-height: ${jt.lineHeight};
75
- text-transform: ${jt.textTransform};
70
+ font-family: ${Nt.fontFamily};
71
+ font-size: ${Nt.fontSize};
72
+ font-weight: ${Nt.fontWeight};
73
+ letter-spacing: ${Nt.letterSpacing};
74
+ line-height: ${Nt.lineHeight};
75
+ text-transform: ${Nt.textTransform};
76
76
  }
77
77
  `,Qt=i.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Et};
79
+ font-family: ${jt};
80
80
  font-size: ${Ot};
81
81
  font-weight: ${It};
82
82
  letter-spacing: ${Ct};
@@ -88,15 +88,15 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
88
88
  font-family: ${At};
89
89
  font-size: ${Bt};
90
90
  font-weight: ${Mt};
91
- letter-spacing: ${Ut};
92
- line-height: ${Zt};
91
+ letter-spacing: ${Zt};
92
+ line-height: ${Ut};
93
93
  text-transform: ${Ft};
94
94
  }
95
95
  `,ee=i.css`
96
96
  .ft-typography--button {
97
- font-family: ${Rt};
98
- font-size: ${Tt};
99
- font-weight: ${Wt};
97
+ font-family: ${Wt};
98
+ font-size: ${Rt};
99
+ font-weight: ${Tt};
100
100
  letter-spacing: ${Ht};
101
101
  line-height: ${Kt};
102
102
  text-transform: ${Gt};
@@ -154,7 +154,7 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
154
154
  ${r.unsafeHTML(this.resolvedIcon)}
155
155
  <slot ?hidden=${t}></slot>
156
156
  </i>
157
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ce.file_format:this.resolvedIcon=null!==(t=se[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ce.fluid_topics:this.resolvedIcon=null!==(e=oe[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}xe.elementDefinitions={},xe.styles=de,ue([o.property()],xe.prototype,"variant",void 0),ue([o.property()],xe.prototype,"value",void 0),ue([o.state()],xe.prototype,"resolvedIcon",void 0),ue([o.query("slot")],xe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(xe);const ye=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),be=i.css`
157
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ce.file_format:this.resolvedIcon=null!==(t=se[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ce.fluid_topics:this.resolvedIcon=null!==(e=oe[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}xe.elementDefinitions={},xe.styles=de,ue([o.property()],xe.prototype,"variant",void 0),ue([o.property()],xe.prototype,"value",void 0),ue([o.state()],xe.prototype,"resolvedIcon",void 0),ue([o.query("slot")],xe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(xe);const ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ye=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),be=i.css`
158
158
  :host {
159
159
  display: block;
160
160
  }
@@ -165,14 +165,14 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
165
165
 
166
166
  ft-icon {
167
167
  transform: rotate(-45deg);
168
- color: ${ye};
168
+ color: ${ge};
169
169
  }
170
170
 
171
171
  .ft-resizer--dragging ft-icon,
172
172
  .ft-resizer:hover ft-icon {
173
- color: ${ge};
173
+ color: ${ye};
174
174
  }
175
- `;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};class me extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class $e 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`
175
+ `;var me=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 ve extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class $e 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`
176
176
  <style>
177
177
  .ft-resizer {
178
178
  cursor: ${i.unsafeCSS(this.cursor)}
@@ -183,7 +183,7 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
183
183
  @touchstart=${this.initDragFromTouch}>
184
184
  <ft-icon variant="material">${this.icon}</ft-icon>
185
185
  </div>
186
- `}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 me(i,o))}}$e.elementDefinitions={"ft-icon":xe},$e.styles=[e.noTextSelect,be],ve([o.property({type:Number})],$e.prototype,"initialWidth",void 0),ve([o.property({type:Number})],$e.prototype,"initialHeight",void 0),ve([o.property()],$e.prototype,"icon",void 0),ve([o.property()],$e.prototype,"cursor",void 0),ve([o.state()],$e.prototype,"dragging",void 0),e.customElement("ft-resizer")($e);const we={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ze=i.css`
186
+ `}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 ve(i,o))}}$e.elementDefinitions={"ft-icon":xe},$e.styles=[e.noTextSelect,be],me([o.property({type:Number})],$e.prototype,"initialWidth",void 0),me([o.property({type:Number})],$e.prototype,"initialHeight",void 0),me([o.property()],$e.prototype,"icon",void 0),me([o.property()],$e.prototype,"cursor",void 0),me([o.state()],$e.prototype,"dragging",void 0),e.customElement("ft-resizer")($e);const we={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ze=i.css`
187
187
  .ft-input-label {
188
188
  position: absolute;
189
189
  inset: 0;
@@ -214,7 +214,7 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
214
214
  }
215
215
 
216
216
  .ft-input-label:before {
217
- width: ${we.horizontalSpacing};
217
+ width: calc(${we.horizontalSpacing} - 4px);
218
218
  flex-shrink: 0;
219
219
  }
220
220
 
@@ -232,8 +232,10 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
232
232
  border-color: inherit;
233
233
  color: ${we.textColor};
234
234
  transition: font-size 250ms, line-height 250ms, color 250ms;
235
- ${e.setVariable(jt.fontSize,we.fontSize)};
236
- ${e.setVariable(jt.lineHeight,we.fontSize)};
235
+ max-width: calc(${we.labelMaxWidth} - 2 * (${we.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
236
+ text-overflow: ellipsis;
237
+ ${e.setVariable(Nt.fontSize,we.fontSize)};
238
+ ${e.setVariable(Nt.lineHeight,we.fontSize)};
237
239
  }
238
240
 
239
241
  .ft-input-label--in-error .ft-input-label--text {
@@ -247,6 +249,8 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
247
249
  .ft-input-label--hidden-text {
248
250
  padding: 0 4px;
249
251
  opacity: 0;
252
+ max-width: 100%;
253
+ box-sizing: border-box;
250
254
  }
251
255
 
252
256
  .ft-input-label--floating-text {
@@ -258,11 +262,13 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
258
262
  text-overflow: ellipsis;
259
263
  padding: ${we.verticalSpacing} 4px;
260
264
  margin: calc(${we.verticalSpacing} * -1) 0;
265
+ max-width: 100%;
266
+ box-sizing: border-box;
261
267
  }
262
268
 
263
269
  .ft-input-label--raised .ft-input-label--text {
264
- ${e.setVariable(jt.fontSize,we.raisedFontSize)};
265
- ${e.setVariable(jt.lineHeight,we.raisedFontSize)};
270
+ ${e.setVariable(Nt.fontSize,we.raisedFontSize)};
271
+ ${e.setVariable(Nt.lineHeight,we.raisedFontSize)};
266
272
  }
267
273
 
268
274
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -308,7 +314,7 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
308
314
  </div>
309
315
  `:null}
310
316
  </div>
311
- `}}Se.elementDefinitions={},Se.styles=[Jt,ze],ke([o.property({type:String})],Se.prototype,"text",void 0),ke([o.property({type:Boolean})],Se.prototype,"raised",void 0),ke([o.property({type:Boolean})],Se.prototype,"outlined",void 0),ke([o.property({type:Boolean})],Se.prototype,"disabled",void 0),ke([o.property({type:Boolean})],Se.prototype,"error",void 0),e.customElement("ft-input-label")(Se);const Ne=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),je={color:Ne,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ne),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},Ee=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),Oe=Ee,Ie=e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ee),Ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),De=Ce,_e=e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ce),Ae=i.css`
317
+ `}}Se.elementDefinitions={},Se.styles=[Jt,ze],ke([o.property({type:String})],Se.prototype,"text",void 0),ke([o.property({type:Boolean})],Se.prototype,"raised",void 0),ke([o.property({type:Boolean})],Se.prototype,"outlined",void 0),ke([o.property({type:Boolean})],Se.prototype,"disabled",void 0),ke([o.property({type:Boolean})],Se.prototype,"error",void 0),e.customElement("ft-input-label")(Se);const Ee=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),Ne={color:Ee,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ee),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},je=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),Oe=je,Ie=e.FtCssVariableFactory.extend("--ft-ripple-background-color",je),Ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),De=Ce,_e=e.FtCssVariableFactory.extend("--ft-ripple-background-color",Ce),Ae=i.css`
312
318
  :host {
313
319
  display: contents;
314
320
  }
@@ -330,11 +336,11 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
330
336
  }
331
337
 
332
338
  .ft-ripple .ft-ripple--background {
333
- background-color: ${je.backgroundColor};
339
+ background-color: ${Ne.backgroundColor};
334
340
  }
335
341
 
336
342
  .ft-ripple .ft-ripple--effect {
337
- background-color: ${je.color};
343
+ background-color: ${Ne.color};
338
344
  }
339
345
 
340
346
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -382,19 +388,19 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
382
388
  }
383
389
 
384
390
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
385
- opacity: ${je.opacityContentOnSurfaceHover};
391
+ opacity: ${Ne.opacityContentOnSurfaceHover};
386
392
  }
387
393
 
388
394
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
389
- opacity: ${je.opacityContentOnSurfaceSelected};
395
+ opacity: ${Ne.opacityContentOnSurfaceSelected};
390
396
  }
391
397
 
392
398
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
393
- opacity: ${je.opacityContentOnSurfaceFocused};
399
+ opacity: ${Ne.opacityContentOnSurfaceFocused};
394
400
  }
395
401
 
396
402
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
397
- opacity: ${je.opacityContentOnSurfacePressed};
403
+ opacity: ${Ne.opacityContentOnSurfacePressed};
398
404
  transform: translate(-50%, -50%) scale(1);
399
405
  }
400
406
  `;var Be=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 Me extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y: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`
@@ -414,7 +420,7 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
414
420
  <div class="ft-ripple--background"></div>
415
421
  <div class="ft-ripple--effect"></div>
416
422
  </div>
417
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Me.elementDefinitions={},Me.styles=Ae,Be([o.property({type:Boolean})],Me.prototype,"primary",void 0),Be([o.property({type:Boolean})],Me.prototype,"secondary",void 0),Be([o.property({type:Boolean})],Me.prototype,"unbounded",void 0),Be([o.property({type:Boolean})],Me.prototype,"activated",void 0),Be([o.property({type:Boolean})],Me.prototype,"selected",void 0),Be([o.property({type:Boolean})],Me.prototype,"disabled",void 0),Be([o.state()],Me.prototype,"hovered",void 0),Be([o.state()],Me.prototype,"focused",void 0),Be([o.state()],Me.prototype,"pressed",void 0),Be([o.state()],Me.prototype,"rippling",void 0),Be([o.state()],Me.prototype,"rippleSize",void 0),Be([o.state()],Me.prototype,"originX",void 0),Be([o.state()],Me.prototype,"originY",void 0),Be([o.query(".ft-ripple")],Me.prototype,"ripple",void 0),Be([o.query(".ft-ripple--effect")],Me.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Me);const Ue={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Ze=i.css`
423
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Me.elementDefinitions={},Me.styles=Ae,Be([o.property({type:Boolean})],Me.prototype,"primary",void 0),Be([o.property({type:Boolean})],Me.prototype,"secondary",void 0),Be([o.property({type:Boolean})],Me.prototype,"unbounded",void 0),Be([o.property({type:Boolean})],Me.prototype,"activated",void 0),Be([o.property({type:Boolean})],Me.prototype,"selected",void 0),Be([o.property({type:Boolean})],Me.prototype,"disabled",void 0),Be([o.state()],Me.prototype,"hovered",void 0),Be([o.state()],Me.prototype,"focused",void 0),Be([o.state()],Me.prototype,"pressed",void 0),Be([o.state()],Me.prototype,"rippling",void 0),Be([o.state()],Me.prototype,"rippleSize",void 0),Be([o.state()],Me.prototype,"originX",void 0),Be([o.state()],Me.prototype,"originY",void 0),Be([o.query(".ft-ripple")],Me.prototype,"ripple",void 0),Be([o.query(".ft-ripple--effect")],Me.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Me);const Ze={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Ue=i.css`
418
424
  *:focus {
419
425
  outline: none;
420
426
  }
@@ -426,10 +432,10 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
426
432
  }
427
433
 
428
434
  ft-input-label {
429
- ${e.setVariable(we.fontSize,Ue.fontSize)};
430
- ${e.setVariable(we.raisedFontSize,Ue.labelSize)};
431
- ${e.setVariable(we.verticalSpacing,Ue.verticalSpacing)};
432
- ${e.setVariable(we.horizontalSpacing,i.css`calc(${Ue.horizontalSpacing} - 4px)`)};
435
+ ${e.setVariable(we.fontSize,Ze.fontSize)};
436
+ ${e.setVariable(we.raisedFontSize,Ze.labelSize)};
437
+ ${e.setVariable(we.verticalSpacing,Ze.verticalSpacing)};
438
+ ${e.setVariable(we.horizontalSpacing,Ze.horizontalSpacing)};
433
439
  }
434
440
 
435
441
  .ft-text-area--main-panel {
@@ -447,8 +453,8 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
447
453
  }
448
454
 
449
455
  .ft-text-area--input-panel ft-ripple {
450
- ${e.setVariable(je.opacityContentOnSurfaceHover,"0.08")};
451
- ${e.setVariable(je.opacityContentOnSurfacePressed,"0.04")};
456
+ ${e.setVariable(Ne.opacityContentOnSurfaceHover,"0.08")};
457
+ ${e.setVariable(Ne.opacityContentOnSurfacePressed,"0.04")};
452
458
  }
453
459
 
454
460
  .ft-text-area--input {
@@ -460,12 +466,12 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
460
466
  align-self: stretch;
461
467
  resize: none;
462
468
 
463
- ${e.setVariable(mt.fontSize,Ue.fontSize)};
464
- ${e.setVariable(mt.lineHeight,Ue.fontSize)};
465
- color: ${Ue.colorOnSurface};
469
+ ${e.setVariable(vt.fontSize,Ze.fontSize)};
470
+ ${e.setVariable(vt.lineHeight,Ze.fontSize)};
471
+ color: ${Ze.colorOnSurface};
466
472
 
467
- padding: 0 ${Ue.horizontalSpacing};
468
- margin: calc(${Ue.verticalSpacing} + ${Ue.labelSize} / 2) 0 ${Ue.verticalSpacing} 0;
473
+ padding: 0 ${Ze.horizontalSpacing};
474
+ margin: calc(${Ze.verticalSpacing} + ${Ze.labelSize} / 2) 0 ${Ze.verticalSpacing} 0;
469
475
 
470
476
  border: none;
471
477
  background: none;
@@ -474,7 +480,7 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
474
480
  }
475
481
 
476
482
  .ft-text-area--disabled .ft-text-area--input {
477
- color: ${Ue.colorOnSurfaceDisabled};
483
+ color: ${Ze.colorOnSurfaceDisabled};
478
484
  }
479
485
 
480
486
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -482,32 +488,32 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
482
488
  }
483
489
 
484
490
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
485
- ${e.setVariable(we.borderColor,Ue.colorPrimary)};
486
- ${e.setVariable(we.textColor,Ue.colorPrimary)};
491
+ ${e.setVariable(we.borderColor,Ze.colorPrimary)};
492
+ ${e.setVariable(we.textColor,Ze.colorPrimary)};
487
493
  }
488
494
 
489
495
  .ft-text-area--filled .ft-text-area--input-panel {
490
- border-radius: ${Ue.borderRadiusS} ${Ue.borderRadiusS} 0 0;
496
+ border-radius: ${Ze.borderRadiusS} ${Ze.borderRadiusS} 0 0;
491
497
  }
492
498
 
493
499
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
494
500
  align-self: stretch;
495
- margin-bottom: ${Ue.verticalSpacing};
496
- margin-top: calc(${Ue.labelSize} + 2 * ${Ue.verticalSpacing});
501
+ margin-bottom: ${Ze.verticalSpacing};
502
+ margin-top: calc(${Ze.labelSize} + 2 * ${Ze.verticalSpacing});
497
503
  }
498
504
 
499
505
  .ft-text-area--outlined .ft-text-area--input-panel {
500
- border-radius: ${Ue.borderRadiusS};
506
+ border-radius: ${Ze.borderRadiusS};
501
507
  }
502
508
 
503
509
  .ft-text-area--helper-text {
504
- padding: 0 12px 0 ${Ue.horizontalSpacing};
505
- color: ${Ue.helperColor};
510
+ padding: 0 12px 0 ${Ze.horizontalSpacing};
511
+ color: ${Ze.helperColor};
506
512
  }
507
513
 
508
514
  .ft-text-area--in-error .ft-text-area--input,
509
515
  .ft-text-area--in-error .ft-text-area--helper-text {
510
- color: ${Ue.colorError};
516
+ color: ${Ze.colorError};
511
517
  }
512
518
 
513
519
  ft-resizer {
@@ -515,10 +521,10 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
515
521
  right: 0;
516
522
  bottom: 0;
517
523
  }
518
- `;var Fe=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 Re extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
524
+ `;var Fe=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 We extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
519
525
  <style>
520
526
  .ft-text-area--main-panel {
521
- height: calc(4 * ${Ue.verticalSpacing} + ${Ue.labelSize} + ${Ue.fontSize} + ${this.height}px);
527
+ height: calc(4 * ${Ze.verticalSpacing} + ${Ze.labelSize} + ${Ze.fontSize} + ${this.height}px);
522
528
  }
523
529
  </style>
524
530
  <div class="${s.classMap(t)}">
@@ -553,4 +559,4 @@ const T=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===T)return null==t?void 0:t
553
559
  ${this.helper}
554
560
  </ft-typography>`:void 0}
555
561
  </div>
556
- `}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)}}Re.elementDefinitions={"ft-input-label":Se,"ft-resizer":$e,"ft-ripple":Me,"ft-typography":ne},Re.styles=[Xt,Ze],Fe([o.property({type:String})],Re.prototype,"label",void 0),Fe([o.property({reflect:!0})],Re.prototype,"value",void 0),Fe([o.property({type:String})],Re.prototype,"helper",void 0),Fe([o.property({type:Boolean})],Re.prototype,"outlined",void 0),Fe([o.property({type:Boolean})],Re.prototype,"disabled",void 0),Fe([o.property({type:Boolean})],Re.prototype,"error",void 0),Fe([o.property({type:Number,reflect:!0})],Re.prototype,"height",void 0),Fe([o.query("textarea")],Re.prototype,"textarea",void 0),Fe([o.state()],Re.prototype,"focused",void 0),e.customElement("ft-text-area")(Re),t.FtTextArea=Re,t.FtTextAreaCssVariables=Ue,t.styles=Ze,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
562
+ `}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)}}We.elementDefinitions={"ft-input-label":Se,"ft-resizer":$e,"ft-ripple":Me,"ft-typography":ne},We.styles=[Xt,Ue],Fe([o.property({type:String})],We.prototype,"label",void 0),Fe([o.property({reflect:!0})],We.prototype,"value",void 0),Fe([o.property({type:String})],We.prototype,"helper",void 0),Fe([o.property({type:Boolean})],We.prototype,"outlined",void 0),Fe([o.property({type:Boolean})],We.prototype,"disabled",void 0),Fe([o.property({type:Boolean})],We.prototype,"error",void 0),Fe([o.property({type:Number,reflect:!0})],We.prototype,"height",void 0),Fe([o.query("textarea")],We.prototype,"textarea",void 0),Fe([o.state()],We.prototype,"focused",void 0),e.customElement("ft-text-area")(We),t.FtTextArea=We,t.FtTextAreaCssVariables=Ze,t.styles=Ue,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
@@ -289,7 +289,7 @@ class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error
289
289
  @touchstart=${this.initDragFromTouch}>
290
290
  <ft-icon variant="material">${this.icon}</ft-icon>
291
291
  </div>
292
- `}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 si(i,o))}}ni.elementDefinitions={"ft-icon":ti},ni.styles=[yt,oi],ri([o({type:Number})],ni.prototype,"initialWidth",void 0),ri([o({type:Number})],ni.prototype,"initialHeight",void 0),ri([o()],ni.prototype,"icon",void 0),ri([o()],ni.prototype,"cursor",void 0),ri([r()],ni.prototype,"dragging",void 0),a("ft-resizer")(ni);const ai={fontSize:ct.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ct.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ct.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ct.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ct.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ct.extend("--ft-input-label-border-color",dt.colorOutline),textColor:ct.extend("--ft-input-label-text-color",dt.colorOnSurfaceMedium),disabledTextColor:ct.extend("--ft-input-label-disabled-text-color",dt.colorOnSurfaceDisabled),colorSurface:ct.external(dt.colorSurface,"Design system"),borderRadiusS:ct.external(dt.borderRadiusS,"Design system"),colorError:ct.external(dt.colorError,"Design system")},li=u`
292
+ `}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 si(i,o))}}ni.elementDefinitions={"ft-icon":ti},ni.styles=[yt,oi],ri([o({type:Number})],ni.prototype,"initialWidth",void 0),ri([o({type:Number})],ni.prototype,"initialHeight",void 0),ri([o()],ni.prototype,"icon",void 0),ri([o()],ni.prototype,"cursor",void 0),ri([r()],ni.prototype,"dragging",void 0),a("ft-resizer")(ni);const ai={fontSize:ct.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ct.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ct.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ct.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ct.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:ct.create("--ft-input-label-max-width","SIZE","100%"),borderColor:ct.extend("--ft-input-label-border-color",dt.colorOutline),textColor:ct.extend("--ft-input-label-text-color",dt.colorOnSurfaceMedium),disabledTextColor:ct.extend("--ft-input-label-disabled-text-color",dt.colorOnSurfaceDisabled),colorSurface:ct.external(dt.colorSurface,"Design system"),borderRadiusS:ct.external(dt.borderRadiusS,"Design system"),colorError:ct.external(dt.colorError,"Design system")},li=u`
293
293
  .ft-input-label {
294
294
  position: absolute;
295
295
  inset: 0;
@@ -320,7 +320,7 @@ class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error
320
320
  }
321
321
 
322
322
  .ft-input-label:before {
323
- width: ${ai.horizontalSpacing};
323
+ width: calc(${ai.horizontalSpacing} - 4px);
324
324
  flex-shrink: 0;
325
325
  }
326
326
 
@@ -338,6 +338,8 @@ class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error
338
338
  border-color: inherit;
339
339
  color: ${ai.textColor};
340
340
  transition: font-size 250ms, line-height 250ms, color 250ms;
341
+ max-width: calc(${ai.labelMaxWidth} - 2 * (${ai.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
342
+ text-overflow: ellipsis;
341
343
  ${ft(he.fontSize,ai.fontSize)};
342
344
  ${ft(he.lineHeight,ai.fontSize)};
343
345
  }
@@ -353,6 +355,8 @@ class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error
353
355
  .ft-input-label--hidden-text {
354
356
  padding: 0 4px;
355
357
  opacity: 0;
358
+ max-width: 100%;
359
+ box-sizing: border-box;
356
360
  }
357
361
 
358
362
  .ft-input-label--floating-text {
@@ -364,6 +368,8 @@ class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error
364
368
  text-overflow: ellipsis;
365
369
  padding: ${ai.verticalSpacing} 4px;
366
370
  margin: calc(${ai.verticalSpacing} * -1) 0;
371
+ max-width: 100%;
372
+ box-sizing: border-box;
367
373
  }
368
374
 
369
375
  .ft-input-label--raised .ft-input-label--text {
@@ -535,7 +541,7 @@ class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error
535
541
  ${ft(ai.fontSize,wi.fontSize)};
536
542
  ${ft(ai.raisedFontSize,wi.labelSize)};
537
543
  ${ft(ai.verticalSpacing,wi.verticalSpacing)};
538
- ${ft(ai.horizontalSpacing,u`calc(${wi.horizontalSpacing} - 4px)`)};
544
+ ${ft(ai.horizontalSpacing,wi.horizontalSpacing)};
539
545
  }
540
546
 
541
547
  .ft-text-area--main-panel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-text-area",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "description": "A fluidtopics text field",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-resizer": "0.3.48",
23
- "@fluid-topics/ft-ripple": "0.3.48",
24
- "@fluid-topics/ft-wc-utils": "0.3.48",
22
+ "@fluid-topics/ft-resizer": "0.3.49",
23
+ "@fluid-topics/ft-ripple": "0.3.49",
24
+ "@fluid-topics/ft-wc-utils": "0.3.49",
25
25
  "lit": "2.2.8"
26
26
  },
27
- "gitHead": "d3c000ead2ed2e15f291d09b303ad8aaa7f1ce98"
27
+ "gitHead": "3584a4f0b3edc500a360c2afe2ef3e5cdbb604b6"
28
28
  }