dynamic-html-helpers 1.2.8 → 1.2.9

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
- var{IS:g,maybe:et,$Wrap:jo,isNothing:Co,xProxy:Lo,addSymbolicExtensions:Eo}=en({useSymbolicExtensions:!1});function en(e={}){let{useSymbolicExtensions:t}=e,{xProxy:n,addSymbolicExtensions:r}=tn(a,f,t),o=O(),[i]=[E()];return n.custom(),t&&r(),{IS:a,maybe:o,$Wrap:i,isNothing:x,xProxy:n,addSymbolicExtensions:r};function a(s,...m){let T=typeof s=="symbol"?Symbol.isSymbol:s;switch(!0){case!!o({trial:D=>"isTypes"in(m?.[0]??{})}):return c(s,m[0]);default:return m.length>1?p(T,...m):b(s,...m)}}function c(s,m){switch(!0){case"defaultValue"in m:return l(s,m);case"notTypes"in m:return u(s,m);default:return a(s,...[m.isTypes].flat())}}function f(s){return s?.[Symbol.proxy]??a(s)}function b(s,...m){let{noInput:T,noShouldbe:D,compareTo:A,inputCTOR:Z,isNaN:z,isInfinity:Kt,shouldBeFirstElementIsNothing:Xt}=d(s,...m);switch(m=m.length&&m[0],!0){case Xt:return String(s)===String(A);case(s?.[Symbol.proxy]&&D):return s[Symbol.proxy];case z:return D?"NaN":String(A)===String(s);case Kt:return D?"Infinity":String(A)===String(s);case T:return D?String(s):String(A)===String(s);case Z===Boolean:return m?Z===m:"Boolean";default:return y(s,m,D,S(s,Z))}}function d(s,...m){let T=m.length<1,D=s==null;return{noInput:D,noShouldbe:T,compareTo:!T&&m[0],inputCTOR:!D&&Object.getPrototypeOf(s)?.constructor,isNaN:Number.isNaN(s)||o({trial:A=>String(s)==="NaN"}),isInfinity:o({trial:A=>String(s)})==="Infinity",shouldBeFirstElementIsNothing:!T&&x(m[0])}}function S(s,m){switch(!0){case s===0:return Number;case s==="":return String;case!s:return{name:String(s)};default:return m}}function y(s,m,T,D){switch(!0){case(!T&&m===s||s?.[Symbol.proxy]&&m===Proxy):return!0;case String(m)==="NaN":return String(s)==="NaN";case(s?.[Symbol.toStringTag]&&a(m,String)):return String(m)===s[Symbol.toStringTag];default:return m?v(s,m,D):w(s,D)}}function w(s,m){return s?.[Symbol.toStringTag]&&`[object ${s?.[Symbol.toStringTag]}]`||m?.name||String(m)}function v(s,m,T){return o({trial:D=>s instanceof m})||m===T||m===Object.getPrototypeOf(T)||`${m?.name}`===T?.name}function p(s,...m){return m.some(T=>a(s,T))}function x(s,m=!1){let T=s==null;return T=m?T||a(s,1/0)||a(s,NaN):T,T}function O(){let s=m=>{};return function({trial:m,whenError:T=s}={}){try{return m()}catch(D){return T(D)}}}function E(){return function(s){return Object.freeze({get value(){return s},get[Symbol.type](){return f(s)},get type(){return f(s)},[Symbol.is](...m){return a(s,...m)},is(...m){return a(s,...m)}})}}function l(s,{defaultValue:m,isTypes:T=[void 0],notTypes:D}={}){return T=T?.constructor!==Array?[T]:T,D=D&&D?.constructor!==Array?[D]:[],D.length<1?a(s,...T)?s:m:u(s,{isTypes:T,notTypes:D})?s:m}function u(s,{isTypes:m=[void 0],notTypes:T=[void 0]}={}){return m=m?.constructor!==Array?[m]:m,T=T?.constructor!==Array?[T]:T,a(s,...m)&&!a(s,...T)}function h(){Object.getOwnPropertyDescriptors(Object.prototype)[Symbol.is]||(Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return f(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...s){return a(this,...s)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(s){return f(s)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(s,...m){return a(s,...m)},enumerable:!1,configurable:!1}}))}}function tn(e,t,n){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for("toa.isASymbol")),{xProxy:c(),addSymbolicExtensions:r};function r(){Symbol.is||(Symbol.is=Symbol.for("toa.is"),Symbol.type=Symbol.for("toa.type")),Object.getOwnPropertyDescriptors(Object.prototype)[Symbol.is]||(Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return t(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...f){return e(this,...f)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(f){return t(f)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(f,...b){return e(f,...b)},enumerable:!1,configurable:!1}}))}function o(f){let b=f.set;return f.set=(d,S,y)=>S===Symbol.proxy?d[S]=y:b(d,S,y),f}function i(f){return Object.getPrototypeOf(f)?.constructor?.name||"Object"}function a(f){return Proxy=new f(f,{construct(b,d){for(let y of d)y.set&&(y=o(y));let S=new b(...d);return S[Symbol.proxy]=`Proxy (${i(d[0])})`,S}}),Proxy}function c(){Symbol.proxy||(Symbol.proxy=Symbol.for("toa.proxy"));let f=Proxy;return{native(){Proxy=f},custom(){Proxy=a(f)}}}}var nn=an(),be=rn(),ee=on();function rn(){return{html:Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,color,cols,colspan,controls,controlslist,coords,crossorigin,datetime,decoding,default,dir,disabled,disablepictureinpicture,disableremoteplayback,download,draggable,enctype,enterkeyhint,face,for,headers,height,hidden,high,href,hreflang,id,inputmode,integrity,is,ismap,kind,label,lang,list,loading,loop,low,max,maxlength,media,method,min,minlength,multiple,muted,name,nonce,noshade,novalidate,nowrap,open,optimum,pattern,placeholder,playsinline,poster,preload,pubdate,radiogroup,readonly,rel,required,rev,reversed,role,rows,rowspan,spellcheck,scope,selected,shape,size,sizes,span,srclang,start,src,srcset,step,style,summary,tabindex,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")),svg:Object.freeze("accent-height,accumulate,additive,alignment-baseline,ascent,attributename,attributetype,azimuth,basefrequency,baseline-shift,begin,bias,by,class,clip,clippathunits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,cx,cy,d,dx,dy,diffuseconstant,direction,display,divisor,dur,edgemode,elevation,end,fill,fill-opacity,fill-rule,filter,filterunits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,fx,fy,g1,g2,glyph-name,glyphref,gradientunits,gradienttransform,height,href,id,image-rendering,in,in2,k,k1,k2,k3,k4,kerning,keypoints,keysplines,keytimes,lang,lengthadjust,letter-spacing,kernelmatrix,kernelunitlength,lighting-color,local,marker-end,marker-mid,marker-start,markerheight,markerunits,markerwidth,maskcontentunits,maskunits,max,mask,media,method,mode,min,name,numoctaves,offset,operator,opacity,order,orient,orientation,origin,overflow,paint-order,path,pathlength,patterncontentunits,patterntransform,patternunits,points,preservealpha,preserveaspectratio,primitiveunits,r,rx,ry,radius,refx,refy,repeatcount,repeatdur,restart,result,rotate,scale,seed,shape-rendering,specularconstant,specularexponent,spreadmethod,startoffset,stddeviation,stitchtiles,stop-color,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke,stroke-width,style,surfacescale,systemlanguage,tabindex,targetx,targety,transform,text-anchor,text-decoration,text-rendering,textlength,type,u1,u2,unicode,values,viewbox,visibility,version,vert-adv-y,vert-origin-x,vert-origin-y,width,word-spacing,wrap,writing-mode,xchannelselector,ychannelselector,x,x1,x2,xmlns,y,y1,y2,z,zoomandpan".split(","))}}function on(){return{a:!0,area:!0,audio:!1,br:!0,base:!0,body:!0,button:!0,canvas:!0,comment:!0,dl:!0,data:!0,datalist:!0,div:!0,em:!0,embed:!1,fieldset:!0,font:!0,footer:!0,form:!1,hr:!0,head:!0,header:!0,output:!0,iframe:!1,frameset:!1,img:!0,input:!0,li:!0,label:!0,legend:!0,link:!0,map:!0,mark:!0,menu:!0,media:!0,meta:!0,nav:!0,meter:!0,ol:!0,object:!1,optgroup:!0,option:!0,p:!0,param:!0,picture:!0,pre:!0,progress:!1,quote:!0,script:!1,select:!0,source:!0,span:!0,style:!0,caption:!0,td:!0,col:!0,table:!0,tr:!0,template:!1,textarea:!0,time:!0,title:!0,track:!0,details:!0,ul:!0,video:!0,del:!0,ins:!0,slot:!0,blockquote:!0,svg:!0,dialog:!0,summary:!0,main:!0,address:!0,colgroup:!0,tbody:!0,tfoot:!0,thead:!0,th:!0,dd:!0,dt:!0,figcaption:!0,figure:!0,i:!0,b:!0,code:!0,h1:!0,h2:!0,h3:!0,h4:!0,abbr:!0,bdo:!0,dfn:!0,kbd:!0,q:!0,rb:!0,rp:!0,rt:!0,ruby:!0,s:!0,strike:!0,samp:!0,small:!0,strong:!0,sup:!0,sub:!0,u:!0,var:!0,wbr:!0,nobr:!0,tt:!0,noscript:!0}}function an(){return["::backdrop{background-color:grey;opacity:0.2;}",`#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`,"@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}","@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}","@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}","@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"]}var Je={html:"innerHTML",text:"textContent",class:"className"},ln=sn();function sn(){let e={get(t,n){let r=String(n)?.toLowerCase();switch(!0){case r in t:return t[r];case hn(r):return We(t,r,n);default:return We(t,r,n,!0)}},enumerable:!1,configurable:!1};return new Proxy({},e)}function We(e,t,n,r=!1){return Object.defineProperty(e,t,{get(){return r?o=>pn(n):bn(t)}}),e[t]}function un(e,t,n){return t=t?.isJQx&&t.first()||t,et({trial:r=>yn(t)?e.append(t):nt(t)?e.insertAdjacentHTML("beforeend",t):e.append(t),whenError:r=>console.info(`${n} (for root ${e}) not created, reason
1
+ var{IS:g,maybe:et,$Wrap:jo,isNothing:Co,xProxy:Lo,addSymbolicExtensions:Eo}=en({useSymbolicExtensions:!1});function en(e={}){let{useSymbolicExtensions:t}=e,{xProxy:n,addSymbolicExtensions:r}=tn(a,f,t),o=O(),[i]=[E()];return n.custom(),t&&r(),{IS:a,maybe:o,$Wrap:i,isNothing:x,xProxy:n,addSymbolicExtensions:r};function a(s,...m){let T=typeof s=="symbol"?Symbol.isSymbol:s;switch(!0){case!!o({trial:D=>"isTypes"in(m?.[0]??{})}):return c(s,m[0]);default:return m.length>1?p(T,...m):b(s,...m)}}function c(s,m){switch(!0){case"defaultValue"in m:return l(s,m);case"notTypes"in m:return u(s,m);default:return a(s,...[m.isTypes].flat())}}function f(s){return s?.[Symbol.proxy]??a(s)}function b(s,...m){let{noInput:T,noShouldbe:D,compareTo:A,inputCTOR:Z,isNaN:z,isInfinity:Kt,shouldBeFirstElementIsNothing:Xt}=d(s,...m);switch(m=m.length&&m[0],!0){case Xt:return String(s)===String(A);case(s?.[Symbol.proxy]&&D):return s[Symbol.proxy];case z:return D?"NaN":String(A)===String(s);case Kt:return D?"Infinity":String(A)===String(s);case T:return D?String(s):String(A)===String(s);case Z===Boolean:return m?Z===m:"Boolean";default:return y(s,m,D,S(s,Z))}}function d(s,...m){let T=m.length<1,D=s==null;return{noInput:D,noShouldbe:T,compareTo:!T&&m[0],inputCTOR:!D&&Object.getPrototypeOf(s)?.constructor,isNaN:Number.isNaN(s)||o({trial:A=>String(s)==="NaN"}),isInfinity:o({trial:A=>String(s)})==="Infinity",shouldBeFirstElementIsNothing:!T&&x(m[0])}}function S(s,m){switch(!0){case s===0:return Number;case s==="":return String;case!s:return{name:String(s)};default:return m}}function y(s,m,T,D){switch(!0){case(!T&&m===s||s?.[Symbol.proxy]&&m===Proxy):return!0;case String(m)==="NaN":return String(s)==="NaN";case(s?.[Symbol.toStringTag]&&typeof m=="string"):return String(m)===s[Symbol.toStringTag];default:return m?v(s,m,D):w(s,D)}}function w(s,m){return(s?.[Symbol.toStringTag]??s?.prototype?.[Symbol.toStringTag])||m?.name||String(m)}function v(s,m,T){return o({trial:D=>s instanceof m})||m===T||m===Object.getPrototypeOf(T)||`${m?.name}`===T?.name}function p(s,...m){return m.some(T=>a(s,T))}function x(s,m=!1){let T=s==null;return T=m?T||a(s,1/0)||a(s,NaN):T,T}function O(){let s=m=>{};return function({trial:m,whenError:T=s}={}){try{return m()}catch(D){return T(D)}}}function E(){return function(s){return Object.freeze({get value(){return s},get[Symbol.type](){return f(s)},get type(){return f(s)},[Symbol.is](...m){return a(s,...m)},is(...m){return a(s,...m)}})}}function l(s,{defaultValue:m,isTypes:T=[void 0],notTypes:D}={}){return T=T?.constructor!==Array?[T]:T,D=D&&D?.constructor!==Array?[D]:[],D.length<1?a(s,...T)?s:m:u(s,{isTypes:T,notTypes:D})?s:m}function u(s,{isTypes:m=[void 0],notTypes:T=[void 0]}={}){return m=m?.constructor!==Array?[m]:m,T=T?.constructor!==Array?[T]:T,a(s,...m)&&!a(s,...T)}function h(){Object.getOwnPropertyDescriptors(Object.prototype)[Symbol.is]||(Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return f(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...s){return a(this,...s)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(s){return f(s)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(s,...m){return a(s,...m)},enumerable:!1,configurable:!1}}))}}function tn(e,t,n){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for("toa.isASymbol")),{xProxy:c(),addSymbolicExtensions:r};function r(){Symbol.is||(Symbol.is=Symbol.for("toa.is"),Symbol.type=Symbol.for("toa.type")),Object.getOwnPropertyDescriptors(Object.prototype)[Symbol.is]||(Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return t(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...f){return e(this,...f)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(f){return t(f)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(f,...b){return e(f,...b)},enumerable:!1,configurable:!1}}))}function o(f){let b=f.set;return f.set=(d,S,y)=>S===Symbol.proxy?d[S]=y:b(d,S,y),f}function i(f){return Object.getPrototypeOf(f)?.constructor?.name||"Object"}function a(f){return Proxy=new f(f,{construct(b,d){for(let y of d)y.set&&(y=o(y));let S=new b(...d);return S[Symbol.proxy]=`Proxy (${i(d[0])})`,S}}),Proxy}function c(){Symbol.proxy||(Symbol.proxy=Symbol.for("toa.proxy"));let f=Proxy;return{native(){Proxy=f},custom(){Proxy=a(f)}}}}var nn=an(),be=rn(),ee=on();function rn(){return{html:Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,color,cols,colspan,controls,controlslist,coords,crossorigin,datetime,decoding,default,dir,disabled,disablepictureinpicture,disableremoteplayback,download,draggable,enctype,enterkeyhint,face,for,headers,height,hidden,high,href,hreflang,id,inputmode,integrity,is,ismap,kind,label,lang,list,loading,loop,low,max,maxlength,media,method,min,minlength,multiple,muted,name,nonce,noshade,novalidate,nowrap,open,optimum,pattern,placeholder,playsinline,poster,preload,pubdate,radiogroup,readonly,rel,required,rev,reversed,role,rows,rowspan,spellcheck,scope,selected,shape,size,sizes,span,srclang,start,src,srcset,step,style,summary,tabindex,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")),svg:Object.freeze("accent-height,accumulate,additive,alignment-baseline,ascent,attributename,attributetype,azimuth,basefrequency,baseline-shift,begin,bias,by,class,clip,clippathunits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,cx,cy,d,dx,dy,diffuseconstant,direction,display,divisor,dur,edgemode,elevation,end,fill,fill-opacity,fill-rule,filter,filterunits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,fx,fy,g1,g2,glyph-name,glyphref,gradientunits,gradienttransform,height,href,id,image-rendering,in,in2,k,k1,k2,k3,k4,kerning,keypoints,keysplines,keytimes,lang,lengthadjust,letter-spacing,kernelmatrix,kernelunitlength,lighting-color,local,marker-end,marker-mid,marker-start,markerheight,markerunits,markerwidth,maskcontentunits,maskunits,max,mask,media,method,mode,min,name,numoctaves,offset,operator,opacity,order,orient,orientation,origin,overflow,paint-order,path,pathlength,patterncontentunits,patterntransform,patternunits,points,preservealpha,preserveaspectratio,primitiveunits,r,rx,ry,radius,refx,refy,repeatcount,repeatdur,restart,result,rotate,scale,seed,shape-rendering,specularconstant,specularexponent,spreadmethod,startoffset,stddeviation,stitchtiles,stop-color,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke,stroke-width,style,surfacescale,systemlanguage,tabindex,targetx,targety,transform,text-anchor,text-decoration,text-rendering,textlength,type,u1,u2,unicode,values,viewbox,visibility,version,vert-adv-y,vert-origin-x,vert-origin-y,width,word-spacing,wrap,writing-mode,xchannelselector,ychannelselector,x,x1,x2,xmlns,y,y1,y2,z,zoomandpan".split(","))}}function on(){return{a:!0,area:!0,audio:!1,br:!0,base:!0,body:!0,button:!0,canvas:!0,comment:!0,dl:!0,data:!0,datalist:!0,div:!0,em:!0,embed:!1,fieldset:!0,font:!0,footer:!0,form:!1,hr:!0,head:!0,header:!0,output:!0,iframe:!1,frameset:!1,img:!0,input:!0,li:!0,label:!0,legend:!0,link:!0,map:!0,mark:!0,menu:!0,media:!0,meta:!0,nav:!0,meter:!0,ol:!0,object:!1,optgroup:!0,option:!0,p:!0,param:!0,picture:!0,pre:!0,progress:!1,quote:!0,script:!1,select:!0,source:!0,span:!0,style:!0,caption:!0,td:!0,col:!0,table:!0,tr:!0,template:!1,textarea:!0,time:!0,title:!0,track:!0,details:!0,ul:!0,video:!0,del:!0,ins:!0,slot:!0,blockquote:!0,svg:!0,dialog:!0,summary:!0,main:!0,address:!0,colgroup:!0,tbody:!0,tfoot:!0,thead:!0,th:!0,dd:!0,dt:!0,figcaption:!0,figure:!0,i:!0,b:!0,code:!0,h1:!0,h2:!0,h3:!0,h4:!0,abbr:!0,bdo:!0,dfn:!0,kbd:!0,q:!0,rb:!0,rp:!0,rt:!0,ruby:!0,s:!0,strike:!0,samp:!0,small:!0,strong:!0,sup:!0,sub:!0,u:!0,var:!0,wbr:!0,nobr:!0,tt:!0,noscript:!0}}function an(){return["::backdrop{background-color:grey;opacity:0.2;}",`#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`,"@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}","@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}","@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}","@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"]}var Je={html:"innerHTML",text:"textContent",class:"className"},ln=sn();function sn(){let e={get(t,n){let r=String(n)?.toLowerCase();switch(!0){case r in t:return t[r];case hn(r):return We(t,r,n);default:return We(t,r,n,!0)}},enumerable:!1,configurable:!1};return new Proxy({},e)}function We(e,t,n,r=!1){return Object.defineProperty(e,t,{get(){return r?o=>pn(n):bn(t)}}),e[t]}function un(e,t,n){return t=t?.isJQx&&t.first()||t,et({trial:r=>yn(t)?e.append(t):nt(t)?e.insertAdjacentHTML("beforeend",t):e.append(t),whenError:r=>console.info(`${n} (for root ${e}) not created, reason
2
2
  `,r)})}function cn(e,t,...n){let r=fn(t,e);return n?.forEach(o=>un(r,o,e)),r}function fn(e,t){switch(e=Ne(t)?gn(e):e?.isJQx?e.first():e,!0){case g(e,String):return G(t,nt(e,t)?{html:e}:{text:e});case g(e,Node):return dn(t,e);default:return G(t,e)}}function mn(e){return delete e.data,Object.keys(e).length<1||Object.keys(e).forEach(t=>{let n=t.toLowerCase();n in Je&&(e[Je[n]]=e[t],delete e[t])}),e}function dn(e,t){let n=G(e);return n.append(t),n}function G(e,t={}){t=tt(t,{});let n=Object.entries(t.data??{}),r=Object.assign(Ne(e)?new Comment(t?.text):document.createElement(e),mn(t));return n.length&&n.forEach(([o,i])=>r.dataset[o]=String(i)),r}function tt(e,t){return t?g(e,{isTypes:Object,notTypes:[Array,null,NaN,Proxy],defaultValue:t}):g(e,{isTypes:Object,notTypes:[Array,null,NaN,Proxy]})}function gn(e){return tt(e)?e?.text??e?.textContent??"":String(e)}function pn(e){return G("b",{style:"color:red",text:`'${e}' is not a valid HTML-tag`})}function nt(e,t){return!Ne(t)&&g(e,String)&&/<.*>|&[#|0-9a-z]+[^;];/i.test(e)}function yn(e){return e?.constructor===Comment||e?.constructor===CharacterData}function Ne(e){return e?.constructor===Comment||/comment/i.test(e)}function hn(e){return!g(G(e),HTMLUnknownElement)}function bn(e){return(t,...n)=>cn(e,t,...n)}var{IS:oe,maybe:Io,$Wrap:Ao,xProxy:ko,isNothing:Mo}=Sn();function Sn(){Symbol.proxy=Symbol.for("toa.proxy"),Symbol.is=Symbol.for("toa.is"),Symbol.type=Symbol.for("toa.type"),Symbol.isSymbol=Symbol.for("toa.isASymbol"),p();let e=S(),[t,n]=[y(),E()];return n.custom(),{IS:r,maybe:e,$Wrap:t,isNothing:d,xProxy:n};function r(l,...u){if(e({trial:s=>"isTypes"in(u?.[0]??{})})){let s=u[0];return"defaultValue"in s?w(l,s):"notTypes"in s?v(l,s):r(l,...[s.isTypes].flat())}let h=typeof l=="symbol"?Symbol.isSymbol:l;return u.length>1?b(h,...u):i(l,...u)}function o(l){return l?.[Symbol.proxy]??r(l)}function i(l,...u){let{noInput:h,noShouldbe:s,compareTo:m,inputCTOR:T,isNaN:D,isInfinity:A,shouldBeFirstElementIsNothing:Z}=c(l,...u);switch(u=u.length&&u[0],!0){case Z:return String(l)===String(m);case(l?.[Symbol.proxy]&&s):return l[Symbol.proxy];case D:return s?"NaN":e({trial:z=>String(m)})===String(l);case A:return s?"Infinity":e({trial:z=>String(m)})===String(l);case h:return s?String(l):String(m)===String(l);case T===Boolean:return u?T===u:"Boolean";default:return f(l,u,s,a(l,T))}}function a(l,u){return l===0?Number:l===""?String:l?u:{name:String(l)}}function c(l,...u){let h=u.length<1,s=!h&&u[0],m=!h&&d(u[0]),T=l==null,D=!T&&Object.getPrototypeOf(l)?.constructor,A=e({trial:z=>String(l)})==="NaN",Z=e({trial:z=>String(l)})==="Infinity";return{noInput:T,noShouldbe:h,compareTo:s,inputCTOR:D,isNaN:A,isInfinity:Z,shouldBeFirstElementIsNothing:m}}function f(l,u,h,s){switch(!0){case(!h&&u===l||l?.[Symbol.proxy]&&u===Proxy):return!0;case e({trial:m=>String(u)})==="NaN":return String(l)==="NaN";case(l?.[Symbol.toStringTag]&&r(u,String)):return String(u)===l[Symbol.toStringTag];default:return u?e({trial:m=>l instanceof u})||u===s||u===Object.getPrototypeOf(s)||`${u?.name}`===s?.name:l?.[Symbol.toStringTag]&&`[object ${l?.[Symbol.toStringTag]}]`||s?.name||String(s)}}function b(l,...u){return u.some(h=>r(l,h))}function d(l,u=!1){let h=l==null;return h=u?h||r(l,1/0)||r(l,NaN):h,h}function S(){let l=(u,h)=>u?.constructor===Function?u(h):void 0;return function({trial:u,whenError:h=()=>{}}={}){try{return l(u)}catch(s){return l(h,s)}}}function y(){return function(l){return Object.freeze({get value(){return l},get[Symbol.type](){return o(l)},get type(){return o(l)},[Symbol.is](...u){return r(l,...u)},is(...u){return r(l,...u)}})}}function w(l,{defaultValue:u,isTypes:h=[void 0],notTypes:s}={}){return h=h?.constructor!==Array?[h]:h,s=s&&s?.constructor!==Array?[s]:[],s.length<1?r(l,...h)?l:u:v(l,{isTypes:h,notTypes:s})?l:u}function v(l,{isTypes:u=[void 0],notTypes:h=[void 0]}={}){return u=u?.constructor!==Array?[u]:u,h=h?.constructor!==Array?[h]:h,r(l,...u)&&!r(l,...h)}function p(){Object.getOwnPropertyDescriptors(Object.prototype)[Symbol.is]||(Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return o(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...l){return r(this,...l)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(l){return o(l)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(l,...u){return r(l,...u)},enumerable:!1,configurable:!1}}))}function x(l){let u=String(Object.getPrototypeOf(l)?.constructor);return u.slice(u.indexOf("ion")+3,u.indexOf("(")).trim()}function O(l){let u=l.set;return l.set=(h,s,m)=>s===Symbol.proxy?h[s]=m:u(h,s,m),l}function E(){let l=Proxy;return{native(){Proxy=l},custom(){Proxy=new l(l,{construct(u,h){for(let m of h)m.set&&(m=O(m));let s=new u(...h);return s[Symbol.proxy]=`Proxy (${x(h[0])})`,s}})}}}}var rt=xn;function xn({styleSheet:e,createWithId:t}={}){let{tryParseAtOrNestedRules:n,ruleExists:r,checkParams:o,sheet:i,removeRules:a,consider:c,currentSheetID:f}=vn({styleSheet:e,createWithId:t});function b(v,p){if(v&&p.removeProperties){Object.keys(p.removeProperties).forEach(x=>v.style.removeProperty(Qe(x)));return}Object.entries(p).forEach(([x,O])=>{x=Qe(x.trim()),O=O.trim();let E;if(/!important/.test(O)&&(O=O.slice(0,O.indexOf("!important")).trim(),E="important"),!CSS.supports(x,O))return console.error(`StylingFactory ${f} error: '${x}' with value '${O}' not supported (yet)`);Ue(()=>v.style.setProperty(x,O,E),`StylingFactory ${f} (setRule4Selector) failed`)})}function d(v,p,x=i){if(v=v?.trim?.(),!oe(v,String)||!v.length||/[;,]$/g.test(v))return console.error(`StylingFactory ${f} (setRules): [${v||"[no selector given]"}] is not a valid selector`);if(p.removeRule)return a(v);let O=r(v,!0),E=O||x.cssRules[x.insertRule(`${v} {}`,x.cssRules.length||0)];return c(()=>b(E,p),v,O)}function S(v){let p=v.trim().split(/{/,2),x=p.shift().trim();if(!oe(x,String)||!x?.trim()?.length)return console.error(`StylingFactory ${f} (doParse): no (valid) selector could be extracted from rule ${Se(v)}`);let O=jn(p.shift());return Ue(()=>d(x,O),`StylingFactory ${f} (setRules) failed`)}function y(v){let p=n(v);return p.done?p.existing:S(v)}function w(v,p){return v.trim().startsWith("@media")?y(wn(v,p)):d(v,p)}return function(v,p={}){return o(v,p)&&(Object.keys(p).length?w(v,p):y(v))}}function vn({styleSheet:e,createWithId:t}){let n="Note: The rule or some of its properties may not be supported by your browser (yet)",r=`for style#${t}`;e=t?o(t):e;function o(y){let w=document.querySelector(`#${y}`)?.sheet;if(w)return w;let v=Object.assign(document.createElement("style"),{id:y});return document.head.insertAdjacentElement("beforeend",v),v.sheet}function i(y){return console.error(`StylingFactory ${r} [rule: ${y}]
3
3
  => @charset, @namespace and @import are not supported here`),{done:!0}}function a(y,w){return[...e.rules].find(v=>w?qe(v.selectorText||"",y):On`${Tn(y)}${[..."gim"]}`.test(v.cssText))}function c(y){return/^@charset|@import|namespace/i.test(y.trim())?i(y):y.match(/}/g)?.length>1?{existing:d(y,1),done:!0}:{done:!1}}function f(y){let w=[...e.cssRules].reduce((p,x,O)=>qe(x.selectorText||"",y)&&p.concat(O)||p,[]),v=w.length;return w.forEach(p=>e.deleteRule(p)),v>0?console.info(`\u2714 Removed ${v} instance${v>1?"s":""} of selector ${y} from ${r.slice(4)}`):console.info(`\u2714 Remove rule: selector ${y} does not exist in ${r.slice(4)}`)}function b(y,w){return y&&oe(y,String)&&y.trim().length>0&&oe(w,Object)||(console.error(`StylingFactory ${r} called with invalid parameters`),!1)}function d(y){y=y.trim();let w=y.slice(0,y.indexOf("{")).trim(),v=!!a(w);try{return e.insertRule(`${y}`,e.cssRules.length),v}catch(p){return console.error(`StylingFactory ${r} (tryParse) ${p.name} Error:
4
4
  ${p.message}
@@ -97,14 +97,14 @@ var HTMLHelpers = (() => {
97
97
  return true;
98
98
  case String(d) === "NaN":
99
99
  return String(l) === "NaN";
100
- case (l?.[Symbol.toStringTag] && a(d, String)):
100
+ case (l?.[Symbol.toStringTag] && typeof d == "string"):
101
101
  return String(d) === l[Symbol.toStringTag];
102
102
  default:
103
103
  return d ? p(l, d, L2) : S(l, L2);
104
104
  }
105
105
  }
106
106
  function S(l, d) {
107
- return l?.[Symbol.toStringTag] && `[object ${l?.[Symbol.toStringTag]}]` || d?.name || String(d);
107
+ return (l?.[Symbol.toStringTag] ?? l?.prototype?.[Symbol.toStringTag]) || d?.name || String(d);
108
108
  }
109
109
  function p(l, d, v2) {
110
110
  return o({ trial: (L2) => l instanceof d }) || d === v2 || d === Object.getPrototypeOf(v2) || `${d?.name}` === v2?.name;
@@ -412,9 +412,9 @@ var HTMLHelpers = (() => {
412
412
  } };
413
413
  }
414
414
  }
415
- var _ = $t;
416
- function $t({ styleSheet: t, createWithId: e } = {}) {
417
- let { tryParseAtOrNestedRules: r, ruleExists: n, checkParams: o, sheet: i, removeRules: a, consider: w2, currentSheetID: f2 } = Ft({ styleSheet: t, createWithId: e });
415
+ var _ = Ft;
416
+ function Ft({ styleSheet: t, createWithId: e } = {}) {
417
+ let { tryParseAtOrNestedRules: r, ruleExists: n, checkParams: o, sheet: i, removeRules: a, consider: w2, currentSheetID: f2 } = $t({ styleSheet: t, createWithId: e });
418
418
  function E2(p, m2) {
419
419
  if (p && m2.removeProperties) {
420
420
  Object.keys(m2.removeProperties).forEach((b2) => p.style.removeProperty(ke(b2)));
@@ -450,7 +450,7 @@ var HTMLHelpers = (() => {
450
450
  return o(p, m2) && (Object.keys(m2).length ? S(p, m2) : g2(p));
451
451
  };
452
452
  }
453
- function Ft({ styleSheet: t, createWithId: e }) {
453
+ function $t({ styleSheet: t, createWithId: e }) {
454
454
  let r = "Note: The rule or some of its properties may not be supported by your browser (yet)", n = `for style#${e}`;
455
455
  t = e ? o(e) : t;
456
456
  function o(g2) {
@@ -755,7 +755,7 @@ ${r}`), p;
755
755
  function Ee(t) {
756
756
  return A(t) && !/^handler|handlers$/gi.test(t.trim()) ? t.trim() : Ve();
757
757
  }
758
- function $e(t) {
758
+ function Fe(t) {
759
759
  let e = !!t.node && !s(t, Text, Comment);
760
760
  switch (true) {
761
761
  case e:
@@ -843,7 +843,7 @@ ${r}`), p;
843
843
  function ue() {
844
844
  return ((t) => `[${ae(t.getHours())}:${ae(t.getMinutes())}:${ae(t.getSeconds())}.${ae(t.getMilliseconds(), 3)}]`)(/* @__PURE__ */ new Date());
845
845
  }
846
- function Fe(t, e) {
846
+ function $e(t, e) {
847
847
  if (t) for (let [r, n] of Object.entries(e)) {
848
848
  if (r = M(r), r.startsWith("data")) return de(t, n);
849
849
  s(n, String) && ce(r) && t.setAttribute(r, n.split(/[, ]/)?.join(" "));
@@ -1103,7 +1103,7 @@ ${r}`), p;
1103
1103
  default:
1104
1104
  r = { [r]: n };
1105
1105
  }
1106
- return s(r, Object) && !e.is.empty && Fe(e.node, r), e;
1106
+ return s(r, Object) && !e.is.empty && $e(e.node, r), e;
1107
1107
  }, before: pe, beforeMe: pe, clear(e) {
1108
1108
  return T(e, fe);
1109
1109
  }, closest(e, r) {
@@ -1366,7 +1366,7 @@ ${r}`), p;
1366
1366
  function ir(t, e, r, n) {
1367
1367
  return t = M(n || t.toLowerCase()), { get() {
1368
1368
  return (...o) => {
1369
- let i = e && r.virtual(Q(ee[t](...o))) || void 0, w2 = !s(i?.node, Comment, Text, void 0) ? $e(i) : "";
1369
+ let i = e && r.virtual(Q(ee[t](...o))) || void 0, w2 = !s(i?.node, Comment, Text, void 0) ? Fe(i) : "";
1370
1370
  return F.log(e ? `JQx: created (virtual) instance from [JQx].${t} ${w2}` : `JQx: ${t.toUpperCase()} is prohibited. Use [JQx].allowTag if necessary.`), i;
1371
1371
  };
1372
1372
  }, enumerable: false, configurable: true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-html-helpers",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Helpers for ES/JS/HTML projects",
5
5
  "keywords": [
6
6
  "es20xx",