aptechka 0.1.5 → 0.1.7
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/Animated-Bf-gPIQM.cjs +1 -0
- package/lib/{Animated-CzBHCHNm.js → Animated-Br_4OSth.js} +36 -35
- package/lib/Composed-C2Vv1xxR.cjs +1 -0
- package/lib/Composed-DhtYBEmo.js +79 -0
- package/lib/{Damped--qBZAdEi.cjs → Damped-BwpMU9Gi.cjs} +1 -1
- package/lib/{Damped-Bm1kSn1f.js → Damped-urvryQLo.js} +1 -1
- package/lib/{Derived-BS2ja9qa.js → Derived-Bc88XJ8J.js} +1 -1
- package/lib/{Derived-CqmIkTGN.cjs → Derived-SjPdLJiZ.cjs} +1 -1
- package/lib/{SourceManager-B44FUTig.js → SourceManager-BoP9RAJr.js} +1 -1
- package/lib/{SourceManager-D447KWpH.cjs → SourceManager-CI6NfLzW.cjs} +1 -1
- package/lib/Store-D0_rDIsE.cjs +1 -0
- package/lib/{Store-uTyReFzx.js → Store-JOKrNVEr.js} +18 -18
- package/lib/{Viewport-CDqiD8Ao.cjs → Viewport-COsaberc.cjs} +1 -1
- package/lib/{Viewport-Cj0i-H5d.js → Viewport-CXY5xcGJ.js} +1 -1
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +2 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +2 -2
- 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.js +8 -8
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +1 -0
- package/lib/connector/index.js +32 -31
- package/lib/createStylesheet-BSXZrWW6.js +8 -0
- package/lib/createStylesheet-C1rimcGc.cjs +1 -0
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +18 -27
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.d.ts +1 -2
- package/lib/element-constructor/index.js +120 -639
- package/lib/element-constructor/knownSvgTags.d.ts +1 -0
- package/lib/element-constructor/tags.d.ts +117 -0
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-DyJhLxk8.js → index-dBwVZz_v.js} +25 -25
- package/lib/index-vI4hmrI8.cjs +9 -0
- package/lib/jsx/ComponentElement.d.ts +17 -0
- package/lib/jsx/h.d.ts +5 -4
- package/lib/jsx/hooks/animation-frame.d.ts +5 -0
- package/lib/jsx/hooks/animation.d.ts +3 -0
- package/lib/jsx/hooks/basic.d.ts +4 -0
- package/lib/jsx/hooks/element-resize.d.ts +3 -0
- package/lib/jsx/hooks/intersection.d.ts +3 -0
- package/lib/jsx/hooks/store.d.ts +6 -0
- package/lib/jsx/hooks/style.d.ts +2 -0
- package/lib/jsx/hooks/utils.d.ts +4 -0
- package/lib/jsx/hooks/window-resize.d.ts +2 -0
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +8 -1
- package/lib/jsx/index.js +170 -102
- package/lib/jsx/type.d.ts +7 -5
- 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 +7 -7
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +23 -24
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Derived.d.ts +1 -1
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +48 -111
- package/lib/studio/index.cjs +2 -2
- package/lib/studio/index.js +307 -288
- package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerFieldElement.d.ts +2 -1
- package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +5 -2
- package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +1 -1
- package/lib/tags-D-lzPz_v.js +748 -0
- package/lib/tags-DkAbVUQP.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +7 -7
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -1
- package/lib/Animated-DZ_fbJmi.cjs +0 -1
- package/lib/ElementConstructor-DB0xOoat.js +0 -199
- package/lib/ElementConstructor-v1FPLXAW.cjs +0 -1
- package/lib/Store-BOOfmlyv.cjs +0 -1
- package/lib/createStylesheet-74ZP3AZm.js +0 -8
- package/lib/createStylesheet-ChhZFwSX.cjs +0 -1
- package/lib/element-constructor/htmlTags.d.ts +0 -115
- package/lib/element-constructor/svgTags.d.ts +0 -64
- package/lib/htmlTags-CNEFIHPp.js +0 -683
- package/lib/htmlTags-CwYHVo9n.cjs +0 -1
- package/lib/index-tPw9mmLF.cjs +0 -9
- package/lib/jsx/ComponentWrapper.d.ts +0 -12
- package/lib/jsx/hooks.d.ts +0 -19
package/lib/studio/index.js
CHANGED
|
@@ -1,81 +1,92 @@
|
|
|
1
|
-
var
|
|
1
|
+
var fe = (t, e, r) => {
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var d = (t, e, r) => (fe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (t, e, r) => {
|
|
6
6
|
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
9
|
-
},
|
|
9
|
+
}, M = (t, e, r, s) => (fe(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
|
|
10
10
|
import { i as xe } from "../browser-0zX67oeU.js";
|
|
11
|
-
import { CustomElement as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { c as
|
|
16
|
-
import { d as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
11
|
+
import { CustomElement as ge, define as p } from "../custom-element/index.js";
|
|
12
|
+
import { s as S, S as ie, a as $ } from "../Store-JOKrNVEr.js";
|
|
13
|
+
import { e as m, a0 as N, a as $e, aY as re, aB as Pe, D as w, p as I, a3 as Oe } from "../tags-D-lzPz_v.js";
|
|
14
|
+
import { c as f } from "../createStylesheet-BSXZrWW6.js";
|
|
15
|
+
import { c as Me } from "../file-lxi_oXJf.js";
|
|
16
|
+
import { d as Ee } from "../function-C10DGppn.js";
|
|
17
|
+
import { A as Te } from "../Animated-Br_4OSth.js";
|
|
18
|
+
import { a as De } from "../Viewport-CXY5xcGJ.js";
|
|
19
|
+
import { AccordionElement as Re } from "../accordion/index.js";
|
|
20
|
+
import { a as We } from "../index-dBwVZz_v.js";
|
|
21
|
+
import { d as Le } from "../events-CoqmkUxo.js";
|
|
22
22
|
import { aptechkaTheme as i } from "../theme/index.js";
|
|
23
|
-
import { c as
|
|
24
|
-
const
|
|
25
|
-
var
|
|
26
|
-
class
|
|
23
|
+
import { c as Fe } from "../math-BOBiC4TN.js";
|
|
24
|
+
const be = '<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>', _e = '<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>', Ae = '<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>', Ie = '<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>';
|
|
25
|
+
var O, g;
|
|
26
|
+
class ze {
|
|
27
27
|
constructor() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
G(this, O, "");
|
|
29
|
+
G(this, g, []);
|
|
30
|
+
M(this, O, S.projectName + "-studio");
|
|
31
31
|
}
|
|
32
32
|
openPanel(e) {
|
|
33
|
-
|
|
33
|
+
d(this, g).includes(e) || d(this, g).push(e);
|
|
34
34
|
}
|
|
35
35
|
closePanel(e) {
|
|
36
|
-
|
|
36
|
+
M(this, g, d(this, g).filter((r) => r !== e));
|
|
37
37
|
}
|
|
38
38
|
isPanelOpened(e) {
|
|
39
|
-
return
|
|
39
|
+
return d(this, g).includes(e);
|
|
40
40
|
}
|
|
41
41
|
save() {
|
|
42
42
|
const e = {
|
|
43
|
-
openedPanels:
|
|
43
|
+
openedPanels: d(this, g)
|
|
44
44
|
};
|
|
45
|
-
localStorage.setItem(
|
|
45
|
+
localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
|
|
46
46
|
}
|
|
47
47
|
load() {
|
|
48
|
-
|
|
49
|
-
const e = localStorage.getItem(
|
|
48
|
+
S.loadState();
|
|
49
|
+
const e = localStorage.getItem(d(this, O));
|
|
50
50
|
if (e)
|
|
51
51
|
try {
|
|
52
52
|
const r = JSON.parse(e);
|
|
53
|
-
r.openedPanels &&
|
|
53
|
+
r.openedPanels && M(this, g, r.openedPanels);
|
|
54
54
|
} catch (r) {
|
|
55
55
|
console.error(r);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
var
|
|
62
|
-
class
|
|
63
|
-
constructor(r) {
|
|
59
|
+
O = new WeakMap(), g = new WeakMap();
|
|
60
|
+
const P = new ze();
|
|
61
|
+
var y;
|
|
62
|
+
class H extends ge {
|
|
63
|
+
constructor(...r) {
|
|
64
64
|
super();
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
G(this, y, void 0);
|
|
66
|
+
M(this, y, r);
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
addStore(r) {
|
|
69
|
+
d(this, y).push(r);
|
|
70
|
+
}
|
|
71
|
+
get firstStore() {
|
|
72
|
+
return d(this, y)[0];
|
|
73
|
+
}
|
|
74
|
+
get stores() {
|
|
75
|
+
return d(this, y);
|
|
76
|
+
}
|
|
77
|
+
updateStores(r) {
|
|
78
|
+
d(this, y).forEach((s) => {
|
|
79
|
+
s.current = r;
|
|
80
|
+
});
|
|
70
81
|
}
|
|
71
82
|
}
|
|
72
|
-
|
|
73
|
-
var
|
|
74
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
83
|
+
y = new WeakMap();
|
|
84
|
+
var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ze = (t, e, r, s) => {
|
|
85
|
+
for (var a = s > 1 ? void 0 : s ? He(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
75
86
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
76
|
-
return s && a &&
|
|
87
|
+
return s && a && Ne(e, r, a), a;
|
|
77
88
|
};
|
|
78
|
-
const
|
|
89
|
+
const Ge = f({
|
|
79
90
|
":host": {
|
|
80
91
|
width: "100%",
|
|
81
92
|
display: "inline-flex",
|
|
@@ -91,21 +102,21 @@ const He = g({
|
|
|
91
102
|
accentColor: i.colorLight.var
|
|
92
103
|
}
|
|
93
104
|
});
|
|
94
|
-
let
|
|
95
|
-
constructor(t) {
|
|
96
|
-
super(t), this.openShadow(
|
|
105
|
+
let oe = class extends H {
|
|
106
|
+
constructor(...t) {
|
|
107
|
+
super(...t), this.openShadow(Ge), m(this, {
|
|
97
108
|
shadowChildren: [
|
|
98
|
-
|
|
109
|
+
N({
|
|
99
110
|
attributes: {
|
|
100
111
|
type: "checkbox"
|
|
101
112
|
},
|
|
102
113
|
events: {
|
|
103
114
|
change: (e) => {
|
|
104
|
-
this.
|
|
115
|
+
this.updateStores(e.currentTarget.checked);
|
|
105
116
|
}
|
|
106
117
|
},
|
|
107
118
|
ref: (e) => {
|
|
108
|
-
this.
|
|
119
|
+
this.firstStore.subscribe((r) => {
|
|
109
120
|
e.checked = r.current;
|
|
110
121
|
});
|
|
111
122
|
}
|
|
@@ -114,15 +125,15 @@ let ne = class extends N {
|
|
|
114
125
|
});
|
|
115
126
|
}
|
|
116
127
|
};
|
|
117
|
-
|
|
128
|
+
oe = Ze([
|
|
118
129
|
p("e-tweaker-boolean-manager")
|
|
119
|
-
],
|
|
120
|
-
var
|
|
121
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
130
|
+
], oe);
|
|
131
|
+
var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
|
|
132
|
+
for (var a = s > 1 ? void 0 : s ? Je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
122
133
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
123
|
-
return s && a &&
|
|
134
|
+
return s && a && Ke(e, r, a), a;
|
|
124
135
|
};
|
|
125
|
-
const
|
|
136
|
+
const Ye = f({
|
|
126
137
|
":host": {
|
|
127
138
|
width: "100%",
|
|
128
139
|
display: "inline-flex",
|
|
@@ -145,18 +156,18 @@ const Je = g({
|
|
|
145
156
|
height: `calc(${i.heightInput.var} * 0.93)`
|
|
146
157
|
}
|
|
147
158
|
});
|
|
148
|
-
let
|
|
149
|
-
constructor(t) {
|
|
150
|
-
super(t), this.openShadow(
|
|
159
|
+
let le = class extends H {
|
|
160
|
+
constructor(...t) {
|
|
161
|
+
super(...t), this.openShadow(Ye), m(this, {
|
|
151
162
|
shadowChildren: [
|
|
152
|
-
|
|
163
|
+
N({
|
|
153
164
|
attributes: {
|
|
154
165
|
type: "color",
|
|
155
|
-
value: this.
|
|
166
|
+
value: this.firstStore
|
|
156
167
|
},
|
|
157
168
|
events: {
|
|
158
169
|
input: (e) => {
|
|
159
|
-
this.
|
|
170
|
+
this.updateStores(e.currentTarget.value);
|
|
160
171
|
}
|
|
161
172
|
}
|
|
162
173
|
})
|
|
@@ -164,51 +175,51 @@ let ie = class extends N {
|
|
|
164
175
|
});
|
|
165
176
|
}
|
|
166
177
|
};
|
|
167
|
-
|
|
178
|
+
le = Ve([
|
|
168
179
|
p("e-tweaker-color-manager")
|
|
169
|
-
],
|
|
170
|
-
var
|
|
171
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
180
|
+
], le);
|
|
181
|
+
var Be = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
|
|
182
|
+
for (var a = s > 1 ? void 0 : s ? qe(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
172
183
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
173
|
-
return s && a &&
|
|
184
|
+
return s && a && Be(e, r, a), a;
|
|
174
185
|
};
|
|
175
|
-
const
|
|
186
|
+
const Ue = f({
|
|
176
187
|
a: {
|
|
177
188
|
color: "inherit"
|
|
178
189
|
}
|
|
179
190
|
});
|
|
180
|
-
let
|
|
181
|
-
constructor(t) {
|
|
191
|
+
let he = class extends H {
|
|
192
|
+
constructor(...t) {
|
|
182
193
|
var e, r;
|
|
183
|
-
super(t), this.openShadow(
|
|
194
|
+
super(...t), this.openShadow(Ue), m(this, {
|
|
184
195
|
shadowChildren: [
|
|
185
|
-
|
|
196
|
+
$e({
|
|
186
197
|
attributes: {
|
|
187
|
-
href: this.
|
|
188
|
-
target: (r = (e = this.
|
|
198
|
+
href: this.firstStore,
|
|
199
|
+
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
|
|
189
200
|
},
|
|
190
|
-
children: this.
|
|
201
|
+
children: this.firstStore
|
|
191
202
|
})
|
|
192
203
|
]
|
|
193
204
|
});
|
|
194
205
|
}
|
|
195
206
|
};
|
|
196
|
-
|
|
207
|
+
he = Qe([
|
|
197
208
|
p("e-tweaker-link-manager")
|
|
198
|
-
],
|
|
199
|
-
var
|
|
200
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
209
|
+
], he);
|
|
210
|
+
var Xe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
|
|
211
|
+
for (var a = s > 1 ? void 0 : s ? je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
201
212
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
202
|
-
return s && a &&
|
|
203
|
-
},
|
|
213
|
+
return s && a && Xe(e, r, a), a;
|
|
214
|
+
}, tt = (t, e, r) => {
|
|
204
215
|
if (!e.has(t))
|
|
205
216
|
throw TypeError("Cannot " + r);
|
|
206
|
-
},
|
|
217
|
+
}, ae = (t, e, r) => (tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), rt = (t, e, r) => {
|
|
207
218
|
if (e.has(t))
|
|
208
219
|
throw TypeError("Cannot add the same private member more than once");
|
|
209
220
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
210
|
-
},
|
|
211
|
-
const
|
|
221
|
+
}, E;
|
|
222
|
+
const at = f({
|
|
212
223
|
":host": {
|
|
213
224
|
width: "100%",
|
|
214
225
|
display: "flex",
|
|
@@ -232,88 +243,90 @@ const tt = g({
|
|
|
232
243
|
borderRadius: i.borderRadius.var
|
|
233
244
|
}
|
|
234
245
|
});
|
|
235
|
-
let
|
|
236
|
-
constructor(t) {
|
|
237
|
-
super(t),
|
|
246
|
+
let j = class extends H {
|
|
247
|
+
constructor(...t) {
|
|
248
|
+
super(...t), rt(this, E, new ie([])), this.openShadow(at), m(this, {
|
|
238
249
|
shadowChildren: [
|
|
239
|
-
|
|
250
|
+
N({
|
|
240
251
|
class: "text-input",
|
|
241
252
|
attributes: {
|
|
242
253
|
type: "string",
|
|
243
|
-
value: this.
|
|
254
|
+
value: this.firstStore
|
|
244
255
|
},
|
|
245
256
|
events: {
|
|
246
257
|
change: (e) => {
|
|
247
|
-
this.
|
|
258
|
+
this.updateStores(
|
|
259
|
+
e.currentTarget.value
|
|
260
|
+
);
|
|
248
261
|
}
|
|
249
262
|
}
|
|
250
263
|
}),
|
|
251
|
-
|
|
264
|
+
ae(this, E)
|
|
252
265
|
]
|
|
253
266
|
});
|
|
254
267
|
}
|
|
255
268
|
appendContent(t) {
|
|
256
|
-
|
|
269
|
+
ae(this, E).current = [...ae(this, E).current, t];
|
|
257
270
|
}
|
|
258
271
|
};
|
|
259
|
-
|
|
260
|
-
|
|
272
|
+
E = /* @__PURE__ */ new WeakMap();
|
|
273
|
+
j = et([
|
|
261
274
|
p("e-tweaker-string-manager")
|
|
262
|
-
],
|
|
263
|
-
var
|
|
264
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
275
|
+
], j);
|
|
276
|
+
var st = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = (t, e, r, s) => {
|
|
277
|
+
for (var a = s > 1 ? void 0 : s ? nt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
265
278
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
266
|
-
return s && a &&
|
|
267
|
-
},
|
|
279
|
+
return s && a && st(e, r, a), a;
|
|
280
|
+
}, Se = (t, e, r) => {
|
|
268
281
|
if (!e.has(t))
|
|
269
282
|
throw TypeError("Cannot " + r);
|
|
270
|
-
},
|
|
283
|
+
}, _ = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
|
|
271
284
|
if (e.has(t))
|
|
272
285
|
throw TypeError("Cannot add the same private member more than once");
|
|
273
286
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
274
|
-
},
|
|
275
|
-
let
|
|
276
|
-
constructor(t) {
|
|
287
|
+
}, se = (t, e, r, s) => (Se(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), T, D, R, J;
|
|
288
|
+
let ee = class extends j {
|
|
289
|
+
constructor(...t) {
|
|
277
290
|
var e, r, s, a, o, n;
|
|
278
|
-
super(t),
|
|
279
|
-
const
|
|
291
|
+
super(...t), K(this, T, void 0), K(this, D, void 0), K(this, R, void 0), K(this, J, (b) => {
|
|
292
|
+
const Z = typeof b == "string" ? parseFloat(b) || this.min : b, ke = Fe(Z, _(this, D), _(this, R));
|
|
280
293
|
return this.toFixed(ke);
|
|
281
|
-
}),
|
|
294
|
+
}), se(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), se(this, R, ((a = (s = this.firstStore.passport) == null ? void 0 : s.manager) == null ? void 0 : a.max) || 1), se(this, T, ((n = (o = this.firstStore.passport) == null ? void 0 : o.manager) == null ? void 0 : n.step) || 0.01);
|
|
282
295
|
}
|
|
283
296
|
get min() {
|
|
284
|
-
return
|
|
297
|
+
return _(this, D);
|
|
285
298
|
}
|
|
286
299
|
get max() {
|
|
287
|
-
return
|
|
300
|
+
return _(this, R);
|
|
288
301
|
}
|
|
289
302
|
get step() {
|
|
290
|
-
return
|
|
303
|
+
return _(this, T);
|
|
291
304
|
}
|
|
292
305
|
toFixed(t) {
|
|
293
306
|
var r;
|
|
294
|
-
const e = ((r =
|
|
307
|
+
const e = ((r = _(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
295
308
|
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
296
309
|
}
|
|
297
310
|
connectedCallback() {
|
|
298
|
-
this.
|
|
311
|
+
this.firstStore.addMiddleware(_(this, J));
|
|
299
312
|
}
|
|
300
313
|
disconnectedCallback() {
|
|
301
|
-
this.
|
|
314
|
+
this.firstStore.removeMiddleware(_(this, J));
|
|
302
315
|
}
|
|
303
316
|
};
|
|
304
|
-
E = /* @__PURE__ */ new WeakMap();
|
|
305
317
|
T = /* @__PURE__ */ new WeakMap();
|
|
306
318
|
D = /* @__PURE__ */ new WeakMap();
|
|
307
|
-
|
|
308
|
-
|
|
319
|
+
R = /* @__PURE__ */ new WeakMap();
|
|
320
|
+
J = /* @__PURE__ */ new WeakMap();
|
|
321
|
+
ee = it([
|
|
309
322
|
p("e-tweaker-number-manager")
|
|
310
|
-
],
|
|
311
|
-
var
|
|
312
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
323
|
+
], ee);
|
|
324
|
+
var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ht = (t, e, r, s) => {
|
|
325
|
+
for (var a = s > 1 ? void 0 : s ? lt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
313
326
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
314
|
-
return s && a &&
|
|
327
|
+
return s && a && ot(e, r, a), a;
|
|
315
328
|
};
|
|
316
|
-
const
|
|
329
|
+
const ct = f({
|
|
317
330
|
":host": {
|
|
318
331
|
width: "100%"
|
|
319
332
|
},
|
|
@@ -351,22 +364,22 @@ const lt = g({
|
|
|
351
364
|
background: "transparent"
|
|
352
365
|
}
|
|
353
366
|
});
|
|
354
|
-
let
|
|
355
|
-
constructor(t) {
|
|
356
|
-
super(t), this.addStylesheet(
|
|
357
|
-
|
|
367
|
+
let ce = class extends ee {
|
|
368
|
+
constructor(...t) {
|
|
369
|
+
super(...t), this.addStylesheet(ct), this.appendContent(
|
|
370
|
+
N({
|
|
358
371
|
class: "range-input",
|
|
359
372
|
attributes: {
|
|
360
373
|
type: "range",
|
|
361
374
|
min: this.min,
|
|
362
375
|
max: this.max,
|
|
363
376
|
step: this.step,
|
|
364
|
-
value: this.
|
|
377
|
+
value: this.firstStore
|
|
365
378
|
},
|
|
366
379
|
events: {
|
|
367
380
|
input: (e) => {
|
|
368
|
-
this.
|
|
369
|
-
e.currentTarget.value
|
|
381
|
+
this.updateStores(
|
|
382
|
+
parseFloat(e.currentTarget.value)
|
|
370
383
|
);
|
|
371
384
|
}
|
|
372
385
|
}
|
|
@@ -374,15 +387,15 @@ let le = class extends j {
|
|
|
374
387
|
);
|
|
375
388
|
}
|
|
376
389
|
};
|
|
377
|
-
|
|
390
|
+
ce = ht([
|
|
378
391
|
p("e-tweaker-range-manager")
|
|
379
|
-
],
|
|
380
|
-
var
|
|
381
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
392
|
+
], ce);
|
|
393
|
+
var dt = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, ut = (t, e, r, s) => {
|
|
394
|
+
for (var a = s > 1 ? void 0 : s ? pt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
382
395
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
383
|
-
return s && a &&
|
|
396
|
+
return s && a && dt(e, r, a), a;
|
|
384
397
|
};
|
|
385
|
-
const
|
|
398
|
+
const vt = f({
|
|
386
399
|
"e-select": {
|
|
387
400
|
width: "100%",
|
|
388
401
|
"--arrow-color": i.colorLight.var
|
|
@@ -411,25 +424,25 @@ const pt = g({
|
|
|
411
424
|
transform: "scaleY(-1)"
|
|
412
425
|
}
|
|
413
426
|
});
|
|
414
|
-
let
|
|
415
|
-
constructor(t) {
|
|
427
|
+
let de = class extends H {
|
|
428
|
+
constructor(...t) {
|
|
416
429
|
var r, s;
|
|
417
|
-
super(t), this.openShadow(
|
|
418
|
-
const e = ((s = (r = this.
|
|
430
|
+
super(...t), this.openShadow(vt);
|
|
431
|
+
const e = ((s = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
|
|
419
432
|
m(this, {
|
|
420
|
-
shadowChildren:
|
|
433
|
+
shadowChildren: re("e-select", {
|
|
421
434
|
attributes: {
|
|
422
|
-
value: this.
|
|
435
|
+
value: this.firstStore
|
|
423
436
|
},
|
|
424
437
|
events: {
|
|
425
438
|
change: (a) => {
|
|
426
|
-
this.
|
|
439
|
+
this.updateStores(a.currentTarget.value);
|
|
427
440
|
}
|
|
428
441
|
},
|
|
429
442
|
children: [
|
|
430
|
-
|
|
443
|
+
re("e-select-head", {
|
|
431
444
|
children: [
|
|
432
|
-
|
|
445
|
+
Pe({
|
|
433
446
|
attributes: {
|
|
434
447
|
"data-value-holder": ""
|
|
435
448
|
}
|
|
@@ -437,7 +450,7 @@ let ce = class extends N {
|
|
|
437
450
|
]
|
|
438
451
|
}),
|
|
439
452
|
...e.map(
|
|
440
|
-
(a, o) =>
|
|
453
|
+
(a, o) => re("e-select-option", {
|
|
441
454
|
children: a,
|
|
442
455
|
attributes: {
|
|
443
456
|
default: o === 0 ? !0 : null
|
|
@@ -449,31 +462,31 @@ let ce = class extends N {
|
|
|
449
462
|
});
|
|
450
463
|
}
|
|
451
464
|
};
|
|
452
|
-
|
|
465
|
+
de = ut([
|
|
453
466
|
p("e-tweaker-select-manager")
|
|
454
|
-
],
|
|
455
|
-
const
|
|
456
|
-
boolean:
|
|
457
|
-
color:
|
|
458
|
-
link:
|
|
459
|
-
number:
|
|
460
|
-
range:
|
|
461
|
-
select:
|
|
462
|
-
string:
|
|
467
|
+
], de);
|
|
468
|
+
const gt = {
|
|
469
|
+
boolean: oe,
|
|
470
|
+
color: le,
|
|
471
|
+
link: he,
|
|
472
|
+
number: ee,
|
|
473
|
+
range: ce,
|
|
474
|
+
select: de,
|
|
475
|
+
string: j
|
|
463
476
|
};
|
|
464
|
-
var
|
|
465
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
477
|
+
var ft = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, mt = (t, e, r, s) => {
|
|
478
|
+
for (var a = s > 1 ? void 0 : s ? wt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
466
479
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
467
|
-
return s && a &&
|
|
480
|
+
return s && a && ft(e, r, a), a;
|
|
468
481
|
}, ye = (t, e, r) => {
|
|
469
482
|
if (!e.has(t))
|
|
470
483
|
throw TypeError("Cannot " + r);
|
|
471
|
-
},
|
|
484
|
+
}, h = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
|
|
472
485
|
if (e.has(t))
|
|
473
486
|
throw TypeError("Cannot add the same private member more than once");
|
|
474
487
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
475
|
-
},
|
|
476
|
-
const
|
|
488
|
+
}, k = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), u, W, L, F, A, V, Y;
|
|
489
|
+
const bt = f({
|
|
477
490
|
":host": {
|
|
478
491
|
display: "grid",
|
|
479
492
|
gridAutoFlow: "column",
|
|
@@ -518,50 +531,54 @@ const ft = g({
|
|
|
518
531
|
height: "100%"
|
|
519
532
|
}
|
|
520
533
|
});
|
|
521
|
-
let
|
|
534
|
+
let te = class extends ge {
|
|
522
535
|
constructor(t) {
|
|
523
536
|
var r, s, a, o;
|
|
524
|
-
super(), C(this,
|
|
525
|
-
|
|
526
|
-
}), C(this,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
537
|
+
super(), C(this, u, []), C(this, W, void 0), C(this, L, void 0), C(this, F, !1), C(this, A, void 0), C(this, V, () => {
|
|
538
|
+
$.current.find((n) => h(this, u).includes(n)) || this.remove();
|
|
539
|
+
}), C(this, Y, (n) => {
|
|
540
|
+
h(this, F) && ((n.metaKey || n.ctrlKey) && n.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (n.metaKey || n.ctrlKey) && n.code === "KeyR" && (h(this, u).forEach((b) => {
|
|
541
|
+
b.reset();
|
|
542
|
+
}), n.preventDefault()));
|
|
543
|
+
}), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this, L, h(this, W).split(".").slice(-1).toString());
|
|
544
|
+
const e = ((s = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
|
|
545
|
+
k(this, A, new gt[e](h(this, u)[0])), this.openShadow(bt), m(this, {
|
|
531
546
|
class: {
|
|
532
|
-
disabled: ((o = (a =
|
|
547
|
+
disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
|
|
533
548
|
},
|
|
534
549
|
events: {
|
|
535
550
|
pointerleave: () => {
|
|
536
|
-
|
|
551
|
+
k(this, F, !1);
|
|
537
552
|
},
|
|
538
553
|
pointerenter: () => {
|
|
539
|
-
|
|
554
|
+
k(this, F, !0);
|
|
540
555
|
}
|
|
541
556
|
},
|
|
542
557
|
shadowChildren: [
|
|
543
|
-
|
|
558
|
+
w({
|
|
544
559
|
class: "head",
|
|
545
560
|
children: [
|
|
546
|
-
|
|
547
|
-
|
|
561
|
+
w({ class: "name", children: h(this, L) + ":" }),
|
|
562
|
+
w({
|
|
548
563
|
class: "head-buttons",
|
|
549
564
|
children: [
|
|
550
|
-
|
|
565
|
+
I({
|
|
551
566
|
class: "head-button",
|
|
552
|
-
children:
|
|
567
|
+
children: _e,
|
|
553
568
|
events: {
|
|
554
569
|
click: () => {
|
|
555
|
-
navigator.clipboard.writeText(
|
|
570
|
+
navigator.clipboard.writeText(h(this, u)[0].current);
|
|
556
571
|
}
|
|
557
572
|
}
|
|
558
573
|
}),
|
|
559
|
-
|
|
574
|
+
I({
|
|
560
575
|
class: "head-button",
|
|
561
|
-
children:
|
|
576
|
+
children: be,
|
|
562
577
|
events: {
|
|
563
578
|
click: () => {
|
|
564
|
-
|
|
579
|
+
h(this, u).forEach((n) => {
|
|
580
|
+
n.reset();
|
|
581
|
+
});
|
|
565
582
|
}
|
|
566
583
|
}
|
|
567
584
|
})
|
|
@@ -569,48 +586,52 @@ let he = class extends ue {
|
|
|
569
586
|
})
|
|
570
587
|
]
|
|
571
588
|
}),
|
|
572
|
-
|
|
589
|
+
h(this, A)
|
|
573
590
|
]
|
|
574
591
|
});
|
|
575
592
|
}
|
|
576
593
|
get key() {
|
|
577
|
-
return
|
|
594
|
+
return h(this, W);
|
|
578
595
|
}
|
|
579
596
|
get name() {
|
|
580
|
-
return
|
|
597
|
+
return h(this, L);
|
|
581
598
|
}
|
|
582
|
-
get
|
|
583
|
-
return
|
|
599
|
+
get stores() {
|
|
600
|
+
return h(this, u);
|
|
601
|
+
}
|
|
602
|
+
addStore(t) {
|
|
603
|
+
h(this, A).addStore(t);
|
|
584
604
|
}
|
|
585
605
|
connectedCallback() {
|
|
586
|
-
|
|
606
|
+
$.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Le(this);
|
|
587
607
|
}
|
|
588
608
|
disconnectedCallback() {
|
|
589
|
-
|
|
609
|
+
$.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
|
|
590
610
|
}
|
|
591
611
|
};
|
|
592
|
-
|
|
593
|
-
R = /* @__PURE__ */ new WeakMap();
|
|
612
|
+
u = /* @__PURE__ */ new WeakMap();
|
|
594
613
|
W = /* @__PURE__ */ new WeakMap();
|
|
595
614
|
L = /* @__PURE__ */ new WeakMap();
|
|
596
|
-
|
|
615
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
616
|
+
A = /* @__PURE__ */ new WeakMap();
|
|
597
617
|
V = /* @__PURE__ */ new WeakMap();
|
|
598
|
-
|
|
618
|
+
Y = /* @__PURE__ */ new WeakMap();
|
|
619
|
+
te = mt([
|
|
599
620
|
p("e-tweaker-field")
|
|
600
|
-
],
|
|
601
|
-
var
|
|
602
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
621
|
+
], te);
|
|
622
|
+
var _t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yt = (t, e, r, s) => {
|
|
623
|
+
for (var a = s > 1 ? void 0 : s ? St(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
603
624
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
604
|
-
return s && a &&
|
|
625
|
+
return s && a && _t(e, r, a), a;
|
|
605
626
|
}, Ce = (t, e, r) => {
|
|
606
627
|
if (!e.has(t))
|
|
607
628
|
throw TypeError("Cannot " + r);
|
|
608
|
-
}, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)),
|
|
629
|
+
}, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
|
|
609
630
|
if (e.has(t))
|
|
610
631
|
throw TypeError("Cannot add the same private member more than once");
|
|
611
632
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
612
|
-
},
|
|
613
|
-
const
|
|
633
|
+
}, ne = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, B, c, q, Q, pe;
|
|
634
|
+
const Ct = f({
|
|
614
635
|
".wrapper": {
|
|
615
636
|
boxSizing: "border-box",
|
|
616
637
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
@@ -654,44 +675,44 @@ const yt = g({
|
|
|
654
675
|
transform: "scaleY(-1)"
|
|
655
676
|
}
|
|
656
677
|
});
|
|
657
|
-
let
|
|
678
|
+
let z = class extends Re {
|
|
658
679
|
constructor(t) {
|
|
659
|
-
super(),
|
|
680
|
+
super(), x(this, v, void 0), x(this, B, new ie(null)), x(this, c, new ie([])), x(this, q, void 0), x(this, Q, null), x(this, pe, (e) => {
|
|
660
681
|
let r = [], s = [];
|
|
661
682
|
e.forEach((a) => {
|
|
662
683
|
r = [...r, ...a.removedNodes], s = [...s, ...a.addedNodes];
|
|
663
|
-
}), l(this,
|
|
684
|
+
}), l(this, c).current = l(this, c).current.filter(
|
|
664
685
|
(a) => !r.includes(a)
|
|
665
|
-
), l(this, v) && !l(this,
|
|
666
|
-
}), this.openShadow(
|
|
686
|
+
), l(this, v) && !l(this, c).current.length && !s.length && this.remove();
|
|
687
|
+
}), this.openShadow(Ct), ne(this, v, t.key), ne(this, q, new MutationObserver(l(this, pe))), m(this, {
|
|
667
688
|
events: {
|
|
668
689
|
"e-accordion-item-toggle": (e) => {
|
|
669
|
-
e.stopPropagation(), e.detail.opened ?
|
|
690
|
+
e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
|
|
670
691
|
}
|
|
671
692
|
},
|
|
672
693
|
shadowChildren: [
|
|
673
|
-
|
|
694
|
+
w({
|
|
674
695
|
class: "wrapper",
|
|
675
696
|
children: [
|
|
676
|
-
|
|
697
|
+
w({
|
|
677
698
|
class: "head",
|
|
678
699
|
children: [
|
|
679
|
-
l(this, v) ?
|
|
700
|
+
l(this, v) ? w({
|
|
680
701
|
class: "name",
|
|
681
702
|
children: [l(this, v).split(".").slice(-1).toString()]
|
|
682
703
|
}) : null,
|
|
683
704
|
l(this, B),
|
|
684
|
-
m(
|
|
705
|
+
m(We, {
|
|
685
706
|
class: "arrow"
|
|
686
707
|
})
|
|
687
708
|
]
|
|
688
709
|
}),
|
|
689
|
-
|
|
710
|
+
w({
|
|
690
711
|
class: "body",
|
|
691
|
-
children:
|
|
712
|
+
children: w({
|
|
692
713
|
class: "body-content",
|
|
693
|
-
children: l(this,
|
|
694
|
-
ref: (e) =>
|
|
714
|
+
children: l(this, c),
|
|
715
|
+
ref: (e) => ne(this, Q, e.firstElementChild)
|
|
695
716
|
})
|
|
696
717
|
})
|
|
697
718
|
]
|
|
@@ -706,24 +727,24 @@ let A = class extends De {
|
|
|
706
727
|
return l(this, B);
|
|
707
728
|
}
|
|
708
729
|
get content() {
|
|
709
|
-
return l(this,
|
|
730
|
+
return l(this, c);
|
|
710
731
|
}
|
|
711
732
|
connectedCallback() {
|
|
712
733
|
super.connectedCallback(), setTimeout(() => {
|
|
713
|
-
|
|
714
|
-
}, 50), l(this,
|
|
734
|
+
P.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
|
|
735
|
+
}, 50), l(this, q).observe(l(this, Q), {
|
|
715
736
|
childList: !0
|
|
716
737
|
});
|
|
717
738
|
}
|
|
718
739
|
handleStore(t) {
|
|
719
740
|
if (t.remainingFolders.length) {
|
|
720
|
-
const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this,
|
|
721
|
-
a instanceof
|
|
741
|
+
const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((o) => o.key === s);
|
|
742
|
+
a instanceof z ? a.handleStore({
|
|
722
743
|
store: t.store,
|
|
723
744
|
remainingFolders: t.remainingFolders.slice(1)
|
|
724
|
-
}) : l(this,
|
|
725
|
-
...l(this,
|
|
726
|
-
new
|
|
745
|
+
}) : l(this, c).current = [
|
|
746
|
+
...l(this, c).current,
|
|
747
|
+
new z({
|
|
727
748
|
key: s,
|
|
728
749
|
storeBox: {
|
|
729
750
|
store: t.store,
|
|
@@ -731,37 +752,41 @@ let A = class extends De {
|
|
|
731
752
|
}
|
|
732
753
|
})
|
|
733
754
|
];
|
|
734
|
-
} else
|
|
735
|
-
l(this,
|
|
736
|
-
|
|
737
|
-
|
|
755
|
+
} else {
|
|
756
|
+
const e = l(this, c).current.find(
|
|
757
|
+
(r) => r.key === t.store.passport.name
|
|
758
|
+
);
|
|
759
|
+
e instanceof te ? e.addStore(t.store) : l(this, c).current = [
|
|
760
|
+
...l(this, c).current,
|
|
761
|
+
new te({
|
|
738
762
|
store: t.store
|
|
739
763
|
})
|
|
740
764
|
];
|
|
765
|
+
}
|
|
741
766
|
}
|
|
742
767
|
};
|
|
743
768
|
v = /* @__PURE__ */ new WeakMap();
|
|
744
769
|
B = /* @__PURE__ */ new WeakMap();
|
|
745
|
-
|
|
746
|
-
Y = /* @__PURE__ */ new WeakMap();
|
|
770
|
+
c = /* @__PURE__ */ new WeakMap();
|
|
747
771
|
q = /* @__PURE__ */ new WeakMap();
|
|
748
|
-
|
|
749
|
-
|
|
772
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
773
|
+
pe = /* @__PURE__ */ new WeakMap();
|
|
774
|
+
z = yt([
|
|
750
775
|
p("e-tweaker-folder")
|
|
751
|
-
],
|
|
752
|
-
var
|
|
753
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
776
|
+
], z);
|
|
777
|
+
var kt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, $t = (t, e, r, s) => {
|
|
778
|
+
for (var a = s > 1 ? void 0 : s ? xt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
754
779
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
755
|
-
return s && a &&
|
|
756
|
-
},
|
|
780
|
+
return s && a && kt(e, r, a), a;
|
|
781
|
+
}, Pt = (t, e, r) => {
|
|
757
782
|
if (!e.has(t))
|
|
758
783
|
throw TypeError("Cannot " + r);
|
|
759
|
-
}, we = (t, e, r) => (
|
|
784
|
+
}, we = (t, e, r) => (Pt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ot = (t, e, r) => {
|
|
760
785
|
if (e.has(t))
|
|
761
786
|
throw TypeError("Cannot add the same private member more than once");
|
|
762
787
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
763
|
-
},
|
|
764
|
-
const
|
|
788
|
+
}, U;
|
|
789
|
+
const Mt = f({
|
|
765
790
|
":host": {
|
|
766
791
|
position: "absolute",
|
|
767
792
|
top: i.tweakerOffset.var,
|
|
@@ -769,7 +794,8 @@ const Pt = g({
|
|
|
769
794
|
width: i.tweakerWidth.var,
|
|
770
795
|
backgroundColor: i.colorDark.var,
|
|
771
796
|
borderRadius: i.borderRadius.var,
|
|
772
|
-
transition: "opacity 0.2s"
|
|
797
|
+
transition: "opacity 0.2s",
|
|
798
|
+
zIndex: "100"
|
|
773
799
|
},
|
|
774
800
|
":host(:hover)": {
|
|
775
801
|
opacity: "1 !important"
|
|
@@ -811,7 +837,7 @@ const Pt = g({
|
|
|
811
837
|
":host .body-content::-webkit-scrollbar": {
|
|
812
838
|
display: "none"
|
|
813
839
|
},
|
|
814
|
-
[`@media ${
|
|
840
|
+
[`@media ${De["<=mobile"]}`]: {
|
|
815
841
|
":host": {
|
|
816
842
|
position: "absolute",
|
|
817
843
|
top: "0",
|
|
@@ -828,13 +854,13 @@ const Pt = g({
|
|
|
828
854
|
}
|
|
829
855
|
}
|
|
830
856
|
});
|
|
831
|
-
let
|
|
857
|
+
let ue = class extends z {
|
|
832
858
|
constructor() {
|
|
833
859
|
super({
|
|
834
860
|
key: ""
|
|
835
|
-
}),
|
|
836
|
-
|
|
837
|
-
if (!(t instanceof
|
|
861
|
+
}), Ot(this, U, Ee(() => {
|
|
862
|
+
$.current.forEach((t) => {
|
|
863
|
+
if (!(t instanceof Te)) {
|
|
838
864
|
const e = t.passport.name.split(".");
|
|
839
865
|
this.handleStore({
|
|
840
866
|
store: t,
|
|
@@ -842,8 +868,8 @@ let pe = class extends A {
|
|
|
842
868
|
});
|
|
843
869
|
}
|
|
844
870
|
});
|
|
845
|
-
}, 10)), this.addStylesheet(
|
|
846
|
-
|
|
871
|
+
}, 10)), this.addStylesheet(Mt), this.head.current = [
|
|
872
|
+
w({
|
|
847
873
|
class: "tweaker-buttons",
|
|
848
874
|
events: {
|
|
849
875
|
click: (t) => {
|
|
@@ -851,43 +877,43 @@ let pe = class extends A {
|
|
|
851
877
|
}
|
|
852
878
|
},
|
|
853
879
|
children: [
|
|
854
|
-
|
|
880
|
+
I({
|
|
855
881
|
class: "tweaker-button",
|
|
856
|
-
children:
|
|
882
|
+
children: be,
|
|
857
883
|
events: {
|
|
858
884
|
click: () => {
|
|
859
|
-
|
|
885
|
+
S.resetState();
|
|
860
886
|
}
|
|
861
887
|
}
|
|
862
888
|
}),
|
|
863
|
-
|
|
889
|
+
I({
|
|
864
890
|
class: ["tweaker-button"],
|
|
865
|
-
children: [
|
|
891
|
+
children: [_e],
|
|
866
892
|
events: {
|
|
867
893
|
click: () => {
|
|
868
894
|
navigator.clipboard.writeText(
|
|
869
|
-
JSON.stringify(
|
|
895
|
+
JSON.stringify(S.getState())
|
|
870
896
|
);
|
|
871
897
|
}
|
|
872
898
|
}
|
|
873
899
|
}),
|
|
874
|
-
|
|
900
|
+
I({
|
|
875
901
|
class: "tweaker-button",
|
|
876
|
-
children:
|
|
902
|
+
children: Ae,
|
|
877
903
|
events: {
|
|
878
904
|
click: () => {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
905
|
+
Me(
|
|
906
|
+
S.projectName,
|
|
907
|
+
S.getState()
|
|
882
908
|
);
|
|
883
909
|
}
|
|
884
910
|
}
|
|
885
911
|
}),
|
|
886
|
-
|
|
912
|
+
Oe({
|
|
887
913
|
class: "tweaker-button",
|
|
888
914
|
children: [
|
|
889
|
-
|
|
890
|
-
|
|
915
|
+
Ie,
|
|
916
|
+
N({
|
|
891
917
|
attributes: {
|
|
892
918
|
type: "file"
|
|
893
919
|
},
|
|
@@ -903,9 +929,9 @@ let pe = class extends A {
|
|
|
903
929
|
if (r) {
|
|
904
930
|
const a = new FileReader();
|
|
905
931
|
a.onload = (o) => {
|
|
906
|
-
var
|
|
907
|
-
const n = (
|
|
908
|
-
n &&
|
|
932
|
+
var b, Z;
|
|
933
|
+
const n = (Z = (b = o.target) == null ? void 0 : b.result) == null ? void 0 : Z.toString();
|
|
934
|
+
n && S.loadState(n);
|
|
909
935
|
}, a.readAsText(r);
|
|
910
936
|
}
|
|
911
937
|
e.onchange = null;
|
|
@@ -926,57 +952,50 @@ let pe = class extends A {
|
|
|
926
952
|
});
|
|
927
953
|
}
|
|
928
954
|
connectedCallback() {
|
|
929
|
-
super.connectedCallback(),
|
|
955
|
+
super.connectedCallback(), $.subscribe(we(this, U));
|
|
930
956
|
}
|
|
931
957
|
disconnectedCallback() {
|
|
932
|
-
super.disconnectedCallback(),
|
|
958
|
+
super.disconnectedCallback(), $.unsubscribe(we(this, U));
|
|
933
959
|
}
|
|
934
960
|
};
|
|
935
|
-
|
|
936
|
-
|
|
961
|
+
U = /* @__PURE__ */ new WeakMap();
|
|
962
|
+
ue = $t([
|
|
937
963
|
p("e-tweaker")
|
|
938
|
-
],
|
|
939
|
-
var
|
|
940
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
964
|
+
], ue);
|
|
965
|
+
var Et = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, Dt = (t, e, r, s) => {
|
|
966
|
+
for (var a = s > 1 ? void 0 : s ? Tt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
941
967
|
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
942
|
-
return s && a &&
|
|
943
|
-
},
|
|
968
|
+
return s && a && Et(e, r, a), a;
|
|
969
|
+
}, Rt = (t, e, r) => {
|
|
944
970
|
if (!e.has(t))
|
|
945
971
|
throw TypeError("Cannot " + r);
|
|
946
|
-
},
|
|
972
|
+
}, me = (t, e, r) => (Rt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Wt = (t, e, r) => {
|
|
947
973
|
if (e.has(t))
|
|
948
974
|
throw TypeError("Cannot add the same private member more than once");
|
|
949
975
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
950
|
-
},
|
|
951
|
-
const
|
|
976
|
+
}, X;
|
|
977
|
+
const Lt = f({
|
|
952
978
|
":host": {
|
|
953
|
-
fontFamily: "sans-serif"
|
|
954
|
-
position: "fixed",
|
|
955
|
-
top: "0",
|
|
956
|
-
left: "0",
|
|
957
|
-
zIndex: "1000",
|
|
958
|
-
display: "block",
|
|
959
|
-
width: "100%",
|
|
960
|
-
height: "100%"
|
|
979
|
+
fontFamily: "sans-serif"
|
|
961
980
|
}
|
|
962
981
|
});
|
|
963
|
-
let ve = class extends
|
|
982
|
+
let ve = class extends ge {
|
|
964
983
|
constructor() {
|
|
965
|
-
super(),
|
|
966
|
-
|
|
967
|
-
}), this.openShadow(
|
|
968
|
-
shadowChildren: [new
|
|
984
|
+
super(), Wt(this, X, () => {
|
|
985
|
+
P.save();
|
|
986
|
+
}), this.openShadow(Lt), P.load(), m(this, {
|
|
987
|
+
shadowChildren: [new ue()]
|
|
969
988
|
});
|
|
970
989
|
}
|
|
971
990
|
connectedCallback() {
|
|
972
|
-
window.addEventListener("beforeunload",
|
|
991
|
+
window.addEventListener("beforeunload", me(this, X));
|
|
973
992
|
}
|
|
974
993
|
disconnectedCallback() {
|
|
975
|
-
window.removeEventListener("beforeunload",
|
|
994
|
+
window.removeEventListener("beforeunload", me(this, X)), P.save();
|
|
976
995
|
}
|
|
977
996
|
};
|
|
978
|
-
|
|
979
|
-
ve =
|
|
997
|
+
X = /* @__PURE__ */ new WeakMap();
|
|
998
|
+
ve = Dt([
|
|
980
999
|
p("e-studio")
|
|
981
1000
|
], ve);
|
|
982
1001
|
xe && document.body.appendChild(new ve());
|