x-runtime-lib 0.8.3 → 0.8.5
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.d.ts +0 -1
- package/dist/index.js +38 -40
- package/dist/vendor.oswbh038.js +29486 -0
- package/package.json +1 -1
- package/dist/vendor.073f3e7b.js +0 -67402
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useTheme as mo } from "vuetify";
|
|
1
|
+
import { computed as k, inject as ee, provide as te, readonly as Kt, onBeforeMount as Ji, onUnmounted as Ce, ref as he, watchEffect as oi, watch as le, defineComponent as T, useTemplateRef as si, onMounted as ri, nextTick as li, createElementBlock as ne, openBlock as w, normalizeStyle as q, renderSlot as E, unref as n, createBlock as z, h as ie, resolveComponent as A, withCtx as S, createVNode as H, isRef as G, createSlots as Jt, renderList as Xi, useId as ai, createCommentVNode as ui, withModifiers as Yi, normalizeClass as Zi, toDisplayString as qi } from "vue";
|
|
2
|
+
import { useTheme as Qi } from "vuetify";
|
|
3
|
+
import { c as F, m as eo, a as to, u as no, r as ci, e as di, i as io, b as oo, d as so, f as ro, g as lo, h as ao, j as uo, k as co, I as mo, l as mi } from "./vendor.oswbh038.js";
|
|
5
4
|
import { waitUtil as pi, eventBus as fi, messageInfo as po, messageSuccess as fo, messageWarning as bi, messageError as yi, createAxios as bo, globalObjects as Ee, openConfirmDlg as yo, openPromptDlg as ho, useViewStack as hi } from "x-essential-lib";
|
|
6
5
|
import { useI18n as go } from "vue-i18n";
|
|
7
6
|
import { getErrorMessage as xo } from "x-error-lib";
|
|
@@ -151,7 +150,7 @@ function Ea(t, e, i, r, l) {
|
|
|
151
150
|
}
|
|
152
151
|
const ko = ["common", "scene"], _o = ["common", "scene"];
|
|
153
152
|
function wo() {
|
|
154
|
-
return
|
|
153
|
+
return eo();
|
|
155
154
|
}
|
|
156
155
|
function L(t, e) {
|
|
157
156
|
if (t === "page") {
|
|
@@ -163,7 +162,7 @@ function L(t, e) {
|
|
|
163
162
|
console.error(`get prop tag failed type=${t} subtype=${e}`);
|
|
164
163
|
return;
|
|
165
164
|
}
|
|
166
|
-
return `${t}${
|
|
165
|
+
return `${t}${to(e)}`;
|
|
167
166
|
}
|
|
168
167
|
function dn(t, e) {
|
|
169
168
|
if (t.array)
|
|
@@ -337,7 +336,7 @@ function _e() {
|
|
|
337
336
|
return ee(Wi);
|
|
338
337
|
}
|
|
339
338
|
function U(t) {
|
|
340
|
-
const { computedThemes: e } =
|
|
339
|
+
const { computedThemes: e } = Qi(), i = Te(), r = k(() => t.value?.mode), l = k(() => {
|
|
341
340
|
const c = t.value?.theme;
|
|
342
341
|
return c ? c === "background0" ? i.value ? "#2e2e2e" : "#bdbdbd" : c === "background1" ? i.value ? "#272727" : "#eeeeee" : c === "background2" ? i.value ? "#1e1e1e" : "#ffffff" : (i.value ? e.value.dark : e.value.light).colors[c] : void 0;
|
|
343
342
|
}), o = k(() => i.value ? t.value.custom?.dark : t.value.custom?.light);
|
|
@@ -394,7 +393,7 @@ function ue(t) {
|
|
|
394
393
|
}
|
|
395
394
|
function Li(t, e, i) {
|
|
396
395
|
const r = k(() => e.node.basic.id), l = k(() => `callMethod@${r.value}`);
|
|
397
|
-
|
|
396
|
+
Ji(() => {
|
|
398
397
|
t.eventBus?.on(l.value, i);
|
|
399
398
|
}), Ce(() => {
|
|
400
399
|
t.eventBus?.off(l.value, i);
|
|
@@ -429,7 +428,7 @@ const To = (t, e, i) => {
|
|
|
429
428
|
};
|
|
430
429
|
function s(t, e, i) {
|
|
431
430
|
const r = Q(), l = _e(), o = he();
|
|
432
|
-
return
|
|
431
|
+
return oi(() => {
|
|
433
432
|
let a = To(t.node, e, i);
|
|
434
433
|
r === "editor" && e[e.length - 1] === "readonly" && (a = !0), o.value = a;
|
|
435
434
|
}), le(o, (a, c) => {
|
|
@@ -501,18 +500,18 @@ const Ao = ["#dd6b66", "#759aa0", "#e69d87", "#8dc1a9", "#ea7e53", "#eedd78", "#
|
|
|
501
500
|
dataZoom: Ls,
|
|
502
501
|
markPoint: Bs
|
|
503
502
|
};
|
|
504
|
-
|
|
505
|
-
Zi,
|
|
506
|
-
qi,
|
|
507
|
-
Qi,
|
|
508
|
-
eo,
|
|
509
|
-
to,
|
|
510
|
-
no,
|
|
503
|
+
no([
|
|
511
504
|
io,
|
|
512
|
-
oo
|
|
505
|
+
oo,
|
|
506
|
+
so,
|
|
507
|
+
ro,
|
|
508
|
+
lo,
|
|
509
|
+
ao,
|
|
510
|
+
uo,
|
|
511
|
+
co
|
|
513
512
|
]);
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
ci("dark", rs);
|
|
514
|
+
ci("light", Ns);
|
|
516
515
|
const Rs = /* @__PURE__ */ T({
|
|
517
516
|
__name: "index",
|
|
518
517
|
props: {
|
|
@@ -523,10 +522,10 @@ const Rs = /* @__PURE__ */ T({
|
|
|
523
522
|
const e = t, i = ke(), r = Te(), l = oe(), o = se(), { width: a, minWidth: c, maxWidth: p, height: b, minHeight: u, maxHeight: d, applySize: m } = ue(e), { applyTitle: f } = vi(e), { applyXAxis: h } = ki(e), { applyYAxis: x } = _i(e), { applyLegend: g } = gi(e), { applySeries: _ } = xi(e), v = k(() => {
|
|
524
523
|
const V = {}, M = o.value.type;
|
|
525
524
|
return l === "page" ? M === "common" ? m(V) : console.assert(!1) : l === "comp" && M === "common" ? m(V) : console.assert(!1), V;
|
|
526
|
-
}), I =
|
|
525
|
+
}), I = si("chart");
|
|
527
526
|
let $;
|
|
528
527
|
const N = () => {
|
|
529
|
-
$?.dispose(), $ =
|
|
528
|
+
$?.dispose(), $ = di.init(I.value, r.value ? "dark" : "light");
|
|
530
529
|
const V = {};
|
|
531
530
|
$.setOption(V);
|
|
532
531
|
}, D = () => {
|
|
@@ -535,7 +534,7 @@ const Rs = /* @__PURE__ */ T({
|
|
|
535
534
|
const V = {};
|
|
536
535
|
f(V), h(V), x(V), g(V), _(V), $?.setOption(V, !0);
|
|
537
536
|
};
|
|
538
|
-
return
|
|
537
|
+
return ri(async () => {
|
|
539
538
|
window.addEventListener("resize", D, !1), await pi(() => !!I.value), N(), B();
|
|
540
539
|
}), Ce(() => {
|
|
541
540
|
window.removeEventListener("resize", D, !1), $?.dispose();
|
|
@@ -551,7 +550,7 @@ const Rs = /* @__PURE__ */ T({
|
|
|
551
550
|
d
|
|
552
551
|
],
|
|
553
552
|
async () => {
|
|
554
|
-
await
|
|
553
|
+
await li(), D();
|
|
555
554
|
}
|
|
556
555
|
), le([r], () => {
|
|
557
556
|
N(), B();
|
|
@@ -576,10 +575,10 @@ const Rs = /* @__PURE__ */ T({
|
|
|
576
575
|
const e = t, i = ke(), r = Te(), l = oe(), o = se(), { width: a, minWidth: c, maxWidth: p, height: b, minHeight: u, maxHeight: d, applySize: m } = ue(e), { applyTitle: f } = vi(e), { applyXAxis: h } = ki(e), { applyYAxis: x } = _i(e), { applyLegend: g } = gi(e), { applySeries: _ } = xi(e), v = k(() => {
|
|
577
576
|
const V = {}, M = o.value.type;
|
|
578
577
|
return l === "page" ? M === "common" ? m(V) : console.assert(!1) : l === "comp" && M === "common" ? m(V) : console.assert(!1), V;
|
|
579
|
-
}), I =
|
|
578
|
+
}), I = si("chart");
|
|
580
579
|
let $;
|
|
581
580
|
const N = () => {
|
|
582
|
-
$?.dispose(), $ =
|
|
581
|
+
$?.dispose(), $ = di.init(I.value, r.value ? "dark" : "light");
|
|
583
582
|
const V = {};
|
|
584
583
|
$.setOption(V);
|
|
585
584
|
}, D = () => {
|
|
@@ -588,7 +587,7 @@ const Rs = /* @__PURE__ */ T({
|
|
|
588
587
|
const V = {};
|
|
589
588
|
f(V), h(V), x(V), g(V), _(V), $?.setOption(V, !0);
|
|
590
589
|
};
|
|
591
|
-
return
|
|
590
|
+
return ri(async () => {
|
|
592
591
|
window.addEventListener("resize", D, !1), await pi(() => !!I.value), N(), B();
|
|
593
592
|
}), Ce(() => {
|
|
594
593
|
window.removeEventListener("resize", D, !1), $?.dispose();
|
|
@@ -604,7 +603,7 @@ const Rs = /* @__PURE__ */ T({
|
|
|
604
603
|
d
|
|
605
604
|
],
|
|
606
605
|
async () => {
|
|
607
|
-
await
|
|
606
|
+
await li(), D();
|
|
608
607
|
}
|
|
609
608
|
), le([r], () => {
|
|
610
609
|
N(), B();
|
|
@@ -998,7 +997,7 @@ function __destroy__() {
|
|
|
998
997
|
}
|
|
999
998
|
`, Xs = Us + Os + Ks + Js;
|
|
1000
999
|
function Ys(t, e) {
|
|
1001
|
-
const i = new
|
|
1000
|
+
const i = new mo(
|
|
1002
1001
|
Xs,
|
|
1003
1002
|
(r, l) => {
|
|
1004
1003
|
Gs(t, r, l);
|
|
@@ -1025,7 +1024,7 @@ const re = /* @__PURE__ */ T({
|
|
|
1025
1024
|
const m = () => {
|
|
1026
1025
|
d.eventBus && (d.eventBus = void 0), d.interpreter && (Zs(d.interpreter), d.interpreter = void 0);
|
|
1027
1026
|
};
|
|
1028
|
-
|
|
1027
|
+
oi(() => {
|
|
1029
1028
|
if (!i.refContext.refid) {
|
|
1030
1029
|
b.value = -1, u.value = void 0, m();
|
|
1031
1030
|
return;
|
|
@@ -1424,7 +1423,7 @@ const nr = /* @__PURE__ */ be(er, [["render", tr]]), ir = /* @__PURE__ */ T({
|
|
|
1424
1423
|
theme: n(d),
|
|
1425
1424
|
width: n(m)
|
|
1426
1425
|
}, Jt({ _: 2 }, [
|
|
1427
|
-
|
|
1426
|
+
Xi(f.value, (_) => ({
|
|
1428
1427
|
name: `item.${_.column}`,
|
|
1429
1428
|
fn: S(({ value: v }) => [
|
|
1430
1429
|
H(n(re), {
|
|
@@ -1448,7 +1447,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1448
1447
|
outer: { type: Boolean }
|
|
1449
1448
|
},
|
|
1450
1449
|
setup(t) {
|
|
1451
|
-
const e = t, i = Q(), r = _e(), l = k(() => e.node.basic?.id), { open: o } = hi(`runtimeDlg/${
|
|
1450
|
+
const e = t, i = Q(), r = _e(), l = k(() => e.node.basic?.id), { open: o } = hi(`runtimeDlg/${ai()}`);
|
|
1452
1451
|
return Li(r, e, (c) => {
|
|
1453
1452
|
if (i !== "runtime" && i !== "preview" || !r.interpreter)
|
|
1454
1453
|
return;
|
|
@@ -1465,7 +1464,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1465
1464
|
n(i) === "editor" ? (w(), ne("div", {
|
|
1466
1465
|
key: 0,
|
|
1467
1466
|
id: `__node__@${l.value}`
|
|
1468
|
-
}, null, 8, br)) :
|
|
1467
|
+
}, null, 8, br)) : ui("", !0)
|
|
1469
1468
|
]),
|
|
1470
1469
|
default: S(() => [
|
|
1471
1470
|
E(c.$slots, "default")
|
|
@@ -1574,7 +1573,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1574
1573
|
"onUpdate:modelValue": _[0] || (_[0] = (I) => G(a) ? a.value = I : null),
|
|
1575
1574
|
"fast-fail": n(c),
|
|
1576
1575
|
style: q(h.value),
|
|
1577
|
-
onSubmit:
|
|
1576
|
+
onSubmit: Yi(x, ["prevent"])
|
|
1578
1577
|
}, {
|
|
1579
1578
|
default: S(() => [
|
|
1580
1579
|
E(g.$slots, "default")
|
|
@@ -1609,7 +1608,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1609
1608
|
outer: { type: Boolean }
|
|
1610
1609
|
},
|
|
1611
1610
|
setup(t) {
|
|
1612
|
-
const e = t, i = Q(), r = _e(), l = he(0), o = he(0), a = k(() => [l.value, o.value]), c = k(() => e.node.basic?.id), { open: p } = hi(`runtimeMenu/${
|
|
1611
|
+
const e = t, i = Q(), r = _e(), l = he(0), o = he(0), a = k(() => [l.value, o.value]), c = k(() => e.node.basic?.id), { open: p } = hi(`runtimeMenu/${ai()}`);
|
|
1613
1612
|
return Li(r, e, (u) => {
|
|
1614
1613
|
if (i !== "runtime" && i !== "preview")
|
|
1615
1614
|
return;
|
|
@@ -1632,7 +1631,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1632
1631
|
n(i) === "editor" ? (w(), ne("div", {
|
|
1633
1632
|
key: 0,
|
|
1634
1633
|
id: `__node__@${c.value}`
|
|
1635
|
-
}, null, 8, _r)) :
|
|
1634
|
+
}, null, 8, _r)) : ui("", !0)
|
|
1636
1635
|
]),
|
|
1637
1636
|
default: S(() => [
|
|
1638
1637
|
E(u.$slots, "default")
|
|
@@ -1817,7 +1816,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1817
1816
|
const B = {};
|
|
1818
1817
|
for (const { value: V, label: M } of _.value)
|
|
1819
1818
|
B[V] = M;
|
|
1820
|
-
if (!
|
|
1819
|
+
if (!mi(B))
|
|
1821
1820
|
return B;
|
|
1822
1821
|
}), { prop: I } = s(e, ["settings", "tickSize"]), { prop: $ } = s(e, [
|
|
1823
1822
|
"settings",
|
|
@@ -1948,7 +1947,7 @@ const fr = /* @__PURE__ */ be(mr, [["render", pr]]), br = ["id"], yr = /* @__PUR
|
|
|
1948
1947
|
const Z = {};
|
|
1949
1948
|
for (const { value: ce, label: ze } of N.value)
|
|
1950
1949
|
Z[ce] = ze;
|
|
1951
|
-
if (!
|
|
1950
|
+
if (!mi(Z))
|
|
1952
1951
|
return Z;
|
|
1953
1952
|
}), { prop: B } = s(e, ["settings", "tickSize"]), { prop: V } = s(e, [
|
|
1954
1953
|
"settings",
|
|
@@ -2209,8 +2208,8 @@ const Er = /* @__PURE__ */ be(Rr, [["render", Dr]]), Fr = /* @__PURE__ */ T({
|
|
|
2209
2208
|
return m && u.push(`text-${m}`), o.value === "high" ? u.push("text-high-emphasis") : o.value === "medium" ? u.push("text-medium-emphasis") : o.value === "disabled" && u.push("text-disabled"), r.value && u.push(`font-${r.value}`), l.value && u.push(`text-decoration-${l.value}`), p.value && u.push(`font-weight-${p.value}`), a.value && u.push("font-italic"), u.join(" ");
|
|
2210
2209
|
});
|
|
2211
2210
|
return (u, d) => (w(), ne("span", {
|
|
2212
|
-
class:
|
|
2213
|
-
},
|
|
2211
|
+
class: Zi(b.value)
|
|
2212
|
+
}, qi(n(c)), 3));
|
|
2214
2213
|
}
|
|
2215
2214
|
}), Ur = /* @__PURE__ */ T({
|
|
2216
2215
|
__name: "index",
|
|
@@ -6701,7 +6700,6 @@ async function Qa(t) {
|
|
|
6701
6700
|
return (await Ta(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.e52nt0si.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.lm0m4jyu.js") }), `./locales/${t}/index.ts`, 4)).default;
|
|
6702
6701
|
}
|
|
6703
6702
|
export {
|
|
6704
|
-
nu as TresCanvas,
|
|
6705
6703
|
Za as badgeV1,
|
|
6706
6704
|
_t as barChartV1,
|
|
6707
6705
|
wi as breakpoints,
|