x-runtime-lib 0.8.116 → 0.8.118
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/components/editor/picker/index.vue.d.ts +3 -3
- package/dist/components/element/3d/camera/orthographicCamera/v1/index.vue.d.ts +2 -2
- package/dist/components/element/3d/camera/perspectiveCamera/v1/index.vue.d.ts +2 -2
- package/dist/components/element/3d/light/directionalLight/v1/index.vue.d.ts +2 -2
- package/dist/components/element/3d/light/pointLight/v1/index.vue.d.ts +2 -2
- package/dist/components/element/3d/light/spotLight/v1/index.vue.d.ts +2 -2
- package/dist/components/element/dynamic/slot/v1/index.vue.d.ts +4 -1
- package/dist/index.js +171 -159
- package/dist/types/element.d.ts +18 -8
- package/dist/{vendor.muyuiulw.js → vendor.emk171rx.js} +1239 -1351
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -29,13 +29,13 @@ var Ce = (t, n, e) => {
|
|
|
29
29
|
};
|
|
30
30
|
return r();
|
|
31
31
|
};
|
|
32
|
-
import { defineComponent as C, createElementBlock as ie, renderSlot as R, unref as i, openBlock as _, createElementVNode as te, computed as k, normalizeStyle as le, createCommentVNode as re, toRef as
|
|
33
|
-
import { globalObjects as we, waitUtil as
|
|
34
|
-
import { CameraHelper as
|
|
35
|
-
import { i as pe, c as He, K as ci, M as ui, O as mi, u as pi, r as
|
|
32
|
+
import { defineComponent as C, createElementBlock as ie, renderSlot as R, unref as i, openBlock as _, createElementVNode as te, computed as k, normalizeStyle as le, createCommentVNode as re, toRef as qo, onBeforeMount as Xo, onUnmounted as Ge, ref as se, watchEffect as fe, watch as ce, createBlock as S, withCtx as I, useTemplateRef as uo, onMounted as mo, nextTick as po, useAttrs as fo, h as ye, resolveComponent as M, createVNode as O, isRef as Z, createSlots as Ft, renderList as Yo, useId as yo, withModifiers as Zo, normalizeClass as Qo, toDisplayString as ei, inject as ue, provide as me, readonly as Nt } from "vue";
|
|
33
|
+
import { globalObjects as we, waitUtil as bo, useViewStack as go, eventBus as ho, messageInfo as ti, messageSuccess as ni, messageWarning as _o, messageError as vo, createAxios as oi, openConfirmDlg as ii, openPromptDlg as ri } from "x-essential-lib";
|
|
34
|
+
import { CameraHelper as xo, DirectionalLightHelper as si, PointLightHelper as li, SpotLightHelper as ai } from "three";
|
|
35
|
+
import { i as pe, c as He, K as ci, M as ui, O as mi, u as pi, r as ko, e as wo, a as di, b as fi, d as yi, f as bi, g as gi, h as hi, j as _i, k as vi, l as Io, m as D, n as xi, o as ki, p as wi, q as Ii } from "./vendor.emk171rx.js";
|
|
36
36
|
import { useTheme as Si } from "vuetify";
|
|
37
37
|
import { getErrorMessage as $i } from "x-error-lib";
|
|
38
|
-
import { useI18n as
|
|
38
|
+
import { useI18n as So } from "vue-i18n";
|
|
39
39
|
const cn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
40
40
|
function z(t) {
|
|
41
41
|
let n = "";
|
|
@@ -71,12 +71,12 @@ function at(t) {
|
|
|
71
71
|
if (!isNaN(e))
|
|
72
72
|
return e;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const $o = ["xs", "sm", "md", "lg", "xl"], Ci = [...$o].reverse();
|
|
75
75
|
function Xe(t) {
|
|
76
76
|
return t < 600 ? "xs" : t < 960 ? "sm" : t < 1280 ? "md" : t < 1920 ? "lg" : "xl";
|
|
77
77
|
}
|
|
78
78
|
function un(t) {
|
|
79
|
-
return
|
|
79
|
+
return $o.findIndex((n) => n === t);
|
|
80
80
|
}
|
|
81
81
|
function We(t, n) {
|
|
82
82
|
let e;
|
|
@@ -121,7 +121,7 @@ function eu(t, n = 2) {
|
|
|
121
121
|
`).map((r) => r.trim() === "" ? r : e + r).join(`
|
|
122
122
|
`);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Co(t) {
|
|
125
125
|
return t.startsWith("reference_v") || t.startsWith("multiple_ref_v") || t.startsWith("slot_v");
|
|
126
126
|
}
|
|
127
127
|
function ne(t) {
|
|
@@ -303,7 +303,7 @@ function lu(t) {
|
|
|
303
303
|
function au(t) {
|
|
304
304
|
return JSON.parse(t);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Vo(t) {
|
|
307
307
|
let n = t;
|
|
308
308
|
for (; n; ) {
|
|
309
309
|
if (n.parent && n.compId === n.parent.compId)
|
|
@@ -391,16 +391,16 @@ const Ke = {}, w = (t) => {
|
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
function P(t) {
|
|
394
|
-
const n =
|
|
395
|
-
console.assert(e.value, `invalid node id=${t.nodeId}`);
|
|
394
|
+
const n = ve(), e = qo(n.value.view.nodes, t.nodeId);
|
|
395
|
+
console.assert(!!e.value, `invalid node id=${t.nodeId}`);
|
|
396
396
|
const o = e.value.basic.id, s = e.value.basic.key;
|
|
397
397
|
return console.log(`[element/create] id=${o} key=${s}`), { node: e };
|
|
398
398
|
}
|
|
399
399
|
function Ye(t, n, e) {
|
|
400
|
-
const o =
|
|
400
|
+
const o = xe();
|
|
401
401
|
if (o) {
|
|
402
402
|
const s = k(() => Ec("elementMethod", t.nodeId, n));
|
|
403
|
-
|
|
403
|
+
Xo(() => {
|
|
404
404
|
o.eventBus?.on(s.value, e);
|
|
405
405
|
}), Ge(() => {
|
|
406
406
|
o.eventBus?.off(s.value, e);
|
|
@@ -421,7 +421,7 @@ const Ai = (t, n, e, o) => {
|
|
|
421
421
|
s ? typeof o == "object" ? r = JSON.stringify(o, null, 2) : (console.assert(!1), r = "{}") : r = o, t ? t.setElementProperty(n.basic.id, e, r) : Gt(n, e, r);
|
|
422
422
|
};
|
|
423
423
|
function l(t, n, e) {
|
|
424
|
-
const o =
|
|
424
|
+
const o = xe(), s = se();
|
|
425
425
|
return fe(() => {
|
|
426
426
|
s.value = Ai(o, t.value, n, e);
|
|
427
427
|
}), ce(s, (r, a) => {
|
|
@@ -432,7 +432,7 @@ function G() {
|
|
|
432
432
|
const t = Ue();
|
|
433
433
|
return { theme: k(() => t.value ? "dark" : "light") };
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function ge(t) {
|
|
436
436
|
const { property: n } = l(t, [
|
|
437
437
|
"transform",
|
|
438
438
|
"position",
|
|
@@ -472,7 +472,7 @@ function be(t) {
|
|
|
472
472
|
c.value = f.value[0], u.value = f.value[1], p.value = f.value[2];
|
|
473
473
|
}), { position: d, rotation: m, scale: f };
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Po(t) {
|
|
476
476
|
const n = k(() => t.value.legend?.show), e = k(() => t.value.legend?.data);
|
|
477
477
|
function o(s) {
|
|
478
478
|
s.legend = {
|
|
@@ -482,14 +482,14 @@ function Vo(t) {
|
|
|
482
482
|
}
|
|
483
483
|
return { show: n, data: e, applyLegend: o };
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Lo(t) {
|
|
486
486
|
const n = k(() => t.value.series);
|
|
487
487
|
function e(o) {
|
|
488
488
|
o.series = n.value;
|
|
489
489
|
}
|
|
490
490
|
return { series: n, applySeries: e };
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function zo(t) {
|
|
493
493
|
const n = k(() => t.value.title?.show), e = k(() => t.value.title?.text), o = k(() => t.value.title?.subtext);
|
|
494
494
|
function s(r) {
|
|
495
495
|
r.title = {
|
|
@@ -500,7 +500,7 @@ function Lo(t) {
|
|
|
500
500
|
}
|
|
501
501
|
return { show: n, text: e, subtext: o, applyTitle: s };
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function To(t) {
|
|
504
504
|
const n = k(() => t.value.xAxis?.show), e = k(() => t.value.xAxis?.position), o = k(() => t.value.xAxis?.type), s = k(() => t.value.xAxis?.data);
|
|
505
505
|
function r(a) {
|
|
506
506
|
a.xAxis = {
|
|
@@ -512,7 +512,7 @@ function zo(t) {
|
|
|
512
512
|
}
|
|
513
513
|
return { show: n, position: e, type: o, data: s, applyXAxis: r };
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Eo(t) {
|
|
516
516
|
const n = k(() => t.value.yAxis?.show), e = k(() => t.value.yAxis?.position), o = k(() => t.value.yAxis?.type), s = k(() => t.value.yAxis?.data);
|
|
517
517
|
function r(a) {
|
|
518
518
|
a.yAxis = {
|
|
@@ -558,7 +558,7 @@ function qt(t) {
|
|
|
558
558
|
}
|
|
559
559
|
return { paddingTop: n, paddingLeft: e, paddingBottom: o, paddingRight: s, applyPadding: r };
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function he(t, n) {
|
|
562
562
|
const e = J(), o = Be(), s = k(() => n.value.size?.width), r = k(() => n.value.size?.minWidth), a = k(() => n.value.size?.maxWidth), c = k(() => {
|
|
563
563
|
if (t.outer && e === "editor") {
|
|
564
564
|
const m = at(n.value.size?.height);
|
|
@@ -594,7 +594,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
594
594
|
refContext: {}
|
|
595
595
|
},
|
|
596
596
|
setup(t) {
|
|
597
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
597
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e), { property: c } = l(e, ["settings", "bottom"]), { property: u } = l(e, ["settings", "far"]), { property: p } = l(e, ["settings", "left"]), { property: d } = l(e, ["settings", "near"]), { property: m } = l(e, ["settings", "right"]), { property: f } = l(e, ["settings", "top"]);
|
|
598
598
|
return (g, b) => (_(), S(i(Se), {
|
|
599
599
|
position: i(s),
|
|
600
600
|
rotation: i(r),
|
|
@@ -614,7 +614,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
614
614
|
}, [
|
|
615
615
|
i(o) === "editor" ? (_(), S(i(He), {
|
|
616
616
|
key: 0,
|
|
617
|
-
type: i(
|
|
617
|
+
type: i(xo)
|
|
618
618
|
}, null, 8, ["type"])) : re("", !0),
|
|
619
619
|
R(g.$slots, "default")
|
|
620
620
|
], 8, Bi)
|
|
@@ -630,7 +630,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
630
630
|
refContext: {}
|
|
631
631
|
},
|
|
632
632
|
setup(t) {
|
|
633
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
633
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e), { property: c } = l(e, ["settings", "aspect"]), { property: u } = l(e, ["settings", "far"]), { property: p } = l(e, ["settings", "fov"]), { property: d } = l(e, ["settings", "near"]);
|
|
634
634
|
return (m, f) => (_(), S(i(Se), {
|
|
635
635
|
position: i(s),
|
|
636
636
|
rotation: i(r),
|
|
@@ -648,7 +648,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
648
648
|
}, [
|
|
649
649
|
i(o) === "editor" ? (_(), S(i(He), {
|
|
650
650
|
key: 0,
|
|
651
|
-
type: i(
|
|
651
|
+
type: i(xo)
|
|
652
652
|
}, null, 8, ["type"])) : re("", !0),
|
|
653
653
|
R(m.$slots, "default")
|
|
654
654
|
], 8, Ri)
|
|
@@ -755,7 +755,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
755
755
|
refContext: {}
|
|
756
756
|
},
|
|
757
757
|
setup(t) {
|
|
758
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
758
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e), { property: c } = l(e, ["settings", "color"]), { color: u } = q(c), { property: p } = l(e, [
|
|
759
759
|
"settings",
|
|
760
760
|
"intensity"
|
|
761
761
|
]);
|
|
@@ -786,7 +786,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
786
786
|
refContext: {}
|
|
787
787
|
},
|
|
788
788
|
setup(t) {
|
|
789
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
789
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e), { property: c } = l(e, ["settings", "color"]), { color: u } = q(c), { property: p } = l(e, [
|
|
790
790
|
"settings",
|
|
791
791
|
"intensity"
|
|
792
792
|
]);
|
|
@@ -821,7 +821,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
821
821
|
refContext: {}
|
|
822
822
|
},
|
|
823
823
|
setup(t) {
|
|
824
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
824
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e), { property: c } = l(e, ["settings", "color"]), { color: u } = q(c), { property: p } = l(e, ["settings", "decay"]), { property: d } = l(e, [
|
|
825
825
|
"settings",
|
|
826
826
|
"distance"
|
|
827
827
|
]), { property: m } = l(e, [
|
|
@@ -861,7 +861,7 @@ const Bi = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
|
|
|
861
861
|
refContext: {}
|
|
862
862
|
},
|
|
863
863
|
setup(t) {
|
|
864
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
864
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e), { property: c } = l(e, ["settings", "angle"]), { property: u } = l(e, ["settings", "color"]), { color: p } = q(u), { property: d } = l(e, ["settings", "decay"]), { property: m } = l(e, [
|
|
865
865
|
"settings",
|
|
866
866
|
"distance"
|
|
867
867
|
]), { property: f } = l(e, [
|
|
@@ -910,7 +910,7 @@ const or = /* @__PURE__ */ Ae(tr, [["render", nr]]), ir = ["position", "rotation
|
|
|
910
910
|
refContext: {}
|
|
911
911
|
},
|
|
912
912
|
setup(t) {
|
|
913
|
-
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } =
|
|
913
|
+
const n = t, { node: e } = P(n), o = J(), { position: s, rotation: r, scale: a } = ge(e);
|
|
914
914
|
return (c, u) => (_(), S(i(Se), {
|
|
915
915
|
position: i(s),
|
|
916
916
|
rotation: i(r),
|
|
@@ -936,7 +936,7 @@ const or = /* @__PURE__ */ Ae(tr, [["render", nr]]), ir = ["position", "rotation
|
|
|
936
936
|
refContext: {}
|
|
937
937
|
},
|
|
938
938
|
setup(t) {
|
|
939
|
-
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: r } =
|
|
939
|
+
const n = t, { node: e } = P(n), { position: o, rotation: s, scale: r } = ge(e);
|
|
940
940
|
return (a, c) => (_(), ie("TresMesh", {
|
|
941
941
|
position: i(o),
|
|
942
942
|
rotation: i(s),
|
|
@@ -1016,8 +1016,8 @@ pi([
|
|
|
1016
1016
|
_i,
|
|
1017
1017
|
vi
|
|
1018
1018
|
]);
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
ko("dark", Wr);
|
|
1020
|
+
ko("light", ds);
|
|
1021
1021
|
const fs = /* @__PURE__ */ C({
|
|
1022
1022
|
__name: "index",
|
|
1023
1023
|
props: {
|
|
@@ -1026,13 +1026,13 @@ const fs = /* @__PURE__ */ C({
|
|
|
1026
1026
|
refContext: {}
|
|
1027
1027
|
},
|
|
1028
1028
|
setup(t) {
|
|
1029
|
-
const n = t, { node: e } = P(n), o = Be(), s = Ue(), r =
|
|
1029
|
+
const n = t, { node: e } = P(n), o = Be(), s = Ue(), r = _e(), a = ve(), { width: c, minWidth: u, maxWidth: p, height: d, minHeight: m, maxHeight: f, applySize: g } = he(n, e), { applyTitle: b } = zo(e), { applyXAxis: v } = To(e), { applyYAxis: h } = Eo(e), { applyLegend: x } = Po(e), { applySeries: $ } = Lo(e), V = k(() => {
|
|
1030
1030
|
const L = {}, H = a.value?.type;
|
|
1031
1031
|
return r === "page" ? H === "common" ? g(L) : console.assert(!1) : r === "comp" && H === "common" ? g(L) : console.assert(!1), L;
|
|
1032
1032
|
}), F = uo("chart");
|
|
1033
1033
|
let W;
|
|
1034
1034
|
const U = () => {
|
|
1035
|
-
W?.dispose(), W =
|
|
1035
|
+
W?.dispose(), W = wo.init(F.value, s.value ? "dark" : "light");
|
|
1036
1036
|
const L = {};
|
|
1037
1037
|
W.setOption(L);
|
|
1038
1038
|
}, j = () => {
|
|
@@ -1042,7 +1042,7 @@ const fs = /* @__PURE__ */ C({
|
|
|
1042
1042
|
b(L), v(L), h(L), x(L), $(L), W?.setOption(L, !0);
|
|
1043
1043
|
};
|
|
1044
1044
|
return mo(async () => {
|
|
1045
|
-
window.addEventListener("resize", j, !1), await
|
|
1045
|
+
window.addEventListener("resize", j, !1), await bo(() => !!F.value), U(), K();
|
|
1046
1046
|
}), Ge(() => {
|
|
1047
1047
|
window.removeEventListener("resize", j, !1), W?.dispose();
|
|
1048
1048
|
}), ce(
|
|
@@ -1088,13 +1088,13 @@ const fs = /* @__PURE__ */ C({
|
|
|
1088
1088
|
refContext: {}
|
|
1089
1089
|
},
|
|
1090
1090
|
setup(t) {
|
|
1091
|
-
const n = t, { node: e } = P(n), o = Be(), s = Ue(), r =
|
|
1091
|
+
const n = t, { node: e } = P(n), o = Be(), s = Ue(), r = _e(), a = ve(), { width: c, minWidth: u, maxWidth: p, height: d, minHeight: m, maxHeight: f, applySize: g } = he(n, e), { applyTitle: b } = zo(e), { applyXAxis: v } = To(e), { applyYAxis: h } = Eo(e), { applyLegend: x } = Po(e), { applySeries: $ } = Lo(e), V = k(() => {
|
|
1092
1092
|
const L = {}, H = a.value?.type;
|
|
1093
1093
|
return r === "page" ? H === "common" ? g(L) : console.assert(!1) : r === "comp" && H === "common" ? g(L) : console.assert(!1), L;
|
|
1094
1094
|
}), F = uo("chart");
|
|
1095
1095
|
let W;
|
|
1096
1096
|
const U = () => {
|
|
1097
|
-
W?.dispose(), W =
|
|
1097
|
+
W?.dispose(), W = wo.init(F.value, s.value ? "dark" : "light");
|
|
1098
1098
|
const L = {};
|
|
1099
1099
|
W.setOption(L);
|
|
1100
1100
|
}, j = () => {
|
|
@@ -1104,7 +1104,7 @@ const fs = /* @__PURE__ */ C({
|
|
|
1104
1104
|
b(L), v(L), h(L), x(L), $(L), W?.setOption(L, !0);
|
|
1105
1105
|
};
|
|
1106
1106
|
return mo(async () => {
|
|
1107
|
-
window.addEventListener("resize", j, !1), await
|
|
1107
|
+
window.addEventListener("resize", j, !1), await bo(() => !!F.value), U(), K();
|
|
1108
1108
|
}), Ge(() => {
|
|
1109
1109
|
window.removeEventListener("resize", j, !1), W?.dispose();
|
|
1110
1110
|
}), ce(
|
|
@@ -1151,7 +1151,7 @@ const fs = /* @__PURE__ */ C({
|
|
|
1151
1151
|
},
|
|
1152
1152
|
setup(t) {
|
|
1153
1153
|
const n = t, e = se(), o = J();
|
|
1154
|
-
return rn(n, e), ne(o) && sn(e, "multipleRef", n.nodeId, "",
|
|
1154
|
+
return rn(n, e), ne(o) && sn(e, "multipleRef", n.nodeId, "", xe()), (s, r) => (_(), ie("div"));
|
|
1155
1155
|
}
|
|
1156
1156
|
}), gs = /* @__PURE__ */ C({
|
|
1157
1157
|
__name: "index",
|
|
@@ -1161,25 +1161,25 @@ const fs = /* @__PURE__ */ C({
|
|
|
1161
1161
|
refContext: {}
|
|
1162
1162
|
},
|
|
1163
1163
|
setup(t) {
|
|
1164
|
-
const { t: n } =
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
rn(
|
|
1168
|
-
const
|
|
1164
|
+
const { t: n } = So(), e = fo(), o = t, { node: s } = P(o), r = se();
|
|
1165
|
+
Go(r);
|
|
1166
|
+
const a = J();
|
|
1167
|
+
rn(o, r), ne(a) && sn(r, "reference", o.nodeId, "", xe());
|
|
1168
|
+
const { applySize: c } = he(o, s), u = k(() => {
|
|
1169
1169
|
const m = {};
|
|
1170
|
-
return
|
|
1170
|
+
return r.value?.type === "common" && c(m), m;
|
|
1171
1171
|
});
|
|
1172
1172
|
function p(m) {
|
|
1173
1173
|
const f = Ke[m.key];
|
|
1174
1174
|
if (!f)
|
|
1175
|
-
return console.assert(!1, `element not found key=${m.key}`),
|
|
1175
|
+
return console.assert(!1, `element not found key=${m.key}`), ye("div", `element not found key=${m.key}`);
|
|
1176
1176
|
const g = {
|
|
1177
1177
|
nodeId: m.id
|
|
1178
1178
|
};
|
|
1179
|
-
return
|
|
1180
|
-
parent:
|
|
1179
|
+
return Co(m.key) && (g.refContext = {
|
|
1180
|
+
parent: o.refContext,
|
|
1181
1181
|
compId: m.refId
|
|
1182
|
-
}),
|
|
1182
|
+
}), ye(
|
|
1183
1183
|
f.comp,
|
|
1184
1184
|
{
|
|
1185
1185
|
key: m.id,
|
|
@@ -1194,17 +1194,17 @@ const fs = /* @__PURE__ */ C({
|
|
|
1194
1194
|
);
|
|
1195
1195
|
}
|
|
1196
1196
|
const d = () => {
|
|
1197
|
-
if (
|
|
1198
|
-
return
|
|
1199
|
-
if (
|
|
1200
|
-
return
|
|
1197
|
+
if (Vo(o.refContext))
|
|
1198
|
+
return ye("div", { id: e.id }, n("x-runtime-lib.circularRef"));
|
|
1199
|
+
if (r.value?.type === "common")
|
|
1200
|
+
return ye(
|
|
1201
1201
|
"div",
|
|
1202
1202
|
{
|
|
1203
|
-
id:
|
|
1203
|
+
id: e.id,
|
|
1204
1204
|
style: u.value
|
|
1205
1205
|
},
|
|
1206
1206
|
{
|
|
1207
|
-
default: () =>
|
|
1207
|
+
default: () => r.value?.view.nodeLites.map((f) => p(f))
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
1210
1210
|
};
|
|
@@ -1226,44 +1226,56 @@ const fs = /* @__PURE__ */ C({
|
|
|
1226
1226
|
_: 3
|
|
1227
1227
|
}));
|
|
1228
1228
|
}
|
|
1229
|
-
}),
|
|
1229
|
+
}), be = /* @__PURE__ */ C({
|
|
1230
1230
|
__name: "index",
|
|
1231
1231
|
props: {
|
|
1232
1232
|
nodeId: {},
|
|
1233
1233
|
outer: { type: Boolean },
|
|
1234
|
-
refContext: {}
|
|
1234
|
+
refContext: {},
|
|
1235
|
+
nowrap: { type: Boolean }
|
|
1235
1236
|
},
|
|
1236
1237
|
setup(t) {
|
|
1237
|
-
const { t: n } =
|
|
1238
|
-
|
|
1239
|
-
const
|
|
1240
|
-
rn(
|
|
1241
|
-
function
|
|
1242
|
-
const
|
|
1243
|
-
if (!
|
|
1244
|
-
return console.assert(!1, `element not found key=${
|
|
1245
|
-
const
|
|
1246
|
-
nodeId:
|
|
1238
|
+
const { t: n } = So(), e = fo(), o = t, s = se();
|
|
1239
|
+
Go(s);
|
|
1240
|
+
const r = J();
|
|
1241
|
+
rn(o, s), ne(r) && sn(s, "slot", o.nodeId, "", xe());
|
|
1242
|
+
function a(u) {
|
|
1243
|
+
const p = Ke[u.key];
|
|
1244
|
+
if (!p)
|
|
1245
|
+
return console.assert(!1, `element not found key=${u.key}`), ye("div", `element not found key=${u.key}`);
|
|
1246
|
+
const d = {
|
|
1247
|
+
nodeId: u.id
|
|
1247
1248
|
};
|
|
1248
|
-
return
|
|
1249
|
-
parent:
|
|
1250
|
-
compId:
|
|
1251
|
-
}),
|
|
1252
|
-
|
|
1249
|
+
return Co(u.key) && (d.refContext = {
|
|
1250
|
+
parent: o.refContext,
|
|
1251
|
+
compId: u.refId
|
|
1252
|
+
}), ye(
|
|
1253
|
+
p.comp,
|
|
1253
1254
|
{
|
|
1254
|
-
key:
|
|
1255
|
-
...
|
|
1255
|
+
key: u.id,
|
|
1256
|
+
...d
|
|
1256
1257
|
},
|
|
1257
1258
|
{
|
|
1258
1259
|
default: () => {
|
|
1259
|
-
if (!
|
|
1260
|
-
return
|
|
1260
|
+
if (!p.leaf)
|
|
1261
|
+
return u.children?.map((m) => a(m));
|
|
1261
1262
|
}
|
|
1262
1263
|
}
|
|
1263
1264
|
);
|
|
1264
1265
|
}
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1266
|
+
const c = () => Vo(o.refContext) ? ye("div", { id: e.id }, n("x-runtime-lib.circularRef")) : o.nowrap ? s.value?.view.nodeLites.map((u) => a(u)) : ye(
|
|
1267
|
+
"div",
|
|
1268
|
+
{
|
|
1269
|
+
id: e.id,
|
|
1270
|
+
style: {
|
|
1271
|
+
display: "contents"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
default: () => s.value?.view.nodeLites.map((u) => a(u))
|
|
1276
|
+
}
|
|
1277
|
+
);
|
|
1278
|
+
return (u, p) => (_(), S(c));
|
|
1267
1279
|
}
|
|
1268
1280
|
}), _s = /* @__PURE__ */ C({
|
|
1269
1281
|
__name: "index",
|
|
@@ -1311,7 +1323,7 @@ const fs = /* @__PURE__ */ C({
|
|
|
1311
1323
|
refContext: {}
|
|
1312
1324
|
},
|
|
1313
1325
|
setup(t) {
|
|
1314
|
-
const n = t, { node: e } = P(n), o =
|
|
1326
|
+
const n = t, { node: e } = P(n), o = xe(), { property: s } = l(e, [
|
|
1315
1327
|
"settings",
|
|
1316
1328
|
"addIcon",
|
|
1317
1329
|
"append"
|
|
@@ -1591,7 +1603,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1591
1603
|
refContext: {}
|
|
1592
1604
|
},
|
|
1593
1605
|
setup(t) {
|
|
1594
|
-
const n = t, { node: e } = P(n), o =
|
|
1606
|
+
const n = t, { node: e } = P(n), o = _e(), s = ve(), { applySize: r } = he(n, e), a = k(() => {
|
|
1595
1607
|
const v = {}, h = s.value?.type;
|
|
1596
1608
|
return o === "page" ? h === "common" ? r(v) : console.assert(!1) : o === "comp" && h === "common" ? r(v) : console.assert(!1), v;
|
|
1597
1609
|
}), { property: c } = l(e, [
|
|
@@ -1684,10 +1696,10 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1684
1696
|
refContext: {}
|
|
1685
1697
|
},
|
|
1686
1698
|
setup(t) {
|
|
1687
|
-
const n = t, { node: e } = P(n), o =
|
|
1699
|
+
const n = t, { node: e } = P(n), o = _e(), s = ve(), { property: r } = l(e, [
|
|
1688
1700
|
"settings",
|
|
1689
1701
|
"backgroundColor"
|
|
1690
|
-
]), { color: a } = q(r), { applySize: c } =
|
|
1702
|
+
]), { color: a } = q(r), { applySize: c } = he(n, e), { applyMargin: u } = Jt(e), { applyPadding: p } = qt(e), { applyBorder: d } = Ut(e), m = k(() => {
|
|
1691
1703
|
const f = {}, g = s.value?.type;
|
|
1692
1704
|
return o === "page" ? g === "common" ? (c(f), u(f), p(f), d(f), a.value && (f.backgroundColor = a.value)) : console.assert(!1) : o === "comp" && g === "common" ? (c(f), u(f), p(f), d(f), a.value && (f.backgroundColor = a.value)) : console.assert(!1), f;
|
|
1693
1705
|
});
|
|
@@ -1748,7 +1760,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1748
1760
|
Yo(b.value, ($) => ({
|
|
1749
1761
|
name: `item.${$.column}`,
|
|
1750
1762
|
fn: I(({ value: V }) => [
|
|
1751
|
-
O(i(
|
|
1763
|
+
O(i(be), {
|
|
1752
1764
|
"node-id": $.column,
|
|
1753
1765
|
"ref-context": { compId: $.comp },
|
|
1754
1766
|
state: { value: V }
|
|
@@ -1782,7 +1794,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1782
1794
|
refContext: {}
|
|
1783
1795
|
},
|
|
1784
1796
|
setup(t) {
|
|
1785
|
-
const n = t, e = J(), { open: o } =
|
|
1797
|
+
const n = t, e = J(), { open: o } = go(`runtimeDlg/${yo()}`);
|
|
1786
1798
|
return Ye(n, "open", () => {
|
|
1787
1799
|
o.value = !0;
|
|
1788
1800
|
}), Ye(n, "close", () => {
|
|
@@ -1863,7 +1875,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1863
1875
|
refContext: {}
|
|
1864
1876
|
},
|
|
1865
1877
|
setup(t) {
|
|
1866
|
-
const n = t, { node: e } = P(n), o = Be(), s =
|
|
1878
|
+
const n = t, { node: e } = P(n), o = Be(), s = _e(), r = ve(), { applySize: a } = he(n, e), { applyMargin: c } = Jt(e), { applyPadding: u } = qt(e), { applyBorder: p } = Ut(e), { property: d } = l(e, [
|
|
1867
1879
|
"settings",
|
|
1868
1880
|
"backgroundColor"
|
|
1869
1881
|
]), { color: m } = q(d), f = (b) => {
|
|
@@ -1894,7 +1906,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1894
1906
|
refContext: {}
|
|
1895
1907
|
},
|
|
1896
1908
|
setup(t) {
|
|
1897
|
-
const n = t, { node: e } = P(n), o =
|
|
1909
|
+
const n = t, { node: e } = P(n), o = _e(), s = ve(), { applySize: r } = he(n, e), { property: a } = l(e, ["settings", "grow"]), { property: c } = l(e, ["settings", "shrink"]), u = k(() => {
|
|
1898
1910
|
const p = {}, d = s.value?.type;
|
|
1899
1911
|
return o === "page" ? d === "common" ? (r(p), p.flexGrow = a.value ? 1 : 0, p.flexShrink = c.value ? 1 : 0) : console.assert(!1) : o === "comp" && d === "common" ? (r(p), p.flexGrow = a.value ? 1 : 0, p.flexShrink = c.value ? 1 : 0) : console.assert(!1), p;
|
|
1900
1912
|
});
|
|
@@ -1912,13 +1924,13 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1912
1924
|
refContext: {}
|
|
1913
1925
|
},
|
|
1914
1926
|
setup(t) {
|
|
1915
|
-
const n = t, { node: e } = P(n), o =
|
|
1927
|
+
const n = t, { node: e } = P(n), o = _e(), s = ve(), r = xe(), { property: a } = l(e, ["settings", "valid"]), { property: c } = l(e, [
|
|
1916
1928
|
"settings",
|
|
1917
1929
|
"fastFail"
|
|
1918
1930
|
]), { property: u } = l(e, [
|
|
1919
1931
|
"settings",
|
|
1920
1932
|
"backgroundColor"
|
|
1921
|
-
]), { color: p } = q(u), { applySize: d } =
|
|
1933
|
+
]), { color: p } = q(u), { applySize: d } = he(n, e), { applyMargin: m } = Jt(e), { applyPadding: f } = qt(e), { applyBorder: g } = Ut(e), b = k(() => {
|
|
1922
1934
|
const h = {}, x = s.value?.type;
|
|
1923
1935
|
return o === "page" ? x === "common" ? (d(h), m(h), f(h), g(h), p.value && (h.backgroundColor = p.value)) : console.assert(!1) : o === "comp" && x === "common" ? (d(h), m(h), f(h), g(h), p.value && (h.backgroundColor = p.value)) : console.assert(!1), h;
|
|
1924
1936
|
}), v = () => {
|
|
@@ -1974,7 +1986,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
1974
1986
|
refContext: {}
|
|
1975
1987
|
},
|
|
1976
1988
|
setup(t) {
|
|
1977
|
-
const n = t, e = J(), o =
|
|
1989
|
+
const n = t, e = J(), o = xe(), s = se(0), r = se(0), a = k(() => [s.value, r.value]), { open: c } = go(`runtimeMenu/${yo()}`);
|
|
1978
1990
|
return Ye(n, "open", () => {
|
|
1979
1991
|
if (!o || !o.vm)
|
|
1980
1992
|
return;
|
|
@@ -2246,7 +2258,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
2246
2258
|
const K = {};
|
|
2247
2259
|
for (const { value: L, label: H } of $.value)
|
|
2248
2260
|
K[L] = H;
|
|
2249
|
-
if (!
|
|
2261
|
+
if (!Io(K))
|
|
2250
2262
|
return K;
|
|
2251
2263
|
}), { property: F } = l(e, [
|
|
2252
2264
|
"settings",
|
|
@@ -2429,7 +2441,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
2429
2441
|
const de = {};
|
|
2430
2442
|
for (const { value: Je, label: lt } of U.value)
|
|
2431
2443
|
de[Je] = lt;
|
|
2432
|
-
if (!
|
|
2444
|
+
if (!Io(de))
|
|
2433
2445
|
return de;
|
|
2434
2446
|
}), { property: K } = l(e, [
|
|
2435
2447
|
"settings",
|
|
@@ -2447,7 +2459,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
2447
2459
|
default: I(() => [
|
|
2448
2460
|
O(lt, {
|
|
2449
2461
|
modelValue: i(ee),
|
|
2450
|
-
"onUpdate:modelValue": Je[0] || (Je[0] = (
|
|
2462
|
+
"onUpdate:modelValue": Je[0] || (Je[0] = (Jo) => Z(ee) ? ee.value = Jo : null),
|
|
2451
2463
|
color: i(s),
|
|
2452
2464
|
direction: i(r),
|
|
2453
2465
|
disabled: i(a),
|
|
@@ -2470,7 +2482,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
2470
2482
|
i(ae) ? {
|
|
2471
2483
|
name: "append",
|
|
2472
2484
|
fn: I(() => [
|
|
2473
|
-
O(i(
|
|
2485
|
+
O(i(be), {
|
|
2474
2486
|
"node-id": "append",
|
|
2475
2487
|
"ref-context": { compId: i(ae) },
|
|
2476
2488
|
state: {}
|
|
@@ -2481,7 +2493,7 @@ const ws = /* @__PURE__ */ Ae(xs, [["render", ks]]), Is = /* @__PURE__ */ C({
|
|
|
2481
2493
|
i($e) ? {
|
|
2482
2494
|
name: "prepend",
|
|
2483
2495
|
fn: I(() => [
|
|
2484
|
-
O(i(
|
|
2496
|
+
O(i(be), {
|
|
2485
2497
|
"node-id": "prepend",
|
|
2486
2498
|
"ref-context": { compId: i($e) },
|
|
2487
2499
|
state: {}
|
|
@@ -2898,7 +2910,7 @@ const il = /* @__PURE__ */ Ae(nl, [["render", ol]]), rl = /* @__PURE__ */ C({
|
|
|
2898
2910
|
i(j) ? {
|
|
2899
2911
|
name: "append",
|
|
2900
2912
|
fn: I(() => [
|
|
2901
|
-
O(i(
|
|
2913
|
+
O(i(be), {
|
|
2902
2914
|
"node-id": "append",
|
|
2903
2915
|
"ref-context": { compId: i(j) },
|
|
2904
2916
|
state: {}
|
|
@@ -2909,7 +2921,7 @@ const il = /* @__PURE__ */ Ae(nl, [["render", ol]]), rl = /* @__PURE__ */ C({
|
|
|
2909
2921
|
i(K) ? {
|
|
2910
2922
|
name: "append-inner",
|
|
2911
2923
|
fn: I(() => [
|
|
2912
|
-
O(i(
|
|
2924
|
+
O(i(be), {
|
|
2913
2925
|
"node-id": "append-inner",
|
|
2914
2926
|
"ref-context": { compId: i(K) },
|
|
2915
2927
|
state: {}
|
|
@@ -2920,7 +2932,7 @@ const il = /* @__PURE__ */ Ae(nl, [["render", ol]]), rl = /* @__PURE__ */ C({
|
|
|
2920
2932
|
i(L) ? {
|
|
2921
2933
|
name: "prepend",
|
|
2922
2934
|
fn: I(() => [
|
|
2923
|
-
O(i(
|
|
2935
|
+
O(i(be), {
|
|
2924
2936
|
"node-id": "prepend",
|
|
2925
2937
|
"ref-context": { compId: i(L) },
|
|
2926
2938
|
state: {}
|
|
@@ -2931,7 +2943,7 @@ const il = /* @__PURE__ */ Ae(nl, [["render", ol]]), rl = /* @__PURE__ */ C({
|
|
|
2931
2943
|
i(H) ? {
|
|
2932
2944
|
name: "prepend-inner",
|
|
2933
2945
|
fn: I(() => [
|
|
2934
|
-
O(i(
|
|
2946
|
+
O(i(be), {
|
|
2935
2947
|
"node-id": "prepend-inner",
|
|
2936
2948
|
"ref-context": { compId: i(H) },
|
|
2937
2949
|
state: {}
|
|
@@ -4293,7 +4305,7 @@ const xn = {
|
|
|
4293
4305
|
{
|
|
4294
4306
|
key: "comp",
|
|
4295
4307
|
name: "x-runtime-lib.comp",
|
|
4296
|
-
ui: "
|
|
4308
|
+
ui: "selectComp",
|
|
4297
4309
|
default: void 0
|
|
4298
4310
|
}
|
|
4299
4311
|
]
|
|
@@ -4336,20 +4348,20 @@ const wn = {
|
|
|
4336
4348
|
{
|
|
4337
4349
|
key: "slot",
|
|
4338
4350
|
name: "x-runtime-lib.slot",
|
|
4339
|
-
ui: "
|
|
4351
|
+
ui: "selectSlot",
|
|
4340
4352
|
default: void 0
|
|
4341
4353
|
},
|
|
4342
4354
|
{
|
|
4343
4355
|
key: "comp",
|
|
4344
4356
|
name: "x-runtime-lib.comp",
|
|
4345
|
-
ui: "
|
|
4357
|
+
ui: "selectComp",
|
|
4346
4358
|
default: void 0
|
|
4347
4359
|
}
|
|
4348
4360
|
]
|
|
4349
4361
|
}, Fl = {
|
|
4350
4362
|
key: "slot_v1",
|
|
4351
4363
|
name: "x-runtime-lib.slot",
|
|
4352
|
-
comp:
|
|
4364
|
+
comp: be,
|
|
4353
4365
|
properties: {
|
|
4354
4366
|
pageCommon: [y, wn],
|
|
4355
4367
|
compCommon: [y, wn]
|
|
@@ -4360,10 +4372,10 @@ w(Fl);
|
|
|
4360
4372
|
const Me = D(X);
|
|
4361
4373
|
Me.key = "backgroundColor";
|
|
4362
4374
|
Me.name = "x-runtime-lib.backgroundColor";
|
|
4363
|
-
const
|
|
4375
|
+
const Ao = {
|
|
4364
4376
|
key: "adaptSlot",
|
|
4365
4377
|
name: "x-runtime-lib.adaptSlot",
|
|
4366
|
-
ui: "
|
|
4378
|
+
ui: "selectAdaptSlot",
|
|
4367
4379
|
default: void 0
|
|
4368
4380
|
}, Nl = {
|
|
4369
4381
|
key: "settings",
|
|
@@ -4372,7 +4384,7 @@ const Eo = {
|
|
|
4372
4384
|
}, jl = {
|
|
4373
4385
|
key: "settings",
|
|
4374
4386
|
name: "x-runtime-lib.settings",
|
|
4375
|
-
children: [Me,
|
|
4387
|
+
children: [Me, Ao]
|
|
4376
4388
|
}, Gl = {
|
|
4377
4389
|
key: "settings",
|
|
4378
4390
|
name: "x-runtime-lib.settings",
|
|
@@ -4380,7 +4392,7 @@ const Eo = {
|
|
|
4380
4392
|
}, Hl = {
|
|
4381
4393
|
key: "settings",
|
|
4382
4394
|
name: "x-runtime-lib.settings",
|
|
4383
|
-
children: [Me,
|
|
4395
|
+
children: [Me, Ao]
|
|
4384
4396
|
}, Ul = {
|
|
4385
4397
|
key: "startup",
|
|
4386
4398
|
name: "x-runtime-lib.startup"
|
|
@@ -5220,7 +5232,7 @@ const En = {
|
|
|
5220
5232
|
{
|
|
5221
5233
|
key: "comp",
|
|
5222
5234
|
name: "x-runtime-lib.comp",
|
|
5223
|
-
ui: "
|
|
5235
|
+
ui: "selectComp",
|
|
5224
5236
|
default: void 0
|
|
5225
5237
|
}
|
|
5226
5238
|
],
|
|
@@ -5727,25 +5739,25 @@ const Kn = {
|
|
|
5727
5739
|
{
|
|
5728
5740
|
key: "append",
|
|
5729
5741
|
name: "x-runtime-lib.append",
|
|
5730
|
-
ui: "
|
|
5742
|
+
ui: "selectComp",
|
|
5731
5743
|
default: void 0
|
|
5732
5744
|
},
|
|
5733
5745
|
{
|
|
5734
5746
|
key: "appendInner",
|
|
5735
5747
|
name: "x-runtime-lib.appendInner",
|
|
5736
|
-
ui: "
|
|
5748
|
+
ui: "selectComp",
|
|
5737
5749
|
default: void 0
|
|
5738
5750
|
},
|
|
5739
5751
|
{
|
|
5740
5752
|
key: "prepend",
|
|
5741
5753
|
name: "x-runtime-lib.prepend",
|
|
5742
|
-
ui: "
|
|
5754
|
+
ui: "selectComp",
|
|
5743
5755
|
default: void 0
|
|
5744
5756
|
},
|
|
5745
5757
|
{
|
|
5746
5758
|
key: "prependInner",
|
|
5747
5759
|
name: "x-runtime-lib.prependInner",
|
|
5748
|
-
ui: "
|
|
5760
|
+
ui: "selectComp",
|
|
5749
5761
|
default: void 0
|
|
5750
5762
|
}
|
|
5751
5763
|
]
|
|
@@ -6729,13 +6741,13 @@ const Yn = {
|
|
|
6729
6741
|
{
|
|
6730
6742
|
key: "append",
|
|
6731
6743
|
name: "x-runtime-lib.append",
|
|
6732
|
-
ui: "
|
|
6744
|
+
ui: "selectComp",
|
|
6733
6745
|
default: void 0
|
|
6734
6746
|
},
|
|
6735
6747
|
{
|
|
6736
6748
|
key: "prepend",
|
|
6737
6749
|
name: "x-runtime-lib.prepend",
|
|
6738
|
-
ui: "
|
|
6750
|
+
ui: "selectComp",
|
|
6739
6751
|
default: void 0
|
|
6740
6752
|
}
|
|
6741
6753
|
]
|
|
@@ -8405,7 +8417,7 @@ function ao(t, n) {
|
|
|
8405
8417
|
return n ? D(t.default) : D(t.defaultArray);
|
|
8406
8418
|
{
|
|
8407
8419
|
const e = D(t.default);
|
|
8408
|
-
return (t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "
|
|
8420
|
+
return (t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "selectComp" || t.ui === "selectSlot" || t.ui === "selectAdaptSlot") && !e ? void 0 : e;
|
|
8409
8421
|
}
|
|
8410
8422
|
}
|
|
8411
8423
|
function A(t, n) {
|
|
@@ -8518,66 +8530,66 @@ function Cc(t) {
|
|
|
8518
8530
|
function yu(t) {
|
|
8519
8531
|
return t.map((n) => Cc(n));
|
|
8520
8532
|
}
|
|
8521
|
-
const
|
|
8533
|
+
const Mo = "runtimeOrg", Bo = "runtimeEnv", Wo = "runtimeMode", Ro = "runtimeDevice", Ko = "runtimeDark", Do = "runtimeType", Oo = "runtimeData", Fo = "runtimeDepends", No = "runtimeRuntime", jo = "runtimeSandbox";
|
|
8522
8534
|
function bu(t) {
|
|
8523
|
-
me(
|
|
8535
|
+
me(Mo, t);
|
|
8524
8536
|
}
|
|
8525
8537
|
function Vc() {
|
|
8526
|
-
return ue(
|
|
8538
|
+
return ue(Mo);
|
|
8527
8539
|
}
|
|
8528
8540
|
function gu(t) {
|
|
8529
|
-
me(
|
|
8541
|
+
me(Bo, t);
|
|
8530
8542
|
}
|
|
8531
8543
|
function Pc() {
|
|
8532
|
-
return ue(
|
|
8544
|
+
return ue(Bo);
|
|
8533
8545
|
}
|
|
8534
8546
|
function hu(t) {
|
|
8535
|
-
me(
|
|
8547
|
+
me(Wo, t);
|
|
8536
8548
|
}
|
|
8537
8549
|
function J() {
|
|
8538
|
-
return ue(
|
|
8550
|
+
return ue(Wo);
|
|
8539
8551
|
}
|
|
8540
8552
|
function _u(t) {
|
|
8541
|
-
me(
|
|
8553
|
+
me(Ro, Nt(t));
|
|
8542
8554
|
}
|
|
8543
8555
|
function Be() {
|
|
8544
|
-
return ue(
|
|
8556
|
+
return ue(Ro);
|
|
8545
8557
|
}
|
|
8546
8558
|
function vu(t) {
|
|
8547
|
-
me(
|
|
8559
|
+
me(Ko, Nt(t));
|
|
8548
8560
|
}
|
|
8549
8561
|
function Ue() {
|
|
8550
|
-
return ue(Ro);
|
|
8551
|
-
}
|
|
8552
|
-
function xu(t) {
|
|
8553
|
-
me(Ko, t);
|
|
8554
|
-
}
|
|
8555
|
-
function he() {
|
|
8556
8562
|
return ue(Ko);
|
|
8557
8563
|
}
|
|
8558
|
-
function
|
|
8564
|
+
function xu(t) {
|
|
8559
8565
|
me(Do, t);
|
|
8560
8566
|
}
|
|
8561
8567
|
function _e() {
|
|
8562
8568
|
return ue(Do);
|
|
8563
8569
|
}
|
|
8570
|
+
function Go(t) {
|
|
8571
|
+
me(Oo, t);
|
|
8572
|
+
}
|
|
8573
|
+
function ve() {
|
|
8574
|
+
return ue(Oo);
|
|
8575
|
+
}
|
|
8564
8576
|
function ku(t) {
|
|
8565
|
-
me(
|
|
8577
|
+
me(Fo, Nt(t));
|
|
8566
8578
|
}
|
|
8567
8579
|
function Lc() {
|
|
8568
|
-
return ue(
|
|
8580
|
+
return ue(Fo);
|
|
8569
8581
|
}
|
|
8570
8582
|
function wu(t) {
|
|
8571
|
-
me(
|
|
8583
|
+
me(No, t);
|
|
8572
8584
|
}
|
|
8573
8585
|
function zc() {
|
|
8574
|
-
return ue(
|
|
8586
|
+
return ue(No);
|
|
8575
8587
|
}
|
|
8576
8588
|
function Tc(t) {
|
|
8577
|
-
me(
|
|
8589
|
+
me(jo, t);
|
|
8578
8590
|
}
|
|
8579
|
-
function
|
|
8580
|
-
return ue(
|
|
8591
|
+
function xe() {
|
|
8592
|
+
return ue(jo, void 0);
|
|
8581
8593
|
}
|
|
8582
8594
|
function Re(t) {
|
|
8583
8595
|
const n = [t.type];
|
|
@@ -8718,7 +8730,7 @@ function Vu(t) {
|
|
|
8718
8730
|
function Ec(t, n, e) {
|
|
8719
8731
|
return `${t}/${n}/${e}`;
|
|
8720
8732
|
}
|
|
8721
|
-
function
|
|
8733
|
+
function Ho(t) {
|
|
8722
8734
|
const n = t.split("/");
|
|
8723
8735
|
let e = "elementMethod";
|
|
8724
8736
|
n.length > 0 ? e = n[0] : console.error(`unwrapMethodId invalid kind id=${t}`);
|
|
@@ -8808,7 +8820,7 @@ function rn(t, n) {
|
|
|
8808
8820
|
}
|
|
8809
8821
|
const s = e.value[t.refContext.compId];
|
|
8810
8822
|
if (!s) {
|
|
8811
|
-
o.value = -1, n.value = void 0,
|
|
8823
|
+
o.value = -1, n.value = void 0, ho.emit("compNotAvail", t.refContext.compId);
|
|
8812
8824
|
return;
|
|
8813
8825
|
}
|
|
8814
8826
|
o.value !== s.dataSeq && (o.value = s.dataSeq, n.value = D(s.data));
|
|
@@ -8890,11 +8902,11 @@ function Mc(t) {
|
|
|
8890
8902
|
console.log(s, ...r);
|
|
8891
8903
|
}).consume((e) => n.setProp(n.global, "__consoleLogV1__", e)), n.newFunction("__debugTraceV1__", (e) => {
|
|
8892
8904
|
const o = n.dump(e);
|
|
8893
|
-
|
|
8905
|
+
ho.emit("consoleAppend", o);
|
|
8894
8906
|
}).consume((e) => n.setProp(n.global, "__debugTraceV1__", e)), n.newFunction("__messageV1__", (e, o) => {
|
|
8895
8907
|
const s = n.getString(e), r = n.dump(o);
|
|
8896
8908
|
let a = "";
|
|
8897
|
-
typeof r == "object" ? a = JSON.stringify(r) : a = String(r), s === "info" ? ti(a) : s === "success" ? ni(a) : s === "warning" ?
|
|
8909
|
+
typeof r == "object" ? a = JSON.stringify(r) : a = String(r), s === "info" ? ti(a) : s === "success" ? ni(a) : s === "warning" ? _o(a) : s === "error" && vo(a);
|
|
8898
8910
|
}).consume((e) => n.setProp(n.global, "__messageV1__", e)), n.newFunction("__timeoutV1__", (e, o) => {
|
|
8899
8911
|
const s = n.getNumber(e), r = n.getNumber(o);
|
|
8900
8912
|
window.setTimeout(() => {
|
|
@@ -8917,16 +8929,16 @@ function Mc(t) {
|
|
|
8917
8929
|
}, o), r.settled.then(n.runtime.executePendingJobs), r.handle;
|
|
8918
8930
|
}).consume((e) => n.setProp(n.global, "__delayV1__", e));
|
|
8919
8931
|
}
|
|
8920
|
-
const
|
|
8932
|
+
const Uo = oi({
|
|
8921
8933
|
baseUrl: "http://localhost/computebase/",
|
|
8922
8934
|
onError: (t) => {
|
|
8923
8935
|
const { i18n: n } = we;
|
|
8924
|
-
|
|
8936
|
+
vo($i(n, t));
|
|
8925
8937
|
}
|
|
8926
8938
|
});
|
|
8927
|
-
window.API_URL && (
|
|
8939
|
+
window.API_URL && (Uo.defaults.baseURL = window.API_URL + "/computebase/");
|
|
8928
8940
|
function Bc(t) {
|
|
8929
|
-
return
|
|
8941
|
+
return Uo.post("callFunc", t);
|
|
8930
8942
|
}
|
|
8931
8943
|
function Wc(t) {
|
|
8932
8944
|
if (!t.vm) {
|
|
@@ -9039,7 +9051,7 @@ function Kc(t) {
|
|
|
9039
9051
|
m && m.setCustomProperty(d, c);
|
|
9040
9052
|
} else u === "customProperty" ? t.setCustomProperty(d, c) : u === "customSlotProperty" || (u === "adaptSlotElementProperty" || u === "adaptSlotCustomProperty" ? t.setAdaptSlotProperty(d, c) : console.assert(!1));
|
|
9041
9053
|
}).consume((e) => n.setProp(n.global, "__setPropertyV1__", e)), n.newFunction("__callMethodV1__", (e, o, s) => {
|
|
9042
|
-
const r = n.getString(e), a = n.getString(o), c = n.dump(s), { kind: u, nodeId: p, methodKey: d } =
|
|
9054
|
+
const r = n.getString(e), a = n.getString(o), c = n.dump(s), { kind: u, nodeId: p, methodKey: d } = Ho(r);
|
|
9043
9055
|
let m;
|
|
9044
9056
|
if (u === "elementMethod")
|
|
9045
9057
|
m = t.callElementMethod(r, c);
|
|
@@ -9066,7 +9078,7 @@ function Kc(t) {
|
|
|
9066
9078
|
pageId: r
|
|
9067
9079
|
};
|
|
9068
9080
|
we.router.replace({ path: a, query: c });
|
|
9069
|
-
} else t.mode === "preview" &&
|
|
9081
|
+
} else t.mode === "preview" && _o(
|
|
9070
9082
|
we.i18n.global.t(
|
|
9071
9083
|
"x-runtime-lib.msg.takeEffectOnlyAfterReleased"
|
|
9072
9084
|
)
|
|
@@ -9307,7 +9319,7 @@ class Nc {
|
|
|
9307
9319
|
callElementMethod(n, e) {
|
|
9308
9320
|
if (!ne(this.mode))
|
|
9309
9321
|
return;
|
|
9310
|
-
const { methodKey: o } =
|
|
9322
|
+
const { methodKey: o } = Ho(n), s = {};
|
|
9311
9323
|
return this.eventBus.emit(n, { key: o, inputs: e, outputs: s }), s;
|
|
9312
9324
|
}
|
|
9313
9325
|
callCustomMethod(n, e) {
|
|
@@ -9330,7 +9342,7 @@ class Nc {
|
|
|
9330
9342
|
}
|
|
9331
9343
|
}
|
|
9332
9344
|
function sn(t, n, e, o, s) {
|
|
9333
|
-
const r = Vc(), a = Pc(), c = J(), u =
|
|
9345
|
+
const r = Vc(), a = Pc(), c = J(), u = _e(), p = Be(), d = Ue(), m = zc(), f = (x, $, V, F) => {
|
|
9334
9346
|
if (ne(c) && (h.callFunction(
|
|
9335
9347
|
"__triggerEventV1__",
|
|
9336
9348
|
oe("elementPropertyChangeEvent", x, $.join(".")),
|
|
@@ -9449,7 +9461,7 @@ export {
|
|
|
9449
9461
|
Yl as badgeV1,
|
|
9450
9462
|
gt as barChartV1,
|
|
9451
9463
|
yt as boxGeometryV1,
|
|
9452
|
-
|
|
9464
|
+
$o as breakpoints,
|
|
9453
9465
|
ea as btnGroupV1,
|
|
9454
9466
|
ta as btnToggleV1,
|
|
9455
9467
|
_t as btnV1,
|
|
@@ -9489,16 +9501,16 @@ export {
|
|
|
9489
9501
|
T as initNode,
|
|
9490
9502
|
A as initProperties,
|
|
9491
9503
|
Ue as injectDark,
|
|
9492
|
-
|
|
9504
|
+
ve as injectData,
|
|
9493
9505
|
Lc as injectDepends,
|
|
9494
9506
|
Be as injectDevice,
|
|
9495
9507
|
Pc as injectEnv,
|
|
9496
9508
|
J as injectMode,
|
|
9497
9509
|
Vc as injectOrg,
|
|
9498
9510
|
zc as injectRuntime,
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9511
|
+
xe as injectSandbox,
|
|
9512
|
+
_e as injectType,
|
|
9513
|
+
Vo as isCircularRef,
|
|
9502
9514
|
ne as isExecutableMode,
|
|
9503
9515
|
Ti as isLocaleOfEventKind,
|
|
9504
9516
|
zi as isLocaleOfMethodKind,
|
|
@@ -9506,7 +9518,7 @@ export {
|
|
|
9506
9518
|
iu as isLocaleOfSlotKind,
|
|
9507
9519
|
jt as isPercentStr,
|
|
9508
9520
|
nt as isPixelStr,
|
|
9509
|
-
|
|
9521
|
+
Co as isRefKey,
|
|
9510
9522
|
wl as keyboardControlsV1,
|
|
9511
9523
|
ht as lineChartV1,
|
|
9512
9524
|
Du as loadLocaleMessageRuntime,
|
|
@@ -9541,7 +9553,7 @@ export {
|
|
|
9541
9553
|
$c as pkgs,
|
|
9542
9554
|
Al as pointLightV1,
|
|
9543
9555
|
vu as provideDark,
|
|
9544
|
-
|
|
9556
|
+
Go as provideData,
|
|
9545
9557
|
ku as provideDepends,
|
|
9546
9558
|
_u as provideDevice,
|
|
9547
9559
|
gu as provideEnv,
|
|
@@ -9585,7 +9597,7 @@ export {
|
|
|
9585
9597
|
Ac as unwrapEventId,
|
|
9586
9598
|
Bu as unwrapEventKeyOfCustomSlot,
|
|
9587
9599
|
Au as unwrapEventKeyOfElementSlot,
|
|
9588
|
-
|
|
9600
|
+
Ho as unwrapMethodId,
|
|
9589
9601
|
Tu as unwrapMethodKeyOfCustomSlot,
|
|
9590
9602
|
Lu as unwrapMethodKeyOfElementSlot,
|
|
9591
9603
|
co as unwrapPropertyId,
|