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