@fluid-topics/ft-number-field 1.1.35 → 1.1.37
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.
|
@@ -48,7 +48,7 @@ const v={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:x},w=(t=v,o,
|
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/(t)?+t:void 0},toAttribute:t=>""+t},...null!=t?t:{}})}const k=globalThis,L=k.trustedTypes,K=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,F="?"+z,D=`<${F}>`,A=document,M=()=>A.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,P="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
51
|
+
*/(t)?+t:void 0},toAttribute:t=>""+t},...null!=t?t:{}})}const k=globalThis,L=k.trustedTypes,K=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,F="?"+z,D=`<${F}>`,A=document,M=()=>A.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,P="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,T=/>/g,G=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,X=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),q=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,ot=A.createTreeWalker(A,129);function et(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(o):o}let rt=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let a=0,n=0;const l=o.length-1,s=this.parts,[c,p]=((t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=_;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,p=0;for(;p<e.length&&(n.lastIndex=p,s=n.exec(e),null!==s);)p=n.lastIndex,n===_?"!--"===s[1]?n=j:void 0!==s[1]?n=T:void 0!==s[2]?(J.test(s[2])&&(i=RegExp("</"+s[2],"g")),n=G):void 0!==s[3]&&(n=G):n===G?">"===s[0]?(n=i??_,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,l=s[1],n=void 0===s[3]?G:'"'===s[3]?V:Y):n===V||n===Y?n=G:n===j||n===T?n=_:(n=G,i=void 0);const f=n===G&&t[o+1].startsWith("/>")?" ":"";a+=n===_?e+D:c>=0?(r.push(l),e.slice(0,c)+Z+e.slice(c)+z+f):e+z+(-2===c?o:f)}return[et(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(c,r),ot.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ot.nextNode())&&s.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Z)){const o=p[n++],e=i.getAttribute(t).split(z),r=/([.?@])?(.*)/.exec(o);s.push({type:1,index:a,name:r[2],strings:e,ctor:"."===r[1]?lt:"?"===r[1]?st:"@"===r[1]?ct:nt}),i.removeAttribute(t)}else t.startsWith(z)&&(s.push({type:6,index:a}),i.removeAttribute(t));if(J.test(i.tagName)){const t=i.textContent.split(z),o=t.length-1;if(o>0){i.textContent=L?L.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],M()),ot.nextNode(),s.push({type:2,index:++a});i.append(t[o],M())}}}else if(8===i.nodeType)if(i.data===F)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=i.data.indexOf(z,t+1));)s.push({type:7,index:a}),t+=z.length-1}a++}}static createElement(t,o){const e=A.createElement("template");return e.innerHTML=t,e}};function it(t,o,e=t,r){if(o===q)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=B(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=it(t,i._$AS(t,o.values),i,r)),o}let at=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=it(this,t,o),B(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=rt.createElement(et(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??A).importNode(o,!0);ot.currentNode=r;let i=ot.nextNode(),a=0,n=0,l=e[0];for(;void 0!==l;){if(a===l.index){let o;2===l.type?o=new at(i,i.nextSibling,this,t):1===l.type?o=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(o=new pt(i,this,t)),this._$AV.push(o),l=e[++n]}a!==l?.index&&(i=ot.nextNode(),a++)}return ot.currentNode=A,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=tt.get(t.strings);return void 0===o&&tt.set(t.strings,o=new rt(t)),o}T(o){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const a of o)i===e.length?e.push(r=new t(this.k(M()),this.k(M()),this,this.options)):r=e[i],r._$AI(a),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Q}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=it(this,t,o,0),a=!B(t)||t!==this._$AH&&t!==q,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=it(this,r[e+n],o,n),l===q&&(l=this._$AH[n]),a||=!B(l)||l!==this._$AH[n],l===Q?t=Q:t!==Q&&(t+=(l??"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.O(t)}O(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends nt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Q?void 0:t}},st=class extends nt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}},ct=class extends nt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=it(this,t,o,0)??Q)===q)return;const e=this._$AH,r=t===Q&&e!==Q||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Q&&(e===Q||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},pt=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const ft=k.litHtmlPolyfillSupport;ft?.(rt,at),(k.litHtmlVersions??=[]).push("3.1.0");
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2019 Google LLC
|
|
@@ -65,7 +65,7 @@ const ht=globalThis,dt=ht.ShadowRoot&&(void 0===ht.ShadyCSS||ht.ShadyCSS.nativeS
|
|
|
65
65
|
* Copyright 2017 Google LLC
|
|
66
66
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
67
|
*/
|
|
68
|
-
const Zt=globalThis,zt=Zt.trustedTypes,Ft=zt?zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Dt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+At,Bt=`<${Mt}>`,Ht=document,Pt=()=>Ht.createComment(""),_t=t=>null===t||"object"!=typeof t&&"function"!=typeof t,
|
|
68
|
+
const Zt=globalThis,zt=Zt.trustedTypes,Ft=zt?zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Dt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+At,Bt=`<${Mt}>`,Ht=document,Pt=()=>Ht.createComment(""),_t=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,Tt="[ \t\n\f\r]",Gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,Vt=/>/g,Jt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,to=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),oo=Symbol.for("lit-noChange"),eo=Symbol.for("lit-nothing"),ro=new WeakMap,io=Ht.createTreeWalker(Ht,129);function ao(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ft?Ft.createHTML(o):o}const no=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=Gt;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,p=0;for(;p<e.length&&(n.lastIndex=p,s=n.exec(e),null!==s);)p=n.lastIndex,n===Gt?"!--"===s[1]?n=Yt:void 0!==s[1]?n=Vt:void 0!==s[2]?(Qt.test(s[2])&&(i=RegExp("</"+s[2],"g")),n=Jt):void 0!==s[3]&&(n=Jt):n===Jt?">"===s[0]?(n=i??Gt,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,l=s[1],n=void 0===s[3]?Jt:'"'===s[3]?qt:Xt):n===qt||n===Xt?n=Jt:n===Yt||n===Vt?n=Gt:(n=Jt,i=void 0);const f=n===Jt&&t[o+1].startsWith("/>")?" ":"";a+=n===Gt?e+Bt:c>=0?(r.push(l),e.slice(0,c)+Dt+e.slice(c)+At+f):e+At+(-2===c?o:f)}return[ao(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class lo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,l=this.parts,[s,c]=no(t,o);if(this.el=lo.createElement(s,e),io.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=io.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Dt)){const o=c[a++],e=r.getAttribute(t).split(At),n=/([.?@])?(.*)/.exec(o);l.push({type:1,index:i,name:n[2],strings:e,ctor:"."===n[1]?fo:"?"===n[1]?ho:"@"===n[1]?yo:po}),r.removeAttribute(t)}else t.startsWith(At)&&(l.push({type:6,index:i}),r.removeAttribute(t));if(Qt.test(r.tagName)){const t=r.textContent.split(At),o=t.length-1;if(o>0){r.textContent=zt?zt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Pt()),io.nextNode(),l.push({type:2,index:++i});r.append(t[o],Pt())}}}else if(8===r.nodeType)if(r.data===Mt)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(At,t+1));)l.push({type:7,index:i}),t+=At.length-1}i++}}static createElement(t,o){const e=Ht.createElement("template");return e.innerHTML=t,e}}function so(t,o,e=t,r){if(o===oo)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=_t(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=so(t,i._$AS(t,o.values),i,r)),o}class co{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=eo,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=so(this,t,o),_t(t)?t===eo||null==t||""===t?(this._$AH!==eo&&this._$AR(),this._$AH=eo):t!==this._$AH&&t!==oo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>jt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==eo&&_t(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ht.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=lo.createElement(ao(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??Ht).importNode(o,!0);io.currentNode=r;let i=io.nextNode(),a=0,n=0,l=e[0];for(;void 0!==l;){if(a===l.index){let o;2===l.type?o=new co(i,i.nextSibling,this,t):1===l.type?o=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(o=new go(i,this,t)),this._$AV.push(o),l=e[++n]}a!==l?.index&&(i=io.nextNode(),a++)}return io.currentNode=Ht,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=ro.get(t.strings);return void 0===o&&ro.set(t.strings,o=new lo(t)),o}T(t){jt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new co(this.k(Pt()),this.k(Pt()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class po{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=eo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=eo}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=so(this,t,o,0),a=!_t(t)||t!==this._$AH&&t!==oo,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=so(this,r[e+n],o,n),l===oo&&(l=this._$AH[n]),a||=!_t(l)||l!==this._$AH[n],l===eo?t=eo:t!==eo&&(t+=(l??"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.O(t)}O(t){t===eo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class fo extends po{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===eo?void 0:t}}class ho extends po{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==eo)}}class yo extends po{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=so(this,t,o,0)??eo)===oo)return;const e=this._$AH,r=t===eo&&e!==eo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==eo&&(e===eo||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class go{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){so(this,t)}}const uo=Zt.litHtmlPolyfillSupport;uo?.(lo,co),(Zt.litHtmlVersions??=[]).push("3.1.0");
|
|
69
69
|
/**
|
|
70
70
|
* @license
|
|
71
71
|
* Copyright 2017 Google LLC
|
|
@@ -76,7 +76,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2019 Google LLC
|
|
78
78
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
79
|
-
*/class Ro extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Uo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=Eo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var $o,Io=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Wo=Symbol("constructorPrototype"),ko=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ko extends Ro{constructor(){super(),this[$o]=new o(5),this[ko]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ko]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),
|
|
79
|
+
*/class Ro extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Uo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=Eo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var $o,Io=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Wo=Symbol("constructorPrototype"),ko=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ko extends Ro{constructor(){super(),this[$o]=new o(5),this[ko]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ko]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,o,e;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(e=null===(o=this.exportpartsPrefixes)||void 0===o?void 0:o.length)&&void 0!==e&&e)&&this[Lo].run((()=>{var t,o;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(o=this.exportpartsPrefixes)||void 0===o?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const l=t=>null!=t&&t.trim().length>0,s=t.filter(l).map((t=>t.trim()));if(0===s.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>s.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}$o=Lo,Io([C()],Ko.prototype,"exportpartsPrefix",void 0),Io([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!$(t,o),...null!=o?o:{}})}([])],Ko.prototype,"exportpartsPrefixes",void 0),Io([C()],Ko.prototype,"customStylesheet",void 0);const Zo=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function zo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Fo,Do,Ao;mt`
|
|
80
80
|
.highlight-html-match {
|
|
81
81
|
background: ${Zo};
|
|
82
82
|
}
|
|
@@ -112,7 +112,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
112
112
|
display: inline-block;
|
|
113
113
|
width: 0;
|
|
114
114
|
}
|
|
115
|
-
`;const Mo=Symbol("internalReduxEventsUnsubscribers"),Bo=Symbol("internalStoresUnsubscribers"),Ho=Symbol("internalStores");class Po extends Ko{constructor(){super(...arguments),this[Fo]=new Map,this[Do]=new Map,this[Ao]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ho].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ho].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ho].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:zo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Ho].delete(o)}setupStore(t,o){this[Ho].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ho].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Bo].has(t.store):this[Bo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Bo].set(t,o.subscribe((()=>this.updateFromStores()))),zo(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Mo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Bo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Mo].forEach((t=>t())),this[Mo]=[]}unsubscribeFromStore(t){this[Bo].has(t)&&this[Bo].get(t)(),this[Bo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var _o,
|
|
115
|
+
`;const Mo=Symbol("internalReduxEventsUnsubscribers"),Bo=Symbol("internalStoresUnsubscribers"),Ho=Symbol("internalStores");class Po extends Ko{constructor(){super(...arguments),this[Fo]=new Map,this[Do]=new Map,this[Ao]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ho].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ho].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ho].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:zo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Ho].delete(o)}setupStore(t,o){this[Ho].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ho].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Bo].has(t.store):this[Bo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Bo].set(t,o.subscribe((()=>this.updateFromStores()))),zo(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Mo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Bo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Mo].forEach((t=>t())),this[Mo]=[]}unsubscribeFromStore(t){this[Bo].has(t)&&this[Bo].get(t)(),this[Bo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var _o,jo;Fo=Bo,Do=Ho,Ao=Mo,Po.reduxProperties=new Map,Po.reduxReactiveProperties=new Set,Po.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(jo=null===(_o=window.safari)||void 0===_o?void 0:_o.pushNotification)||void 0===jo||jo.toString());const To=xo.extend("--ft-typography-font-family","",Co.titleFont),Go=xo.extend("--ft-typography-font-family","",Co.contentFont),Yo={fontFamily:Go,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vo=xo.extend("--ft-typography-title-font-family","",To),Jo=xo.extend("--ft-typography-title-font-size","",Yo.fontSize,"20px"),Xo=xo.extend("--ft-typography-title-font-weight","",Yo.fontWeight,"normal"),qo=xo.extend("--ft-typography-title-letter-spacing","",Yo.letterSpacing,"0.15px"),Qo=xo.extend("--ft-typography-title-line-height","",Yo.lineHeight,"1.2"),te=xo.extend("--ft-typography-title-text-transform","",Yo.textTransform,"inherit"),oe=xo.extend("--ft-typography-title-dense-font-family","",To),ee=xo.extend("--ft-typography-title-dense-font-size","",Yo.fontSize,"14px"),re=xo.extend("--ft-typography-title-dense-font-weight","",Yo.fontWeight,"normal"),ie=xo.extend("--ft-typography-title-dense-letter-spacing","",Yo.letterSpacing,"0.105px"),ae=xo.extend("--ft-typography-title-dense-line-height","",Yo.lineHeight,"1.7"),ne=xo.extend("--ft-typography-title-dense-text-transform","",Yo.textTransform,"inherit"),le=xo.extend("--ft-typography-subtitle1-font-family","",Go),se=xo.extend("--ft-typography-subtitle1-font-size","",Yo.fontSize,"16px"),ce=xo.extend("--ft-typography-subtitle1-font-weight","",Yo.fontWeight,"600"),pe=xo.extend("--ft-typography-subtitle1-letter-spacing","",Yo.letterSpacing,"0.144px"),fe=xo.extend("--ft-typography-subtitle1-line-height","",Yo.lineHeight,"1.5"),he=xo.extend("--ft-typography-subtitle1-text-transform","",Yo.textTransform,"inherit"),de=xo.extend("--ft-typography-subtitle2-font-family","",Go),ye=xo.extend("--ft-typography-subtitle2-font-size","",Yo.fontSize,"14px"),ge=xo.extend("--ft-typography-subtitle2-font-weight","",Yo.fontWeight,"normal"),ue=xo.extend("--ft-typography-subtitle2-letter-spacing","",Yo.letterSpacing,"0.098px"),be=xo.extend("--ft-typography-subtitle2-line-height","",Yo.lineHeight,"1.7"),me=xo.extend("--ft-typography-subtitle2-text-transform","",Yo.textTransform,"inherit"),Oe={fontFamily:xo.extend("--ft-typography-body1-font-family","",Go),fontSize:xo.extend("--ft-typography-body1-font-size","",Yo.fontSize,"16px"),fontWeight:xo.extend("--ft-typography-body1-font-weight","",Yo.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body1-letter-spacing","",Yo.letterSpacing,"0.496px"),lineHeight:xo.extend("--ft-typography-body1-line-height","",Yo.lineHeight,"1.5"),textTransform:xo.extend("--ft-typography-body1-text-transform","",Yo.textTransform,"inherit")},xe=xo.extend("--ft-typography-body2-font-family","",Go),Ne=xo.extend("--ft-typography-body2-font-size","",Yo.fontSize,"14px"),Se=xo.extend("--ft-typography-body2-font-weight","",Yo.fontWeight,"normal"),ve=xo.extend("--ft-typography-body2-letter-spacing","",Yo.letterSpacing,"0.252px"),we=xo.extend("--ft-typography-body2-line-height","",Yo.lineHeight,"1.4"),Ce=xo.extend("--ft-typography-body2-text-transform","",Yo.textTransform,"inherit"),Ee={fontFamily:xo.extend("--ft-typography-caption-font-family","",Go),fontSize:xo.extend("--ft-typography-caption-font-size","",Yo.fontSize,"12px"),fontWeight:xo.extend("--ft-typography-caption-font-weight","",Yo.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-caption-letter-spacing","",Yo.letterSpacing,"0.396px"),lineHeight:xo.extend("--ft-typography-caption-line-height","",Yo.lineHeight,"1.33"),textTransform:xo.extend("--ft-typography-caption-text-transform","",Yo.textTransform,"inherit")},Ue=xo.extend("--ft-typography-breadcrumb-font-family","",Go),Re=xo.extend("--ft-typography-breadcrumb-font-size","",Yo.fontSize,"10px"),$e=xo.extend("--ft-typography-breadcrumb-font-weight","",Yo.fontWeight,"normal"),Ie=xo.extend("--ft-typography-breadcrumb-letter-spacing","",Yo.letterSpacing,"0.33px"),We=xo.extend("--ft-typography-breadcrumb-line-height","",Yo.lineHeight,"1.6"),ke=xo.extend("--ft-typography-breadcrumb-text-transform","",Yo.textTransform,"inherit"),Le=xo.extend("--ft-typography-overline-font-family","",Go),Ke=xo.extend("--ft-typography-overline-font-size","",Yo.fontSize,"10px"),Ze=xo.extend("--ft-typography-overline-font-weight","",Yo.fontWeight,"normal"),ze=xo.extend("--ft-typography-overline-letter-spacing","",Yo.letterSpacing,"1.5px"),Fe=xo.extend("--ft-typography-overline-line-height","",Yo.lineHeight,"1.6"),De=xo.extend("--ft-typography-overline-text-transform","",Yo.textTransform,"uppercase"),Ae=xo.extend("--ft-typography-button-font-family","",Go),Me=xo.extend("--ft-typography-button-font-size","",Yo.fontSize,"14px"),Be=xo.extend("--ft-typography-button-font-weight","",Yo.fontWeight,"600"),He=xo.extend("--ft-typography-button-letter-spacing","",Yo.letterSpacing,"1.246px"),Pe=xo.extend("--ft-typography-button-line-height","",Yo.lineHeight,"1.15"),_e=xo.extend("--ft-typography-button-text-transform","",Yo.textTransform,"uppercase"),je=mt`
|
|
116
116
|
.ft-typography--title {
|
|
117
117
|
font-family: ${Vo};
|
|
118
118
|
font-size: ${Jo};
|
|
@@ -121,7 +121,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
121
121
|
line-height: ${Qo};
|
|
122
122
|
text-transform: ${te};
|
|
123
123
|
}
|
|
124
|
-
`,
|
|
124
|
+
`,Te=mt`
|
|
125
125
|
.ft-typography--title-dense {
|
|
126
126
|
font-family: ${oe};
|
|
127
127
|
font-size: ${ee};
|
|
@@ -582,7 +582,7 @@ const vr=Symbol.for(""),wr=t=>{if(t?.r===vr)return t?._$litStatic$},Cr=t=>({_$li
|
|
|
582
582
|
</${Cr(this.element)}>
|
|
583
583
|
`:Ur`
|
|
584
584
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
585
|
-
`}}Ir.styles=[Te,
|
|
585
|
+
`}}Ir.styles=[je,Te,Ge,Ye,Ve,Je,Xe,qe,Qe,tr,or,...er],$r([C()],Ir.prototype,"element",void 0),$r([C()],Ir.prototype,"variant",void 0),I("ft-typography")(Ir);var Wr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class kr extends Ko{constructor(){super(...arguments),this.outlined=!1,this.disabled=!1,this.focused=!1}render(){const t={"ft-number-field":!0,"ft-number-field--filled":!this.outlined,"ft-number-field--outlined":this.outlined,"ft-number-field--disabled":this.disabled,"ft-number-field--has-value":null!=this.value,"ft-number-field--with-label":!!this.label};return to`
|
|
586
586
|
<div class="${mr(t)}">
|
|
587
587
|
<div class="ft-number-field--main-panel"
|
|
588
588
|
@focusout=${this.onMainPanelBlur}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-number-field",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.37",
|
|
4
4
|
"description": "A number field input component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.1.37",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "a2f1f35da13aa0735c3765b8149fc7564593a7ed"
|
|
26
26
|
}
|