@fluid-topics/ft-text-field 2.0.31 → 2.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var q1=Object.create;var Zo=Object.defineProperty;var Q1=Object.getOwnPropertyDescriptor;var J1=Object.getOwnPropertyNames;var ea=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty;var Be=(t,o)=>()=>
|
|
1
|
+
"use strict";(()=>{var q1=Object.create;var Zo=Object.defineProperty;var Q1=Object.getOwnPropertyDescriptor;var J1=Object.getOwnPropertyNames;var ea=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty;var Be=(t,o)=>()=>{try{return o||t((o={exports:{}}).exports,o),o.exports}catch(a){throw o=0,a}};var oa=(t,o,a,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of J1(o))!ta.call(t,c)&&c!==a&&Zo(t,c,{get:()=>o[c],enumerable:!(n=Q1(o,c))||n.enumerable});return t};var C=(t,o,a)=>(a=t!=null?q1(ea(t)):{},oa(o||!t||!t.__esModule?Zo(a,"default",{value:t,enumerable:!0}):a,t));var P=Be((pn,Fo)=>{Fo.exports=ftGlobals.wcUtils});var U=Be((un,Yo)=>{Yo.exports=ftGlobals.lit});var ae=Be((gn,jo)=>{jo.exports=ftGlobals.litDecorators});var qo=Be((mn,Xo)=>{Xo.exports=ftGlobals.litRepeat});var He=Be((hn,Qo)=>{Qo.exports=ftGlobals.litClassMap});var fo=Be((os,yr)=>{yr.exports=ftGlobals.litUnsafeHTML});var Y1=C(P());var B=C(U()),R=C(ae()),K1=C(qo()),Z1=C(He());var eo=globalThis,vt=eo.trustedTypes,Jo=vt?vt.createPolicy("lit-html",{createHTML:t=>t}):void 0,n2="$lit$",ye=`lit$${Math.random().toFixed(9).slice(2)}$`,c2="?"+ye,ra=`<${c2}>`,Re=document,Et=()=>Re.createComment(""),it=t=>t===null||typeof t!="object"&&typeof t!="function",to=Array.isArray,aa=t=>to(t)||typeof t?.[Symbol.iterator]=="function",Yt=`[
|
|
2
2
|
\f\r]`,ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,e2=/-->/g,t2=/>/g,ze=RegExp(`>|${Yt}(?:([^\\s"'>=/]+)(${Yt}*=${Yt}*(?:[^
|
|
3
3
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),o2=/'/g,r2=/"/g,i2=/^(?:script|style|textarea|title)$/i,oo=t=>(o,...a)=>({_$litType$:t,strings:o,values:a}),l2=oo(1),s2=oo(2),d2=oo(3),lt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),a2=new WeakMap,Ae=Re.createTreeWalker(Re,129);function f2(t,o){if(!to(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jo!==void 0?Jo.createHTML(o):o}var na=(t,o)=>{let a=t.length-1,n=[],c,l=o===2?"<svg>":o===3?"<math>":"",s=ct;for(let p=0;p<a;p++){let g=t[p],m,b,L=-1,v=0;for(;v<g.length&&(s.lastIndex=v,b=s.exec(g),b!==null);)v=s.lastIndex,s===ct?b[1]==="!--"?s=e2:b[1]!==void 0?s=t2:b[2]!==void 0?(i2.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,m=b[1],s=b[3]===void 0?ze:b[3]==='"'?r2:o2):s===r2||s===o2?s=ze:s===e2||s===t2?s=ct:(s=ze,c=void 0);let k=s===ze&&t[p+1].startsWith("/>")?" ":"";l+=s===ct?g+ra:L>=0?(n.push(m),g.slice(0,L)+n2+g.slice(L)+ye+k):g+ye+(L===-2?p:k)}return[f2(t,l+(t[a]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),n]},st=class t{constructor({strings:o,_$litType$:a},n){let c;this.parts=[];let l=0,s=0,p=o.length-1,g=this.parts,[m,b]=na(o,a);if(this.el=t.createElement(m,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&&g.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let L of c.getAttributeNames())if(L.endsWith(n2)){let v=b[s++],k=c.getAttribute(L).split(ye),Z=/([.?@])?(.*)/.exec(v);g.push({type:1,index:l,name:Z[2],strings:k,ctor:Z[1]==="."?Xt:Z[1]==="?"?qt:Z[1]==="@"?Qt:De}),c.removeAttribute(L)}else L.startsWith(ye)&&(g.push({type:6,index:l}),c.removeAttribute(L));if(i2.test(c.tagName)){let L=c.textContent.split(ye),v=L.length-1;if(v>0){c.textContent=vt?vt.emptyScript:"";for(let k=0;k<v;k++)c.append(L[k],Et()),Ae.nextNode(),g.push({type:2,index:++l});c.append(L[v],Et())}}}else if(c.nodeType===8)if(c.data===c2)g.push({type:2,index:l});else{let L=-1;for(;(L=c.data.indexOf(ye,L+1))!==-1;)g.push({type:7,index:l}),L+=ye.length-1}l++}}static createElement(o,a){let n=Re.createElement("template");return n.innerHTML=o,n}};function Ue(t,o,a=t,n){if(o===lt)return o;let c=n!==void 0?a._$Co?.[n]:a._$Cl,l=it(o)?void 0:o._$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&&(o=Ue(t,c._$AS(t,o.values),c,n)),o}var jt=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:n}=this._$AD,c=(o?.creationScope??Re).importNode(a,!0);Ae.currentNode=c;let l=Ae.nextNode(),s=0,p=0,g=n[0];for(;g!==void 0;){if(s===g.index){let m;g.type===2?m=new zt(l,l.nextSibling,this,o):g.type===1?m=new g.ctor(l,g.name,g.strings,this,o):g.type===6&&(m=new Jt(l,this,o)),this._$AV.push(m),g=n[++p]}s!==g?.index&&(l=Ae.nextNode(),s++)}return Ae.currentNode=Re,c}p(o){let a=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,a),a+=n.strings.length-2):n._$AI(o[a])),a++}},zt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,n,c){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=n,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=Ue(this,o,a),it(o)?o===T||o==null||o===""?(this._$AH!==T&&this._$AR(),this._$AH=T):o!==this._$AH&&o!==lt&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):aa(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==T&&it(this._$AH)?this._$AA.nextSibling.data=o:this.T(Re.createTextNode(o)),this._$AH=o}$(o){let{values:a,_$litType$:n}=o,c=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=st.createElement(f2(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new jt(c,this),s=l.u(this.options);l.p(a),this.T(s),this._$AH=l}}_$AC(o){let a=a2.get(o.strings);return a===void 0&&a2.set(o.strings,a=new st(o)),a}k(o){to(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,n,c=0;for(let l of o)c===a.length?a.push(n=new t(this.O(Et()),this.O(Et()),this,this.options)):n=a[c],n._$AI(l),c++;c<a.length&&(this._$AR(n&&n._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},De=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,n,c,l){this.type=1,this._$AH=T,this._$AN=void 0,this.element=o,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=T}_$AI(o,a=this,n,c){let l=this.strings,s=!1;if(l===void 0)o=Ue(this,o,a,0),s=!it(o)||o!==this._$AH&&o!==lt,s&&(this._$AH=o);else{let p=o,g,m;for(o=l[0],g=0;g<l.length-1;g++)m=Ue(this,p[n+g],a,g),m===lt&&(m=this._$AH[g]),s||=!it(m)||m!==this._$AH[g],m===T?o=T:o!==T&&(o+=(m??"")+l[g+1]),this._$AH[g]=m}s&&!c&&this.j(o)}j(o){o===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Xt=class extends De{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===T?void 0:o}},qt=class extends De{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==T)}},Qt=class extends De{constructor(o,a,n,c,l){super(o,a,n,c,l),this.type=5}_$AI(o,a=this){if((o=Ue(this,o,a,0)??T)===lt)return;let n=this._$AH,c=o===T&&n!==T||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,l=o!==T&&(n===T||c);c&&this.element.removeEventListener(this.name,this,n),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Jt=class{constructor(o,a,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Ue(this,o)}};var ca=eo.litHtmlPolyfillSupport;ca?.(st,zt),(eo.litHtmlVersions??=[]).push("3.3.0");var dt=t=>t??T;var q=C(P());var u2=Symbol.for(""),ia=t=>{if(t?.r===u2)return t?._$litStatic$},We=t=>({_$litStatic$:t,r:u2});var p2=new Map,ro=t=>(o,...a)=>{let n=a.length,c,l,s=[],p=[],g,m=0,b=!1;for(;m<n;){for(g=o[m];m<n&&(l=a[m],(c=ia(l))!==void 0);)g+=c+o[++m],b=!0;m!==n&&p.push(l),s.push(g),m++}if(m===n&&s.push(o[n]),b){let L=s.join("$$lit$$");(o=p2.get(L))===void 0&&(s.raw=s,p2.set(L,o=s)),a=p}return t(o,...a)},$e=ro(l2),On=ro(s2),vn=ro(d2);var ao=C(ae()),E2=C(P());var Ve;(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"})(Ve||(Ve={}));var j=C(U()),y=C(P()),g2=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),fe=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),S={fontFamily:fe,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")},Ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",g2),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")},Ze={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",g2),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")},Fe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",fe),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")},Ye={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",fe),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")},de={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",fe),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")},je={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",fe),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")},H={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",fe),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")},Xe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",fe),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")},qe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",fe),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")},Qe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",fe),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")},m2=j.css`
|
|
4
4
|
.ft-typography--title {
|