aptechka 0.14.0 → 0.15.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-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
- package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
- package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
- package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
- package/lib/Store-CDb6RMce.cjs +1 -0
- package/lib/Store-OTdcl6SX.js +134 -0
- package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
- package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
- package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
- package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +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 +1 -1
- package/lib/canvas/index.cjs +1 -7
- package/lib/canvas/index.js +49 -48
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +845 -130
- package/lib/en3/index.cjs +8 -1
- package/lib/en3/index.js +372 -4
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +415 -421
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +15 -21
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +576 -608
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +154 -62
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +71 -37
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +59 -56
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -26
- package/lib/Composed-C_4slJQ6.cjs +0 -1
- package/lib/Composed-CfWa-69I.js +0 -31
- package/lib/Derived-BIBU-y7Z.cjs +0 -1
- package/lib/Derived-Vo_RsJfi.js +0 -23
- package/lib/SourceManager-B6wZpXUZ.js +0 -104
- package/lib/SourceManager-CfHcGLUa.cjs +0 -1
- package/lib/Store-C46i0nvr.js +0 -137
- package/lib/Store-npaZHvX4.cjs +0 -1
- package/lib/createStylesheet-C68ja-RS.js +0 -8
- package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
- package/lib/en3/helpers/index.cjs +0 -1
- package/lib/en3/helpers/index.js +0 -1870
- package/lib/en3/libs/index.cjs +0 -1
- package/lib/en3/libs/index.js +0 -200
- package/lib/en3/loaders/index.cjs +0 -1
- package/lib/en3/loaders/index.js +0 -1742
- package/lib/en3/misc/index.cjs +0 -10
- package/lib/en3/misc/index.js +0 -110
- package/lib/en3/utils/index.cjs +0 -1
- package/lib/en3/utils/index.js +0 -20
- package/lib/en3-C1fLmsjs.cjs +0 -8
- package/lib/en3-sK9Z-fp2.js +0 -344
- package/lib/tags-6_ETuR75.cjs +0 -1
- package/lib/tags-zft1DGBz.js +0 -833
- package/lib/traverseMaterials-BlZbRhgW.js +0 -29
- package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
var
|
|
1
|
+
var We = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var e = (a,
|
|
6
|
-
import { i as
|
|
7
|
-
import { s as
|
|
8
|
-
import { d as
|
|
9
|
-
import { d as
|
|
10
|
-
import { s as
|
|
4
|
+
var Pe = (a, n, t) => n.has(a) || We("Cannot " + t);
|
|
5
|
+
var e = (a, n, t) => (Pe(a, n, "read from private field"), t ? t.call(a) : n.get(a)), i = (a, n, t) => n.has(a) ? We("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, t), o = (a, n, t, s) => (Pe(a, n, "write to private field"), s ? s.call(a, t) : n.set(a, t), t), c = (a, n, t) => (Pe(a, n, "access private method"), t);
|
|
6
|
+
import { i as Ee } from "../browser-0zX67oeU.js";
|
|
7
|
+
import { s as L, a as _, S as qe } from "../Store-OTdcl6SX.js";
|
|
8
|
+
import { d as Xe, a as ft, c as wt } from "../file-BEr-o55N.js";
|
|
9
|
+
import { d as vt } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as Ue } from "../gestures-D2Fdra_G.js";
|
|
11
11
|
import "../ticker/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
import { g as Rt } from "../style-j2TwriJ_.js";
|
|
20
|
-
const l = zt(
|
|
12
|
+
import { createTheme as bt, style as yt, createStylesheet as w, element as u, label as Ge, span as $e, slot as te, input as Ce, a as kt, div as g, button as O } from "../element-constructor/index.js";
|
|
13
|
+
import { a as St } from "../Viewport-taEXS8Uv.js";
|
|
14
|
+
import { c as xt } from "../math-BOBiC4TN.js";
|
|
15
|
+
import { n as Je, t as Et } from "../polyfills-X6KXuHg-.js";
|
|
16
|
+
import { elementResizer as Ye } from "../element-resizer/index.js";
|
|
17
|
+
import { g as Ct } from "../style-j2TwriJ_.js";
|
|
18
|
+
const h = bt(
|
|
21
19
|
{
|
|
22
20
|
colorMain: "#1c1c1c",
|
|
23
21
|
colorMainAux: "#282828",
|
|
@@ -28,13 +26,13 @@ const l = zt(
|
|
|
28
26
|
},
|
|
29
27
|
{ prefix: "aptechka-" }
|
|
30
28
|
);
|
|
31
|
-
if (
|
|
32
|
-
const a =
|
|
33
|
-
":root":
|
|
29
|
+
if (Ee) {
|
|
30
|
+
const a = yt({
|
|
31
|
+
":root": h.style
|
|
34
32
|
}).node;
|
|
35
33
|
a.setAttribute("data-permanent", ""), document.head.appendChild(a);
|
|
36
34
|
}
|
|
37
|
-
const
|
|
35
|
+
const Qe = '<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>', et = '<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>', zt = '<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>', tt = `<svg
|
|
38
36
|
xmlns="http://www.w3.org/2000/svg"
|
|
39
37
|
width="32"
|
|
40
38
|
height="32"
|
|
@@ -43,57 +41,57 @@ const st = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
43
41
|
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
44
42
|
</svg>
|
|
45
43
|
`;
|
|
46
|
-
var
|
|
47
|
-
class
|
|
44
|
+
var A, y, C;
|
|
45
|
+
class Lt {
|
|
48
46
|
constructor() {
|
|
49
|
-
i(this,
|
|
50
|
-
i(this,
|
|
47
|
+
i(this, A);
|
|
48
|
+
i(this, y);
|
|
51
49
|
i(this, C);
|
|
52
|
-
this.scrollValue = 0, o(this,
|
|
50
|
+
this.scrollValue = 0, o(this, A, ""), o(this, y, []), o(this, C, {}), o(this, A, L.name + "-tweaker");
|
|
53
51
|
}
|
|
54
|
-
openPanel(
|
|
55
|
-
e(this,
|
|
52
|
+
openPanel(n) {
|
|
53
|
+
e(this, y).includes(n) || e(this, y).push(n);
|
|
56
54
|
}
|
|
57
|
-
closePanel(
|
|
58
|
-
o(this,
|
|
55
|
+
closePanel(n) {
|
|
56
|
+
o(this, y, e(this, y).filter((t) => t !== n));
|
|
59
57
|
}
|
|
60
|
-
isPanelOpened(
|
|
61
|
-
return e(this,
|
|
58
|
+
isPanelOpened(n) {
|
|
59
|
+
return e(this, y).includes(n);
|
|
62
60
|
}
|
|
63
|
-
changedSizes(
|
|
64
|
-
return e(this, C)[
|
|
61
|
+
changedSizes(n) {
|
|
62
|
+
return e(this, C)[n];
|
|
65
63
|
}
|
|
66
|
-
changeSize(
|
|
67
|
-
t ? e(this, C)[
|
|
64
|
+
changeSize(n, t) {
|
|
65
|
+
t ? e(this, C)[n] = t : delete e(this, C)[n];
|
|
68
66
|
}
|
|
69
67
|
save() {
|
|
70
|
-
const
|
|
71
|
-
openedPanels: e(this,
|
|
68
|
+
const n = {
|
|
69
|
+
openedPanels: e(this, y),
|
|
72
70
|
changedSizes: e(this, C),
|
|
73
71
|
scrollValue: this.scrollValue
|
|
74
72
|
};
|
|
75
|
-
localStorage.setItem(e(this,
|
|
73
|
+
localStorage.setItem(e(this, A), JSON.stringify(n)), L.saveState();
|
|
76
74
|
}
|
|
77
75
|
load() {
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
76
|
+
L.loadState();
|
|
77
|
+
const n = localStorage.getItem(e(this, A));
|
|
78
|
+
if (n)
|
|
81
79
|
try {
|
|
82
|
-
const t = JSON.parse(
|
|
83
|
-
t.openedPanels && o(this,
|
|
80
|
+
const t = JSON.parse(n);
|
|
81
|
+
t.openedPanels && o(this, y, t.openedPanels), t.changedSizes && o(this, C, t.changedSizes), t.scrollValue && (this.scrollValue = t.scrollValue);
|
|
84
82
|
} catch (t) {
|
|
85
83
|
console.error(t);
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
|
-
|
|
90
|
-
const v = new
|
|
87
|
+
A = new WeakMap(), y = new WeakMap(), C = new WeakMap();
|
|
88
|
+
const v = new Lt(), Rt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', Mt = w({
|
|
91
89
|
":host": {
|
|
92
90
|
position: "relative",
|
|
93
91
|
display: "inline-block",
|
|
94
92
|
width: "30px",
|
|
95
93
|
height: "30px",
|
|
96
|
-
borderRadius:
|
|
94
|
+
borderRadius: h.borderRadiusSmall.var,
|
|
97
95
|
overflow: "hidden"
|
|
98
96
|
},
|
|
99
97
|
"label, .fake": {
|
|
@@ -116,12 +114,12 @@ const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
116
114
|
display: "flex",
|
|
117
115
|
alignItems: "center",
|
|
118
116
|
justifyContent: "center",
|
|
119
|
-
backgroundColor:
|
|
117
|
+
backgroundColor: h.colorMainAux.var
|
|
120
118
|
},
|
|
121
119
|
".default svg": {
|
|
122
120
|
width: "60%",
|
|
123
121
|
height: "60%",
|
|
124
|
-
fill:
|
|
122
|
+
fill: h.colorFont.var,
|
|
125
123
|
opacity: 0,
|
|
126
124
|
transition: "var(--duration-short)"
|
|
127
125
|
},
|
|
@@ -129,35 +127,35 @@ const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
|
|
|
129
127
|
opacity: 1
|
|
130
128
|
}
|
|
131
129
|
});
|
|
132
|
-
var
|
|
133
|
-
const
|
|
130
|
+
var R, Z, P, ie;
|
|
131
|
+
const Ke = class Ke extends HTMLElement {
|
|
134
132
|
constructor() {
|
|
135
133
|
super();
|
|
136
|
-
i(this,
|
|
137
|
-
i(this,
|
|
138
|
-
i(this,
|
|
139
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
140
|
-
children:
|
|
134
|
+
i(this, P);
|
|
135
|
+
i(this, R, null);
|
|
136
|
+
i(this, Z);
|
|
137
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Mt), o(this, Z, this.attachInternals()), u(this, {
|
|
138
|
+
children: Ge({
|
|
141
139
|
children: [
|
|
142
|
-
|
|
140
|
+
$e({
|
|
143
141
|
class: "fake",
|
|
144
142
|
children: te({
|
|
145
143
|
children: [
|
|
146
|
-
|
|
144
|
+
$e({
|
|
147
145
|
class: "default",
|
|
148
|
-
children: [
|
|
146
|
+
children: [Rt]
|
|
149
147
|
})
|
|
150
148
|
]
|
|
151
149
|
})
|
|
152
150
|
}),
|
|
153
|
-
|
|
151
|
+
Ce({
|
|
154
152
|
ref: (s) => {
|
|
155
|
-
o(this,
|
|
153
|
+
o(this, R, s), s.required = this.hasAttribute("required"), s.value = this.getAttribute("value") || "", s.checked = this.hasAttribute("checked"), s.name = this.getAttribute("name") || "", c(this, P, ie).call(this);
|
|
156
154
|
},
|
|
157
155
|
class: "real",
|
|
158
156
|
type: "checkbox",
|
|
159
157
|
onChange: () => {
|
|
160
|
-
|
|
158
|
+
c(this, P, ie).call(this), this.dispatchEvent(
|
|
161
159
|
new Event("change", {
|
|
162
160
|
composed: !0
|
|
163
161
|
})
|
|
@@ -169,47 +167,47 @@ const We = class We extends HTMLElement {
|
|
|
169
167
|
});
|
|
170
168
|
}
|
|
171
169
|
get checked() {
|
|
172
|
-
return e(this,
|
|
170
|
+
return e(this, R).checked;
|
|
173
171
|
}
|
|
174
172
|
set checked(t) {
|
|
175
|
-
e(this,
|
|
173
|
+
e(this, R).checked = t, c(this, P, ie).call(this);
|
|
176
174
|
}
|
|
177
175
|
get value() {
|
|
178
|
-
return e(this,
|
|
176
|
+
return e(this, R).value;
|
|
179
177
|
}
|
|
180
178
|
set value(t) {
|
|
181
|
-
e(this,
|
|
179
|
+
e(this, R).value = t, c(this, P, ie).call(this);
|
|
182
180
|
}
|
|
183
181
|
};
|
|
184
|
-
|
|
185
|
-
this.checked ? e(this,
|
|
186
|
-
},
|
|
187
|
-
let
|
|
188
|
-
customElements.get("e-checkbox") || customElements.define("e-checkbox",
|
|
189
|
-
var
|
|
182
|
+
R = new WeakMap(), Z = new WeakMap(), P = new WeakSet(), ie = function() {
|
|
183
|
+
this.checked ? e(this, Z).setFormValue(this.value) : e(this, Z).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
184
|
+
}, Ke.formAssociated = !0;
|
|
185
|
+
let Ve = Ke;
|
|
186
|
+
customElements.get("e-checkbox") || customElements.define("e-checkbox", Ve);
|
|
187
|
+
var M;
|
|
190
188
|
class se extends HTMLElement {
|
|
191
189
|
constructor(...t) {
|
|
192
190
|
super();
|
|
193
|
-
i(this,
|
|
194
|
-
o(this,
|
|
191
|
+
i(this, M);
|
|
192
|
+
o(this, M, t);
|
|
195
193
|
}
|
|
196
194
|
addStore(t) {
|
|
197
|
-
e(this,
|
|
195
|
+
e(this, M).push(t);
|
|
198
196
|
}
|
|
199
197
|
get firstStore() {
|
|
200
|
-
return e(this,
|
|
198
|
+
return e(this, M)[0];
|
|
201
199
|
}
|
|
202
200
|
get stores() {
|
|
203
|
-
return e(this,
|
|
201
|
+
return e(this, M);
|
|
204
202
|
}
|
|
205
203
|
updateStores(t) {
|
|
206
|
-
e(this,
|
|
204
|
+
e(this, M).forEach((s) => {
|
|
207
205
|
s.current = t;
|
|
208
206
|
});
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
|
-
|
|
212
|
-
const
|
|
209
|
+
M = new WeakMap();
|
|
210
|
+
const Ft = w({
|
|
213
211
|
":host": {
|
|
214
212
|
width: "100%",
|
|
215
213
|
display: "inline-flex",
|
|
@@ -219,20 +217,20 @@ const $t = w({
|
|
|
219
217
|
"--size": "calc(var(--height-input) * 0.8)",
|
|
220
218
|
width: "var(--size)",
|
|
221
219
|
height: "var(--size)",
|
|
222
|
-
borderRadius:
|
|
220
|
+
borderRadius: h.borderRadiusSmall.var
|
|
223
221
|
}
|
|
224
222
|
});
|
|
225
|
-
class
|
|
226
|
-
constructor(...
|
|
227
|
-
super(...
|
|
223
|
+
class st extends se {
|
|
224
|
+
constructor(...n) {
|
|
225
|
+
super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ft), u(this, {
|
|
228
226
|
children: [
|
|
229
227
|
u("e-checkbox", {
|
|
230
228
|
onChange: (s) => {
|
|
231
229
|
this.updateStores(s.currentTarget.checked);
|
|
232
230
|
},
|
|
233
231
|
ref: (s) => {
|
|
234
|
-
this.firstStore.subscribe((
|
|
235
|
-
s.checked =
|
|
232
|
+
this.firstStore.subscribe((r) => {
|
|
233
|
+
s.checked = r.current;
|
|
236
234
|
});
|
|
237
235
|
}
|
|
238
236
|
})
|
|
@@ -242,9 +240,9 @@ class rt extends se {
|
|
|
242
240
|
}
|
|
243
241
|
customElements.get("e-tweaker-boolean-manager") || customElements.define(
|
|
244
242
|
"e-tweaker-boolean-manager",
|
|
245
|
-
|
|
243
|
+
st
|
|
246
244
|
);
|
|
247
|
-
const
|
|
245
|
+
const It = w({
|
|
248
246
|
":host": {
|
|
249
247
|
width: "100%",
|
|
250
248
|
display: "inline-flex",
|
|
@@ -255,7 +253,7 @@ const Vt = w({
|
|
|
255
253
|
height: "var(--height-input)",
|
|
256
254
|
padding: "0",
|
|
257
255
|
background: "none",
|
|
258
|
-
borderRadius:
|
|
256
|
+
borderRadius: h.borderRadius.var,
|
|
259
257
|
border: "none",
|
|
260
258
|
blockSize: "unset"
|
|
261
259
|
},
|
|
@@ -263,15 +261,15 @@ const Vt = w({
|
|
|
263
261
|
boxSizing: "border-box",
|
|
264
262
|
padding: "0px",
|
|
265
263
|
border: "none",
|
|
266
|
-
borderRadius:
|
|
264
|
+
borderRadius: h.borderRadius.var,
|
|
267
265
|
height: "calc(var(--height-input) * 0.93)"
|
|
268
266
|
}
|
|
269
267
|
});
|
|
270
|
-
class
|
|
271
|
-
constructor(...
|
|
272
|
-
super(...
|
|
268
|
+
class it extends se {
|
|
269
|
+
constructor(...n) {
|
|
270
|
+
super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(It), u(this, {
|
|
273
271
|
children: [
|
|
274
|
-
|
|
272
|
+
Ce({
|
|
275
273
|
type: "color",
|
|
276
274
|
value: this.firstStore,
|
|
277
275
|
onInput: (s) => {
|
|
@@ -282,29 +280,29 @@ class ot extends se {
|
|
|
282
280
|
});
|
|
283
281
|
}
|
|
284
282
|
}
|
|
285
|
-
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager",
|
|
286
|
-
const
|
|
283
|
+
customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", it);
|
|
284
|
+
const At = w({
|
|
287
285
|
a: {
|
|
288
286
|
color: "inherit",
|
|
289
287
|
fontSize: "var(--font-size-small)"
|
|
290
288
|
}
|
|
291
289
|
});
|
|
292
|
-
class
|
|
293
|
-
constructor(...
|
|
294
|
-
var s
|
|
295
|
-
super(...
|
|
290
|
+
class nt extends se {
|
|
291
|
+
constructor(...n) {
|
|
292
|
+
var s;
|
|
293
|
+
super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(At), u(this, {
|
|
296
294
|
children: [
|
|
297
|
-
|
|
295
|
+
kt({
|
|
298
296
|
href: this.firstStore,
|
|
299
|
-
target: (
|
|
297
|
+
target: (s = this.firstStore.__manager) != null && s.sameWindow ? "_self" : "_blank",
|
|
300
298
|
children: this.firstStore
|
|
301
299
|
})
|
|
302
300
|
]
|
|
303
301
|
});
|
|
304
302
|
}
|
|
305
303
|
}
|
|
306
|
-
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager",
|
|
307
|
-
const
|
|
304
|
+
customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", nt);
|
|
305
|
+
const Pt = w({
|
|
308
306
|
":host": {
|
|
309
307
|
width: "100%",
|
|
310
308
|
display: "flex",
|
|
@@ -329,7 +327,7 @@ const Nt = w({
|
|
|
329
327
|
margin: "0",
|
|
330
328
|
padding: "0 var(--gap-small)",
|
|
331
329
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
332
|
-
borderRadius:
|
|
330
|
+
borderRadius: h.borderRadius.var
|
|
333
331
|
},
|
|
334
332
|
".drag": {
|
|
335
333
|
position: "relative",
|
|
@@ -345,12 +343,12 @@ const Nt = w({
|
|
|
345
343
|
width: "100%",
|
|
346
344
|
zIndex: "-1",
|
|
347
345
|
height: "1px",
|
|
348
|
-
borderBottom: `1px solid ${
|
|
346
|
+
borderBottom: `1px solid ${h.colorFont.var}`,
|
|
349
347
|
transform: "translateY(-50%)",
|
|
350
348
|
opacity: "0.3"
|
|
351
349
|
},
|
|
352
350
|
":host(.infinite) .drag::before": {
|
|
353
|
-
borderBottom: `1px dashed ${
|
|
351
|
+
borderBottom: `1px dashed ${h.colorFont.var}`
|
|
354
352
|
},
|
|
355
353
|
".drag-knob": {
|
|
356
354
|
"--size": "calc(var(--height-input) * 0.4)",
|
|
@@ -360,101 +358,95 @@ const Nt = w({
|
|
|
360
358
|
".drag-knob-inner": {
|
|
361
359
|
width: "100%",
|
|
362
360
|
height: "100%",
|
|
363
|
-
backgroundColor:
|
|
364
|
-
borderRadius:
|
|
361
|
+
backgroundColor: h.colorFont.var,
|
|
362
|
+
borderRadius: h.borderRadiusSmall.var,
|
|
365
363
|
transition: "opacity var(--duration-short)"
|
|
366
364
|
},
|
|
367
365
|
":host(.infinite) .grabbing .drag-knob-inner": {
|
|
368
366
|
opacity: 0.3
|
|
369
367
|
}
|
|
370
368
|
});
|
|
371
|
-
var
|
|
372
|
-
class
|
|
369
|
+
var $, K, B, z, F, ne, re, E, V, oe, ae, p, D, He, Ne, ze, le;
|
|
370
|
+
class rt extends se {
|
|
373
371
|
constructor(...t) {
|
|
374
|
-
var
|
|
372
|
+
var r, l, d, m;
|
|
375
373
|
super(...t);
|
|
376
374
|
i(this, p);
|
|
377
|
-
i(this,
|
|
378
|
-
i(this,
|
|
379
|
-
i(this,
|
|
375
|
+
i(this, $, []);
|
|
376
|
+
i(this, K, []);
|
|
377
|
+
i(this, B);
|
|
380
378
|
i(this, z);
|
|
381
|
-
i(this,
|
|
379
|
+
i(this, F);
|
|
380
|
+
i(this, ne);
|
|
382
381
|
i(this, re);
|
|
383
|
-
i(this, oe);
|
|
384
382
|
i(this, E);
|
|
385
|
-
i(this,
|
|
386
|
-
i(this,
|
|
387
|
-
const s =
|
|
388
|
-
return s.map((
|
|
389
|
-
const
|
|
390
|
-
s[
|
|
391
|
-
}), e(this,
|
|
383
|
+
i(this, V, !1);
|
|
384
|
+
i(this, oe, (t) => {
|
|
385
|
+
const s = c(this, p, D).call(this, t);
|
|
386
|
+
return s.map((r, l) => {
|
|
387
|
+
const d = typeof r == "string" ? parseFloat(r) || e(this, z) : r, m = xt(d, e(this, z), e(this, F)), N = Et(m, e(this, B));
|
|
388
|
+
s[l] = N;
|
|
389
|
+
}), e(this, re) === "number" ? s[0] : s;
|
|
392
390
|
});
|
|
393
|
-
i(this,
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
}),
|
|
391
|
+
i(this, ae, () => {
|
|
392
|
+
c(this, p, D).call(this).map((t, s) => {
|
|
393
|
+
const r = e(this, $)[s];
|
|
394
|
+
r && (r.value = (t || 0).toString());
|
|
395
|
+
}), c(this, p, He).call(this);
|
|
398
396
|
});
|
|
399
|
-
i(this,
|
|
400
|
-
|
|
397
|
+
i(this, le, () => {
|
|
398
|
+
c(this, p, He).call(this);
|
|
401
399
|
});
|
|
402
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
403
|
-
(h = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : h.min,
|
|
404
|
-
-1 / 0
|
|
405
|
-
)), o(this, I, Ge(
|
|
406
|
-
(g = (c = this.firstStore.passport) == null ? void 0 : c.manager) == null ? void 0 : g.max,
|
|
407
|
-
1 / 0
|
|
408
|
-
)), o(this, j, ((A = (x = this.firstStore.passport) == null ? void 0 : x.manager) == null ? void 0 : A.step) || 0.01), o(this, re, ((Je = (ie = this.firstStore.passport) == null ? void 0 : ie.manager) == null ? void 0 : Je.ease) || 1), o(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), o(this, E, isFinite(e(this, I)) && isFinite(e(this, z))), u(this, {
|
|
400
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Pt), o(this, z, Je((r = this.firstStore.__manager) == null ? void 0 : r.min, -1 / 0)), o(this, F, Je((l = this.firstStore.__manager) == null ? void 0 : l.max, 1 / 0)), o(this, B, ((d = this.firstStore.__manager) == null ? void 0 : d.step) || 0.01), o(this, ne, ((m = this.firstStore.__manager) == null ? void 0 : m.ease) || 1), o(this, re, Array.isArray(this.firstStore.current) ? "array" : "number"), o(this, E, isFinite(e(this, F)) && isFinite(e(this, z))), u(this, {
|
|
409
401
|
class: e(this, E) ? "" : "infinite",
|
|
410
|
-
children:
|
|
402
|
+
children: c(this, p, D).call(this).map((N, I) => g({
|
|
411
403
|
class: "inputs-wrapper",
|
|
412
404
|
children: [
|
|
413
|
-
|
|
405
|
+
Ce({
|
|
414
406
|
type: "number",
|
|
415
|
-
step: e(this,
|
|
407
|
+
step: e(this, B),
|
|
416
408
|
min: e(this, z),
|
|
417
|
-
max: e(this,
|
|
418
|
-
ref: (
|
|
419
|
-
value:
|
|
409
|
+
max: e(this, F),
|
|
410
|
+
ref: (b) => e(this, $).push(b),
|
|
411
|
+
value: N,
|
|
420
412
|
onChange: () => {
|
|
421
413
|
this.updateStores(
|
|
422
|
-
e(this,
|
|
414
|
+
e(this, $).map((b) => parseFloat(b.value))
|
|
423
415
|
);
|
|
424
416
|
}
|
|
425
417
|
}),
|
|
426
|
-
|
|
418
|
+
g({
|
|
427
419
|
class: "drag",
|
|
428
420
|
children: [
|
|
429
|
-
|
|
421
|
+
g({
|
|
430
422
|
class: "drag-knob",
|
|
431
|
-
ref: (
|
|
432
|
-
onPointerdown: (
|
|
433
|
-
|
|
434
|
-
const
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
(
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
441
|
-
const
|
|
442
|
-
|
|
423
|
+
ref: (b) => e(this, K).push(b),
|
|
424
|
+
onPointerdown: (b) => {
|
|
425
|
+
b.preventDefault(), o(this, V, !0);
|
|
426
|
+
const Fe = c(this, p, D).call(this), ct = Fe[I], T = e(this, K)[I], dt = e(this, $)[I];
|
|
427
|
+
if (T && dt) {
|
|
428
|
+
const Ie = T.parentElement, ut = c(this, p, Ne).call(this);
|
|
429
|
+
Ie.classList.add("grabbing"), Ue(
|
|
430
|
+
(Ae) => {
|
|
431
|
+
const je = Ae.x - b.x, pt = e(this, E) ? Ie.offsetWidth / (ut || 1) : 1, gt = ct + je / pt * e(this, ne);
|
|
432
|
+
if (Fe[I] = gt, !e(this, E)) {
|
|
433
|
+
const mt = c(this, p, ze).call(this, T, 0);
|
|
434
|
+
T.style.transform = `translateX(${mt + je}px)`;
|
|
443
435
|
}
|
|
444
|
-
this.updateStores([...
|
|
436
|
+
this.updateStores([...Fe]);
|
|
445
437
|
},
|
|
446
438
|
() => {
|
|
447
|
-
if (o(this,
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
|
|
439
|
+
if (o(this, V, !1), !e(this, E)) {
|
|
440
|
+
const Ae = c(this, p, ze).call(this, T, 0);
|
|
441
|
+
T.style.transition = "transform 0.1s", T.style.transform = `translateX(${Ae}px)`, Ie.classList.remove("grabbing"), setTimeout(() => {
|
|
442
|
+
T.style.transition = "";
|
|
451
443
|
}, 100);
|
|
452
444
|
}
|
|
453
445
|
}
|
|
454
446
|
);
|
|
455
447
|
}
|
|
456
448
|
},
|
|
457
|
-
children:
|
|
449
|
+
children: g({
|
|
458
450
|
class: "drag-knob-inner"
|
|
459
451
|
})
|
|
460
452
|
})
|
|
@@ -465,30 +457,30 @@ class lt extends se {
|
|
|
465
457
|
});
|
|
466
458
|
}
|
|
467
459
|
connectedCallback() {
|
|
468
|
-
this.firstStore.addMiddleware(e(this,
|
|
460
|
+
this.firstStore.addMiddleware(e(this, oe)), this.firstStore.subscribe(e(this, ae)), Ye.subscribe(this, e(this, le));
|
|
469
461
|
}
|
|
470
462
|
disconnectedCallback() {
|
|
471
|
-
this.firstStore.removeMiddleware(e(this,
|
|
463
|
+
this.firstStore.removeMiddleware(e(this, oe)), this.firstStore.unsubscribe(e(this, ae)), Ye.unsubscribe(e(this, le));
|
|
472
464
|
}
|
|
473
465
|
}
|
|
474
|
-
|
|
466
|
+
$ = new WeakMap(), K = new WeakMap(), B = new WeakMap(), z = new WeakMap(), F = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), E = new WeakMap(), V = new WeakMap(), oe = new WeakMap(), ae = new WeakMap(), p = new WeakSet(), D = function(t = this.firstStore.current) {
|
|
475
467
|
return Array.isArray(t) ? t : [t];
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
const
|
|
479
|
-
if (
|
|
480
|
-
const
|
|
481
|
-
|
|
468
|
+
}, He = function() {
|
|
469
|
+
c(this, p, D).call(this).map((t, s) => {
|
|
470
|
+
const r = e(this, K)[s];
|
|
471
|
+
if (r && (!e(this, V) || e(this, V) && e(this, E))) {
|
|
472
|
+
const l = c(this, p, ze).call(this, r, t);
|
|
473
|
+
r.style.transform = `translateX(${l}px)`;
|
|
482
474
|
}
|
|
483
475
|
});
|
|
484
|
-
},
|
|
485
|
-
return e(this, E) ? e(this,
|
|
486
|
-
},
|
|
487
|
-
const
|
|
488
|
-
return (
|
|
489
|
-
},
|
|
490
|
-
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager",
|
|
491
|
-
const
|
|
476
|
+
}, Ne = function() {
|
|
477
|
+
return e(this, E) ? e(this, F) - e(this, z) : 0;
|
|
478
|
+
}, ze = function(t, s) {
|
|
479
|
+
const r = t.parentElement, l = c(this, p, Ne).call(this), d = l ? s / l : 0.5;
|
|
480
|
+
return (r.offsetWidth - t.offsetWidth) * d;
|
|
481
|
+
}, le = new WeakMap();
|
|
482
|
+
customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", rt);
|
|
483
|
+
const $t = w({
|
|
492
484
|
":host": {
|
|
493
485
|
position: "relative"
|
|
494
486
|
},
|
|
@@ -523,109 +515,109 @@ const Dt = w({
|
|
|
523
515
|
paddingTop: "var(--gap, 0px)"
|
|
524
516
|
}
|
|
525
517
|
});
|
|
526
|
-
var W,
|
|
527
|
-
const
|
|
518
|
+
var j, W, k, H, q, J, Le, he, _e;
|
|
519
|
+
const Be = class Be extends HTMLElement {
|
|
528
520
|
constructor() {
|
|
529
521
|
super();
|
|
530
|
-
i(this,
|
|
531
|
-
i(this,
|
|
532
|
-
i(this,
|
|
533
|
-
i(this,
|
|
534
|
-
i(this,
|
|
535
|
-
i(this,
|
|
536
|
-
i(this,
|
|
537
|
-
i(this,
|
|
538
|
-
|
|
522
|
+
i(this, he);
|
|
523
|
+
i(this, j, null);
|
|
524
|
+
i(this, W, "");
|
|
525
|
+
i(this, k, null);
|
|
526
|
+
i(this, H, !1);
|
|
527
|
+
i(this, q);
|
|
528
|
+
i(this, J, null);
|
|
529
|
+
i(this, Le, () => {
|
|
530
|
+
Xe(this);
|
|
539
531
|
});
|
|
540
|
-
|
|
532
|
+
Ee && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push($t), o(this, j, this.attachInternals()), o(this, J, new ResizeObserver(e(this, Le))), u(this, {
|
|
541
533
|
children: [
|
|
542
|
-
|
|
534
|
+
O({
|
|
543
535
|
class: "head",
|
|
544
536
|
children: te({ name: "head" }),
|
|
545
537
|
onClick: () => {
|
|
546
538
|
this.opened ? this.close() : this.open();
|
|
547
539
|
}
|
|
548
540
|
}),
|
|
549
|
-
|
|
541
|
+
g({
|
|
550
542
|
class: "body",
|
|
551
543
|
style: {
|
|
552
544
|
height: "0px"
|
|
553
545
|
},
|
|
554
|
-
children:
|
|
546
|
+
children: g({
|
|
555
547
|
class: "body-inner",
|
|
556
548
|
children: te()
|
|
557
549
|
}),
|
|
558
550
|
ref: (s) => {
|
|
559
|
-
o(this,
|
|
551
|
+
o(this, k, s);
|
|
560
552
|
}
|
|
561
553
|
})
|
|
562
554
|
]
|
|
563
555
|
}));
|
|
564
556
|
}
|
|
565
557
|
get value() {
|
|
566
|
-
return e(this,
|
|
558
|
+
return e(this, W);
|
|
567
559
|
}
|
|
568
560
|
set value(t) {
|
|
569
|
-
o(this,
|
|
561
|
+
o(this, W, t), this.dispatchEvent(
|
|
570
562
|
new Event("change", {
|
|
571
563
|
bubbles: !0,
|
|
572
564
|
composed: !0
|
|
573
565
|
})
|
|
574
|
-
), e(this,
|
|
566
|
+
), e(this, j).setFormValue(e(this, W));
|
|
575
567
|
}
|
|
576
568
|
get internals() {
|
|
577
|
-
return e(this,
|
|
569
|
+
return e(this, j);
|
|
578
570
|
}
|
|
579
571
|
get opened() {
|
|
580
|
-
return e(this,
|
|
572
|
+
return e(this, H);
|
|
581
573
|
}
|
|
582
574
|
open() {
|
|
583
|
-
clearTimeout(e(this,
|
|
584
|
-
this.classList.add("opened"), e(this,
|
|
575
|
+
clearTimeout(e(this, q)), o(this, H, !0), e(this, k).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
576
|
+
this.classList.add("opened"), e(this, k).style.height = e(this, k).scrollHeight + "px", c(this, he, _e).call(this);
|
|
585
577
|
}, 0);
|
|
586
578
|
}
|
|
587
579
|
close() {
|
|
588
|
-
o(this,
|
|
589
|
-
this.classList.remove("triggered"), e(this,
|
|
590
|
-
},
|
|
580
|
+
o(this, H, !1), e(this, k).style.height = "0px", this.classList.remove("opened"), c(this, he, _e).call(this), o(this, q, setTimeout(() => {
|
|
581
|
+
this.classList.remove("triggered"), e(this, k).style.display = "none";
|
|
582
|
+
}, Ct(e(this, k))));
|
|
591
583
|
}
|
|
592
584
|
connectedCallback() {
|
|
593
|
-
e(this,
|
|
585
|
+
e(this, J).observe(e(this, k));
|
|
594
586
|
}
|
|
595
587
|
disconnectedCallback() {
|
|
596
|
-
clearTimeout(e(this,
|
|
588
|
+
clearTimeout(e(this, q)), e(this, J).disconnect();
|
|
597
589
|
}
|
|
598
590
|
};
|
|
599
|
-
|
|
600
|
-
|
|
591
|
+
j = new WeakMap(), W = new WeakMap(), k = new WeakMap(), H = new WeakMap(), q = new WeakMap(), J = new WeakMap(), Le = new WeakMap(), he = new WeakSet(), _e = function() {
|
|
592
|
+
ft(this), this.dispatchEvent(
|
|
601
593
|
new CustomEvent("selectToggle", {
|
|
602
594
|
bubbles: !0,
|
|
603
595
|
composed: !0,
|
|
604
596
|
detail: {
|
|
605
|
-
opened: e(this,
|
|
597
|
+
opened: e(this, H)
|
|
606
598
|
}
|
|
607
599
|
})
|
|
608
600
|
);
|
|
609
|
-
},
|
|
610
|
-
let
|
|
611
|
-
customElements.get("e-select") || customElements.define("e-select",
|
|
612
|
-
var
|
|
613
|
-
class
|
|
601
|
+
}, Be.formAssociated = !0;
|
|
602
|
+
let De = Be;
|
|
603
|
+
customElements.get("e-select") || customElements.define("e-select", De);
|
|
604
|
+
var ce;
|
|
605
|
+
class ot extends HTMLElement {
|
|
614
606
|
constructor() {
|
|
615
607
|
super(...arguments);
|
|
616
|
-
i(this,
|
|
608
|
+
i(this, ce, null);
|
|
617
609
|
}
|
|
618
610
|
get selectElement() {
|
|
619
|
-
return e(this,
|
|
611
|
+
return e(this, ce);
|
|
620
612
|
}
|
|
621
613
|
connectedCallback() {
|
|
622
|
-
var s,
|
|
623
|
-
const t = (
|
|
624
|
-
t ? o(this,
|
|
614
|
+
var s, r;
|
|
615
|
+
const t = (r = (s = this.assignedSlot) == null ? void 0 : s.getRootNode()) == null ? void 0 : r.host;
|
|
616
|
+
t ? o(this, ce, t) : console.log(this, "e-select not found");
|
|
625
617
|
}
|
|
626
618
|
}
|
|
627
|
-
|
|
628
|
-
const
|
|
619
|
+
ce = new WeakMap();
|
|
620
|
+
const Vt = w({
|
|
629
621
|
":host": {
|
|
630
622
|
width: "100%",
|
|
631
623
|
height: "40px",
|
|
@@ -633,21 +625,21 @@ const Ot = w({
|
|
|
633
625
|
alignItems: "center"
|
|
634
626
|
}
|
|
635
627
|
});
|
|
636
|
-
var
|
|
637
|
-
class
|
|
628
|
+
var Y, de, Oe;
|
|
629
|
+
class Ht extends ot {
|
|
638
630
|
constructor() {
|
|
639
631
|
super();
|
|
640
|
-
i(this,
|
|
641
|
-
i(this,
|
|
632
|
+
i(this, de);
|
|
633
|
+
i(this, Y, () => {
|
|
642
634
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
643
635
|
});
|
|
644
|
-
|
|
636
|
+
Ee && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Vt), u(this, {
|
|
645
637
|
tabindex: 0,
|
|
646
638
|
onClick: () => {
|
|
647
|
-
|
|
639
|
+
c(this, de, Oe).call(this);
|
|
648
640
|
},
|
|
649
641
|
onKeydown: (s) => {
|
|
650
|
-
s.code === "Space" &&
|
|
642
|
+
s.code === "Space" && c(this, de, Oe).call(this);
|
|
651
643
|
},
|
|
652
644
|
children: te()
|
|
653
645
|
}));
|
|
@@ -656,19 +648,19 @@ class Zt extends ht {
|
|
|
656
648
|
return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
|
|
657
649
|
}
|
|
658
650
|
connectedCallback() {
|
|
659
|
-
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this,
|
|
660
|
-
e(this,
|
|
651
|
+
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this, Y)), setTimeout(() => {
|
|
652
|
+
e(this, Y).call(this);
|
|
661
653
|
});
|
|
662
654
|
}
|
|
663
655
|
disconnectedCallback() {
|
|
664
|
-
this.selectElement.removeEventListener("change", e(this,
|
|
656
|
+
this.selectElement.removeEventListener("change", e(this, Y));
|
|
665
657
|
}
|
|
666
658
|
}
|
|
667
|
-
|
|
659
|
+
Y = new WeakMap(), de = new WeakSet(), Oe = function() {
|
|
668
660
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
669
661
|
};
|
|
670
|
-
customElements.get("e-select-option") || customElements.define("e-select-option",
|
|
671
|
-
const
|
|
662
|
+
customElements.get("e-select-option") || customElements.define("e-select-option", Ht);
|
|
663
|
+
const Nt = w({
|
|
672
664
|
":host": {
|
|
673
665
|
width: "100%",
|
|
674
666
|
height: "40px",
|
|
@@ -680,7 +672,7 @@ const Kt = w({
|
|
|
680
672
|
flexShrink: "0",
|
|
681
673
|
width: "var(--arrow-size, 1em)",
|
|
682
674
|
height: "var(--arrow-size, 1em)",
|
|
683
|
-
fill: `var(--arrow-color, ${
|
|
675
|
+
fill: `var(--arrow-color, ${h.colorMain.var})`,
|
|
684
676
|
transitionProperty: "transform",
|
|
685
677
|
transitionDuration: "var(--duration, var(--duration-short))"
|
|
686
678
|
},
|
|
@@ -688,44 +680,44 @@ const Kt = w({
|
|
|
688
680
|
transform: "scaleY(-1)"
|
|
689
681
|
}
|
|
690
682
|
});
|
|
691
|
-
var
|
|
692
|
-
class
|
|
683
|
+
var ue, X, pe;
|
|
684
|
+
class Dt extends ot {
|
|
693
685
|
constructor() {
|
|
694
686
|
super();
|
|
695
|
-
i(this,
|
|
696
|
-
i(this,
|
|
687
|
+
i(this, ue, null);
|
|
688
|
+
i(this, X, () => {
|
|
697
689
|
const s = this.selectElement.shadowRoot.querySelector(
|
|
698
690
|
".body slot"
|
|
699
|
-
).assignedElements().find((
|
|
700
|
-
s && (e(this,
|
|
691
|
+
).assignedElements().find((r) => r.value === this.selectElement.value);
|
|
692
|
+
s && (e(this, ue).innerHTML = s.innerHTML);
|
|
701
693
|
});
|
|
702
|
-
i(this,
|
|
694
|
+
i(this, pe, () => {
|
|
703
695
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
704
696
|
});
|
|
705
|
-
|
|
697
|
+
Ee && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Nt), u(this, {
|
|
706
698
|
children: [
|
|
707
699
|
te(),
|
|
708
700
|
te({
|
|
709
701
|
name: "arrow",
|
|
710
|
-
children: u(
|
|
702
|
+
children: u(tt, { class: "default-arrow" })
|
|
711
703
|
})
|
|
712
704
|
]
|
|
713
705
|
}), this.slot = "head");
|
|
714
706
|
}
|
|
715
707
|
connectedCallback() {
|
|
716
|
-
super.connectedCallback(), o(this,
|
|
708
|
+
super.connectedCallback(), o(this, ue, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", e(this, X)), e(this, X).call(this), this.selectElement.addEventListener("selectToggle", e(this, pe));
|
|
717
709
|
}
|
|
718
710
|
disconnectedCallback() {
|
|
719
|
-
this.selectElement.removeEventListener("change", e(this,
|
|
711
|
+
this.selectElement.removeEventListener("change", e(this, X)), this.selectElement.removeEventListener("selectToggle", e(this, pe));
|
|
720
712
|
}
|
|
721
713
|
}
|
|
722
|
-
|
|
723
|
-
customElements.get("e-select-head") || customElements.define("e-select-head",
|
|
724
|
-
const
|
|
714
|
+
ue = new WeakMap(), X = new WeakMap(), pe = new WeakMap();
|
|
715
|
+
customElements.get("e-select-head") || customElements.define("e-select-head", Dt);
|
|
716
|
+
const _t = w({
|
|
725
717
|
"e-select": {
|
|
726
718
|
display: "block",
|
|
727
719
|
width: "100%",
|
|
728
|
-
"--arrow-color":
|
|
720
|
+
"--arrow-color": h.colorFont.var
|
|
729
721
|
},
|
|
730
722
|
"e-select-head": {
|
|
731
723
|
width: "100%",
|
|
@@ -742,12 +734,12 @@ const jt = w({
|
|
|
742
734
|
fontSize: "var(--font-size-small)"
|
|
743
735
|
},
|
|
744
736
|
"e-select-option:hover": {
|
|
745
|
-
color:
|
|
737
|
+
color: h.colorActive.var
|
|
746
738
|
},
|
|
747
739
|
svg: {
|
|
748
740
|
width: "16px",
|
|
749
741
|
height: "16px",
|
|
750
|
-
fill:
|
|
742
|
+
fill: h.colorFont.var,
|
|
751
743
|
transitionProperty: "transform",
|
|
752
744
|
transitionDuration: "var(--duration-short)"
|
|
753
745
|
},
|
|
@@ -755,29 +747,30 @@ const jt = w({
|
|
|
755
747
|
transform: "scaleY(-1)"
|
|
756
748
|
}
|
|
757
749
|
});
|
|
758
|
-
class
|
|
759
|
-
constructor(...
|
|
760
|
-
var
|
|
761
|
-
super(...
|
|
762
|
-
const s = ((
|
|
750
|
+
class at extends se {
|
|
751
|
+
constructor(...n) {
|
|
752
|
+
var r;
|
|
753
|
+
super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(_t);
|
|
754
|
+
const s = ((r = this.firstStore.__manager) == null ? void 0 : r.variants) || [];
|
|
763
755
|
u(this, {
|
|
764
756
|
children: u("e-select", {
|
|
765
757
|
value: this.firstStore,
|
|
766
|
-
onChange: (
|
|
767
|
-
this.updateStores(
|
|
758
|
+
onChange: (l) => {
|
|
759
|
+
this.updateStores(l.currentTarget.value);
|
|
768
760
|
},
|
|
769
761
|
lightChildren: [
|
|
770
762
|
u("e-select-head", {
|
|
771
763
|
lightChildren: [
|
|
772
|
-
|
|
764
|
+
$e({
|
|
773
765
|
"data-value-holder": ""
|
|
774
766
|
})
|
|
775
767
|
]
|
|
776
768
|
}),
|
|
769
|
+
// @ts-ignore
|
|
777
770
|
...s.map(
|
|
778
|
-
(
|
|
779
|
-
lightChildren:
|
|
780
|
-
default:
|
|
771
|
+
(l, d) => u("e-select-option", {
|
|
772
|
+
lightChildren: l,
|
|
773
|
+
default: d === 0 ? !0 : null
|
|
781
774
|
})
|
|
782
775
|
)
|
|
783
776
|
]
|
|
@@ -785,8 +778,8 @@ class ct extends se {
|
|
|
785
778
|
});
|
|
786
779
|
}
|
|
787
780
|
}
|
|
788
|
-
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager",
|
|
789
|
-
const
|
|
781
|
+
customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", at);
|
|
782
|
+
const Ot = w({
|
|
790
783
|
":host": {
|
|
791
784
|
width: "100%",
|
|
792
785
|
display: "flex",
|
|
@@ -805,14 +798,14 @@ const Wt = w({
|
|
|
805
798
|
margin: "0",
|
|
806
799
|
padding: "0 var(--gap-small)",
|
|
807
800
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
808
|
-
borderRadius:
|
|
801
|
+
borderRadius: h.borderRadius.var
|
|
809
802
|
}
|
|
810
803
|
});
|
|
811
|
-
class
|
|
812
|
-
constructor(...
|
|
813
|
-
super(...
|
|
804
|
+
class lt extends se {
|
|
805
|
+
constructor(...n) {
|
|
806
|
+
super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ot), u(this, {
|
|
814
807
|
children: [
|
|
815
|
-
|
|
808
|
+
Ce({
|
|
816
809
|
class: "text-input",
|
|
817
810
|
type: "string",
|
|
818
811
|
value: this.firstStore,
|
|
@@ -826,21 +819,21 @@ class dt extends se {
|
|
|
826
819
|
});
|
|
827
820
|
}
|
|
828
821
|
}
|
|
829
|
-
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager",
|
|
830
|
-
const
|
|
831
|
-
boolean:
|
|
832
|
-
color:
|
|
833
|
-
link:
|
|
834
|
-
number:
|
|
835
|
-
select:
|
|
836
|
-
string:
|
|
837
|
-
},
|
|
822
|
+
customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", lt);
|
|
823
|
+
const Zt = {
|
|
824
|
+
boolean: st,
|
|
825
|
+
color: it,
|
|
826
|
+
link: nt,
|
|
827
|
+
number: rt,
|
|
828
|
+
select: at,
|
|
829
|
+
string: lt
|
|
830
|
+
}, Kt = w({
|
|
838
831
|
":host": {
|
|
839
832
|
display: "grid",
|
|
840
833
|
gridAutoFlow: "column",
|
|
841
834
|
gridTemplateColumns: "0.5fr 1fr",
|
|
842
835
|
alignItems: "center",
|
|
843
|
-
color:
|
|
836
|
+
color: h.colorFont.var,
|
|
844
837
|
gap: "var(--gap-medium)"
|
|
845
838
|
},
|
|
846
839
|
":host(.disabled)": {
|
|
@@ -863,7 +856,7 @@ const qt = {
|
|
|
863
856
|
margin: "0",
|
|
864
857
|
border: "none",
|
|
865
858
|
background: "none",
|
|
866
|
-
fill:
|
|
859
|
+
fill: h.colorFont.var,
|
|
867
860
|
transitionDuration: "var(--duration-short)",
|
|
868
861
|
transitionProperty: "fill, opacity",
|
|
869
862
|
opacity: "0"
|
|
@@ -872,64 +865,66 @@ const qt = {
|
|
|
872
865
|
opacity: "1"
|
|
873
866
|
},
|
|
874
867
|
".head-button:hover": {
|
|
875
|
-
fill:
|
|
868
|
+
fill: h.colorActive.var
|
|
876
869
|
},
|
|
877
870
|
".head-button svg": {
|
|
878
871
|
width: "100%",
|
|
879
872
|
height: "100%"
|
|
880
873
|
}
|
|
881
874
|
});
|
|
882
|
-
var
|
|
883
|
-
class
|
|
875
|
+
var S, U, G, Q, ee, ge, me;
|
|
876
|
+
class Ze extends HTMLElement {
|
|
884
877
|
constructor(t) {
|
|
885
|
-
var
|
|
878
|
+
var l, d;
|
|
886
879
|
super();
|
|
887
|
-
i(this,
|
|
880
|
+
i(this, S, []);
|
|
881
|
+
i(this, U);
|
|
888
882
|
i(this, G);
|
|
889
|
-
i(this, Q);
|
|
890
|
-
i(this, _, !1);
|
|
883
|
+
i(this, Q, !1);
|
|
891
884
|
i(this, ee);
|
|
892
|
-
i(this,
|
|
893
|
-
|
|
885
|
+
i(this, ge, () => {
|
|
886
|
+
_.current.find((t) => e(this, S).includes(t)) || this.remove();
|
|
894
887
|
});
|
|
895
|
-
i(this,
|
|
896
|
-
e(this,
|
|
888
|
+
i(this, me, (t) => {
|
|
889
|
+
e(this, Q) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this, S)[0].current) : (t.metaKey || t.ctrlKey) && t.code === "KeyR" && (e(this, S).forEach((s) => {
|
|
897
890
|
s.reset();
|
|
898
891
|
}), t.preventDefault()));
|
|
899
892
|
});
|
|
900
|
-
o(this,
|
|
901
|
-
const s = ((
|
|
902
|
-
o(this, ee, new
|
|
893
|
+
o(this, S, [t.store]), o(this, U, t.store.name), o(this, G, e(this, U).split(".").slice(-1).toString());
|
|
894
|
+
const s = ((l = t.store.__manager) == null ? void 0 : l.type) || "string";
|
|
895
|
+
o(this, ee, new Zt[s](
|
|
896
|
+
e(this, S)[0]
|
|
897
|
+
)), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Kt), u(this, {
|
|
903
898
|
class: {
|
|
904
|
-
disabled: ((
|
|
899
|
+
disabled: ((d = t.store.__manager) == null ? void 0 : d.disabled) || !1
|
|
905
900
|
},
|
|
906
901
|
onPointerleave: () => {
|
|
907
|
-
o(this,
|
|
902
|
+
o(this, Q, !1);
|
|
908
903
|
},
|
|
909
904
|
onPointerenter: () => {
|
|
910
|
-
o(this,
|
|
905
|
+
o(this, Q, !0);
|
|
911
906
|
},
|
|
912
907
|
children: [
|
|
913
|
-
|
|
908
|
+
g({
|
|
914
909
|
class: "head",
|
|
915
910
|
children: [
|
|
916
|
-
|
|
917
|
-
|
|
911
|
+
g({ class: "name", children: e(this, G) + ":" }),
|
|
912
|
+
g({
|
|
918
913
|
class: "head-buttons",
|
|
919
914
|
children: [
|
|
920
|
-
|
|
915
|
+
O({
|
|
921
916
|
class: "head-button",
|
|
922
|
-
children:
|
|
917
|
+
children: et,
|
|
923
918
|
onClick: () => {
|
|
924
|
-
navigator.clipboard.writeText(e(this,
|
|
919
|
+
navigator.clipboard.writeText(e(this, S)[0].current);
|
|
925
920
|
}
|
|
926
921
|
}),
|
|
927
|
-
|
|
922
|
+
O({
|
|
928
923
|
class: "head-button",
|
|
929
|
-
children:
|
|
924
|
+
children: Qe,
|
|
930
925
|
onClick: () => {
|
|
931
|
-
e(this,
|
|
932
|
-
|
|
926
|
+
e(this, S).forEach((m) => {
|
|
927
|
+
m.reset();
|
|
933
928
|
});
|
|
934
929
|
}
|
|
935
930
|
})
|
|
@@ -942,31 +937,31 @@ class je extends HTMLElement {
|
|
|
942
937
|
});
|
|
943
938
|
}
|
|
944
939
|
get key() {
|
|
945
|
-
return e(this,
|
|
940
|
+
return e(this, U);
|
|
946
941
|
}
|
|
947
942
|
get name() {
|
|
948
|
-
return e(this,
|
|
943
|
+
return e(this, G);
|
|
949
944
|
}
|
|
950
945
|
get stores() {
|
|
951
|
-
return e(this,
|
|
946
|
+
return e(this, S);
|
|
952
947
|
}
|
|
953
948
|
addStore(t) {
|
|
954
949
|
e(this, ee).addStore(t);
|
|
955
950
|
}
|
|
956
951
|
connectedCallback() {
|
|
957
|
-
|
|
952
|
+
_.subscribe(e(this, ge)), addEventListener("keydown", e(this, me)), Xe(this);
|
|
958
953
|
}
|
|
959
954
|
disconnectedCallback() {
|
|
960
|
-
|
|
955
|
+
_.unsubscribe(e(this, ge)), removeEventListener("keydown", e(this, me));
|
|
961
956
|
}
|
|
962
957
|
}
|
|
963
|
-
|
|
964
|
-
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field",
|
|
965
|
-
const
|
|
958
|
+
S = new WeakMap(), U = new WeakMap(), G = new WeakMap(), Q = new WeakMap(), ee = new WeakMap(), ge = new WeakMap(), me = new WeakMap();
|
|
959
|
+
customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", Ze);
|
|
960
|
+
const Bt = w({
|
|
966
961
|
".wrapper": {
|
|
967
962
|
boxSizing: "border-box",
|
|
968
963
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
969
|
-
borderRadius:
|
|
964
|
+
borderRadius: h.borderRadius.var
|
|
970
965
|
},
|
|
971
966
|
".head": {
|
|
972
967
|
boxSizing: "border-box",
|
|
@@ -977,12 +972,12 @@ const Yt = w({
|
|
|
977
972
|
display: "flex",
|
|
978
973
|
alignItems: "center",
|
|
979
974
|
justifyContent: "space-between",
|
|
980
|
-
backgroundColor:
|
|
981
|
-
borderRadius:
|
|
975
|
+
backgroundColor: h.colorMainAux.var,
|
|
976
|
+
borderRadius: h.borderRadius.var
|
|
982
977
|
},
|
|
983
978
|
".name": {
|
|
984
979
|
fontSize: "var(--font-size-large)",
|
|
985
|
-
color:
|
|
980
|
+
color: h.colorFont.var
|
|
986
981
|
},
|
|
987
982
|
".body": {
|
|
988
983
|
display: "none",
|
|
@@ -1010,63 +1005,63 @@ const Yt = w({
|
|
|
1010
1005
|
".arrow": {
|
|
1011
1006
|
width: "20px",
|
|
1012
1007
|
height: "20px",
|
|
1013
|
-
fill:
|
|
1008
|
+
fill: h.colorFont.var,
|
|
1014
1009
|
transition: "transform var(--duration-short)"
|
|
1015
1010
|
},
|
|
1016
1011
|
".opened .arrow": {
|
|
1017
1012
|
transform: "scaleY(-1)"
|
|
1018
1013
|
}
|
|
1019
1014
|
});
|
|
1020
|
-
var
|
|
1021
|
-
const
|
|
1015
|
+
var x, fe, f, we, ve, be, ye, Re;
|
|
1016
|
+
const Me = class Me extends HTMLElement {
|
|
1022
1017
|
constructor(t) {
|
|
1023
1018
|
super();
|
|
1024
|
-
i(this,
|
|
1025
|
-
i(this,
|
|
1026
|
-
i(this, f, new
|
|
1027
|
-
i(this,
|
|
1019
|
+
i(this, x);
|
|
1020
|
+
i(this, fe, new qe(null));
|
|
1021
|
+
i(this, f, new qe([]));
|
|
1022
|
+
i(this, we);
|
|
1023
|
+
i(this, ve, null);
|
|
1028
1024
|
i(this, be, null);
|
|
1029
1025
|
i(this, ye, null);
|
|
1030
|
-
i(this,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
s = [...s, ...h.removedNodes], n = [...n, ...h.addedNodes];
|
|
1026
|
+
i(this, Re, (t) => {
|
|
1027
|
+
let s = [], r = [];
|
|
1028
|
+
t.forEach((l) => {
|
|
1029
|
+
s = [...s, ...l.removedNodes], r = [...r, ...l.addedNodes];
|
|
1035
1030
|
}), e(this, f).current = e(this, f).current.filter(
|
|
1036
|
-
(
|
|
1037
|
-
), e(this,
|
|
1031
|
+
(l) => !s.includes(l)
|
|
1032
|
+
), e(this, x) && !e(this, f).current.length && !r.length && this.remove();
|
|
1038
1033
|
});
|
|
1039
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(
|
|
1034
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Bt), o(this, x, t.key), o(this, we, new MutationObserver(e(this, Re))), u(this, {
|
|
1040
1035
|
children: [
|
|
1041
|
-
|
|
1036
|
+
g({
|
|
1042
1037
|
class: "wrapper",
|
|
1043
1038
|
children: [
|
|
1044
|
-
|
|
1039
|
+
g({
|
|
1045
1040
|
class: "head",
|
|
1046
|
-
onClick: (
|
|
1047
|
-
this.classList.toggle("opened"), this.classList.contains("opened") ? v.openPanel(e(this,
|
|
1041
|
+
onClick: (r) => {
|
|
1042
|
+
this.classList.toggle("opened"), this.classList.contains("opened") ? v.openPanel(e(this, x)) : v.closePanel(e(this, x));
|
|
1048
1043
|
},
|
|
1049
1044
|
children: [
|
|
1050
|
-
e(this,
|
|
1045
|
+
e(this, x) ? g({
|
|
1051
1046
|
class: "name",
|
|
1052
|
-
children: [e(this,
|
|
1047
|
+
children: [e(this, x).split(".").slice(-1).toString()]
|
|
1053
1048
|
}) : null,
|
|
1054
|
-
e(this,
|
|
1055
|
-
u(
|
|
1049
|
+
e(this, fe),
|
|
1050
|
+
u(tt, {
|
|
1056
1051
|
class: "arrow"
|
|
1057
1052
|
})
|
|
1058
1053
|
]
|
|
1059
1054
|
}),
|
|
1060
|
-
|
|
1055
|
+
g({
|
|
1061
1056
|
class: "body",
|
|
1062
|
-
ref: (
|
|
1063
|
-
o(this,
|
|
1057
|
+
ref: (r) => {
|
|
1058
|
+
o(this, ve, r);
|
|
1064
1059
|
},
|
|
1065
|
-
children:
|
|
1060
|
+
children: g({
|
|
1066
1061
|
class: "body-content",
|
|
1067
1062
|
children: e(this, f),
|
|
1068
|
-
ref: (
|
|
1069
|
-
o(this,
|
|
1063
|
+
ref: (r) => {
|
|
1064
|
+
o(this, be, r), o(this, ye, r.firstElementChild);
|
|
1070
1065
|
}
|
|
1071
1066
|
})
|
|
1072
1067
|
})
|
|
@@ -1076,37 +1071,37 @@ const Ie = class Ie extends HTMLElement {
|
|
|
1076
1071
|
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
1077
1072
|
}
|
|
1078
1073
|
get key() {
|
|
1079
|
-
return e(this,
|
|
1074
|
+
return e(this, x);
|
|
1080
1075
|
}
|
|
1081
1076
|
get head() {
|
|
1082
|
-
return e(this,
|
|
1077
|
+
return e(this, fe);
|
|
1083
1078
|
}
|
|
1084
1079
|
get content() {
|
|
1085
1080
|
return e(this, f);
|
|
1086
1081
|
}
|
|
1087
1082
|
get bodyElement() {
|
|
1088
|
-
return e(this,
|
|
1083
|
+
return e(this, ve);
|
|
1089
1084
|
}
|
|
1090
1085
|
get contentElement() {
|
|
1091
|
-
return e(this,
|
|
1086
|
+
return e(this, be);
|
|
1092
1087
|
}
|
|
1093
1088
|
connectedCallback() {
|
|
1094
|
-
v.isPanelOpened(e(this,
|
|
1089
|
+
v.isPanelOpened(e(this, x)) && this.classList.add("opened"), setTimeout(() => {
|
|
1095
1090
|
this.classList.add("transition-allowed");
|
|
1096
|
-
}), e(this,
|
|
1091
|
+
}), e(this, we).observe(e(this, ye), {
|
|
1097
1092
|
childList: !0
|
|
1098
1093
|
});
|
|
1099
1094
|
}
|
|
1100
1095
|
handleStore(t) {
|
|
1101
1096
|
if (t.remainingFolders.length) {
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1097
|
+
const r = t.store.name.split("."), l = r.slice(0, r.length - t.remainingFolders.length).join("."), d = e(this, f).current.find((m) => m.key === l);
|
|
1098
|
+
d instanceof Me ? d.handleStore({
|
|
1104
1099
|
store: t.store,
|
|
1105
1100
|
remainingFolders: t.remainingFolders.slice(1)
|
|
1106
1101
|
}) : e(this, f).current = [
|
|
1107
1102
|
...e(this, f).current,
|
|
1108
|
-
new
|
|
1109
|
-
key:
|
|
1103
|
+
new Me({
|
|
1104
|
+
key: l,
|
|
1110
1105
|
storeBox: {
|
|
1111
1106
|
store: t.store,
|
|
1112
1107
|
remainingFolders: t.remainingFolders.slice(1)
|
|
@@ -1115,21 +1110,21 @@ const Ie = class Ie extends HTMLElement {
|
|
|
1115
1110
|
];
|
|
1116
1111
|
} else {
|
|
1117
1112
|
const s = e(this, f).current.find(
|
|
1118
|
-
(
|
|
1113
|
+
(r) => r.key === t.store.name
|
|
1119
1114
|
);
|
|
1120
|
-
s instanceof
|
|
1115
|
+
s instanceof Ze ? s.addStore(t.store) : e(this, f).current = [
|
|
1121
1116
|
...e(this, f).current,
|
|
1122
|
-
new
|
|
1117
|
+
new Ze({
|
|
1123
1118
|
store: t.store
|
|
1124
1119
|
})
|
|
1125
1120
|
];
|
|
1126
1121
|
}
|
|
1127
1122
|
}
|
|
1128
1123
|
};
|
|
1129
|
-
|
|
1130
|
-
let
|
|
1131
|
-
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder",
|
|
1132
|
-
const
|
|
1124
|
+
x = new WeakMap(), fe = new WeakMap(), f = new WeakMap(), we = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), Re = new WeakMap();
|
|
1125
|
+
let Te = Me;
|
|
1126
|
+
customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", Te);
|
|
1127
|
+
const jt = w({
|
|
1133
1128
|
":host": {
|
|
1134
1129
|
"--tweaker-width": "550px",
|
|
1135
1130
|
"--tweaker-offset": "20px",
|
|
@@ -1148,8 +1143,8 @@ const Xt = w({
|
|
|
1148
1143
|
top: "var(--tweaker-offset)",
|
|
1149
1144
|
right: "var(--tweaker-offset)",
|
|
1150
1145
|
width: "var(--tweaker-width)",
|
|
1151
|
-
backgroundColor:
|
|
1152
|
-
borderRadius:
|
|
1146
|
+
backgroundColor: h.colorMain.var,
|
|
1147
|
+
borderRadius: h.borderRadius.var,
|
|
1153
1148
|
transition: "opacity 0.1s",
|
|
1154
1149
|
zIndex: "100",
|
|
1155
1150
|
opacity: "0.1"
|
|
@@ -1178,12 +1173,12 @@ const Xt = w({
|
|
|
1178
1173
|
margin: "0",
|
|
1179
1174
|
background: "none",
|
|
1180
1175
|
border: "none",
|
|
1181
|
-
fill:
|
|
1176
|
+
fill: h.colorFont.var,
|
|
1182
1177
|
transitionProperty: "fill",
|
|
1183
1178
|
transitionDuration: "var(--duration-short)"
|
|
1184
1179
|
},
|
|
1185
1180
|
".tweaker-button:hover": {
|
|
1186
|
-
fill:
|
|
1181
|
+
fill: h.colorActive.var
|
|
1187
1182
|
},
|
|
1188
1183
|
".tweaker-button svg": {
|
|
1189
1184
|
width: "100%",
|
|
@@ -1204,7 +1199,7 @@ const Xt = w({
|
|
|
1204
1199
|
":host .body-content::-webkit-scrollbar": {
|
|
1205
1200
|
display: "none"
|
|
1206
1201
|
},
|
|
1207
|
-
[`@media ${
|
|
1202
|
+
[`@media ${St["<=mobile"]}`]: {
|
|
1208
1203
|
":host": {
|
|
1209
1204
|
position: "absolute",
|
|
1210
1205
|
top: "0",
|
|
@@ -1221,81 +1216,80 @@ const Xt = w({
|
|
|
1221
1216
|
}
|
|
1222
1217
|
}
|
|
1223
1218
|
});
|
|
1224
|
-
var Se, xe
|
|
1225
|
-
class
|
|
1219
|
+
var ke, Se, xe;
|
|
1220
|
+
class ht extends Te {
|
|
1226
1221
|
constructor() {
|
|
1227
1222
|
super({
|
|
1228
1223
|
key: ""
|
|
1229
1224
|
});
|
|
1230
|
-
i(this,
|
|
1231
|
-
i(this,
|
|
1225
|
+
i(this, ke, !1);
|
|
1226
|
+
i(this, Se, () => {
|
|
1232
1227
|
v.save();
|
|
1233
1228
|
});
|
|
1234
|
-
i(this,
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
const n = t.passport.name.split(".");
|
|
1229
|
+
i(this, xe, vt(() => {
|
|
1230
|
+
_.current.forEach((t) => {
|
|
1231
|
+
if (t.name) {
|
|
1232
|
+
const s = t.name.split(".");
|
|
1239
1233
|
this.handleStore({
|
|
1240
1234
|
store: t,
|
|
1241
|
-
remainingFolders:
|
|
1235
|
+
remainingFolders: s.length > 1 ? s.slice(0, -1) : []
|
|
1242
1236
|
});
|
|
1243
1237
|
}
|
|
1244
|
-
}), e(this,
|
|
1238
|
+
}), e(this, ke) || (o(this, ke, !0), this.contentElement.scroll({
|
|
1245
1239
|
top: v.scrollValue
|
|
1246
1240
|
}), this.contentElement.addEventListener("scroll", () => {
|
|
1247
1241
|
v.scrollValue = this.contentElement.scrollTop;
|
|
1248
1242
|
}));
|
|
1249
1243
|
}, 10));
|
|
1250
|
-
v.load(), this.shadowRoot.adoptedStyleSheets.push(
|
|
1251
|
-
|
|
1244
|
+
v.load(), this.shadowRoot.adoptedStyleSheets.push(jt), this.head.current = [
|
|
1245
|
+
g({
|
|
1252
1246
|
class: "tweaker-buttons",
|
|
1253
1247
|
onClick: (t) => {
|
|
1254
1248
|
t.stopPropagation();
|
|
1255
1249
|
},
|
|
1256
1250
|
children: [
|
|
1257
|
-
|
|
1251
|
+
O({
|
|
1258
1252
|
class: "tweaker-button",
|
|
1259
|
-
children:
|
|
1253
|
+
children: Qe,
|
|
1260
1254
|
onClick: () => {
|
|
1261
|
-
|
|
1255
|
+
L.resetState();
|
|
1262
1256
|
}
|
|
1263
1257
|
}),
|
|
1264
|
-
|
|
1258
|
+
O({
|
|
1265
1259
|
class: ["tweaker-button"],
|
|
1266
|
-
children: [
|
|
1260
|
+
children: [et],
|
|
1267
1261
|
onClick: () => {
|
|
1268
1262
|
navigator.clipboard.writeText(
|
|
1269
|
-
JSON.stringify(
|
|
1263
|
+
JSON.stringify(L.getState())
|
|
1270
1264
|
);
|
|
1271
1265
|
}
|
|
1272
1266
|
}),
|
|
1273
|
-
|
|
1267
|
+
O({
|
|
1274
1268
|
class: "tweaker-button",
|
|
1275
|
-
children:
|
|
1269
|
+
children: zt,
|
|
1276
1270
|
onClick: () => {
|
|
1277
|
-
|
|
1271
|
+
wt(L.name, L.getState());
|
|
1278
1272
|
}
|
|
1279
1273
|
}),
|
|
1280
|
-
|
|
1274
|
+
Ge({
|
|
1281
1275
|
class: "tweaker-button",
|
|
1282
1276
|
children: [
|
|
1283
|
-
|
|
1284
|
-
|
|
1277
|
+
Tt,
|
|
1278
|
+
Ce({
|
|
1285
1279
|
type: "file",
|
|
1286
1280
|
style: {
|
|
1287
1281
|
display: "none"
|
|
1288
1282
|
},
|
|
1289
1283
|
onChange: (t) => {
|
|
1290
|
-
var
|
|
1291
|
-
const
|
|
1292
|
-
if (
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
var
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
},
|
|
1284
|
+
var l;
|
|
1285
|
+
const r = (l = t.currentTarget.files) == null ? void 0 : l[0];
|
|
1286
|
+
if (r) {
|
|
1287
|
+
const d = new FileReader();
|
|
1288
|
+
d.onload = (m) => {
|
|
1289
|
+
var I, b;
|
|
1290
|
+
const N = (b = (I = m.target) == null ? void 0 : I.result) == null ? void 0 : b.toString();
|
|
1291
|
+
N && L.loadState(N);
|
|
1292
|
+
}, d.readAsText(r);
|
|
1299
1293
|
}
|
|
1300
1294
|
}
|
|
1301
1295
|
})
|
|
@@ -1305,20 +1299,20 @@ class ut extends Re {
|
|
|
1305
1299
|
})
|
|
1306
1300
|
], u(this.bodyElement, {
|
|
1307
1301
|
children: [
|
|
1308
|
-
|
|
1302
|
+
g({
|
|
1309
1303
|
class: "resize",
|
|
1310
1304
|
onPointerdown: (t) => {
|
|
1311
1305
|
t.preventDefault();
|
|
1312
|
-
const s = this.getBoundingClientRect(),
|
|
1313
|
-
|
|
1314
|
-
(
|
|
1315
|
-
const
|
|
1316
|
-
this.style.width =
|
|
1306
|
+
const s = this.getBoundingClientRect(), r = this.contentElement.scrollTop;
|
|
1307
|
+
Ue(
|
|
1308
|
+
(l) => {
|
|
1309
|
+
const d = t.x - l.x, m = Math.max(400, s.width + d);
|
|
1310
|
+
this.style.width = m + "px", v.changeSize("tweaker", m);
|
|
1317
1311
|
},
|
|
1318
1312
|
() => {
|
|
1319
1313
|
setTimeout(() => {
|
|
1320
1314
|
this.contentElement.scroll({
|
|
1321
|
-
top:
|
|
1315
|
+
top: r
|
|
1322
1316
|
});
|
|
1323
1317
|
}, 10);
|
|
1324
1318
|
}
|
|
@@ -1332,12 +1326,12 @@ class ut extends Re {
|
|
|
1332
1326
|
});
|
|
1333
1327
|
}
|
|
1334
1328
|
connectedCallback() {
|
|
1335
|
-
super.connectedCallback(), window.addEventListener("beforeunload", e(this,
|
|
1329
|
+
super.connectedCallback(), window.addEventListener("beforeunload", e(this, Se)), _.subscribe(e(this, xe)), v.changedSizes("tweaker") && (this.style.width = v.changedSizes("tweaker") + "px");
|
|
1336
1330
|
}
|
|
1337
1331
|
disconnectedCallback() {
|
|
1338
|
-
window.removeEventListener("beforeunload", e(this,
|
|
1332
|
+
window.removeEventListener("beforeunload", e(this, Se)), v.save(), _.unsubscribe(e(this, xe));
|
|
1339
1333
|
}
|
|
1340
1334
|
}
|
|
1341
|
-
|
|
1342
|
-
customElements.get("e-tweaker") || customElements.define("e-tweaker",
|
|
1343
|
-
|
|
1335
|
+
ke = new WeakMap(), Se = new WeakMap(), xe = new WeakMap();
|
|
1336
|
+
customElements.get("e-tweaker") || customElements.define("e-tweaker", ht);
|
|
1337
|
+
Ee && document.body.appendChild(new ht());
|