aptechka 0.1.3 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Animated-CJcYqJzq.js +130 -0
- package/lib/Animated-DyZuTEQE.cjs +1 -0
- package/lib/Damped-AHRBHNEQ.cjs +1 -0
- package/lib/Damped-Csj-9_gH.js +36 -0
- package/lib/Derived-Bc88XJ8J.js +27 -0
- package/lib/Derived-SjPdLJiZ.cjs +1 -0
- package/lib/ElementConstructor-9f-12v7T.cjs +1 -0
- package/lib/ElementConstructor-CoKM2CTK.js +228 -0
- package/lib/{SourceManager-vXInLlh_.js → SourceManager-BoP9RAJr.js} +26 -26
- package/lib/SourceManager-CI6NfLzW.cjs +1 -0
- package/lib/Store-D0_rDIsE.cjs +1 -0
- package/lib/Store-JOKrNVEr.js +152 -0
- package/lib/Viewport-COsaberc.cjs +1 -0
- package/lib/Viewport-CXY5xcGJ.js +129 -0
- package/lib/WheelControls-CX9WUbBC.js +83 -0
- package/lib/WheelControls-CfDeGCOU.cjs +1 -0
- package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
- package/lib/abstract-elements/index.cjs +1 -0
- package/lib/abstract-elements/index.d.ts +1 -0
- package/lib/abstract-elements/index.js +27 -0
- package/lib/accordion/AccordionElement.d.ts +24 -1
- package/lib/accordion/index.cjs +1 -0
- package/lib/accordion/index.js +166 -0
- package/lib/animation/Animated.d.ts +9 -12
- package/lib/animation/Tweened.d.ts +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +1 -1
- package/lib/animation/index.js +11 -17
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +8 -4
- package/lib/attribute/index.js +44 -35
- package/lib/canvas/index.cjs +1 -0
- package/lib/{canvas-2d → canvas}/index.d.ts +4 -3
- package/lib/canvas/index.js +97 -0
- package/lib/connector/index.cjs +1 -0
- package/lib/connector/index.d.ts +15 -0
- package/lib/connector/index.js +54 -0
- package/lib/controls/WheelControls.d.ts +3 -2
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +23 -27
- package/lib/createStylesheet-BON7aJYs.js +10 -0
- package/lib/createStylesheet-uicRVW05.cjs +1 -0
- package/lib/createTheme-BMH9cRrS.js +15 -0
- package/lib/createTheme-COo8IzPG.cjs +1 -0
- package/lib/custom-element/index.cjs +1 -1
- package/lib/custom-element/index.d.ts +3 -1
- package/lib/custom-element/index.js +19 -9
- package/lib/device/Viewport.d.ts +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -121
- package/lib/element-constructor/ElementConstructor.d.ts +15 -17
- package/lib/element-constructor/createStylesheet.d.ts +2 -0
- package/lib/element-constructor/createTheme.d.ts +12 -0
- package/lib/element-constructor/htmlTags.d.ts +115 -113
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.d.ts +2 -1
- package/lib/element-constructor/index.js +387 -1136
- package/lib/element-constructor/svgTags.d.ts +63 -63
- package/lib/element-resizer/index.cjs +1 -0
- package/lib/element-resizer/index.d.ts +9 -0
- package/lib/element-resizer/index.js +64 -0
- package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
- package/lib/en3/index.cjs +7 -7
- package/lib/en3/index.js +252 -242
- package/lib/en3/objects/En3Clip.d.ts +2 -2
- package/lib/events-CoqmkUxo.js +11 -0
- package/lib/events-D68xg4dy.cjs +1 -0
- package/lib/file-EevnUtRj.cjs +1 -0
- package/lib/file-lxi_oXJf.js +13 -0
- package/lib/htmlTags-BCNUG7oK.js +683 -0
- package/lib/htmlTags-BSQys9wH.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +13 -20
- package/lib/index-DgtdcBEI.js +310 -0
- package/lib/index-i_Ki9M-w.cjs +9 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.d.ts +2 -1
- package/lib/intersector/index.js +33 -22
- package/lib/jsx/ComponentElement.d.ts +17 -0
- package/lib/jsx/h.d.ts +8 -0
- package/lib/jsx/hooks.d.ts +25 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +4 -0
- package/lib/jsx/index.js +116 -0
- package/lib/jsx/render.d.ts +2 -0
- package/lib/jsx/type.d.ts +186 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +3 -4
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.d.ts +1 -0
- package/lib/layout-box/index.js +113 -99
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +17 -20
- package/lib/modal/ModalElement.d.ts +12 -0
- package/lib/modal/index.cjs +1 -0
- package/lib/modal/index.d.ts +1 -0
- package/lib/modal/index.js +144 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +1 -1
- package/lib/number-Bo5RdrA1.js +23 -0
- package/lib/number-yVpzMdbQ.cjs +1 -0
- package/lib/popover/PopoverButtonElement.d.ts +14 -0
- package/lib/popover/PopoverElement.d.ts +19 -0
- package/lib/popover/index.cjs +1 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +122 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +2 -2
- package/lib/scroll/ScrollElement.d.ts +5 -3
- package/lib/scroll/index.cjs +1 -71
- package/lib/scroll/index.js +349 -314
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.d.ts +1 -1
- package/lib/scroll-entries/index.js +4 -2
- package/lib/select/SelectElement.d.ts +25 -0
- package/lib/select/SelectHeadElement.d.ts +12 -0
- package/lib/select/SelectOptionElement.d.ts +13 -0
- package/lib/select/SelectUserElement.d.ts +7 -0
- package/lib/select/index.cjs +1 -0
- package/lib/select/index.d.ts +4 -0
- package/lib/select/index.js +7 -0
- package/lib/source/SourceClass.d.ts +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +13 -18
- package/lib/store/CumulativeResource.d.ts +2 -2
- package/lib/store/Resource.d.ts +1 -1
- package/lib/store/Store.d.ts +55 -9
- package/lib/store/StoreRegistry.d.ts +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -1
- package/lib/store/index.js +105 -66
- package/lib/string-BrDhnNUL.js +39 -0
- package/lib/string-DzUwFYSS.cjs +1 -0
- package/lib/studio/StudioElement.d.ts +3 -0
- package/lib/studio/index.cjs +10 -0
- package/lib/studio/index.js +1004 -0
- package/lib/studio/studioStorage.d.ts +14 -0
- package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
- package/lib/studio/tweaker/TweakerFieldElement.d.ts +21 -0
- package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
- package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
- package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
- package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
- package/lib/style-At6aDoqG.cjs +1 -0
- package/lib/style-j2TwriJ_.js +10 -0
- package/lib/theme/index.cjs +1 -0
- package/lib/theme/index.d.ts +90 -0
- package/lib/theme/index.js +34 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/utils/events.d.ts +6 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +8 -7
- package/lib/utils/index.js +95 -105
- package/lib/utils/number.d.ts +2 -3
- package/lib/utils/string.d.ts +1 -0
- package/lib/utils/style.d.ts +2 -0
- package/lib/utils/ts-utility.d.ts +2 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +13 -20
- package/lib/window-resizer/index.cjs +1 -0
- package/lib/window-resizer/index.d.ts +9 -0
- package/lib/window-resizer/index.js +46 -0
- package/package.json +91 -28
- package/lib/Damped-DdPj4Sho.cjs +0 -1
- package/lib/Damped-H3PuZwKV.js +0 -152
- package/lib/SourceManager-tmQlXkSD.cjs +0 -1
- package/lib/Store-qq7IjRLE.js +0 -136
- package/lib/Store-txkR3wXU.cjs +0 -1
- package/lib/WheelControls-9ZQKSYYq.js +0 -83
- package/lib/WheelControls-TYhGU6oA.cjs +0 -1
- package/lib/canvas-2d/index.cjs +0 -5
- package/lib/canvas-2d/index.js +0 -90
- package/lib/element-constructor/specialObjects.d.ts +0 -2
- package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
- package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
- package/lib/measurer/Meaurer.d.ts +0 -8
- package/lib/measurer/index.cjs +0 -1
- package/lib/measurer/index.d.ts +0 -3
- package/lib/measurer/index.js +0 -48
- package/lib/number-2bR0KBcX.cjs +0 -1
- package/lib/number-bCHB2GAD.js +0 -31
- package/lib/resizer/index.cjs +0 -1
- package/lib/resizer/index.d.ts +0 -10
- package/lib/resizer/index.js +0 -45
- package/lib/string-GmxZA5Nq.js +0 -31
- package/lib/string-WmNOGq16.cjs +0 -1
- package/lib/utils/dev.d.ts +0 -3
- /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
- /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
- /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
- /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
- /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
- /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
- /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
- /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
- /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
- /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
- /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
- /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
- /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
- /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
|
@@ -0,0 +1,1004 @@
|
|
|
1
|
+
var fe = (t, e, r) => {
|
|
2
|
+
if (!e.has(t))
|
|
3
|
+
throw TypeError("Cannot " + r);
|
|
4
|
+
};
|
|
5
|
+
var d = (t, e, r) => (fe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (t, e, r) => {
|
|
6
|
+
if (e.has(t))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
9
|
+
}, M = (t, e, r, s) => (fe(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
|
|
10
|
+
import { i as xe } from "../browser-0zX67oeU.js";
|
|
11
|
+
import { CustomElement as ge, define as p } from "../custom-element/index.js";
|
|
12
|
+
import { e as m } from "../ElementConstructor-CoKM2CTK.js";
|
|
13
|
+
import { c as f } from "../createStylesheet-BON7aJYs.js";
|
|
14
|
+
import { s as S, S as ie, a as $ } from "../Store-JOKrNVEr.js";
|
|
15
|
+
import { c as $e } from "../file-lxi_oXJf.js";
|
|
16
|
+
import { d as Pe } from "../function-C10DGppn.js";
|
|
17
|
+
import { _ as N, a as Oe, aW as re, az as Me, C as w, p as I, a1 as Ee } from "../htmlTags-BCNUG7oK.js";
|
|
18
|
+
import { A as Te } from "../Animated-CJcYqJzq.js";
|
|
19
|
+
import { a as De } from "../Viewport-CXY5xcGJ.js";
|
|
20
|
+
import { AccordionElement as We } from "../accordion/index.js";
|
|
21
|
+
import { a as Re } from "../index-DgtdcBEI.js";
|
|
22
|
+
import { d as Le } from "../events-CoqmkUxo.js";
|
|
23
|
+
import { aptechkaTheme as i } from "../theme/index.js";
|
|
24
|
+
import { c as Fe } from "../math-BOBiC4TN.js";
|
|
25
|
+
const be = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', _e = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', Ae = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Ie = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';
|
|
26
|
+
var O, g;
|
|
27
|
+
class ze {
|
|
28
|
+
constructor() {
|
|
29
|
+
G(this, O, "");
|
|
30
|
+
G(this, g, []);
|
|
31
|
+
M(this, O, S.projectName + "-studio");
|
|
32
|
+
}
|
|
33
|
+
openPanel(e) {
|
|
34
|
+
d(this, g).includes(e) || d(this, g).push(e);
|
|
35
|
+
}
|
|
36
|
+
closePanel(e) {
|
|
37
|
+
M(this, g, d(this, g).filter((r) => r !== e));
|
|
38
|
+
}
|
|
39
|
+
isPanelOpened(e) {
|
|
40
|
+
return d(this, g).includes(e);
|
|
41
|
+
}
|
|
42
|
+
save() {
|
|
43
|
+
const e = {
|
|
44
|
+
openedPanels: d(this, g)
|
|
45
|
+
};
|
|
46
|
+
localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
|
|
47
|
+
}
|
|
48
|
+
load() {
|
|
49
|
+
S.loadState();
|
|
50
|
+
const e = localStorage.getItem(d(this, O));
|
|
51
|
+
if (e)
|
|
52
|
+
try {
|
|
53
|
+
const r = JSON.parse(e);
|
|
54
|
+
r.openedPanels && M(this, g, r.openedPanels);
|
|
55
|
+
} catch (r) {
|
|
56
|
+
console.error(r);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
O = new WeakMap(), g = new WeakMap();
|
|
61
|
+
const P = new ze();
|
|
62
|
+
var y;
|
|
63
|
+
class H extends ge {
|
|
64
|
+
constructor(...r) {
|
|
65
|
+
super();
|
|
66
|
+
G(this, y, void 0);
|
|
67
|
+
M(this, y, r);
|
|
68
|
+
}
|
|
69
|
+
addStore(r) {
|
|
70
|
+
d(this, y).push(r);
|
|
71
|
+
}
|
|
72
|
+
get firstStore() {
|
|
73
|
+
return d(this, y)[0];
|
|
74
|
+
}
|
|
75
|
+
get stores() {
|
|
76
|
+
return d(this, y);
|
|
77
|
+
}
|
|
78
|
+
updateStores(r) {
|
|
79
|
+
d(this, y).forEach((s) => {
|
|
80
|
+
s.current = r;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
y = new WeakMap();
|
|
85
|
+
var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ze = (t, e, r, s) => {
|
|
86
|
+
for (var a = s > 1 ? void 0 : s ? He(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
87
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
88
|
+
return s && a && Ne(e, r, a), a;
|
|
89
|
+
};
|
|
90
|
+
const Ge = f({
|
|
91
|
+
":host": {
|
|
92
|
+
width: "100%",
|
|
93
|
+
display: "inline-flex",
|
|
94
|
+
height: "max-content"
|
|
95
|
+
},
|
|
96
|
+
input: {
|
|
97
|
+
padding: "0",
|
|
98
|
+
margin: "0",
|
|
99
|
+
width: `calc(${i.heightInput.var} * 0.5)`,
|
|
100
|
+
height: `calc(${i.heightInput.var} * 0.5)`,
|
|
101
|
+
borderRadius: i.borderRadius.var,
|
|
102
|
+
overflow: "hidden",
|
|
103
|
+
accentColor: i.colorLight.var
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
let oe = class extends H {
|
|
107
|
+
constructor(...t) {
|
|
108
|
+
super(...t), this.openShadow(Ge), m(this, {
|
|
109
|
+
shadowChildren: [
|
|
110
|
+
N({
|
|
111
|
+
attributes: {
|
|
112
|
+
type: "checkbox"
|
|
113
|
+
},
|
|
114
|
+
events: {
|
|
115
|
+
change: (e) => {
|
|
116
|
+
this.updateStores(e.currentTarget.checked);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
ref: (e) => {
|
|
120
|
+
this.firstStore.subscribe((r) => {
|
|
121
|
+
e.checked = r.current;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
oe = Ze([
|
|
130
|
+
p("e-tweaker-boolean-manager")
|
|
131
|
+
], oe);
|
|
132
|
+
var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
|
|
133
|
+
for (var a = s > 1 ? void 0 : s ? Je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
134
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
135
|
+
return s && a && Ke(e, r, a), a;
|
|
136
|
+
};
|
|
137
|
+
const Ye = f({
|
|
138
|
+
":host": {
|
|
139
|
+
width: "100%",
|
|
140
|
+
display: "inline-flex",
|
|
141
|
+
height: "max-content"
|
|
142
|
+
},
|
|
143
|
+
input: {
|
|
144
|
+
width: "100%",
|
|
145
|
+
height: i.heightInput.var,
|
|
146
|
+
padding: "0",
|
|
147
|
+
background: "none",
|
|
148
|
+
borderRadius: i.borderRadius.var,
|
|
149
|
+
border: "none",
|
|
150
|
+
blockSize: "unset"
|
|
151
|
+
},
|
|
152
|
+
"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper": {
|
|
153
|
+
boxSizing: "border-box",
|
|
154
|
+
padding: "0px",
|
|
155
|
+
border: "none",
|
|
156
|
+
borderRadius: i.borderRadius.var,
|
|
157
|
+
height: `calc(${i.heightInput.var} * 0.93)`
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
let le = class extends H {
|
|
161
|
+
constructor(...t) {
|
|
162
|
+
super(...t), this.openShadow(Ye), m(this, {
|
|
163
|
+
shadowChildren: [
|
|
164
|
+
N({
|
|
165
|
+
attributes: {
|
|
166
|
+
type: "color",
|
|
167
|
+
value: this.firstStore
|
|
168
|
+
},
|
|
169
|
+
events: {
|
|
170
|
+
input: (e) => {
|
|
171
|
+
this.updateStores(e.currentTarget.value);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
le = Ve([
|
|
180
|
+
p("e-tweaker-color-manager")
|
|
181
|
+
], le);
|
|
182
|
+
var qe = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
|
|
183
|
+
for (var a = s > 1 ? void 0 : s ? Be(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
184
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
185
|
+
return s && a && qe(e, r, a), a;
|
|
186
|
+
};
|
|
187
|
+
const Ue = f({
|
|
188
|
+
a: {
|
|
189
|
+
color: "inherit"
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
let he = class extends H {
|
|
193
|
+
constructor(...t) {
|
|
194
|
+
var e, r;
|
|
195
|
+
super(...t), this.openShadow(Ue), m(this, {
|
|
196
|
+
shadowChildren: [
|
|
197
|
+
Oe({
|
|
198
|
+
attributes: {
|
|
199
|
+
href: this.firstStore,
|
|
200
|
+
target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
|
|
201
|
+
},
|
|
202
|
+
children: this.firstStore
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
he = Qe([
|
|
209
|
+
p("e-tweaker-link-manager")
|
|
210
|
+
], he);
|
|
211
|
+
var Xe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
|
|
212
|
+
for (var a = s > 1 ? void 0 : s ? je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
213
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
214
|
+
return s && a && Xe(e, r, a), a;
|
|
215
|
+
}, tt = (t, e, r) => {
|
|
216
|
+
if (!e.has(t))
|
|
217
|
+
throw TypeError("Cannot " + r);
|
|
218
|
+
}, ae = (t, e, r) => (tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), rt = (t, e, r) => {
|
|
219
|
+
if (e.has(t))
|
|
220
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
221
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
222
|
+
}, E;
|
|
223
|
+
const at = f({
|
|
224
|
+
":host": {
|
|
225
|
+
width: "100%",
|
|
226
|
+
display: "flex",
|
|
227
|
+
alignItems: "center"
|
|
228
|
+
},
|
|
229
|
+
input: {
|
|
230
|
+
boxSizing: "border-box",
|
|
231
|
+
outline: "none",
|
|
232
|
+
fontVariantNumeric: "tabular-nums",
|
|
233
|
+
fontFamily: "inherit",
|
|
234
|
+
color: "inherit",
|
|
235
|
+
border: "none",
|
|
236
|
+
fontSize: i.fontSizeSmall.var
|
|
237
|
+
},
|
|
238
|
+
".text-input": {
|
|
239
|
+
height: i.heightInput.var,
|
|
240
|
+
width: "100%",
|
|
241
|
+
margin: "0",
|
|
242
|
+
padding: `0 ${i.gapSmall.var}`,
|
|
243
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
244
|
+
borderRadius: i.borderRadius.var
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
let j = class extends H {
|
|
248
|
+
constructor(...t) {
|
|
249
|
+
super(...t), rt(this, E, new ie([])), this.openShadow(at), m(this, {
|
|
250
|
+
shadowChildren: [
|
|
251
|
+
N({
|
|
252
|
+
class: "text-input",
|
|
253
|
+
attributes: {
|
|
254
|
+
type: "string",
|
|
255
|
+
value: this.firstStore
|
|
256
|
+
},
|
|
257
|
+
events: {
|
|
258
|
+
change: (e) => {
|
|
259
|
+
this.updateStores(
|
|
260
|
+
e.currentTarget.value
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}),
|
|
265
|
+
ae(this, E)
|
|
266
|
+
]
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
appendContent(t) {
|
|
270
|
+
ae(this, E).current = [...ae(this, E).current, t];
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
E = /* @__PURE__ */ new WeakMap();
|
|
274
|
+
j = et([
|
|
275
|
+
p("e-tweaker-string-manager")
|
|
276
|
+
], j);
|
|
277
|
+
var st = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = (t, e, r, s) => {
|
|
278
|
+
for (var a = s > 1 ? void 0 : s ? nt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
279
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
280
|
+
return s && a && st(e, r, a), a;
|
|
281
|
+
}, Se = (t, e, r) => {
|
|
282
|
+
if (!e.has(t))
|
|
283
|
+
throw TypeError("Cannot " + r);
|
|
284
|
+
}, _ = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
|
|
285
|
+
if (e.has(t))
|
|
286
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
287
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
288
|
+
}, se = (t, e, r, s) => (Se(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), T, D, W, J;
|
|
289
|
+
let ee = class extends j {
|
|
290
|
+
constructor(...t) {
|
|
291
|
+
var e, r, s, a, o, n;
|
|
292
|
+
super(...t), K(this, T, void 0), K(this, D, void 0), K(this, W, void 0), K(this, J, (b) => {
|
|
293
|
+
const Z = typeof b == "string" ? parseFloat(b) || this.min : b, ke = Fe(Z, _(this, D), _(this, W));
|
|
294
|
+
return this.toFixed(ke);
|
|
295
|
+
}), se(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), se(this, W, ((a = (s = this.firstStore.passport) == null ? void 0 : s.manager) == null ? void 0 : a.max) || 1), se(this, T, ((n = (o = this.firstStore.passport) == null ? void 0 : o.manager) == null ? void 0 : n.step) || 0.01);
|
|
296
|
+
}
|
|
297
|
+
get min() {
|
|
298
|
+
return _(this, D);
|
|
299
|
+
}
|
|
300
|
+
get max() {
|
|
301
|
+
return _(this, W);
|
|
302
|
+
}
|
|
303
|
+
get step() {
|
|
304
|
+
return _(this, T);
|
|
305
|
+
}
|
|
306
|
+
toFixed(t) {
|
|
307
|
+
var r;
|
|
308
|
+
const e = ((r = _(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
309
|
+
return e ? +t.toFixed(e) : Math.ceil(t);
|
|
310
|
+
}
|
|
311
|
+
connectedCallback() {
|
|
312
|
+
this.firstStore.addMiddleware(_(this, J));
|
|
313
|
+
}
|
|
314
|
+
disconnectedCallback() {
|
|
315
|
+
this.firstStore.removeMiddleware(_(this, J));
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
319
|
+
D = /* @__PURE__ */ new WeakMap();
|
|
320
|
+
W = /* @__PURE__ */ new WeakMap();
|
|
321
|
+
J = /* @__PURE__ */ new WeakMap();
|
|
322
|
+
ee = it([
|
|
323
|
+
p("e-tweaker-number-manager")
|
|
324
|
+
], ee);
|
|
325
|
+
var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ht = (t, e, r, s) => {
|
|
326
|
+
for (var a = s > 1 ? void 0 : s ? lt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
327
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
328
|
+
return s && a && ot(e, r, a), a;
|
|
329
|
+
};
|
|
330
|
+
const ct = f({
|
|
331
|
+
":host": {
|
|
332
|
+
width: "100%"
|
|
333
|
+
},
|
|
334
|
+
".text-input": {
|
|
335
|
+
width: "60px",
|
|
336
|
+
marginRight: i.gapLarge.var,
|
|
337
|
+
textAlign: "center"
|
|
338
|
+
},
|
|
339
|
+
".range-input": {
|
|
340
|
+
boxSizing: "border-box",
|
|
341
|
+
"-webkit-appearance": "none",
|
|
342
|
+
height: "8px",
|
|
343
|
+
width: "100%",
|
|
344
|
+
margin: "0",
|
|
345
|
+
padding: "0",
|
|
346
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
347
|
+
borderRadius: i.borderRadius.var
|
|
348
|
+
},
|
|
349
|
+
".range-input::-webkit-slider-thumb": {
|
|
350
|
+
"-webkit-appearance": "none",
|
|
351
|
+
height: `calc(${i.heightInput.var} * 0.7)`,
|
|
352
|
+
width: i.borderRadius.var,
|
|
353
|
+
borderRadius: i.borderRadius.var,
|
|
354
|
+
backgroundColor: i.colorLight.var,
|
|
355
|
+
transitionProperty: "background-color",
|
|
356
|
+
transitionDuration: i.durationShort.var
|
|
357
|
+
},
|
|
358
|
+
".range-input:focus::-webkit-slider-thumb": {
|
|
359
|
+
backgroundColor: i.colorActive.var
|
|
360
|
+
},
|
|
361
|
+
".range-input::-webkit-slider-runnable-track": {
|
|
362
|
+
"-webkit-appearance": "none",
|
|
363
|
+
"box-shadow": "none",
|
|
364
|
+
border: "none",
|
|
365
|
+
background: "transparent"
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
let ce = class extends ee {
|
|
369
|
+
constructor(...t) {
|
|
370
|
+
super(...t), this.addStylesheet(ct), this.appendContent(
|
|
371
|
+
N({
|
|
372
|
+
class: "range-input",
|
|
373
|
+
attributes: {
|
|
374
|
+
type: "range",
|
|
375
|
+
min: this.min,
|
|
376
|
+
max: this.max,
|
|
377
|
+
step: this.step,
|
|
378
|
+
value: this.firstStore
|
|
379
|
+
},
|
|
380
|
+
events: {
|
|
381
|
+
input: (e) => {
|
|
382
|
+
this.updateStores(
|
|
383
|
+
parseFloat(e.currentTarget.value)
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
})
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
ce = ht([
|
|
392
|
+
p("e-tweaker-range-manager")
|
|
393
|
+
], ce);
|
|
394
|
+
var dt = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, ut = (t, e, r, s) => {
|
|
395
|
+
for (var a = s > 1 ? void 0 : s ? pt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
396
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
397
|
+
return s && a && dt(e, r, a), a;
|
|
398
|
+
};
|
|
399
|
+
const vt = f({
|
|
400
|
+
"e-select": {
|
|
401
|
+
width: "100%",
|
|
402
|
+
"--arrow-color": i.colorLight.var
|
|
403
|
+
},
|
|
404
|
+
"e-select-head": {
|
|
405
|
+
width: "100%",
|
|
406
|
+
display: "flex",
|
|
407
|
+
alignItems: "center",
|
|
408
|
+
justifyContent: "space-between"
|
|
409
|
+
},
|
|
410
|
+
"e-select-option": {
|
|
411
|
+
transitionDuration: i.durationShort.var,
|
|
412
|
+
transitionProperty: "color"
|
|
413
|
+
},
|
|
414
|
+
"e-select-option:hover": {
|
|
415
|
+
color: i.colorActive.var
|
|
416
|
+
},
|
|
417
|
+
svg: {
|
|
418
|
+
width: "16px",
|
|
419
|
+
height: "16px",
|
|
420
|
+
fill: i.colorLight.var,
|
|
421
|
+
transitionProperty: "transform",
|
|
422
|
+
transitionDuration: i.durationShort.var
|
|
423
|
+
},
|
|
424
|
+
".opened svg": {
|
|
425
|
+
transform: "scaleY(-1)"
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
let de = class extends H {
|
|
429
|
+
constructor(...t) {
|
|
430
|
+
var r, s;
|
|
431
|
+
super(...t), this.openShadow(vt);
|
|
432
|
+
const e = ((s = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
|
|
433
|
+
m(this, {
|
|
434
|
+
shadowChildren: re("e-select", {
|
|
435
|
+
attributes: {
|
|
436
|
+
value: this.firstStore
|
|
437
|
+
},
|
|
438
|
+
events: {
|
|
439
|
+
change: (a) => {
|
|
440
|
+
this.updateStores(a.currentTarget.value);
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
children: [
|
|
444
|
+
re("e-select-head", {
|
|
445
|
+
children: [
|
|
446
|
+
Me({
|
|
447
|
+
attributes: {
|
|
448
|
+
"data-value-holder": ""
|
|
449
|
+
}
|
|
450
|
+
})
|
|
451
|
+
]
|
|
452
|
+
}),
|
|
453
|
+
...e.map(
|
|
454
|
+
(a, o) => re("e-select-option", {
|
|
455
|
+
children: a,
|
|
456
|
+
attributes: {
|
|
457
|
+
default: o === 0 ? !0 : null
|
|
458
|
+
}
|
|
459
|
+
})
|
|
460
|
+
)
|
|
461
|
+
]
|
|
462
|
+
})
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
de = ut([
|
|
467
|
+
p("e-tweaker-select-manager")
|
|
468
|
+
], de);
|
|
469
|
+
const gt = {
|
|
470
|
+
boolean: oe,
|
|
471
|
+
color: le,
|
|
472
|
+
link: he,
|
|
473
|
+
number: ee,
|
|
474
|
+
range: ce,
|
|
475
|
+
select: de,
|
|
476
|
+
string: j
|
|
477
|
+
};
|
|
478
|
+
var ft = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, mt = (t, e, r, s) => {
|
|
479
|
+
for (var a = s > 1 ? void 0 : s ? wt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
480
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
481
|
+
return s && a && ft(e, r, a), a;
|
|
482
|
+
}, ye = (t, e, r) => {
|
|
483
|
+
if (!e.has(t))
|
|
484
|
+
throw TypeError("Cannot " + r);
|
|
485
|
+
}, h = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
|
|
486
|
+
if (e.has(t))
|
|
487
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
488
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
489
|
+
}, k = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), u, R, L, F, A, V, Y;
|
|
490
|
+
const bt = f({
|
|
491
|
+
":host": {
|
|
492
|
+
display: "grid",
|
|
493
|
+
gridAutoFlow: "column",
|
|
494
|
+
gridTemplateColumns: "0.3fr 1fr",
|
|
495
|
+
alignItems: "center",
|
|
496
|
+
color: i.colorLight.var,
|
|
497
|
+
gap: i.gapMedium.var
|
|
498
|
+
},
|
|
499
|
+
":host(.disabled)": {
|
|
500
|
+
pointerEvents: "none",
|
|
501
|
+
opacity: 0.5
|
|
502
|
+
},
|
|
503
|
+
".head": {
|
|
504
|
+
fontSize: i.fontSizeMedium.var,
|
|
505
|
+
display: "flex",
|
|
506
|
+
alignItems: "center",
|
|
507
|
+
gap: i.gapExtraSmall.var
|
|
508
|
+
},
|
|
509
|
+
".head-buttons": {
|
|
510
|
+
display: "flex"
|
|
511
|
+
},
|
|
512
|
+
".head-button": {
|
|
513
|
+
width: "14px",
|
|
514
|
+
height: "14px",
|
|
515
|
+
padding: "0",
|
|
516
|
+
margin: "0",
|
|
517
|
+
border: "none",
|
|
518
|
+
background: "none",
|
|
519
|
+
fill: i.colorLight.var,
|
|
520
|
+
transitionDuration: i.durationShort.var,
|
|
521
|
+
transitionProperty: "fill, opacity",
|
|
522
|
+
opacity: "0"
|
|
523
|
+
},
|
|
524
|
+
":host(:hover) .head-button": {
|
|
525
|
+
opacity: "1"
|
|
526
|
+
},
|
|
527
|
+
".head-button:hover": {
|
|
528
|
+
fill: i.colorActive.var
|
|
529
|
+
},
|
|
530
|
+
".head-button svg": {
|
|
531
|
+
width: "100%",
|
|
532
|
+
height: "100%"
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
let te = class extends ge {
|
|
536
|
+
constructor(t) {
|
|
537
|
+
var r, s, a, o;
|
|
538
|
+
super(), C(this, u, []), C(this, R, void 0), C(this, L, void 0), C(this, F, !1), C(this, A, void 0), C(this, V, () => {
|
|
539
|
+
$.current.find((n) => h(this, u).includes(n)) || this.remove();
|
|
540
|
+
}), C(this, Y, (n) => {
|
|
541
|
+
h(this, F) && ((n.metaKey || n.ctrlKey) && n.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (n.metaKey || n.ctrlKey) && n.code === "KeyR" && (h(this, u).forEach((b) => {
|
|
542
|
+
b.reset();
|
|
543
|
+
}), n.preventDefault()));
|
|
544
|
+
}), k(this, u, [t.store]), k(this, R, t.store.passport.name), k(this, L, h(this, R).split(".").slice(-1).toString());
|
|
545
|
+
const e = ((s = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
|
|
546
|
+
k(this, A, new gt[e](h(this, u)[0])), this.openShadow(bt), m(this, {
|
|
547
|
+
class: {
|
|
548
|
+
disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
|
|
549
|
+
},
|
|
550
|
+
events: {
|
|
551
|
+
pointerleave: () => {
|
|
552
|
+
k(this, F, !1);
|
|
553
|
+
},
|
|
554
|
+
pointerenter: () => {
|
|
555
|
+
k(this, F, !0);
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
shadowChildren: [
|
|
559
|
+
w({
|
|
560
|
+
class: "head",
|
|
561
|
+
children: [
|
|
562
|
+
w({ class: "name", children: h(this, L) + ":" }),
|
|
563
|
+
w({
|
|
564
|
+
class: "head-buttons",
|
|
565
|
+
children: [
|
|
566
|
+
I({
|
|
567
|
+
class: "head-button",
|
|
568
|
+
children: _e,
|
|
569
|
+
events: {
|
|
570
|
+
click: () => {
|
|
571
|
+
navigator.clipboard.writeText(h(this, u)[0].current);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}),
|
|
575
|
+
I({
|
|
576
|
+
class: "head-button",
|
|
577
|
+
children: be,
|
|
578
|
+
events: {
|
|
579
|
+
click: () => {
|
|
580
|
+
h(this, u).forEach((n) => {
|
|
581
|
+
n.reset();
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
})
|
|
586
|
+
]
|
|
587
|
+
})
|
|
588
|
+
]
|
|
589
|
+
}),
|
|
590
|
+
h(this, A)
|
|
591
|
+
]
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
get key() {
|
|
595
|
+
return h(this, R);
|
|
596
|
+
}
|
|
597
|
+
get name() {
|
|
598
|
+
return h(this, L);
|
|
599
|
+
}
|
|
600
|
+
get stores() {
|
|
601
|
+
return h(this, u);
|
|
602
|
+
}
|
|
603
|
+
addStore(t) {
|
|
604
|
+
h(this, A).addStore(t);
|
|
605
|
+
}
|
|
606
|
+
connectedCallback() {
|
|
607
|
+
$.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Le(this);
|
|
608
|
+
}
|
|
609
|
+
disconnectedCallback() {
|
|
610
|
+
$.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
u = /* @__PURE__ */ new WeakMap();
|
|
614
|
+
R = /* @__PURE__ */ new WeakMap();
|
|
615
|
+
L = /* @__PURE__ */ new WeakMap();
|
|
616
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
617
|
+
A = /* @__PURE__ */ new WeakMap();
|
|
618
|
+
V = /* @__PURE__ */ new WeakMap();
|
|
619
|
+
Y = /* @__PURE__ */ new WeakMap();
|
|
620
|
+
te = mt([
|
|
621
|
+
p("e-tweaker-field")
|
|
622
|
+
], te);
|
|
623
|
+
var _t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yt = (t, e, r, s) => {
|
|
624
|
+
for (var a = s > 1 ? void 0 : s ? St(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
625
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
626
|
+
return s && a && _t(e, r, a), a;
|
|
627
|
+
}, Ce = (t, e, r) => {
|
|
628
|
+
if (!e.has(t))
|
|
629
|
+
throw TypeError("Cannot " + r);
|
|
630
|
+
}, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
|
|
631
|
+
if (e.has(t))
|
|
632
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
633
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
634
|
+
}, ne = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, q, c, B, Q, pe;
|
|
635
|
+
const Ct = f({
|
|
636
|
+
".wrapper": {
|
|
637
|
+
boxSizing: "border-box",
|
|
638
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
639
|
+
borderRadius: i.borderRadius.var
|
|
640
|
+
},
|
|
641
|
+
".head": {
|
|
642
|
+
boxSizing: "border-box",
|
|
643
|
+
width: "100%",
|
|
644
|
+
height: i.tweakerFolderHeight.var,
|
|
645
|
+
paddingLeft: i.gapMedium.var,
|
|
646
|
+
paddingRight: i.gapMedium.var,
|
|
647
|
+
display: "flex",
|
|
648
|
+
alignItems: "center",
|
|
649
|
+
justifyContent: "space-between",
|
|
650
|
+
backgroundColor: i.colorDarkAux.var,
|
|
651
|
+
borderRadius: i.borderRadius.var
|
|
652
|
+
},
|
|
653
|
+
".name": {
|
|
654
|
+
fontSize: i.fontSizeLarge.var,
|
|
655
|
+
color: i.colorLight.var
|
|
656
|
+
},
|
|
657
|
+
".body": {
|
|
658
|
+
transitionProperty: "height",
|
|
659
|
+
transitionDuration: i.durationShort.var,
|
|
660
|
+
overflow: "hidden",
|
|
661
|
+
height: "0px"
|
|
662
|
+
},
|
|
663
|
+
".body-content": {
|
|
664
|
+
boxSizing: "border-box",
|
|
665
|
+
padding: i.gapLarge.var,
|
|
666
|
+
display: "grid",
|
|
667
|
+
gap: i.gapMedium.var
|
|
668
|
+
},
|
|
669
|
+
".arrow": {
|
|
670
|
+
width: "20px",
|
|
671
|
+
height: "20px",
|
|
672
|
+
fill: i.colorLight.var,
|
|
673
|
+
transition: `transform ${i.durationShort.var}`
|
|
674
|
+
},
|
|
675
|
+
".opened .arrow": {
|
|
676
|
+
transform: "scaleY(-1)"
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
let z = class extends We {
|
|
680
|
+
constructor(t) {
|
|
681
|
+
super(), x(this, v, void 0), x(this, q, new ie(null)), x(this, c, new ie([])), x(this, B, void 0), x(this, Q, null), x(this, pe, (e) => {
|
|
682
|
+
let r = [], s = [];
|
|
683
|
+
e.forEach((a) => {
|
|
684
|
+
r = [...r, ...a.removedNodes], s = [...s, ...a.addedNodes];
|
|
685
|
+
}), l(this, c).current = l(this, c).current.filter(
|
|
686
|
+
(a) => !r.includes(a)
|
|
687
|
+
), l(this, v) && !l(this, c).current.length && !s.length && this.remove();
|
|
688
|
+
}), this.openShadow(Ct), ne(this, v, t.key), ne(this, B, new MutationObserver(l(this, pe))), m(this, {
|
|
689
|
+
events: {
|
|
690
|
+
"e-accordion-item-toggle": (e) => {
|
|
691
|
+
e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
shadowChildren: [
|
|
695
|
+
w({
|
|
696
|
+
class: "wrapper",
|
|
697
|
+
children: [
|
|
698
|
+
w({
|
|
699
|
+
class: "head",
|
|
700
|
+
children: [
|
|
701
|
+
l(this, v) ? w({
|
|
702
|
+
class: "name",
|
|
703
|
+
children: [l(this, v).split(".").slice(-1).toString()]
|
|
704
|
+
}) : null,
|
|
705
|
+
l(this, q),
|
|
706
|
+
m(Re, {
|
|
707
|
+
class: "arrow"
|
|
708
|
+
})
|
|
709
|
+
]
|
|
710
|
+
}),
|
|
711
|
+
w({
|
|
712
|
+
class: "body",
|
|
713
|
+
children: w({
|
|
714
|
+
class: "body-content",
|
|
715
|
+
children: l(this, c),
|
|
716
|
+
ref: (e) => ne(this, Q, e.firstElementChild)
|
|
717
|
+
})
|
|
718
|
+
})
|
|
719
|
+
]
|
|
720
|
+
})
|
|
721
|
+
]
|
|
722
|
+
}), t != null && t.storeBox && this.handleStore(t.storeBox);
|
|
723
|
+
}
|
|
724
|
+
get key() {
|
|
725
|
+
return l(this, v);
|
|
726
|
+
}
|
|
727
|
+
get head() {
|
|
728
|
+
return l(this, q);
|
|
729
|
+
}
|
|
730
|
+
get content() {
|
|
731
|
+
return l(this, c);
|
|
732
|
+
}
|
|
733
|
+
connectedCallback() {
|
|
734
|
+
super.connectedCallback(), setTimeout(() => {
|
|
735
|
+
P.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
|
|
736
|
+
}, 50), l(this, B).observe(l(this, Q), {
|
|
737
|
+
childList: !0
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
handleStore(t) {
|
|
741
|
+
if (t.remainingFolders.length) {
|
|
742
|
+
const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((o) => o.key === s);
|
|
743
|
+
a instanceof z ? a.handleStore({
|
|
744
|
+
store: t.store,
|
|
745
|
+
remainingFolders: t.remainingFolders.slice(1)
|
|
746
|
+
}) : l(this, c).current = [
|
|
747
|
+
...l(this, c).current,
|
|
748
|
+
new z({
|
|
749
|
+
key: s,
|
|
750
|
+
storeBox: {
|
|
751
|
+
store: t.store,
|
|
752
|
+
remainingFolders: t.remainingFolders.slice(1)
|
|
753
|
+
}
|
|
754
|
+
})
|
|
755
|
+
];
|
|
756
|
+
} else {
|
|
757
|
+
const e = l(this, c).current.find(
|
|
758
|
+
(r) => r.key === t.store.passport.name
|
|
759
|
+
);
|
|
760
|
+
e instanceof te ? e.addStore(t.store) : l(this, c).current = [
|
|
761
|
+
...l(this, c).current,
|
|
762
|
+
new te({
|
|
763
|
+
store: t.store
|
|
764
|
+
})
|
|
765
|
+
];
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
v = /* @__PURE__ */ new WeakMap();
|
|
770
|
+
q = /* @__PURE__ */ new WeakMap();
|
|
771
|
+
c = /* @__PURE__ */ new WeakMap();
|
|
772
|
+
B = /* @__PURE__ */ new WeakMap();
|
|
773
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
774
|
+
pe = /* @__PURE__ */ new WeakMap();
|
|
775
|
+
z = yt([
|
|
776
|
+
p("e-tweaker-folder")
|
|
777
|
+
], z);
|
|
778
|
+
var kt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, $t = (t, e, r, s) => {
|
|
779
|
+
for (var a = s > 1 ? void 0 : s ? xt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
780
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
781
|
+
return s && a && kt(e, r, a), a;
|
|
782
|
+
}, Pt = (t, e, r) => {
|
|
783
|
+
if (!e.has(t))
|
|
784
|
+
throw TypeError("Cannot " + r);
|
|
785
|
+
}, we = (t, e, r) => (Pt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ot = (t, e, r) => {
|
|
786
|
+
if (e.has(t))
|
|
787
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
788
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
789
|
+
}, U;
|
|
790
|
+
const Mt = f({
|
|
791
|
+
":host": {
|
|
792
|
+
position: "absolute",
|
|
793
|
+
top: i.tweakerOffset.var,
|
|
794
|
+
right: i.tweakerOffset.var,
|
|
795
|
+
width: i.tweakerWidth.var,
|
|
796
|
+
backgroundColor: i.colorDark.var,
|
|
797
|
+
borderRadius: i.borderRadius.var,
|
|
798
|
+
transition: "opacity 0.2s"
|
|
799
|
+
},
|
|
800
|
+
":host(:hover)": {
|
|
801
|
+
opacity: "1 !important"
|
|
802
|
+
},
|
|
803
|
+
".tweaker-buttons": {
|
|
804
|
+
display: "flex",
|
|
805
|
+
alignItems: "center",
|
|
806
|
+
gap: i.gapExtraSmall.var
|
|
807
|
+
},
|
|
808
|
+
".tweaker-button": {
|
|
809
|
+
width: "18px",
|
|
810
|
+
height: "18px",
|
|
811
|
+
padding: "0",
|
|
812
|
+
margin: "0",
|
|
813
|
+
background: "none",
|
|
814
|
+
border: "none",
|
|
815
|
+
fill: i.colorLight.var,
|
|
816
|
+
transitionProperty: "fill"
|
|
817
|
+
},
|
|
818
|
+
".tweaker-button:hover": {
|
|
819
|
+
fill: i.colorActive.var
|
|
820
|
+
},
|
|
821
|
+
".tweaker-button svg": {
|
|
822
|
+
width: "100%",
|
|
823
|
+
height: "100%"
|
|
824
|
+
},
|
|
825
|
+
":host .body-content": {
|
|
826
|
+
maxHeight: `calc(
|
|
827
|
+
100dvh -
|
|
828
|
+
(
|
|
829
|
+
${i.tweakerOffset.var} * 2 +
|
|
830
|
+
${i.tweakerFolderHeight.var}
|
|
831
|
+
)
|
|
832
|
+
)`,
|
|
833
|
+
overflow: "hidden auto",
|
|
834
|
+
"-ms-overflow-style": "none",
|
|
835
|
+
"scrollbar-width": "none"
|
|
836
|
+
},
|
|
837
|
+
":host .body-content::-webkit-scrollbar": {
|
|
838
|
+
display: "none"
|
|
839
|
+
},
|
|
840
|
+
[`@media ${De["<=mobile"]}`]: {
|
|
841
|
+
":host": {
|
|
842
|
+
position: "absolute",
|
|
843
|
+
top: "0",
|
|
844
|
+
right: "0",
|
|
845
|
+
width: "100%",
|
|
846
|
+
borderTopLeftRadius: "0",
|
|
847
|
+
borderTopRightRadius: "0"
|
|
848
|
+
},
|
|
849
|
+
":host .body-content": {
|
|
850
|
+
maxHeight: `calc(
|
|
851
|
+
100dvh -
|
|
852
|
+
${i.tweakerFolderHeight.var}
|
|
853
|
+
)`
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
let ue = class extends z {
|
|
858
|
+
constructor() {
|
|
859
|
+
super({
|
|
860
|
+
key: ""
|
|
861
|
+
}), Ot(this, U, Pe(() => {
|
|
862
|
+
$.current.forEach((t) => {
|
|
863
|
+
if (!(t instanceof Te)) {
|
|
864
|
+
const e = t.passport.name.split(".");
|
|
865
|
+
this.handleStore({
|
|
866
|
+
store: t,
|
|
867
|
+
remainingFolders: e.length > 1 ? e.slice(0, -1) : []
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
}, 10)), this.addStylesheet(Mt), this.head.current = [
|
|
872
|
+
w({
|
|
873
|
+
class: "tweaker-buttons",
|
|
874
|
+
events: {
|
|
875
|
+
click: (t) => {
|
|
876
|
+
t.stopPropagation();
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
children: [
|
|
880
|
+
I({
|
|
881
|
+
class: "tweaker-button",
|
|
882
|
+
children: be,
|
|
883
|
+
events: {
|
|
884
|
+
click: () => {
|
|
885
|
+
S.resetState();
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}),
|
|
889
|
+
I({
|
|
890
|
+
class: ["tweaker-button"],
|
|
891
|
+
children: [_e],
|
|
892
|
+
events: {
|
|
893
|
+
click: () => {
|
|
894
|
+
navigator.clipboard.writeText(
|
|
895
|
+
JSON.stringify(S.getState())
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}),
|
|
900
|
+
I({
|
|
901
|
+
class: "tweaker-button",
|
|
902
|
+
children: Ae,
|
|
903
|
+
events: {
|
|
904
|
+
click: () => {
|
|
905
|
+
$e(
|
|
906
|
+
S.projectName,
|
|
907
|
+
S.getState()
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}),
|
|
912
|
+
Ee({
|
|
913
|
+
class: "tweaker-button",
|
|
914
|
+
children: [
|
|
915
|
+
Ie,
|
|
916
|
+
N({
|
|
917
|
+
attributes: {
|
|
918
|
+
type: "file"
|
|
919
|
+
},
|
|
920
|
+
style: {
|
|
921
|
+
display: "none"
|
|
922
|
+
},
|
|
923
|
+
events: {
|
|
924
|
+
change: (t) => {
|
|
925
|
+
const e = t.currentTarget;
|
|
926
|
+
e.onchange = () => {
|
|
927
|
+
var s;
|
|
928
|
+
const r = (s = e.files) == null ? void 0 : s[0];
|
|
929
|
+
if (r) {
|
|
930
|
+
const a = new FileReader();
|
|
931
|
+
a.onload = (o) => {
|
|
932
|
+
var b, Z;
|
|
933
|
+
const n = (Z = (b = o.target) == null ? void 0 : b.result) == null ? void 0 : Z.toString();
|
|
934
|
+
n && S.loadState(n);
|
|
935
|
+
}, a.readAsText(r);
|
|
936
|
+
}
|
|
937
|
+
e.onchange = null;
|
|
938
|
+
}, e.click();
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
})
|
|
942
|
+
],
|
|
943
|
+
events: {
|
|
944
|
+
click: () => {
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
})
|
|
948
|
+
]
|
|
949
|
+
})
|
|
950
|
+
], this.addEventListener("e-accordion-item-toggle", (t) => {
|
|
951
|
+
t.detail.opened ? this.style.opacity = "1" : this.style.opacity = "0.1";
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
connectedCallback() {
|
|
955
|
+
super.connectedCallback(), $.subscribe(we(this, U));
|
|
956
|
+
}
|
|
957
|
+
disconnectedCallback() {
|
|
958
|
+
super.disconnectedCallback(), $.unsubscribe(we(this, U));
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
U = /* @__PURE__ */ new WeakMap();
|
|
962
|
+
ue = $t([
|
|
963
|
+
p("e-tweaker")
|
|
964
|
+
], ue);
|
|
965
|
+
var Et = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, Dt = (t, e, r, s) => {
|
|
966
|
+
for (var a = s > 1 ? void 0 : s ? Tt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
|
|
967
|
+
(n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
|
|
968
|
+
return s && a && Et(e, r, a), a;
|
|
969
|
+
}, Wt = (t, e, r) => {
|
|
970
|
+
if (!e.has(t))
|
|
971
|
+
throw TypeError("Cannot " + r);
|
|
972
|
+
}, me = (t, e, r) => (Wt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Rt = (t, e, r) => {
|
|
973
|
+
if (e.has(t))
|
|
974
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
975
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
976
|
+
}, X;
|
|
977
|
+
const Lt = f({
|
|
978
|
+
":host": {
|
|
979
|
+
fontFamily: "sans-serif"
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
let ve = class extends ge {
|
|
983
|
+
constructor() {
|
|
984
|
+
super(), Rt(this, X, () => {
|
|
985
|
+
P.save();
|
|
986
|
+
}), this.openShadow(Lt), P.load(), m(this, {
|
|
987
|
+
shadowChildren: [new ue()]
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
connectedCallback() {
|
|
991
|
+
window.addEventListener("beforeunload", me(this, X));
|
|
992
|
+
}
|
|
993
|
+
disconnectedCallback() {
|
|
994
|
+
window.removeEventListener("beforeunload", me(this, X)), P.save();
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
X = /* @__PURE__ */ new WeakMap();
|
|
998
|
+
ve = Dt([
|
|
999
|
+
p("e-studio")
|
|
1000
|
+
], ve);
|
|
1001
|
+
xe && document.body.appendChild(new ve());
|
|
1002
|
+
export {
|
|
1003
|
+
ve as StudioElement
|
|
1004
|
+
};
|