aptechka 0.8.3 → 0.9.0
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/{Animation-BInSRYNr.cjs → Animation-BCA-DBje.cjs} +1 -1
- package/lib/{Animation-uimN7sdT.js → Animation-DrSYnbgb.js} +1 -1
- package/lib/{Composed-Iihn8fT4.cjs → Composed-7Fe7TW_T.cjs} +1 -1
- package/lib/{Composed-Fa7owymK.js → Composed-pnupzTOv.js} +1 -1
- package/lib/{Damped-yrNXlkDE.js → Damped-C2FuK_3K.js} +1 -1
- package/lib/{Damped-Da3EnNN4.cjs → Damped-CSEZ0qwp.cjs} +1 -1
- package/lib/{Derived-DIWinC7Y.js → Derived-CFnbeEgJ.js} +1 -1
- package/lib/{Derived-D9VrDuf9.cjs → Derived-Dko3EP7m.cjs} +1 -1
- package/lib/ElementConstructor-9S0f1yAH.cjs +1 -0
- package/lib/ElementConstructor-CZKbNIQK.js +366 -0
- package/lib/Resource-BhF6Tj1p.js +49 -0
- package/lib/Resource-WCQEgLpB.cjs +1 -0
- package/lib/{SourceManager--L_rA28b.js → SourceManager-CmhlHGx7.js} +1 -1
- package/lib/{SourceManager-D6D2LVKf.cjs → SourceManager-DYnGpBi1.cjs} +1 -1
- package/lib/{Store-Qr3SNOSf.js → Store-Dsft7GtM.js} +1 -1
- package/lib/{Store-Cr3VaD9G.cjs → Store-kzJycezD.cjs} +1 -1
- package/lib/{Tweened-CjgvoOwL.js → Tweened-BrD2cPSC.js} +1 -1
- package/lib/{Tweened-DksN-Rz6.cjs → Tweened-D6dAu8Zi.cjs} +1 -1
- package/lib/{Viewport-BBYt1Ivy.cjs → Viewport-DRNfjjDY.cjs} +1 -1
- package/lib/{Viewport-Cgtq2I_K.js → Viewport-Ud7nellV.js} +1 -1
- package/lib/_createStore-Cf1MyeHa.cjs +1 -0
- package/lib/_createStore-Ck9bHolX.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +1 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +110 -122
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -2
- package/lib/canvas/index.js +69 -75
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.d.ts +1 -3
- package/lib/checkbox/index.js +42 -46
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/counter/index.d.ts +1 -3
- package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-C2gpLy4r.js} +1 -1
- package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-Di9WRypw.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -2
- package/lib/globals-DMjysUXI.js +8 -0
- package/lib/globals-bYKki-b9.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +8 -16
- package/lib/index-BtB-3MG7.js +265 -0
- package/lib/index-DQo2-dnB.cjs +9 -0
- package/lib/instantiate-BPZZn8jK.js +134 -0
- package/lib/instantiate-BWM-ipPW.cjs +1 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +6 -0
- package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
- package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
- package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
- package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
- package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
- package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
- package/lib/jsx/hooks/onAnimationFrame.js +22 -0
- package/lib/jsx/hooks/onElementResize.cjs +1 -0
- package/lib/jsx/hooks/onElementResize.d.ts +5 -0
- package/lib/jsx/hooks/onElementResize.js +11 -0
- package/lib/jsx/hooks/onIntersection.cjs +1 -0
- package/lib/jsx/hooks/onIntersection.d.ts +5 -0
- package/lib/jsx/hooks/onIntersection.js +11 -0
- package/lib/jsx/hooks/onWindowResize.cjs +1 -0
- package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
- package/lib/jsx/hooks/onWindowResize.js +8 -0
- package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
- package/lib/jsx/hooks/store/createResource.d.ts +3 -0
- package/lib/jsx/hooks/store/createStore.d.ts +3 -0
- package/lib/jsx/hooks/store/index.cjs +1 -0
- package/lib/jsx/hooks/store/index.d.ts +5 -0
- package/lib/jsx/hooks/store/index.js +27 -0
- package/lib/jsx/hooks/watchAttribute.cjs +1 -0
- package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
- package/lib/jsx/hooks/watchAttribute.js +17 -0
- package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
- package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
- package/lib/jsx/hooks/watchCSSProperty.js +17 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +13 -0
- package/lib/jsx/index.js +91 -0
- package/lib/jsx/instantiate.d.ts +5 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/jsx/render.d.ts +6 -0
- package/lib/jsx/type.d.ts +192 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +33 -36
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +33 -33
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/pointer/PointerElement.d.ts +1 -2
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +106 -118
- package/lib/popover/PopoverButtonElement.d.ts +1 -2
- package/lib/popover/PopoverElement.d.ts +1 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +109 -125
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +76 -73
- package/lib/scroll/ScrollElement.d.ts +1 -2
- package/lib/scroll/ScrollUserElement.d.ts +1 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +674 -753
- package/lib/select/SelectElement.d.ts +1 -3
- package/lib/select/SelectUserElement.d.ts +1 -2
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +105 -108
- package/lib/slicer/SlicerElement.d.ts +1 -2
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +88 -106
- package/lib/source/SourceElement.d.ts +1 -2
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +20 -21
- package/lib/store/Derived.d.ts +3 -3
- package/lib/store/DerivedArray.d.ts +8 -0
- package/lib/store/Keyed.d.ts +13 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.js +32 -32
- package/lib/tags-BBOGIzDK.cjs +1 -0
- package/lib/tags-CefGDQtF.js +485 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerFieldElement.d.ts +1 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +1 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -2
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +392 -472
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +26 -30
- package/package.json +65 -9
- package/lib/custom-element/index.cjs +0 -1
- package/lib/custom-element/index.d.ts +0 -8
- package/lib/custom-element/index.js +0 -30
- package/lib/index-CzpP1Tg6.cjs +0 -9
- package/lib/index-Dwd_62sm.js +0 -301
- package/lib/tags-CAfasCGV.cjs +0 -1
- package/lib/tags-D9lNDPX8.js +0 -848
package/lib/tweaker/index.js
CHANGED
|
@@ -1,103 +1,98 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
3
|
-
throw TypeError("Cannot " +
|
|
1
|
+
var ve = (l, r, e) => {
|
|
2
|
+
if (!r.has(l))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
5
|
+
var t = (l, r, e) => (ve(l, r, "read from private field"), e ? e.call(l) : r.get(l)), o = (l, r, e) => {
|
|
6
|
+
if (r.has(l))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
import { s as
|
|
13
|
-
import { c as
|
|
14
|
-
import { d as
|
|
15
|
-
import { s as
|
|
16
|
-
import { e as
|
|
17
|
-
import { c as
|
|
18
|
-
import { a as
|
|
8
|
+
r instanceof WeakSet ? r.add(l) : r.set(l, e);
|
|
9
|
+
}, n = (l, r, e, s) => (ve(l, r, "write to private field"), s ? s.call(l, e) : r.set(l, e), e);
|
|
10
|
+
var m = (l, r, e) => (ve(l, r, "access private method"), e);
|
|
11
|
+
import { i as We } from "../browser-0zX67oeU.js";
|
|
12
|
+
import { s as R, a as N, S as Ce } from "../Store-Dsft7GtM.js";
|
|
13
|
+
import { c as Be } from "../file-lxi_oXJf.js";
|
|
14
|
+
import { d as Xe } from "../function-C10DGppn.js";
|
|
15
|
+
import { s as Te } from "../gestures-D2Fdra_G.js";
|
|
16
|
+
import { e as g, $ as me, a as Ye, D as u, aA as qe, p as B, a2 as Ge } from "../tags-CefGDQtF.js";
|
|
17
|
+
import { c as E } from "../createStylesheet-C2gpLy4r.js";
|
|
18
|
+
import { a as Qe } from "../Viewport-Ud7nellV.js";
|
|
19
19
|
import { aptechkaTheme as h } from "../theme/index.js";
|
|
20
|
-
import { a as
|
|
21
|
-
import { a as
|
|
20
|
+
import { a as Ue } from "../index-BtB-3MG7.js";
|
|
21
|
+
import { a as _e } from "../events-CJTUMSLU.js";
|
|
22
22
|
import "../checkbox/index.js";
|
|
23
|
-
import { c as
|
|
24
|
-
import { n as
|
|
25
|
-
import { elementResizer as
|
|
26
|
-
const
|
|
27
|
-
var
|
|
28
|
-
class
|
|
23
|
+
import { c as et } from "../math-BOBiC4TN.js";
|
|
24
|
+
import { n as ze, t as tt } from "../polyfills-X6KXuHg-.js";
|
|
25
|
+
import { elementResizer as Re } from "../element-resizer/index.js";
|
|
26
|
+
const Fe = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', Me = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', st = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', it = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';
|
|
27
|
+
var P, w, k;
|
|
28
|
+
class rt {
|
|
29
29
|
constructor() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.scrollValue = 0,
|
|
30
|
+
o(this, P, void 0);
|
|
31
|
+
o(this, w, void 0);
|
|
32
|
+
o(this, k, void 0);
|
|
33
|
+
this.scrollValue = 0, n(this, P, ""), n(this, w, []), n(this, k, {}), n(this, P, R.projectName + "-studio");
|
|
34
34
|
}
|
|
35
|
-
openPanel(
|
|
36
|
-
|
|
35
|
+
openPanel(r) {
|
|
36
|
+
t(this, w).includes(r) || t(this, w).push(r);
|
|
37
37
|
}
|
|
38
|
-
closePanel(
|
|
39
|
-
|
|
38
|
+
closePanel(r) {
|
|
39
|
+
n(this, w, t(this, w).filter((e) => e !== r));
|
|
40
40
|
}
|
|
41
|
-
isPanelOpened(
|
|
42
|
-
return
|
|
41
|
+
isPanelOpened(r) {
|
|
42
|
+
return t(this, w).includes(r);
|
|
43
43
|
}
|
|
44
|
-
changedSizes(
|
|
45
|
-
return
|
|
44
|
+
changedSizes(r) {
|
|
45
|
+
return t(this, k)[r];
|
|
46
46
|
}
|
|
47
|
-
changeSize(
|
|
48
|
-
|
|
47
|
+
changeSize(r, e) {
|
|
48
|
+
e ? t(this, k)[r] = e : delete t(this, k)[r];
|
|
49
49
|
}
|
|
50
50
|
save() {
|
|
51
|
-
const
|
|
52
|
-
openedPanels:
|
|
53
|
-
changedSizes:
|
|
51
|
+
const r = {
|
|
52
|
+
openedPanels: t(this, w),
|
|
53
|
+
changedSizes: t(this, k),
|
|
54
54
|
scrollValue: this.scrollValue
|
|
55
55
|
};
|
|
56
|
-
localStorage.setItem(
|
|
56
|
+
localStorage.setItem(t(this, P), JSON.stringify(r)), R.saveState();
|
|
57
57
|
}
|
|
58
58
|
load() {
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
59
|
+
R.loadState();
|
|
60
|
+
const r = localStorage.getItem(t(this, P));
|
|
61
|
+
if (r)
|
|
62
62
|
try {
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
} catch (
|
|
66
|
-
console.error(
|
|
63
|
+
const e = JSON.parse(r);
|
|
64
|
+
e.openedPanels && n(this, w, e.openedPanels), e.changedSizes && n(this, k, e.changedSizes), e.scrollValue && (this.scrollValue = e.scrollValue);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
console.error(e);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
const
|
|
70
|
+
P = new WeakMap(), w = new WeakMap(), k = new WeakMap();
|
|
71
|
+
const f = new rt();
|
|
72
72
|
var T;
|
|
73
|
-
class
|
|
74
|
-
constructor(...
|
|
73
|
+
class J extends HTMLElement {
|
|
74
|
+
constructor(...e) {
|
|
75
75
|
super();
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
o(this, T, void 0);
|
|
77
|
+
n(this, T, e);
|
|
78
78
|
}
|
|
79
|
-
addStore(
|
|
80
|
-
|
|
79
|
+
addStore(e) {
|
|
80
|
+
t(this, T).push(e);
|
|
81
81
|
}
|
|
82
82
|
get firstStore() {
|
|
83
|
-
return
|
|
83
|
+
return t(this, T)[0];
|
|
84
84
|
}
|
|
85
85
|
get stores() {
|
|
86
|
-
return
|
|
86
|
+
return t(this, T);
|
|
87
87
|
}
|
|
88
|
-
updateStores(
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
updateStores(e) {
|
|
89
|
+
t(this, T).forEach((s) => {
|
|
90
|
+
s.current = e;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
T = new WeakMap();
|
|
95
|
-
|
|
96
|
-
for (var s = i > 1 ? void 0 : i ? bt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
97
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
98
|
-
return i && s && mt(e, r, s), s;
|
|
99
|
-
};
|
|
100
|
-
const yt = $({
|
|
95
|
+
const ot = E({
|
|
101
96
|
":host": {
|
|
102
97
|
width: "100%",
|
|
103
98
|
display: "inline-flex",
|
|
@@ -110,33 +105,29 @@ const yt = $({
|
|
|
110
105
|
borderRadius: h.borderRadiusSmall.var
|
|
111
106
|
}
|
|
112
107
|
});
|
|
113
|
-
|
|
114
|
-
constructor(...
|
|
115
|
-
super(...
|
|
108
|
+
class Le extends J {
|
|
109
|
+
constructor(...r) {
|
|
110
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ot), g(this, {
|
|
116
111
|
children: [
|
|
117
|
-
|
|
118
|
-
onChange: (
|
|
119
|
-
this.updateStores(
|
|
112
|
+
g("e-checkbox", {
|
|
113
|
+
onChange: (s) => {
|
|
114
|
+
this.updateStores(s.currentTarget.checked);
|
|
120
115
|
},
|
|
121
|
-
ref: (
|
|
122
|
-
this.firstStore.subscribe((
|
|
123
|
-
|
|
116
|
+
ref: (s) => {
|
|
117
|
+
this.firstStore.subscribe((i) => {
|
|
118
|
+
s.checked = i.current;
|
|
124
119
|
});
|
|
125
120
|
}
|
|
126
121
|
})
|
|
127
122
|
]
|
|
128
123
|
});
|
|
129
124
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
137
|
-
return i && s && St(e, r, s), s;
|
|
138
|
-
};
|
|
139
|
-
const Ct = $({
|
|
125
|
+
}
|
|
126
|
+
customElements.get("e-tweaker-boolean-manager") || customElements.define(
|
|
127
|
+
"e-tweaker-boolean-manager",
|
|
128
|
+
Le
|
|
129
|
+
);
|
|
130
|
+
const nt = E({
|
|
140
131
|
":host": {
|
|
141
132
|
width: "100%",
|
|
142
133
|
display: "inline-flex",
|
|
@@ -159,65 +150,44 @@ const Ct = $({
|
|
|
159
150
|
height: "calc(var(--height-input) * 0.93)"
|
|
160
151
|
}
|
|
161
152
|
});
|
|
162
|
-
|
|
163
|
-
constructor(...
|
|
164
|
-
super(...
|
|
153
|
+
class Pe extends J {
|
|
154
|
+
constructor(...r) {
|
|
155
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(nt), g(this, {
|
|
165
156
|
children: [
|
|
166
|
-
|
|
157
|
+
me({
|
|
167
158
|
type: "color",
|
|
168
159
|
value: this.firstStore,
|
|
169
|
-
onInput: (
|
|
170
|
-
this.updateStores(
|
|
160
|
+
onInput: (s) => {
|
|
161
|
+
this.updateStores(s.currentTarget.value);
|
|
171
162
|
}
|
|
172
163
|
})
|
|
173
164
|
]
|
|
174
165
|
});
|
|
175
166
|
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
], We);
|
|
180
|
-
var Pt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, $t = (t, e, r, i) => {
|
|
181
|
-
for (var s = i > 1 ? void 0 : i ? Mt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
182
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
183
|
-
return i && s && Pt(e, r, s), s;
|
|
184
|
-
};
|
|
185
|
-
const zt = $({
|
|
167
|
+
}
|
|
168
|
+
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", Pe);
|
|
169
|
+
const at = E({
|
|
186
170
|
a: {
|
|
187
171
|
color: "inherit",
|
|
188
172
|
fontSize: "var(--font-size-small)"
|
|
189
173
|
}
|
|
190
174
|
});
|
|
191
|
-
|
|
192
|
-
constructor(...
|
|
193
|
-
var
|
|
194
|
-
super(...
|
|
175
|
+
class Ie extends J {
|
|
176
|
+
constructor(...r) {
|
|
177
|
+
var s, i;
|
|
178
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(at), console.log(this.firstStore), g(this, {
|
|
195
179
|
children: [
|
|
196
|
-
|
|
180
|
+
Ye({
|
|
197
181
|
href: this.firstStore,
|
|
198
|
-
target: (
|
|
182
|
+
target: (i = (s = this.firstStore.passport) == null ? void 0 : s.manager) != null && i.sameWindow ? "_self" : "_blank",
|
|
199
183
|
children: this.firstStore
|
|
200
184
|
})
|
|
201
185
|
]
|
|
202
186
|
});
|
|
203
187
|
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
], Te);
|
|
208
|
-
var Et = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Wt = (t, e, r, i) => {
|
|
209
|
-
for (var s = i > 1 ? void 0 : i ? Ot(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
210
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
211
|
-
return i && s && Et(e, r, s), s;
|
|
212
|
-
}, Ne = (t, e, r) => {
|
|
213
|
-
if (!e.has(t))
|
|
214
|
-
throw TypeError("Cannot " + r);
|
|
215
|
-
}, o = (t, e, r) => (Ne(t, e, "read from private field"), r ? r.call(t) : e.get(t)), p = (t, e, r) => {
|
|
216
|
-
if (e.has(t))
|
|
217
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
218
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
219
|
-
}, z = (t, e, r, i) => (Ne(t, e, "write to private field"), e.set(t, r), r), m = (t, e, r) => (Ne(t, e, "access private method"), r), V, se, q, O, F, ne, oe, C, Z, le, he, L, N, ce, De, Se, Ke, ie, ke, de;
|
|
220
|
-
const Tt = $({
|
|
188
|
+
}
|
|
189
|
+
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Ie);
|
|
190
|
+
const lt = E({
|
|
221
191
|
":host": {
|
|
222
192
|
width: "100%",
|
|
223
193
|
display: "flex",
|
|
@@ -281,78 +251,96 @@ const Tt = $({
|
|
|
281
251
|
opacity: 0.3
|
|
282
252
|
}
|
|
283
253
|
});
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
254
|
+
var I, A, D, x, F, X, Y, y, V, q, G, M, $, Q, Se, U, ye, H, ce, _;
|
|
255
|
+
class Ve extends J {
|
|
256
|
+
constructor(...e) {
|
|
257
|
+
var i, a, d, c, S, L, W, xe;
|
|
258
|
+
super(...e);
|
|
259
|
+
o(this, M);
|
|
260
|
+
o(this, Q);
|
|
261
|
+
o(this, U);
|
|
262
|
+
o(this, H);
|
|
263
|
+
o(this, I, []);
|
|
264
|
+
o(this, A, []);
|
|
265
|
+
o(this, D, void 0);
|
|
266
|
+
o(this, x, void 0);
|
|
267
|
+
o(this, F, void 0);
|
|
268
|
+
o(this, X, void 0);
|
|
269
|
+
o(this, Y, void 0);
|
|
270
|
+
o(this, y, void 0);
|
|
271
|
+
o(this, V, !1);
|
|
272
|
+
o(this, q, (e) => {
|
|
273
|
+
const s = m(this, M, $).call(this, e);
|
|
274
|
+
return s.map((i, a) => {
|
|
275
|
+
const d = typeof i == "string" ? parseFloat(i) || t(this, x) : i, c = et(d, t(this, x), t(this, F)), S = tt(c, t(this, D));
|
|
276
|
+
s[a] = S;
|
|
277
|
+
}), t(this, Y) === "number" ? s[0] : s;
|
|
278
|
+
});
|
|
279
|
+
o(this, G, () => {
|
|
280
|
+
m(this, M, $).call(this).map((e, s) => {
|
|
281
|
+
const i = t(this, I)[s];
|
|
282
|
+
i && (i.value = (e || 0).toString());
|
|
283
|
+
}), m(this, Q, Se).call(this);
|
|
284
|
+
});
|
|
285
|
+
o(this, _, () => {
|
|
286
|
+
m(this, Q, Se).call(this);
|
|
287
|
+
});
|
|
288
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(lt), n(this, x, ze(
|
|
289
|
+
(a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.min,
|
|
302
290
|
-1 / 0
|
|
303
|
-
)),
|
|
304
|
-
(
|
|
291
|
+
)), n(this, F, ze(
|
|
292
|
+
(c = (d = this.firstStore.passport) == null ? void 0 : d.manager) == null ? void 0 : c.max,
|
|
305
293
|
1 / 0
|
|
306
|
-
)),
|
|
307
|
-
class:
|
|
308
|
-
children: m(this,
|
|
294
|
+
)), n(this, D, ((L = (S = this.firstStore.passport) == null ? void 0 : S.manager) == null ? void 0 : L.step) || 0.01), n(this, X, ((xe = (W = this.firstStore.passport) == null ? void 0 : W.manager) == null ? void 0 : xe.ease) || 1), n(this, Y, Array.isArray(this.firstStore.current) ? "array" : "number"), n(this, y, isFinite(t(this, F)) && isFinite(t(this, x))), g(this, {
|
|
295
|
+
class: t(this, y) ? "" : "infinite",
|
|
296
|
+
children: m(this, M, $).call(this).map((De, de) => u({
|
|
309
297
|
class: "inputs-wrapper",
|
|
310
298
|
children: [
|
|
311
|
-
|
|
299
|
+
me({
|
|
312
300
|
type: "number",
|
|
313
|
-
step:
|
|
314
|
-
min:
|
|
315
|
-
max:
|
|
316
|
-
ref: (
|
|
317
|
-
value:
|
|
301
|
+
step: t(this, D),
|
|
302
|
+
min: t(this, x),
|
|
303
|
+
max: t(this, F),
|
|
304
|
+
ref: (C) => t(this, I).push(C),
|
|
305
|
+
value: De,
|
|
318
306
|
onChange: () => {
|
|
319
307
|
this.updateStores(
|
|
320
|
-
|
|
308
|
+
t(this, I).map((C) => parseFloat(C.value))
|
|
321
309
|
);
|
|
322
310
|
}
|
|
323
311
|
}),
|
|
324
|
-
|
|
312
|
+
u({
|
|
325
313
|
class: "drag",
|
|
326
314
|
children: [
|
|
327
|
-
|
|
315
|
+
u({
|
|
328
316
|
class: "drag-knob",
|
|
329
|
-
ref: (
|
|
330
|
-
onPointerdown: (
|
|
331
|
-
|
|
332
|
-
const
|
|
333
|
-
if (
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
(
|
|
337
|
-
const
|
|
338
|
-
if (
|
|
339
|
-
const
|
|
340
|
-
|
|
317
|
+
ref: (C) => t(this, A).push(C),
|
|
318
|
+
onPointerdown: (C) => {
|
|
319
|
+
C.preventDefault(), n(this, V, !0);
|
|
320
|
+
const fe = m(this, M, $).call(this), He = fe[de], z = t(this, A)[de], Ke = t(this, I)[de];
|
|
321
|
+
if (z && Ke) {
|
|
322
|
+
const we = z.parentElement, Oe = m(this, U, ye).call(this);
|
|
323
|
+
we.classList.add("grabbing"), Te(
|
|
324
|
+
(be) => {
|
|
325
|
+
const Ee = be.x - C.x, Ze = t(this, y) ? we.offsetWidth / (Oe || 1) : 1, je = He + Ee / Ze * t(this, X);
|
|
326
|
+
if (fe[de] = je, !t(this, y)) {
|
|
327
|
+
const Je = m(this, H, ce).call(this, z, 0);
|
|
328
|
+
z.style.transform = `translateX(${Je + Ee}px)`;
|
|
341
329
|
}
|
|
342
|
-
this.updateStores([...
|
|
330
|
+
this.updateStores([...fe]);
|
|
343
331
|
},
|
|
344
332
|
() => {
|
|
345
|
-
if (
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
|
|
333
|
+
if (n(this, V, !1), !t(this, y)) {
|
|
334
|
+
const be = m(this, H, ce).call(this, z, 0);
|
|
335
|
+
z.style.transition = "transform 0.1s", z.style.transform = `translateX(${be}px)`, we.classList.remove("grabbing"), setTimeout(() => {
|
|
336
|
+
z.style.transition = "";
|
|
349
337
|
}, 100);
|
|
350
338
|
}
|
|
351
339
|
}
|
|
352
340
|
);
|
|
353
341
|
}
|
|
354
342
|
},
|
|
355
|
-
children:
|
|
343
|
+
children: u({
|
|
356
344
|
class: "drag-knob-inner"
|
|
357
345
|
})
|
|
358
346
|
})
|
|
@@ -363,56 +351,30 @@ let Re = class extends H {
|
|
|
363
351
|
});
|
|
364
352
|
}
|
|
365
353
|
connectedCallback() {
|
|
366
|
-
this.firstStore.addMiddleware(
|
|
354
|
+
this.firstStore.addMiddleware(t(this, q)), this.firstStore.subscribe(t(this, G)), Re.subscribe(this, t(this, _));
|
|
367
355
|
}
|
|
368
356
|
disconnectedCallback() {
|
|
369
|
-
this.firstStore.removeMiddleware(
|
|
357
|
+
this.firstStore.removeMiddleware(t(this, q)), this.firstStore.unsubscribe(t(this, G)), Re.unsubscribe(t(this, _));
|
|
370
358
|
}
|
|
371
|
-
}
|
|
372
|
-
V =
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
Z = /* @__PURE__ */ new WeakMap();
|
|
381
|
-
le = /* @__PURE__ */ new WeakMap();
|
|
382
|
-
he = /* @__PURE__ */ new WeakMap();
|
|
383
|
-
L = /* @__PURE__ */ new WeakSet();
|
|
384
|
-
N = function(t = this.firstStore.current) {
|
|
385
|
-
return Array.isArray(t) ? t : [t];
|
|
386
|
-
};
|
|
387
|
-
ce = /* @__PURE__ */ new WeakSet();
|
|
388
|
-
De = function() {
|
|
389
|
-
m(this, L, N).call(this).map((t, e) => {
|
|
390
|
-
const r = o(this, se)[e];
|
|
391
|
-
if (r && (!o(this, Z) || o(this, Z) && o(this, C))) {
|
|
392
|
-
const i = m(this, ie, ke).call(this, r, t);
|
|
393
|
-
r.style.transform = `translateX(${i}px)`;
|
|
359
|
+
}
|
|
360
|
+
I = new WeakMap(), A = new WeakMap(), D = new WeakMap(), x = new WeakMap(), F = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), y = new WeakMap(), V = new WeakMap(), q = new WeakMap(), G = new WeakMap(), M = new WeakSet(), $ = function(e = this.firstStore.current) {
|
|
361
|
+
return Array.isArray(e) ? e : [e];
|
|
362
|
+
}, Q = new WeakSet(), Se = function() {
|
|
363
|
+
m(this, M, $).call(this).map((e, s) => {
|
|
364
|
+
const i = t(this, A)[s];
|
|
365
|
+
if (i && (!t(this, V) || t(this, V) && t(this, y))) {
|
|
366
|
+
const a = m(this, H, ce).call(this, i, e);
|
|
367
|
+
i.style.transform = `translateX(${a}px)`;
|
|
394
368
|
}
|
|
395
369
|
});
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
return (r.offsetWidth - t.offsetWidth) * s;
|
|
405
|
-
};
|
|
406
|
-
de = /* @__PURE__ */ new WeakMap();
|
|
407
|
-
Re = Wt([
|
|
408
|
-
M("e-tweaker-number-manager")
|
|
409
|
-
], Re);
|
|
410
|
-
var Dt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, Ft = (t, e, r, i) => {
|
|
411
|
-
for (var s = i > 1 ? void 0 : i ? Rt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
412
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
413
|
-
return i && s && Dt(e, r, s), s;
|
|
414
|
-
};
|
|
415
|
-
const Lt = $({
|
|
370
|
+
}, U = new WeakSet(), ye = function() {
|
|
371
|
+
return t(this, y) ? t(this, F) - t(this, x) : 0;
|
|
372
|
+
}, H = new WeakSet(), ce = function(e, s) {
|
|
373
|
+
const i = e.parentElement, a = m(this, U, ye).call(this), d = a ? s / a : 0.5;
|
|
374
|
+
return (i.offsetWidth - e.offsetWidth) * d;
|
|
375
|
+
}, _ = new WeakMap();
|
|
376
|
+
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Ve);
|
|
377
|
+
const ht = E({
|
|
416
378
|
"e-select": {
|
|
417
379
|
display: "block",
|
|
418
380
|
width: "100%",
|
|
@@ -446,45 +408,38 @@ const Lt = $({
|
|
|
446
408
|
transform: "scaleY(-1)"
|
|
447
409
|
}
|
|
448
410
|
});
|
|
449
|
-
|
|
450
|
-
constructor(...
|
|
451
|
-
var
|
|
452
|
-
super(...
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
children:
|
|
411
|
+
class $e extends J {
|
|
412
|
+
constructor(...r) {
|
|
413
|
+
var i, a;
|
|
414
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ht);
|
|
415
|
+
const s = ((a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.variants) || [];
|
|
416
|
+
g(this, {
|
|
417
|
+
children: g("e-select", {
|
|
456
418
|
value: this.firstStore,
|
|
457
|
-
onChange: (
|
|
458
|
-
this.updateStores(
|
|
419
|
+
onChange: (d) => {
|
|
420
|
+
this.updateStores(d.currentTarget.value);
|
|
459
421
|
},
|
|
460
422
|
lightChildren: [
|
|
461
|
-
|
|
423
|
+
g("e-select-head", {
|
|
462
424
|
lightChildren: [
|
|
463
|
-
|
|
425
|
+
qe({
|
|
464
426
|
"data-value-holder": ""
|
|
465
427
|
})
|
|
466
428
|
]
|
|
467
429
|
}),
|
|
468
|
-
...
|
|
469
|
-
(
|
|
470
|
-
lightChildren:
|
|
471
|
-
default:
|
|
430
|
+
...s.map(
|
|
431
|
+
(d, c) => g("e-select-option", {
|
|
432
|
+
lightChildren: d,
|
|
433
|
+
default: c === 0 ? !0 : null
|
|
472
434
|
})
|
|
473
435
|
)
|
|
474
436
|
]
|
|
475
437
|
})
|
|
476
438
|
});
|
|
477
439
|
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
], Fe);
|
|
482
|
-
var It = Object.defineProperty, At = Object.getOwnPropertyDescriptor, Vt = (t, e, r, i) => {
|
|
483
|
-
for (var s = i > 1 ? void 0 : i ? At(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
484
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
485
|
-
return i && s && It(e, r, s), s;
|
|
486
|
-
};
|
|
487
|
-
const Nt = $({
|
|
440
|
+
}
|
|
441
|
+
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", $e);
|
|
442
|
+
const dt = E({
|
|
488
443
|
":host": {
|
|
489
444
|
width: "100%",
|
|
490
445
|
display: "flex",
|
|
@@ -506,48 +461,33 @@ const Nt = $({
|
|
|
506
461
|
borderRadius: h.borderRadius.var
|
|
507
462
|
}
|
|
508
463
|
});
|
|
509
|
-
|
|
510
|
-
constructor(...
|
|
511
|
-
super(...
|
|
464
|
+
class Ne extends J {
|
|
465
|
+
constructor(...r) {
|
|
466
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(dt), g(this, {
|
|
512
467
|
children: [
|
|
513
|
-
|
|
468
|
+
me({
|
|
514
469
|
class: "text-input",
|
|
515
470
|
type: "string",
|
|
516
471
|
value: this.firstStore,
|
|
517
|
-
onChange: (
|
|
472
|
+
onChange: (s) => {
|
|
518
473
|
this.updateStores(
|
|
519
|
-
|
|
474
|
+
s.currentTarget.value
|
|
520
475
|
);
|
|
521
476
|
}
|
|
522
477
|
})
|
|
523
478
|
]
|
|
524
479
|
});
|
|
525
480
|
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
string: Le
|
|
537
|
-
};
|
|
538
|
-
var Zt = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, jt = (t, e, r, i) => {
|
|
539
|
-
for (var s = i > 1 ? void 0 : i ? Ht(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
540
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
541
|
-
return i && s && Zt(e, r, s), s;
|
|
542
|
-
}, qe = (t, e, r) => {
|
|
543
|
-
if (!e.has(t))
|
|
544
|
-
throw TypeError("Cannot " + r);
|
|
545
|
-
}, c = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), R = (t, e, r) => {
|
|
546
|
-
if (e.has(t))
|
|
547
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
548
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
549
|
-
}, A = (t, e, r, i) => (qe(t, e, "write to private field"), e.set(t, r), r), S, Q, U, ee, te, pe, ue;
|
|
550
|
-
const Bt = $({
|
|
481
|
+
}
|
|
482
|
+
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Ne);
|
|
483
|
+
const ct = {
|
|
484
|
+
boolean: Le,
|
|
485
|
+
color: Pe,
|
|
486
|
+
link: Ie,
|
|
487
|
+
number: Ve,
|
|
488
|
+
select: $e,
|
|
489
|
+
string: Ne
|
|
490
|
+
}, pt = E({
|
|
551
491
|
":host": {
|
|
552
492
|
display: "grid",
|
|
553
493
|
gridAutoFlow: "column",
|
|
@@ -592,48 +532,57 @@ const Bt = $({
|
|
|
592
532
|
height: "100%"
|
|
593
533
|
}
|
|
594
534
|
});
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
535
|
+
var b, K, O, Z, j, ee, te;
|
|
536
|
+
class ke extends HTMLElement {
|
|
537
|
+
constructor(e) {
|
|
538
|
+
var a, d, c, S;
|
|
539
|
+
super();
|
|
540
|
+
o(this, b, []);
|
|
541
|
+
o(this, K, void 0);
|
|
542
|
+
o(this, O, void 0);
|
|
543
|
+
o(this, Z, !1);
|
|
544
|
+
o(this, j, void 0);
|
|
545
|
+
o(this, ee, () => {
|
|
546
|
+
N.current.find((e) => t(this, b).includes(e)) || this.remove();
|
|
547
|
+
});
|
|
548
|
+
o(this, te, (e) => {
|
|
549
|
+
t(this, Z) && ((e.metaKey || e.ctrlKey) && e.code === "KeyC" ? navigator.clipboard.writeText(t(this, b)[0].current) : (e.metaKey || e.ctrlKey) && e.code === "KeyR" && (t(this, b).forEach((s) => {
|
|
550
|
+
s.reset();
|
|
551
|
+
}), e.preventDefault()));
|
|
552
|
+
});
|
|
553
|
+
n(this, b, [e.store]), n(this, K, e.store.passport.name), n(this, O, t(this, K).split(".").slice(-1).toString());
|
|
554
|
+
const s = ((d = (a = e.store.passport) == null ? void 0 : a.manager) == null ? void 0 : d.type) || "string";
|
|
555
|
+
n(this, j, new ct[s](t(this, b)[0])), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(pt), g(this, {
|
|
607
556
|
class: {
|
|
608
|
-
disabled: ((
|
|
557
|
+
disabled: ((S = (c = e.store.passport) == null ? void 0 : c.manager) == null ? void 0 : S.disabled) || !1
|
|
609
558
|
},
|
|
610
559
|
onPointerleave: () => {
|
|
611
|
-
|
|
560
|
+
n(this, Z, !1);
|
|
612
561
|
},
|
|
613
562
|
onPointerenter: () => {
|
|
614
|
-
|
|
563
|
+
n(this, Z, !0);
|
|
615
564
|
},
|
|
616
565
|
children: [
|
|
617
|
-
|
|
566
|
+
u({
|
|
618
567
|
class: "head",
|
|
619
568
|
children: [
|
|
620
|
-
|
|
621
|
-
|
|
569
|
+
u({ class: "name", children: t(this, O) + ":" }),
|
|
570
|
+
u({
|
|
622
571
|
class: "head-buttons",
|
|
623
572
|
children: [
|
|
624
|
-
|
|
573
|
+
B({
|
|
625
574
|
class: "head-button",
|
|
626
|
-
children:
|
|
575
|
+
children: Me,
|
|
627
576
|
onClick: () => {
|
|
628
|
-
navigator.clipboard.writeText(
|
|
577
|
+
navigator.clipboard.writeText(t(this, b)[0].current);
|
|
629
578
|
}
|
|
630
579
|
}),
|
|
631
|
-
|
|
580
|
+
B({
|
|
632
581
|
class: "head-button",
|
|
633
|
-
children:
|
|
582
|
+
children: Fe,
|
|
634
583
|
onClick: () => {
|
|
635
|
-
|
|
636
|
-
|
|
584
|
+
t(this, b).forEach((L) => {
|
|
585
|
+
L.reset();
|
|
637
586
|
});
|
|
638
587
|
}
|
|
639
588
|
})
|
|
@@ -641,52 +590,32 @@ let xe = class extends Ve {
|
|
|
641
590
|
})
|
|
642
591
|
]
|
|
643
592
|
}),
|
|
644
|
-
|
|
593
|
+
t(this, j)
|
|
645
594
|
]
|
|
646
595
|
});
|
|
647
596
|
}
|
|
648
597
|
get key() {
|
|
649
|
-
return
|
|
598
|
+
return t(this, K);
|
|
650
599
|
}
|
|
651
600
|
get name() {
|
|
652
|
-
return
|
|
601
|
+
return t(this, O);
|
|
653
602
|
}
|
|
654
603
|
get stores() {
|
|
655
|
-
return
|
|
604
|
+
return t(this, b);
|
|
656
605
|
}
|
|
657
|
-
addStore(
|
|
658
|
-
|
|
606
|
+
addStore(e) {
|
|
607
|
+
t(this, j).addStore(e);
|
|
659
608
|
}
|
|
660
609
|
connectedCallback() {
|
|
661
|
-
|
|
610
|
+
N.subscribe(t(this, ee)), addEventListener("keydown", t(this, te)), _e(this);
|
|
662
611
|
}
|
|
663
612
|
disconnectedCallback() {
|
|
664
|
-
|
|
613
|
+
N.unsubscribe(t(this, ee)), removeEventListener("keydown", t(this, te));
|
|
665
614
|
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
ee = /* @__PURE__ */ new WeakMap();
|
|
671
|
-
te = /* @__PURE__ */ new WeakMap();
|
|
672
|
-
pe = /* @__PURE__ */ new WeakMap();
|
|
673
|
-
ue = /* @__PURE__ */ new WeakMap();
|
|
674
|
-
xe = jt([
|
|
675
|
-
M("e-tweaker-field")
|
|
676
|
-
], xe);
|
|
677
|
-
var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Xt = (t, e, r, i) => {
|
|
678
|
-
for (var s = i > 1 ? void 0 : i ? Jt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
679
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
680
|
-
return i && s && Gt(e, r, s), s;
|
|
681
|
-
}, Qe = (t, e, r) => {
|
|
682
|
-
if (!e.has(t))
|
|
683
|
-
throw TypeError("Cannot " + r);
|
|
684
|
-
}, l = (t, e, r) => (Qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), E = (t, e, r) => {
|
|
685
|
-
if (e.has(t))
|
|
686
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
687
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
688
|
-
}, X = (t, e, r, i) => (Qe(t, e, "write to private field"), e.set(t, r), r), k, ge, v, fe, ve, we, me, Ie;
|
|
689
|
-
const Yt = $({
|
|
615
|
+
}
|
|
616
|
+
b = new WeakMap(), K = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), j = new WeakMap(), ee = new WeakMap(), te = new WeakMap();
|
|
617
|
+
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", ke);
|
|
618
|
+
const ut = E({
|
|
690
619
|
".wrapper": {
|
|
691
620
|
boxSizing: "border-box",
|
|
692
621
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
@@ -741,129 +670,119 @@ const Yt = $({
|
|
|
741
670
|
transform: "scaleY(-1)"
|
|
742
671
|
}
|
|
743
672
|
});
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
673
|
+
var v, se, p, ie, re, oe, ne, ue;
|
|
674
|
+
const ge = class ge extends HTMLElement {
|
|
675
|
+
constructor(e) {
|
|
676
|
+
super();
|
|
677
|
+
o(this, v, void 0);
|
|
678
|
+
o(this, se, new Ce(null));
|
|
679
|
+
o(this, p, new Ce([]));
|
|
680
|
+
o(this, ie, void 0);
|
|
681
|
+
o(this, re, null);
|
|
682
|
+
o(this, oe, null);
|
|
683
|
+
o(this, ne, null);
|
|
684
|
+
o(this, ue, (e) => {
|
|
685
|
+
let s = [], i = [];
|
|
686
|
+
e.forEach((a) => {
|
|
687
|
+
s = [...s, ...a.removedNodes], i = [...i, ...a.addedNodes];
|
|
688
|
+
}), t(this, p).current = t(this, p).current.filter(
|
|
689
|
+
(a) => !s.includes(a)
|
|
690
|
+
), t(this, v) && !t(this, p).current.length && !i.length && this.remove();
|
|
691
|
+
});
|
|
692
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ut), n(this, v, e.key), n(this, ie, new MutationObserver(t(this, ue))), g(this, {
|
|
754
693
|
children: [
|
|
755
|
-
|
|
694
|
+
u({
|
|
756
695
|
class: "wrapper",
|
|
757
696
|
children: [
|
|
758
|
-
|
|
697
|
+
u({
|
|
759
698
|
class: "head",
|
|
760
|
-
onClick: (
|
|
761
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ?
|
|
699
|
+
onClick: (i) => {
|
|
700
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? f.openPanel(t(this, v)) : f.closePanel(t(this, v));
|
|
762
701
|
},
|
|
763
702
|
children: [
|
|
764
|
-
|
|
703
|
+
t(this, v) ? u({
|
|
765
704
|
class: "name",
|
|
766
|
-
children: [
|
|
705
|
+
children: [t(this, v).split(".").slice(-1).toString()]
|
|
767
706
|
}) : null,
|
|
768
|
-
|
|
769
|
-
|
|
707
|
+
t(this, se),
|
|
708
|
+
g(Ue, {
|
|
770
709
|
class: "arrow"
|
|
771
710
|
})
|
|
772
711
|
]
|
|
773
712
|
}),
|
|
774
|
-
|
|
713
|
+
u({
|
|
775
714
|
class: "body",
|
|
776
|
-
ref: (
|
|
777
|
-
|
|
715
|
+
ref: (i) => {
|
|
716
|
+
n(this, re, i);
|
|
778
717
|
},
|
|
779
|
-
children:
|
|
718
|
+
children: u({
|
|
780
719
|
class: "body-content",
|
|
781
|
-
children:
|
|
782
|
-
ref: (
|
|
783
|
-
|
|
720
|
+
children: t(this, p),
|
|
721
|
+
ref: (i) => {
|
|
722
|
+
n(this, oe, i), n(this, ne, i.firstElementChild);
|
|
784
723
|
}
|
|
785
724
|
})
|
|
786
725
|
})
|
|
787
726
|
]
|
|
788
727
|
})
|
|
789
728
|
]
|
|
790
|
-
}),
|
|
729
|
+
}), e != null && e.storeBox && this.handleStore(e.storeBox);
|
|
791
730
|
}
|
|
792
731
|
get key() {
|
|
793
|
-
return
|
|
732
|
+
return t(this, v);
|
|
794
733
|
}
|
|
795
734
|
get head() {
|
|
796
|
-
return
|
|
735
|
+
return t(this, se);
|
|
797
736
|
}
|
|
798
737
|
get content() {
|
|
799
|
-
return
|
|
738
|
+
return t(this, p);
|
|
800
739
|
}
|
|
801
740
|
get bodyElement() {
|
|
802
|
-
return
|
|
741
|
+
return t(this, re);
|
|
803
742
|
}
|
|
804
743
|
get contentElement() {
|
|
805
|
-
return
|
|
744
|
+
return t(this, oe);
|
|
806
745
|
}
|
|
807
746
|
connectedCallback() {
|
|
808
|
-
|
|
747
|
+
f.isPanelOpened(t(this, v)) && this.classList.add("opened"), setTimeout(() => {
|
|
809
748
|
this.classList.add("transition-allowed");
|
|
810
|
-
}),
|
|
749
|
+
}), t(this, ie).observe(t(this, ne), {
|
|
811
750
|
childList: !0
|
|
812
751
|
});
|
|
813
752
|
}
|
|
814
|
-
handleStore(
|
|
815
|
-
if (
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
store:
|
|
819
|
-
remainingFolders:
|
|
820
|
-
}) :
|
|
821
|
-
...
|
|
822
|
-
new
|
|
823
|
-
key:
|
|
753
|
+
handleStore(e) {
|
|
754
|
+
if (e.remainingFolders.length) {
|
|
755
|
+
const i = e.store.passport.name.split("."), a = i.slice(0, i.length - e.remainingFolders.length).join("."), d = t(this, p).current.find((c) => c.key === a);
|
|
756
|
+
d instanceof ge ? d.handleStore({
|
|
757
|
+
store: e.store,
|
|
758
|
+
remainingFolders: e.remainingFolders.slice(1)
|
|
759
|
+
}) : t(this, p).current = [
|
|
760
|
+
...t(this, p).current,
|
|
761
|
+
new ge({
|
|
762
|
+
key: a,
|
|
824
763
|
storeBox: {
|
|
825
|
-
store:
|
|
826
|
-
remainingFolders:
|
|
764
|
+
store: e.store,
|
|
765
|
+
remainingFolders: e.remainingFolders.slice(1)
|
|
827
766
|
}
|
|
828
767
|
})
|
|
829
768
|
];
|
|
830
769
|
} else {
|
|
831
|
-
const
|
|
832
|
-
(
|
|
770
|
+
const s = t(this, p).current.find(
|
|
771
|
+
(i) => i.key === e.store.passport.name
|
|
833
772
|
);
|
|
834
|
-
|
|
835
|
-
...
|
|
836
|
-
new
|
|
837
|
-
store:
|
|
773
|
+
s instanceof ke ? s.addStore(e.store) : t(this, p).current = [
|
|
774
|
+
...t(this, p).current,
|
|
775
|
+
new ke({
|
|
776
|
+
store: e.store
|
|
838
777
|
})
|
|
839
778
|
];
|
|
840
779
|
}
|
|
841
780
|
}
|
|
842
781
|
};
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
ve = /* @__PURE__ */ new WeakMap();
|
|
848
|
-
we = /* @__PURE__ */ new WeakMap();
|
|
849
|
-
me = /* @__PURE__ */ new WeakMap();
|
|
850
|
-
Ie = /* @__PURE__ */ new WeakMap();
|
|
851
|
-
ae = Xt([
|
|
852
|
-
M("e-tweaker-folder")
|
|
853
|
-
], ae);
|
|
854
|
-
var qt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Ut = (t, e, r, i) => {
|
|
855
|
-
for (var s = i > 1 ? void 0 : i ? Qt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
|
|
856
|
-
(a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
|
|
857
|
-
return i && s && qt(e, r, s), s;
|
|
858
|
-
}, Ue = (t, e, r) => {
|
|
859
|
-
if (!e.has(t))
|
|
860
|
-
throw TypeError("Cannot " + r);
|
|
861
|
-
}, Y = (t, e, r) => (Ue(t, e, "read from private field"), e.get(t)), Ee = (t, e, r) => {
|
|
862
|
-
if (e.has(t))
|
|
863
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
864
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
865
|
-
}, er = (t, e, r, i) => (Ue(t, e, "write to private field"), e.set(t, r), r), be, _e, ye;
|
|
866
|
-
const tr = $({
|
|
782
|
+
v = new WeakMap(), se = new WeakMap(), p = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ue = new WeakMap();
|
|
783
|
+
let pe = ge;
|
|
784
|
+
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", pe);
|
|
785
|
+
const gt = E({
|
|
867
786
|
":host": {
|
|
868
787
|
"--tweaker-width": "550px",
|
|
869
788
|
"--tweaker-offset": "20px",
|
|
@@ -938,7 +857,7 @@ const tr = $({
|
|
|
938
857
|
":host .body-content::-webkit-scrollbar": {
|
|
939
858
|
display: "none"
|
|
940
859
|
},
|
|
941
|
-
[`@media ${
|
|
860
|
+
[`@media ${Qe["<=mobile"]}`]: {
|
|
942
861
|
":host": {
|
|
943
862
|
position: "absolute",
|
|
944
863
|
top: "0",
|
|
@@ -955,79 +874,84 @@ const tr = $({
|
|
|
955
874
|
}
|
|
956
875
|
}
|
|
957
876
|
});
|
|
958
|
-
|
|
877
|
+
var ae, le, he;
|
|
878
|
+
class Ae extends pe {
|
|
959
879
|
constructor() {
|
|
960
880
|
super({
|
|
961
881
|
key: ""
|
|
962
|
-
})
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
882
|
+
});
|
|
883
|
+
o(this, ae, !1);
|
|
884
|
+
o(this, le, () => {
|
|
885
|
+
f.save();
|
|
886
|
+
});
|
|
887
|
+
o(this, he, Xe(() => {
|
|
888
|
+
N.current.forEach((e) => {
|
|
889
|
+
var s;
|
|
890
|
+
if (e.passport && !((s = e.passport.manager) != null && s.invisible)) {
|
|
891
|
+
const i = e.passport.name.split(".");
|
|
969
892
|
this.handleStore({
|
|
970
|
-
store:
|
|
971
|
-
remainingFolders:
|
|
893
|
+
store: e,
|
|
894
|
+
remainingFolders: i.length > 1 ? i.slice(0, -1) : []
|
|
972
895
|
});
|
|
973
896
|
}
|
|
974
|
-
}),
|
|
975
|
-
top:
|
|
897
|
+
}), t(this, ae) || (n(this, ae, !0), this.contentElement.scroll({
|
|
898
|
+
top: f.scrollValue
|
|
976
899
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
977
|
-
|
|
900
|
+
f.scrollValue = this.contentElement.scrollTop;
|
|
978
901
|
}));
|
|
979
|
-
}, 10))
|
|
980
|
-
|
|
902
|
+
}, 10));
|
|
903
|
+
f.load(), this.shadowRoot.adoptedStyleSheets.push(gt), this.head.current = [
|
|
904
|
+
u({
|
|
981
905
|
class: "tweaker-buttons",
|
|
982
|
-
onClick: (
|
|
983
|
-
|
|
906
|
+
onClick: (e) => {
|
|
907
|
+
e.stopPropagation();
|
|
984
908
|
},
|
|
985
909
|
children: [
|
|
986
|
-
|
|
910
|
+
B({
|
|
987
911
|
class: "tweaker-button",
|
|
988
|
-
children:
|
|
912
|
+
children: Fe,
|
|
989
913
|
onClick: () => {
|
|
990
|
-
|
|
914
|
+
R.resetState();
|
|
991
915
|
}
|
|
992
916
|
}),
|
|
993
|
-
|
|
917
|
+
B({
|
|
994
918
|
class: ["tweaker-button"],
|
|
995
|
-
children: [
|
|
919
|
+
children: [Me],
|
|
996
920
|
onClick: () => {
|
|
997
921
|
navigator.clipboard.writeText(
|
|
998
|
-
JSON.stringify(
|
|
922
|
+
JSON.stringify(R.getState())
|
|
999
923
|
);
|
|
1000
924
|
}
|
|
1001
925
|
}),
|
|
1002
|
-
|
|
926
|
+
B({
|
|
1003
927
|
class: "tweaker-button",
|
|
1004
|
-
children:
|
|
928
|
+
children: st,
|
|
1005
929
|
onClick: () => {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
930
|
+
Be(
|
|
931
|
+
R.projectName,
|
|
932
|
+
R.getState()
|
|
1009
933
|
);
|
|
1010
934
|
}
|
|
1011
935
|
}),
|
|
1012
|
-
|
|
936
|
+
Ge({
|
|
1013
937
|
class: "tweaker-button",
|
|
1014
938
|
children: [
|
|
1015
|
-
|
|
1016
|
-
|
|
939
|
+
it,
|
|
940
|
+
me({
|
|
1017
941
|
type: "file",
|
|
1018
942
|
style: {
|
|
1019
943
|
display: "none"
|
|
1020
944
|
},
|
|
1021
|
-
onChange: (
|
|
1022
|
-
var
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1025
|
-
const
|
|
1026
|
-
|
|
1027
|
-
var
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
},
|
|
945
|
+
onChange: (e) => {
|
|
946
|
+
var a;
|
|
947
|
+
const i = (a = e.currentTarget.files) == null ? void 0 : a[0];
|
|
948
|
+
if (i) {
|
|
949
|
+
const d = new FileReader();
|
|
950
|
+
d.onload = (c) => {
|
|
951
|
+
var L, W;
|
|
952
|
+
const S = (W = (L = c.target) == null ? void 0 : L.result) == null ? void 0 : W.toString();
|
|
953
|
+
S && R.loadState(S);
|
|
954
|
+
}, d.readAsText(i);
|
|
1031
955
|
}
|
|
1032
956
|
}
|
|
1033
957
|
})
|
|
@@ -1035,45 +959,41 @@ let Ae = class extends ae {
|
|
|
1035
959
|
})
|
|
1036
960
|
]
|
|
1037
961
|
})
|
|
1038
|
-
],
|
|
962
|
+
], g(this.bodyElement, {
|
|
1039
963
|
children: [
|
|
1040
|
-
|
|
964
|
+
u({
|
|
1041
965
|
class: "resize",
|
|
1042
|
-
onPointerdown: (
|
|
1043
|
-
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
(
|
|
1047
|
-
const
|
|
1048
|
-
this.style.width =
|
|
966
|
+
onPointerdown: (e) => {
|
|
967
|
+
e.preventDefault();
|
|
968
|
+
const s = this.getBoundingClientRect(), i = this.contentElement.scrollTop;
|
|
969
|
+
Te(
|
|
970
|
+
(a) => {
|
|
971
|
+
const d = e.x - a.x, c = Math.max(400, s.width + d);
|
|
972
|
+
this.style.width = c + "px", f.changeSize("tweaker", c);
|
|
1049
973
|
},
|
|
1050
974
|
() => {
|
|
1051
975
|
setTimeout(() => {
|
|
1052
976
|
this.contentElement.scroll({
|
|
1053
|
-
top:
|
|
977
|
+
top: i
|
|
1054
978
|
});
|
|
1055
979
|
}, 10);
|
|
1056
980
|
}
|
|
1057
981
|
);
|
|
1058
982
|
},
|
|
1059
983
|
onDblclick: () => {
|
|
1060
|
-
this.style.width = "",
|
|
984
|
+
this.style.width = "", f.changeSize("tweaker", null);
|
|
1061
985
|
}
|
|
1062
986
|
})
|
|
1063
987
|
]
|
|
1064
988
|
});
|
|
1065
989
|
}
|
|
1066
990
|
connectedCallback() {
|
|
1067
|
-
super.connectedCallback(), window.addEventListener("beforeunload",
|
|
991
|
+
super.connectedCallback(), window.addEventListener("beforeunload", t(this, le)), N.subscribe(t(this, he)), f.changedSizes("tweaker") && (this.style.width = f.changedSizes("tweaker") + "px");
|
|
1068
992
|
}
|
|
1069
993
|
disconnectedCallback() {
|
|
1070
|
-
window.removeEventListener("beforeunload",
|
|
994
|
+
window.removeEventListener("beforeunload", t(this, le)), f.save(), N.unsubscribe(t(this, he));
|
|
1071
995
|
}
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
Ae = Ut([
|
|
1077
|
-
M("e-tweaker")
|
|
1078
|
-
], Ae);
|
|
1079
|
-
it && document.body.appendChild(new Ae());
|
|
996
|
+
}
|
|
997
|
+
ae = new WeakMap(), le = new WeakMap(), he = new WeakMap();
|
|
998
|
+
customElements.get("e-tweaker") || customElements.define("e-tweaker", Ae);
|
|
999
|
+
We && document.body.appendChild(new Ae());
|