aptechka 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animation-seVC6-fS.cjs → Animation-De9aUv3b.cjs} +1 -1
- package/lib/{Animation-DF5jPON_.js → Animation-NAGXiFv5.js} +1 -1
- package/lib/{Composed-ChlKoJEp.cjs → Composed-C_4slJQ6.cjs} +1 -1
- package/lib/{Composed-CoX1ImVk.js → Composed-CfWa-69I.js} +1 -1
- package/lib/{Damped-C7WAqKPh.cjs → Damped-DYJ6Z0xo.cjs} +1 -1
- package/lib/{Damped-BDO-F13V.js → Damped-DbJKrUIf.js} +1 -1
- package/lib/Derived-BIBU-y7Z.cjs +1 -0
- package/lib/Derived-Vo_RsJfi.js +23 -0
- package/lib/{SourceManager-B8-EMNnd.js → SourceManager-B6wZpXUZ.js} +1 -1
- package/lib/{SourceManager-TzU9Rw08.cjs → SourceManager-CfHcGLUa.cjs} +1 -1
- package/lib/Store-C46i0nvr.js +137 -0
- package/lib/Store-npaZHvX4.cjs +1 -0
- package/lib/{Tweened-DSXD0I0k.cjs → Tweened-BkkD9s4n.cjs} +1 -1
- package/lib/{Tweened-CHhmfvzo.js → Tweened-DOSHLCZa.js} +1 -1
- package/lib/{Viewport-DTlImj28.js → Viewport-B55BvLsV.js} +1 -1
- package/lib/{Viewport-BmLTk_6k.cjs → Viewport-Cv4TRGiv.cjs} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +13 -13
- package/lib/canvas/index.cjs +7 -1
- package/lib/canvas/index.js +54 -58
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/{createStylesheet-DO5t5q-m.js → createStylesheet-C68ja-RS.js} +3 -3
- package/lib/{createStylesheet-CaDI99iu.cjs → createStylesheet-Csfmh-MH.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +4 -4
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +133 -122
- package/lib/element-resizer/index.js +8 -8
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +4 -4
- package/lib/en3/index.js +1 -1
- package/lib/en3/loaders/index.js +1 -1
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/utils/index.js +2 -2
- package/lib/{en3-x-Ki30MY.js → en3-sK9Z-fp2.js} +1 -1
- package/lib/file-BEr-o55N.js +31 -0
- package/lib/file-C9BbxzVU.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/intersector/index.js +7 -7
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.js +14 -14
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +18 -0
- package/lib/need_redo_tweaker/index.js +1343 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +60 -62
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +105 -106
- package/lib/scroll-entries/index.js +15 -15
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +55 -86
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +38 -112
- package/lib/{tags-v-OSVkiQ.cjs → tags-6_ETuR75.cjs} +1 -1
- package/lib/{tags-4AoxVUe3.js → tags-zft1DGBz.js} +93 -93
- package/lib/ticker/index.js +1 -1
- package/lib/{traverseMaterials-mGC2_FkG.js → traverseMaterials-BlZbRhgW.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +56 -57
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +7 -55
- package/lib/Derived-B-2UXnVE.cjs +0 -1
- package/lib/Derived-CDGpSMKu.js +0 -56
- package/lib/Store-BnA-dJsE.cjs +0 -1
- package/lib/Store-DGtldlBH.js +0 -147
- package/lib/accordion/index.cjs +0 -1
- package/lib/accordion/index.js +0 -167
- package/lib/checkbox/index.cjs +0 -1
- package/lib/checkbox/index.js +0 -112
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/events-BGwqaxVW.cjs +0 -1
- package/lib/events-CJTUMSLU.js +0 -20
- package/lib/file-EevnUtRj.cjs +0 -1
- package/lib/file-lxi_oXJf.js +0 -13
- package/lib/index-BhbT9PrL.js +0 -261
- package/lib/index-BpsQqM-8.cjs +0 -9
- package/lib/modal/index.cjs +0 -1
- package/lib/modal/index.js +0 -133
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.js +0 -7
- package/lib/svg-path-data/index.cjs +0 -3
- package/lib/svg-path-data/index.js +0 -490
- package/lib/theme/index.cjs +0 -1
- package/lib/theme/index.js +0 -25
- package/lib/tweaker/index.cjs +0 -10
- package/lib/tweaker/index.js +0 -992
package/lib/tweaker/index.js
DELETED
|
@@ -1,992 +0,0 @@
|
|
|
1
|
-
var ke = (l) => {
|
|
2
|
-
throw TypeError(l);
|
|
3
|
-
};
|
|
4
|
-
var fe = (l, r, e) => r.has(l) || ke("Cannot " + e);
|
|
5
|
-
var t = (l, r, e) => (fe(l, r, "read from private field"), e ? e.call(l) : r.get(l)), o = (l, r, e) => r.has(l) ? ke("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(l) : r.set(l, e), n = (l, r, e, s) => (fe(l, r, "write to private field"), s ? s.call(l, e) : r.set(l, e), e), f = (l, r, e) => (fe(l, r, "access private method"), e);
|
|
6
|
-
import { i as je } from "../browser-0zX67oeU.js";
|
|
7
|
-
import { s as T, a as $, S as xe } from "../Store-DGtldlBH.js";
|
|
8
|
-
import { c as Be } from "../file-lxi_oXJf.js";
|
|
9
|
-
import { d as Je } from "../function-C10DGppn.js";
|
|
10
|
-
import { s as ze } from "../gestures-D2Fdra_G.js";
|
|
11
|
-
import "../ticker/index.js";
|
|
12
|
-
import { e as m, a0 as pe, a as We, D as g, aB as Xe, p as J, a3 as Ye } from "../tags-4AoxVUe3.js";
|
|
13
|
-
import { c as C } from "../createStylesheet-DO5t5q-m.js";
|
|
14
|
-
import { a as qe } from "../Viewport-DTlImj28.js";
|
|
15
|
-
import { aptechkaTheme as h } from "../theme/index.js";
|
|
16
|
-
import { a as Ge } from "../index-BhbT9PrL.js";
|
|
17
|
-
import { a as Qe } from "../events-CJTUMSLU.js";
|
|
18
|
-
import "../checkbox/index.js";
|
|
19
|
-
import { c as Ue } from "../math-BOBiC4TN.js";
|
|
20
|
-
import { n as Ee, t as _e } from "../polyfills-X6KXuHg-.js";
|
|
21
|
-
import { elementResizer as Ce } from "../element-resizer/index.js";
|
|
22
|
-
const Re = '<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>', Te = '<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>', et = '<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>', tt = '<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>';
|
|
23
|
-
var P, b, x;
|
|
24
|
-
class st {
|
|
25
|
-
constructor() {
|
|
26
|
-
o(this, P);
|
|
27
|
-
o(this, b);
|
|
28
|
-
o(this, x);
|
|
29
|
-
this.scrollValue = 0, n(this, P, ""), n(this, b, []), n(this, x, {}), n(this, P, T.projectName + "-studio");
|
|
30
|
-
}
|
|
31
|
-
openPanel(r) {
|
|
32
|
-
t(this, b).includes(r) || t(this, b).push(r);
|
|
33
|
-
}
|
|
34
|
-
closePanel(r) {
|
|
35
|
-
n(this, b, t(this, b).filter((e) => e !== r));
|
|
36
|
-
}
|
|
37
|
-
isPanelOpened(r) {
|
|
38
|
-
return t(this, b).includes(r);
|
|
39
|
-
}
|
|
40
|
-
changedSizes(r) {
|
|
41
|
-
return t(this, x)[r];
|
|
42
|
-
}
|
|
43
|
-
changeSize(r, e) {
|
|
44
|
-
e ? t(this, x)[r] = e : delete t(this, x)[r];
|
|
45
|
-
}
|
|
46
|
-
save() {
|
|
47
|
-
const r = {
|
|
48
|
-
openedPanels: t(this, b),
|
|
49
|
-
changedSizes: t(this, x),
|
|
50
|
-
scrollValue: this.scrollValue
|
|
51
|
-
};
|
|
52
|
-
localStorage.setItem(t(this, P), JSON.stringify(r)), T.saveState();
|
|
53
|
-
}
|
|
54
|
-
load() {
|
|
55
|
-
T.loadState();
|
|
56
|
-
const r = localStorage.getItem(t(this, P));
|
|
57
|
-
if (r)
|
|
58
|
-
try {
|
|
59
|
-
const e = JSON.parse(r);
|
|
60
|
-
e.openedPanels && n(this, b, e.openedPanels), e.changedSizes && n(this, x, e.changedSizes), e.scrollValue && (this.scrollValue = e.scrollValue);
|
|
61
|
-
} catch (e) {
|
|
62
|
-
console.error(e);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
P = new WeakMap(), b = new WeakMap(), x = new WeakMap();
|
|
67
|
-
const w = new st();
|
|
68
|
-
var F;
|
|
69
|
-
class j extends HTMLElement {
|
|
70
|
-
constructor(...e) {
|
|
71
|
-
super();
|
|
72
|
-
o(this, F);
|
|
73
|
-
n(this, F, e);
|
|
74
|
-
}
|
|
75
|
-
addStore(e) {
|
|
76
|
-
t(this, F).push(e);
|
|
77
|
-
}
|
|
78
|
-
get firstStore() {
|
|
79
|
-
return t(this, F)[0];
|
|
80
|
-
}
|
|
81
|
-
get stores() {
|
|
82
|
-
return t(this, F);
|
|
83
|
-
}
|
|
84
|
-
updateStores(e) {
|
|
85
|
-
t(this, F).forEach((s) => {
|
|
86
|
-
s.current = e;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
F = new WeakMap();
|
|
91
|
-
const it = C({
|
|
92
|
-
":host": {
|
|
93
|
-
width: "100%",
|
|
94
|
-
display: "inline-flex",
|
|
95
|
-
height: "max-content"
|
|
96
|
-
},
|
|
97
|
-
"e-checkbox": {
|
|
98
|
-
"--size": "calc(var(--height-input) * 0.8)",
|
|
99
|
-
width: "var(--size)",
|
|
100
|
-
height: "var(--size)",
|
|
101
|
-
borderRadius: h.borderRadiusSmall.var
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
class Fe extends j {
|
|
105
|
-
constructor(...r) {
|
|
106
|
-
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(it), m(this, {
|
|
107
|
-
children: [
|
|
108
|
-
m("e-checkbox", {
|
|
109
|
-
onChange: (s) => {
|
|
110
|
-
this.updateStores(s.currentTarget.checked);
|
|
111
|
-
},
|
|
112
|
-
ref: (s) => {
|
|
113
|
-
this.firstStore.subscribe((i) => {
|
|
114
|
-
s.checked = i.current;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
]
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
customElements.get("e-tweaker-boolean-manager") || customElements.define(
|
|
123
|
-
"e-tweaker-boolean-manager",
|
|
124
|
-
Fe
|
|
125
|
-
);
|
|
126
|
-
const rt = C({
|
|
127
|
-
":host": {
|
|
128
|
-
width: "100%",
|
|
129
|
-
display: "inline-flex",
|
|
130
|
-
height: "max-content"
|
|
131
|
-
},
|
|
132
|
-
input: {
|
|
133
|
-
width: "100%",
|
|
134
|
-
height: "var(--height-input)",
|
|
135
|
-
padding: "0",
|
|
136
|
-
background: "none",
|
|
137
|
-
borderRadius: h.borderRadius.var,
|
|
138
|
-
border: "none",
|
|
139
|
-
blockSize: "unset"
|
|
140
|
-
},
|
|
141
|
-
"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper": {
|
|
142
|
-
boxSizing: "border-box",
|
|
143
|
-
padding: "0px",
|
|
144
|
-
border: "none",
|
|
145
|
-
borderRadius: h.borderRadius.var,
|
|
146
|
-
height: "calc(var(--height-input) * 0.93)"
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
class Me extends j {
|
|
150
|
-
constructor(...r) {
|
|
151
|
-
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(rt), m(this, {
|
|
152
|
-
children: [
|
|
153
|
-
pe({
|
|
154
|
-
type: "color",
|
|
155
|
-
value: this.firstStore,
|
|
156
|
-
onInput: (s) => {
|
|
157
|
-
this.updateStores(s.currentTarget.value);
|
|
158
|
-
}
|
|
159
|
-
})
|
|
160
|
-
]
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", Me);
|
|
165
|
-
const ot = C({
|
|
166
|
-
a: {
|
|
167
|
-
color: "inherit",
|
|
168
|
-
fontSize: "var(--font-size-small)"
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
class Le extends j {
|
|
172
|
-
constructor(...r) {
|
|
173
|
-
var s, i;
|
|
174
|
-
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ot), console.log(this.firstStore), m(this, {
|
|
175
|
-
children: [
|
|
176
|
-
We({
|
|
177
|
-
href: this.firstStore,
|
|
178
|
-
target: (i = (s = this.firstStore.passport) == null ? void 0 : s.manager) != null && i.sameWindow ? "_self" : "_blank",
|
|
179
|
-
children: this.firstStore
|
|
180
|
-
})
|
|
181
|
-
]
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Le);
|
|
186
|
-
const nt = C({
|
|
187
|
-
":host": {
|
|
188
|
-
width: "100%",
|
|
189
|
-
display: "flex",
|
|
190
|
-
alignItems: "center",
|
|
191
|
-
gap: "var(--gap-small)"
|
|
192
|
-
},
|
|
193
|
-
".inputs-wrapper": {
|
|
194
|
-
display: "grid",
|
|
195
|
-
gap: "var(--gap-small)",
|
|
196
|
-
width: "100%"
|
|
197
|
-
},
|
|
198
|
-
input: {
|
|
199
|
-
boxSizing: "border-box",
|
|
200
|
-
outline: "none",
|
|
201
|
-
fontVariantNumeric: "tabular-nums",
|
|
202
|
-
fontFamily: "inherit",
|
|
203
|
-
color: "inherit",
|
|
204
|
-
border: "none",
|
|
205
|
-
fontSize: "var(--font-size-small)",
|
|
206
|
-
width: "100%",
|
|
207
|
-
height: "var(--height-input)",
|
|
208
|
-
margin: "0",
|
|
209
|
-
padding: "0 var(--gap-small)",
|
|
210
|
-
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
211
|
-
borderRadius: h.borderRadius.var
|
|
212
|
-
},
|
|
213
|
-
".drag": {
|
|
214
|
-
position: "relative",
|
|
215
|
-
width: "100%",
|
|
216
|
-
height: "calc(var(--height-input) * 0.2)",
|
|
217
|
-
display: "flex",
|
|
218
|
-
alignItems: "center"
|
|
219
|
-
},
|
|
220
|
-
".drag::before": {
|
|
221
|
-
content: '""',
|
|
222
|
-
position: "absolute",
|
|
223
|
-
left: "0",
|
|
224
|
-
width: "100%",
|
|
225
|
-
zIndex: "-1",
|
|
226
|
-
height: "1px",
|
|
227
|
-
borderBottom: `1px solid ${h.colorFont.var}`,
|
|
228
|
-
transform: "translateY(-50%)",
|
|
229
|
-
opacity: "0.3"
|
|
230
|
-
},
|
|
231
|
-
":host(.infinite) .drag::before": {
|
|
232
|
-
borderBottom: `1px dashed ${h.colorFont.var}`
|
|
233
|
-
},
|
|
234
|
-
".drag-knob": {
|
|
235
|
-
"--size": "calc(var(--height-input) * 0.4)",
|
|
236
|
-
width: "var(--size)",
|
|
237
|
-
height: "var(--size)"
|
|
238
|
-
},
|
|
239
|
-
".drag-knob-inner": {
|
|
240
|
-
width: "100%",
|
|
241
|
-
height: "100%",
|
|
242
|
-
backgroundColor: h.colorFont.var,
|
|
243
|
-
borderRadius: h.borderRadiusSmall.var,
|
|
244
|
-
transition: "opacity var(--duration-short)"
|
|
245
|
-
},
|
|
246
|
-
":host(.infinite) .grabbing .drag-knob-inner": {
|
|
247
|
-
opacity: 0.3
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
var I, A, D, E, M, W, X, k, V, Y, q, c, N, we, be, le, G;
|
|
251
|
-
class Pe extends j {
|
|
252
|
-
constructor(...e) {
|
|
253
|
-
var i, a, d, p, y, L, B, Se;
|
|
254
|
-
super(...e);
|
|
255
|
-
o(this, c);
|
|
256
|
-
o(this, I, []);
|
|
257
|
-
o(this, A, []);
|
|
258
|
-
o(this, D);
|
|
259
|
-
o(this, E);
|
|
260
|
-
o(this, M);
|
|
261
|
-
o(this, W);
|
|
262
|
-
o(this, X);
|
|
263
|
-
o(this, k);
|
|
264
|
-
o(this, V, !1);
|
|
265
|
-
o(this, Y, (e) => {
|
|
266
|
-
const s = f(this, c, N).call(this, e);
|
|
267
|
-
return s.map((i, a) => {
|
|
268
|
-
const d = typeof i == "string" ? parseFloat(i) || t(this, E) : i, p = Ue(d, t(this, E), t(this, M)), y = _e(p, t(this, D));
|
|
269
|
-
s[a] = y;
|
|
270
|
-
}), t(this, X) === "number" ? s[0] : s;
|
|
271
|
-
});
|
|
272
|
-
o(this, q, () => {
|
|
273
|
-
f(this, c, N).call(this).map((e, s) => {
|
|
274
|
-
const i = t(this, I)[s];
|
|
275
|
-
i && (i.value = (e || 0).toString());
|
|
276
|
-
}), f(this, c, we).call(this);
|
|
277
|
-
});
|
|
278
|
-
o(this, G, () => {
|
|
279
|
-
f(this, c, we).call(this);
|
|
280
|
-
});
|
|
281
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(nt), n(this, E, Ee(
|
|
282
|
-
(a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.min,
|
|
283
|
-
-1 / 0
|
|
284
|
-
)), n(this, M, Ee(
|
|
285
|
-
(p = (d = this.firstStore.passport) == null ? void 0 : d.manager) == null ? void 0 : p.max,
|
|
286
|
-
1 / 0
|
|
287
|
-
)), n(this, D, ((L = (y = this.firstStore.passport) == null ? void 0 : y.manager) == null ? void 0 : L.step) || 0.01), n(this, W, ((Se = (B = this.firstStore.passport) == null ? void 0 : B.manager) == null ? void 0 : Se.ease) || 1), n(this, X, Array.isArray(this.firstStore.current) ? "array" : "number"), n(this, k, isFinite(t(this, M)) && isFinite(t(this, E))), m(this, {
|
|
288
|
-
class: t(this, k) ? "" : "infinite",
|
|
289
|
-
children: f(this, c, N).call(this).map(($e, ae) => g({
|
|
290
|
-
class: "inputs-wrapper",
|
|
291
|
-
children: [
|
|
292
|
-
pe({
|
|
293
|
-
type: "number",
|
|
294
|
-
step: t(this, D),
|
|
295
|
-
min: t(this, E),
|
|
296
|
-
max: t(this, M),
|
|
297
|
-
ref: (z) => t(this, I).push(z),
|
|
298
|
-
value: $e,
|
|
299
|
-
onChange: () => {
|
|
300
|
-
this.updateStores(
|
|
301
|
-
t(this, I).map((z) => parseFloat(z.value))
|
|
302
|
-
);
|
|
303
|
-
}
|
|
304
|
-
}),
|
|
305
|
-
g({
|
|
306
|
-
class: "drag",
|
|
307
|
-
children: [
|
|
308
|
-
g({
|
|
309
|
-
class: "drag-knob",
|
|
310
|
-
ref: (z) => t(this, A).push(z),
|
|
311
|
-
onPointerdown: (z) => {
|
|
312
|
-
z.preventDefault(), n(this, V, !0);
|
|
313
|
-
const ue = f(this, c, N).call(this), Ae = ue[ae], R = t(this, A)[ae], De = t(this, I)[ae];
|
|
314
|
-
if (R && De) {
|
|
315
|
-
const ge = R.parentElement, He = f(this, c, be).call(this);
|
|
316
|
-
ge.classList.add("grabbing"), ze(
|
|
317
|
-
(me) => {
|
|
318
|
-
const ye = me.x - z.x, Ke = t(this, k) ? ge.offsetWidth / (He || 1) : 1, Oe = Ae + ye / Ke * t(this, W);
|
|
319
|
-
if (ue[ae] = Oe, !t(this, k)) {
|
|
320
|
-
const Ze = f(this, c, le).call(this, R, 0);
|
|
321
|
-
R.style.transform = `translateX(${Ze + ye}px)`;
|
|
322
|
-
}
|
|
323
|
-
this.updateStores([...ue]);
|
|
324
|
-
},
|
|
325
|
-
() => {
|
|
326
|
-
if (n(this, V, !1), !t(this, k)) {
|
|
327
|
-
const me = f(this, c, le).call(this, R, 0);
|
|
328
|
-
R.style.transition = "transform 0.1s", R.style.transform = `translateX(${me}px)`, ge.classList.remove("grabbing"), setTimeout(() => {
|
|
329
|
-
R.style.transition = "";
|
|
330
|
-
}, 100);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
children: g({
|
|
337
|
-
class: "drag-knob-inner"
|
|
338
|
-
})
|
|
339
|
-
})
|
|
340
|
-
]
|
|
341
|
-
})
|
|
342
|
-
]
|
|
343
|
-
}))
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
connectedCallback() {
|
|
347
|
-
this.firstStore.addMiddleware(t(this, Y)), this.firstStore.subscribe(t(this, q)), Ce.subscribe(this, t(this, G));
|
|
348
|
-
}
|
|
349
|
-
disconnectedCallback() {
|
|
350
|
-
this.firstStore.removeMiddleware(t(this, Y)), this.firstStore.unsubscribe(t(this, q)), Ce.unsubscribe(t(this, G));
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
I = new WeakMap(), A = new WeakMap(), D = new WeakMap(), E = new WeakMap(), M = new WeakMap(), W = new WeakMap(), X = new WeakMap(), k = new WeakMap(), V = new WeakMap(), Y = new WeakMap(), q = new WeakMap(), c = new WeakSet(), N = function(e = this.firstStore.current) {
|
|
354
|
-
return Array.isArray(e) ? e : [e];
|
|
355
|
-
}, we = function() {
|
|
356
|
-
f(this, c, N).call(this).map((e, s) => {
|
|
357
|
-
const i = t(this, A)[s];
|
|
358
|
-
if (i && (!t(this, V) || t(this, V) && t(this, k))) {
|
|
359
|
-
const a = f(this, c, le).call(this, i, e);
|
|
360
|
-
i.style.transform = `translateX(${a}px)`;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}, be = function() {
|
|
364
|
-
return t(this, k) ? t(this, M) - t(this, E) : 0;
|
|
365
|
-
}, le = function(e, s) {
|
|
366
|
-
const i = e.parentElement, a = f(this, c, be).call(this), d = a ? s / a : 0.5;
|
|
367
|
-
return (i.offsetWidth - e.offsetWidth) * d;
|
|
368
|
-
}, G = new WeakMap();
|
|
369
|
-
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Pe);
|
|
370
|
-
const at = C({
|
|
371
|
-
"e-select": {
|
|
372
|
-
display: "block",
|
|
373
|
-
width: "100%",
|
|
374
|
-
"--arrow-color": h.colorFont.var
|
|
375
|
-
},
|
|
376
|
-
"e-select-head": {
|
|
377
|
-
width: "100%",
|
|
378
|
-
height: "var(--height-input)",
|
|
379
|
-
display: "flex",
|
|
380
|
-
alignItems: "center",
|
|
381
|
-
justifyContent: "space-between",
|
|
382
|
-
fontSize: "var(--font-size-small)"
|
|
383
|
-
},
|
|
384
|
-
"e-select-option": {
|
|
385
|
-
height: "var(--height-input)",
|
|
386
|
-
transitionDuration: "var(--duration-short)",
|
|
387
|
-
transitionProperty: "color",
|
|
388
|
-
fontSize: "var(--font-size-small)"
|
|
389
|
-
},
|
|
390
|
-
"e-select-option:hover": {
|
|
391
|
-
color: h.colorActive.var
|
|
392
|
-
},
|
|
393
|
-
svg: {
|
|
394
|
-
width: "16px",
|
|
395
|
-
height: "16px",
|
|
396
|
-
fill: h.colorFont.var,
|
|
397
|
-
transitionProperty: "transform",
|
|
398
|
-
transitionDuration: "var(--duration-short)"
|
|
399
|
-
},
|
|
400
|
-
".opened svg": {
|
|
401
|
-
transform: "scaleY(-1)"
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
class Ie extends j {
|
|
405
|
-
constructor(...r) {
|
|
406
|
-
var i, a;
|
|
407
|
-
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(at);
|
|
408
|
-
const s = ((a = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : a.variants) || [];
|
|
409
|
-
m(this, {
|
|
410
|
-
children: m("e-select", {
|
|
411
|
-
value: this.firstStore,
|
|
412
|
-
onChange: (d) => {
|
|
413
|
-
this.updateStores(d.currentTarget.value);
|
|
414
|
-
},
|
|
415
|
-
lightChildren: [
|
|
416
|
-
m("e-select-head", {
|
|
417
|
-
lightChildren: [
|
|
418
|
-
Xe({
|
|
419
|
-
"data-value-holder": ""
|
|
420
|
-
})
|
|
421
|
-
]
|
|
422
|
-
}),
|
|
423
|
-
...s.map(
|
|
424
|
-
(d, p) => m("e-select-option", {
|
|
425
|
-
lightChildren: d,
|
|
426
|
-
default: p === 0 ? !0 : null
|
|
427
|
-
})
|
|
428
|
-
)
|
|
429
|
-
]
|
|
430
|
-
})
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", Ie);
|
|
435
|
-
const lt = C({
|
|
436
|
-
":host": {
|
|
437
|
-
width: "100%",
|
|
438
|
-
display: "flex",
|
|
439
|
-
alignItems: "center"
|
|
440
|
-
},
|
|
441
|
-
input: {
|
|
442
|
-
boxSizing: "border-box",
|
|
443
|
-
outline: "none",
|
|
444
|
-
fontVariantNumeric: "tabular-nums",
|
|
445
|
-
fontFamily: "inherit",
|
|
446
|
-
color: "inherit",
|
|
447
|
-
border: "none",
|
|
448
|
-
fontSize: "var(--font-size-small)",
|
|
449
|
-
height: "var(--height-input)",
|
|
450
|
-
width: "100%",
|
|
451
|
-
margin: "0",
|
|
452
|
-
padding: "0 var(--gap-small)",
|
|
453
|
-
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
454
|
-
borderRadius: h.borderRadius.var
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
class Ve extends j {
|
|
458
|
-
constructor(...r) {
|
|
459
|
-
super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(lt), m(this, {
|
|
460
|
-
children: [
|
|
461
|
-
pe({
|
|
462
|
-
class: "text-input",
|
|
463
|
-
type: "string",
|
|
464
|
-
value: this.firstStore,
|
|
465
|
-
onChange: (s) => {
|
|
466
|
-
this.updateStores(
|
|
467
|
-
s.currentTarget.value
|
|
468
|
-
);
|
|
469
|
-
}
|
|
470
|
-
})
|
|
471
|
-
]
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Ve);
|
|
476
|
-
const ht = {
|
|
477
|
-
boolean: Fe,
|
|
478
|
-
color: Me,
|
|
479
|
-
link: Le,
|
|
480
|
-
number: Pe,
|
|
481
|
-
select: Ie,
|
|
482
|
-
string: Ve
|
|
483
|
-
}, dt = C({
|
|
484
|
-
":host": {
|
|
485
|
-
display: "grid",
|
|
486
|
-
gridAutoFlow: "column",
|
|
487
|
-
gridTemplateColumns: "0.5fr 1fr",
|
|
488
|
-
alignItems: "center",
|
|
489
|
-
color: h.colorFont.var,
|
|
490
|
-
gap: "var(--gap-medium)"
|
|
491
|
-
},
|
|
492
|
-
":host(.disabled)": {
|
|
493
|
-
pointerEvents: "none",
|
|
494
|
-
opacity: 0.5
|
|
495
|
-
},
|
|
496
|
-
".head": {
|
|
497
|
-
fontSize: "var(--font-size-medium)",
|
|
498
|
-
display: "flex",
|
|
499
|
-
alignItems: "center",
|
|
500
|
-
gap: "var(--gap-extra-small)"
|
|
501
|
-
},
|
|
502
|
-
".head-buttons": {
|
|
503
|
-
display: "flex"
|
|
504
|
-
},
|
|
505
|
-
".head-button": {
|
|
506
|
-
width: "14px",
|
|
507
|
-
height: "14px",
|
|
508
|
-
padding: "0",
|
|
509
|
-
margin: "0",
|
|
510
|
-
border: "none",
|
|
511
|
-
background: "none",
|
|
512
|
-
fill: h.colorFont.var,
|
|
513
|
-
transitionDuration: "var(--duration-short)",
|
|
514
|
-
transitionProperty: "fill, opacity",
|
|
515
|
-
opacity: "0"
|
|
516
|
-
},
|
|
517
|
-
":host(:hover) .head-button": {
|
|
518
|
-
opacity: "1"
|
|
519
|
-
},
|
|
520
|
-
".head-button:hover": {
|
|
521
|
-
fill: h.colorActive.var
|
|
522
|
-
},
|
|
523
|
-
".head-button svg": {
|
|
524
|
-
width: "100%",
|
|
525
|
-
height: "100%"
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
var v, H, K, O, Z, Q, U;
|
|
529
|
-
class ve extends HTMLElement {
|
|
530
|
-
constructor(e) {
|
|
531
|
-
var a, d, p, y;
|
|
532
|
-
super();
|
|
533
|
-
o(this, v, []);
|
|
534
|
-
o(this, H);
|
|
535
|
-
o(this, K);
|
|
536
|
-
o(this, O, !1);
|
|
537
|
-
o(this, Z);
|
|
538
|
-
o(this, Q, () => {
|
|
539
|
-
$.current.find((e) => t(this, v).includes(e)) || this.remove();
|
|
540
|
-
});
|
|
541
|
-
o(this, U, (e) => {
|
|
542
|
-
t(this, O) && ((e.metaKey || e.ctrlKey) && e.code === "KeyC" ? navigator.clipboard.writeText(t(this, v)[0].current) : (e.metaKey || e.ctrlKey) && e.code === "KeyR" && (t(this, v).forEach((s) => {
|
|
543
|
-
s.reset();
|
|
544
|
-
}), e.preventDefault()));
|
|
545
|
-
});
|
|
546
|
-
n(this, v, [e.store]), n(this, H, e.store.passport.name), n(this, K, t(this, H).split(".").slice(-1).toString());
|
|
547
|
-
const s = ((d = (a = e.store.passport) == null ? void 0 : a.manager) == null ? void 0 : d.type) || "string";
|
|
548
|
-
n(this, Z, new ht[s](t(this, v)[0])), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(dt), m(this, {
|
|
549
|
-
class: {
|
|
550
|
-
disabled: ((y = (p = e.store.passport) == null ? void 0 : p.manager) == null ? void 0 : y.disabled) || !1
|
|
551
|
-
},
|
|
552
|
-
onPointerleave: () => {
|
|
553
|
-
n(this, O, !1);
|
|
554
|
-
},
|
|
555
|
-
onPointerenter: () => {
|
|
556
|
-
n(this, O, !0);
|
|
557
|
-
},
|
|
558
|
-
children: [
|
|
559
|
-
g({
|
|
560
|
-
class: "head",
|
|
561
|
-
children: [
|
|
562
|
-
g({ class: "name", children: t(this, K) + ":" }),
|
|
563
|
-
g({
|
|
564
|
-
class: "head-buttons",
|
|
565
|
-
children: [
|
|
566
|
-
J({
|
|
567
|
-
class: "head-button",
|
|
568
|
-
children: Te,
|
|
569
|
-
onClick: () => {
|
|
570
|
-
navigator.clipboard.writeText(t(this, v)[0].current);
|
|
571
|
-
}
|
|
572
|
-
}),
|
|
573
|
-
J({
|
|
574
|
-
class: "head-button",
|
|
575
|
-
children: Re,
|
|
576
|
-
onClick: () => {
|
|
577
|
-
t(this, v).forEach((L) => {
|
|
578
|
-
L.reset();
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
})
|
|
582
|
-
]
|
|
583
|
-
})
|
|
584
|
-
]
|
|
585
|
-
}),
|
|
586
|
-
t(this, Z)
|
|
587
|
-
]
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
get key() {
|
|
591
|
-
return t(this, H);
|
|
592
|
-
}
|
|
593
|
-
get name() {
|
|
594
|
-
return t(this, K);
|
|
595
|
-
}
|
|
596
|
-
get stores() {
|
|
597
|
-
return t(this, v);
|
|
598
|
-
}
|
|
599
|
-
addStore(e) {
|
|
600
|
-
t(this, Z).addStore(e);
|
|
601
|
-
}
|
|
602
|
-
connectedCallback() {
|
|
603
|
-
$.subscribe(t(this, Q)), addEventListener("keydown", t(this, U)), Qe(this);
|
|
604
|
-
}
|
|
605
|
-
disconnectedCallback() {
|
|
606
|
-
$.unsubscribe(t(this, Q)), removeEventListener("keydown", t(this, U));
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
v = new WeakMap(), H = new WeakMap(), K = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), Q = new WeakMap(), U = new WeakMap();
|
|
610
|
-
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", ve);
|
|
611
|
-
const ct = C({
|
|
612
|
-
".wrapper": {
|
|
613
|
-
boxSizing: "border-box",
|
|
614
|
-
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
615
|
-
borderRadius: h.borderRadius.var
|
|
616
|
-
},
|
|
617
|
-
".head": {
|
|
618
|
-
boxSizing: "border-box",
|
|
619
|
-
width: "100%",
|
|
620
|
-
height: "var(--tweaker-folder-height)",
|
|
621
|
-
paddingLeft: "var(--gap-medium)",
|
|
622
|
-
paddingRight: "var(--gap-medium)",
|
|
623
|
-
display: "flex",
|
|
624
|
-
alignItems: "center",
|
|
625
|
-
justifyContent: "space-between",
|
|
626
|
-
backgroundColor: h.colorMainAux.var,
|
|
627
|
-
borderRadius: h.borderRadius.var
|
|
628
|
-
},
|
|
629
|
-
".name": {
|
|
630
|
-
fontSize: "var(--font-size-large)",
|
|
631
|
-
color: h.colorFont.var
|
|
632
|
-
},
|
|
633
|
-
".body": {
|
|
634
|
-
display: "none",
|
|
635
|
-
overflow: "hidden",
|
|
636
|
-
"@supports (height: calc-size(auto))": {
|
|
637
|
-
height: "0"
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
":host(.transition-allowed) .body": {
|
|
641
|
-
transition: "height var(--duration-short), display var(--duration-short) allow-discrete"
|
|
642
|
-
},
|
|
643
|
-
":host(.opened) .body": {
|
|
644
|
-
height: "calc-size(auto)",
|
|
645
|
-
display: "block",
|
|
646
|
-
"@starting-style": {
|
|
647
|
-
height: "0"
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
".body-content": {
|
|
651
|
-
boxSizing: "border-box",
|
|
652
|
-
padding: "var(--gap-large)",
|
|
653
|
-
display: "grid",
|
|
654
|
-
gap: "var(--gap-medium)"
|
|
655
|
-
},
|
|
656
|
-
".arrow": {
|
|
657
|
-
width: "20px",
|
|
658
|
-
height: "20px",
|
|
659
|
-
fill: h.colorFont.var,
|
|
660
|
-
transition: "transform var(--duration-short)"
|
|
661
|
-
},
|
|
662
|
-
".opened .arrow": {
|
|
663
|
-
transform: "scaleY(-1)"
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
var S, _, u, ee, te, se, ie, de;
|
|
667
|
-
const ce = class ce extends HTMLElement {
|
|
668
|
-
constructor(e) {
|
|
669
|
-
super();
|
|
670
|
-
o(this, S);
|
|
671
|
-
o(this, _, new xe(null));
|
|
672
|
-
o(this, u, new xe([]));
|
|
673
|
-
o(this, ee);
|
|
674
|
-
o(this, te, null);
|
|
675
|
-
o(this, se, null);
|
|
676
|
-
o(this, ie, null);
|
|
677
|
-
o(this, de, (e) => {
|
|
678
|
-
let s = [], i = [];
|
|
679
|
-
e.forEach((a) => {
|
|
680
|
-
s = [...s, ...a.removedNodes], i = [...i, ...a.addedNodes];
|
|
681
|
-
}), t(this, u).current = t(this, u).current.filter(
|
|
682
|
-
(a) => !s.includes(a)
|
|
683
|
-
), t(this, S) && !t(this, u).current.length && !i.length && this.remove();
|
|
684
|
-
});
|
|
685
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ct), n(this, S, e.key), n(this, ee, new MutationObserver(t(this, de))), m(this, {
|
|
686
|
-
children: [
|
|
687
|
-
g({
|
|
688
|
-
class: "wrapper",
|
|
689
|
-
children: [
|
|
690
|
-
g({
|
|
691
|
-
class: "head",
|
|
692
|
-
onClick: (i) => {
|
|
693
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ? w.openPanel(t(this, S)) : w.closePanel(t(this, S));
|
|
694
|
-
},
|
|
695
|
-
children: [
|
|
696
|
-
t(this, S) ? g({
|
|
697
|
-
class: "name",
|
|
698
|
-
children: [t(this, S).split(".").slice(-1).toString()]
|
|
699
|
-
}) : null,
|
|
700
|
-
t(this, _),
|
|
701
|
-
m(Ge, {
|
|
702
|
-
class: "arrow"
|
|
703
|
-
})
|
|
704
|
-
]
|
|
705
|
-
}),
|
|
706
|
-
g({
|
|
707
|
-
class: "body",
|
|
708
|
-
ref: (i) => {
|
|
709
|
-
n(this, te, i);
|
|
710
|
-
},
|
|
711
|
-
children: g({
|
|
712
|
-
class: "body-content",
|
|
713
|
-
children: t(this, u),
|
|
714
|
-
ref: (i) => {
|
|
715
|
-
n(this, se, i), n(this, ie, i.firstElementChild);
|
|
716
|
-
}
|
|
717
|
-
})
|
|
718
|
-
})
|
|
719
|
-
]
|
|
720
|
-
})
|
|
721
|
-
]
|
|
722
|
-
}), e != null && e.storeBox && this.handleStore(e.storeBox);
|
|
723
|
-
}
|
|
724
|
-
get key() {
|
|
725
|
-
return t(this, S);
|
|
726
|
-
}
|
|
727
|
-
get head() {
|
|
728
|
-
return t(this, _);
|
|
729
|
-
}
|
|
730
|
-
get content() {
|
|
731
|
-
return t(this, u);
|
|
732
|
-
}
|
|
733
|
-
get bodyElement() {
|
|
734
|
-
return t(this, te);
|
|
735
|
-
}
|
|
736
|
-
get contentElement() {
|
|
737
|
-
return t(this, se);
|
|
738
|
-
}
|
|
739
|
-
connectedCallback() {
|
|
740
|
-
w.isPanelOpened(t(this, S)) && this.classList.add("opened"), setTimeout(() => {
|
|
741
|
-
this.classList.add("transition-allowed");
|
|
742
|
-
}), t(this, ee).observe(t(this, ie), {
|
|
743
|
-
childList: !0
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
handleStore(e) {
|
|
747
|
-
if (e.remainingFolders.length) {
|
|
748
|
-
const i = e.store.passport.name.split("."), a = i.slice(0, i.length - e.remainingFolders.length).join("."), d = t(this, u).current.find((p) => p.key === a);
|
|
749
|
-
d instanceof ce ? d.handleStore({
|
|
750
|
-
store: e.store,
|
|
751
|
-
remainingFolders: e.remainingFolders.slice(1)
|
|
752
|
-
}) : t(this, u).current = [
|
|
753
|
-
...t(this, u).current,
|
|
754
|
-
new ce({
|
|
755
|
-
key: a,
|
|
756
|
-
storeBox: {
|
|
757
|
-
store: e.store,
|
|
758
|
-
remainingFolders: e.remainingFolders.slice(1)
|
|
759
|
-
}
|
|
760
|
-
})
|
|
761
|
-
];
|
|
762
|
-
} else {
|
|
763
|
-
const s = t(this, u).current.find(
|
|
764
|
-
(i) => i.key === e.store.passport.name
|
|
765
|
-
);
|
|
766
|
-
s instanceof ve ? s.addStore(e.store) : t(this, u).current = [
|
|
767
|
-
...t(this, u).current,
|
|
768
|
-
new ve({
|
|
769
|
-
store: e.store
|
|
770
|
-
})
|
|
771
|
-
];
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
S = new WeakMap(), _ = new WeakMap(), u = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), de = new WeakMap();
|
|
776
|
-
let he = ce;
|
|
777
|
-
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", he);
|
|
778
|
-
const pt = C({
|
|
779
|
-
":host": {
|
|
780
|
-
"--tweaker-width": "550px",
|
|
781
|
-
"--tweaker-offset": "20px",
|
|
782
|
-
"--tweaker-folder-height": "35px",
|
|
783
|
-
"--height-input": "25px",
|
|
784
|
-
"--gap-large": "12px",
|
|
785
|
-
"--gap-medium": "10px",
|
|
786
|
-
"--gap-small": "8px",
|
|
787
|
-
"--gap-extra-small": "4px",
|
|
788
|
-
"--font-size-large": "16px",
|
|
789
|
-
"--font-size-medium": "14px",
|
|
790
|
-
"--font-size-small": "12px",
|
|
791
|
-
"--duration-short": "0.2s",
|
|
792
|
-
fontFamily: "sans-serif",
|
|
793
|
-
position: "absolute",
|
|
794
|
-
top: "var(--tweaker-offset)",
|
|
795
|
-
right: "var(--tweaker-offset)",
|
|
796
|
-
width: "var(--tweaker-width)",
|
|
797
|
-
backgroundColor: h.colorMain.var,
|
|
798
|
-
borderRadius: h.borderRadius.var,
|
|
799
|
-
transition: "opacity 0.1s",
|
|
800
|
-
zIndex: "100",
|
|
801
|
-
opacity: "0.1"
|
|
802
|
-
},
|
|
803
|
-
":host(:hover)": {
|
|
804
|
-
opacity: "1 !important"
|
|
805
|
-
},
|
|
806
|
-
".resize": {
|
|
807
|
-
position: "absolute",
|
|
808
|
-
left: "0",
|
|
809
|
-
top: "0",
|
|
810
|
-
width: "calc(var(--tweaker-width) * 0.025)",
|
|
811
|
-
height: "100%",
|
|
812
|
-
zIndex: "1",
|
|
813
|
-
cursor: "ew-resize"
|
|
814
|
-
},
|
|
815
|
-
".tweaker-buttons": {
|
|
816
|
-
display: "flex",
|
|
817
|
-
alignItems: "center",
|
|
818
|
-
gap: "var(--gap-extra-small)"
|
|
819
|
-
},
|
|
820
|
-
".tweaker-button": {
|
|
821
|
-
width: "18px",
|
|
822
|
-
height: "18px",
|
|
823
|
-
padding: "0",
|
|
824
|
-
margin: "0",
|
|
825
|
-
background: "none",
|
|
826
|
-
border: "none",
|
|
827
|
-
fill: h.colorFont.var,
|
|
828
|
-
transitionProperty: "fill",
|
|
829
|
-
transitionDuration: "var(--duration-short)"
|
|
830
|
-
},
|
|
831
|
-
".tweaker-button:hover": {
|
|
832
|
-
fill: h.colorActive.var
|
|
833
|
-
},
|
|
834
|
-
".tweaker-button svg": {
|
|
835
|
-
width: "100%",
|
|
836
|
-
height: "100%"
|
|
837
|
-
},
|
|
838
|
-
":host .body-content": {
|
|
839
|
-
maxHeight: `calc(
|
|
840
|
-
100dvh -
|
|
841
|
-
(
|
|
842
|
-
var(--tweaker-offset) * 2 +
|
|
843
|
-
var(--tweaker-folder-height)
|
|
844
|
-
)
|
|
845
|
-
)`,
|
|
846
|
-
overflow: "hidden auto",
|
|
847
|
-
"-ms-overflow-style": "none",
|
|
848
|
-
"scrollbar-width": "none"
|
|
849
|
-
},
|
|
850
|
-
":host .body-content::-webkit-scrollbar": {
|
|
851
|
-
display: "none"
|
|
852
|
-
},
|
|
853
|
-
[`@media ${qe["<=mobile"]}`]: {
|
|
854
|
-
":host": {
|
|
855
|
-
position: "absolute",
|
|
856
|
-
top: "0",
|
|
857
|
-
right: "0",
|
|
858
|
-
width: "100% !important",
|
|
859
|
-
borderTopLeftRadius: "0",
|
|
860
|
-
borderTopRightRadius: "0"
|
|
861
|
-
},
|
|
862
|
-
":host .body-content": {
|
|
863
|
-
maxHeight: `calc(
|
|
864
|
-
100dvh -
|
|
865
|
-
var(--tweaker-folder-height)
|
|
866
|
-
)`
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
});
|
|
870
|
-
var re, oe, ne;
|
|
871
|
-
class Ne extends he {
|
|
872
|
-
constructor() {
|
|
873
|
-
super({
|
|
874
|
-
key: ""
|
|
875
|
-
});
|
|
876
|
-
o(this, re, !1);
|
|
877
|
-
o(this, oe, () => {
|
|
878
|
-
w.save();
|
|
879
|
-
});
|
|
880
|
-
o(this, ne, Je(() => {
|
|
881
|
-
$.current.forEach((e) => {
|
|
882
|
-
var s;
|
|
883
|
-
if (e.passport && !((s = e.passport.manager) != null && s.invisible)) {
|
|
884
|
-
const i = e.passport.name.split(".");
|
|
885
|
-
this.handleStore({
|
|
886
|
-
store: e,
|
|
887
|
-
remainingFolders: i.length > 1 ? i.slice(0, -1) : []
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
}), t(this, re) || (n(this, re, !0), this.contentElement.scroll({
|
|
891
|
-
top: w.scrollValue
|
|
892
|
-
}), this.contentElement.addEventListener("scroll", () => {
|
|
893
|
-
w.scrollValue = this.contentElement.scrollTop;
|
|
894
|
-
}));
|
|
895
|
-
}, 10));
|
|
896
|
-
w.load(), this.shadowRoot.adoptedStyleSheets.push(pt), this.head.current = [
|
|
897
|
-
g({
|
|
898
|
-
class: "tweaker-buttons",
|
|
899
|
-
onClick: (e) => {
|
|
900
|
-
e.stopPropagation();
|
|
901
|
-
},
|
|
902
|
-
children: [
|
|
903
|
-
J({
|
|
904
|
-
class: "tweaker-button",
|
|
905
|
-
children: Re,
|
|
906
|
-
onClick: () => {
|
|
907
|
-
T.resetState();
|
|
908
|
-
}
|
|
909
|
-
}),
|
|
910
|
-
J({
|
|
911
|
-
class: ["tweaker-button"],
|
|
912
|
-
children: [Te],
|
|
913
|
-
onClick: () => {
|
|
914
|
-
navigator.clipboard.writeText(
|
|
915
|
-
JSON.stringify(T.getState())
|
|
916
|
-
);
|
|
917
|
-
}
|
|
918
|
-
}),
|
|
919
|
-
J({
|
|
920
|
-
class: "tweaker-button",
|
|
921
|
-
children: et,
|
|
922
|
-
onClick: () => {
|
|
923
|
-
Be(
|
|
924
|
-
T.projectName,
|
|
925
|
-
T.getState()
|
|
926
|
-
);
|
|
927
|
-
}
|
|
928
|
-
}),
|
|
929
|
-
Ye({
|
|
930
|
-
class: "tweaker-button",
|
|
931
|
-
children: [
|
|
932
|
-
tt,
|
|
933
|
-
pe({
|
|
934
|
-
type: "file",
|
|
935
|
-
style: {
|
|
936
|
-
display: "none"
|
|
937
|
-
},
|
|
938
|
-
onChange: (e) => {
|
|
939
|
-
var a;
|
|
940
|
-
const i = (a = e.currentTarget.files) == null ? void 0 : a[0];
|
|
941
|
-
if (i) {
|
|
942
|
-
const d = new FileReader();
|
|
943
|
-
d.onload = (p) => {
|
|
944
|
-
var L, B;
|
|
945
|
-
const y = (B = (L = p.target) == null ? void 0 : L.result) == null ? void 0 : B.toString();
|
|
946
|
-
y && T.loadState(y);
|
|
947
|
-
}, d.readAsText(i);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
})
|
|
951
|
-
]
|
|
952
|
-
})
|
|
953
|
-
]
|
|
954
|
-
})
|
|
955
|
-
], m(this.bodyElement, {
|
|
956
|
-
children: [
|
|
957
|
-
g({
|
|
958
|
-
class: "resize",
|
|
959
|
-
onPointerdown: (e) => {
|
|
960
|
-
e.preventDefault();
|
|
961
|
-
const s = this.getBoundingClientRect(), i = this.contentElement.scrollTop;
|
|
962
|
-
ze(
|
|
963
|
-
(a) => {
|
|
964
|
-
const d = e.x - a.x, p = Math.max(400, s.width + d);
|
|
965
|
-
this.style.width = p + "px", w.changeSize("tweaker", p);
|
|
966
|
-
},
|
|
967
|
-
() => {
|
|
968
|
-
setTimeout(() => {
|
|
969
|
-
this.contentElement.scroll({
|
|
970
|
-
top: i
|
|
971
|
-
});
|
|
972
|
-
}, 10);
|
|
973
|
-
}
|
|
974
|
-
);
|
|
975
|
-
},
|
|
976
|
-
onDblclick: () => {
|
|
977
|
-
this.style.width = "", w.changeSize("tweaker", null);
|
|
978
|
-
}
|
|
979
|
-
})
|
|
980
|
-
]
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
connectedCallback() {
|
|
984
|
-
super.connectedCallback(), window.addEventListener("beforeunload", t(this, oe)), $.subscribe(t(this, ne)), w.changedSizes("tweaker") && (this.style.width = w.changedSizes("tweaker") + "px");
|
|
985
|
-
}
|
|
986
|
-
disconnectedCallback() {
|
|
987
|
-
window.removeEventListener("beforeunload", t(this, oe)), w.save(), $.unsubscribe(t(this, ne));
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap();
|
|
991
|
-
customElements.get("e-tweaker") || customElements.define("e-tweaker", Ne);
|
|
992
|
-
je && document.body.appendChild(new Ne());
|