aptechka 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ComponentElement-BUesLP4b.cjs +1 -0
- package/lib/ComponentElement-NMlh1Ptn.js +92 -0
- package/lib/Composed-ClTo1f0b.js +79 -0
- package/lib/Composed-Mdr4ZFbI.cjs +1 -0
- package/lib/ElementConstructor-B61ZFTEB.cjs +1 -0
- package/lib/{ElementConstructor-1bvPqYNa.js → ElementConstructor-CvNdPKJy.js} +6 -5
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +1 -1
- package/lib/animation/hooks/index.cjs +1 -0
- package/lib/animation/hooks/index.d.ts +8 -0
- package/lib/animation/hooks/index.js +38 -0
- package/lib/attribute/hooks/index.d.ts +2 -0
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +0 -2
- package/lib/attribute/index.js +35 -50
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/controls/hooks/index.d.ts +1 -0
- package/lib/{createStylesheet-B5Nhxdpo.cjs → createStylesheet-C0OnN0Br.cjs} +1 -1
- package/lib/{createStylesheet-DpGvTRP3.js → createStylesheet-CD11E4C8.js} +1 -1
- package/lib/{createTheme-CLqJF9Pw.cjs → createTheme-B_W5dUY9.cjs} +1 -1
- package/lib/{createTheme-WJyOPh-q.js → createTheme-D0IoYkYN.js} +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +4 -4
- package/lib/element-resizer/hooks/index.cjs +1 -0
- package/lib/element-resizer/hooks/index.d.ts +4 -0
- package/lib/element-resizer/hooks/index.js +12 -0
- package/lib/en3/index.cjs +7 -7
- package/lib/en3/index.d.ts +1 -0
- package/lib/en3/index.js +639 -620
- package/lib/en3/utils/getCurrentViewport.d.ts +7 -0
- package/lib/{index-BNZNGmrW.cjs → index--wI4MTuv.cjs} +1 -1
- package/lib/{index-DMIfOO2r.js → index-Dq6GRJ9W.js} +2 -2
- package/lib/instantiate-BAz2WZtO.cjs +1 -0
- package/lib/instantiate-BDteLwW6.js +55 -0
- package/lib/intersector/hooks/index.cjs +1 -0
- package/lib/intersector/hooks/index.d.ts +4 -0
- package/lib/intersector/hooks/index.js +12 -0
- package/lib/jsx/hooks/index.cjs +1 -0
- package/lib/jsx/hooks/index.d.ts +7 -0
- package/lib/jsx/hooks/index.js +76 -0
- package/lib/jsx/hooks/useContext.d.ts +2 -2
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +2 -9
- package/lib/jsx/index.js +11 -95
- package/lib/jsx/instantiate.d.ts +1 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +82 -81
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +2 -2
- package/lib/object-BZELAoVj.cjs +1 -0
- package/lib/object-R34VLqhp.js +85 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +21 -21
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +2 -2
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/slicer/DecoderElement.d.ts +10 -0
- package/lib/slicer/Letter.d.ts +11 -0
- package/lib/slicer/SlicerElement.d.ts +21 -0
- package/lib/slicer/Word.d.ts +16 -0
- package/lib/slicer/index.cjs +11 -0
- package/lib/slicer/index.d.ts +4 -0
- package/lib/slicer/index.js +165 -0
- package/lib/store/hooks/index.cjs +1 -0
- package/lib/{jsx/hooks/useStore.d.ts → store/hooks/index.d.ts} +1 -1
- package/lib/store/hooks/index.js +31 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +48 -111
- package/lib/string-3lAkpJJP.js +51 -0
- package/lib/string-vBu90jhV.cjs +1 -0
- package/lib/studio/index.cjs +1 -1
- package/lib/studio/index.js +6 -5
- package/lib/{tags-D0k7-iVY.js → tags-C2jg1zYB.js} +1 -1
- package/lib/{tags-DGIuh1Hi.cjs → tags-DX-eNxbA.cjs} +1 -1
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/index.js +3 -3
- package/lib/ticker/hooks/index.cjs +1 -0
- package/lib/ticker/hooks/index.d.ts +5 -0
- package/lib/ticker/hooks/index.js +23 -0
- package/lib/ticker/index.d.ts +1 -1
- package/lib/useConnect-CXdqKdRX.js +9 -0
- package/lib/useConnect-DcfeqwzW.cjs +1 -0
- package/lib/useCreate-ClGKVMeG.cjs +1 -0
- package/lib/useCreate-DQSfJu7r.js +7 -0
- package/lib/useDisconnect-D5cBD1bq.js +9 -0
- package/lib/useDisconnect-sA74z4IZ.cjs +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +28 -27
- package/lib/utils/ts-utility.d.ts +5 -0
- package/lib/window-resizer/hooks/index.cjs +1 -0
- package/lib/window-resizer/hooks/index.d.ts +2 -0
- package/lib/window-resizer/hooks/index.js +9 -0
- package/package.json +67 -2
- package/lib/ElementConstructor-CdUaQS-S.cjs +0 -1
- package/lib/getComponentElement-B0Qb2RbZ.js +0 -145
- package/lib/getComponentElement-BcreYwFe.cjs +0 -1
- package/lib/jsx/getComponentElement.d.ts +0 -2
- package/lib/string-Cgp_uJvP.cjs +0 -1
- package/lib/string-DCGBU6em.js +0 -134
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"default": "./lib/animation/index.js",
|
|
34
34
|
"types": "./lib/animation/index.d.ts"
|
|
35
35
|
},
|
|
36
|
+
"./animation/hooks": {
|
|
37
|
+
"require": "./lib/animation/hooks/index.cjs",
|
|
38
|
+
"default": "./lib/animation/hooks/index.js",
|
|
39
|
+
"types": "./lib/animation/hooks/index.d.ts"
|
|
40
|
+
},
|
|
36
41
|
"./attribute": {
|
|
37
42
|
"require": "./lib/attribute/index.cjs",
|
|
38
43
|
"default": "./lib/attribute/index.js",
|
|
@@ -78,6 +83,11 @@
|
|
|
78
83
|
"default": "./lib/element-resizer/index.js",
|
|
79
84
|
"types": "./lib/element-resizer/index.d.ts"
|
|
80
85
|
},
|
|
86
|
+
"./element-resizer/hooks": {
|
|
87
|
+
"require": "./lib/element-resizer/hooks/index.cjs",
|
|
88
|
+
"default": "./lib/element-resizer/hooks/index.js",
|
|
89
|
+
"types": "./lib/element-resizer/hooks/index.d.ts"
|
|
90
|
+
},
|
|
81
91
|
"./en3": {
|
|
82
92
|
"require": "./lib/en3/index.cjs",
|
|
83
93
|
"default": "./lib/en3/index.js",
|
|
@@ -93,11 +103,21 @@
|
|
|
93
103
|
"default": "./lib/intersector/index.js",
|
|
94
104
|
"types": "./lib/intersector/index.d.ts"
|
|
95
105
|
},
|
|
106
|
+
"./intersector/hooks": {
|
|
107
|
+
"require": "./lib/intersector/hooks/index.cjs",
|
|
108
|
+
"default": "./lib/intersector/hooks/index.js",
|
|
109
|
+
"types": "./lib/intersector/hooks/index.d.ts"
|
|
110
|
+
},
|
|
96
111
|
"./jsx": {
|
|
97
112
|
"require": "./lib/jsx/index.cjs",
|
|
98
113
|
"default": "./lib/jsx/index.js",
|
|
99
114
|
"types": "./lib/jsx/index.d.ts"
|
|
100
115
|
},
|
|
116
|
+
"./jsx/hooks": {
|
|
117
|
+
"require": "./lib/jsx/hooks/index.cjs",
|
|
118
|
+
"default": "./lib/jsx/hooks/index.js",
|
|
119
|
+
"types": "./lib/jsx/hooks/index.d.ts"
|
|
120
|
+
},
|
|
101
121
|
"./ladder": {
|
|
102
122
|
"require": "./lib/ladder/index.cjs",
|
|
103
123
|
"default": "./lib/ladder/index.js",
|
|
@@ -168,6 +188,11 @@
|
|
|
168
188
|
"default": "./lib/select/index.js",
|
|
169
189
|
"types": "./lib/select/index.d.ts"
|
|
170
190
|
},
|
|
191
|
+
"./slicer": {
|
|
192
|
+
"require": "./lib/slicer/index.cjs",
|
|
193
|
+
"default": "./lib/slicer/index.js",
|
|
194
|
+
"types": "./lib/slicer/index.d.ts"
|
|
195
|
+
},
|
|
171
196
|
"./source": {
|
|
172
197
|
"require": "./lib/source/index.cjs",
|
|
173
198
|
"default": "./lib/source/index.js",
|
|
@@ -178,6 +203,11 @@
|
|
|
178
203
|
"default": "./lib/store/index.js",
|
|
179
204
|
"types": "./lib/store/index.d.ts"
|
|
180
205
|
},
|
|
206
|
+
"./store/hooks": {
|
|
207
|
+
"require": "./lib/store/hooks/index.cjs",
|
|
208
|
+
"default": "./lib/store/hooks/index.js",
|
|
209
|
+
"types": "./lib/store/hooks/index.d.ts"
|
|
210
|
+
},
|
|
181
211
|
"./studio": {
|
|
182
212
|
"require": "./lib/studio/index.cjs",
|
|
183
213
|
"default": "./lib/studio/index.js",
|
|
@@ -193,6 +223,11 @@
|
|
|
193
223
|
"default": "./lib/ticker/index.js",
|
|
194
224
|
"types": "./lib/ticker/index.d.ts"
|
|
195
225
|
},
|
|
226
|
+
"./ticker/hooks": {
|
|
227
|
+
"require": "./lib/ticker/hooks/index.cjs",
|
|
228
|
+
"default": "./lib/ticker/hooks/index.js",
|
|
229
|
+
"types": "./lib/ticker/hooks/index.d.ts"
|
|
230
|
+
},
|
|
196
231
|
"./utils": {
|
|
197
232
|
"require": "./lib/utils/index.cjs",
|
|
198
233
|
"default": "./lib/utils/index.js",
|
|
@@ -207,6 +242,11 @@
|
|
|
207
242
|
"require": "./lib/window-resizer/index.cjs",
|
|
208
243
|
"default": "./lib/window-resizer/index.js",
|
|
209
244
|
"types": "./lib/window-resizer/index.d.ts"
|
|
245
|
+
},
|
|
246
|
+
"./window-resizer/hooks": {
|
|
247
|
+
"require": "./lib/window-resizer/hooks/index.cjs",
|
|
248
|
+
"default": "./lib/window-resizer/hooks/index.js",
|
|
249
|
+
"types": "./lib/window-resizer/hooks/index.d.ts"
|
|
210
250
|
}
|
|
211
251
|
},
|
|
212
252
|
"typesVersions": {
|
|
@@ -217,6 +257,9 @@
|
|
|
217
257
|
"animation": [
|
|
218
258
|
"lib/animation/index.d.ts"
|
|
219
259
|
],
|
|
260
|
+
"animation/hooks": [
|
|
261
|
+
"lib/animation/hooks/index.d.ts"
|
|
262
|
+
],
|
|
220
263
|
"attribute": [
|
|
221
264
|
"lib/attribute/index.d.ts"
|
|
222
265
|
],
|
|
@@ -247,6 +290,9 @@
|
|
|
247
290
|
"element-resizer": [
|
|
248
291
|
"lib/element-resizer/index.d.ts"
|
|
249
292
|
],
|
|
293
|
+
"element-resizer/hooks": [
|
|
294
|
+
"lib/element-resizer/hooks/index.d.ts"
|
|
295
|
+
],
|
|
250
296
|
"en3": [
|
|
251
297
|
"lib/en3/index.d.ts"
|
|
252
298
|
],
|
|
@@ -256,9 +302,15 @@
|
|
|
256
302
|
"intersector": [
|
|
257
303
|
"lib/intersector/index.d.ts"
|
|
258
304
|
],
|
|
305
|
+
"intersector/hooks": [
|
|
306
|
+
"lib/intersector/hooks/index.d.ts"
|
|
307
|
+
],
|
|
259
308
|
"jsx": [
|
|
260
309
|
"lib/jsx/index.d.ts"
|
|
261
310
|
],
|
|
311
|
+
"jsx/hooks": [
|
|
312
|
+
"lib/jsx/hooks/index.d.ts"
|
|
313
|
+
],
|
|
262
314
|
"ladder": [
|
|
263
315
|
"lib/ladder/index.d.ts"
|
|
264
316
|
],
|
|
@@ -301,12 +353,18 @@
|
|
|
301
353
|
"select": [
|
|
302
354
|
"lib/select/index.d.ts"
|
|
303
355
|
],
|
|
356
|
+
"slicer": [
|
|
357
|
+
"lib/slicer/index.d.ts"
|
|
358
|
+
],
|
|
304
359
|
"source": [
|
|
305
360
|
"lib/source/index.d.ts"
|
|
306
361
|
],
|
|
307
362
|
"store": [
|
|
308
363
|
"lib/store/index.d.ts"
|
|
309
364
|
],
|
|
365
|
+
"store/hooks": [
|
|
366
|
+
"lib/store/hooks/index.d.ts"
|
|
367
|
+
],
|
|
310
368
|
"studio": [
|
|
311
369
|
"lib/studio/index.d.ts"
|
|
312
370
|
],
|
|
@@ -316,6 +374,9 @@
|
|
|
316
374
|
"ticker": [
|
|
317
375
|
"lib/ticker/index.d.ts"
|
|
318
376
|
],
|
|
377
|
+
"ticker/hooks": [
|
|
378
|
+
"lib/ticker/hooks/index.d.ts"
|
|
379
|
+
],
|
|
319
380
|
"utils": [
|
|
320
381
|
"lib/utils/index.d.ts"
|
|
321
382
|
],
|
|
@@ -324,6 +385,9 @@
|
|
|
324
385
|
],
|
|
325
386
|
"window-resizer": [
|
|
326
387
|
"lib/window-resizer/index.d.ts"
|
|
388
|
+
],
|
|
389
|
+
"window-resizer/hooks": [
|
|
390
|
+
"lib/window-resizer/hooks/index.d.ts"
|
|
327
391
|
]
|
|
328
392
|
}
|
|
329
393
|
},
|
|
@@ -341,7 +405,8 @@
|
|
|
341
405
|
"vite-plugin-htmc": "^0.1.5"
|
|
342
406
|
},
|
|
343
407
|
"dependencies": {
|
|
344
|
-
"detect-gpu": "^5.0.
|
|
408
|
+
"detect-gpu": "^5.0.37",
|
|
409
|
+
"postprocessing": "^6.35.2",
|
|
345
410
|
"three": "^0.161.0",
|
|
346
411
|
"urlpattern-polyfill": "^10.0.0"
|
|
347
412
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=(l,e,s)=>{if(!e.has(l))throw TypeError("Cannot "+s)};var n=(l,e,s)=>(R(l,e,"read from private field"),s?s.call(l):e.get(l)),f=(l,e,s)=>{if(e.has(l))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(l):e.set(l,s)},Q=(l,e,s,t)=>(R(l,e,"write to private field"),t?t.call(l,s):e.set(l,s),s);var a=(l,e,s)=>(R(l,e,"access private method"),s);const m=require("./Store-D0_rDIsE.cjs"),ae=require("./browser-CpzFX2xg.cjs"),S=require("./string-Cgp_uJvP.cjs"),fe=require("./connector/index.cjs"),re=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 r,h,d,w,X,A,Z,M,_,y,z,x,O,v,j,D,ee,k,te,E,J,b,V,H,se,q,ie,p,K,g,N,C,Y,F,ne,P,oe,L,I,T,U,B,G;const $=class ${constructor(...e){f(this,w);f(this,A);f(this,M);f(this,y);f(this,x);f(this,v);f(this,D);f(this,k);f(this,E);f(this,b);f(this,H);f(this,q);f(this,p);f(this,g);f(this,C);f(this,F);f(this,P);f(this,L);f(this,T);f(this,r,void 0);f(this,h,new Set);f(this,d,new Set);f(this,B,()=>{n(this,h).forEach(e=>{e()}),n(this,h).clear()});f(this,G,e=>{n(this,d).forEach(s=>{s(e)}),n(this,d).clear()});const s=e[0],t=e[1];Q(this,r,a(this,w,X).call(this,s,t==null?void 0:t.forceSvg)),a(this,M,_).call(this,t)}get node(){return n(this,r)}};r=new WeakMap,h=new WeakMap,d=new WeakMap,w=new WeakSet,X=function(e,s){let t=null;if(e instanceof Node)t=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))t=new(customElements.get(e));else if(e.includes("<")){const i=document.createElement("div");i.innerHTML=e,t=i.firstElementChild}else re.has(e)||s?t=document.createElementNS("http://www.w3.org/2000/svg",e):t=document.createElement(e);else t=document.createElement("div");return t},A=new WeakSet,Z=function(e){return e instanceof HTMLElement||e instanceof SVGElement},M=new WeakSet,_=function(e){if(!e)return;const s=a(this,A,Z).call(this,n(this,r)),t=e.ref;delete e.ref,e!=null&&e.onConnect&&(n(this,h).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(n(this,d).add(e.onDisconnect),delete e.onDisconnect);let i,o;for(const c in e){const u=e[c];c==="class"&&s?a(this,y,z).call(this,u):c==="style"&&s?a(this,D,ee).call(this,u):c==="lightChildren"?a(this,g,N).call(this,n(this,r),u):c==="children"?a(this,g,N).call(this,n(this,r)instanceof Element?n(this,r).shadowRoot||n(this,r):n(this,r),u):c.startsWith("on")?(o||(o={}),o[c]=u):(i||(i={}),i[c]=u)}if(a(this,q,ie).call(this,i),a(this,H,se).call(this,o),t&&(typeof t=="function"?t(n(this,r)):t.current=n(this,r)),ae.isBrowser&&(n(this,d).size||n(this,h).size)){const c=n(this,r)instanceof DocumentFragment?n(this,r).firstChild:n(this,r);fe.connector.subscribe(c,{connectCallback:n(this,B),disconnectCallback:n(this,G),unsubscribeAfterDisconnect:!0,maxWaitSec:20})}},y=new WeakSet,z=function(e){const s=n(this,r);if(e){if(typeof e=="string")s.classList.add(e);else if(Array.isArray(e))e.forEach(t=>{a(this,y,z).call(this,t)});else if(typeof e=="object")if(e instanceof m.Store)a(this,x,O).call(this,e);else for(const t in e){const i=e[t];i instanceof m.Store?a(this,v,j).call(this,t,i):i?s.classList.add(t):s.classList.remove(t)}}else return},x=new WeakSet,O=function(e){const s=n(this,r);n(this,d).add(e.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(o=>{o&&s.classList.remove(o)}),t&&[t].flat().forEach(o=>{o&&s.classList.add(o)})}))},v=new WeakSet,j=function(e,s){const t=n(this,r);n(this,d).add(s.subscribe(({current:i})=>{i?t.classList.add(e):t.classList.remove(e)}))},D=new WeakSet,ee=function(e){if(!e)return;const s=n(this,r);s.tagName==="style"||s.tagName==="STYLE"?a(this,E,J).call(this,e):a(this,k,te).call(this,e)},k=new WeakSet,te=function(e){for(const s in e){const t=s,i=e[t];i instanceof m.Store?n(this,d).add(i.subscribe(({current:o})=>{a(this,b,V).call(this,t,o)})):a(this,b,V).call(this,t,i)}},E=new WeakSet,J=function(e){const s=n(this,r);for(const t in e){const i=e[t];if(typeof i=="object"&&!(i instanceof m.Store))s.appendChild(new Text(`${t} {`)),a(this,E,J).call(this,i),s.appendChild(new Text("}"));else if(i instanceof m.Store){const o=new Text;n(this,d).add(i.subscribe(c=>{c.current?o.nodeValue=`${S.camelToKebab(t)}: ${c.current};`:o.nodeValue=""})),s.appendChild(o)}else s.appendChild(new Text(`${S.camelToKebab(t)}: ${i};`))}},b=new WeakSet,V=function(e,s){const t=n(this,r);e.includes("--")?s?t.style.setProperty(e,s):t.style.removeProperty(e):s?t.style[e]=s:t.style[e]=""},H=new WeakSet,se=function(e){if(!e)return;const s=n(this,r);for(const t in e){const i=t,o=S.uncapitalize(i.split("on").slice(1).join("on")),c=e[i];typeof c=="object"?s.addEventListener(o,c.callback,c.options):typeof c=="function"&&s.addEventListener(o,c)}},q=new WeakSet,ie=function(e){for(const s in e){const t=e[s];t instanceof m.Store?n(this,d).add(t.subscribe(({current:i})=>{a(this,p,K).call(this,s,i)})):a(this,p,K).call(this,s,t)}},p=new WeakSet,K=function(e,s){var i,o;const t=n(this,r);e in t&&!((o=(i=t.constructor)==null?void 0:i.observedAttributes)!=null&&o.includes(e))?s!=null&&(t[e]=s.toString()):s!=null&&t.setAttribute(e,s.toString())},g=new WeakSet,N=function(e,s){s&&(s=[s].flat(),s.forEach(t=>{if(t instanceof m.Store){const i=document.createElement("div");i.style.display="contents",e.appendChild(i),n(this,d).add(t.subscribe(({current:o})=>{a(this,P,oe).call(this,i,a(this,F,ne).call(this,o),Array.from(i.childNodes))}))}else if(t instanceof $)a(this,C,Y).call(this,e,t.node);else if(t instanceof Function)a(this,g,N).call(this,e,S.isESClass(t)?new t:t());else{const i=a(this,T,U).call(this,t);i instanceof Node&&a(this,C,Y).call(this,e,i)}}))},C=new WeakSet,Y=function(e,s){!(e instanceof ShadowRoot)&&s instanceof HTMLElement&&s.tagName==="STYLE"?(n(this,h).add(()=>{[...document.head.querySelectorAll("style")].find(i=>i.outerHTML===s.outerHTML)||document.head.appendChild(s)}),n(this,d).add(()=>{s.remove()})):e.appendChild(s)},F=new WeakSet,ne=function(e){return[e].flat().map(t=>t instanceof $?t.node:typeof t=="function"?S.isESClass(t)?new t:t():a(this,T,U).call(this,t)).flat().filter(Boolean)},P=new WeakSet,oe=function(e,s,t){t.length>s.length&&t.forEach(i=>{s.find(o=>a(this,L,I).call(this,i,o))||(e.removeChild(i),t=t.filter(o=>o!==i))}),t.forEach((i,o)=>{if(o<s.length){const c=s[o];a(this,L,I).call(this,i,c)||e.replaceChild(c,i)}else e.removeChild(i)});for(let i=t.length;i<s.length;i++)e.appendChild(s[i])},L=new WeakSet,I=function(e,s){return s?s instanceof Node?e.isEqualNode(s):e.textContent===s.toString():!1},T=new WeakSet,U=function(e){if(e instanceof Node)return e;if(e!=null){const s=String(e);if(s.trim().startsWith("<")&&s.trim().endsWith(">")){const t=document.createElement("div");return t.innerHTML=s,t.firstElementChild}else return new Text(s)}else return},B=new WeakMap,G=new WeakMap;let W=$;exports.ElementConstructor=W;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
var S = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
-
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var k = Object.getOwnPropertySymbols;
|
|
4
|
-
var M = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var g = (n, e, t) => e in n ? S(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, i = (n, e) => {
|
|
6
|
-
for (var t in e || (e = {}))
|
|
7
|
-
M.call(e, t) && g(n, t, e[t]);
|
|
8
|
-
if (k)
|
|
9
|
-
for (var t of k(e))
|
|
10
|
-
R.call(e, t) && g(n, t, e[t]);
|
|
11
|
-
return n;
|
|
12
|
-
}, C = (n, e) => F(n, D(e));
|
|
13
|
-
var y = (n, e, t) => {
|
|
14
|
-
if (!e.has(n))
|
|
15
|
-
throw TypeError("Cannot " + t);
|
|
16
|
-
};
|
|
17
|
-
var c = (n, e, t) => (y(n, e, "read from private field"), t ? t.call(n) : e.get(n)), a = (n, e, t) => {
|
|
18
|
-
if (e.has(n))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
e instanceof WeakSet ? e.add(n) : e.set(n, t);
|
|
21
|
-
};
|
|
22
|
-
var p = (n, e, t) => (y(n, e, "access private method"), t);
|
|
23
|
-
import { c as T, i as H } from "./string-DCGBU6em.js";
|
|
24
|
-
import { E as w } from "./ElementConstructor-1bvPqYNa.js";
|
|
25
|
-
let A = null;
|
|
26
|
-
const x = {
|
|
27
|
-
value: null
|
|
28
|
-
};
|
|
29
|
-
var u, l, f, d, b;
|
|
30
|
-
class K extends HTMLElement {
|
|
31
|
-
constructor(t) {
|
|
32
|
-
super();
|
|
33
|
-
a(this, d);
|
|
34
|
-
a(this, u, /* @__PURE__ */ new Set());
|
|
35
|
-
a(this, l, /* @__PURE__ */ new Set());
|
|
36
|
-
a(this, f, /* @__PURE__ */ new Map());
|
|
37
|
-
A = this;
|
|
38
|
-
const o = t.tag(C(i({}, t.attributes), {
|
|
39
|
-
children: t.children
|
|
40
|
-
}));
|
|
41
|
-
new w(this, i({
|
|
42
|
-
children: o
|
|
43
|
-
}, x.value)), A = null, x.value = null;
|
|
44
|
-
}
|
|
45
|
-
addConnectCallback(t) {
|
|
46
|
-
c(this, u).add(t);
|
|
47
|
-
}
|
|
48
|
-
addDisconnectCallback(t) {
|
|
49
|
-
c(this, l).add(t);
|
|
50
|
-
}
|
|
51
|
-
createContext(t, o) {
|
|
52
|
-
c(this, f).set(t, o);
|
|
53
|
-
}
|
|
54
|
-
getContext(t) {
|
|
55
|
-
return c(this, f).get(t);
|
|
56
|
-
}
|
|
57
|
-
findContext(t) {
|
|
58
|
-
return p(this, d, b).call(this, t);
|
|
59
|
-
}
|
|
60
|
-
connectedCallback() {
|
|
61
|
-
c(this, u).forEach((t) => {
|
|
62
|
-
const o = t(this);
|
|
63
|
-
o && c(this, l).add(o);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
disconnectedCallback() {
|
|
67
|
-
c(this, l).forEach((t) => {
|
|
68
|
-
t(this);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
u = new WeakMap(), l = new WeakMap(), f = new WeakMap(), d = new WeakSet(), b = function(t, o = this) {
|
|
73
|
-
if (!o)
|
|
74
|
-
return null;
|
|
75
|
-
if (o && "findContext" in o) {
|
|
76
|
-
const r = o.getContext(t);
|
|
77
|
-
if (r)
|
|
78
|
-
return r;
|
|
79
|
-
}
|
|
80
|
-
let s = null;
|
|
81
|
-
if (o.parentElement)
|
|
82
|
-
s = o.parentElement;
|
|
83
|
-
else {
|
|
84
|
-
const r = o.getRootNode();
|
|
85
|
-
r instanceof ShadowRoot && (s = r.host);
|
|
86
|
-
}
|
|
87
|
-
return s ? p(this, d, b).call(this, t, s) : null;
|
|
88
|
-
};
|
|
89
|
-
function v(n) {
|
|
90
|
-
const e = Array.isArray(n) ? n : [n];
|
|
91
|
-
let t = [];
|
|
92
|
-
return e.forEach((o) => {
|
|
93
|
-
if (typeof o == "function") {
|
|
94
|
-
const s = new o(C(i({}, o.attributes), {
|
|
95
|
-
children: o.children
|
|
96
|
-
}));
|
|
97
|
-
t = [...t, ...v(s)];
|
|
98
|
-
} else
|
|
99
|
-
t.push(o);
|
|
100
|
-
}), t;
|
|
101
|
-
}
|
|
102
|
-
function L(n, e, ...t) {
|
|
103
|
-
var r;
|
|
104
|
-
if (typeof n == "function") {
|
|
105
|
-
if (n === E)
|
|
106
|
-
return E(t);
|
|
107
|
-
const h = `e-${T(n.name)}`;
|
|
108
|
-
let m = customElements.get(h);
|
|
109
|
-
return m || (m = (r = class extends K {
|
|
110
|
-
constructor() {
|
|
111
|
-
super({
|
|
112
|
-
tag: n,
|
|
113
|
-
attributes: e,
|
|
114
|
-
children: t
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}, r.formAssociated = n.formAssociated, r), customElements.define(h, m)), m;
|
|
118
|
-
}
|
|
119
|
-
const o = t.map((h) => v(h)).flat();
|
|
120
|
-
let s = null;
|
|
121
|
-
return n === "component" ? (s = E(o), x.value = e) : s = new w(n, C(i({}, e), {
|
|
122
|
-
children: o
|
|
123
|
-
})), s.node;
|
|
124
|
-
}
|
|
125
|
-
function E(n) {
|
|
126
|
-
return new w(document.createDocumentFragment(), {
|
|
127
|
-
children: n
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function j(n, e = null, ...t) {
|
|
131
|
-
let o = null;
|
|
132
|
-
if (H(n))
|
|
133
|
-
o = new n();
|
|
134
|
-
else {
|
|
135
|
-
const s = L(n, e, ...t);
|
|
136
|
-
o = new s();
|
|
137
|
-
}
|
|
138
|
-
return o;
|
|
139
|
-
}
|
|
140
|
-
export {
|
|
141
|
-
E as F,
|
|
142
|
-
A as c,
|
|
143
|
-
j as g,
|
|
144
|
-
L as h
|
|
145
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,q=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var k=(t,e,n)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,i=(t,e)=>{for(var n in e||(e={}))M.call(e,n)&&k(t,n,e[n]);if(g)for(var n of g(e))R.call(e,n)&&k(t,n,e[n]);return t},h=(t,e)=>q(t,D(e));var y=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var c=(t,e,n)=>(y(t,e,"read from private field"),n?n.call(t):e.get(t)),u=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};var p=(t,e,n)=>(y(t,e,"access private method"),n);const A=require("./string-Cgp_uJvP.cjs"),x=require("./ElementConstructor-CdUaQS-S.cjs");exports.currentComponentElement=null;const b={value:null};var a,l,d,f,w;class T extends HTMLElement{constructor(n){super();u(this,f);u(this,a,new Set);u(this,l,new Set);u(this,d,new Map);exports.currentComponentElement=this;const o=n.tag(h(i({},n.attributes),{children:n.children}));new x.ElementConstructor(this,i({children:o},b.value)),exports.currentComponentElement=null,b.value=null}addConnectCallback(n){c(this,a).add(n)}addDisconnectCallback(n){c(this,l).add(n)}createContext(n,o){c(this,d).set(n,o)}getContext(n){return c(this,d).get(n)}findContext(n){return p(this,f,w).call(this,n)}connectedCallback(){c(this,a).forEach(n=>{const o=n(this);o&&c(this,l).add(o)})}disconnectedCallback(){c(this,l).forEach(n=>{n(this)})}}a=new WeakMap,l=new WeakMap,d=new WeakMap,f=new WeakSet,w=function(n,o=this){if(!o)return null;if(o&&"findContext"in o){const s=o.getContext(n);if(s)return s}let r=null;if(o.parentElement)r=o.parentElement;else{const s=o.getRootNode();s instanceof ShadowRoot&&(r=s.host)}return r?p(this,f,w).call(this,n,r):null};function v(t){const e=Array.isArray(t)?t:[t];let n=[];return e.forEach(o=>{if(typeof o=="function"){const r=new o(h(i({},o.attributes),{children:o.children}));n=[...n,...v(r)]}else n.push(o)}),n}function S(t,e,...n){var s;if(typeof t=="function"){if(t===E)return E(n);const m=`e-${A.camelToKebab(t.name)}`;let C=customElements.get(m);return C||(C=(s=class extends T{constructor(){super({tag:t,attributes:e,children:n})}},s.formAssociated=t.formAssociated,s),customElements.define(m,C)),C}const o=n.map(m=>v(m)).flat();let r=null;return t==="component"?(r=E(o),b.value=e):r=new x.ElementConstructor(t,h(i({},e),{children:o})),r.node}function E(t){return new x.ElementConstructor(document.createDocumentFragment(),{children:t})}function H(t,e=null,...n){let o=null;if(A.isESClass(t))o=new t;else{const r=S(t,e,...n);o=new r}return o}exports.Fragment=E;exports.getComponentElement=H;exports.h=S;
|
package/lib/string-Cgp_uJvP.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function o(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function f(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]=f(e[n]));return t}function l(e,t,n=o){for(const r in t)n(t[r])?(e[r]||Object.assign(e,{[r]:{}}),l(e[r],t[r],n)):Object.assign(e,{[r]:t[r]});return e}function u(e){return e===null||typeof e=="undefined"}function s(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(n=>u(n)))return e===t;if(Array.isArray(e)){const n=e.length>t.length?e:t,r=e.length>t.length?t:e;return n.every((c,i)=>s(c,r[i]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(typeof e[n]=="object"&&typeof t[n]=="object"){if(!s(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1}return!0}function m(e,t){const n={};for(const r in e)t.includes(r)&&(n[r]=e[r]);return n}function g(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function O(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function h(e,...t){t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(r=>{console.log(r),Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(n.prototype,r)||Object.create(null))})})}function A(e,t=!1){let n="";return e.split("-").forEach((r,c)=>{if(c===0&&!t)n+=r;else{const i=r[0],y=r.slice(1),d=i.toUpperCase()+y;n+=d}}),n}function k(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function w(e){return e.split("_").join(".")}function C(e){return/^[a-z\d]+$/i.test(e)?e.charAt(0).toUpperCase()+e.slice(1):e.replace(/([a-z\d])([a-z\d]*)/gi,(t,n,r)=>n.toUpperCase()+r.toLowerCase()).replace(/[^a-z\d]/gi,"")}function a(e,t){return e.slice(0,1)[t]()+e.slice(1)}function p(e,t=!1,n){return t?e.split(" ").map(r=>a(r,n)).join(" "):a(e,n)}function z(e,t=!1){return p(e,t,"toUpperCase")}function D(e,t=!1){return p(e,t,"toLowerCase")}function P(e,t="abcdefghijklmnopqrstuvwxyz0123456789"){const n=t.length,r=crypto.getRandomValues(new Uint8Array(e));let c="";for(let i=0;i<e;i++)c+=t.charAt(r[i]%n);return c}exports.camelToKebab=k;exports.capitalize=z;exports.cloneDeep=f;exports.compareObjects=s;exports.generateId=P;exports.isESClass=O;exports.isNullish=u;exports.isObject=o;exports.kebabToCamel=A;exports.mergeDeep=l;exports.mixin=h;exports.omit=g;exports.pick=m;exports.snakeToDotted=w;exports.toPascalCase=C;exports.uncapitalize=D;
|
package/lib/string-DCGBU6em.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
function u(e) {
|
|
2
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3
|
-
}
|
|
4
|
-
function p(e) {
|
|
5
|
-
if (e === null || typeof e != "object")
|
|
6
|
-
return e;
|
|
7
|
-
if (e instanceof Date)
|
|
8
|
-
return new Date(e.getTime());
|
|
9
|
-
if (e instanceof Node)
|
|
10
|
-
return e;
|
|
11
|
-
const t = Array.isArray(e) ? [] : {};
|
|
12
|
-
for (const n in e)
|
|
13
|
-
e.hasOwnProperty(n) && (t[n] = p(e[n]));
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
function y(e, t, n = u) {
|
|
17
|
-
for (const r in t)
|
|
18
|
-
n(t[r]) ? (e[r] || Object.assign(e, { [r]: {} }), y(e[r], t[r], n)) : Object.assign(e, { [r]: t[r] });
|
|
19
|
-
return e;
|
|
20
|
-
}
|
|
21
|
-
function d(e) {
|
|
22
|
-
return e === null || typeof e == "undefined";
|
|
23
|
-
}
|
|
24
|
-
function a(e, t) {
|
|
25
|
-
if (typeof e != typeof t)
|
|
26
|
-
return !1;
|
|
27
|
-
if ([e, t].some((n) => d(n)))
|
|
28
|
-
return e === t;
|
|
29
|
-
if (Array.isArray(e)) {
|
|
30
|
-
const n = e.length > t.length ? e : t, r = e.length > t.length ? t : e;
|
|
31
|
-
return n.every(
|
|
32
|
-
(s, i) => a(s, r[i])
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
|
|
36
|
-
return e === t;
|
|
37
|
-
for (const n in e) {
|
|
38
|
-
if (!t.hasOwnProperty(n))
|
|
39
|
-
return !1;
|
|
40
|
-
if (typeof e[n] == "object" && typeof t[n] == "object") {
|
|
41
|
-
if (!a(e[n], t[n]))
|
|
42
|
-
return !1;
|
|
43
|
-
} else if (e[n] !== t[n])
|
|
44
|
-
return !1;
|
|
45
|
-
}
|
|
46
|
-
return !0;
|
|
47
|
-
}
|
|
48
|
-
function g(e, t) {
|
|
49
|
-
const n = {};
|
|
50
|
-
for (const r in e)
|
|
51
|
-
t.includes(r) && (n[r] = e[r]);
|
|
52
|
-
return n;
|
|
53
|
-
}
|
|
54
|
-
function h(e, t) {
|
|
55
|
-
const n = {};
|
|
56
|
-
for (const r in e)
|
|
57
|
-
t.includes(r) || (n[r] = e[r]);
|
|
58
|
-
return n;
|
|
59
|
-
}
|
|
60
|
-
function A(e) {
|
|
61
|
-
var t;
|
|
62
|
-
return typeof e == "function" && ((t = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : t.writable) === !1;
|
|
63
|
-
}
|
|
64
|
-
function O(e, ...t) {
|
|
65
|
-
t.forEach((n) => {
|
|
66
|
-
Object.getOwnPropertyNames(n.prototype).forEach((r) => {
|
|
67
|
-
console.log(r), Object.defineProperty(
|
|
68
|
-
e.prototype,
|
|
69
|
-
r,
|
|
70
|
-
Object.getOwnPropertyDescriptor(n.prototype, r) || /* @__PURE__ */ Object.create(null)
|
|
71
|
-
);
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function m(e, t = !1) {
|
|
76
|
-
let n = "";
|
|
77
|
-
return e.split("-").forEach((r, s) => {
|
|
78
|
-
if (s === 0 && !t)
|
|
79
|
-
n += r;
|
|
80
|
-
else {
|
|
81
|
-
const i = r[0], o = r.slice(1), l = i.toUpperCase() + o;
|
|
82
|
-
n += l;
|
|
83
|
-
}
|
|
84
|
-
}), n;
|
|
85
|
-
}
|
|
86
|
-
function w(e) {
|
|
87
|
-
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
88
|
-
}
|
|
89
|
-
function k(e) {
|
|
90
|
-
return e.split("_").join(".");
|
|
91
|
-
}
|
|
92
|
-
function z(e) {
|
|
93
|
-
return /^[a-z\d]+$/i.test(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e.replace(
|
|
94
|
-
/([a-z\d])([a-z\d]*)/gi,
|
|
95
|
-
(t, n, r) => n.toUpperCase() + r.toLowerCase()
|
|
96
|
-
).replace(/[^a-z\d]/gi, "");
|
|
97
|
-
}
|
|
98
|
-
function c(e, t) {
|
|
99
|
-
return e.slice(0, 1)[t]() + e.slice(1);
|
|
100
|
-
}
|
|
101
|
-
function f(e, t = !1, n) {
|
|
102
|
-
return t ? e.split(" ").map((r) => c(r, n)).join(" ") : c(e, n);
|
|
103
|
-
}
|
|
104
|
-
function C(e, t = !1) {
|
|
105
|
-
return f(e, t, "toUpperCase");
|
|
106
|
-
}
|
|
107
|
-
function D(e, t = !1) {
|
|
108
|
-
return f(e, t, "toLowerCase");
|
|
109
|
-
}
|
|
110
|
-
function P(e, t = "abcdefghijklmnopqrstuvwxyz0123456789") {
|
|
111
|
-
const n = t.length, r = crypto.getRandomValues(new Uint8Array(e));
|
|
112
|
-
let s = "";
|
|
113
|
-
for (let i = 0; i < e; i++)
|
|
114
|
-
s += t.charAt(r[i] % n);
|
|
115
|
-
return s;
|
|
116
|
-
}
|
|
117
|
-
export {
|
|
118
|
-
u as a,
|
|
119
|
-
p as b,
|
|
120
|
-
w as c,
|
|
121
|
-
d,
|
|
122
|
-
a as e,
|
|
123
|
-
O as f,
|
|
124
|
-
C as g,
|
|
125
|
-
P as h,
|
|
126
|
-
A as i,
|
|
127
|
-
m as k,
|
|
128
|
-
y as m,
|
|
129
|
-
h as o,
|
|
130
|
-
g as p,
|
|
131
|
-
k as s,
|
|
132
|
-
z as t,
|
|
133
|
-
D as u
|
|
134
|
-
};
|