@fluid-topics/ft-text-area 2.0.31 → 2.0.33
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.
- package/build/ft-text-area.light.js +1 -1
- package/build/ft-text-area.min.js +26 -26
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Fo=Object.create;var $2=Object.defineProperty;var Yo=Object.getOwnPropertyDescriptor;var jo=Object.getOwnPropertyNames;var Xo=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty;var at=(t,r)=>()=>
|
|
1
|
+
"use strict";(()=>{var Fo=Object.create;var $2=Object.defineProperty;var Yo=Object.getOwnPropertyDescriptor;var jo=Object.getOwnPropertyNames;var Xo=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty;var at=(t,r)=>()=>{try{return r||t((r={exports:{}}).exports,r),r.exports}catch(a){throw r=0,a}};var Qo=(t,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of jo(r))!qo.call(t,c)&&c!==a&&$2(t,c,{get:()=>r[c],enumerable:!(n=Yo(r,c))||n.enumerable});return t};var C=(t,r,a)=>(a=t!=null?Fo(Xo(t)):{},Qo(r||!t||!t.__esModule?$2(a,"default",{value:t,enumerable:!0}):a,t));var N=at((ln,V2)=>{V2.exports=ftGlobals.wcUtils});var I=at((sn,K2)=>{K2.exports=ftGlobals.lit});var ee=at((dn,Z2)=>{Z2.exports=ftGlobals.litDecorators});var nt=at((fn,F2)=>{F2.exports=ftGlobals.litClassMap});var c2=at((n3,V1)=>{V1.exports=ftGlobals.litUnsafeHTML});var Vo=C(N());var Kt=C(I()),J=C(ee()),Wo=C(nt()),we=C(N());var Jt=globalThis,St=Jt.trustedTypes,Y2=St?St.createPolicy("lit-html",{createHTML:t=>t}):void 0,e1="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,t1="?"+be,Jo=`<${t1}>`,Re=document,Ot=()=>Re.createComment(""),it=t=>t===null||typeof t!="object"&&typeof t!="function",e2=Array.isArray,ea=t=>e2(t)||typeof t?.[Symbol.iterator]=="function",Ft=`[
|
|
2
2
|
\f\r]`,ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j2=/-->/g,X2=/>/g,ze=RegExp(`>|${Ft}(?:([^\\s"'>=/]+)(${Ft}*=${Ft}*(?:[^
|
|
3
3
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),q2=/'/g,Q2=/"/g,r1=/^(?:script|style|textarea|title)$/i,t2=t=>(r,...a)=>({_$litType$:t,strings:r,values:a}),o1=t2(1),a1=t2(2),n1=t2(3),lt=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),J2=new WeakMap,Ae=Re.createTreeWalker(Re,129);function c1(t,r){if(!e2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y2!==void 0?Y2.createHTML(r):r}var ta=(t,r)=>{let a=t.length-1,n=[],c,l=r===2?"<svg>":r===3?"<math>":"",s=ct;for(let p=0;p<a;p++){let m=t[p],g,b,L=-1,O=0;for(;O<m.length&&(s.lastIndex=O,b=s.exec(m),b!==null);)O=s.lastIndex,s===ct?b[1]==="!--"?s=j2:b[1]!==void 0?s=X2:b[2]!==void 0?(r1.test(b[2])&&(c=RegExp("</"+b[2],"g")),s=ze):b[3]!==void 0&&(s=ze):s===ze?b[0]===">"?(s=c??ct,L=-1):b[1]===void 0?L=-2:(L=s.lastIndex-b[2].length,g=b[1],s=b[3]===void 0?ze:b[3]==='"'?Q2:q2):s===Q2||s===q2?s=ze:s===j2||s===X2?s=ct:(s=ze,c=void 0);let _=s===ze&&t[p+1].startsWith("/>")?" ":"";l+=s===ct?m+Jo:L>=0?(n.push(g),m.slice(0,L)+e1+m.slice(L)+be+_):m+be+(L===-2?p:_)}return[c1(t,l+(t[a]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),n]},st=class t{constructor({strings:r,_$litType$:a},n){let c;this.parts=[];let l=0,s=0,p=r.length-1,m=this.parts,[g,b]=ta(r,a);if(this.el=t.createElement(g,n),Ae.currentNode=this.el.content,a===2||a===3){let L=this.el.content.firstChild;L.replaceWith(...L.childNodes)}for(;(c=Ae.nextNode())!==null&&m.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let L of c.getAttributeNames())if(L.endsWith(e1)){let O=b[s++],_=c.getAttribute(L).split(be),$=/([.?@])?(.*)/.exec(O);m.push({type:1,index:l,name:$[2],strings:_,ctor:$[1]==="."?jt:$[1]==="?"?Xt:$[1]==="@"?qt:Be}),c.removeAttribute(L)}else L.startsWith(be)&&(m.push({type:6,index:l}),c.removeAttribute(L));if(r1.test(c.tagName)){let L=c.textContent.split(be),O=L.length-1;if(O>0){c.textContent=St?St.emptyScript:"";for(let _=0;_<O;_++)c.append(L[_],Ot()),Ae.nextNode(),m.push({type:2,index:++l});c.append(L[O],Ot())}}}else if(c.nodeType===8)if(c.data===t1)m.push({type:2,index:l});else{let L=-1;for(;(L=c.data.indexOf(be,L+1))!==-1;)m.push({type:7,index:l}),L+=be.length-1}l++}}static createElement(r,a){let n=Re.createElement("template");return n.innerHTML=r,n}};function Ie(t,r,a=t,n){if(r===lt)return r;let c=n!==void 0?a._$Co?.[n]:a._$Cl,l=it(r)?void 0:r._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(t),c._$AT(t,a,n)),n!==void 0?(a._$Co??=[])[n]=c:a._$Cl=c),c!==void 0&&(r=Ie(t,c._$AS(t,r.values),c,n)),r}var Yt=class{constructor(r,a){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:a},parts:n}=this._$AD,c=(r?.creationScope??Re).importNode(a,!0);Ae.currentNode=c;let l=Ae.nextNode(),s=0,p=0,m=n[0];for(;m!==void 0;){if(s===m.index){let g;m.type===2?g=new Et(l,l.nextSibling,this,r):m.type===1?g=new m.ctor(l,m.name,m.strings,this,r):m.type===6&&(g=new Qt(l,this,r)),this._$AV.push(g),m=n[++p]}s!==m?.index&&(l=Ae.nextNode(),s++)}return Ae.currentNode=Re,c}p(r){let a=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,a),a+=n.strings.length-2):n._$AI(r[a])),a++}},Et=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,a,n,c){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=r,this._$AB=a,this._$AM=n,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,a=this._$AM;return a!==void 0&&r?.nodeType===11&&(r=a.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,a=this){r=Ie(this,r,a),it(r)?r===w||r==null||r===""?(this._$AH!==w&&this._$AR(),this._$AH=w):r!==this._$AH&&r!==lt&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):ea(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==w&&it(this._$AH)?this._$AA.nextSibling.data=r:this.T(Re.createTextNode(r)),this._$AH=r}$(r){let{values:a,_$litType$:n}=r,c=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=st.createElement(c1(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new Yt(c,this),s=l.u(this.options);l.p(a),this.T(s),this._$AH=l}}_$AC(r){let a=J2.get(r.strings);return a===void 0&&J2.set(r.strings,a=new st(r)),a}k(r){e2(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,n,c=0;for(let l of r)c===a.length?a.push(n=new t(this.O(Ot()),this.O(Ot()),this,this.options)):n=a[c],n._$AI(l),c++;c<a.length&&(this._$AR(n&&n._$AB.nextSibling,c),a.length=c)}_$AR(r=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Be=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,a,n,c,l){this.type=1,this._$AH=w,this._$AN=void 0,this.element=r,this.name=a,this._$AM=c,this.options=l,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=w}_$AI(r,a=this,n,c){let l=this.strings,s=!1;if(l===void 0)r=Ie(this,r,a,0),s=!it(r)||r!==this._$AH&&r!==lt,s&&(this._$AH=r);else{let p=r,m,g;for(r=l[0],m=0;m<l.length-1;m++)g=Ie(this,p[n+m],a,m),g===lt&&(g=this._$AH[m]),s||=!it(g)||g!==this._$AH[m],g===w?r=w:r!==w&&(r+=(g??"")+l[m+1]),this._$AH[m]=g}s&&!c&&this.j(r)}j(r){r===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},jt=class extends Be{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===w?void 0:r}},Xt=class extends Be{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==w)}},qt=class extends Be{constructor(r,a,n,c,l){super(r,a,n,c,l),this.type=5}_$AI(r,a=this){if((r=Ie(this,r,a,0)??w)===lt)return;let n=this._$AH,c=r===w&&n!==w||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,l=r!==w&&(n===w||c);c&&this.element.removeEventListener(this.name,this,n),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Qt=class{constructor(r,a,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=a,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Ie(this,r)}};var ra=Jt.litHtmlPolyfillSupport;ra?.(st,Et),(Jt.litHtmlVersions??=[]).push("3.3.0");var l1=Symbol.for(""),oa=t=>{if(t?.r===l1)return t?._$litStatic$},He=t=>({_$litStatic$:t,r:l1});var i1=new Map,r2=t=>(r,...a)=>{let n=a.length,c,l,s=[],p=[],m,g=0,b=!1;for(;g<n;){for(m=r[g];g<n&&(l=a[g],(c=oa(l))!==void 0);)m+=c+r[++g],b=!0;g!==n&&p.push(l),s.push(m),g++}if(g===n&&s.push(r[n]),b){let L=s.join("$$lit$$");(r=i1.get(L))===void 0&&(s.raw=s,i1.set(L,r=s)),a=p}return t(r,...a)},De=r2(o1),mn=r2(a1),gn=r2(n1);var o2=C(ee()),L1=C(N());var Ue;(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"})(Ue||(Ue={}));var Y=C(I()),y=C(N()),s1=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),de=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),S={fontFamily:de,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},We={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",s1),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit")},$e={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",s1),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit")},Ve={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit")},Ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit")},se={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit")},Ze={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit")},T={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit")},Fe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit")},Ye={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase")},je={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",de),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},d1=Y.css`
|
|
4
4
|
.ft-typography--title {
|