aptechka 0.8.4 → 0.10.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/ElementConstructor-OK-6OPjh.cjs +1 -0
- package/lib/ElementConstructor-rValMo8f.js +372 -0
- package/lib/_createStore-C75y9luu.cjs +1 -0
- package/lib/_createStore-D3qHYaSz.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/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +4 -5
- 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 -45
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +2 -2
- package/lib/connector/index.js +39 -34
- package/lib/counter/index.d.ts +1 -3
- package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
- package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-BrFGJ8Q7.js} +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +6 -5
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- 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 +7 -15
- package/lib/index-3R8YL-P3.js +266 -0
- package/lib/index-CyQAdqFu.cjs +9 -0
- package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
- package/lib/instantiate-TYteKsII.js +134 -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/animation/createDamped.d.ts +3 -0
- package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
- package/lib/jsx/hooks/animation/index.cjs +1 -0
- package/lib/jsx/hooks/animation/index.d.ts +2 -0
- package/lib/jsx/hooks/animation/index.js +15 -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/createRef.d.ts +3 -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/basic/onStoreChange.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/createCached.d.ts +3 -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 +6 -0
- package/lib/jsx/hooks/store/index.js +31 -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 +15 -0
- package/lib/jsx/index.js +106 -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 +198 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +34 -36
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.d.ts +5 -4
- package/lib/order/index.js +1 -1
- package/lib/pointer/PointerElement.d.ts +1 -2
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +105 -117
- 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 -124
- 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 +104 -107
- 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 +19 -20
- package/lib/store/Cached.d.ts +13 -0
- package/lib/store/Derived.d.ts +3 -3
- package/lib/store/DerivedArray.d.ts +8 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.js +65 -31
- package/lib/tags-BosXYPYv.cjs +1 -0
- package/lib/tags-D0kLlFdQ.js +485 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -1
- 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 +393 -472
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +122 -105
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +25 -29
- package/package.json +73 -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,99 @@
|
|
|
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
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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-Qr3SNOSf.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 "../ticker/index.js";
|
|
17
|
+
import { e as g, $ as me, a as Ye, D as u, aA as qe, p as B, a2 as Ge } from "../tags-D0kLlFdQ.js";
|
|
18
|
+
import { c as E } from "../createStylesheet-BrFGJ8Q7.js";
|
|
19
|
+
import { a as Qe } from "../Viewport-Cgtq2I_K.js";
|
|
19
20
|
import { aptechkaTheme as h } from "../theme/index.js";
|
|
20
|
-
import { a as
|
|
21
|
-
import { a as
|
|
21
|
+
import { a as Ue } from "../index-3R8YL-P3.js";
|
|
22
|
+
import { a as _e } from "../events-CJTUMSLU.js";
|
|
22
23
|
import "../checkbox/index.js";
|
|
23
|
-
import { c as
|
|
24
|
-
import { n as
|
|
25
|
-
import { elementResizer as
|
|
26
|
-
const
|
|
27
|
-
var
|
|
28
|
-
class
|
|
24
|
+
import { c as et } from "../math-BOBiC4TN.js";
|
|
25
|
+
import { n as ze, t as tt } from "../polyfills-X6KXuHg-.js";
|
|
26
|
+
import { elementResizer as Re } from "../element-resizer/index.js";
|
|
27
|
+
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>';
|
|
28
|
+
var P, w, k;
|
|
29
|
+
class rt {
|
|
29
30
|
constructor() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.scrollValue = 0,
|
|
31
|
+
o(this, P, void 0);
|
|
32
|
+
o(this, w, void 0);
|
|
33
|
+
o(this, k, void 0);
|
|
34
|
+
this.scrollValue = 0, n(this, P, ""), n(this, w, []), n(this, k, {}), n(this, P, R.projectName + "-studio");
|
|
34
35
|
}
|
|
35
|
-
openPanel(
|
|
36
|
-
|
|
36
|
+
openPanel(r) {
|
|
37
|
+
t(this, w).includes(r) || t(this, w).push(r);
|
|
37
38
|
}
|
|
38
|
-
closePanel(
|
|
39
|
-
|
|
39
|
+
closePanel(r) {
|
|
40
|
+
n(this, w, t(this, w).filter((e) => e !== r));
|
|
40
41
|
}
|
|
41
|
-
isPanelOpened(
|
|
42
|
-
return
|
|
42
|
+
isPanelOpened(r) {
|
|
43
|
+
return t(this, w).includes(r);
|
|
43
44
|
}
|
|
44
|
-
changedSizes(
|
|
45
|
-
return
|
|
45
|
+
changedSizes(r) {
|
|
46
|
+
return t(this, k)[r];
|
|
46
47
|
}
|
|
47
|
-
changeSize(
|
|
48
|
-
|
|
48
|
+
changeSize(r, e) {
|
|
49
|
+
e ? t(this, k)[r] = e : delete t(this, k)[r];
|
|
49
50
|
}
|
|
50
51
|
save() {
|
|
51
|
-
const
|
|
52
|
-
openedPanels:
|
|
53
|
-
changedSizes:
|
|
52
|
+
const r = {
|
|
53
|
+
openedPanels: t(this, w),
|
|
54
|
+
changedSizes: t(this, k),
|
|
54
55
|
scrollValue: this.scrollValue
|
|
55
56
|
};
|
|
56
|
-
localStorage.setItem(
|
|
57
|
+
localStorage.setItem(t(this, P), JSON.stringify(r)), R.saveState();
|
|
57
58
|
}
|
|
58
59
|
load() {
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
60
|
+
R.loadState();
|
|
61
|
+
const r = localStorage.getItem(t(this, P));
|
|
62
|
+
if (r)
|
|
62
63
|
try {
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
} catch (
|
|
66
|
-
console.error(
|
|
64
|
+
const e = JSON.parse(r);
|
|
65
|
+
e.openedPanels && n(this, w, e.openedPanels), e.changedSizes && n(this, k, e.changedSizes), e.scrollValue && (this.scrollValue = e.scrollValue);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
console.error(e);
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
const
|
|
71
|
+
P = new WeakMap(), w = new WeakMap(), k = new WeakMap();
|
|
72
|
+
const f = new rt();
|
|
72
73
|
var T;
|
|
73
|
-
class
|
|
74
|
-
constructor(...
|
|
74
|
+
class J extends HTMLElement {
|
|
75
|
+
constructor(...e) {
|
|
75
76
|
super();
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
o(this, T, void 0);
|
|
78
|
+
n(this, T, e);
|
|
78
79
|
}
|
|
79
|
-
addStore(
|
|
80
|
-
|
|
80
|
+
addStore(e) {
|
|
81
|
+
t(this, T).push(e);
|
|
81
82
|
}
|
|
82
83
|
get firstStore() {
|
|
83
|
-
return
|
|
84
|
+
return t(this, T)[0];
|
|
84
85
|
}
|
|
85
86
|
get stores() {
|
|
86
|
-
return
|
|
87
|
+
return t(this, T);
|
|
87
88
|
}
|
|
88
|
-
updateStores(
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
updateStores(e) {
|
|
90
|
+
t(this, T).forEach((s) => {
|
|
91
|
+
s.current = e;
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
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 = $({
|
|
96
|
+
const ot = E({
|
|
101
97
|
":host": {
|
|
102
98
|
width: "100%",
|
|
103
99
|
display: "inline-flex",
|
|
@@ -110,33 +106,29 @@ const yt = $({
|
|
|
110
106
|
borderRadius: h.borderRadiusSmall.var
|
|
111
107
|
}
|
|
112
108
|
});
|
|
113
|
-
|
|
114
|
-
constructor(...
|
|
115
|
-
super(...
|
|
109
|
+
class Le extends J {
|
|
110
|
+
constructor(...r) {
|
|
111
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ot), g(this, {
|
|
116
112
|
children: [
|
|
117
|
-
|
|
118
|
-
onChange: (
|
|
119
|
-
this.updateStores(
|
|
113
|
+
g("e-checkbox", {
|
|
114
|
+
onChange: (s) => {
|
|
115
|
+
this.updateStores(s.currentTarget.checked);
|
|
120
116
|
},
|
|
121
|
-
ref: (
|
|
122
|
-
this.firstStore.subscribe((
|
|
123
|
-
|
|
117
|
+
ref: (s) => {
|
|
118
|
+
this.firstStore.subscribe((i) => {
|
|
119
|
+
s.checked = i.current;
|
|
124
120
|
});
|
|
125
121
|
}
|
|
126
122
|
})
|
|
127
123
|
]
|
|
128
124
|
});
|
|
129
125
|
}
|
|
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 = $({
|
|
126
|
+
}
|
|
127
|
+
customElements.get("e-tweaker-boolean-manager") || customElements.define(
|
|
128
|
+
"e-tweaker-boolean-manager",
|
|
129
|
+
Le
|
|
130
|
+
);
|
|
131
|
+
const nt = E({
|
|
140
132
|
":host": {
|
|
141
133
|
width: "100%",
|
|
142
134
|
display: "inline-flex",
|
|
@@ -159,65 +151,44 @@ const Ct = $({
|
|
|
159
151
|
height: "calc(var(--height-input) * 0.93)"
|
|
160
152
|
}
|
|
161
153
|
});
|
|
162
|
-
|
|
163
|
-
constructor(...
|
|
164
|
-
super(...
|
|
154
|
+
class Pe extends J {
|
|
155
|
+
constructor(...r) {
|
|
156
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(nt), g(this, {
|
|
165
157
|
children: [
|
|
166
|
-
|
|
158
|
+
me({
|
|
167
159
|
type: "color",
|
|
168
160
|
value: this.firstStore,
|
|
169
|
-
onInput: (
|
|
170
|
-
this.updateStores(
|
|
161
|
+
onInput: (s) => {
|
|
162
|
+
this.updateStores(s.currentTarget.value);
|
|
171
163
|
}
|
|
172
164
|
})
|
|
173
165
|
]
|
|
174
166
|
});
|
|
175
167
|
}
|
|
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 = $({
|
|
168
|
+
}
|
|
169
|
+
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", Pe);
|
|
170
|
+
const at = E({
|
|
186
171
|
a: {
|
|
187
172
|
color: "inherit",
|
|
188
173
|
fontSize: "var(--font-size-small)"
|
|
189
174
|
}
|
|
190
175
|
});
|
|
191
|
-
|
|
192
|
-
constructor(...
|
|
193
|
-
var
|
|
194
|
-
super(...
|
|
176
|
+
class Ie extends J {
|
|
177
|
+
constructor(...r) {
|
|
178
|
+
var s, i;
|
|
179
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(at), console.log(this.firstStore), g(this, {
|
|
195
180
|
children: [
|
|
196
|
-
|
|
181
|
+
Ye({
|
|
197
182
|
href: this.firstStore,
|
|
198
|
-
target: (
|
|
183
|
+
target: (i = (s = this.firstStore.passport) == null ? void 0 : s.manager) != null && i.sameWindow ? "_self" : "_blank",
|
|
199
184
|
children: this.firstStore
|
|
200
185
|
})
|
|
201
186
|
]
|
|
202
187
|
});
|
|
203
188
|
}
|
|
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 = $({
|
|
189
|
+
}
|
|
190
|
+
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Ie);
|
|
191
|
+
const lt = E({
|
|
221
192
|
":host": {
|
|
222
193
|
width: "100%",
|
|
223
194
|
display: "flex",
|
|
@@ -281,78 +252,96 @@ const Tt = $({
|
|
|
281
252
|
opacity: 0.3
|
|
282
253
|
}
|
|
283
254
|
});
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
255
|
+
var I, A, D, x, F, X, Y, y, V, q, G, M, $, Q, Se, U, ye, H, ce, _;
|
|
256
|
+
class Ve extends J {
|
|
257
|
+
constructor(...e) {
|
|
258
|
+
var i, a, d, c, S, L, W, xe;
|
|
259
|
+
super(...e);
|
|
260
|
+
o(this, M);
|
|
261
|
+
o(this, Q);
|
|
262
|
+
o(this, U);
|
|
263
|
+
o(this, H);
|
|
264
|
+
o(this, I, []);
|
|
265
|
+
o(this, A, []);
|
|
266
|
+
o(this, D, void 0);
|
|
267
|
+
o(this, x, void 0);
|
|
268
|
+
o(this, F, void 0);
|
|
269
|
+
o(this, X, void 0);
|
|
270
|
+
o(this, Y, void 0);
|
|
271
|
+
o(this, y, void 0);
|
|
272
|
+
o(this, V, !1);
|
|
273
|
+
o(this, q, (e) => {
|
|
274
|
+
const s = m(this, M, $).call(this, e);
|
|
275
|
+
return s.map((i, a) => {
|
|
276
|
+
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));
|
|
277
|
+
s[a] = S;
|
|
278
|
+
}), t(this, Y) === "number" ? s[0] : s;
|
|
279
|
+
});
|
|
280
|
+
o(this, G, () => {
|
|
281
|
+
m(this, M, $).call(this).map((e, s) => {
|
|
282
|
+
const i = t(this, I)[s];
|
|
283
|
+
i && (i.value = (e || 0).toString());
|
|
284
|
+
}), m(this, Q, Se).call(this);
|
|
285
|
+
});
|
|
286
|
+
o(this, _, () => {
|
|
287
|
+
m(this, Q, Se).call(this);
|
|
288
|
+
});
|
|
289
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(lt), n(this, x, ze(
|
|
290
|
+
(a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.min,
|
|
302
291
|
-1 / 0
|
|
303
|
-
)),
|
|
304
|
-
(
|
|
292
|
+
)), n(this, F, ze(
|
|
293
|
+
(c = (d = this.firstStore.passport) == null ? void 0 : d.manager) == null ? void 0 : c.max,
|
|
305
294
|
1 / 0
|
|
306
|
-
)),
|
|
307
|
-
class:
|
|
308
|
-
children: m(this,
|
|
295
|
+
)), 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, {
|
|
296
|
+
class: t(this, y) ? "" : "infinite",
|
|
297
|
+
children: m(this, M, $).call(this).map((De, de) => u({
|
|
309
298
|
class: "inputs-wrapper",
|
|
310
299
|
children: [
|
|
311
|
-
|
|
300
|
+
me({
|
|
312
301
|
type: "number",
|
|
313
|
-
step:
|
|
314
|
-
min:
|
|
315
|
-
max:
|
|
316
|
-
ref: (
|
|
317
|
-
value:
|
|
302
|
+
step: t(this, D),
|
|
303
|
+
min: t(this, x),
|
|
304
|
+
max: t(this, F),
|
|
305
|
+
ref: (C) => t(this, I).push(C),
|
|
306
|
+
value: De,
|
|
318
307
|
onChange: () => {
|
|
319
308
|
this.updateStores(
|
|
320
|
-
|
|
309
|
+
t(this, I).map((C) => parseFloat(C.value))
|
|
321
310
|
);
|
|
322
311
|
}
|
|
323
312
|
}),
|
|
324
|
-
|
|
313
|
+
u({
|
|
325
314
|
class: "drag",
|
|
326
315
|
children: [
|
|
327
|
-
|
|
316
|
+
u({
|
|
328
317
|
class: "drag-knob",
|
|
329
|
-
ref: (
|
|
330
|
-
onPointerdown: (
|
|
331
|
-
|
|
332
|
-
const
|
|
333
|
-
if (
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
(
|
|
337
|
-
const
|
|
338
|
-
if (
|
|
339
|
-
const
|
|
340
|
-
|
|
318
|
+
ref: (C) => t(this, A).push(C),
|
|
319
|
+
onPointerdown: (C) => {
|
|
320
|
+
C.preventDefault(), n(this, V, !0);
|
|
321
|
+
const fe = m(this, M, $).call(this), He = fe[de], z = t(this, A)[de], Ke = t(this, I)[de];
|
|
322
|
+
if (z && Ke) {
|
|
323
|
+
const we = z.parentElement, Oe = m(this, U, ye).call(this);
|
|
324
|
+
we.classList.add("grabbing"), Te(
|
|
325
|
+
(be) => {
|
|
326
|
+
const Ee = be.x - C.x, Ze = t(this, y) ? we.offsetWidth / (Oe || 1) : 1, je = He + Ee / Ze * t(this, X);
|
|
327
|
+
if (fe[de] = je, !t(this, y)) {
|
|
328
|
+
const Je = m(this, H, ce).call(this, z, 0);
|
|
329
|
+
z.style.transform = `translateX(${Je + Ee}px)`;
|
|
341
330
|
}
|
|
342
|
-
this.updateStores([...
|
|
331
|
+
this.updateStores([...fe]);
|
|
343
332
|
},
|
|
344
333
|
() => {
|
|
345
|
-
if (
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
|
|
334
|
+
if (n(this, V, !1), !t(this, y)) {
|
|
335
|
+
const be = m(this, H, ce).call(this, z, 0);
|
|
336
|
+
z.style.transition = "transform 0.1s", z.style.transform = `translateX(${be}px)`, we.classList.remove("grabbing"), setTimeout(() => {
|
|
337
|
+
z.style.transition = "";
|
|
349
338
|
}, 100);
|
|
350
339
|
}
|
|
351
340
|
}
|
|
352
341
|
);
|
|
353
342
|
}
|
|
354
343
|
},
|
|
355
|
-
children:
|
|
344
|
+
children: u({
|
|
356
345
|
class: "drag-knob-inner"
|
|
357
346
|
})
|
|
358
347
|
})
|
|
@@ -363,56 +352,30 @@ let Re = class extends H {
|
|
|
363
352
|
});
|
|
364
353
|
}
|
|
365
354
|
connectedCallback() {
|
|
366
|
-
this.firstStore.addMiddleware(
|
|
355
|
+
this.firstStore.addMiddleware(t(this, q)), this.firstStore.subscribe(t(this, G)), Re.subscribe(this, t(this, _));
|
|
367
356
|
}
|
|
368
357
|
disconnectedCallback() {
|
|
369
|
-
this.firstStore.removeMiddleware(
|
|
358
|
+
this.firstStore.removeMiddleware(t(this, q)), this.firstStore.unsubscribe(t(this, G)), Re.unsubscribe(t(this, _));
|
|
370
359
|
}
|
|
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)`;
|
|
360
|
+
}
|
|
361
|
+
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) {
|
|
362
|
+
return Array.isArray(e) ? e : [e];
|
|
363
|
+
}, Q = new WeakSet(), Se = function() {
|
|
364
|
+
m(this, M, $).call(this).map((e, s) => {
|
|
365
|
+
const i = t(this, A)[s];
|
|
366
|
+
if (i && (!t(this, V) || t(this, V) && t(this, y))) {
|
|
367
|
+
const a = m(this, H, ce).call(this, i, e);
|
|
368
|
+
i.style.transform = `translateX(${a}px)`;
|
|
394
369
|
}
|
|
395
370
|
});
|
|
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 = $({
|
|
371
|
+
}, U = new WeakSet(), ye = function() {
|
|
372
|
+
return t(this, y) ? t(this, F) - t(this, x) : 0;
|
|
373
|
+
}, H = new WeakSet(), ce = function(e, s) {
|
|
374
|
+
const i = e.parentElement, a = m(this, U, ye).call(this), d = a ? s / a : 0.5;
|
|
375
|
+
return (i.offsetWidth - e.offsetWidth) * d;
|
|
376
|
+
}, _ = new WeakMap();
|
|
377
|
+
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Ve);
|
|
378
|
+
const ht = E({
|
|
416
379
|
"e-select": {
|
|
417
380
|
display: "block",
|
|
418
381
|
width: "100%",
|
|
@@ -446,45 +409,38 @@ const Lt = $({
|
|
|
446
409
|
transform: "scaleY(-1)"
|
|
447
410
|
}
|
|
448
411
|
});
|
|
449
|
-
|
|
450
|
-
constructor(...
|
|
451
|
-
var
|
|
452
|
-
super(...
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
children:
|
|
412
|
+
class $e extends J {
|
|
413
|
+
constructor(...r) {
|
|
414
|
+
var i, a;
|
|
415
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ht);
|
|
416
|
+
const s = ((a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.variants) || [];
|
|
417
|
+
g(this, {
|
|
418
|
+
children: g("e-select", {
|
|
456
419
|
value: this.firstStore,
|
|
457
|
-
onChange: (
|
|
458
|
-
this.updateStores(
|
|
420
|
+
onChange: (d) => {
|
|
421
|
+
this.updateStores(d.currentTarget.value);
|
|
459
422
|
},
|
|
460
423
|
lightChildren: [
|
|
461
|
-
|
|
424
|
+
g("e-select-head", {
|
|
462
425
|
lightChildren: [
|
|
463
|
-
|
|
426
|
+
qe({
|
|
464
427
|
"data-value-holder": ""
|
|
465
428
|
})
|
|
466
429
|
]
|
|
467
430
|
}),
|
|
468
|
-
...
|
|
469
|
-
(
|
|
470
|
-
lightChildren:
|
|
471
|
-
default:
|
|
431
|
+
...s.map(
|
|
432
|
+
(d, c) => g("e-select-option", {
|
|
433
|
+
lightChildren: d,
|
|
434
|
+
default: c === 0 ? !0 : null
|
|
472
435
|
})
|
|
473
436
|
)
|
|
474
437
|
]
|
|
475
438
|
})
|
|
476
439
|
});
|
|
477
440
|
}
|
|
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 = $({
|
|
441
|
+
}
|
|
442
|
+
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", $e);
|
|
443
|
+
const dt = E({
|
|
488
444
|
":host": {
|
|
489
445
|
width: "100%",
|
|
490
446
|
display: "flex",
|
|
@@ -506,48 +462,33 @@ const Nt = $({
|
|
|
506
462
|
borderRadius: h.borderRadius.var
|
|
507
463
|
}
|
|
508
464
|
});
|
|
509
|
-
|
|
510
|
-
constructor(...
|
|
511
|
-
super(...
|
|
465
|
+
class Ne extends J {
|
|
466
|
+
constructor(...r) {
|
|
467
|
+
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(dt), g(this, {
|
|
512
468
|
children: [
|
|
513
|
-
|
|
469
|
+
me({
|
|
514
470
|
class: "text-input",
|
|
515
471
|
type: "string",
|
|
516
472
|
value: this.firstStore,
|
|
517
|
-
onChange: (
|
|
473
|
+
onChange: (s) => {
|
|
518
474
|
this.updateStores(
|
|
519
|
-
|
|
475
|
+
s.currentTarget.value
|
|
520
476
|
);
|
|
521
477
|
}
|
|
522
478
|
})
|
|
523
479
|
]
|
|
524
480
|
});
|
|
525
481
|
}
|
|
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 = $({
|
|
482
|
+
}
|
|
483
|
+
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Ne);
|
|
484
|
+
const ct = {
|
|
485
|
+
boolean: Le,
|
|
486
|
+
color: Pe,
|
|
487
|
+
link: Ie,
|
|
488
|
+
number: Ve,
|
|
489
|
+
select: $e,
|
|
490
|
+
string: Ne
|
|
491
|
+
}, pt = E({
|
|
551
492
|
":host": {
|
|
552
493
|
display: "grid",
|
|
553
494
|
gridAutoFlow: "column",
|
|
@@ -592,48 +533,57 @@ const Bt = $({
|
|
|
592
533
|
height: "100%"
|
|
593
534
|
}
|
|
594
535
|
});
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
536
|
+
var b, K, O, Z, j, ee, te;
|
|
537
|
+
class ke extends HTMLElement {
|
|
538
|
+
constructor(e) {
|
|
539
|
+
var a, d, c, S;
|
|
540
|
+
super();
|
|
541
|
+
o(this, b, []);
|
|
542
|
+
o(this, K, void 0);
|
|
543
|
+
o(this, O, void 0);
|
|
544
|
+
o(this, Z, !1);
|
|
545
|
+
o(this, j, void 0);
|
|
546
|
+
o(this, ee, () => {
|
|
547
|
+
N.current.find((e) => t(this, b).includes(e)) || this.remove();
|
|
548
|
+
});
|
|
549
|
+
o(this, te, (e) => {
|
|
550
|
+
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) => {
|
|
551
|
+
s.reset();
|
|
552
|
+
}), e.preventDefault()));
|
|
553
|
+
});
|
|
554
|
+
n(this, b, [e.store]), n(this, K, e.store.passport.name), n(this, O, t(this, K).split(".").slice(-1).toString());
|
|
555
|
+
const s = ((d = (a = e.store.passport) == null ? void 0 : a.manager) == null ? void 0 : d.type) || "string";
|
|
556
|
+
n(this, j, new ct[s](t(this, b)[0])), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(pt), g(this, {
|
|
607
557
|
class: {
|
|
608
|
-
disabled: ((
|
|
558
|
+
disabled: ((S = (c = e.store.passport) == null ? void 0 : c.manager) == null ? void 0 : S.disabled) || !1
|
|
609
559
|
},
|
|
610
560
|
onPointerleave: () => {
|
|
611
|
-
|
|
561
|
+
n(this, Z, !1);
|
|
612
562
|
},
|
|
613
563
|
onPointerenter: () => {
|
|
614
|
-
|
|
564
|
+
n(this, Z, !0);
|
|
615
565
|
},
|
|
616
566
|
children: [
|
|
617
|
-
|
|
567
|
+
u({
|
|
618
568
|
class: "head",
|
|
619
569
|
children: [
|
|
620
|
-
|
|
621
|
-
|
|
570
|
+
u({ class: "name", children: t(this, O) + ":" }),
|
|
571
|
+
u({
|
|
622
572
|
class: "head-buttons",
|
|
623
573
|
children: [
|
|
624
|
-
|
|
574
|
+
B({
|
|
625
575
|
class: "head-button",
|
|
626
|
-
children:
|
|
576
|
+
children: Me,
|
|
627
577
|
onClick: () => {
|
|
628
|
-
navigator.clipboard.writeText(
|
|
578
|
+
navigator.clipboard.writeText(t(this, b)[0].current);
|
|
629
579
|
}
|
|
630
580
|
}),
|
|
631
|
-
|
|
581
|
+
B({
|
|
632
582
|
class: "head-button",
|
|
633
|
-
children:
|
|
583
|
+
children: Fe,
|
|
634
584
|
onClick: () => {
|
|
635
|
-
|
|
636
|
-
|
|
585
|
+
t(this, b).forEach((L) => {
|
|
586
|
+
L.reset();
|
|
637
587
|
});
|
|
638
588
|
}
|
|
639
589
|
})
|
|
@@ -641,52 +591,32 @@ let xe = class extends Ve {
|
|
|
641
591
|
})
|
|
642
592
|
]
|
|
643
593
|
}),
|
|
644
|
-
|
|
594
|
+
t(this, j)
|
|
645
595
|
]
|
|
646
596
|
});
|
|
647
597
|
}
|
|
648
598
|
get key() {
|
|
649
|
-
return
|
|
599
|
+
return t(this, K);
|
|
650
600
|
}
|
|
651
601
|
get name() {
|
|
652
|
-
return
|
|
602
|
+
return t(this, O);
|
|
653
603
|
}
|
|
654
604
|
get stores() {
|
|
655
|
-
return
|
|
605
|
+
return t(this, b);
|
|
656
606
|
}
|
|
657
|
-
addStore(
|
|
658
|
-
|
|
607
|
+
addStore(e) {
|
|
608
|
+
t(this, j).addStore(e);
|
|
659
609
|
}
|
|
660
610
|
connectedCallback() {
|
|
661
|
-
|
|
611
|
+
N.subscribe(t(this, ee)), addEventListener("keydown", t(this, te)), _e(this);
|
|
662
612
|
}
|
|
663
613
|
disconnectedCallback() {
|
|
664
|
-
|
|
614
|
+
N.unsubscribe(t(this, ee)), removeEventListener("keydown", t(this, te));
|
|
665
615
|
}
|
|
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 = $({
|
|
616
|
+
}
|
|
617
|
+
b = new WeakMap(), K = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), j = new WeakMap(), ee = new WeakMap(), te = new WeakMap();
|
|
618
|
+
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", ke);
|
|
619
|
+
const ut = E({
|
|
690
620
|
".wrapper": {
|
|
691
621
|
boxSizing: "border-box",
|
|
692
622
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
@@ -741,129 +671,119 @@ const Yt = $({
|
|
|
741
671
|
transform: "scaleY(-1)"
|
|
742
672
|
}
|
|
743
673
|
});
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
674
|
+
var v, se, p, ie, re, oe, ne, ue;
|
|
675
|
+
const ge = class ge extends HTMLElement {
|
|
676
|
+
constructor(e) {
|
|
677
|
+
super();
|
|
678
|
+
o(this, v, void 0);
|
|
679
|
+
o(this, se, new Ce(null));
|
|
680
|
+
o(this, p, new Ce([]));
|
|
681
|
+
o(this, ie, void 0);
|
|
682
|
+
o(this, re, null);
|
|
683
|
+
o(this, oe, null);
|
|
684
|
+
o(this, ne, null);
|
|
685
|
+
o(this, ue, (e) => {
|
|
686
|
+
let s = [], i = [];
|
|
687
|
+
e.forEach((a) => {
|
|
688
|
+
s = [...s, ...a.removedNodes], i = [...i, ...a.addedNodes];
|
|
689
|
+
}), t(this, p).current = t(this, p).current.filter(
|
|
690
|
+
(a) => !s.includes(a)
|
|
691
|
+
), t(this, v) && !t(this, p).current.length && !i.length && this.remove();
|
|
692
|
+
});
|
|
693
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ut), n(this, v, e.key), n(this, ie, new MutationObserver(t(this, ue))), g(this, {
|
|
754
694
|
children: [
|
|
755
|
-
|
|
695
|
+
u({
|
|
756
696
|
class: "wrapper",
|
|
757
697
|
children: [
|
|
758
|
-
|
|
698
|
+
u({
|
|
759
699
|
class: "head",
|
|
760
|
-
onClick: (
|
|
761
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ?
|
|
700
|
+
onClick: (i) => {
|
|
701
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? f.openPanel(t(this, v)) : f.closePanel(t(this, v));
|
|
762
702
|
},
|
|
763
703
|
children: [
|
|
764
|
-
|
|
704
|
+
t(this, v) ? u({
|
|
765
705
|
class: "name",
|
|
766
|
-
children: [
|
|
706
|
+
children: [t(this, v).split(".").slice(-1).toString()]
|
|
767
707
|
}) : null,
|
|
768
|
-
|
|
769
|
-
|
|
708
|
+
t(this, se),
|
|
709
|
+
g(Ue, {
|
|
770
710
|
class: "arrow"
|
|
771
711
|
})
|
|
772
712
|
]
|
|
773
713
|
}),
|
|
774
|
-
|
|
714
|
+
u({
|
|
775
715
|
class: "body",
|
|
776
|
-
ref: (
|
|
777
|
-
|
|
716
|
+
ref: (i) => {
|
|
717
|
+
n(this, re, i);
|
|
778
718
|
},
|
|
779
|
-
children:
|
|
719
|
+
children: u({
|
|
780
720
|
class: "body-content",
|
|
781
|
-
children:
|
|
782
|
-
ref: (
|
|
783
|
-
|
|
721
|
+
children: t(this, p),
|
|
722
|
+
ref: (i) => {
|
|
723
|
+
n(this, oe, i), n(this, ne, i.firstElementChild);
|
|
784
724
|
}
|
|
785
725
|
})
|
|
786
726
|
})
|
|
787
727
|
]
|
|
788
728
|
})
|
|
789
729
|
]
|
|
790
|
-
}),
|
|
730
|
+
}), e != null && e.storeBox && this.handleStore(e.storeBox);
|
|
791
731
|
}
|
|
792
732
|
get key() {
|
|
793
|
-
return
|
|
733
|
+
return t(this, v);
|
|
794
734
|
}
|
|
795
735
|
get head() {
|
|
796
|
-
return
|
|
736
|
+
return t(this, se);
|
|
797
737
|
}
|
|
798
738
|
get content() {
|
|
799
|
-
return
|
|
739
|
+
return t(this, p);
|
|
800
740
|
}
|
|
801
741
|
get bodyElement() {
|
|
802
|
-
return
|
|
742
|
+
return t(this, re);
|
|
803
743
|
}
|
|
804
744
|
get contentElement() {
|
|
805
|
-
return
|
|
745
|
+
return t(this, oe);
|
|
806
746
|
}
|
|
807
747
|
connectedCallback() {
|
|
808
|
-
|
|
748
|
+
f.isPanelOpened(t(this, v)) && this.classList.add("opened"), setTimeout(() => {
|
|
809
749
|
this.classList.add("transition-allowed");
|
|
810
|
-
}),
|
|
750
|
+
}), t(this, ie).observe(t(this, ne), {
|
|
811
751
|
childList: !0
|
|
812
752
|
});
|
|
813
753
|
}
|
|
814
|
-
handleStore(
|
|
815
|
-
if (
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
store:
|
|
819
|
-
remainingFolders:
|
|
820
|
-
}) :
|
|
821
|
-
...
|
|
822
|
-
new
|
|
823
|
-
key:
|
|
754
|
+
handleStore(e) {
|
|
755
|
+
if (e.remainingFolders.length) {
|
|
756
|
+
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);
|
|
757
|
+
d instanceof ge ? d.handleStore({
|
|
758
|
+
store: e.store,
|
|
759
|
+
remainingFolders: e.remainingFolders.slice(1)
|
|
760
|
+
}) : t(this, p).current = [
|
|
761
|
+
...t(this, p).current,
|
|
762
|
+
new ge({
|
|
763
|
+
key: a,
|
|
824
764
|
storeBox: {
|
|
825
|
-
store:
|
|
826
|
-
remainingFolders:
|
|
765
|
+
store: e.store,
|
|
766
|
+
remainingFolders: e.remainingFolders.slice(1)
|
|
827
767
|
}
|
|
828
768
|
})
|
|
829
769
|
];
|
|
830
770
|
} else {
|
|
831
|
-
const
|
|
832
|
-
(
|
|
771
|
+
const s = t(this, p).current.find(
|
|
772
|
+
(i) => i.key === e.store.passport.name
|
|
833
773
|
);
|
|
834
|
-
|
|
835
|
-
...
|
|
836
|
-
new
|
|
837
|
-
store:
|
|
774
|
+
s instanceof ke ? s.addStore(e.store) : t(this, p).current = [
|
|
775
|
+
...t(this, p).current,
|
|
776
|
+
new ke({
|
|
777
|
+
store: e.store
|
|
838
778
|
})
|
|
839
779
|
];
|
|
840
780
|
}
|
|
841
781
|
}
|
|
842
782
|
};
|
|
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 = $({
|
|
783
|
+
v = new WeakMap(), se = new WeakMap(), p = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ue = new WeakMap();
|
|
784
|
+
let pe = ge;
|
|
785
|
+
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", pe);
|
|
786
|
+
const gt = E({
|
|
867
787
|
":host": {
|
|
868
788
|
"--tweaker-width": "550px",
|
|
869
789
|
"--tweaker-offset": "20px",
|
|
@@ -938,7 +858,7 @@ const tr = $({
|
|
|
938
858
|
":host .body-content::-webkit-scrollbar": {
|
|
939
859
|
display: "none"
|
|
940
860
|
},
|
|
941
|
-
[`@media ${
|
|
861
|
+
[`@media ${Qe["<=mobile"]}`]: {
|
|
942
862
|
":host": {
|
|
943
863
|
position: "absolute",
|
|
944
864
|
top: "0",
|
|
@@ -955,79 +875,84 @@ const tr = $({
|
|
|
955
875
|
}
|
|
956
876
|
}
|
|
957
877
|
});
|
|
958
|
-
|
|
878
|
+
var ae, le, he;
|
|
879
|
+
class Ae extends pe {
|
|
959
880
|
constructor() {
|
|
960
881
|
super({
|
|
961
882
|
key: ""
|
|
962
|
-
})
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
883
|
+
});
|
|
884
|
+
o(this, ae, !1);
|
|
885
|
+
o(this, le, () => {
|
|
886
|
+
f.save();
|
|
887
|
+
});
|
|
888
|
+
o(this, he, Xe(() => {
|
|
889
|
+
N.current.forEach((e) => {
|
|
890
|
+
var s;
|
|
891
|
+
if (e.passport && !((s = e.passport.manager) != null && s.invisible)) {
|
|
892
|
+
const i = e.passport.name.split(".");
|
|
969
893
|
this.handleStore({
|
|
970
|
-
store:
|
|
971
|
-
remainingFolders:
|
|
894
|
+
store: e,
|
|
895
|
+
remainingFolders: i.length > 1 ? i.slice(0, -1) : []
|
|
972
896
|
});
|
|
973
897
|
}
|
|
974
|
-
}),
|
|
975
|
-
top:
|
|
898
|
+
}), t(this, ae) || (n(this, ae, !0), this.contentElement.scroll({
|
|
899
|
+
top: f.scrollValue
|
|
976
900
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
977
|
-
|
|
901
|
+
f.scrollValue = this.contentElement.scrollTop;
|
|
978
902
|
}));
|
|
979
|
-
}, 10))
|
|
980
|
-
|
|
903
|
+
}, 10));
|
|
904
|
+
f.load(), this.shadowRoot.adoptedStyleSheets.push(gt), this.head.current = [
|
|
905
|
+
u({
|
|
981
906
|
class: "tweaker-buttons",
|
|
982
|
-
onClick: (
|
|
983
|
-
|
|
907
|
+
onClick: (e) => {
|
|
908
|
+
e.stopPropagation();
|
|
984
909
|
},
|
|
985
910
|
children: [
|
|
986
|
-
|
|
911
|
+
B({
|
|
987
912
|
class: "tweaker-button",
|
|
988
|
-
children:
|
|
913
|
+
children: Fe,
|
|
989
914
|
onClick: () => {
|
|
990
|
-
|
|
915
|
+
R.resetState();
|
|
991
916
|
}
|
|
992
917
|
}),
|
|
993
|
-
|
|
918
|
+
B({
|
|
994
919
|
class: ["tweaker-button"],
|
|
995
|
-
children: [
|
|
920
|
+
children: [Me],
|
|
996
921
|
onClick: () => {
|
|
997
922
|
navigator.clipboard.writeText(
|
|
998
|
-
JSON.stringify(
|
|
923
|
+
JSON.stringify(R.getState())
|
|
999
924
|
);
|
|
1000
925
|
}
|
|
1001
926
|
}),
|
|
1002
|
-
|
|
927
|
+
B({
|
|
1003
928
|
class: "tweaker-button",
|
|
1004
|
-
children:
|
|
929
|
+
children: st,
|
|
1005
930
|
onClick: () => {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
931
|
+
Be(
|
|
932
|
+
R.projectName,
|
|
933
|
+
R.getState()
|
|
1009
934
|
);
|
|
1010
935
|
}
|
|
1011
936
|
}),
|
|
1012
|
-
|
|
937
|
+
Ge({
|
|
1013
938
|
class: "tweaker-button",
|
|
1014
939
|
children: [
|
|
1015
|
-
|
|
1016
|
-
|
|
940
|
+
it,
|
|
941
|
+
me({
|
|
1017
942
|
type: "file",
|
|
1018
943
|
style: {
|
|
1019
944
|
display: "none"
|
|
1020
945
|
},
|
|
1021
|
-
onChange: (
|
|
1022
|
-
var
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1025
|
-
const
|
|
1026
|
-
|
|
1027
|
-
var
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
},
|
|
946
|
+
onChange: (e) => {
|
|
947
|
+
var a;
|
|
948
|
+
const i = (a = e.currentTarget.files) == null ? void 0 : a[0];
|
|
949
|
+
if (i) {
|
|
950
|
+
const d = new FileReader();
|
|
951
|
+
d.onload = (c) => {
|
|
952
|
+
var L, W;
|
|
953
|
+
const S = (W = (L = c.target) == null ? void 0 : L.result) == null ? void 0 : W.toString();
|
|
954
|
+
S && R.loadState(S);
|
|
955
|
+
}, d.readAsText(i);
|
|
1031
956
|
}
|
|
1032
957
|
}
|
|
1033
958
|
})
|
|
@@ -1035,45 +960,41 @@ let Ae = class extends ae {
|
|
|
1035
960
|
})
|
|
1036
961
|
]
|
|
1037
962
|
})
|
|
1038
|
-
],
|
|
963
|
+
], g(this.bodyElement, {
|
|
1039
964
|
children: [
|
|
1040
|
-
|
|
965
|
+
u({
|
|
1041
966
|
class: "resize",
|
|
1042
|
-
onPointerdown: (
|
|
1043
|
-
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
(
|
|
1047
|
-
const
|
|
1048
|
-
this.style.width =
|
|
967
|
+
onPointerdown: (e) => {
|
|
968
|
+
e.preventDefault();
|
|
969
|
+
const s = this.getBoundingClientRect(), i = this.contentElement.scrollTop;
|
|
970
|
+
Te(
|
|
971
|
+
(a) => {
|
|
972
|
+
const d = e.x - a.x, c = Math.max(400, s.width + d);
|
|
973
|
+
this.style.width = c + "px", f.changeSize("tweaker", c);
|
|
1049
974
|
},
|
|
1050
975
|
() => {
|
|
1051
976
|
setTimeout(() => {
|
|
1052
977
|
this.contentElement.scroll({
|
|
1053
|
-
top:
|
|
978
|
+
top: i
|
|
1054
979
|
});
|
|
1055
980
|
}, 10);
|
|
1056
981
|
}
|
|
1057
982
|
);
|
|
1058
983
|
},
|
|
1059
984
|
onDblclick: () => {
|
|
1060
|
-
this.style.width = "",
|
|
985
|
+
this.style.width = "", f.changeSize("tweaker", null);
|
|
1061
986
|
}
|
|
1062
987
|
})
|
|
1063
988
|
]
|
|
1064
989
|
});
|
|
1065
990
|
}
|
|
1066
991
|
connectedCallback() {
|
|
1067
|
-
super.connectedCallback(), window.addEventListener("beforeunload",
|
|
992
|
+
super.connectedCallback(), window.addEventListener("beforeunload", t(this, le)), N.subscribe(t(this, he)), f.changedSizes("tweaker") && (this.style.width = f.changedSizes("tweaker") + "px");
|
|
1068
993
|
}
|
|
1069
994
|
disconnectedCallback() {
|
|
1070
|
-
window.removeEventListener("beforeunload",
|
|
995
|
+
window.removeEventListener("beforeunload", t(this, le)), f.save(), N.unsubscribe(t(this, he));
|
|
1071
996
|
}
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
Ae = Ut([
|
|
1077
|
-
M("e-tweaker")
|
|
1078
|
-
], Ae);
|
|
1079
|
-
it && document.body.appendChild(new Ae());
|
|
997
|
+
}
|
|
998
|
+
ae = new WeakMap(), le = new WeakMap(), he = new WeakMap();
|
|
999
|
+
customElements.get("e-tweaker") || customElements.define("e-tweaker", Ae);
|
|
1000
|
+
We && document.body.appendChild(new Ae());
|