x-runtime-lib 0.8.56 → 0.8.58
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 +125 -127
- package/dist/sandbox/runtime/event.d.ts +1 -1
- 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";
|
|
@@ -26,7 +26,7 @@ function Mn(t) {
|
|
|
26
26
|
const e = t.substring(0, t.length - 1), i = parseFloat(e);
|
|
27
27
|
return !isNaN(i);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ou(t) {
|
|
30
30
|
if (typeof t != "string" || !t.endsWith("px"))
|
|
31
31
|
return;
|
|
32
32
|
const e = t.substring(0, t.length - 2), i = parseFloat(e);
|
|
@@ -90,11 +90,11 @@ 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
|
-
const
|
|
97
|
-
function
|
|
96
|
+
const Ku = ["string", "number", "boolean", "array", "object"];
|
|
97
|
+
function Uu(t) {
|
|
98
98
|
switch (t) {
|
|
99
99
|
case "string":
|
|
100
100
|
return "#5ba58c";
|
|
@@ -117,7 +117,7 @@ function ko(t) {
|
|
|
117
117
|
}
|
|
118
118
|
return !1;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Xu(t, e, i, o, s) {
|
|
121
121
|
let r = t;
|
|
122
122
|
for (let c = 0; c < e.length; c++)
|
|
123
123
|
if (r = r.children[e[c]], !r) {
|
|
@@ -178,17 +178,17 @@ function Dn(t, e, i) {
|
|
|
178
178
|
a > 0 && (s += " - "), i ? s += o.global.t(r) : s += r;
|
|
179
179
|
}), s;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Yu(t, e) {
|
|
182
182
|
const { i18n: i } = ge;
|
|
183
183
|
let o = "";
|
|
184
184
|
return t === "elementProperty" || (t === "referenceProperty" ? o = i.global.t("x-runtime-lib.reference") : t === "multipleRefProperty" ? o = i.global.t("x-runtime-lib.multipleRef") : t === "customProperty" ? o = i.global.t("x-runtime-lib.custom") : t === "elementSlotProperty" || t === "customSlotProperty" ? o = i.global.t("x-runtime-lib.slot") : console.assert(!1)), Dn(o, e, Tr(t));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function qu(t, e) {
|
|
187
187
|
const { i18n: i } = ge;
|
|
188
188
|
let o = "";
|
|
189
189
|
return t === "elementMethod" || (t === "referenceMethod" ? o = i.global.t("x-runtime-lib.reference") : t === "multipleRefMethod" ? o = i.global.t("x-runtime-lib.multipleRef") : t === "customMethod" ? o = i.global.t("x-runtime-lib.custom") : t === "elementSlotMethod" || t === "customSlotMethod" ? o = i.global.t("x-runtime-lib.slot") : console.assert(!1)), Dn(o, e, zr(t));
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ju(t, e) {
|
|
192
192
|
const { i18n: i } = ge;
|
|
193
193
|
let o = "";
|
|
194
194
|
return t === "elementEvent" || (t === "referenceEvent" ? o = i.global.t("x-runtime-lib.reference") : t === "multipleRefEvent" ? o = i.global.t("x-runtime-lib.multipleRef") : t === "customEvent" ? o = i.global.t("x-runtime-lib.custom") : t === "elementPropertyChangeEvent" || t === "customPropertyChangeEvent" ? o = i.global.t("x-runtime-lib.propertyChange") : t === "stateChangeEvent" ? o = i.global.t("x-runtime-lib.stateChange") : console.assert(!1)), Dn(o, e, Ar(t));
|
|
@@ -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,
|
|
@@ -4157,7 +4157,7 @@ const hi = {
|
|
|
4157
4157
|
default: !1
|
|
4158
4158
|
}
|
|
4159
4159
|
]
|
|
4160
|
-
},
|
|
4160
|
+
}, Zu = {
|
|
4161
4161
|
key: Je,
|
|
4162
4162
|
name: "x-runtime-lib.badge",
|
|
4163
4163
|
comp: bl,
|
|
@@ -4990,7 +4990,7 @@ const Pi = {
|
|
|
4990
4990
|
key: "settings",
|
|
4991
4991
|
name: "x-runtime-lib.settings",
|
|
4992
4992
|
children: []
|
|
4993
|
-
},
|
|
4993
|
+
}, Qu = {
|
|
4994
4994
|
key: yt,
|
|
4995
4995
|
name: "x-runtime-lib.fileInput",
|
|
4996
4996
|
comp: Ll,
|
|
@@ -8062,7 +8062,7 @@ function T(t, e) {
|
|
|
8062
8062
|
}
|
|
8063
8063
|
e.forEach((o) => i(t, o));
|
|
8064
8064
|
}
|
|
8065
|
-
function
|
|
8065
|
+
function ep(t, e, i, o, s) {
|
|
8066
8066
|
const r = `type=${t} subtype=${e} version=${i} ref=${o} keyOrRefId=${s}`, a = A(t, e);
|
|
8067
8067
|
if (!a) {
|
|
8068
8068
|
console.error(`spawnNode property tag not found, ${r}`);
|
|
@@ -8127,7 +8127,7 @@ function Qu(t, e, i, o, s) {
|
|
|
8127
8127
|
}
|
|
8128
8128
|
}
|
|
8129
8129
|
}
|
|
8130
|
-
function
|
|
8130
|
+
function tp(t, e) {
|
|
8131
8131
|
function i(o) {
|
|
8132
8132
|
if (o.basic.id === e)
|
|
8133
8133
|
return o;
|
|
@@ -8151,56 +8151,56 @@ function xu(t) {
|
|
|
8151
8151
|
const i = W(t);
|
|
8152
8152
|
return e(i), i;
|
|
8153
8153
|
}
|
|
8154
|
-
function
|
|
8154
|
+
function np(t) {
|
|
8155
8155
|
const e = [];
|
|
8156
8156
|
return t.forEach((i) => {
|
|
8157
8157
|
e.push(xu(i));
|
|
8158
8158
|
}), e;
|
|
8159
8159
|
}
|
|
8160
8160
|
const Wo = "runtimeOrg", Ro = "runtimeEnv", Mo = "runtimeMode", Do = "runtimeDevice", Fo = "runtimeDark", No = "runtimeType", Go = "runtimeData", jo = "runtimeDepends", Ho = "runtimeSandbox";
|
|
8161
|
-
function
|
|
8161
|
+
function ip(t) {
|
|
8162
8162
|
ce(Wo, t);
|
|
8163
8163
|
}
|
|
8164
8164
|
function vu() {
|
|
8165
8165
|
return ae(Wo);
|
|
8166
8166
|
}
|
|
8167
|
-
function
|
|
8167
|
+
function op(t) {
|
|
8168
8168
|
ce(Ro, t);
|
|
8169
8169
|
}
|
|
8170
8170
|
function ku() {
|
|
8171
8171
|
return ae(Ro);
|
|
8172
8172
|
}
|
|
8173
|
-
function
|
|
8173
|
+
function rp(t) {
|
|
8174
8174
|
ce(Mo, t);
|
|
8175
8175
|
}
|
|
8176
8176
|
function H() {
|
|
8177
8177
|
return ae(Mo);
|
|
8178
8178
|
}
|
|
8179
|
-
function
|
|
8179
|
+
function sp(t) {
|
|
8180
8180
|
ce(Do, Rn(t));
|
|
8181
8181
|
}
|
|
8182
8182
|
function Ce() {
|
|
8183
8183
|
return ae(Do);
|
|
8184
8184
|
}
|
|
8185
|
-
function
|
|
8185
|
+
function lp(t) {
|
|
8186
8186
|
ce(Fo, Rn(t));
|
|
8187
8187
|
}
|
|
8188
8188
|
function Me() {
|
|
8189
8189
|
return ae(Fo);
|
|
8190
8190
|
}
|
|
8191
|
-
function
|
|
8191
|
+
function ap(t) {
|
|
8192
8192
|
ce(No, t);
|
|
8193
8193
|
}
|
|
8194
8194
|
function fe() {
|
|
8195
8195
|
return ae(No);
|
|
8196
8196
|
}
|
|
8197
|
-
function
|
|
8197
|
+
function cp(t) {
|
|
8198
8198
|
ce(Go, t);
|
|
8199
8199
|
}
|
|
8200
8200
|
function ke() {
|
|
8201
8201
|
return ae(Go);
|
|
8202
8202
|
}
|
|
8203
|
-
function
|
|
8203
|
+
function up(t) {
|
|
8204
8204
|
ce(jo, Rn(t));
|
|
8205
8205
|
}
|
|
8206
8206
|
function _u() {
|
|
@@ -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,21 +8435,19 @@ function Iu(t) {
|
|
|
8435
8435
|
}
|
|
8436
8436
|
);
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8438
|
+
function Cu(t) {
|
|
8439
8439
|
t.bindNativeFunction(
|
|
8440
|
-
"
|
|
8440
|
+
"__triggerEventV1__",
|
|
8441
8441
|
(e, ...i) => {
|
|
8442
|
-
t.
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
...i
|
|
8446
|
-
), t.parent.callFunction(
|
|
8442
|
+
t.callFunction("__triggerEventInner__", e, ...i);
|
|
8443
|
+
const { kind: o, eventKey: s } = Vu(e);
|
|
8444
|
+
o === "customEvent" && (t.parent?.callFunction(
|
|
8447
8445
|
"__triggerEventV1__",
|
|
8448
|
-
|
|
8446
|
+
ne("referenceEvent", t.id, s),
|
|
8449
8447
|
...i
|
|
8450
|
-
), t.parent
|
|
8448
|
+
), t.parent?.callFunction(
|
|
8451
8449
|
"__triggerEventV1__",
|
|
8452
|
-
|
|
8450
|
+
ne("multipleRefEvent", t.id, s),
|
|
8453
8451
|
...i
|
|
8454
8452
|
));
|
|
8455
8453
|
}
|
|
@@ -8552,10 +8550,10 @@ function Su(t) {
|
|
|
8552
8550
|
}
|
|
8553
8551
|
);
|
|
8554
8552
|
}
|
|
8555
|
-
function
|
|
8556
|
-
|
|
8553
|
+
function Pu(t) {
|
|
8554
|
+
$u(t), Su(t), Cu(t);
|
|
8557
8555
|
}
|
|
8558
|
-
const
|
|
8556
|
+
const Tu = `
|
|
8559
8557
|
var __env__ = 'dev'
|
|
8560
8558
|
var __mode__ = 'editor'
|
|
8561
8559
|
|
|
@@ -8565,7 +8563,7 @@ function __getEnvV1__() {
|
|
|
8565
8563
|
|
|
8566
8564
|
var __pointerPosX__ = 0
|
|
8567
8565
|
var __pointerPosY__ = 0
|
|
8568
|
-
`,
|
|
8566
|
+
`, zu = `
|
|
8569
8567
|
var __events__ = {}
|
|
8570
8568
|
|
|
8571
8569
|
function __onEventV1__(id, callback) {
|
|
@@ -8587,7 +8585,7 @@ function __onEventV1__(id, callback) {
|
|
|
8587
8585
|
callbacks.push(callback)
|
|
8588
8586
|
}
|
|
8589
8587
|
|
|
8590
|
-
function
|
|
8588
|
+
function __triggerEventInner__(id, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16) {
|
|
8591
8589
|
if (typeof(id) !== 'string' || !id) {
|
|
8592
8590
|
return
|
|
8593
8591
|
}
|
|
@@ -8602,7 +8600,7 @@ function __triggerEventV1__(id, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p1
|
|
|
8602
8600
|
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
8603
8601
|
}
|
|
8604
8602
|
}
|
|
8605
|
-
`,
|
|
8603
|
+
`, Au = `
|
|
8606
8604
|
var __timers__ = {}
|
|
8607
8605
|
var __currTimerId__ = 0
|
|
8608
8606
|
|
|
@@ -8644,19 +8642,19 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
8644
8642
|
}
|
|
8645
8643
|
}
|
|
8646
8644
|
}
|
|
8647
|
-
`,
|
|
8645
|
+
`, Lu = `
|
|
8648
8646
|
function __destroy__() {
|
|
8649
8647
|
__events__ = {}
|
|
8650
8648
|
__timers__ = {}
|
|
8651
8649
|
}
|
|
8652
|
-
`,
|
|
8653
|
-
function
|
|
8650
|
+
`, Eu = Tu + zu + Au + Lu;
|
|
8651
|
+
function Bu(t) {
|
|
8654
8652
|
return t instanceof Array ? t.join(".") : t;
|
|
8655
8653
|
}
|
|
8656
8654
|
function io(t, ...e) {
|
|
8657
8655
|
console.log(t, ...e);
|
|
8658
8656
|
}
|
|
8659
|
-
class
|
|
8657
|
+
class Wu {
|
|
8660
8658
|
kind;
|
|
8661
8659
|
id;
|
|
8662
8660
|
refKey;
|
|
@@ -8685,9 +8683,9 @@ class Bu {
|
|
|
8685
8683
|
//--------------------------
|
|
8686
8684
|
interpreter;
|
|
8687
8685
|
createInterpreter(e) {
|
|
8688
|
-
this.interpreter = new wr(
|
|
8686
|
+
this.interpreter = new wr(Eu), Pu(this), this.runCode(e), this.setVariable("__env__", this.env), this.setVariable("__mode__", this.mode), this.callFunction(
|
|
8689
8687
|
"__triggerEventV1__",
|
|
8690
|
-
|
|
8688
|
+
ne("elementEvent", "globality", "startup")
|
|
8691
8689
|
);
|
|
8692
8690
|
}
|
|
8693
8691
|
destroyInterpreter() {
|
|
@@ -8863,7 +8861,7 @@ ${Sr(e)}} catch (e) {
|
|
|
8863
8861
|
// 方法
|
|
8864
8862
|
//--------------------------
|
|
8865
8863
|
callMethod(e, i) {
|
|
8866
|
-
if (!
|
|
8864
|
+
if (!te(this.mode))
|
|
8867
8865
|
return;
|
|
8868
8866
|
const { methodKey: o } = Oo(e), s = [];
|
|
8869
8867
|
return this.eventBus.emit(e, { key: o, inputs: i, outputs: s }), s;
|
|
@@ -8885,12 +8883,12 @@ ${Sr(e)}} catch (e) {
|
|
|
8885
8883
|
}
|
|
8886
8884
|
function ei(t, e, i, o, s) {
|
|
8887
8885
|
const r = vu(), a = ku(), c = H(), m = fe(), d = Ce(), u = Me(), p = ($, S, L, E) => {
|
|
8888
|
-
if (
|
|
8886
|
+
if (te(c) && (v.callFunction(
|
|
8889
8887
|
"__triggerEventV1__",
|
|
8890
|
-
|
|
8888
|
+
ne(
|
|
8891
8889
|
"elementPropertyChangeEvent",
|
|
8892
8890
|
$,
|
|
8893
|
-
|
|
8891
|
+
Bu(S)
|
|
8894
8892
|
),
|
|
8895
8893
|
L,
|
|
8896
8894
|
E ?? L
|
|
@@ -8909,9 +8907,9 @@ function ei(t, e, i, o, s) {
|
|
|
8909
8907
|
);
|
|
8910
8908
|
}
|
|
8911
8909
|
}, f = ($, S, L) => {
|
|
8912
|
-
|
|
8910
|
+
te(c) && (v.callFunction(
|
|
8913
8911
|
"__triggerEventV1__",
|
|
8914
|
-
|
|
8912
|
+
ne("customPropertyChangeEvent", "globality", $),
|
|
8915
8913
|
S,
|
|
8916
8914
|
L ?? S
|
|
8917
8915
|
), t.value?.code.reactivity && Fe(
|
|
@@ -8922,7 +8920,7 @@ function ei(t, e, i, o, s) {
|
|
|
8922
8920
|
L
|
|
8923
8921
|
));
|
|
8924
8922
|
}, b = ($, S, L) => {
|
|
8925
|
-
|
|
8923
|
+
te(c) && t.value?.code.reactivity && Fe(
|
|
8926
8924
|
v,
|
|
8927
8925
|
t.value.code.reactivity,
|
|
8928
8926
|
Te({ type: "adaptSlotProperty", propertyId: $ }),
|
|
@@ -8930,9 +8928,9 @@ function ei(t, e, i, o, s) {
|
|
|
8930
8928
|
L
|
|
8931
8929
|
);
|
|
8932
8930
|
}, g = ($, S, L) => {
|
|
8933
|
-
|
|
8931
|
+
te(c) && (v.callFunction(
|
|
8934
8932
|
"__triggerEventV1__",
|
|
8935
|
-
|
|
8933
|
+
ne("stateChangeEvent", "globality", $),
|
|
8936
8934
|
S,
|
|
8937
8935
|
L ?? S
|
|
8938
8936
|
), t.value?.code.reactivity && Fe(
|
|
@@ -8942,7 +8940,7 @@ function ei(t, e, i, o, s) {
|
|
|
8942
8940
|
S,
|
|
8943
8941
|
L
|
|
8944
8942
|
));
|
|
8945
|
-
}, v = new
|
|
8943
|
+
}, v = new Wu(e, i, o, s, r, a, c, m, {
|
|
8946
8944
|
onElementPropertyChange: p,
|
|
8947
8945
|
onCustomPropertyChange: f,
|
|
8948
8946
|
onAdaptSlotPropertyChange: b,
|
|
@@ -8950,49 +8948,49 @@ function ei(t, e, i, o, s) {
|
|
|
8950
8948
|
});
|
|
8951
8949
|
wu(v);
|
|
8952
8950
|
const I = () => {
|
|
8953
|
-
|
|
8951
|
+
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
8952
|
};
|
|
8955
8953
|
I(), oe(t, () => {
|
|
8956
8954
|
I();
|
|
8957
8955
|
}), Xe(() => {
|
|
8958
8956
|
v.dispose();
|
|
8959
|
-
}),
|
|
8957
|
+
}), te(c) && oe(
|
|
8960
8958
|
d,
|
|
8961
8959
|
($, S) => {
|
|
8962
8960
|
const L = Ge($.width), E = Ge(S?.width ?? $.width);
|
|
8963
8961
|
v.callFunction(
|
|
8964
8962
|
"__triggerEventV1__",
|
|
8965
|
-
|
|
8963
|
+
ne("elementEvent", "globality", "screenSizeChange"),
|
|
8966
8964
|
L,
|
|
8967
8965
|
E
|
|
8968
8966
|
);
|
|
8969
8967
|
},
|
|
8970
8968
|
{ immediate: !0 }
|
|
8971
|
-
),
|
|
8969
|
+
), te(c) && oe(
|
|
8972
8970
|
u,
|
|
8973
8971
|
($) => {
|
|
8974
8972
|
v.callFunction(
|
|
8975
8973
|
"__triggerEventV1__",
|
|
8976
|
-
|
|
8974
|
+
ne("elementEvent", "globality", "darkModeChange"),
|
|
8977
8975
|
$
|
|
8978
8976
|
);
|
|
8979
8977
|
},
|
|
8980
8978
|
{ immediate: !0 }
|
|
8981
8979
|
);
|
|
8982
8980
|
}
|
|
8983
|
-
const
|
|
8981
|
+
const Ru = (t, e, i) => {
|
|
8984
8982
|
const o = t[e];
|
|
8985
8983
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((s, r) => {
|
|
8986
8984
|
(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
8985
|
});
|
|
8988
8986
|
};
|
|
8989
8987
|
async function pp(t) {
|
|
8990
|
-
return (await
|
|
8988
|
+
return (await Ru(/* @__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
8989
|
}
|
|
8992
8990
|
export {
|
|
8993
8991
|
Sr as addIndent,
|
|
8994
8992
|
La as ambientLightV1,
|
|
8995
|
-
|
|
8993
|
+
Zu as badgeV1,
|
|
8996
8994
|
un as barChartV1,
|
|
8997
8995
|
an as boxGeometryV1,
|
|
8998
8996
|
xo as breakpoints,
|
|
@@ -9013,10 +9011,10 @@ export {
|
|
|
9013
9011
|
nc as dialogV1,
|
|
9014
9012
|
Ea as directionalLightV1,
|
|
9015
9013
|
xu as duplicateNode,
|
|
9016
|
-
|
|
9014
|
+
np as duplicateNodes,
|
|
9017
9015
|
ze as elements,
|
|
9018
|
-
|
|
9019
|
-
|
|
9016
|
+
Xu as ensureContext,
|
|
9017
|
+
Qu as fileInputV1,
|
|
9020
9018
|
bn as flexLayoutEntryV1,
|
|
9021
9019
|
We as flexLayoutV1,
|
|
9022
9020
|
xn as formV1,
|
|
@@ -9024,10 +9022,10 @@ export {
|
|
|
9024
9022
|
Pe as getBreakpointProp,
|
|
9025
9023
|
we as getField,
|
|
9026
9024
|
ni as getIndexOfBreakpoint,
|
|
9027
|
-
|
|
9025
|
+
tp as getNode,
|
|
9028
9026
|
to as getPropertyDefault,
|
|
9029
9027
|
A as getPropertyTag,
|
|
9030
|
-
|
|
9028
|
+
Uu as getTypeColor,
|
|
9031
9029
|
ja as globalityV1,
|
|
9032
9030
|
Ra as groupV1,
|
|
9033
9031
|
ac as iconV1,
|
|
@@ -9042,7 +9040,7 @@ export {
|
|
|
9042
9040
|
be as injectSandbox,
|
|
9043
9041
|
fe as injectType,
|
|
9044
9042
|
ko as isCircularRef,
|
|
9045
|
-
|
|
9043
|
+
te as isExecutableMode,
|
|
9046
9044
|
Ar as isLocaleOfEventKind,
|
|
9047
9045
|
zr as isLocaleOfMethodKind,
|
|
9048
9046
|
Tr as isLocaleOfPropertyKind,
|
|
@@ -9051,7 +9049,7 @@ export {
|
|
|
9051
9049
|
Va as keyboardControlsV1,
|
|
9052
9050
|
pn as lineChartV1,
|
|
9053
9051
|
pp as loadLocaleMessageRuntime,
|
|
9054
|
-
|
|
9052
|
+
ne as makeEventId,
|
|
9055
9053
|
Bn as makeMethodId,
|
|
9056
9054
|
Ne as makePropertyId,
|
|
9057
9055
|
Te as makeTriggerId,
|
|
@@ -9066,19 +9064,19 @@ export {
|
|
|
9066
9064
|
Cr as pageTypes,
|
|
9067
9065
|
pc as paginationV1,
|
|
9068
9066
|
Qt as parsePercentStr,
|
|
9069
|
-
|
|
9067
|
+
Ou as parsePixelStr,
|
|
9070
9068
|
va as perspectiveCameraV1,
|
|
9071
9069
|
gu as pkgs,
|
|
9072
9070
|
Ba as pointLightV1,
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9071
|
+
lp as provideDark,
|
|
9072
|
+
cp as provideData,
|
|
9073
|
+
up as provideDepends,
|
|
9074
|
+
sp as provideDevice,
|
|
9075
|
+
op as provideEnv,
|
|
9076
|
+
rp as provideMode,
|
|
9077
|
+
ip as provideOrg,
|
|
9080
9078
|
wu as provideSandbox,
|
|
9081
|
-
|
|
9079
|
+
ap as provideType,
|
|
9082
9080
|
_n as radioGroupV1,
|
|
9083
9081
|
kn as radioV1,
|
|
9084
9082
|
yc as rangeSliderV1,
|
|
@@ -9089,7 +9087,7 @@ export {
|
|
|
9089
9087
|
bc as selectV1,
|
|
9090
9088
|
vo as setField,
|
|
9091
9089
|
hc as sliderV1,
|
|
9092
|
-
|
|
9090
|
+
ep as spawnNode,
|
|
9093
9091
|
cn as sphereGeometryV1,
|
|
9094
9092
|
Wa as spotLightV1,
|
|
9095
9093
|
wn as stepperHeaderV1,
|
|
@@ -9105,12 +9103,12 @@ export {
|
|
|
9105
9103
|
Tn as textareaV1,
|
|
9106
9104
|
zn as timelineItemV1,
|
|
9107
9105
|
An as timelineV1,
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9106
|
+
Ju as toEventName,
|
|
9107
|
+
qu as toMethodName,
|
|
9108
|
+
Yu as toPropertyName,
|
|
9111
9109
|
Fe as triggerReactivity,
|
|
9112
|
-
|
|
9113
|
-
|
|
9110
|
+
Ku as types,
|
|
9111
|
+
Vu as unwrapEventId,
|
|
9114
9112
|
Oo as unwrapMethodId,
|
|
9115
9113
|
no as unwrapPropertyId,
|
|
9116
9114
|
Qn as useDepend,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const event = "\nvar __events__ = {}\n\nfunction __onEventV1__(id, callback) {\n if (typeof(id) !== 'string' || !id) {\n return\n }\n if (typeof(callback) !== 'function') {\n return\n }\n if (!__events__[id]) {\n __events__[id] = []\n }\n var callbacks = __events__[id]\n for (var i = 0; i < callbacks.length; i++) {\n if (callbacks[i] === callback) {\n return\n }\n }\n callbacks.push(callback)\n}\n\nfunction
|
|
1
|
+
export declare const event = "\nvar __events__ = {}\n\nfunction __onEventV1__(id, callback) {\n if (typeof(id) !== 'string' || !id) {\n return\n }\n if (typeof(callback) !== 'function') {\n return\n }\n if (!__events__[id]) {\n __events__[id] = []\n }\n var callbacks = __events__[id]\n for (var i = 0; i < callbacks.length; i++) {\n if (callbacks[i] === callback) {\n return\n }\n }\n callbacks.push(callback)\n}\n\nfunction __triggerEventInner__(id, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16) {\n if (typeof(id) !== 'string' || !id) {\n return\n }\n if (!__events__[id]) {\n return\n }\n var callbacks = __events__[id]\n if (!callbacks) {\n return\n }\n for (var i = 0; i < callbacks.length; i++) {\n callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)\n }\n}\n";
|