x-runtime-lib 0.8.56 → 0.8.57
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/dist/index.js +88 -124
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, createElementBlock as
|
|
1
|
+
import { defineComponent as V, createElementBlock as Q, renderSlot as B, unref as n, openBlock as h, createElementVNode as q, computed as x, normalizeStyle as Z, ref as ie, watchEffect as me, watch as oe, onBeforeMount as Xo, onUnmounted as Xe, createBlock as _, withCtx as k, createCommentVNode as ee, useTemplateRef as oo, onMounted as ro, nextTick as so, useAttrs as Yo, h as se, resolveComponent as z, createVNode as R, isRef as X, createSlots as Wn, renderList as qo, useId as lo, withModifiers as Jo, normalizeClass as Zo, toDisplayString as Qo, inject as ae, provide as ce, readonly as Rn } from "vue";
|
|
2
2
|
import { globalObjects as ge, waitUtil as ao, useViewStack as co, eventBus as uo, messageInfo as er, messageSuccess as tr, messageWarning as po, messageError as mo, createAxios as nr, openConfirmDlg as ir, openPromptDlg as or } from "x-essential-lib";
|
|
3
3
|
import { CameraHelper as yo, DirectionalLightHelper as rr, PointLightHelper as sr, SpotLightHelper as lr } from "three";
|
|
4
4
|
import { c as W, i as le, q as Re, u as ar, r as fo, e as bo, a as cr, b as ur, d as pr, f as mr, g as dr, h as yr, j as fr, k as br, l as ho, X as hr, Y as gr, K as xr, m as vr, n as kr, o as _r, I as wr } from "./vendor.dd29fg1n.js";
|
|
@@ -90,7 +90,7 @@ function Sr(t, e = 2) {
|
|
|
90
90
|
`).map((r) => r.trim() === "" ? r : i + r).join(`
|
|
91
91
|
`);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function te(t) {
|
|
94
94
|
return t === "runtime" || t === "preview";
|
|
95
95
|
}
|
|
96
96
|
const Ou = ["string", "number", "boolean", "array", "object"];
|
|
@@ -204,7 +204,7 @@ const ze = {}, w = (t) => {
|
|
|
204
204
|
},
|
|
205
205
|
setup(t) {
|
|
206
206
|
const e = H();
|
|
207
|
-
return (i, o) => n(e) === "editor" ? (h(),
|
|
207
|
+
return (i, o) => n(e) === "editor" ? (h(), Q("TresMesh", {
|
|
208
208
|
key: 0,
|
|
209
209
|
position: t.position,
|
|
210
210
|
rotation: t.rotation,
|
|
@@ -236,13 +236,13 @@ const ze = {}, w = (t) => {
|
|
|
236
236
|
pointerEvents: "auto",
|
|
237
237
|
userSelect: "none"
|
|
238
238
|
}));
|
|
239
|
-
return (s, r) => n(e) === "editor" ? (h(),
|
|
239
|
+
return (s, r) => n(e) === "editor" ? (h(), Q("div", {
|
|
240
240
|
key: 0,
|
|
241
|
-
style:
|
|
241
|
+
style: Z(i.value)
|
|
242
242
|
}, [
|
|
243
243
|
B(s.$slots, "default"),
|
|
244
244
|
q("div", {
|
|
245
|
-
style:
|
|
245
|
+
style: Z(o.value)
|
|
246
246
|
}, null, 4)
|
|
247
247
|
], 4)) : B(s.$slots, "default", { key: 1 });
|
|
248
248
|
}
|
|
@@ -474,7 +474,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
474
474
|
n(i) === "editor" ? (h(), _(n(Re), {
|
|
475
475
|
key: 0,
|
|
476
476
|
type: n(yo)
|
|
477
|
-
}, null, 8, ["type"])) :
|
|
477
|
+
}, null, 8, ["type"])) : ee("", !0),
|
|
478
478
|
B(f.$slots, "default")
|
|
479
479
|
], 8, Wr)
|
|
480
480
|
]),
|
|
@@ -507,7 +507,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
507
507
|
n(i) === "editor" ? (h(), _(n(Re), {
|
|
508
508
|
key: 0,
|
|
509
509
|
type: n(yo)
|
|
510
|
-
}, null, 8, ["type"])) :
|
|
510
|
+
}, null, 8, ["type"])) : ee("", !0),
|
|
511
511
|
B(u.$slots, "default")
|
|
512
512
|
], 8, Mr)
|
|
513
513
|
]),
|
|
@@ -531,7 +531,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
531
531
|
"settings",
|
|
532
532
|
"widthSegements"
|
|
533
533
|
]);
|
|
534
|
-
return (m, d) => (h(),
|
|
534
|
+
return (m, d) => (h(), Q("TresBoxGeometry", {
|
|
535
535
|
args: [
|
|
536
536
|
n(a),
|
|
537
537
|
n(s),
|
|
@@ -573,7 +573,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
573
573
|
"settings",
|
|
574
574
|
"widthSegments"
|
|
575
575
|
]);
|
|
576
|
-
return (d, u) => (h(),
|
|
576
|
+
return (d, u) => (h(), Q("TresSphereGeometry", {
|
|
577
577
|
args: [
|
|
578
578
|
n(r),
|
|
579
579
|
n(m),
|
|
@@ -642,7 +642,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
642
642
|
n(i) === "editor" ? (h(), _(n(Re), {
|
|
643
643
|
key: 0,
|
|
644
644
|
type: n(rr)
|
|
645
|
-
}, null, 8, ["type"])) :
|
|
645
|
+
}, null, 8, ["type"])) : ee("", !0),
|
|
646
646
|
B(d.$slots, "default")
|
|
647
647
|
], 8, Kr)
|
|
648
648
|
]),
|
|
@@ -681,7 +681,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
681
681
|
n(i) === "editor" ? (h(), _(n(Re), {
|
|
682
682
|
key: 0,
|
|
683
683
|
type: n(sr)
|
|
684
|
-
}, null, 8, ["type"])) :
|
|
684
|
+
}, null, 8, ["type"])) : ee("", !0),
|
|
685
685
|
B(p.$slots, "default")
|
|
686
686
|
], 8, Xr)
|
|
687
687
|
]),
|
|
@@ -725,7 +725,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
725
725
|
n(i) === "editor" ? (h(), _(n(Re), {
|
|
726
726
|
key: 0,
|
|
727
727
|
type: n(lr)
|
|
728
|
-
}, null, 8, ["type"])) :
|
|
728
|
+
}, null, 8, ["type"])) : ee("", !0),
|
|
729
729
|
B(b.$slots, "default")
|
|
730
730
|
], 8, qr)
|
|
731
731
|
]),
|
|
@@ -734,7 +734,7 @@ const Wr = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
734
734
|
}
|
|
735
735
|
}), Zr = {};
|
|
736
736
|
function Qr(t, e) {
|
|
737
|
-
return h(),
|
|
737
|
+
return h(), Q("TresMeshBasicMaterial");
|
|
738
738
|
}
|
|
739
739
|
const es = /* @__PURE__ */ Se(Zr, [["render", Qr]]), ts = ["position", "rotation", "scale"], ns = /* @__PURE__ */ V({
|
|
740
740
|
__name: "index",
|
|
@@ -769,7 +769,7 @@ const es = /* @__PURE__ */ Se(Zr, [["render", Qr]]), ts = ["position", "rotation
|
|
|
769
769
|
},
|
|
770
770
|
setup(t) {
|
|
771
771
|
const e = t, { position: i, rotation: o, scale: s } = de(e);
|
|
772
|
-
return (r, a) => (h(),
|
|
772
|
+
return (r, a) => (h(), Q("TresMesh", {
|
|
773
773
|
position: n(i),
|
|
774
774
|
rotation: n(o),
|
|
775
775
|
scale: n(s)
|
|
@@ -902,7 +902,7 @@ const pl = /* @__PURE__ */ V({
|
|
|
902
902
|
default: k(() => [
|
|
903
903
|
q("div", {
|
|
904
904
|
ref: "chart",
|
|
905
|
-
style:
|
|
905
|
+
style: Z(S.value)
|
|
906
906
|
}, null, 4)
|
|
907
907
|
]),
|
|
908
908
|
_: 1
|
|
@@ -960,7 +960,7 @@ const pl = /* @__PURE__ */ V({
|
|
|
960
960
|
default: k(() => [
|
|
961
961
|
q("div", {
|
|
962
962
|
ref: "chart",
|
|
963
|
-
style:
|
|
963
|
+
style: Z(S.value)
|
|
964
964
|
}, null, 4)
|
|
965
965
|
]),
|
|
966
966
|
_: 1
|
|
@@ -975,7 +975,7 @@ const pl = /* @__PURE__ */ V({
|
|
|
975
975
|
},
|
|
976
976
|
setup(t) {
|
|
977
977
|
const e = t, i = ie(), o = be();
|
|
978
|
-
return ei(i, "multipleRef", e.node.basic.id, "", o), Qn(e.refContext.compId, i), (s, r) => (h(),
|
|
978
|
+
return ei(i, "multipleRef", e.node.basic.id, "", o), Qn(e.refContext.compId, i), (s, r) => (h(), Q("div"));
|
|
979
979
|
}
|
|
980
980
|
}), yl = /* @__PURE__ */ V({
|
|
981
981
|
__name: "index",
|
|
@@ -1032,7 +1032,7 @@ const pl = /* @__PURE__ */ V({
|
|
|
1032
1032
|
const e = t, { property: i } = l(e, ["settings", "open"]);
|
|
1033
1033
|
return (o, s) => (h(), _(n(D), null, {
|
|
1034
1034
|
default: k(() => [
|
|
1035
|
-
n(i) ? B(o.$slots, "default", { key: 0 }) :
|
|
1035
|
+
n(i) ? B(o.$slots, "default", { key: 0 }) : ee("", !0)
|
|
1036
1036
|
]),
|
|
1037
1037
|
_: 3
|
|
1038
1038
|
}));
|
|
@@ -1132,9 +1132,9 @@ const pl = /* @__PURE__ */ V({
|
|
|
1132
1132
|
"settings",
|
|
1133
1133
|
"readonly"
|
|
1134
1134
|
]), { property: S } = l(e, ["settings", "ripple"]), { property: L } = l(e, ["settings", "size"]), { property: E } = l(e, ["settings", "stacked"]), { property: N } = l(e, ["settings", "text"]), { theme: j } = F(), { property: M } = l(e, ["settings", "variant"]), { property: C } = l(e, ["size", "width"]), G = (J) => {
|
|
1135
|
-
|
|
1135
|
+
te(i) && (o.setVariable("__pointerPosX__", J.clientX), o.setVariable("__pointerPosY__", J.clientY), o.callFunction(
|
|
1136
1136
|
"__triggerEventV1__",
|
|
1137
|
-
|
|
1137
|
+
ne("elementEvent", e.node.basic.id, "click")
|
|
1138
1138
|
));
|
|
1139
1139
|
};
|
|
1140
1140
|
return (J, re) => {
|
|
@@ -1422,7 +1422,7 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1422
1422
|
"hide-sliders": n(u),
|
|
1423
1423
|
landscape: n(p),
|
|
1424
1424
|
"show-swatches": n(f),
|
|
1425
|
-
style:
|
|
1425
|
+
style: Z(r.value),
|
|
1426
1426
|
theme: n(b)
|
|
1427
1427
|
}, null, 8, ["disabled", "hide-canvas", "hide-header", "hide-inputs", "hide-sliders", "landscape", "show-swatches", "style", "theme"])
|
|
1428
1428
|
]),
|
|
@@ -1486,7 +1486,7 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1486
1486
|
return (p, f) => (h(), _(n(D), { block: "" }, {
|
|
1487
1487
|
default: k(() => [
|
|
1488
1488
|
q("div", {
|
|
1489
|
-
style:
|
|
1489
|
+
style: Z(u.value)
|
|
1490
1490
|
}, [
|
|
1491
1491
|
B(p.$slots, "default")
|
|
1492
1492
|
], 4)
|
|
@@ -1586,10 +1586,10 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1586
1586
|
attach: "#dialogContainer"
|
|
1587
1587
|
}, {
|
|
1588
1588
|
activator: k(() => [
|
|
1589
|
-
n(i) === "editor" ? (h(),
|
|
1589
|
+
n(i) === "editor" ? (h(), Q("div", {
|
|
1590
1590
|
key: 0,
|
|
1591
1591
|
id: `__node__@${o.value}`
|
|
1592
|
-
}, null, 8, zl)) :
|
|
1592
|
+
}, null, 8, zl)) : ee("", !0)
|
|
1593
1593
|
]),
|
|
1594
1594
|
default: k(() => [
|
|
1595
1595
|
B(r.$slots, "default")
|
|
@@ -1666,8 +1666,8 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1666
1666
|
const b = {}, g = s.value.type;
|
|
1667
1667
|
return o === "page" ? g === "common" ? (r(b), a(b), c(b), m(b), p(b)) : console.assert(!1) : o === "comp" && g === "common" ? (r(b), a(b), c(b), m(b), p(b)) : console.assert(!1), b;
|
|
1668
1668
|
});
|
|
1669
|
-
return (b, g) => (h(),
|
|
1670
|
-
style:
|
|
1669
|
+
return (b, g) => (h(), Q("div", {
|
|
1670
|
+
style: Z(f.value)
|
|
1671
1671
|
}, [
|
|
1672
1672
|
B(b.$slots, "default")
|
|
1673
1673
|
], 4));
|
|
@@ -1683,8 +1683,8 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1683
1683
|
const m = {}, d = o.value.type;
|
|
1684
1684
|
return i === "page" ? d === "common" ? (s(m), m.flexGrow = r.value ? 1 : 0, m.flexShrink = a.value ? 1 : 0) : console.assert(!1) : i === "comp" && d === "common" ? (s(m), m.flexGrow = r.value ? 1 : 0, m.flexShrink = a.value ? 1 : 0) : console.assert(!1), m;
|
|
1685
1685
|
});
|
|
1686
|
-
return (m, d) => (h(),
|
|
1687
|
-
style:
|
|
1686
|
+
return (m, d) => (h(), Q("div", {
|
|
1687
|
+
style: Z(c.value)
|
|
1688
1688
|
}, [
|
|
1689
1689
|
B(m.$slots, "default")
|
|
1690
1690
|
], 4));
|
|
@@ -1706,9 +1706,9 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1706
1706
|
const I = {}, $ = s.value.type;
|
|
1707
1707
|
return o === "page" ? $ === "common" ? (u(I), p(I), f(I), b(I), d.value && (I.backgroundColor = d.value)) : console.assert(!1) : o === "comp" && $ === "common" ? (u(I), p(I), f(I), b(I), d.value && (I.backgroundColor = d.value)) : console.assert(!1), I;
|
|
1708
1708
|
}), v = () => {
|
|
1709
|
-
|
|
1709
|
+
te(i) && r.callFunction(
|
|
1710
1710
|
"__triggerEventV1__",
|
|
1711
|
-
|
|
1711
|
+
ne("elementEvent", e.node.basic.id, "submit")
|
|
1712
1712
|
);
|
|
1713
1713
|
};
|
|
1714
1714
|
return (I, $) => {
|
|
@@ -1717,7 +1717,7 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1717
1717
|
modelValue: n(a),
|
|
1718
1718
|
"onUpdate:modelValue": $[0] || ($[0] = (L) => X(a) ? a.value = L : null),
|
|
1719
1719
|
"fast-fail": n(c),
|
|
1720
|
-
style:
|
|
1720
|
+
style: Z(g.value),
|
|
1721
1721
|
onSubmit: Jo(v, ["prevent"])
|
|
1722
1722
|
}, {
|
|
1723
1723
|
default: k(() => [
|
|
@@ -1772,10 +1772,10 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1772
1772
|
target: a.value
|
|
1773
1773
|
}, {
|
|
1774
1774
|
activator: k(() => [
|
|
1775
|
-
n(i) === "editor" ? (h(),
|
|
1775
|
+
n(i) === "editor" ? (h(), Q("div", {
|
|
1776
1776
|
key: 0,
|
|
1777
1777
|
id: `__node__@${c.value}`
|
|
1778
|
-
}, null, 8, Ml)) :
|
|
1778
|
+
}, null, 8, Ml)) : ee("", !0)
|
|
1779
1779
|
]),
|
|
1780
1780
|
default: k(() => [
|
|
1781
1781
|
B(d.$slots, "default")
|
|
@@ -1892,7 +1892,7 @@ const vl = /* @__PURE__ */ Se(gl, [["render", xl]]), kl = /* @__PURE__ */ V({
|
|
|
1892
1892
|
"show-first-last-page": n(a),
|
|
1893
1893
|
size: n(c),
|
|
1894
1894
|
start: n(m),
|
|
1895
|
-
style:
|
|
1895
|
+
style: Z(b.value),
|
|
1896
1896
|
theme: n(d),
|
|
1897
1897
|
tile: n(u),
|
|
1898
1898
|
variant: n(f)
|
|
@@ -2395,7 +2395,7 @@ const ta = /* @__PURE__ */ Se(Ql, [["render", ea]]), na = /* @__PURE__ */ V({
|
|
|
2395
2395
|
return h(), _(n(D), null, {
|
|
2396
2396
|
default: k(() => [
|
|
2397
2397
|
R(d, {
|
|
2398
|
-
style:
|
|
2398
|
+
style: Z(a.value),
|
|
2399
2399
|
text: n(o),
|
|
2400
2400
|
theme: n(s),
|
|
2401
2401
|
value: n(r)
|
|
@@ -3349,19 +3349,19 @@ const ka = /* @__PURE__ */ V({
|
|
|
3349
3349
|
__name: "index",
|
|
3350
3350
|
setup(t) {
|
|
3351
3351
|
const e = H();
|
|
3352
|
-
return (i, o) => n(e) !== "editor" ? (h(), _(n(hr), { key: 0 })) :
|
|
3352
|
+
return (i, o) => n(e) !== "editor" ? (h(), _(n(hr), { key: 0 })) : ee("", !0);
|
|
3353
3353
|
}
|
|
3354
3354
|
}), _a = /* @__PURE__ */ V({
|
|
3355
3355
|
__name: "index",
|
|
3356
3356
|
setup(t) {
|
|
3357
3357
|
const e = H();
|
|
3358
|
-
return (i, o) => n(e) !== "editor" ? (h(), _(n(gr), { key: 0 })) :
|
|
3358
|
+
return (i, o) => n(e) !== "editor" ? (h(), _(n(gr), { key: 0 })) : ee("", !0);
|
|
3359
3359
|
}
|
|
3360
3360
|
}), wa = /* @__PURE__ */ V({
|
|
3361
3361
|
__name: "index",
|
|
3362
3362
|
setup(t) {
|
|
3363
3363
|
const e = H();
|
|
3364
|
-
return (i, o) => n(e) !== "editor" ? (h(), _(n(xr), { key: 0 })) :
|
|
3364
|
+
return (i, o) => n(e) !== "editor" ? (h(), _(n(xr), { key: 0 })) : ee("", !0);
|
|
3365
3365
|
}
|
|
3366
3366
|
}), Va = {
|
|
3367
3367
|
key: xt,
|
|
@@ -8334,10 +8334,10 @@ function Oo(t) {
|
|
|
8334
8334
|
methodKey: e[2]
|
|
8335
8335
|
};
|
|
8336
8336
|
}
|
|
8337
|
-
function
|
|
8337
|
+
function ne(t, e, i) {
|
|
8338
8338
|
return `${t}/${e}/${i}`;
|
|
8339
8339
|
}
|
|
8340
|
-
function
|
|
8340
|
+
function Vu(t) {
|
|
8341
8341
|
const e = t.split("/");
|
|
8342
8342
|
return e.length < 3 ? (console.assert(!1, "invalid event id"), {
|
|
8343
8343
|
kind: "elementEvent",
|
|
@@ -8360,7 +8360,7 @@ function Qn(t, e) {
|
|
|
8360
8360
|
o.value !== s.dataSeq && (o.value = s.dataSeq, e.value = W(s.data));
|
|
8361
8361
|
});
|
|
8362
8362
|
}
|
|
8363
|
-
function
|
|
8363
|
+
function $u(t) {
|
|
8364
8364
|
t.bindNativeFunction("__parseKeysV1__", (e) => {
|
|
8365
8365
|
const i = [], o = e.split(".");
|
|
8366
8366
|
for (let s = 0; s < o.length; s++) {
|
|
@@ -8414,15 +8414,15 @@ const Ko = nr({
|
|
|
8414
8414
|
}
|
|
8415
8415
|
});
|
|
8416
8416
|
window.API_URL && (Ko.defaults.baseURL = window.API_URL + "/computebase/");
|
|
8417
|
-
function
|
|
8417
|
+
function Iu(t) {
|
|
8418
8418
|
return Ko.post("callFunc", t);
|
|
8419
8419
|
}
|
|
8420
|
-
function
|
|
8420
|
+
function Su(t) {
|
|
8421
8421
|
t.bindAsyncFunction(
|
|
8422
8422
|
"__callFuncV1__",
|
|
8423
8423
|
async (e, i, o, s, r, a) => {
|
|
8424
8424
|
try {
|
|
8425
|
-
const c = JSON.stringify(o), { strOutputs: m } = await
|
|
8425
|
+
const c = JSON.stringify(o), { strOutputs: m } = await Iu({
|
|
8426
8426
|
spaceId: e,
|
|
8427
8427
|
id: i,
|
|
8428
8428
|
strInputs: c,
|
|
@@ -8435,25 +8435,26 @@ function Iu(t) {
|
|
|
8435
8435
|
}
|
|
8436
8436
|
);
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8439
|
-
t.
|
|
8440
|
-
"
|
|
8441
|
-
(e,
|
|
8442
|
-
t.
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
...i
|
|
8446
|
-
), t.parent.callFunction(
|
|
8447
|
-
"__triggerEventV1__",
|
|
8448
|
-
Z("referenceEvent", t.id, e),
|
|
8449
|
-
...i
|
|
8450
|
-
), t.parent.callFunction(
|
|
8451
|
-
"__triggerEventV1__",
|
|
8452
|
-
Z("multipleRefEvent", t.id, e),
|
|
8453
|
-
...i
|
|
8454
|
-
));
|
|
8438
|
+
function Cu(t) {
|
|
8439
|
+
t.bindAsyncFunction(
|
|
8440
|
+
"__onEventV1__",
|
|
8441
|
+
(e, i) => {
|
|
8442
|
+
t.eventBus.on(e, ({ params: o }) => {
|
|
8443
|
+
i(...t.nativeToPseudo(o)), t.run();
|
|
8444
|
+
});
|
|
8455
8445
|
}
|
|
8456
|
-
), t.bindNativeFunction(
|
|
8446
|
+
), t.bindNativeFunction("__triggerEventV1__", (e, ...i) => {
|
|
8447
|
+
const o = [...i];
|
|
8448
|
+
t.eventBus.emit(e, { params: o });
|
|
8449
|
+
const { kind: s, eventKey: r } = Vu(e);
|
|
8450
|
+
s === "customEvent" && (t.parent?.eventBus.emit(
|
|
8451
|
+
ne("referenceEvent", t.id, r),
|
|
8452
|
+
{ params: o }
|
|
8453
|
+
), t.parent?.eventBus.emit(
|
|
8454
|
+
ne("multipleRefEvent", t.id, r),
|
|
8455
|
+
{ params: o }
|
|
8456
|
+
));
|
|
8457
|
+
}), t.bindNativeFunction(
|
|
8457
8458
|
"__getPropertyV1__",
|
|
8458
8459
|
(e, i) => {
|
|
8459
8460
|
const { kind: o, nodeId: s, propertyKey: r } = no(e);
|
|
@@ -8552,10 +8553,10 @@ function Su(t) {
|
|
|
8552
8553
|
}
|
|
8553
8554
|
);
|
|
8554
8555
|
}
|
|
8555
|
-
function
|
|
8556
|
-
|
|
8556
|
+
function Pu(t) {
|
|
8557
|
+
$u(t), Su(t), Cu(t);
|
|
8557
8558
|
}
|
|
8558
|
-
const
|
|
8559
|
+
const Tu = `
|
|
8559
8560
|
var __env__ = 'dev'
|
|
8560
8561
|
var __mode__ = 'editor'
|
|
8561
8562
|
|
|
@@ -8565,43 +8566,6 @@ function __getEnvV1__() {
|
|
|
8565
8566
|
|
|
8566
8567
|
var __pointerPosX__ = 0
|
|
8567
8568
|
var __pointerPosY__ = 0
|
|
8568
|
-
`, Tu = `
|
|
8569
|
-
var __events__ = {}
|
|
8570
|
-
|
|
8571
|
-
function __onEventV1__(id, callback) {
|
|
8572
|
-
if (typeof(id) !== 'string' || !id) {
|
|
8573
|
-
return
|
|
8574
|
-
}
|
|
8575
|
-
if (typeof(callback) !== 'function') {
|
|
8576
|
-
return
|
|
8577
|
-
}
|
|
8578
|
-
if (!__events__[id]) {
|
|
8579
|
-
__events__[id] = []
|
|
8580
|
-
}
|
|
8581
|
-
var callbacks = __events__[id]
|
|
8582
|
-
for (var i = 0; i < callbacks.length; i++) {
|
|
8583
|
-
if (callbacks[i] === callback) {
|
|
8584
|
-
return
|
|
8585
|
-
}
|
|
8586
|
-
}
|
|
8587
|
-
callbacks.push(callback)
|
|
8588
|
-
}
|
|
8589
|
-
|
|
8590
|
-
function __triggerEventV1__(id, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16) {
|
|
8591
|
-
if (typeof(id) !== 'string' || !id) {
|
|
8592
|
-
return
|
|
8593
|
-
}
|
|
8594
|
-
if (!__events__[id]) {
|
|
8595
|
-
return
|
|
8596
|
-
}
|
|
8597
|
-
var callbacks = __events__[id]
|
|
8598
|
-
if (!callbacks) {
|
|
8599
|
-
return
|
|
8600
|
-
}
|
|
8601
|
-
for (var i = 0; i < callbacks.length; i++) {
|
|
8602
|
-
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
8603
|
-
}
|
|
8604
|
-
}
|
|
8605
8569
|
`, zu = `
|
|
8606
8570
|
var __timers__ = {}
|
|
8607
8571
|
var __currTimerId__ = 0
|
|
@@ -8649,7 +8613,7 @@ function __destroy__() {
|
|
|
8649
8613
|
__events__ = {}
|
|
8650
8614
|
__timers__ = {}
|
|
8651
8615
|
}
|
|
8652
|
-
`, Lu =
|
|
8616
|
+
`, Lu = Tu + zu + Au;
|
|
8653
8617
|
function Eu(t) {
|
|
8654
8618
|
return t instanceof Array ? t.join(".") : t;
|
|
8655
8619
|
}
|
|
@@ -8685,9 +8649,9 @@ class Bu {
|
|
|
8685
8649
|
//--------------------------
|
|
8686
8650
|
interpreter;
|
|
8687
8651
|
createInterpreter(e) {
|
|
8688
|
-
this.interpreter = new wr(Lu),
|
|
8652
|
+
this.interpreter = new wr(Lu), Pu(this), this.runCode(e), this.setVariable("__env__", this.env), this.setVariable("__mode__", this.mode), this.callFunction(
|
|
8689
8653
|
"__triggerEventV1__",
|
|
8690
|
-
|
|
8654
|
+
ne("elementEvent", "globality", "startup")
|
|
8691
8655
|
);
|
|
8692
8656
|
}
|
|
8693
8657
|
destroyInterpreter() {
|
|
@@ -8863,7 +8827,7 @@ ${Sr(e)}} catch (e) {
|
|
|
8863
8827
|
// 方法
|
|
8864
8828
|
//--------------------------
|
|
8865
8829
|
callMethod(e, i) {
|
|
8866
|
-
if (!
|
|
8830
|
+
if (!te(this.mode))
|
|
8867
8831
|
return;
|
|
8868
8832
|
const { methodKey: o } = Oo(e), s = [];
|
|
8869
8833
|
return this.eventBus.emit(e, { key: o, inputs: i, outputs: s }), s;
|
|
@@ -8885,9 +8849,9 @@ ${Sr(e)}} catch (e) {
|
|
|
8885
8849
|
}
|
|
8886
8850
|
function ei(t, e, i, o, s) {
|
|
8887
8851
|
const r = vu(), a = ku(), c = H(), m = fe(), d = Ce(), u = Me(), p = ($, S, L, E) => {
|
|
8888
|
-
if (
|
|
8852
|
+
if (te(c) && (v.callFunction(
|
|
8889
8853
|
"__triggerEventV1__",
|
|
8890
|
-
|
|
8854
|
+
ne(
|
|
8891
8855
|
"elementPropertyChangeEvent",
|
|
8892
8856
|
$,
|
|
8893
8857
|
Eu(S)
|
|
@@ -8909,9 +8873,9 @@ function ei(t, e, i, o, s) {
|
|
|
8909
8873
|
);
|
|
8910
8874
|
}
|
|
8911
8875
|
}, f = ($, S, L) => {
|
|
8912
|
-
|
|
8876
|
+
te(c) && (v.callFunction(
|
|
8913
8877
|
"__triggerEventV1__",
|
|
8914
|
-
|
|
8878
|
+
ne("customPropertyChangeEvent", "globality", $),
|
|
8915
8879
|
S,
|
|
8916
8880
|
L ?? S
|
|
8917
8881
|
), t.value?.code.reactivity && Fe(
|
|
@@ -8922,7 +8886,7 @@ function ei(t, e, i, o, s) {
|
|
|
8922
8886
|
L
|
|
8923
8887
|
));
|
|
8924
8888
|
}, b = ($, S, L) => {
|
|
8925
|
-
|
|
8889
|
+
te(c) && t.value?.code.reactivity && Fe(
|
|
8926
8890
|
v,
|
|
8927
8891
|
t.value.code.reactivity,
|
|
8928
8892
|
Te({ type: "adaptSlotProperty", propertyId: $ }),
|
|
@@ -8930,9 +8894,9 @@ function ei(t, e, i, o, s) {
|
|
|
8930
8894
|
L
|
|
8931
8895
|
);
|
|
8932
8896
|
}, g = ($, S, L) => {
|
|
8933
|
-
|
|
8897
|
+
te(c) && (v.callFunction(
|
|
8934
8898
|
"__triggerEventV1__",
|
|
8935
|
-
|
|
8899
|
+
ne("stateChangeEvent", "globality", $),
|
|
8936
8900
|
S,
|
|
8937
8901
|
L ?? S
|
|
8938
8902
|
), t.value?.code.reactivity && Fe(
|
|
@@ -8950,30 +8914,30 @@ function ei(t, e, i, o, s) {
|
|
|
8950
8914
|
});
|
|
8951
8915
|
wu(v);
|
|
8952
8916
|
const I = () => {
|
|
8953
|
-
|
|
8917
|
+
te(c) && (v.destroyInterpreter(), v.syncNodes(t.value), v.resetCustomProperties(), v.resetAdaptSlotProperties(), v.resetStates(), !(!t.value || !t.value.code.script) && v.createInterpreter(t.value.code.script));
|
|
8954
8918
|
};
|
|
8955
8919
|
I(), oe(t, () => {
|
|
8956
8920
|
I();
|
|
8957
8921
|
}), Xe(() => {
|
|
8958
8922
|
v.dispose();
|
|
8959
|
-
}),
|
|
8923
|
+
}), te(c) && oe(
|
|
8960
8924
|
d,
|
|
8961
8925
|
($, S) => {
|
|
8962
8926
|
const L = Ge($.width), E = Ge(S?.width ?? $.width);
|
|
8963
8927
|
v.callFunction(
|
|
8964
8928
|
"__triggerEventV1__",
|
|
8965
|
-
|
|
8929
|
+
ne("elementEvent", "globality", "screenSizeChange"),
|
|
8966
8930
|
L,
|
|
8967
8931
|
E
|
|
8968
8932
|
);
|
|
8969
8933
|
},
|
|
8970
8934
|
{ immediate: !0 }
|
|
8971
|
-
),
|
|
8935
|
+
), te(c) && oe(
|
|
8972
8936
|
u,
|
|
8973
8937
|
($) => {
|
|
8974
8938
|
v.callFunction(
|
|
8975
8939
|
"__triggerEventV1__",
|
|
8976
|
-
|
|
8940
|
+
ne("elementEvent", "globality", "darkModeChange"),
|
|
8977
8941
|
$
|
|
8978
8942
|
);
|
|
8979
8943
|
},
|
|
@@ -8986,7 +8950,7 @@ const Wu = (t, e, i) => {
|
|
|
8986
8950
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + e + (e.split("/").length !== i ? ". Note that variables only represent file names one level deep." : ""))));
|
|
8987
8951
|
});
|
|
8988
8952
|
};
|
|
8989
|
-
async function
|
|
8953
|
+
async function up(t) {
|
|
8990
8954
|
return (await Wu(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.iwe5dp7b.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.bcugsp8c.js") }), `./locales/${t}/index.ts`, 4)).default;
|
|
8991
8955
|
}
|
|
8992
8956
|
export {
|
|
@@ -9042,7 +9006,7 @@ export {
|
|
|
9042
9006
|
be as injectSandbox,
|
|
9043
9007
|
fe as injectType,
|
|
9044
9008
|
ko as isCircularRef,
|
|
9045
|
-
|
|
9009
|
+
te as isExecutableMode,
|
|
9046
9010
|
Ar as isLocaleOfEventKind,
|
|
9047
9011
|
zr as isLocaleOfMethodKind,
|
|
9048
9012
|
Tr as isLocaleOfPropertyKind,
|
|
@@ -9050,8 +9014,8 @@ export {
|
|
|
9050
9014
|
Ye as isPixelStr,
|
|
9051
9015
|
Va as keyboardControlsV1,
|
|
9052
9016
|
pn as lineChartV1,
|
|
9053
|
-
|
|
9054
|
-
|
|
9017
|
+
up as loadLocaleMessageRuntime,
|
|
9018
|
+
ne as makeEventId,
|
|
9055
9019
|
Bn as makeMethodId,
|
|
9056
9020
|
Ne as makePropertyId,
|
|
9057
9021
|
Te as makeTriggerId,
|
|
@@ -9110,7 +9074,7 @@ export {
|
|
|
9110
9074
|
Xu as toPropertyName,
|
|
9111
9075
|
Fe as triggerReactivity,
|
|
9112
9076
|
Ou as types,
|
|
9113
|
-
|
|
9077
|
+
Vu as unwrapEventId,
|
|
9114
9078
|
Oo as unwrapMethodId,
|
|
9115
9079
|
no as unwrapPropertyId,
|
|
9116
9080
|
Qn as useDepend,
|