aptechka 0.4.7 → 0.4.8

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.
Files changed (38) hide show
  1. package/lib/canvas/index.cjs +1 -1
  2. package/lib/canvas/index.js +2 -2
  3. package/lib/checkbox/index.cjs +1 -1
  4. package/lib/checkbox/index.js +2 -2
  5. package/lib/{createStylesheet-DrkbCUJk.js → createStylesheet-BdXmIliB.js} +1 -1
  6. package/lib/{createStylesheet-u1ZQ2BI5.cjs → createStylesheet-DXVWlg2K.cjs} +1 -1
  7. package/lib/element-constructor/index.cjs +1 -1
  8. package/lib/element-constructor/index.js +2 -2
  9. package/lib/en3/index.cjs +2 -2
  10. package/lib/en3/index.js +3 -1
  11. package/lib/index-B7uhBNcF.cjs +9 -0
  12. package/lib/{index-BigQay-N.js → index-CSoExCvs.js} +68 -68
  13. package/lib/modal/index.cjs +1 -1
  14. package/lib/modal/index.js +2 -2
  15. package/lib/order/index.cjs +1 -1
  16. package/lib/order/index.d.ts +2 -1
  17. package/lib/order/index.js +2 -2
  18. package/lib/popover/index.cjs +1 -1
  19. package/lib/popover/index.js +2 -2
  20. package/lib/scroll/ScrollElement.d.ts +2 -2
  21. package/lib/scroll/ScrollSegmentElement.d.ts +68 -0
  22. package/lib/scroll/index.cjs +1 -1
  23. package/lib/scroll/index.d.ts +2 -1
  24. package/lib/scroll/index.js +702 -339
  25. package/lib/scroll-entries/index.cjs +1 -1
  26. package/lib/scroll-entries/index.d.ts +2 -2
  27. package/lib/scroll-entries/index.js +27 -36
  28. package/lib/select/index.cjs +1 -1
  29. package/lib/select/index.js +1 -1
  30. package/lib/tags-B5dMXiBy.cjs +1 -0
  31. package/lib/{tags-CAxO5Rs3.js → tags-pG4smcDE.js} +38 -36
  32. package/lib/theme/index.cjs +1 -1
  33. package/lib/theme/index.js +1 -1
  34. package/lib/tweaker/index.cjs +1 -1
  35. package/lib/tweaker/index.js +3 -3
  36. package/package.json +8 -10
  37. package/lib/index-DTrWxWOM.cjs +0 -9
  38. package/lib/tags-Dz_Yisj_.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var Te=Object.defineProperty,Le=Object.defineProperties;var qe=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var he=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))xe.call(t,r)&&he(e,r,t[r]);if(de)for(var r of de(t))Ae.call(t,r)&&he(e,r,t[r]);return e},me=(e,t)=>Le(e,qe(t));var O=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var o=(e,t,r)=>(O(e,t,"read from private field"),r?r.call(e):t.get(e)),a=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},g=(e,t,r,i)=>(O(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var c=(e,t,r)=>(O(e,t,"access private method"),r);const y=require("./Store-C-1ruEIm.cjs"),Me=require("./browser-CpzFX2xg.cjs"),we=require("./object-BZELAoVj.cjs"),j=require("./string-vBu90jhV.cjs"),De=require("./connector/index.cjs"),Fe=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var u,b,l,N,h,m,R,pe,$,be,B,ge,k,ee,T,te,G,ye,V,Ee,W,Se,z,Ce,L,ne,q,re,I,ve,x,ie,A,oe,J,Ne,M,se,v,P,D,ue,F,ce,H,ae,K,U;const Y=class Y{constructor(...t){a(this,R);a(this,$);a(this,B);a(this,k);a(this,T);a(this,G);a(this,V);a(this,W);a(this,z);a(this,L);a(this,q);a(this,I);a(this,x);a(this,A);a(this,J);a(this,M);a(this,v);a(this,D);a(this,F);a(this,H);a(this,u,void 0);a(this,b,new Set);a(this,l,new Set);a(this,N,void 0);a(this,h,void 0);a(this,m,void 0);a(this,K,()=>{o(this,b).forEach(t=>{t()}),o(this,b).clear()});a(this,U,t=>{o(this,l).forEach(r=>{r(t)}),o(this,l).clear(),c(this,A,oe).call(this)});const r=t[0],i=t[1];g(this,u,c(this,R,pe).call(this,r,i==null?void 0:i.forceSvg)),c(this,B,ge).call(this,i)}get node(){return o(this,u)}set node(t){var r;c(this,A,oe).call(this),g(this,u,t),(r=o(this,N))==null||r.call(this),o(this,u)instanceof Element&&g(this,h,[...o(this,u).querySelectorAll("store-root")]),c(this,x,ie).call(this),c(this,k,ee).call(this)}};u=new WeakMap,b=new WeakMap,l=new WeakMap,N=new WeakMap,h=new WeakMap,m=new WeakMap,R=new WeakSet,pe=function(t,r){let i=null;if(t instanceof Node)i=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))i=new(customElements.get(t));else if(t.includes("<")){const s=document.createElement("div");s.innerHTML=t,i=s.firstElementChild}else Fe.has(t)||r?i=document.createElementNS("http://www.w3.org/2000/svg",t):i=document.createElement(t);else i=document.createElement("div");return i},$=new WeakSet,be=function(t){return t instanceof HTMLElement||t instanceof SVGElement},B=new WeakSet,ge=function(t){if(!t)return;const r=c(this,$,be).call(this,o(this,u)),i=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,b).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,l).add(t.onDisconnect),delete t.onDisconnect);let s,f;for(const d in t){const w=t[d];d==="class"&&r?c(this,T,te).call(this,w):d==="style"&&r?c(this,W,Se).call(this,w):d==="lightChildren"?c(this,v,P).call(this,o(this,u),w):d==="children"?c(this,v,P).call(this,o(this,u)instanceof Element?o(this,u).shadowRoot||o(this,u):o(this,u),w):d.startsWith("on")?(f||(f={}),f[d]=w):(s||(s={}),s[d]=w)}c(this,J,Ne).call(this,s),c(this,I,ve).call(this,f),i&&(typeof i=="function"?i(o(this,u)):i.current=o(this,u)),c(this,k,ee).call(this)},k=new WeakSet,ee=function(){if(Me.isBrowser&&(o(this,l).size||o(this,b).size)){const t=o(this,u)instanceof DocumentFragment?o(this,u).firstChild:o(this,u);g(this,N,De.connector.subscribe(t,{connectCallback:o(this,K),disconnectCallback:o(this,U),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,te=function(t){if(t){if(typeof t=="string")o(this,u).classList.add(t);else if(Array.isArray(t))t.forEach(r=>{c(this,T,te).call(this,r)});else if(typeof t=="object")if(t instanceof y.Store)c(this,G,ye).call(this,t);else for(const r in t){const i=t[r];i instanceof y.Store?c(this,V,Ee).call(this,r,i):i?o(this,u).classList.add(r):o(this,u).classList.remove(r)}}else return},G=new WeakSet,ye=function(t){o(this,l).add(t.subscribe(({current:r,previous:i})=>{i&&[i].flat().forEach(s=>{s&&o(this,u).classList.remove(s)}),r&&[r].flat().forEach(s=>{s&&o(this,u).classList.add(s)})}))},V=new WeakSet,Ee=function(t,r){o(this,l).add(r.subscribe(({current:i})=>{i?o(this,u).classList.add(t):o(this,u).classList.remove(t)}))},W=new WeakSet,Se=function(t){if(!t)return;o(this,u).tagName==="style"||o(this,u).tagName==="STYLE"?c(this,L,ne).call(this,t):c(this,z,Ce).call(this,t)},z=new WeakSet,Ce=function(t){for(const r in t){const i=r,s=t[i];s instanceof y.Store?o(this,l).add(s.subscribe(({current:f})=>{c(this,q,re).call(this,i,f)})):c(this,q,re).call(this,i,s)}},L=new WeakSet,ne=function(t){for(const r in t){const i=t[r];if(typeof i=="object"&&!(i instanceof y.Store))o(this,u).appendChild(document.createTextNode(`${r} {`)),c(this,L,ne).call(this,i),o(this,u).appendChild(document.createTextNode("}"));else if(i instanceof y.Store){const s=document.createTextNode("");o(this,l).add(i.subscribe(f=>{f.current?s.nodeValue=`${j.camelToKebab(r)}: ${f.current};`:s.nodeValue=""})),o(this,u).appendChild(s)}else o(this,u).appendChild(document.createTextNode(`${j.camelToKebab(r)}: ${i};`))}},q=new WeakSet,re=function(t,r){t.includes("--")?r?o(this,u).style.setProperty(t,r):o(this,u).style.removeProperty(t):r?o(this,u).style[t]=r:o(this,u).style[t]=""},I=new WeakSet,ve=function(t){if(t){o(this,m)||g(this,m,[]);for(const r in t){const i=r,s=j.uncapitalize(i.split("on").slice(1).join("on")),f=t[i];typeof f=="object"?o(this,m).push({name:s,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,m).push({name:s,callback:f})}c(this,x,ie).call(this)}},x=new WeakSet,ie=function(){var t;(t=o(this,m))==null||t.forEach(r=>{o(this,u).addEventListener(r.name,r.callback,r.options)})},A=new WeakSet,oe=function(){var t;(t=o(this,m))==null||t.forEach(r=>{o(this,u).removeEventListener(r.name,r.callback,r.options)})},J=new WeakSet,Ne=function(t){for(const r in t){const i=t[r];i instanceof y.Store?o(this,l).add(i.subscribe(({current:s})=>{c(this,M,se).call(this,r,s)})):c(this,M,se).call(this,r,i)}},M=new WeakSet,se=function(t,r){var s,f;const i=o(this,u);t in i&&!((f=(s=i.constructor)==null?void 0:s.observedAttributes)!=null&&f.includes(t))?r!=null&&(i[t]=r.toString()):r!=null&&i.setAttribute(t,r.toString())},v=new WeakSet,P=function(t,r){r&&(r=[r].flat(),r.forEach(i=>{if(i instanceof y.Store){const s=document.createElement("div");s.style.display="contents",t.appendChild(s),o(this,h)||g(this,h,[]);const f=o(this,h).length;s.setAttribute("store-root",""),o(this,h).push(s),o(this,l).add(i.subscribe(({current:d,previous:w})=>{const E=o(this,h)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Q=Array.from(E.childNodes),fe=[d].flat(),ke=[w].flat(),le=[],X=[];ke.forEach((p,S)=>{!fe.includes(p)&&Q[S]?le.push(Q[S]):X.push(p)}),fe.forEach((p,S)=>{if(X[S]){if(p!==X[S]){const C=c(this,F,ce).call(this,p),Z=Q[S];C instanceof Node?Z.isEqualNode(C)||E.replaceChild(C,Z):E.removeChild(Z)}}else{const C=c(this,F,ce).call(this,p);C instanceof Node&&s.appendChild(C)}}),le.forEach(p=>{E.removeChild(p)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Y)c(this,D,ue).call(this,t,i.node);else if(i instanceof Function)c(this,v,P).call(this,t,we.isESClass(i)?new i:i());else{const s=c(this,H,ae).call(this,i);s instanceof Node&&c(this,D,ue).call(this,t,s)}}))},D=new WeakSet,ue=function(t,r){!(t instanceof ShadowRoot)&&r instanceof HTMLElement&&r.tagName==="STYLE"?(o(this,b).add(()=>{[...document.head.querySelectorAll("style")].find(s=>s.outerHTML===r.outerHTML)||document.head.appendChild(r)}),o(this,l).add(()=>{r.remove()})):t.appendChild(r)},F=new WeakSet,ce=function(t){return t instanceof Y?t.node:typeof t=="function"?we.isESClass(t)?new t:t():c(this,H,ae).call(this,t)},H=new WeakSet,ae=function(t){if(t instanceof Node)return t;if(t!=null){const r=String(t);if(r.trim().startsWith("<")&&r.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=r,i.firstElementChild}else return document.createTextNode(r)}else return},K=new WeakMap,U=new WeakMap;let n=Y;function He(...e){return new n(...e)}function Pe(e){return new n("a",e)}function Re(e){return new n("abbr",e)}function $e(e){return new n("address",e)}function Be(e){return new n("area",e)}function Ge(e){return new n("article",e)}function Ve(e){return new n("aside",e)}function We(e){return new n("audio",e)}function ze(e){return new n("b",e)}function Ie(e){return new n("base",e)}function Je(e){return new n("bdi",e)}function Ke(e){return new n("bdo",e)}function Ue(e){return new n("blockquote",e)}function Ye(e){return new n("body",e)}function Qe(e){return new n("br",e)}function Xe(e){return new n("button",e)}function Ze(e){return new n("canvas",e)}function _e(e){return new n("caption",e)}function Oe(e){return new n("cite",e)}function je(e){return new n("code",e)}function et(e){return new n("col",e)}function tt(e){return new n("colgroup",e)}function nt(e){return new n("data",e)}function rt(e){return new n("datalist",e)}function it(e){return new n("dd",e)}function ot(e){return new n("del",e)}function st(e){return new n("details",e)}function ut(e){return new n("dfn",e)}function ct(e){return new n("dialog",e)}function at(e){return new n("div",e)}function ft(e){return new n("dl",e)}function lt(e){return new n("dt",e)}function dt(e){return new n("em",e)}function ht(e){return new n("embed",e)}function mt(e){return new n("fieldset",e)}function wt(e){return new n("figcaption",e)}function pt(e){return new n("figure",e)}function bt(e){return new n("footer",e)}function gt(e){return new n("form",e)}function yt(e){return new n("h1",e)}function Et(e){return new n("h2",e)}function St(e){return new n("h3",e)}function Ct(e){return new n("h4",e)}function vt(e){return new n("h5",e)}function Nt(e){return new n("h6",e)}function kt(e){return new n("head",e)}function Tt(e){return new n("header",e)}function Lt(e){return new n("hgroup",e)}function qt(e){return new n("hr",e)}function xt(e){return new n("html",e)}function At(e){return new n("i",e)}function Mt(e){return new n("iframe",e)}function Dt(e){return new n("img",e)}function Ft(e){return new n("input",e)}function Ht(e){return new n("ins",e)}function Pt(e){return new n("kbd",e)}function Rt(e){return new n("label",e)}function $t(e){return new n("legend",e)}function Bt(e){return new n("li",e)}function Gt(e){return new n("link",e)}function Vt(e){return new n("main",e)}function Wt(e){return new n("map",e)}function zt(e){return new n("mark",e)}function It(e){return new n("menu",e)}function Jt(e){return new n("meta",e)}function Kt(e){return new n("meter",e)}function Ut(e){return new n("nav",e)}function Yt(e){return new n("noscript",e)}function Qt(e){return new n("object",e)}function Xt(e){return new n("ol",e)}function Zt(e){return new n("optgroup",e)}function _t(e){return new n("option",e)}function Ot(e){return new n("output",e)}function jt(e){return new n("p",e)}function en(e){return new n("picture",e)}function tn(e){return new n("pre",e)}function nn(e){return new n("progress",e)}function rn(e){return new n("q",e)}function on(e){return new n("rp",e)}function sn(e){return new n("rt",e)}function un(e){return new n("ruby",e)}function cn(e){return new n("s",e)}function an(e){return new n("samp",e)}function fn(e){return new n("script",e)}function ln(e){return new n("search",e)}function dn(e){return new n("section",e)}function hn(e){return new n("select",e)}function mn(e){return new n("slot",e)}function wn(e){return new n("small",e)}function pn(e){return new n("source",e)}function bn(e){return new n("span",e)}function gn(e){return new n("strong",e)}function yn(e){return new n("style",{style:e})}function En(e){return new n("sub",e)}function Sn(e){return new n("summary",e)}function Cn(e){return new n("sup",e)}function vn(e){return new n("table",e)}function Nn(e){return new n("tbody",e)}function kn(e){return new n("td",e)}function Tn(e){return new n("template",e)}function Ln(e){return new n("textarea",e)}function qn(e){return new n("tfoot",e)}function xn(e){return new n("th",e)}function An(e){return new n("thead",e)}function Mn(e){return new n("time",e)}function Dn(e){return new n("title",e)}function Fn(e){return new n("tr",e)}function Hn(e){return new n("track",e)}function Pn(e){return new n("u",e)}function Rn(e){return new n("ul",e)}function $n(e){return new n("var",e)}function Bn(e){return new n("video",e)}function Gn(e){return new n("wbr",e)}function Vn(e){return new n(document.createDocumentFragment(),e)}function Wn(e){return new n(document.createTextNode(""),e)}function zn(e){return new n("div",me(_({},e),{style:_({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=Pe;exports.abbr=Re;exports.address=$e;exports.area=Be;exports.article=Ge;exports.aside=Ve;exports.audio=We;exports.b=ze;exports.base=Ie;exports.bdi=Je;exports.bdo=Ke;exports.blockquote=Ue;exports.body=Ye;exports.br=Qe;exports.button=Xe;exports.canvas=Ze;exports.caption=_e;exports.cite=Oe;exports.code=je;exports.col=et;exports.colgroup=tt;exports.contents=zn;exports.data=nt;exports.datalist=rt;exports.dd=it;exports.del=ot;exports.details=st;exports.dfn=ut;exports.dialog=ct;exports.div=at;exports.dl=ft;exports.dt=lt;exports.element=He;exports.em=dt;exports.embed=ht;exports.empty=Wn;exports.fieldset=mt;exports.figcaption=wt;exports.figure=pt;exports.footer=bt;exports.form=gt;exports.fragment=Vn;exports.h1=yt;exports.h2=Et;exports.h3=St;exports.h4=Ct;exports.h5=vt;exports.h6=Nt;exports.head=kt;exports.header=Tt;exports.hgroup=Lt;exports.hr=qt;exports.html=xt;exports.htmlVar=$n;exports.i=At;exports.iframe=Mt;exports.img=Dt;exports.input=Ft;exports.ins=Ht;exports.kbd=Pt;exports.label=Rt;exports.legend=$t;exports.li=Bt;exports.link=Gt;exports.main=Vt;exports.map=Wt;exports.mark=zt;exports.menu=It;exports.meta=Jt;exports.meter=Kt;exports.nav=Ut;exports.noscript=Yt;exports.object=Qt;exports.ol=Xt;exports.optgroup=Zt;exports.option=_t;exports.output=Ot;exports.p=jt;exports.picture=en;exports.pre=tn;exports.progress=nn;exports.q=rn;exports.rp=on;exports.rt=sn;exports.ruby=un;exports.s=cn;exports.samp=an;exports.script=fn;exports.search=ln;exports.section=dn;exports.select=hn;exports.slot=mn;exports.small=wn;exports.source=pn;exports.span=bn;exports.strong=gn;exports.style=yn;exports.sub=En;exports.summary=Sn;exports.sup=Cn;exports.table=vn;exports.tbody=Nn;exports.td=kn;exports.template=Tn;exports.textarea=Ln;exports.tfoot=qn;exports.th=xn;exports.thead=An;exports.time=Mn;exports.title=Dn;exports.tr=Fn;exports.track=Hn;exports.u=Pn;exports.ul=Rn;exports.video=Bn;exports.wbr=Gn;