x-runtime-lib 0.8.156 → 0.8.157
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 +351 -345
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,10 +29,10 @@ var Fe = (t, n, e) => {
|
|
|
29
29
|
};
|
|
30
30
|
return i();
|
|
31
31
|
};
|
|
32
|
-
import { defineComponent as S, createElementBlock as te, createCommentVNode as re, unref as r, openBlock as w, createElementVNode as We, computed as I, renderSlot as O, normalizeStyle as
|
|
33
|
-
import { globalObjects as
|
|
32
|
+
import { defineComponent as S, createElementBlock as te, createCommentVNode as re, unref as r, openBlock as w, createElementVNode as We, computed as I, renderSlot as O, normalizeStyle as de, ref as se, watch as pe, onUnmounted as Ie, onBeforeMount as oi, watchEffect as xe, createVNode as D, createBlock as C, useTemplateRef as Io, onMounted as So, nextTick as sn, withCtx as V, resolveComponent as R, isRef as ne, h as K, createSlots as rn, renderList as ii, useId as $o, withModifiers as si, normalizeClass as ri, toDisplayString as Co, useAttrs as gt, inject as fe, provide as ye, readonly as ln } from "vue";
|
|
33
|
+
import { globalObjects as he, waitUtil as Vo, useViewStack as Po, eventBus as Lo, messageInfo as li, messageSuccess as ai, messageWarning as zo, messageError as To, createAxios as ci, openConfirmDlg as ui, openPromptDlg as mi } from "x-essential-lib";
|
|
34
34
|
import { CameraHelper as Eo, DirectionalLightHelper as pi, PointLightHelper as di, SpotLightHelper as fi } from "three";
|
|
35
|
-
import { i as
|
|
35
|
+
import { i as me, c as qe, K as yi, M as bi, O as gi, u as hi, r as Ao, e as Mo, a as _i, b as vi, d as xi, f as ki, g as wi, h as Ii, j as Si, k as $i, l as Wo, m as F, H as Ci, n as Vi, o as Pi, p as Li, q as zi } from "./vendor.m8tdmh16.js";
|
|
36
36
|
import { useTheme as Ti } from "vuetify";
|
|
37
37
|
import { getErrorMessage as Ei } from "x-error-lib";
|
|
38
38
|
const In = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -126,7 +126,7 @@ function bu(t) {
|
|
|
126
126
|
function Xe(t) {
|
|
127
127
|
return t.startsWith("ref_v") || t.startsWith("multiple_ref_v") || t.startsWith("slot_v") || t.startsWith("multiple_slot_v");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function ke(t) {
|
|
130
130
|
return t === "runtime" || t === "preview";
|
|
131
131
|
}
|
|
132
132
|
function Ye(t, n) {
|
|
@@ -313,10 +313,10 @@ const Iu = [
|
|
|
313
313
|
"scene_spot_light_v1"
|
|
314
314
|
];
|
|
315
315
|
function N(...t) {
|
|
316
|
-
return t.map((n) =>
|
|
316
|
+
return t.map((n) => he.i18n.global.t(`x-runtime-lib.${n}`)).join(" - ");
|
|
317
317
|
}
|
|
318
318
|
function un(t, n, e) {
|
|
319
|
-
const { i18n: o } =
|
|
319
|
+
const { i18n: o } = he;
|
|
320
320
|
let s = "";
|
|
321
321
|
return t && (s += t + " / "), n.forEach((i, l) => {
|
|
322
322
|
l > 0 && (s += " - "), e ? s += o.global.t(i) : s += i;
|
|
@@ -379,12 +379,12 @@ const Di = ["position", "ratation", "scale"], Re = /* @__PURE__ */ S({
|
|
|
379
379
|
}));
|
|
380
380
|
return (s, i) => r(n) === "editor" ? (w(), te("div", {
|
|
381
381
|
key: 0,
|
|
382
|
-
style:
|
|
382
|
+
style: de(e.value)
|
|
383
383
|
}, [
|
|
384
384
|
O(s.$slots, "default"),
|
|
385
385
|
t.mask ? (w(), te("div", {
|
|
386
386
|
key: 0,
|
|
387
|
-
style:
|
|
387
|
+
style: de(o.value)
|
|
388
388
|
}, null, 4)) : re("", !0)
|
|
389
389
|
], 4)) : O(s.$slots, "default", { key: 1 });
|
|
390
390
|
}
|
|
@@ -397,7 +397,7 @@ function Fi(t) {
|
|
|
397
397
|
}
|
|
398
398
|
function P(t) {
|
|
399
399
|
const n = le(), e = se(n.value.view.nodes[t.nodeId]);
|
|
400
|
-
console.assert(!!e.value, `invalid node id=${t.nodeId}`),
|
|
400
|
+
console.assert(!!e.value, `invalid node id=${t.nodeId}`), pe(n, () => {
|
|
401
401
|
e.value = n.value.view.nodes[t.nodeId];
|
|
402
402
|
});
|
|
403
403
|
const { debugTrace: o } = Fi(e);
|
|
@@ -406,7 +406,7 @@ function P(t) {
|
|
|
406
406
|
}), { node: e };
|
|
407
407
|
}
|
|
408
408
|
function pt(t, n, e) {
|
|
409
|
-
const o =
|
|
409
|
+
const o = _e();
|
|
410
410
|
if (o) {
|
|
411
411
|
const s = I(() => Uc("elementMethod", t, n));
|
|
412
412
|
oi(() => {
|
|
@@ -430,14 +430,14 @@ const Oi = (t, n, e, o) => {
|
|
|
430
430
|
s ? typeof o == "object" ? i = JSON.stringify(o, null, 2) : (console.assert(!1), i = "{}") : i = o, t ? t.setElementProperty(n.basic.id, e, i) : cn(n, e, i);
|
|
431
431
|
};
|
|
432
432
|
function a(t, n, e) {
|
|
433
|
-
const o =
|
|
434
|
-
return
|
|
433
|
+
const o = _e(), s = se();
|
|
434
|
+
return xe(() => {
|
|
435
435
|
s.value = Oi(o, t.value, n, e);
|
|
436
|
-
}),
|
|
437
|
-
|
|
436
|
+
}), pe(s, (i, l) => {
|
|
437
|
+
me(i, l) || Ni(o, t.value, n, s.value, e);
|
|
438
438
|
}), { property: s };
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function ue(t) {
|
|
441
441
|
const { property: n } = a(t, [
|
|
442
442
|
"transform",
|
|
443
443
|
"position",
|
|
@@ -463,17 +463,17 @@ function me(t) {
|
|
|
463
463
|
"rotation",
|
|
464
464
|
"z"
|
|
465
465
|
]), { property: c } = a(t, ["transform", "scale", "x"]), { property: u } = a(t, ["transform", "scale", "y"]), { property: m } = a(t, ["transform", "scale", "z"]), d = se([0, 0, 0]), p = se([0, 0, 0]), f = se([1, 1, 1]);
|
|
466
|
-
return
|
|
466
|
+
return xe(() => {
|
|
467
467
|
d.value = [n.value, e.value, o.value];
|
|
468
|
-
}),
|
|
468
|
+
}), xe(() => {
|
|
469
469
|
n.value = d.value[0], e.value = d.value[1], o.value = d.value[2];
|
|
470
|
-
}),
|
|
470
|
+
}), xe(() => {
|
|
471
471
|
p.value = [s.value, i.value, l.value];
|
|
472
|
-
}),
|
|
472
|
+
}), xe(() => {
|
|
473
473
|
s.value = p.value[0], i.value = p.value[1], l.value = p.value[2];
|
|
474
|
-
}),
|
|
474
|
+
}), xe(() => {
|
|
475
475
|
f.value = [c.value, u.value, m.value];
|
|
476
|
-
}),
|
|
476
|
+
}), xe(() => {
|
|
477
477
|
c.value = f.value[0], u.value = f.value[1], m.value = f.value[2];
|
|
478
478
|
}), { position: d, rotation: p, scale: f };
|
|
479
479
|
}
|
|
@@ -563,7 +563,7 @@ function dn(t) {
|
|
|
563
563
|
}
|
|
564
564
|
return { paddingTop: n, paddingLeft: e, paddingBottom: o, paddingRight: s, applyPadding: i };
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function be(t, n) {
|
|
567
567
|
const e = Z(), o = De(), s = I(() => n.value.size?.width), i = I(() => n.value.size?.minWidth), l = I(() => n.value.size?.maxWidth), c = I(() => {
|
|
568
568
|
if (t.outer && e === "editor") {
|
|
569
569
|
const p = It(n.value.size?.height);
|
|
@@ -599,7 +599,7 @@ const ji = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
599
599
|
refContext: {}
|
|
600
600
|
},
|
|
601
601
|
setup(t) {
|
|
602
|
-
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } =
|
|
602
|
+
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } = ue(e), { property: c } = a(e, ["settings", "bottom"]), { property: u } = a(e, ["settings", "far"]), { property: m } = a(e, ["settings", "left"]), { property: d } = a(e, ["settings", "near"]), { property: p } = a(e, ["settings", "right"]), { property: f } = a(e, ["settings", "top"]);
|
|
603
603
|
return (b, g) => (w(), te("TresOrthographicCamera", {
|
|
604
604
|
bottom: r(c),
|
|
605
605
|
far: r(u),
|
|
@@ -627,7 +627,7 @@ const ji = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
627
627
|
refContext: {}
|
|
628
628
|
},
|
|
629
629
|
setup(t) {
|
|
630
|
-
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } =
|
|
630
|
+
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } = ue(e), { property: c } = a(e, ["settings", "aspect"]), { property: u } = a(e, ["settings", "far"]), { property: m } = a(e, ["settings", "fov"]), { property: d } = a(e, ["settings", "near"]);
|
|
631
631
|
return (p, f) => (w(), te("TresPerspectiveCamera", {
|
|
632
632
|
aspect: r(c),
|
|
633
633
|
far: r(u),
|
|
@@ -744,7 +744,7 @@ const ji = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
744
744
|
refContext: {}
|
|
745
745
|
},
|
|
746
746
|
setup(t) {
|
|
747
|
-
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: i } =
|
|
747
|
+
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: i } = ue(e), { property: l } = a(e, ["settings", "color"]), { color: c } = Q(l), { property: u } = a(e, [
|
|
748
748
|
"settings",
|
|
749
749
|
"intensity"
|
|
750
750
|
]);
|
|
@@ -767,7 +767,7 @@ const ji = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
767
767
|
refContext: {}
|
|
768
768
|
},
|
|
769
769
|
setup(t) {
|
|
770
|
-
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } =
|
|
770
|
+
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } = ue(e), { property: c } = a(e, ["settings", "color"]), { color: u } = Q(c), { property: m } = a(e, [
|
|
771
771
|
"settings",
|
|
772
772
|
"intensity"
|
|
773
773
|
]);
|
|
@@ -794,7 +794,7 @@ const ji = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
794
794
|
refContext: {}
|
|
795
795
|
},
|
|
796
796
|
setup(t) {
|
|
797
|
-
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } =
|
|
797
|
+
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } = ue(e), { property: c } = a(e, ["settings", "color"]), { color: u } = Q(c), { property: m } = a(e, ["settings", "decay"]), { property: d } = a(e, [
|
|
798
798
|
"settings",
|
|
799
799
|
"distance"
|
|
800
800
|
]), { property: p } = a(e, [
|
|
@@ -826,7 +826,7 @@ const ji = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
826
826
|
refContext: {}
|
|
827
827
|
},
|
|
828
828
|
setup(t) {
|
|
829
|
-
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } =
|
|
829
|
+
const n = t, { node: e } = P(n), o = Z(), { position: s, rotation: i, scale: l } = ue(e), { property: c } = a(e, ["settings", "angle"]), { property: u } = a(e, ["settings", "color"]), { color: m } = Q(u), { property: d } = a(e, ["settings", "decay"]), { property: p } = a(e, [
|
|
830
830
|
"settings",
|
|
831
831
|
"distance"
|
|
832
832
|
]), { property: f } = a(e, [
|
|
@@ -867,7 +867,7 @@ const ms = /* @__PURE__ */ Be(cs, [["render", us]]), ps = ["position", "rotation
|
|
|
867
867
|
refContext: {}
|
|
868
868
|
},
|
|
869
869
|
setup(t) {
|
|
870
|
-
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: i } =
|
|
870
|
+
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: i } = ue(e);
|
|
871
871
|
return (l, c) => (w(), te("TresGroup", {
|
|
872
872
|
position: r(o),
|
|
873
873
|
rotation: r(s),
|
|
@@ -884,7 +884,7 @@ const ms = /* @__PURE__ */ Be(cs, [["render", us]]), ps = ["position", "rotation
|
|
|
884
884
|
refContext: {}
|
|
885
885
|
},
|
|
886
886
|
setup(t) {
|
|
887
|
-
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: i } =
|
|
887
|
+
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: i } = ue(e);
|
|
888
888
|
return (l, c) => (w(), te("TresMesh", {
|
|
889
889
|
position: r(o),
|
|
890
890
|
rotation: r(s),
|
|
@@ -974,7 +974,7 @@ const kr = /* @__PURE__ */ S({
|
|
|
974
974
|
refContext: {}
|
|
975
975
|
},
|
|
976
976
|
setup(t) {
|
|
977
|
-
const n = t, { node: e } = P(n), o = De(), s = Ze(), i = Se(), l = le(), { width: c, minWidth: u, maxWidth: m, height: d, minHeight: p, maxHeight: f, applySize: b } =
|
|
977
|
+
const n = t, { node: e } = P(n), o = De(), s = Ze(), i = Se(), l = le(), { width: c, minWidth: u, maxWidth: m, height: d, minHeight: p, maxHeight: f, applySize: b } = be(n, e), { applyTitle: g } = Do(e), { applyXAxis: k } = Fo(e), { applyYAxis: _ } = Oo(e), { applyLegend: x } = Bo(e), { applySeries: h } = Ko(e), v = I(() => {
|
|
978
978
|
const L = {}, U = l.value?.type;
|
|
979
979
|
return i === "page" ? U === "common" ? b(L) : console.assert(!1) : i === "comp" && U === "common" ? b(L) : console.assert(!1), L;
|
|
980
980
|
}), z = Io("chart");
|
|
@@ -987,13 +987,13 @@ const kr = /* @__PURE__ */ S({
|
|
|
987
987
|
T?.resize();
|
|
988
988
|
}, j = () => {
|
|
989
989
|
const L = {};
|
|
990
|
-
g(L), k(L),
|
|
990
|
+
g(L), k(L), _(L), x(L), h(L), T?.setOption(L, !0);
|
|
991
991
|
};
|
|
992
992
|
return So(async () => {
|
|
993
993
|
window.addEventListener("resize", Y, !1), await Vo(() => !!z.value), J(), j();
|
|
994
994
|
}), Ie(() => {
|
|
995
995
|
window.removeEventListener("resize", Y, !1), T?.dispose();
|
|
996
|
-
}),
|
|
996
|
+
}), pe(
|
|
997
997
|
[
|
|
998
998
|
() => o.value.width,
|
|
999
999
|
() => o.value.height,
|
|
@@ -1007,9 +1007,9 @@ const kr = /* @__PURE__ */ S({
|
|
|
1007
1007
|
async () => {
|
|
1008
1008
|
await sn(), Y();
|
|
1009
1009
|
}
|
|
1010
|
-
),
|
|
1010
|
+
), pe([s], () => {
|
|
1011
1011
|
J(), j();
|
|
1012
|
-
}),
|
|
1012
|
+
}), pe(
|
|
1013
1013
|
[n],
|
|
1014
1014
|
() => {
|
|
1015
1015
|
j();
|
|
@@ -1022,7 +1022,7 @@ const kr = /* @__PURE__ */ S({
|
|
|
1022
1022
|
default: V(() => [
|
|
1023
1023
|
We("div", {
|
|
1024
1024
|
ref: "chart",
|
|
1025
|
-
style:
|
|
1025
|
+
style: de(v.value)
|
|
1026
1026
|
}, null, 4)
|
|
1027
1027
|
]),
|
|
1028
1028
|
_: 1
|
|
@@ -1036,7 +1036,7 @@ const kr = /* @__PURE__ */ S({
|
|
|
1036
1036
|
refContext: {}
|
|
1037
1037
|
},
|
|
1038
1038
|
setup(t) {
|
|
1039
|
-
const n = t, { node: e } = P(n), o = De(), s = Ze(), i = Se(), l = le(), { width: c, minWidth: u, maxWidth: m, height: d, minHeight: p, maxHeight: f, applySize: b } =
|
|
1039
|
+
const n = t, { node: e } = P(n), o = De(), s = Ze(), i = Se(), l = le(), { width: c, minWidth: u, maxWidth: m, height: d, minHeight: p, maxHeight: f, applySize: b } = be(n, e), { applyTitle: g } = Do(e), { applyXAxis: k } = Fo(e), { applyYAxis: _ } = Oo(e), { applyLegend: x } = Bo(e), { applySeries: h } = Ko(e), v = I(() => {
|
|
1040
1040
|
const L = {}, U = l.value?.type;
|
|
1041
1041
|
return i === "page" ? U === "common" ? b(L) : console.assert(!1) : i === "comp" && U === "common" ? b(L) : console.assert(!1), L;
|
|
1042
1042
|
}), z = Io("chart");
|
|
@@ -1049,13 +1049,13 @@ const kr = /* @__PURE__ */ S({
|
|
|
1049
1049
|
T?.resize();
|
|
1050
1050
|
}, j = () => {
|
|
1051
1051
|
const L = {};
|
|
1052
|
-
g(L), k(L),
|
|
1052
|
+
g(L), k(L), _(L), x(L), h(L), T?.setOption(L, !0);
|
|
1053
1053
|
};
|
|
1054
1054
|
return So(async () => {
|
|
1055
1055
|
window.addEventListener("resize", Y, !1), await Vo(() => !!z.value), J(), j();
|
|
1056
1056
|
}), Ie(() => {
|
|
1057
1057
|
window.removeEventListener("resize", Y, !1), T?.dispose();
|
|
1058
|
-
}),
|
|
1058
|
+
}), pe(
|
|
1059
1059
|
[
|
|
1060
1060
|
() => o.value.width,
|
|
1061
1061
|
() => o.value.height,
|
|
@@ -1069,9 +1069,9 @@ const kr = /* @__PURE__ */ S({
|
|
|
1069
1069
|
async () => {
|
|
1070
1070
|
await sn(), Y();
|
|
1071
1071
|
}
|
|
1072
|
-
),
|
|
1072
|
+
), pe([s], () => {
|
|
1073
1073
|
J(), j();
|
|
1074
|
-
}),
|
|
1074
|
+
}), pe(
|
|
1075
1075
|
[n],
|
|
1076
1076
|
() => {
|
|
1077
1077
|
j();
|
|
@@ -1084,7 +1084,7 @@ const kr = /* @__PURE__ */ S({
|
|
|
1084
1084
|
default: V(() => [
|
|
1085
1085
|
We("div", {
|
|
1086
1086
|
ref: "chart",
|
|
1087
|
-
style:
|
|
1087
|
+
style: de(v.value)
|
|
1088
1088
|
}, null, 4)
|
|
1089
1089
|
]),
|
|
1090
1090
|
_: 1
|
|
@@ -1136,21 +1136,21 @@ const kr = /* @__PURE__ */ S({
|
|
|
1136
1136
|
refContext: {}
|
|
1137
1137
|
},
|
|
1138
1138
|
setup(t) {
|
|
1139
|
-
const n = t, { node: e } = P(n), o =
|
|
1139
|
+
const n = t, { node: e } = P(n), o = _e(), { property: s } = a(e, [
|
|
1140
1140
|
"settings",
|
|
1141
1141
|
"addIcon",
|
|
1142
1142
|
"append"
|
|
1143
1143
|
]), { property: i } = a(e, ["settings", "block"]), { property: l } = a(e, ["settings", "color"]), { color: c } = Q(l), { property: u } = a(e, ["settings", "density"]), { property: m } = a(e, [
|
|
1144
1144
|
"settings",
|
|
1145
1145
|
"disabled"
|
|
1146
|
-
]), { property: d } = a(e, ["size", "height"]), { property: p } = a(e, ["settings", "loading"]), { property: f } = a(e, ["size", "maxHeight"]), { property: b } = a(e, ["size", "maxWidth"]), { property: g } = a(e, ["size", "minHeight"]), { property: k } = a(e, ["size", "minWidth"]), { property:
|
|
1146
|
+
]), { property: d } = a(e, ["size", "height"]), { property: p } = a(e, ["settings", "loading"]), { property: f } = a(e, ["size", "maxHeight"]), { property: b } = a(e, ["size", "maxWidth"]), { property: g } = a(e, ["size", "minHeight"]), { property: k } = a(e, ["size", "minWidth"]), { property: _ } = a(e, [
|
|
1147
1147
|
"settings",
|
|
1148
1148
|
"addIcon",
|
|
1149
1149
|
"prepend"
|
|
1150
1150
|
]), { property: x } = a(e, [
|
|
1151
1151
|
"settings",
|
|
1152
1152
|
"readonly"
|
|
1153
|
-
]), { property:
|
|
1153
|
+
]), { property: h } = a(e, ["settings", "ripple"]), { property: v } = a(e, ["settings", "size"]), { property: z } = a(e, ["settings", "stacked"]), { property: T } = a(e, ["settings", "text"]), { theme: J } = H(), { property: Y } = a(e, ["settings", "variant"]), { property: j } = a(e, ["size", "width"]), L = async (U) => {
|
|
1154
1154
|
if (!o || !o.vm)
|
|
1155
1155
|
return;
|
|
1156
1156
|
const { vm: oe } = o;
|
|
@@ -1161,13 +1161,13 @@ const kr = /* @__PURE__ */ S({
|
|
|
1161
1161
|
);
|
|
1162
1162
|
};
|
|
1163
1163
|
return (U, oe) => {
|
|
1164
|
-
const
|
|
1164
|
+
const ge = R("v-btn");
|
|
1165
1165
|
return w(), C(r(G), {
|
|
1166
1166
|
block: r(i),
|
|
1167
1167
|
mask: ""
|
|
1168
1168
|
}, {
|
|
1169
1169
|
default: V(() => [
|
|
1170
|
-
D(
|
|
1170
|
+
D(ge, {
|
|
1171
1171
|
"append-icon": r(s),
|
|
1172
1172
|
block: r(i),
|
|
1173
1173
|
color: r(c),
|
|
@@ -1179,9 +1179,9 @@ const kr = /* @__PURE__ */ S({
|
|
|
1179
1179
|
"max-width": r(b),
|
|
1180
1180
|
"min-height": r(g),
|
|
1181
1181
|
"min-width": r(k),
|
|
1182
|
-
"prepend-icon": r(
|
|
1182
|
+
"prepend-icon": r(_),
|
|
1183
1183
|
readonly: r(x),
|
|
1184
|
-
ripple: r(
|
|
1184
|
+
ripple: r(h),
|
|
1185
1185
|
size: r(v),
|
|
1186
1186
|
stacked: r(z),
|
|
1187
1187
|
text: r(T),
|
|
@@ -1227,8 +1227,8 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1227
1227
|
"readonly"
|
|
1228
1228
|
]), { property: m } = a(e, ["settings", "size"]), { property: d } = a(e, ["settings", "stacked"]), { theme: p } = H(), { property: f } = a(e, ["settings", "tile"]), { property: b } = a(e, ["settings", "variant"]);
|
|
1229
1229
|
return (g, k) => {
|
|
1230
|
-
const
|
|
1231
|
-
return w(), C(
|
|
1230
|
+
const _ = R("v-btn-toggle");
|
|
1231
|
+
return w(), C(_, {
|
|
1232
1232
|
block: r(o),
|
|
1233
1233
|
disabled: r(s),
|
|
1234
1234
|
divided: r(i),
|
|
@@ -1262,8 +1262,8 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1262
1262
|
]), { property: i } = a(e, ["size", "height"]), { property: l } = a(e, ["settings", "hover"]), { property: c } = a(e, ["settings", "loading"]), { property: u } = a(e, ["size", "maxHeight"]), { property: m } = a(e, ["size", "maxWidth"]), { property: d } = a(e, ["size", "minHeight"]), { property: p } = a(e, ["size", "minWidth"]), { property: f } = a(e, [
|
|
1263
1263
|
"settings",
|
|
1264
1264
|
"subtitle"
|
|
1265
|
-
]), { property: b } = a(e, ["settings", "text"]), { theme: g } = H(), { property: k } = a(e, ["settings", "title"]), { property:
|
|
1266
|
-
return (
|
|
1265
|
+
]), { property: b } = a(e, ["settings", "text"]), { theme: g } = H(), { property: k } = a(e, ["settings", "title"]), { property: _ } = a(e, ["settings", "variant"]), { property: x } = a(e, ["size", "width"]);
|
|
1266
|
+
return (h, v) => {
|
|
1267
1267
|
const z = R("v-card");
|
|
1268
1268
|
return w(), C(r(G), { block: "" }, {
|
|
1269
1269
|
default: V(() => [
|
|
@@ -1281,11 +1281,11 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1281
1281
|
text: r(b),
|
|
1282
1282
|
theme: r(g),
|
|
1283
1283
|
title: r(k),
|
|
1284
|
-
variant: r(
|
|
1284
|
+
variant: r(_),
|
|
1285
1285
|
width: r(x)
|
|
1286
1286
|
}, {
|
|
1287
1287
|
default: V(() => [
|
|
1288
|
-
O(
|
|
1288
|
+
O(h.$slots, "default")
|
|
1289
1289
|
]),
|
|
1290
1290
|
_: 3
|
|
1291
1291
|
}, 8, ["density", "disabled", "height", "hover", "loading", "max-height", "max-width", "min-height", "min-width", "subtitle", "text", "theme", "title", "variant", "width"])
|
|
@@ -1339,8 +1339,8 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1339
1339
|
]), { property: u } = a(e, [
|
|
1340
1340
|
"settings",
|
|
1341
1341
|
"draggable"
|
|
1342
|
-
]), { property: m } = a(e, ["settings", "filter"]), { property: d } = a(e, ["settings", "label"]), { property: p } = a(e, ["settings", "size"]), { property: f } = a(e, ["settings", "text"]), { theme: b } = H(), { property: g } = a(e, ["settings", "tile"]), { property: k } = a(e, ["settings", "value"]), { property:
|
|
1343
|
-
return (x,
|
|
1342
|
+
]), { property: m } = a(e, ["settings", "filter"]), { property: d } = a(e, ["settings", "label"]), { property: p } = a(e, ["settings", "size"]), { property: f } = a(e, ["settings", "text"]), { theme: b } = H(), { property: g } = a(e, ["settings", "tile"]), { property: k } = a(e, ["settings", "value"]), { property: _ } = a(e, ["settings", "variant"]);
|
|
1343
|
+
return (x, h) => {
|
|
1344
1344
|
const v = R("v-chip");
|
|
1345
1345
|
return w(), C(r(G), { mask: "" }, {
|
|
1346
1346
|
default: V(() => [
|
|
@@ -1357,7 +1357,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1357
1357
|
theme: r(b),
|
|
1358
1358
|
tile: r(g),
|
|
1359
1359
|
value: r(k),
|
|
1360
|
-
variant: r(
|
|
1360
|
+
variant: r(_)
|
|
1361
1361
|
}, null, 8, ["closable", "color", "density", "disabled", "draggable", "filter", "label", "size", "text", "theme", "tile", "value", "variant"])
|
|
1362
1362
|
]),
|
|
1363
1363
|
_: 1
|
|
@@ -1417,9 +1417,9 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1417
1417
|
refContext: {}
|
|
1418
1418
|
},
|
|
1419
1419
|
setup(t) {
|
|
1420
|
-
const n = t, { node: e } = P(n), o = Se(), s = le(), { applySize: i } =
|
|
1421
|
-
const k = {},
|
|
1422
|
-
return o === "page" ?
|
|
1420
|
+
const n = t, { node: e } = P(n), o = Se(), s = le(), { applySize: i } = be(n, e), l = I(() => {
|
|
1421
|
+
const k = {}, _ = s.value?.type;
|
|
1422
|
+
return o === "page" ? _ === "common" ? i(k) : console.assert(!1) : o === "comp" && _ === "common" ? i(k) : console.assert(!1), k;
|
|
1423
1423
|
}), { property: c } = a(e, [
|
|
1424
1424
|
"settings",
|
|
1425
1425
|
"disabled"
|
|
@@ -1442,7 +1442,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1442
1442
|
"settings",
|
|
1443
1443
|
"showSwatches"
|
|
1444
1444
|
]), { theme: g } = H();
|
|
1445
|
-
return (k,
|
|
1445
|
+
return (k, _) => {
|
|
1446
1446
|
const x = R("v-color-picker");
|
|
1447
1447
|
return w(), C(r(G), { mask: "" }, {
|
|
1448
1448
|
default: V(() => [
|
|
@@ -1454,7 +1454,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1454
1454
|
"hide-sliders": r(p),
|
|
1455
1455
|
landscape: r(f),
|
|
1456
1456
|
"show-swatches": r(b),
|
|
1457
|
-
style:
|
|
1457
|
+
style: de(l.value),
|
|
1458
1458
|
theme: r(g)
|
|
1459
1459
|
}, null, 8, ["disabled", "hide-canvas", "hide-header", "hide-inputs", "hide-sliders", "landscape", "show-swatches", "style", "theme"])
|
|
1460
1460
|
]),
|
|
@@ -1513,14 +1513,14 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1513
1513
|
const n = t, { node: e } = P(n), o = Se(), s = le(), { property: i } = a(e, [
|
|
1514
1514
|
"settings",
|
|
1515
1515
|
"backgroundColor"
|
|
1516
|
-
]), { color: l } = Q(i), { applySize: c } =
|
|
1516
|
+
]), { color: l } = Q(i), { applySize: c } = be(n, e), { applyMargin: u } = pn(e), { applyPadding: m } = dn(e), { applyBorder: d } = mn(e), p = I(() => {
|
|
1517
1517
|
const f = {}, b = s.value?.type;
|
|
1518
1518
|
return o === "page" ? b === "common" ? (c(f), u(f), m(f), d(f), l.value && (f.backgroundColor = l.value)) : console.assert(!1) : o === "comp" && b === "common" ? (c(f), u(f), m(f), d(f), l.value && (f.backgroundColor = l.value)) : console.assert(!1), f;
|
|
1519
1519
|
});
|
|
1520
1520
|
return (f, b) => (w(), C(r(G), { block: "" }, {
|
|
1521
1521
|
default: V(() => [
|
|
1522
1522
|
We("div", {
|
|
1523
|
-
style:
|
|
1523
|
+
style: de(p.value)
|
|
1524
1524
|
}, [
|
|
1525
1525
|
O(f.$slots, "default")
|
|
1526
1526
|
], 4)
|
|
@@ -1539,7 +1539,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1539
1539
|
const n = t, e = Z(), o = Qe(), s = se();
|
|
1540
1540
|
Pe(s);
|
|
1541
1541
|
const i = I(() => n.refContext.compId);
|
|
1542
|
-
et(i, s),
|
|
1542
|
+
et(i, s), ke(e) && tt(s, "elementSlot", "", "", _e());
|
|
1543
1543
|
function l(u) {
|
|
1544
1544
|
const m = we[u.key];
|
|
1545
1545
|
if (!m) {
|
|
@@ -1567,7 +1567,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1567
1567
|
);
|
|
1568
1568
|
}
|
|
1569
1569
|
const c = () => {
|
|
1570
|
-
const { i18n: u } =
|
|
1570
|
+
const { i18n: u } = he;
|
|
1571
1571
|
if (Ye(n.refContext, o))
|
|
1572
1572
|
return K("div", null, u.global.t("x-runtime-lib.circularReference"));
|
|
1573
1573
|
if (!s.value)
|
|
@@ -1599,7 +1599,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1599
1599
|
"settings",
|
|
1600
1600
|
"multiSort"
|
|
1601
1601
|
]), { theme: f } = H(), { property: b } = a(e, ["size", "width"]), { property: g } = a(e, ["slots", "columns"]);
|
|
1602
|
-
return (k,
|
|
1602
|
+
return (k, _) => {
|
|
1603
1603
|
const x = R("v-data-table");
|
|
1604
1604
|
return w(), C(r(G), {
|
|
1605
1605
|
block: "",
|
|
@@ -1619,8 +1619,8 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1619
1619
|
theme: r(f),
|
|
1620
1620
|
width: r(b)
|
|
1621
1621
|
}, rn({ _: 2 }, [
|
|
1622
|
-
ii(r(g), ({ key:
|
|
1623
|
-
name: `item.${
|
|
1622
|
+
ii(r(g), ({ key: h, comp: v }) => ({
|
|
1623
|
+
name: `item.${h}`,
|
|
1624
1624
|
fn: V(({ value: z }) => [
|
|
1625
1625
|
D(Rr, {
|
|
1626
1626
|
"node-id": n.nodeId,
|
|
@@ -1740,17 +1740,17 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1740
1740
|
refContext: {}
|
|
1741
1741
|
},
|
|
1742
1742
|
setup(t) {
|
|
1743
|
-
const n = t, { node: e } = P(n), o = De(), s = Se(), i = le(), { applySize: l } =
|
|
1743
|
+
const n = t, { node: e } = P(n), o = De(), s = Se(), i = le(), { applySize: l } = be(n, e), { applyMargin: c } = pn(e), { applyPadding: u } = dn(e), { applyBorder: m } = mn(e), { property: d } = a(e, [
|
|
1744
1744
|
"settings",
|
|
1745
1745
|
"backgroundColor"
|
|
1746
1746
|
]), { color: p } = Q(d), f = (g) => {
|
|
1747
1747
|
p.value && (g.backgroundColor = p.value), g.display = "flex";
|
|
1748
|
-
const k = mt(o.value.width),
|
|
1749
|
-
|
|
1748
|
+
const k = mt(o.value.width), _ = Ne(k, e.value.settings?.direction);
|
|
1749
|
+
_ === "row" ? g.flexDirection = "row" : _ === "rowReverse" ? g.flexDirection = "row-reverse" : _ === "column" ? g.flexDirection = "column" : _ === "columnReverse" && (g.flexDirection = "column-reverse");
|
|
1750
1750
|
const x = Ne(k, e.value.settings?.wrap);
|
|
1751
1751
|
x === "no" ? g.flexWrap = "nowrap" : x === "yes" ? g.flexWrap = "wrap" : x === "reverse" && (g.flexWrap = "wrap-reverse");
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1752
|
+
const h = Ne(k, e.value.settings?.mainAlign);
|
|
1753
|
+
h === "start" ? g.justifyContent = "flex-start" : h === "end" ? g.justifyContent = "flex-end" : h === "center" ? g.justifyContent = "center" : h === "spaceBetween" ? g.justifyContent = "space-between" : h === "spaceAround" ? g.justifyContent = "space-around" : h === "spaceEvenly" && (g.justifyContent = "space-evenly");
|
|
1754
1754
|
const v = Ne(k, e.value.settings?.crossAlign);
|
|
1755
1755
|
v === "start" ? g.alignItems = "flex-start" : v === "end" ? g.alignItems = "flex-end" : v === "center" ? g.alignItems = "center" : v === "baseline" ? g.alignItems = "baseline" : v === "stretch" && (g.alignItems = "stretch");
|
|
1756
1756
|
}, b = I(() => {
|
|
@@ -1758,7 +1758,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1758
1758
|
return s === "page" ? k === "common" ? (l(g), c(g), u(g), m(g), f(g)) : console.assert(!1) : s === "comp" && k === "common" ? (l(g), c(g), u(g), m(g), f(g)) : console.assert(!1), g;
|
|
1759
1759
|
});
|
|
1760
1760
|
return (g, k) => (w(), te("div", {
|
|
1761
|
-
style:
|
|
1761
|
+
style: de(b.value)
|
|
1762
1762
|
}, [
|
|
1763
1763
|
O(g.$slots, "default")
|
|
1764
1764
|
], 4));
|
|
@@ -1771,12 +1771,12 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1771
1771
|
refContext: {}
|
|
1772
1772
|
},
|
|
1773
1773
|
setup(t) {
|
|
1774
|
-
const n = t, { node: e } = P(n), o = Se(), s = le(), { applySize: i } =
|
|
1774
|
+
const n = t, { node: e } = P(n), o = Se(), s = le(), { applySize: i } = be(n, e), { property: l } = a(e, ["settings", "grow"]), { property: c } = a(e, ["settings", "shrink"]), u = I(() => {
|
|
1775
1775
|
const m = {}, d = s.value?.type;
|
|
1776
1776
|
return o === "page" ? d === "common" ? (i(m), m.flexGrow = l.value ? 1 : 0, m.flexShrink = c.value ? 1 : 0) : console.assert(!1) : o === "comp" && d === "common" ? (i(m), m.flexGrow = l.value ? 1 : 0, m.flexShrink = c.value ? 1 : 0) : console.assert(!1), m;
|
|
1777
1777
|
});
|
|
1778
1778
|
return (m, d) => (w(), te("div", {
|
|
1779
|
-
style:
|
|
1779
|
+
style: de(u.value)
|
|
1780
1780
|
}, [
|
|
1781
1781
|
O(m.$slots, "default")
|
|
1782
1782
|
], 4));
|
|
@@ -1789,15 +1789,15 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1789
1789
|
refContext: {}
|
|
1790
1790
|
},
|
|
1791
1791
|
setup(t) {
|
|
1792
|
-
const n = t, { node: e } = P(n), o = Se(), s = le(), i =
|
|
1792
|
+
const n = t, { node: e } = P(n), o = Se(), s = le(), i = _e(), { property: l } = a(e, ["settings", "valid"]), { property: c } = a(e, [
|
|
1793
1793
|
"settings",
|
|
1794
1794
|
"fastFail"
|
|
1795
1795
|
]), { property: u } = a(e, [
|
|
1796
1796
|
"settings",
|
|
1797
1797
|
"backgroundColor"
|
|
1798
|
-
]), { color: m } = Q(u), { applySize: d } =
|
|
1799
|
-
const
|
|
1800
|
-
return o === "page" ? x === "common" ? (d(
|
|
1798
|
+
]), { color: m } = Q(u), { applySize: d } = be(n, e), { applyMargin: p } = pn(e), { applyPadding: f } = dn(e), { applyBorder: b } = mn(e), g = I(() => {
|
|
1799
|
+
const _ = {}, x = s.value?.type;
|
|
1800
|
+
return o === "page" ? x === "common" ? (d(_), p(_), f(_), b(_), m.value && (_.backgroundColor = m.value)) : console.assert(!1) : o === "comp" && x === "common" ? (d(_), p(_), f(_), b(_), m.value && (_.backgroundColor = m.value)) : console.assert(!1), _;
|
|
1801
1801
|
}), k = async () => {
|
|
1802
1802
|
await i?.callFunctionAsync(
|
|
1803
1803
|
"__triggerEventV1__",
|
|
@@ -1805,17 +1805,17 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1805
1805
|
""
|
|
1806
1806
|
);
|
|
1807
1807
|
};
|
|
1808
|
-
return (
|
|
1809
|
-
const
|
|
1810
|
-
return w(), C(
|
|
1808
|
+
return (_, x) => {
|
|
1809
|
+
const h = R("v-form");
|
|
1810
|
+
return w(), C(h, {
|
|
1811
1811
|
modelValue: r(l),
|
|
1812
1812
|
"onUpdate:modelValue": x[0] || (x[0] = (v) => ne(l) ? l.value = v : null),
|
|
1813
1813
|
"fast-fail": r(c),
|
|
1814
|
-
style:
|
|
1814
|
+
style: de(g.value),
|
|
1815
1815
|
onSubmit: si(k, ["prevent"])
|
|
1816
1816
|
}, {
|
|
1817
1817
|
default: V(() => [
|
|
1818
|
-
O(
|
|
1818
|
+
O(_.$slots, "default")
|
|
1819
1819
|
]),
|
|
1820
1820
|
_: 3
|
|
1821
1821
|
}, 8, ["modelValue", "fast-fail", "style"]);
|
|
@@ -1852,7 +1852,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1852
1852
|
refContext: {}
|
|
1853
1853
|
},
|
|
1854
1854
|
setup(t) {
|
|
1855
|
-
const n = t, e = Z(), o =
|
|
1855
|
+
const n = t, e = Z(), o = _e(), s = se(0), i = se(0), l = I(() => [s.value, i.value]), { open: c } = Po(`runtimeMenu/${$o()}`);
|
|
1856
1856
|
return pt(n.nodeId, "open", () => {
|
|
1857
1857
|
if (!o || !o.vm)
|
|
1858
1858
|
return;
|
|
@@ -1911,7 +1911,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1911
1911
|
]), { property: g } = a(e, [
|
|
1912
1912
|
"settings",
|
|
1913
1913
|
"precision"
|
|
1914
|
-
]), { property: k } = a(e, ["settings", "prefix"]), { property:
|
|
1914
|
+
]), { property: k } = a(e, ["settings", "prefix"]), { property: _ } = a(e, [
|
|
1915
1915
|
"settings",
|
|
1916
1916
|
"addIcon",
|
|
1917
1917
|
"prepend"
|
|
@@ -1919,14 +1919,14 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1919
1919
|
"settings",
|
|
1920
1920
|
"addIcon",
|
|
1921
1921
|
"prependInner"
|
|
1922
|
-
]), { property:
|
|
1922
|
+
]), { property: h } = a(e, [
|
|
1923
1923
|
"settings",
|
|
1924
1924
|
"readonly"
|
|
1925
1925
|
]), { property: v } = a(e, ["settings", "reverse"]), { property: z } = a(e, [
|
|
1926
1926
|
"settings",
|
|
1927
1927
|
"singleLine"
|
|
1928
1928
|
]), { property: T } = a(e, ["settings", "step"]), { property: J } = a(e, ["settings", "suffix"]), { theme: Y } = H(), { property: j } = a(e, ["settings", "value"]), { property: L } = a(e, ["settings", "variant"]), { property: U } = a(e, ["size", "width"]);
|
|
1929
|
-
return (oe,
|
|
1929
|
+
return (oe, ge) => {
|
|
1930
1930
|
const Le = R("v-number-input");
|
|
1931
1931
|
return w(), C(r(G), {
|
|
1932
1932
|
block: "",
|
|
@@ -1935,7 +1935,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1935
1935
|
default: V(() => [
|
|
1936
1936
|
D(Le, {
|
|
1937
1937
|
modelValue: r(j),
|
|
1938
|
-
"onUpdate:modelValue":
|
|
1938
|
+
"onUpdate:modelValue": ge[0] || (ge[0] = (ve) => ne(j) ? j.value = ve : null),
|
|
1939
1939
|
"append-icon": r(o),
|
|
1940
1940
|
"append-inner-icon": r(s),
|
|
1941
1941
|
clearable: r(i),
|
|
@@ -1949,9 +1949,9 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1949
1949
|
placeholder: r(b),
|
|
1950
1950
|
precision: r(g),
|
|
1951
1951
|
prefix: r(k),
|
|
1952
|
-
"prepend-icon": r(
|
|
1952
|
+
"prepend-icon": r(_),
|
|
1953
1953
|
"prepend-inner-icon": r(x),
|
|
1954
|
-
readonly: r(
|
|
1954
|
+
readonly: r(h),
|
|
1955
1955
|
reverse: r(v),
|
|
1956
1956
|
"single-line": r(z),
|
|
1957
1957
|
step: r(T),
|
|
@@ -1983,7 +1983,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1983
1983
|
const k = {};
|
|
1984
1984
|
return o === "editor" && (k.pointerEvents = "none"), k;
|
|
1985
1985
|
});
|
|
1986
|
-
return (k,
|
|
1986
|
+
return (k, _) => {
|
|
1987
1987
|
const x = R("v-pagination");
|
|
1988
1988
|
return w(), C(r(G), {
|
|
1989
1989
|
block: "",
|
|
@@ -1992,14 +1992,14 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
1992
1992
|
default: V(() => [
|
|
1993
1993
|
D(x, {
|
|
1994
1994
|
modelValue: r(f),
|
|
1995
|
-
"onUpdate:modelValue":
|
|
1995
|
+
"onUpdate:modelValue": _[0] || (_[0] = (h) => ne(f) ? f.value = h : null),
|
|
1996
1996
|
density: r(s),
|
|
1997
1997
|
disabled: r(i),
|
|
1998
1998
|
length: r(l),
|
|
1999
1999
|
"show-first-last-page": r(c),
|
|
2000
2000
|
size: r(u),
|
|
2001
2001
|
start: r(m),
|
|
2002
|
-
style:
|
|
2002
|
+
style: de(g.value),
|
|
2003
2003
|
theme: r(d),
|
|
2004
2004
|
tile: r(p),
|
|
2005
2005
|
variant: r(b)
|
|
@@ -2110,7 +2110,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
2110
2110
|
}), { property: b } = a(e, ["settings", "step"]), { theme: g } = H(), { property: k } = a(e, [
|
|
2111
2111
|
"settings",
|
|
2112
2112
|
"thumbLabel"
|
|
2113
|
-
]),
|
|
2113
|
+
]), _ = I(() => {
|
|
2114
2114
|
if (k.value === "always")
|
|
2115
2115
|
return "always";
|
|
2116
2116
|
if (k.value === "show")
|
|
@@ -2118,11 +2118,11 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
2118
2118
|
}), { property: x } = a(e, [
|
|
2119
2119
|
"settings",
|
|
2120
2120
|
"thumbSize"
|
|
2121
|
-
]), { property:
|
|
2122
|
-
if (!
|
|
2121
|
+
]), { property: h } = a(e, ["settings", "ticks"]), v = I(() => {
|
|
2122
|
+
if (!h.value)
|
|
2123
2123
|
return;
|
|
2124
2124
|
const j = {};
|
|
2125
|
-
for (const { value: L, label: U } of
|
|
2125
|
+
for (const { value: L, label: U } of h.value)
|
|
2126
2126
|
j[L] = U;
|
|
2127
2127
|
if (!Wo(j))
|
|
2128
2128
|
return j;
|
|
@@ -2164,7 +2164,7 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
2164
2164
|
"show-ticks": f.value,
|
|
2165
2165
|
step: r(b),
|
|
2166
2166
|
theme: r(g),
|
|
2167
|
-
"thumb-label":
|
|
2167
|
+
"thumb-label": _.value,
|
|
2168
2168
|
"thumb-size": r(x),
|
|
2169
2169
|
"tick-size": r(z),
|
|
2170
2170
|
ticks: v.value
|
|
@@ -2287,10 +2287,10 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
2287
2287
|
return "always";
|
|
2288
2288
|
if (b.value === "show")
|
|
2289
2289
|
return !0;
|
|
2290
|
-
}), { property: k } = a(e, ["settings", "step"]), { theme:
|
|
2290
|
+
}), { property: k } = a(e, ["settings", "step"]), { theme: _ } = H(), { property: x } = a(e, [
|
|
2291
2291
|
"settings",
|
|
2292
2292
|
"thumbColor"
|
|
2293
|
-
]), { color:
|
|
2293
|
+
]), { color: h } = Q(x), { property: v } = a(e, [
|
|
2294
2294
|
"settings",
|
|
2295
2295
|
"thumbLabel"
|
|
2296
2296
|
]), z = I(() => {
|
|
@@ -2304,19 +2304,19 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
2304
2304
|
]), { property: J } = a(e, ["settings", "ticks"]), Y = I(() => {
|
|
2305
2305
|
if (!J.value)
|
|
2306
2306
|
return;
|
|
2307
|
-
const
|
|
2307
|
+
const ve = {};
|
|
2308
2308
|
for (const { value: nt, label: wt } of J.value)
|
|
2309
|
-
|
|
2310
|
-
if (!Wo(
|
|
2311
|
-
return
|
|
2309
|
+
ve[nt] = wt;
|
|
2310
|
+
if (!Wo(ve))
|
|
2311
|
+
return ve;
|
|
2312
2312
|
}), { property: j } = a(e, [
|
|
2313
2313
|
"settings",
|
|
2314
2314
|
"tickSize"
|
|
2315
2315
|
]), { property: L } = a(e, [
|
|
2316
2316
|
"settings",
|
|
2317
2317
|
"trackColor"
|
|
2318
|
-
]), { color: U } = Q(L), { property: oe } = a(e, ["settings", "value"]), { property:
|
|
2319
|
-
return (
|
|
2318
|
+
]), { color: U } = Q(L), { property: oe } = a(e, ["settings", "value"]), { property: ge } = a(e, ["slots", "append"]), { property: Le } = a(e, ["slots", "prepend"]);
|
|
2319
|
+
return (ve, nt) => {
|
|
2320
2320
|
const wt = R("v-slider");
|
|
2321
2321
|
return w(), C(r(G), {
|
|
2322
2322
|
block: "",
|
|
@@ -2337,20 +2337,20 @@ const Vr = /* @__PURE__ */ Be($r, [["render", Cr]]), Pr = /* @__PURE__ */ S({
|
|
|
2337
2337
|
reverse: r(f),
|
|
2338
2338
|
"show-ticks": g.value,
|
|
2339
2339
|
step: r(k),
|
|
2340
|
-
theme: r(
|
|
2341
|
-
"thumb-color": r(
|
|
2340
|
+
theme: r(_),
|
|
2341
|
+
"thumb-color": r(h),
|
|
2342
2342
|
"thumb-label": z.value,
|
|
2343
2343
|
"thumb-size": r(T),
|
|
2344
2344
|
"tick-size": r(j),
|
|
2345
2345
|
ticks: Y.value,
|
|
2346
2346
|
"track-color": r(U)
|
|
2347
2347
|
}, rn({ _: 2 }, [
|
|
2348
|
-
r(
|
|
2348
|
+
r(ge) ? {
|
|
2349
2349
|
name: "append",
|
|
2350
2350
|
fn: V(() => [
|
|
2351
2351
|
D(r(Ce), {
|
|
2352
2352
|
"node-id": "append",
|
|
2353
|
-
"ref-context": { compId: r(
|
|
2353
|
+
"ref-context": { compId: r(ge) },
|
|
2354
2354
|
state: {}
|
|
2355
2355
|
}, null, 8, ["ref-context"])
|
|
2356
2356
|
]),
|
|
@@ -2480,10 +2480,10 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2480
2480
|
"indeterminate"
|
|
2481
2481
|
]), { property: u } = a(e, ["settings", "inline"]), { property: m } = a(e, ["settings", "inset"]), { property: d } = a(e, ["settings", "label"]), { property: p } = a(e, ["settings", "loading"]), { theme: f } = H(), { property: b } = a(e, ["settings", "value"]);
|
|
2482
2482
|
return (g, k) => {
|
|
2483
|
-
const
|
|
2483
|
+
const _ = R("v-switch");
|
|
2484
2484
|
return w(), C(r(G), { mask: "" }, {
|
|
2485
2485
|
default: V(() => [
|
|
2486
|
-
D(
|
|
2486
|
+
D(_, {
|
|
2487
2487
|
modelValue: r(b),
|
|
2488
2488
|
"onUpdate:modelValue": k[0] || (k[0] = (x) => ne(b) ? b.value = x : null),
|
|
2489
2489
|
density: r(o),
|
|
@@ -2519,7 +2519,7 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2519
2519
|
return w(), C(r(G), { mask: "" }, {
|
|
2520
2520
|
default: V(() => [
|
|
2521
2521
|
D(d, {
|
|
2522
|
-
style:
|
|
2522
|
+
style: de(c.value),
|
|
2523
2523
|
text: r(s),
|
|
2524
2524
|
theme: r(i),
|
|
2525
2525
|
value: r(l)
|
|
@@ -2563,17 +2563,17 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2563
2563
|
]), { property: b } = a(e, ["settings", "grow"]), { property: g } = a(e, [
|
|
2564
2564
|
"settings",
|
|
2565
2565
|
"hideSlider"
|
|
2566
|
-
]), { property: k } = a(e, ["settings", "items"]), { property:
|
|
2566
|
+
]), { property: k } = a(e, ["settings", "items"]), { property: _ } = a(e, [
|
|
2567
2567
|
"settings",
|
|
2568
2568
|
"mandatory"
|
|
2569
2569
|
]), { property: x } = a(e, [
|
|
2570
2570
|
"settings",
|
|
2571
2571
|
"showArrows"
|
|
2572
|
-
]), { property:
|
|
2572
|
+
]), { property: h } = a(e, [
|
|
2573
2573
|
"settings",
|
|
2574
2574
|
"color",
|
|
2575
2575
|
"sliderColor"
|
|
2576
|
-
]), { color: v } = Q(
|
|
2576
|
+
]), { color: v } = Q(h), { property: z } = a(e, ["settings", "stacked"]), { theme: T } = H(), { property: J } = a(e, ["settings", "value"]);
|
|
2577
2577
|
return (Y, j) => {
|
|
2578
2578
|
const L = R("v-tabs");
|
|
2579
2579
|
return w(), C(r(G), {
|
|
@@ -2595,7 +2595,7 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2595
2595
|
grow: r(b),
|
|
2596
2596
|
"hide-slider": r(g),
|
|
2597
2597
|
items: r(k),
|
|
2598
|
-
mandatory: r(
|
|
2598
|
+
mandatory: r(_),
|
|
2599
2599
|
"show-arrows": r(x),
|
|
2600
2600
|
"slider-color": r(v),
|
|
2601
2601
|
stacked: r(z),
|
|
@@ -2664,8 +2664,8 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2664
2664
|
]), { property: f } = a(e, ["settings", "reverse"]), { property: b } = a(e, ["settings", "rows"]), { property: g } = a(e, [
|
|
2665
2665
|
"settings",
|
|
2666
2666
|
"singleLine"
|
|
2667
|
-
]), { theme: k } = H(), { property:
|
|
2668
|
-
return (
|
|
2667
|
+
]), { theme: k } = H(), { property: _ } = a(e, ["settings", "value"]), { property: x } = a(e, ["settings", "variant"]);
|
|
2668
|
+
return (h, v) => {
|
|
2669
2669
|
const z = R("v-textarea");
|
|
2670
2670
|
return w(), C(r(G), {
|
|
2671
2671
|
block: "",
|
|
@@ -2673,8 +2673,8 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2673
2673
|
}, {
|
|
2674
2674
|
default: V(() => [
|
|
2675
2675
|
D(z, {
|
|
2676
|
-
modelValue: r(
|
|
2677
|
-
"onUpdate:modelValue": v[0] || (v[0] = (T) => ne(
|
|
2676
|
+
modelValue: r(_),
|
|
2677
|
+
"onUpdate:modelValue": v[0] || (v[0] = (T) => ne(_) ? _.value = T : null),
|
|
2678
2678
|
"auto-grow": r(o),
|
|
2679
2679
|
clearable: r(s),
|
|
2680
2680
|
density: r(i),
|
|
@@ -2730,10 +2730,10 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2730
2730
|
]), { property: k } = a(e, [
|
|
2731
2731
|
"settings",
|
|
2732
2732
|
"prependInnerIcon"
|
|
2733
|
-
]), { property:
|
|
2733
|
+
]), { property: _ } = a(e, [
|
|
2734
2734
|
"settings",
|
|
2735
2735
|
"readonly"
|
|
2736
|
-
]), { property: x } = a(e, ["settings", "reverse"]), { property:
|
|
2736
|
+
]), { property: x } = a(e, ["settings", "reverse"]), { property: h } = a(e, [
|
|
2737
2737
|
"settings",
|
|
2738
2738
|
"singleLine"
|
|
2739
2739
|
]), { property: v } = a(e, ["settings", "suffix"]), { theme: z } = H(), { property: T } = a(e, ["settings", "value"]), { property: J } = a(e, ["settings", "variant"]), { property: Y } = a(e, ["slots", "append"]), { property: j } = a(e, [
|
|
@@ -2743,7 +2743,7 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2743
2743
|
"slots",
|
|
2744
2744
|
"prependInner"
|
|
2745
2745
|
]);
|
|
2746
|
-
return (oe,
|
|
2746
|
+
return (oe, ge) => {
|
|
2747
2747
|
const Le = R("v-text-field");
|
|
2748
2748
|
return w(), C(r(G), {
|
|
2749
2749
|
block: "",
|
|
@@ -2752,7 +2752,7 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2752
2752
|
default: V(() => [
|
|
2753
2753
|
D(Le, {
|
|
2754
2754
|
modelValue: r(T),
|
|
2755
|
-
"onUpdate:modelValue":
|
|
2755
|
+
"onUpdate:modelValue": ge[0] || (ge[0] = (ve) => ne(T) ? T.value = ve : null),
|
|
2756
2756
|
"append-icon": r(o),
|
|
2757
2757
|
"append-inner-icon": r(s),
|
|
2758
2758
|
autofocus: r(i),
|
|
@@ -2766,9 +2766,9 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2766
2766
|
prefix: r(b),
|
|
2767
2767
|
"prepend-icon": r(g),
|
|
2768
2768
|
"prepend-inner-icon": r(k),
|
|
2769
|
-
readonly: r(
|
|
2769
|
+
readonly: r(_),
|
|
2770
2770
|
reverse: r(x),
|
|
2771
|
-
"single-line": r(
|
|
2771
|
+
"single-line": r(h),
|
|
2772
2772
|
suffix: r(v),
|
|
2773
2773
|
theme: r(z),
|
|
2774
2774
|
variant: r(J)
|
|
@@ -2861,8 +2861,8 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2861
2861
|
"settings",
|
|
2862
2862
|
"line",
|
|
2863
2863
|
"truncate"
|
|
2864
|
-
]), { theme:
|
|
2865
|
-
return (x,
|
|
2864
|
+
]), { theme: _ } = H();
|
|
2865
|
+
return (x, h) => {
|
|
2866
2866
|
const v = R("v-timeline");
|
|
2867
2867
|
return w(), C(v, {
|
|
2868
2868
|
align: r(o),
|
|
@@ -2875,7 +2875,7 @@ const ul = /* @__PURE__ */ Be(al, [["render", cl]]), ml = /* @__PURE__ */ S({
|
|
|
2875
2875
|
"line-inset": r(f),
|
|
2876
2876
|
"line-thickness": r(b),
|
|
2877
2877
|
side: r(g),
|
|
2878
|
-
theme: r(
|
|
2878
|
+
theme: r(_),
|
|
2879
2879
|
"truncate-line": r(k)
|
|
2880
2880
|
}, {
|
|
2881
2881
|
default: V(() => [
|
|
@@ -2959,7 +2959,7 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
2959
2959
|
console.log(`<element/${t.nodeId}/multiple_ref_v1/${t.instance}> destroyed`);
|
|
2960
2960
|
});
|
|
2961
2961
|
const n = Z(), e = le(), o = I(() => F(e.value));
|
|
2962
|
-
Pe(o),
|
|
2962
|
+
Pe(o), ke(n) && tt(o, "multipleRef", t.nodeId, t.instance, _e());
|
|
2963
2963
|
const s = (l) => {
|
|
2964
2964
|
const c = we[l.key];
|
|
2965
2965
|
if (!c) {
|
|
@@ -2997,7 +2997,7 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
2997
2997
|
};
|
|
2998
2998
|
return (l, c) => (w(), C(i));
|
|
2999
2999
|
}
|
|
3000
|
-
}), Cl = ["position", "rotation", "scale"], Vl = { style: { userSelect: "none" } },
|
|
3000
|
+
}), Cl = ["position", "rotation", "scale"], Vl = { style: { userSelect: "none" } }, ce = /* @__PURE__ */ S({
|
|
3001
3001
|
__name: "index",
|
|
3002
3002
|
props: {
|
|
3003
3003
|
position: {},
|
|
@@ -3037,24 +3037,24 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3037
3037
|
Pe(l);
|
|
3038
3038
|
const c = I(() => e.refContext?.compId);
|
|
3039
3039
|
et(c, l);
|
|
3040
|
-
const { applySize: u } =
|
|
3041
|
-
const
|
|
3042
|
-
return l.value?.type === "common" && u(
|
|
3043
|
-
}), { position: d, rotation: p, scale: f } =
|
|
3044
|
-
|
|
3040
|
+
const { applySize: u } = be(e, o), m = I(() => {
|
|
3041
|
+
const h = {};
|
|
3042
|
+
return l.value?.type === "common" && u(h), h;
|
|
3043
|
+
}), { position: d, rotation: p, scale: f } = ue(o), { property: b } = a(o, ["instances"]), g = (h, v) => {
|
|
3044
|
+
h.findIndex((z) => z === v) >= 0 || h.push(v);
|
|
3045
3045
|
}, k = I(() => {
|
|
3046
|
-
const
|
|
3046
|
+
const h = [];
|
|
3047
3047
|
if (!Array.isArray(b.value))
|
|
3048
|
-
return
|
|
3048
|
+
return h;
|
|
3049
3049
|
for (const v of b.value)
|
|
3050
|
-
typeof v == "string" && v && g(
|
|
3051
|
-
return
|
|
3052
|
-
}),
|
|
3053
|
-
key:
|
|
3050
|
+
typeof v == "string" && v && g(h, v);
|
|
3051
|
+
return h;
|
|
3052
|
+
}), _ = (h, v) => K($l, {
|
|
3053
|
+
key: h,
|
|
3054
3054
|
subtype: v,
|
|
3055
3055
|
nodeId: e.nodeId,
|
|
3056
3056
|
refContext: e.refContext,
|
|
3057
|
-
instance:
|
|
3057
|
+
instance: h
|
|
3058
3058
|
}), x = () => {
|
|
3059
3059
|
if (!e.refContext) {
|
|
3060
3060
|
console.assert(!1, "invalid of ref context");
|
|
@@ -3064,21 +3064,21 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3064
3064
|
console.assert(!1, "invalid of data");
|
|
3065
3065
|
return;
|
|
3066
3066
|
}
|
|
3067
|
-
const { i18n:
|
|
3067
|
+
const { i18n: h } = he;
|
|
3068
3068
|
if (Ye(e.refContext, s))
|
|
3069
3069
|
return i.value.type === "common" ? K(
|
|
3070
3070
|
"div",
|
|
3071
3071
|
{ id: n.id, style: m.value },
|
|
3072
|
-
|
|
3073
|
-
) : i.value.type === "scene" ? K(
|
|
3072
|
+
h.global.t("x-runtime-lib.circularReference")
|
|
3073
|
+
) : i.value.type === "scene" ? K(ce, {
|
|
3074
3074
|
name: n.name,
|
|
3075
3075
|
position: d.value,
|
|
3076
3076
|
rotation: p.value,
|
|
3077
3077
|
scale: f.value,
|
|
3078
|
-
label:
|
|
3078
|
+
label: h.global.t("x-runtime-lib.circularReference")
|
|
3079
3079
|
}) : void 0;
|
|
3080
3080
|
if (!l.value)
|
|
3081
|
-
return i.value.type === "common" ? K("div", { id: n.id, style: m.value }) : i.value.type === "scene" ? K(
|
|
3081
|
+
return i.value.type === "common" ? K("div", { id: n.id, style: m.value }) : i.value.type === "scene" ? K(ce, {
|
|
3082
3082
|
name: n.name,
|
|
3083
3083
|
position: d.value,
|
|
3084
3084
|
rotation: p.value,
|
|
@@ -3097,12 +3097,12 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3097
3097
|
style: m.value
|
|
3098
3098
|
},
|
|
3099
3099
|
{
|
|
3100
|
-
default: () => k.value.map((z) =>
|
|
3100
|
+
default: () => k.value.map((z) => _(z, v))
|
|
3101
3101
|
}
|
|
3102
3102
|
);
|
|
3103
3103
|
if (v === "scene")
|
|
3104
3104
|
return K(
|
|
3105
|
-
|
|
3105
|
+
ce,
|
|
3106
3106
|
{
|
|
3107
3107
|
name: n.name,
|
|
3108
3108
|
position: d.value,
|
|
@@ -3110,11 +3110,11 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3110
3110
|
scale: f.value
|
|
3111
3111
|
},
|
|
3112
3112
|
{
|
|
3113
|
-
default: () => k.value.map((z) =>
|
|
3113
|
+
default: () => k.value.map((z) => _(z, v))
|
|
3114
3114
|
}
|
|
3115
3115
|
);
|
|
3116
3116
|
};
|
|
3117
|
-
return (
|
|
3117
|
+
return (h, v) => (w(), C(x));
|
|
3118
3118
|
}
|
|
3119
3119
|
}), Ll = /* @__PURE__ */ S({
|
|
3120
3120
|
__name: "entry",
|
|
@@ -3129,7 +3129,7 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3129
3129
|
console.log(`<element/${t.nodeId}/multiple_slot_v1/${t.instance}> destroyed`);
|
|
3130
3130
|
});
|
|
3131
3131
|
const n = Z(), e = le(), o = I(() => F(e.value));
|
|
3132
|
-
Pe(o),
|
|
3132
|
+
Pe(o), ke(n) && tt(o, "multipleCustomSlot", t.nodeId, t.instance, _e());
|
|
3133
3133
|
const s = (l) => {
|
|
3134
3134
|
const c = we[l.key];
|
|
3135
3135
|
if (!c) {
|
|
@@ -3179,24 +3179,24 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3179
3179
|
Pe(l);
|
|
3180
3180
|
const c = I(() => e.refContext?.compId);
|
|
3181
3181
|
et(c, l);
|
|
3182
|
-
const { applySize: u } =
|
|
3183
|
-
const
|
|
3184
|
-
return l.value?.type === "common" && u(
|
|
3185
|
-
}), { position: d, rotation: p, scale: f } =
|
|
3186
|
-
|
|
3182
|
+
const { applySize: u } = be(e, o), m = I(() => {
|
|
3183
|
+
const h = {};
|
|
3184
|
+
return l.value?.type === "common" && u(h), h;
|
|
3185
|
+
}), { position: d, rotation: p, scale: f } = ue(o), { property: b } = a(o, ["instances"]), g = (h, v) => {
|
|
3186
|
+
h.findIndex((z) => z === v) >= 0 || h.push(v);
|
|
3187
3187
|
}, k = I(() => {
|
|
3188
|
-
const
|
|
3188
|
+
const h = [];
|
|
3189
3189
|
if (!Array.isArray(b.value))
|
|
3190
|
-
return
|
|
3190
|
+
return h;
|
|
3191
3191
|
for (const v of b.value)
|
|
3192
|
-
typeof v == "string" && v && g(
|
|
3193
|
-
return
|
|
3194
|
-
}),
|
|
3195
|
-
key:
|
|
3192
|
+
typeof v == "string" && v && g(h, v);
|
|
3193
|
+
return h;
|
|
3194
|
+
}), _ = (h, v) => K(Ll, {
|
|
3195
|
+
key: h,
|
|
3196
3196
|
subtype: v,
|
|
3197
3197
|
nodeId: e.nodeId,
|
|
3198
3198
|
refContext: e.refContext,
|
|
3199
|
-
instance:
|
|
3199
|
+
instance: h
|
|
3200
3200
|
}), x = () => {
|
|
3201
3201
|
if (!e.refContext) {
|
|
3202
3202
|
console.assert(!1, "invalid of ref context");
|
|
@@ -3206,21 +3206,21 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3206
3206
|
console.assert(!1, "invalid of data");
|
|
3207
3207
|
return;
|
|
3208
3208
|
}
|
|
3209
|
-
const { i18n:
|
|
3209
|
+
const { i18n: h } = he;
|
|
3210
3210
|
if (Ye(e.refContext, s))
|
|
3211
3211
|
return i.value.type === "common" ? K(
|
|
3212
3212
|
"div",
|
|
3213
3213
|
{ id: n.id, style: m.value },
|
|
3214
|
-
|
|
3215
|
-
) : i.value.type === "scene" ? K(
|
|
3214
|
+
h.global.t("x-runtime-lib.circularReference")
|
|
3215
|
+
) : i.value.type === "scene" ? K(ce, {
|
|
3216
3216
|
name: n.name,
|
|
3217
3217
|
position: d.value,
|
|
3218
3218
|
rotation: p.value,
|
|
3219
3219
|
scale: f.value,
|
|
3220
|
-
label:
|
|
3220
|
+
label: h.global.t("x-runtime-lib.circularReference")
|
|
3221
3221
|
}) : void 0;
|
|
3222
3222
|
if (!l.value)
|
|
3223
|
-
return i.value.type === "common" ? K("div", { id: n.id, style: m.value }) : i.value.type === "scene" ? K(
|
|
3223
|
+
return i.value.type === "common" ? K("div", { id: n.id, style: m.value }) : i.value.type === "scene" ? K(ce, {
|
|
3224
3224
|
name: n.name,
|
|
3225
3225
|
position: d.value,
|
|
3226
3226
|
rotation: p.value,
|
|
@@ -3239,12 +3239,12 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3239
3239
|
style: m.value
|
|
3240
3240
|
},
|
|
3241
3241
|
{
|
|
3242
|
-
default: () => k.value.map((z) =>
|
|
3242
|
+
default: () => k.value.map((z) => _(z, v))
|
|
3243
3243
|
}
|
|
3244
3244
|
);
|
|
3245
3245
|
if (v === "scene")
|
|
3246
3246
|
return K(
|
|
3247
|
-
|
|
3247
|
+
ce,
|
|
3248
3248
|
{
|
|
3249
3249
|
name: n.name,
|
|
3250
3250
|
position: d.value,
|
|
@@ -3252,11 +3252,11 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3252
3252
|
scale: f.value
|
|
3253
3253
|
},
|
|
3254
3254
|
{
|
|
3255
|
-
default: () => k.value.map((z) =>
|
|
3255
|
+
default: () => k.value.map((z) => _(z, v))
|
|
3256
3256
|
}
|
|
3257
3257
|
);
|
|
3258
3258
|
};
|
|
3259
|
-
return (
|
|
3259
|
+
return (h, v) => (w(), C(x));
|
|
3260
3260
|
}
|
|
3261
3261
|
}), Tl = /* @__PURE__ */ S({
|
|
3262
3262
|
__name: "index",
|
|
@@ -3269,32 +3269,32 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3269
3269
|
const n = gt(), e = t, { node: o } = P(e), s = Z(), i = Qe(), l = le(), c = se();
|
|
3270
3270
|
Pe(c);
|
|
3271
3271
|
const u = I(() => e.refContext?.compId);
|
|
3272
|
-
et(u, c),
|
|
3273
|
-
const { applySize: m } =
|
|
3274
|
-
const
|
|
3275
|
-
return l.value?.type === "common" && m(
|
|
3276
|
-
}), { position: p, rotation: f, scale: b } =
|
|
3277
|
-
const x = we[
|
|
3272
|
+
et(u, c), ke(s) && tt(c, "ref", e.nodeId, "", _e());
|
|
3273
|
+
const { applySize: m } = be(e, o), d = I(() => {
|
|
3274
|
+
const _ = {};
|
|
3275
|
+
return l.value?.type === "common" && m(_), _;
|
|
3276
|
+
}), { position: p, rotation: f, scale: b } = ue(o), g = (_) => {
|
|
3277
|
+
const x = we[_.key];
|
|
3278
3278
|
if (!x) {
|
|
3279
|
-
console.assert(!1, `element not found key=${
|
|
3279
|
+
console.assert(!1, `element not found key=${_.key}`);
|
|
3280
3280
|
return;
|
|
3281
3281
|
}
|
|
3282
|
-
const
|
|
3283
|
-
nodeId:
|
|
3282
|
+
const h = {
|
|
3283
|
+
nodeId: _.id
|
|
3284
3284
|
};
|
|
3285
|
-
return Xe(
|
|
3285
|
+
return Xe(_.key) && (h.refContext = {
|
|
3286
3286
|
parent: e.refContext,
|
|
3287
|
-
compId:
|
|
3287
|
+
compId: _.compId
|
|
3288
3288
|
}), K(
|
|
3289
3289
|
x.comp,
|
|
3290
3290
|
{
|
|
3291
|
-
key:
|
|
3292
|
-
...
|
|
3291
|
+
key: _.id,
|
|
3292
|
+
...h
|
|
3293
3293
|
},
|
|
3294
3294
|
{
|
|
3295
3295
|
default: () => {
|
|
3296
3296
|
if (!x.leaf)
|
|
3297
|
-
return
|
|
3297
|
+
return _.children?.map((v) => g(v));
|
|
3298
3298
|
}
|
|
3299
3299
|
}
|
|
3300
3300
|
);
|
|
@@ -3307,21 +3307,21 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3307
3307
|
console.assert(!1, "invalid of data");
|
|
3308
3308
|
return;
|
|
3309
3309
|
}
|
|
3310
|
-
const { i18n:
|
|
3310
|
+
const { i18n: _ } = he;
|
|
3311
3311
|
if (Ye(e.refContext, i))
|
|
3312
3312
|
return l.value.type === "common" ? K(
|
|
3313
3313
|
"div",
|
|
3314
3314
|
{ id: n.id, style: d.value },
|
|
3315
|
-
|
|
3316
|
-
) : l.value.type === "scene" ? K(
|
|
3315
|
+
_.global.t("x-runtime-lib.circularReference")
|
|
3316
|
+
) : l.value.type === "scene" ? K(ce, {
|
|
3317
3317
|
name: n.name,
|
|
3318
3318
|
position: p.value,
|
|
3319
3319
|
rotation: f.value,
|
|
3320
3320
|
scale: b.value,
|
|
3321
|
-
label:
|
|
3321
|
+
label: _.global.t("x-runtime-lib.circularReference")
|
|
3322
3322
|
}) : void 0;
|
|
3323
3323
|
if (!c.value)
|
|
3324
|
-
return l.value.type === "common" ? K("div", { id: n.id, style: d.value }) : l.value.type === "scene" ? K(
|
|
3324
|
+
return l.value.type === "common" ? K("div", { id: n.id, style: d.value }) : l.value.type === "scene" ? K(ce, {
|
|
3325
3325
|
name: n.name,
|
|
3326
3326
|
position: p.value,
|
|
3327
3327
|
rotation: f.value,
|
|
@@ -3340,12 +3340,12 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3340
3340
|
style: d.value
|
|
3341
3341
|
},
|
|
3342
3342
|
{
|
|
3343
|
-
default: () => c.value?.view.nodeLites.map((
|
|
3343
|
+
default: () => c.value?.view.nodeLites.map((h) => g(h))
|
|
3344
3344
|
}
|
|
3345
3345
|
);
|
|
3346
3346
|
if (x === "scene")
|
|
3347
3347
|
return K(
|
|
3348
|
-
|
|
3348
|
+
ce,
|
|
3349
3349
|
{
|
|
3350
3350
|
name: n.name,
|
|
3351
3351
|
position: p.value,
|
|
@@ -3353,11 +3353,11 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3353
3353
|
scale: b.value
|
|
3354
3354
|
},
|
|
3355
3355
|
{
|
|
3356
|
-
default: () => c.value?.view.nodeLites.map((
|
|
3356
|
+
default: () => c.value?.view.nodeLites.map((h) => g(h))
|
|
3357
3357
|
}
|
|
3358
3358
|
);
|
|
3359
3359
|
};
|
|
3360
|
-
return (
|
|
3360
|
+
return (_, x) => (w(), C(k));
|
|
3361
3361
|
}
|
|
3362
3362
|
}), El = /* @__PURE__ */ S({
|
|
3363
3363
|
__name: "index",
|
|
@@ -3386,33 +3386,33 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3386
3386
|
const n = gt(), e = t, { node: o } = P(e), s = Z(), i = Qe(), l = le(), c = se();
|
|
3387
3387
|
Pe(c);
|
|
3388
3388
|
const u = I(() => e.refContext?.compId);
|
|
3389
|
-
et(u, c),
|
|
3390
|
-
const { applySize: m } =
|
|
3391
|
-
const
|
|
3392
|
-
return c.value?.type === "common" && m(
|
|
3393
|
-
}), { position: p, rotation: f, scale: b } =
|
|
3394
|
-
function g(
|
|
3395
|
-
const x = we[
|
|
3389
|
+
et(u, c), ke(s) && tt(c, "customSlot", e.nodeId, "", _e());
|
|
3390
|
+
const { applySize: m } = be(e, o), d = I(() => {
|
|
3391
|
+
const _ = {};
|
|
3392
|
+
return c.value?.type === "common" && m(_), _;
|
|
3393
|
+
}), { position: p, rotation: f, scale: b } = ue(o);
|
|
3394
|
+
function g(_) {
|
|
3395
|
+
const x = we[_.key];
|
|
3396
3396
|
if (!x) {
|
|
3397
|
-
console.assert(!1, `element not found key=${
|
|
3397
|
+
console.assert(!1, `element not found key=${_.key}`);
|
|
3398
3398
|
return;
|
|
3399
3399
|
}
|
|
3400
|
-
const
|
|
3401
|
-
nodeId:
|
|
3400
|
+
const h = {
|
|
3401
|
+
nodeId: _.id
|
|
3402
3402
|
};
|
|
3403
|
-
return Xe(
|
|
3403
|
+
return Xe(_.key) && (h.refContext = {
|
|
3404
3404
|
parent: e.refContext,
|
|
3405
|
-
compId:
|
|
3405
|
+
compId: _.compId
|
|
3406
3406
|
}), K(
|
|
3407
3407
|
x.comp,
|
|
3408
3408
|
{
|
|
3409
|
-
key:
|
|
3410
|
-
...
|
|
3409
|
+
key: _.id,
|
|
3410
|
+
...h
|
|
3411
3411
|
},
|
|
3412
3412
|
{
|
|
3413
3413
|
default: () => {
|
|
3414
3414
|
if (!x.leaf)
|
|
3415
|
-
return
|
|
3415
|
+
return _.children?.map((v) => g(v));
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
);
|
|
@@ -3426,21 +3426,21 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3426
3426
|
console.assert(!1, "invalid of data");
|
|
3427
3427
|
return;
|
|
3428
3428
|
}
|
|
3429
|
-
const { i18n:
|
|
3429
|
+
const { i18n: _ } = he;
|
|
3430
3430
|
if (Ye(e.refContext, i))
|
|
3431
3431
|
return l.value.type === "common" ? K(
|
|
3432
3432
|
"div",
|
|
3433
3433
|
{ id: n.id, style: d.value },
|
|
3434
|
-
|
|
3435
|
-
) : l.value.type === "scene" ? K(
|
|
3434
|
+
_.global.t("x-runtime-lib.circularReference")
|
|
3435
|
+
) : l.value.type === "scene" ? K(ce, {
|
|
3436
3436
|
name: n.name,
|
|
3437
3437
|
position: p.value,
|
|
3438
3438
|
rotation: f.value,
|
|
3439
3439
|
scale: b.value,
|
|
3440
|
-
label:
|
|
3440
|
+
label: _.global.t("x-runtime-lib.circularReference")
|
|
3441
3441
|
}) : void 0;
|
|
3442
3442
|
if (!c.value)
|
|
3443
|
-
return l.value.type === "common" ? K("div", { id: n.id, style: d.value }) : l.value.type === "scene" ? K(
|
|
3443
|
+
return l.value.type === "common" ? K("div", { id: n.id, style: d.value }) : l.value.type === "scene" ? K(ce, {
|
|
3444
3444
|
name: n.name,
|
|
3445
3445
|
position: p.value,
|
|
3446
3446
|
rotation: f.value,
|
|
@@ -3459,12 +3459,12 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3459
3459
|
style: d.value
|
|
3460
3460
|
},
|
|
3461
3461
|
{
|
|
3462
|
-
default: () => c.value?.view.nodeLites.map((
|
|
3462
|
+
default: () => c.value?.view.nodeLites.map((h) => g(h))
|
|
3463
3463
|
}
|
|
3464
3464
|
);
|
|
3465
3465
|
if (x === "scene")
|
|
3466
3466
|
return K(
|
|
3467
|
-
|
|
3467
|
+
ce,
|
|
3468
3468
|
{
|
|
3469
3469
|
name: n.name,
|
|
3470
3470
|
position: p.value,
|
|
@@ -3472,11 +3472,11 @@ const Sl = /* @__PURE__ */ Be(wl, [["render", Il]]), $l = /* @__PURE__ */ S({
|
|
|
3472
3472
|
scale: b.value
|
|
3473
3473
|
},
|
|
3474
3474
|
{
|
|
3475
|
-
default: () => c.value?.view.nodeLites.map((
|
|
3475
|
+
default: () => c.value?.view.nodeLites.map((h) => g(h))
|
|
3476
3476
|
}
|
|
3477
3477
|
);
|
|
3478
3478
|
};
|
|
3479
|
-
return (
|
|
3479
|
+
return (_, x) => (w(), C(k));
|
|
3480
3480
|
}
|
|
3481
3481
|
}), y = {
|
|
3482
3482
|
key: "basic",
|
|
@@ -9028,70 +9028,70 @@ function zu(t) {
|
|
|
9028
9028
|
}
|
|
9029
9029
|
const jo = "runtimeOrg", Go = "runtimeEnv", Ho = "runtimeMode", Jo = "runtimeDevice", Uo = "runtimeDark", qo = "runtimeId", Xo = "runtimeType", Yo = "runtimeData", Zo = "runtimeDepends", Qo = "runtimeRuntime", ei = "runtimeSandbox";
|
|
9030
9030
|
function Tu(t) {
|
|
9031
|
-
|
|
9031
|
+
ye(jo, t);
|
|
9032
9032
|
}
|
|
9033
9033
|
function Nc() {
|
|
9034
|
-
return
|
|
9034
|
+
return fe(jo);
|
|
9035
9035
|
}
|
|
9036
9036
|
function Eu(t) {
|
|
9037
|
-
|
|
9037
|
+
ye(Go, t);
|
|
9038
9038
|
}
|
|
9039
9039
|
function jc() {
|
|
9040
|
-
return
|
|
9040
|
+
return fe(Go);
|
|
9041
9041
|
}
|
|
9042
9042
|
function Au(t) {
|
|
9043
|
-
|
|
9043
|
+
ye(Ho, t);
|
|
9044
9044
|
}
|
|
9045
9045
|
function Z() {
|
|
9046
|
-
return
|
|
9046
|
+
return fe(Ho);
|
|
9047
9047
|
}
|
|
9048
9048
|
function Mu(t) {
|
|
9049
|
-
|
|
9049
|
+
ye(Jo, ln(t));
|
|
9050
9050
|
}
|
|
9051
9051
|
function De() {
|
|
9052
|
-
return
|
|
9052
|
+
return fe(Jo);
|
|
9053
9053
|
}
|
|
9054
9054
|
function Wu(t) {
|
|
9055
|
-
|
|
9055
|
+
ye(Uo, ln(t));
|
|
9056
9056
|
}
|
|
9057
9057
|
function Ze() {
|
|
9058
|
-
return
|
|
9058
|
+
return fe(Uo);
|
|
9059
9059
|
}
|
|
9060
9060
|
function Ru(t) {
|
|
9061
|
-
|
|
9061
|
+
ye(qo, t);
|
|
9062
9062
|
}
|
|
9063
9063
|
function Qe() {
|
|
9064
|
-
return
|
|
9064
|
+
return fe(qo);
|
|
9065
9065
|
}
|
|
9066
9066
|
function Bu(t) {
|
|
9067
|
-
|
|
9067
|
+
ye(Xo, t);
|
|
9068
9068
|
}
|
|
9069
9069
|
function Se() {
|
|
9070
|
-
return
|
|
9070
|
+
return fe(Xo);
|
|
9071
9071
|
}
|
|
9072
9072
|
function Pe(t) {
|
|
9073
|
-
|
|
9073
|
+
ye(Yo, t);
|
|
9074
9074
|
}
|
|
9075
9075
|
function le() {
|
|
9076
|
-
return
|
|
9076
|
+
return fe(Yo);
|
|
9077
9077
|
}
|
|
9078
9078
|
function Ku(t) {
|
|
9079
|
-
|
|
9079
|
+
ye(Zo, ln(t));
|
|
9080
9080
|
}
|
|
9081
9081
|
function Gc() {
|
|
9082
|
-
return
|
|
9082
|
+
return fe(Zo);
|
|
9083
9083
|
}
|
|
9084
9084
|
function Du(t) {
|
|
9085
|
-
|
|
9085
|
+
ye(Qo, t);
|
|
9086
9086
|
}
|
|
9087
9087
|
function Hc() {
|
|
9088
|
-
return
|
|
9088
|
+
return fe(Qo);
|
|
9089
9089
|
}
|
|
9090
9090
|
function Jc(t) {
|
|
9091
|
-
|
|
9091
|
+
ye(ei, t);
|
|
9092
9092
|
}
|
|
9093
|
-
function
|
|
9094
|
-
return
|
|
9093
|
+
function _e() {
|
|
9094
|
+
return fe(ei, void 0);
|
|
9095
9095
|
}
|
|
9096
9096
|
function je(t) {
|
|
9097
9097
|
const n = [t.type];
|
|
@@ -9115,14 +9115,14 @@ async function ct(t, n, e, o, s) {
|
|
|
9115
9115
|
for (const p of u)
|
|
9116
9116
|
if (e === je(p)) {
|
|
9117
9117
|
if (p.subKeys) {
|
|
9118
|
-
if (!
|
|
9118
|
+
if (!me(
|
|
9119
9119
|
$e(o, p.subKeys),
|
|
9120
9120
|
$e(s, p.subKeys)
|
|
9121
9121
|
)) {
|
|
9122
9122
|
m = p;
|
|
9123
9123
|
break;
|
|
9124
9124
|
}
|
|
9125
|
-
} else if (!
|
|
9125
|
+
} else if (!me(o, s)) {
|
|
9126
9126
|
m = p;
|
|
9127
9127
|
break;
|
|
9128
9128
|
}
|
|
@@ -9150,7 +9150,7 @@ async function ct(t, n, e, o, s) {
|
|
|
9150
9150
|
continue;
|
|
9151
9151
|
}
|
|
9152
9152
|
const b = $e(f, p.subKeys);
|
|
9153
|
-
if (
|
|
9153
|
+
if (me(d, b))
|
|
9154
9154
|
continue;
|
|
9155
9155
|
const g = F(f);
|
|
9156
9156
|
cn(g, p.subKeys, F(d)), p.type === "elementProperty" ? t.setElementProperty(
|
|
@@ -9175,7 +9175,7 @@ async function ct(t, n, e, o, s) {
|
|
|
9175
9175
|
console.assert(!1);
|
|
9176
9176
|
continue;
|
|
9177
9177
|
}
|
|
9178
|
-
if (
|
|
9178
|
+
if (me(d, f))
|
|
9179
9179
|
continue;
|
|
9180
9180
|
p.type === "elementProperty" ? t.setElementProperty(
|
|
9181
9181
|
p.nodeId,
|
|
@@ -9319,7 +9319,7 @@ function tm(t) {
|
|
|
9319
9319
|
}
|
|
9320
9320
|
function et(t, n) {
|
|
9321
9321
|
const e = Gc(), o = se(-1);
|
|
9322
|
-
|
|
9322
|
+
xe(() => {
|
|
9323
9323
|
if (!t.value) {
|
|
9324
9324
|
o.value = -1, n.value = void 0;
|
|
9325
9325
|
return;
|
|
@@ -9440,7 +9440,7 @@ function Yc(t) {
|
|
|
9440
9440
|
const ti = ci({
|
|
9441
9441
|
baseUrl: "http://localhost/computebase/",
|
|
9442
9442
|
onError: (t) => {
|
|
9443
|
-
const { i18n: n } =
|
|
9443
|
+
const { i18n: n } = he;
|
|
9444
9444
|
To(Ei(n, t));
|
|
9445
9445
|
}
|
|
9446
9446
|
});
|
|
@@ -9634,9 +9634,9 @@ function tu(t) {
|
|
|
9634
9634
|
appId: `${s}${t.env}`,
|
|
9635
9635
|
pageId: i
|
|
9636
9636
|
};
|
|
9637
|
-
|
|
9637
|
+
he.router.replace({ path: l, query: c });
|
|
9638
9638
|
} else t.mode === "preview" && zo(
|
|
9639
|
-
|
|
9639
|
+
he.i18n.global.t(
|
|
9640
9640
|
"x-runtime-lib.msg.takeEffectOnlyAfterReleased"
|
|
9641
9641
|
)
|
|
9642
9642
|
);
|
|
@@ -9881,7 +9881,7 @@ class su {
|
|
|
9881
9881
|
return;
|
|
9882
9882
|
}
|
|
9883
9883
|
const i = $e(s, e);
|
|
9884
|
-
|
|
9884
|
+
me(o, i) || (cn(s, e, o), this.hooks?.onElementPropertyChange(
|
|
9885
9885
|
s.basic.id,
|
|
9886
9886
|
e,
|
|
9887
9887
|
o,
|
|
@@ -9900,7 +9900,7 @@ class su {
|
|
|
9900
9900
|
}
|
|
9901
9901
|
setCustomProperty(n, e) {
|
|
9902
9902
|
const o = this.customProperties[n];
|
|
9903
|
-
|
|
9903
|
+
me(e, o) || (this.customProperties[n] = e, this.hooks?.onCustomPropertyChange(n, e, o));
|
|
9904
9904
|
}
|
|
9905
9905
|
//--------------------------
|
|
9906
9906
|
// 自定义插槽属性
|
|
@@ -9914,7 +9914,7 @@ class su {
|
|
|
9914
9914
|
}
|
|
9915
9915
|
setCustomSlotProperty(n, e) {
|
|
9916
9916
|
const o = this.customSlotProperties[n];
|
|
9917
|
-
|
|
9917
|
+
me(e, o) || (this.customSlotProperties[n] = e, this.hooks.onCustomSlotPropetyChange(n, e, o));
|
|
9918
9918
|
}
|
|
9919
9919
|
//--------------------------
|
|
9920
9920
|
// 元素方法
|
|
@@ -9935,34 +9935,87 @@ class su {
|
|
|
9935
9935
|
}
|
|
9936
9936
|
setState(n, e) {
|
|
9937
9937
|
const o = this.states[n];
|
|
9938
|
-
|
|
9938
|
+
me(e, o) || (this.states[n] = e, this.hooks?.onStateChange(n, e, o));
|
|
9939
9939
|
}
|
|
9940
9940
|
}
|
|
9941
9941
|
function tt(t, n, e, o, s) {
|
|
9942
|
-
const i = Nc(), l = jc(), c = Z(), u = Se(), m = De(), d = Ze(), p = Hc(), f =
|
|
9943
|
-
|
|
9944
|
-
|
|
9942
|
+
const i = Nc(), l = jc(), c = Z(), u = Se(), m = De(), d = Ze(), p = Hc(), f = new su(
|
|
9943
|
+
n,
|
|
9944
|
+
e,
|
|
9945
|
+
o,
|
|
9946
|
+
s,
|
|
9947
|
+
i,
|
|
9948
|
+
l,
|
|
9949
|
+
c,
|
|
9950
|
+
u,
|
|
9951
|
+
{
|
|
9952
|
+
onElementPropertyChange: b,
|
|
9953
|
+
onCustomPropertyChange: g,
|
|
9954
|
+
onCustomSlotPropetyChange: k,
|
|
9955
|
+
onStateChange: _
|
|
9956
|
+
}
|
|
9957
|
+
);
|
|
9958
|
+
if (Jc(f), Ie(() => {
|
|
9959
|
+
f.dispose();
|
|
9960
|
+
}), ke(c)) {
|
|
9961
|
+
const x = async () => {
|
|
9962
|
+
f.destroyVm(), f.associateData(t), f.resetCustomProperties(), f.resetCustomSlotProperties(), f.resetStates(), !(!t.value || !t.value.code.script) && await f.createVm(p, t.value.code.script);
|
|
9963
|
+
};
|
|
9964
|
+
x(), pe(t, () => {
|
|
9965
|
+
x();
|
|
9966
|
+
});
|
|
9967
|
+
}
|
|
9968
|
+
ke(c) && pe(
|
|
9969
|
+
m,
|
|
9970
|
+
async (x, h) => {
|
|
9971
|
+
if (!f.vm)
|
|
9972
|
+
return;
|
|
9973
|
+
const v = mt(x.width), z = mt(h?.width ?? x.width);
|
|
9974
|
+
await f.callFunctionAsync(
|
|
9975
|
+
"__triggerEventV1__",
|
|
9976
|
+
ie("elementEvent", "globality", "screenSizeChange"),
|
|
9977
|
+
"",
|
|
9978
|
+
v,
|
|
9979
|
+
z
|
|
9980
|
+
);
|
|
9981
|
+
},
|
|
9982
|
+
{ immediate: !0 }
|
|
9983
|
+
), ke(c) && pe(
|
|
9984
|
+
d,
|
|
9985
|
+
async (x) => {
|
|
9986
|
+
f.vm && await f.callFunctionAsync(
|
|
9987
|
+
"__triggerEventV1__",
|
|
9988
|
+
ie("elementEvent", "globality", "darkModeChange"),
|
|
9989
|
+
"",
|
|
9990
|
+
x
|
|
9991
|
+
);
|
|
9992
|
+
},
|
|
9993
|
+
{ immediate: !0 }
|
|
9994
|
+
);
|
|
9995
|
+
async function b(x, h, v, z) {
|
|
9996
|
+
if (f.vm) {
|
|
9997
|
+
if (me(h, ["settings", "slot"])) {
|
|
9945
9998
|
const T = t.value?.view.nodeLites.find(
|
|
9946
9999
|
(J) => J.id === x
|
|
9947
10000
|
);
|
|
9948
10001
|
T ? T.slotId = v : console.assert(!1);
|
|
9949
10002
|
}
|
|
9950
|
-
if (
|
|
10003
|
+
if (me(h, ["settings", "comp"])) {
|
|
9951
10004
|
const T = t.value?.view.nodeLites.find(
|
|
9952
10005
|
(J) => J.id === x
|
|
9953
10006
|
);
|
|
9954
10007
|
T ? T.compId = v : console.assert(!1);
|
|
9955
10008
|
}
|
|
9956
|
-
if (await
|
|
10009
|
+
if (await f.callFunctionAsync(
|
|
9957
10010
|
"__triggerEventV1__",
|
|
9958
|
-
ie("elementPropertyChangeEvent", x,
|
|
10011
|
+
ie("elementPropertyChangeEvent", x, h.join(".")),
|
|
9959
10012
|
"",
|
|
9960
10013
|
v,
|
|
9961
10014
|
z ?? v
|
|
9962
10015
|
), t.value?.code.reactivity) {
|
|
9963
10016
|
let T = "";
|
|
9964
|
-
|
|
9965
|
-
|
|
10017
|
+
h instanceof Array ? T = h.join(".") : T = h, ct(
|
|
10018
|
+
f,
|
|
9966
10019
|
t.value.code.reactivity,
|
|
9967
10020
|
je({
|
|
9968
10021
|
type: "elementProperty",
|
|
@@ -9974,109 +10027,62 @@ function tt(t, n, e, o, s) {
|
|
|
9974
10027
|
);
|
|
9975
10028
|
}
|
|
9976
10029
|
}
|
|
9977
|
-
}
|
|
9978
|
-
|
|
10030
|
+
}
|
|
10031
|
+
async function g(x, h, v) {
|
|
10032
|
+
f.vm && (await f.callFunctionAsync(
|
|
9979
10033
|
"__triggerEventV1__",
|
|
9980
10034
|
ie("customPropertyChangeEvent", "globality", x),
|
|
9981
10035
|
"",
|
|
9982
|
-
|
|
9983
|
-
v ??
|
|
9984
|
-
), await
|
|
10036
|
+
h,
|
|
10037
|
+
v ?? h
|
|
10038
|
+
), await f.parent.callFunctionAsync(
|
|
9985
10039
|
"__triggerEventV1__",
|
|
9986
|
-
ie("refPropertyChangeEvent",
|
|
10040
|
+
ie("refPropertyChangeEvent", f.nodeId, x),
|
|
9987
10041
|
"",
|
|
9988
|
-
|
|
9989
|
-
v ??
|
|
9990
|
-
), await
|
|
10042
|
+
h,
|
|
10043
|
+
v ?? h
|
|
10044
|
+
), await f.parent.callFunctionAsync(
|
|
9991
10045
|
"__triggerEventV1__",
|
|
9992
10046
|
ie(
|
|
9993
10047
|
"multipleRefPropertyChangeEvent",
|
|
9994
|
-
|
|
10048
|
+
f.nodeId,
|
|
9995
10049
|
x
|
|
9996
10050
|
),
|
|
9997
10051
|
"",
|
|
9998
|
-
_,
|
|
9999
|
-
v ?? _
|
|
10000
|
-
), t.value?.code.reactivity && ct(
|
|
10001
10052
|
h,
|
|
10053
|
+
v ?? h
|
|
10054
|
+
), t.value?.code.reactivity && ct(
|
|
10055
|
+
f,
|
|
10002
10056
|
t.value.code.reactivity,
|
|
10003
10057
|
je({ type: "customProperty", propertyId: x }),
|
|
10004
|
-
|
|
10058
|
+
h,
|
|
10005
10059
|
v
|
|
10006
10060
|
));
|
|
10007
|
-
}
|
|
10008
|
-
|
|
10009
|
-
|
|
10061
|
+
}
|
|
10062
|
+
async function k(x, h, v) {
|
|
10063
|
+
f.vm && t.value?.code.reactivity && ct(
|
|
10064
|
+
f,
|
|
10010
10065
|
t.value.code.reactivity,
|
|
10011
10066
|
je({ type: "customSlotProperty", propertyId: x }),
|
|
10012
|
-
|
|
10067
|
+
h,
|
|
10013
10068
|
v
|
|
10014
10069
|
);
|
|
10015
|
-
}
|
|
10016
|
-
|
|
10070
|
+
}
|
|
10071
|
+
async function _(x, h, v) {
|
|
10072
|
+
f.vm && (await f.callFunctionAsync(
|
|
10017
10073
|
"__triggerEventV1__",
|
|
10018
10074
|
ie("stateChangeEvent", "globality", x),
|
|
10019
10075
|
"",
|
|
10020
|
-
_,
|
|
10021
|
-
v ?? _
|
|
10022
|
-
), t.value?.code.reactivity && ct(
|
|
10023
10076
|
h,
|
|
10077
|
+
v ?? h
|
|
10078
|
+
), t.value?.code.reactivity && ct(
|
|
10079
|
+
f,
|
|
10024
10080
|
t.value.code.reactivity,
|
|
10025
10081
|
je({ type: "state", stateId: x }),
|
|
10026
|
-
|
|
10082
|
+
h,
|
|
10027
10083
|
v
|
|
10028
10084
|
));
|
|
10029
|
-
}, h = new su(
|
|
10030
|
-
n,
|
|
10031
|
-
e,
|
|
10032
|
-
o,
|
|
10033
|
-
s,
|
|
10034
|
-
i,
|
|
10035
|
-
l,
|
|
10036
|
-
c,
|
|
10037
|
-
u,
|
|
10038
|
-
{
|
|
10039
|
-
onElementPropertyChange: f,
|
|
10040
|
-
onCustomPropertyChange: b,
|
|
10041
|
-
onCustomSlotPropetyChange: g,
|
|
10042
|
-
onStateChange: k
|
|
10043
|
-
}
|
|
10044
|
-
);
|
|
10045
|
-
if (Jc(h), Ie(() => {
|
|
10046
|
-
h.dispose();
|
|
10047
|
-
}), ce(c)) {
|
|
10048
|
-
const x = async () => {
|
|
10049
|
-
h.destroyVm(), h.associateData(t), h.resetCustomProperties(), h.resetCustomSlotProperties(), h.resetStates(), !(!t.value || !t.value.code.script) && await h.createVm(p, t.value.code.script);
|
|
10050
|
-
};
|
|
10051
|
-
x(), de(t, () => {
|
|
10052
|
-
x();
|
|
10053
|
-
});
|
|
10054
10085
|
}
|
|
10055
|
-
ce(c) && de(
|
|
10056
|
-
m,
|
|
10057
|
-
async (x, _) => {
|
|
10058
|
-
const v = mt(x.width), z = mt(_?.width ?? x.width);
|
|
10059
|
-
await h.callFunctionAsync(
|
|
10060
|
-
"__triggerEventV1__",
|
|
10061
|
-
ie("elementEvent", "globality", "screenSizeChange"),
|
|
10062
|
-
"",
|
|
10063
|
-
v,
|
|
10064
|
-
z
|
|
10065
|
-
);
|
|
10066
|
-
},
|
|
10067
|
-
{ immediate: !0 }
|
|
10068
|
-
), ce(c) && de(
|
|
10069
|
-
d,
|
|
10070
|
-
async (x) => {
|
|
10071
|
-
await h.callFunctionAsync(
|
|
10072
|
-
"__triggerEventV1__",
|
|
10073
|
-
ie("elementEvent", "globality", "darkModeChange"),
|
|
10074
|
-
"",
|
|
10075
|
-
x
|
|
10076
|
-
);
|
|
10077
|
-
},
|
|
10078
|
-
{ immediate: !0 }
|
|
10079
|
-
);
|
|
10080
10086
|
}
|
|
10081
10087
|
function H() {
|
|
10082
10088
|
const t = Ze();
|
|
@@ -10148,10 +10154,10 @@ export {
|
|
|
10148
10154
|
Z as injectMode,
|
|
10149
10155
|
Nc as injectOrg,
|
|
10150
10156
|
Hc as injectRuntime,
|
|
10151
|
-
|
|
10157
|
+
_e as injectSandbox,
|
|
10152
10158
|
Se as injectType,
|
|
10153
10159
|
Ye as isCircularReference,
|
|
10154
|
-
|
|
10160
|
+
ke as isExecutableMode,
|
|
10155
10161
|
Ki as isLocaleOfEventKind,
|
|
10156
10162
|
Bi as isLocaleOfMethodKind,
|
|
10157
10163
|
Ri as isLocaleOfPropertyKind,
|