x-runtime-lib 0.8.115 → 0.8.117
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.
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ElementProps } from '@/types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = ElementProps & {
|
|
3
|
+
nowrap?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
6
|
declare const _default: typeof __VLS_export;
|
|
4
7
|
export default _default;
|
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.muyuiulw.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) {
|
|
@@ -139,7 +139,7 @@ function E(t, n) {
|
|
|
139
139
|
return {
|
|
140
140
|
id: t.basic.id,
|
|
141
141
|
key: t.basic.key,
|
|
142
|
-
refId: t.
|
|
142
|
+
refId: t.settings?.comp,
|
|
143
143
|
children: n
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -167,7 +167,7 @@ function tu({ type: t, version: n, view: e, code: o }) {
|
|
|
167
167
|
}
|
|
168
168
|
function nu(t) {
|
|
169
169
|
const n = JSON.parse(t), e = (o, s) => {
|
|
170
|
-
o.key = s.basic.key, o.alias = s.basic.alias, o.refId = s.
|
|
170
|
+
o.key = s.basic.key, o.alias = s.basic.alias, o.refId = s.settings?.comp, o.children?.forEach((r) => {
|
|
171
171
|
e(r, n.view.nodes[r.id]);
|
|
172
172
|
});
|
|
173
173
|
};
|
|
@@ -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 =
|
|
394
|
+
const n = ve(), e = qo(n.value.view.nodes, t.nodeId);
|
|
395
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: {}
|
|
@@ -4287,8 +4299,8 @@ const Kl = {
|
|
|
4287
4299
|
};
|
|
4288
4300
|
w(Kl);
|
|
4289
4301
|
const xn = {
|
|
4290
|
-
key: "
|
|
4291
|
-
name: "x-runtime-lib.
|
|
4302
|
+
key: "settings",
|
|
4303
|
+
name: "x-runtime-lib.settings",
|
|
4292
4304
|
children: [
|
|
4293
4305
|
{
|
|
4294
4306
|
key: "comp",
|
|
@@ -4330,9 +4342,15 @@ const kn = {
|
|
|
4330
4342
|
};
|
|
4331
4343
|
w(Ol);
|
|
4332
4344
|
const wn = {
|
|
4333
|
-
key: "
|
|
4334
|
-
name: "x-runtime-lib.
|
|
4345
|
+
key: "settings",
|
|
4346
|
+
name: "x-runtime-lib.settings",
|
|
4335
4347
|
children: [
|
|
4348
|
+
{
|
|
4349
|
+
key: "slot",
|
|
4350
|
+
name: "x-runtime-lib.slot",
|
|
4351
|
+
ui: "slotSelect",
|
|
4352
|
+
default: void 0
|
|
4353
|
+
},
|
|
4336
4354
|
{
|
|
4337
4355
|
key: "comp",
|
|
4338
4356
|
name: "x-runtime-lib.comp",
|
|
@@ -4343,7 +4361,7 @@ const wn = {
|
|
|
4343
4361
|
}, Fl = {
|
|
4344
4362
|
key: "slot_v1",
|
|
4345
4363
|
name: "x-runtime-lib.slot",
|
|
4346
|
-
comp:
|
|
4364
|
+
comp: be,
|
|
4347
4365
|
properties: {
|
|
4348
4366
|
pageCommon: [y, wn],
|
|
4349
4367
|
compCommon: [y, wn]
|
|
@@ -4354,10 +4372,10 @@ w(Fl);
|
|
|
4354
4372
|
const Me = D(X);
|
|
4355
4373
|
Me.key = "backgroundColor";
|
|
4356
4374
|
Me.name = "x-runtime-lib.backgroundColor";
|
|
4357
|
-
const
|
|
4375
|
+
const Ao = {
|
|
4358
4376
|
key: "adaptSlot",
|
|
4359
4377
|
name: "x-runtime-lib.adaptSlot",
|
|
4360
|
-
ui: "
|
|
4378
|
+
ui: "adaptSlotSelect",
|
|
4361
4379
|
default: void 0
|
|
4362
4380
|
}, Nl = {
|
|
4363
4381
|
key: "settings",
|
|
@@ -4366,7 +4384,7 @@ const Eo = {
|
|
|
4366
4384
|
}, jl = {
|
|
4367
4385
|
key: "settings",
|
|
4368
4386
|
name: "x-runtime-lib.settings",
|
|
4369
|
-
children: [Me,
|
|
4387
|
+
children: [Me, Ao]
|
|
4370
4388
|
}, Gl = {
|
|
4371
4389
|
key: "settings",
|
|
4372
4390
|
name: "x-runtime-lib.settings",
|
|
@@ -4374,7 +4392,7 @@ const Eo = {
|
|
|
4374
4392
|
}, Hl = {
|
|
4375
4393
|
key: "settings",
|
|
4376
4394
|
name: "x-runtime-lib.settings",
|
|
4377
|
-
children: [Me,
|
|
4395
|
+
children: [Me, Ao]
|
|
4378
4396
|
}, Ul = {
|
|
4379
4397
|
key: "startup",
|
|
4380
4398
|
name: "x-runtime-lib.startup"
|
|
@@ -8443,9 +8461,7 @@ function du(t, n, e, o, s) {
|
|
|
8443
8461
|
return;
|
|
8444
8462
|
}
|
|
8445
8463
|
const f = T();
|
|
8446
|
-
return A(f, m), f.basic.id = z(16), f.basic.key = u, f.
|
|
8447
|
-
comp: p
|
|
8448
|
-
}, {
|
|
8464
|
+
return A(f, m), f.basic.id = z(16), f.basic.key = u, f.settings || (f.settings = {}), f.settings.comp = p, {
|
|
8449
8465
|
nodeLite: E(f),
|
|
8450
8466
|
nodes: {
|
|
8451
8467
|
[f.basic.id]: f
|
|
@@ -8514,66 +8530,66 @@ function Cc(t) {
|
|
|
8514
8530
|
function yu(t) {
|
|
8515
8531
|
return t.map((n) => Cc(n));
|
|
8516
8532
|
}
|
|
8517
|
-
const
|
|
8533
|
+
const Mo = "runtimeOrg", Bo = "runtimeEnv", Wo = "runtimeMode", Ro = "runtimeDevice", Ko = "runtimeDark", Do = "runtimeType", Oo = "runtimeData", Fo = "runtimeDepends", No = "runtimeRuntime", jo = "runtimeSandbox";
|
|
8518
8534
|
function bu(t) {
|
|
8519
|
-
me(
|
|
8535
|
+
me(Mo, t);
|
|
8520
8536
|
}
|
|
8521
8537
|
function Vc() {
|
|
8522
|
-
return ue(
|
|
8538
|
+
return ue(Mo);
|
|
8523
8539
|
}
|
|
8524
8540
|
function gu(t) {
|
|
8525
|
-
me(
|
|
8541
|
+
me(Bo, t);
|
|
8526
8542
|
}
|
|
8527
8543
|
function Pc() {
|
|
8528
|
-
return ue(
|
|
8544
|
+
return ue(Bo);
|
|
8529
8545
|
}
|
|
8530
8546
|
function hu(t) {
|
|
8531
|
-
me(
|
|
8547
|
+
me(Wo, t);
|
|
8532
8548
|
}
|
|
8533
8549
|
function J() {
|
|
8534
|
-
return ue(
|
|
8550
|
+
return ue(Wo);
|
|
8535
8551
|
}
|
|
8536
8552
|
function _u(t) {
|
|
8537
|
-
me(
|
|
8553
|
+
me(Ro, Nt(t));
|
|
8538
8554
|
}
|
|
8539
8555
|
function Be() {
|
|
8540
|
-
return ue(
|
|
8556
|
+
return ue(Ro);
|
|
8541
8557
|
}
|
|
8542
8558
|
function vu(t) {
|
|
8543
|
-
me(
|
|
8559
|
+
me(Ko, Nt(t));
|
|
8544
8560
|
}
|
|
8545
8561
|
function Ue() {
|
|
8546
|
-
return ue(Ro);
|
|
8547
|
-
}
|
|
8548
|
-
function xu(t) {
|
|
8549
|
-
me(Ko, t);
|
|
8550
|
-
}
|
|
8551
|
-
function he() {
|
|
8552
8562
|
return ue(Ko);
|
|
8553
8563
|
}
|
|
8554
|
-
function
|
|
8564
|
+
function xu(t) {
|
|
8555
8565
|
me(Do, t);
|
|
8556
8566
|
}
|
|
8557
8567
|
function _e() {
|
|
8558
8568
|
return ue(Do);
|
|
8559
8569
|
}
|
|
8570
|
+
function Go(t) {
|
|
8571
|
+
me(Oo, t);
|
|
8572
|
+
}
|
|
8573
|
+
function ve() {
|
|
8574
|
+
return ue(Oo);
|
|
8575
|
+
}
|
|
8560
8576
|
function ku(t) {
|
|
8561
|
-
me(
|
|
8577
|
+
me(Fo, Nt(t));
|
|
8562
8578
|
}
|
|
8563
8579
|
function Lc() {
|
|
8564
|
-
return ue(
|
|
8580
|
+
return ue(Fo);
|
|
8565
8581
|
}
|
|
8566
8582
|
function wu(t) {
|
|
8567
|
-
me(
|
|
8583
|
+
me(No, t);
|
|
8568
8584
|
}
|
|
8569
8585
|
function zc() {
|
|
8570
|
-
return ue(
|
|
8586
|
+
return ue(No);
|
|
8571
8587
|
}
|
|
8572
8588
|
function Tc(t) {
|
|
8573
|
-
me(
|
|
8589
|
+
me(jo, t);
|
|
8574
8590
|
}
|
|
8575
|
-
function
|
|
8576
|
-
return ue(
|
|
8591
|
+
function xe() {
|
|
8592
|
+
return ue(jo, void 0);
|
|
8577
8593
|
}
|
|
8578
8594
|
function Re(t) {
|
|
8579
8595
|
const n = [t.type];
|
|
@@ -8714,7 +8730,7 @@ function Vu(t) {
|
|
|
8714
8730
|
function Ec(t, n, e) {
|
|
8715
8731
|
return `${t}/${n}/${e}`;
|
|
8716
8732
|
}
|
|
8717
|
-
function
|
|
8733
|
+
function Ho(t) {
|
|
8718
8734
|
const n = t.split("/");
|
|
8719
8735
|
let e = "elementMethod";
|
|
8720
8736
|
n.length > 0 ? e = n[0] : console.error(`unwrapMethodId invalid kind id=${t}`);
|
|
@@ -8804,7 +8820,7 @@ function rn(t, n) {
|
|
|
8804
8820
|
}
|
|
8805
8821
|
const s = e.value[t.refContext.compId];
|
|
8806
8822
|
if (!s) {
|
|
8807
|
-
o.value = -1, n.value = void 0,
|
|
8823
|
+
o.value = -1, n.value = void 0, ho.emit("compNotAvail", t.refContext.compId);
|
|
8808
8824
|
return;
|
|
8809
8825
|
}
|
|
8810
8826
|
o.value !== s.dataSeq && (o.value = s.dataSeq, n.value = D(s.data));
|
|
@@ -8886,11 +8902,11 @@ function Mc(t) {
|
|
|
8886
8902
|
console.log(s, ...r);
|
|
8887
8903
|
}).consume((e) => n.setProp(n.global, "__consoleLogV1__", e)), n.newFunction("__debugTraceV1__", (e) => {
|
|
8888
8904
|
const o = n.dump(e);
|
|
8889
|
-
|
|
8905
|
+
ho.emit("consoleAppend", o);
|
|
8890
8906
|
}).consume((e) => n.setProp(n.global, "__debugTraceV1__", e)), n.newFunction("__messageV1__", (e, o) => {
|
|
8891
8907
|
const s = n.getString(e), r = n.dump(o);
|
|
8892
8908
|
let a = "";
|
|
8893
|
-
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);
|
|
8894
8910
|
}).consume((e) => n.setProp(n.global, "__messageV1__", e)), n.newFunction("__timeoutV1__", (e, o) => {
|
|
8895
8911
|
const s = n.getNumber(e), r = n.getNumber(o);
|
|
8896
8912
|
window.setTimeout(() => {
|
|
@@ -8913,16 +8929,16 @@ function Mc(t) {
|
|
|
8913
8929
|
}, o), r.settled.then(n.runtime.executePendingJobs), r.handle;
|
|
8914
8930
|
}).consume((e) => n.setProp(n.global, "__delayV1__", e));
|
|
8915
8931
|
}
|
|
8916
|
-
const
|
|
8932
|
+
const Uo = oi({
|
|
8917
8933
|
baseUrl: "http://localhost/computebase/",
|
|
8918
8934
|
onError: (t) => {
|
|
8919
8935
|
const { i18n: n } = we;
|
|
8920
|
-
|
|
8936
|
+
vo($i(n, t));
|
|
8921
8937
|
}
|
|
8922
8938
|
});
|
|
8923
|
-
window.API_URL && (
|
|
8939
|
+
window.API_URL && (Uo.defaults.baseURL = window.API_URL + "/computebase/");
|
|
8924
8940
|
function Bc(t) {
|
|
8925
|
-
return
|
|
8941
|
+
return Uo.post("callFunc", t);
|
|
8926
8942
|
}
|
|
8927
8943
|
function Wc(t) {
|
|
8928
8944
|
if (!t.vm) {
|
|
@@ -9035,7 +9051,7 @@ function Kc(t) {
|
|
|
9035
9051
|
m && m.setCustomProperty(d, c);
|
|
9036
9052
|
} else u === "customProperty" ? t.setCustomProperty(d, c) : u === "customSlotProperty" || (u === "adaptSlotElementProperty" || u === "adaptSlotCustomProperty" ? t.setAdaptSlotProperty(d, c) : console.assert(!1));
|
|
9037
9053
|
}).consume((e) => n.setProp(n.global, "__setPropertyV1__", e)), n.newFunction("__callMethodV1__", (e, o, s) => {
|
|
9038
|
-
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);
|
|
9039
9055
|
let m;
|
|
9040
9056
|
if (u === "elementMethod")
|
|
9041
9057
|
m = t.callElementMethod(r, c);
|
|
@@ -9062,7 +9078,7 @@ function Kc(t) {
|
|
|
9062
9078
|
pageId: r
|
|
9063
9079
|
};
|
|
9064
9080
|
we.router.replace({ path: a, query: c });
|
|
9065
|
-
} else t.mode === "preview" &&
|
|
9081
|
+
} else t.mode === "preview" && _o(
|
|
9066
9082
|
we.i18n.global.t(
|
|
9067
9083
|
"x-runtime-lib.msg.takeEffectOnlyAfterReleased"
|
|
9068
9084
|
)
|
|
@@ -9303,7 +9319,7 @@ class Nc {
|
|
|
9303
9319
|
callElementMethod(n, e) {
|
|
9304
9320
|
if (!ne(this.mode))
|
|
9305
9321
|
return;
|
|
9306
|
-
const { methodKey: o } =
|
|
9322
|
+
const { methodKey: o } = Ho(n), s = {};
|
|
9307
9323
|
return this.eventBus.emit(n, { key: o, inputs: e, outputs: s }), s;
|
|
9308
9324
|
}
|
|
9309
9325
|
callCustomMethod(n, e) {
|
|
@@ -9326,7 +9342,7 @@ class Nc {
|
|
|
9326
9342
|
}
|
|
9327
9343
|
}
|
|
9328
9344
|
function sn(t, n, e, o, s) {
|
|
9329
|
-
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) => {
|
|
9330
9346
|
if (ne(c) && (h.callFunction(
|
|
9331
9347
|
"__triggerEventV1__",
|
|
9332
9348
|
oe("elementPropertyChangeEvent", x, $.join(".")),
|
|
@@ -9445,7 +9461,7 @@ export {
|
|
|
9445
9461
|
Yl as badgeV1,
|
|
9446
9462
|
gt as barChartV1,
|
|
9447
9463
|
yt as boxGeometryV1,
|
|
9448
|
-
|
|
9464
|
+
$o as breakpoints,
|
|
9449
9465
|
ea as btnGroupV1,
|
|
9450
9466
|
ta as btnToggleV1,
|
|
9451
9467
|
_t as btnV1,
|
|
@@ -9485,16 +9501,16 @@ export {
|
|
|
9485
9501
|
T as initNode,
|
|
9486
9502
|
A as initProperties,
|
|
9487
9503
|
Ue as injectDark,
|
|
9488
|
-
|
|
9504
|
+
ve as injectData,
|
|
9489
9505
|
Lc as injectDepends,
|
|
9490
9506
|
Be as injectDevice,
|
|
9491
9507
|
Pc as injectEnv,
|
|
9492
9508
|
J as injectMode,
|
|
9493
9509
|
Vc as injectOrg,
|
|
9494
9510
|
zc as injectRuntime,
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9511
|
+
xe as injectSandbox,
|
|
9512
|
+
_e as injectType,
|
|
9513
|
+
Vo as isCircularRef,
|
|
9498
9514
|
ne as isExecutableMode,
|
|
9499
9515
|
Ti as isLocaleOfEventKind,
|
|
9500
9516
|
zi as isLocaleOfMethodKind,
|
|
@@ -9502,7 +9518,7 @@ export {
|
|
|
9502
9518
|
iu as isLocaleOfSlotKind,
|
|
9503
9519
|
jt as isPercentStr,
|
|
9504
9520
|
nt as isPixelStr,
|
|
9505
|
-
|
|
9521
|
+
Co as isRefKey,
|
|
9506
9522
|
wl as keyboardControlsV1,
|
|
9507
9523
|
ht as lineChartV1,
|
|
9508
9524
|
Du as loadLocaleMessageRuntime,
|
|
@@ -9537,7 +9553,7 @@ export {
|
|
|
9537
9553
|
$c as pkgs,
|
|
9538
9554
|
Al as pointLightV1,
|
|
9539
9555
|
vu as provideDark,
|
|
9540
|
-
|
|
9556
|
+
Go as provideData,
|
|
9541
9557
|
ku as provideDepends,
|
|
9542
9558
|
_u as provideDevice,
|
|
9543
9559
|
gu as provideEnv,
|
|
@@ -9581,7 +9597,7 @@ export {
|
|
|
9581
9597
|
Ac as unwrapEventId,
|
|
9582
9598
|
Bu as unwrapEventKeyOfCustomSlot,
|
|
9583
9599
|
Au as unwrapEventKeyOfElementSlot,
|
|
9584
|
-
|
|
9600
|
+
Ho as unwrapMethodId,
|
|
9585
9601
|
Tu as unwrapMethodKeyOfCustomSlot,
|
|
9586
9602
|
Lu as unwrapMethodKeyOfElementSlot,
|
|
9587
9603
|
co as unwrapPropertyId,
|
package/dist/types/data.d.ts
CHANGED
package/dist/types/element.d.ts
CHANGED
|
@@ -94,6 +94,11 @@ type ZPropertySlotSelect = {
|
|
|
94
94
|
readonly?: boolean;
|
|
95
95
|
default: string | undefined;
|
|
96
96
|
} & ZPropertyBase;
|
|
97
|
+
type ZPropertyAdaptSlotSelect = {
|
|
98
|
+
ui: 'adaptSlotSelect';
|
|
99
|
+
readonly?: boolean;
|
|
100
|
+
default: string | undefined;
|
|
101
|
+
} & ZPropertyBase;
|
|
97
102
|
export type ZProperty = ({
|
|
98
103
|
array?: false;
|
|
99
104
|
} & ZPropertyBranch) | ({
|
|
@@ -149,7 +154,12 @@ export type ZProperty = ({
|
|
|
149
154
|
} & ZPropertySlotSelect) | ({
|
|
150
155
|
array: true;
|
|
151
156
|
defaultArray: string[];
|
|
152
|
-
} & ZPropertySlotSelect)
|
|
157
|
+
} & ZPropertySlotSelect) | ({
|
|
158
|
+
array?: false;
|
|
159
|
+
} & ZPropertyAdaptSlotSelect) | ({
|
|
160
|
+
array: true;
|
|
161
|
+
defaultArray: string[];
|
|
162
|
+
} & ZPropertyAdaptSlotSelect);
|
|
153
163
|
export type ZMethod = {
|
|
154
164
|
key: string;
|
|
155
165
|
name: string;
|