@a2simcode/ui 0.0.105 → 0.0.107
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/autocomplete/index.d.ts +12 -0
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +13 -1
- package/dist/components/count/index.d.ts +3 -3
- package/dist/components/count/src/count.vue.d.ts +1 -1
- package/dist/components/input-layer/index.d.ts +54 -0
- package/dist/components/input-layer/src/input-layer.vue.d.ts +54 -0
- package/dist/components/table-panel/index.d.ts +81 -0
- package/dist/components/table-panel/src/table-panel.vue.d.ts +48 -0
- package/dist/simcode-ui.es.js +769 -750
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/components/meta/autocomplete.ts +35 -2
- package/docs/examples/table/action-filter.vue +9 -3
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as ge, computed as
|
|
1
|
+
import { Fragment as ge, computed as P, createBlock as H, createCommentVNode as K, createElementBlock as O, createElementVNode as $, createSlots as kn, createTextVNode as nn, createVNode as Y, defineComponent as se, getCurrentInstance as Gs, guardReactiveProps as Sl, h as td, inject as nd, mergeModels as ho, mergeProps as ze, nextTick as At, normalizeClass as De, normalizeProps as xi, normalizeStyle as Re, onBeforeUnmount as vo, onMounted as kt, onUnmounted as yo, openBlock as _, provide as ad, reactive as da, ref as j, render as ri, renderList as ke, renderSlot as Ke, resolveComponent as B, resolveDirective as _i, resolveDynamicComponent as ja, shallowRef as Ci, toDisplayString as ve, unref as G, useModel as po, useSlots as od, useTemplateRef as ca, vShow as lo, watch as it, watchEffect as Js, withCtx as V, withDirectives as Sn, withKeys as tl, withModifiers as Ot } from "vue";
|
|
2
2
|
import { Icon as yr, getIcon as sa } from "@iconify/vue";
|
|
3
3
|
import Xs from "dayjs";
|
|
4
4
|
import id from "crypto-js/aes";
|
|
@@ -67,18 +67,18 @@ var mn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
setup(e) {
|
|
70
|
-
const t = e, n =
|
|
70
|
+
const t = e, n = P(() => {
|
|
71
71
|
const o = t.icon;
|
|
72
72
|
if (o.indexOf(":") === -1)
|
|
73
73
|
return sa(`jcode:${t.icon}`) == null, `jcode:${t.icon}`;
|
|
74
74
|
const i = `jcode:${o.split(":")[1]}`;
|
|
75
75
|
return sa(i) != null ? i : o;
|
|
76
|
-
}), a =
|
|
76
|
+
}), a = P(() => ({
|
|
77
77
|
size: t.size,
|
|
78
78
|
color: t.color,
|
|
79
79
|
icon: n.value
|
|
80
80
|
}));
|
|
81
|
-
return (o, i) => e.isDiv ? (_(),
|
|
81
|
+
return (o, i) => e.isDiv ? (_(), O("div", ze({ key: 0 }, o.$attrs, {
|
|
82
82
|
class: "j-icon jicon",
|
|
83
83
|
style: { height: `${e.size}px` }
|
|
84
84
|
}), [Y(G(yr), ze(a.value, {
|
|
@@ -90,7 +90,7 @@ var mn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
90
90
|
"height",
|
|
91
91
|
"width",
|
|
92
92
|
"style"
|
|
93
|
-
])], 16)) : (_(),
|
|
93
|
+
])], 16)) : (_(), O("span", ze({ key: 1 }, o.$attrs, { class: "jicon" }), [Y(G(yr), ze(a.value, {
|
|
94
94
|
height: `${e.size}px`,
|
|
95
95
|
width: `${e.size}px`,
|
|
96
96
|
mode: "svg",
|
|
@@ -157,7 +157,7 @@ var mn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
157
157
|
l.value?.focus();
|
|
158
158
|
}, s = () => {
|
|
159
159
|
l.value?.blur();
|
|
160
|
-
}, c =
|
|
160
|
+
}, c = P(() => a.notLabel || !a.label), u = j(!1);
|
|
161
161
|
it(() => a.loading, (f) => {
|
|
162
162
|
if (typeof f == "boolean") u.value = f;
|
|
163
163
|
else if (mn(f?.delay))
|
|
@@ -169,11 +169,11 @@ var mn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
169
169
|
return () => clearTimeout(h);
|
|
170
170
|
}
|
|
171
171
|
}, { immediate: !0 });
|
|
172
|
-
const d =
|
|
172
|
+
const d = P(() => a.label || "");
|
|
173
173
|
return t({
|
|
174
174
|
focus: r,
|
|
175
175
|
blur: s
|
|
176
|
-
}), (f, h) => (_(),
|
|
176
|
+
}), (f, h) => (_(), O("button", {
|
|
177
177
|
ref_key: "buttonNodeRef",
|
|
178
178
|
ref: l,
|
|
179
179
|
type: "button",
|
|
@@ -209,7 +209,7 @@ var mn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
209
209
|
key: 1,
|
|
210
210
|
icon: e.icon
|
|
211
211
|
}, null, 8, ["icon"])) : K("", !0),
|
|
212
|
-
e.notLabel ? K("", !0) : (_(),
|
|
212
|
+
e.notLabel ? K("", !0) : (_(), O("div", rf, ve(d.value), 1)),
|
|
213
213
|
Ke(f.$slots, "iconAfter")
|
|
214
214
|
], 10, lf));
|
|
215
215
|
}
|
|
@@ -720,7 +720,7 @@ function En(e, t) {
|
|
|
720
720
|
function Rn(e, t) {
|
|
721
721
|
ad(e, t);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function jt() {
|
|
724
724
|
return En(Bt.APP_PROVIDE, {
|
|
725
725
|
t: (e, ...t) => {
|
|
726
726
|
if (!e) return "";
|
|
@@ -811,22 +811,22 @@ var Vf = /* @__PURE__ */ se({
|
|
|
811
811
|
const n = j(), a = j(600), o = j(400), i = j(!0), l = j(!0), r = j(!0), s = j(""), c = j([]), u = j(!0), d = j(), f = Ci(), h = j(), { getPageName: p } = Lf(), g = () => {
|
|
812
812
|
const L = p();
|
|
813
813
|
return L || (typeof f.value == "string" ? f.value : "");
|
|
814
|
-
}, v = j(!1),
|
|
814
|
+
}, v = j(!1), b = j([]), w = async (L) => {
|
|
815
815
|
if (d.value?.validateSteps) {
|
|
816
816
|
to(!0);
|
|
817
817
|
const N = d.value.validateSteps(L);
|
|
818
818
|
return to(!1), N;
|
|
819
819
|
}
|
|
820
820
|
return !0;
|
|
821
|
-
},
|
|
821
|
+
}, m = () => d.value?.beforeClose ? d.value.beforeClose() : !0;
|
|
822
822
|
let x, E, y, k = 0;
|
|
823
823
|
const S = async (L) => {
|
|
824
824
|
if (d.value) {
|
|
825
825
|
if (k = 0, d.value.getConfig) {
|
|
826
826
|
const N = d.value.getConfig();
|
|
827
|
-
c.value = N.buttons || [], v.value = N.isStep,
|
|
827
|
+
c.value = N.buttons || [], v.value = N.isStep, b.value = N.steps || [];
|
|
828
828
|
} else
|
|
829
|
-
c.value = [], v.value = !1,
|
|
829
|
+
c.value = [], v.value = !1, b.value = [];
|
|
830
830
|
if (d.value.open) try {
|
|
831
831
|
const { buttons: N } = await d.value.open(L, n.value, () => {
|
|
832
832
|
x && x();
|
|
@@ -870,10 +870,10 @@ var Vf = /* @__PURE__ */ se({
|
|
|
870
870
|
ref: n,
|
|
871
871
|
width: a.value,
|
|
872
872
|
height: o.value,
|
|
873
|
-
"before-close":
|
|
873
|
+
"before-close": m,
|
|
874
874
|
"validate-steps": w,
|
|
875
875
|
"is-step": v.value,
|
|
876
|
-
steps:
|
|
876
|
+
steps: b.value,
|
|
877
877
|
"has-btns": i.value,
|
|
878
878
|
buttons: c.value,
|
|
879
879
|
"btn-text": s.value,
|
|
@@ -932,7 +932,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
932
932
|
isLink: Boolean
|
|
933
933
|
},
|
|
934
934
|
setup(e) {
|
|
935
|
-
const t = e, n =
|
|
935
|
+
const t = e, n = P(() => {
|
|
936
936
|
if (!Array.isArray(t.list) && Object.keys(t.list).length > 0) return t.list;
|
|
937
937
|
const i = {}, l = dn(t.list), r = l.length;
|
|
938
938
|
for (let s = 0; s < r; s++) {
|
|
@@ -946,9 +946,9 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
946
946
|
return (i, l) => {
|
|
947
947
|
const r = B("j-button"), s = B("el-space"), c = B("el-dropdown");
|
|
948
948
|
return _(), H(s, { size: e.isLink ? 0 : 8 }, {
|
|
949
|
-
default: V(() => [(_(!0),
|
|
949
|
+
default: V(() => [(_(!0), O(ge, null, ke(n.value, (u, d) => (_(), O("div", ze({ key: d }, { ref_for: !0 }, i.$attrs), [(_(!0), O(ge, null, ke(u, (f, h) => (_(), O(ge, { key: h }, [f.children?.length && f.children?.length > 0 ? (_(), H(c, { key: 0 }, {
|
|
950
950
|
dropdown: V(() => [Y(s, { direction: "vertical" }, {
|
|
951
|
-
default: V(() => [(_(!0),
|
|
951
|
+
default: V(() => [(_(!0), O(ge, null, ke(f.children || [], (p) => (_(), H(r, ze({ key: p.id }, { ref_for: !0 }, p.config, {
|
|
952
952
|
type: "text",
|
|
953
953
|
label: p.label,
|
|
954
954
|
size: e.size,
|
|
@@ -1077,7 +1077,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1077
1077
|
"change"
|
|
1078
1078
|
],
|
|
1079
1079
|
setup(e, { emit: t }) {
|
|
1080
|
-
const n = e, a = t, o = j(), i =
|
|
1080
|
+
const n = e, a = t, o = j(), i = P({
|
|
1081
1081
|
get() {
|
|
1082
1082
|
return n.modelValue;
|
|
1083
1083
|
},
|
|
@@ -1247,7 +1247,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1247
1247
|
"visible-change"
|
|
1248
1248
|
],
|
|
1249
1249
|
setup(e, { expose: t, emit: n }) {
|
|
1250
|
-
const a = e, o = n, i = j(), l =
|
|
1250
|
+
const a = e, o = n, i = j(), l = P({
|
|
1251
1251
|
get() {
|
|
1252
1252
|
return a.selectType?.indexOf("range") > -1 ? typeof a.modelValue == "string" ? (console.log(a.modelValue, "props.modelValue"), a.modelValue ? a.modelValue.split(",") : ["", ""]) : a.modelValue || ["", ""] : a.modelValue;
|
|
1253
1253
|
},
|
|
@@ -1265,7 +1265,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1265
1265
|
}
|
|
1266
1266
|
p !== void 0 && o("update:modelValue", p);
|
|
1267
1267
|
}
|
|
1268
|
-
}), r =
|
|
1268
|
+
}), r = P(() => {
|
|
1269
1269
|
if (a.format) return a.format;
|
|
1270
1270
|
switch (a.selectType) {
|
|
1271
1271
|
case "date":
|
|
@@ -1315,7 +1315,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1315
1315
|
ref: i
|
|
1316
1316
|
}, p.$attrs, {
|
|
1317
1317
|
modelValue: l.value,
|
|
1318
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
1318
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
|
|
1319
1319
|
type: e.selectType,
|
|
1320
1320
|
readonly: e.readonly,
|
|
1321
1321
|
disabled: e.disabled,
|
|
@@ -1397,7 +1397,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1397
1397
|
},
|
|
1398
1398
|
emits: ["update:modelValue"],
|
|
1399
1399
|
setup(e, { emit: t }) {
|
|
1400
|
-
const n = e, a = t, o =
|
|
1400
|
+
const n = e, a = t, o = P({
|
|
1401
1401
|
get() {
|
|
1402
1402
|
let i = n.options;
|
|
1403
1403
|
if (!mn(n.modelValue) && i && i.length > 0) {
|
|
@@ -1417,14 +1417,14 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1417
1417
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => o.value = d),
|
|
1418
1418
|
disabled: e.readonly
|
|
1419
1419
|
}, {
|
|
1420
|
-
default: V(() => [e.isButton ? (_(!0),
|
|
1420
|
+
default: V(() => [e.isButton ? (_(!0), O(ge, { key: 0 }, ke(e.options, (d) => (_(), H(r, {
|
|
1421
1421
|
key: d.value,
|
|
1422
1422
|
value: d.value,
|
|
1423
1423
|
size: e.size
|
|
1424
1424
|
}, {
|
|
1425
1425
|
default: V(() => [nn(ve(d.label), 1)]),
|
|
1426
1426
|
_: 2
|
|
1427
|
-
}, 1032, ["value", "size"]))), 128)) : (_(!0),
|
|
1427
|
+
}, 1032, ["value", "size"]))), 128)) : (_(!0), O(ge, { key: 1 }, ke(e.options, (d, f) => (_(), H(c, {
|
|
1428
1428
|
key: d.value,
|
|
1429
1429
|
value: d.value,
|
|
1430
1430
|
size: e.size
|
|
@@ -1439,7 +1439,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1439
1439
|
}, {
|
|
1440
1440
|
default: V(() => [nn(ve(d.label), 1)]),
|
|
1441
1441
|
_: 2
|
|
1442
|
-
}, 1032, ["color", "size"])) : (_(),
|
|
1442
|
+
}, 1032, ["color", "size"])) : (_(), O("span", th, ve(d.label), 1))]),
|
|
1443
1443
|
_: 2
|
|
1444
1444
|
}, 1032, ["value", "size"]))), 128))]),
|
|
1445
1445
|
_: 1
|
|
@@ -1516,14 +1516,14 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1516
1516
|
},
|
|
1517
1517
|
emits: ["update:modelValue", "change"],
|
|
1518
1518
|
setup(e, { emit: t }) {
|
|
1519
|
-
const n = e, a = t, o = j(), i =
|
|
1519
|
+
const n = e, a = t, o = j(), i = P({
|
|
1520
1520
|
get() {
|
|
1521
1521
|
return n.multiple && typeof n.modelValue == "string" ? n.modelValue?.split(",") || [] : n.modelValue;
|
|
1522
1522
|
},
|
|
1523
1523
|
set(d) {
|
|
1524
1524
|
n.multiple && Array.isArray(d) && (d = d?.join(",") || []), a("update:modelValue", d);
|
|
1525
1525
|
}
|
|
1526
|
-
}), l =
|
|
1526
|
+
}), l = P(() => !mn(i.value) && !n.multiple && n.options.filter((d) => i.value == d.value).map((d) => d.label).join(",") || ""), r = P(() => !mn(i.value) && !n.multiple ? n.options.find((d) => d.value === i.value)?.icon : ""), s = P(() => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []), c = P(() => {
|
|
1527
1527
|
let d = [];
|
|
1528
1528
|
if (n.isSelectOnlyone ? d = n.options.map((f) => ({
|
|
1529
1529
|
...f,
|
|
@@ -1534,13 +1534,13 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1534
1534
|
let g = {};
|
|
1535
1535
|
const v = p[n.groupKey || ""] || "";
|
|
1536
1536
|
h[v] || (g.value = v, g.label = v, h[v] = [], g.children = h[v], f.push(g));
|
|
1537
|
-
const
|
|
1537
|
+
const b = {
|
|
1538
1538
|
value: p.value,
|
|
1539
1539
|
label: p.label,
|
|
1540
1540
|
icon: p.icon,
|
|
1541
1541
|
disabled: p.disabled
|
|
1542
1542
|
};
|
|
1543
|
-
h[v].push(
|
|
1543
|
+
h[v].push(b);
|
|
1544
1544
|
}), f;
|
|
1545
1545
|
}
|
|
1546
1546
|
return d;
|
|
@@ -1574,7 +1574,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1574
1574
|
ref: o
|
|
1575
1575
|
}, d.$attrs, {
|
|
1576
1576
|
modelValue: i.value,
|
|
1577
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
1577
|
+
"onUpdate:modelValue": f[0] || (f[0] = (b) => i.value = b),
|
|
1578
1578
|
class: [{
|
|
1579
1579
|
"no-border": e.noBorder,
|
|
1580
1580
|
"rows-background": e.isRows
|
|
@@ -1590,11 +1590,11 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1590
1590
|
placeholder: e.placeholder,
|
|
1591
1591
|
onChange: u
|
|
1592
1592
|
}), kn({
|
|
1593
|
-
default: V(() => [e.isGroup ? (_(!0),
|
|
1594
|
-
key:
|
|
1595
|
-
label:
|
|
1593
|
+
default: V(() => [e.isGroup ? (_(!0), O(ge, { key: 0 }, ke(c.value, (b) => (_(), H(g, {
|
|
1594
|
+
key: b.label,
|
|
1595
|
+
label: b.label
|
|
1596
1596
|
}, {
|
|
1597
|
-
default: V(() => [(_(!0),
|
|
1597
|
+
default: V(() => [(_(!0), O(ge, null, ke(b.children, (w) => (_(), H(p, {
|
|
1598
1598
|
key: w.value,
|
|
1599
1599
|
label: w.label,
|
|
1600
1600
|
value: w.value || " ",
|
|
@@ -1612,17 +1612,17 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1612
1612
|
"disabled"
|
|
1613
1613
|
]))), 128))]),
|
|
1614
1614
|
_: 2
|
|
1615
|
-
}, 1032, ["label"]))), 128)) : (_(!0),
|
|
1616
|
-
key:
|
|
1617
|
-
label:
|
|
1618
|
-
value:
|
|
1619
|
-
disabled: !!
|
|
1615
|
+
}, 1032, ["label"]))), 128)) : (_(!0), O(ge, { key: 1 }, ke(c.value, (b) => (_(), H(p, {
|
|
1616
|
+
key: b.value,
|
|
1617
|
+
label: b.label,
|
|
1618
|
+
value: b.value + "",
|
|
1619
|
+
disabled: !!b.disabled
|
|
1620
1620
|
}, {
|
|
1621
|
-
default: V(() => [$("div", rh, [
|
|
1621
|
+
default: V(() => [$("div", rh, [b.icon ? (_(), H(ua, {
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
class: "j-select-option-icon",
|
|
1624
|
-
icon:
|
|
1625
|
-
}, null, 8, ["icon"])) : K("", !0), $("div", null, ve(
|
|
1624
|
+
icon: b.icon
|
|
1625
|
+
}, null, 8, ["icon"])) : K("", !0), $("div", null, ve(b.label), 1)])]),
|
|
1626
1626
|
_: 2
|
|
1627
1627
|
}, 1032, [
|
|
1628
1628
|
"label",
|
|
@@ -1643,7 +1643,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1643
1643
|
}, {
|
|
1644
1644
|
default: V(() => [nn(ve(l.value), 1)]),
|
|
1645
1645
|
_: 1
|
|
1646
|
-
}, 8, ["content"])) : (_(),
|
|
1646
|
+
}, 8, ["content"])) : (_(), O(ge, { key: 1 }, [nn(ve(l.value), 1)], 64))])])]),
|
|
1647
1647
|
key: "0"
|
|
1648
1648
|
}]), 1040, [
|
|
1649
1649
|
"modelValue",
|
|
@@ -1743,7 +1743,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1743
1743
|
o.value?.cascaderPanelRef?.value?.clearCheckedNodes();
|
|
1744
1744
|
}
|
|
1745
1745
|
});
|
|
1746
|
-
const s =
|
|
1746
|
+
const s = P({
|
|
1747
1747
|
get() {
|
|
1748
1748
|
return mn(a.modelValue) ? [] : a.modelValue?.split(",") || [];
|
|
1749
1749
|
},
|
|
@@ -1755,7 +1755,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1755
1755
|
value: mn(d) ? "" : d.join(","),
|
|
1756
1756
|
data: f
|
|
1757
1757
|
});
|
|
1758
|
-
}, u =
|
|
1758
|
+
}, u = P(() => ({
|
|
1759
1759
|
checkStrictly: a.checkStrictly,
|
|
1760
1760
|
expandTrigger: a.expandTrigger,
|
|
1761
1761
|
multiple: a.multiple,
|
|
@@ -1842,7 +1842,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1842
1842
|
},
|
|
1843
1843
|
emits: ["update:modelValue", "change"],
|
|
1844
1844
|
setup(e, { emit: t }) {
|
|
1845
|
-
const n = e, a = t, o =
|
|
1845
|
+
const n = e, a = t, o = P({
|
|
1846
1846
|
get() {
|
|
1847
1847
|
return n.modelValue;
|
|
1848
1848
|
},
|
|
@@ -1869,7 +1869,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1869
1869
|
type: e.type,
|
|
1870
1870
|
onChange: i
|
|
1871
1871
|
}, {
|
|
1872
|
-
default: V(() => [e.type === "checkbox" ? (_(!0),
|
|
1872
|
+
default: V(() => [e.type === "checkbox" ? (_(!0), O(ge, { key: 0 }, ke(e.options, (d) => (_(), H(s, {
|
|
1873
1873
|
key: d.value,
|
|
1874
1874
|
value: d.value,
|
|
1875
1875
|
disabled: d.disabled,
|
|
@@ -1880,7 +1880,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1880
1880
|
"disabled",
|
|
1881
1881
|
"size",
|
|
1882
1882
|
"label"
|
|
1883
|
-
]))), 128)) : (_(!0),
|
|
1883
|
+
]))), 128)) : (_(!0), O(ge, { key: 1 }, ke(e.options, (d) => (_(), H(c, {
|
|
1884
1884
|
key: d.value,
|
|
1885
1885
|
class: De({ "j-checkbox-notFillOrColor": !e.fill && !e.textColor }),
|
|
1886
1886
|
value: d.value,
|
|
@@ -1961,7 +1961,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
1961
1961
|
"focus"
|
|
1962
1962
|
],
|
|
1963
1963
|
setup(e, { expose: t, emit: n }) {
|
|
1964
|
-
const a = e, o = j(), i = n, l =
|
|
1964
|
+
const a = e, o = j(), i = n, l = P({
|
|
1965
1965
|
get() {
|
|
1966
1966
|
return a.modelValue;
|
|
1967
1967
|
},
|
|
@@ -2071,6 +2071,10 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2071
2071
|
type: Boolean,
|
|
2072
2072
|
default: !1
|
|
2073
2073
|
},
|
|
2074
|
+
size: { default: "default" },
|
|
2075
|
+
dataType: { default: "" },
|
|
2076
|
+
dataCode: { default: "" },
|
|
2077
|
+
labelKey: { default: "label" },
|
|
2074
2078
|
valueKey: { default: "value" },
|
|
2075
2079
|
debounce: { default: 300 },
|
|
2076
2080
|
placement: { default: "bottom-start" },
|
|
@@ -2121,26 +2125,33 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2121
2125
|
"blur"
|
|
2122
2126
|
],
|
|
2123
2127
|
setup(e, { expose: t, emit: n }) {
|
|
2124
|
-
const a = e, o = j(null), i = n, l =
|
|
2128
|
+
const a = e, o = j(null), i = n, l = P({
|
|
2125
2129
|
get() {
|
|
2126
2130
|
return a.modelValue || "";
|
|
2127
2131
|
},
|
|
2128
|
-
set(
|
|
2129
|
-
i("update:modelValue",
|
|
2132
|
+
set(m) {
|
|
2133
|
+
i("update:modelValue", m);
|
|
2130
2134
|
}
|
|
2131
|
-
}), r = (
|
|
2135
|
+
}), { useData: r } = jt(), { getData: s } = r(), c = P(() => s ? s({
|
|
2136
|
+
type: a.dataType,
|
|
2137
|
+
code: a.dataCode,
|
|
2138
|
+
config: {
|
|
2139
|
+
labelKey: a.labelKey,
|
|
2140
|
+
valueKey: a.valueKey
|
|
2141
|
+
}
|
|
2142
|
+
}) || [] : []), u = P(() => a.dataCode || a.dataType ? c.value : a.options || []), d = (m, x) => {
|
|
2132
2143
|
if (a.fetchSuggestions) {
|
|
2133
|
-
a.fetchSuggestions(
|
|
2144
|
+
a.fetchSuggestions(m, x);
|
|
2134
2145
|
return;
|
|
2135
2146
|
}
|
|
2136
|
-
|
|
2137
|
-
},
|
|
2138
|
-
i("select",
|
|
2139
|
-
},
|
|
2140
|
-
i("change",
|
|
2141
|
-
},
|
|
2147
|
+
x(m ? u.value.filter(f(m)) : u.value);
|
|
2148
|
+
}, f = (m) => (x) => x?.[a.valueKey]?.toLowerCase().indexOf(m.toLowerCase()) === 0, h = (m) => {
|
|
2149
|
+
i("select", m);
|
|
2150
|
+
}, p = (m) => {
|
|
2151
|
+
i("change", m);
|
|
2152
|
+
}, g = () => {
|
|
2142
2153
|
i("focus");
|
|
2143
|
-
},
|
|
2154
|
+
}, v = () => {
|
|
2144
2155
|
i("blur");
|
|
2145
2156
|
};
|
|
2146
2157
|
return t({
|
|
@@ -2154,17 +2165,18 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2154
2165
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
2155
2166
|
o.value.focus();
|
|
2156
2167
|
}, 50);
|
|
2157
|
-
}), (
|
|
2158
|
-
const
|
|
2159
|
-
return _(), H(
|
|
2168
|
+
}), (m, x) => {
|
|
2169
|
+
const E = B("el-autocomplete");
|
|
2170
|
+
return _(), H(E, {
|
|
2160
2171
|
ref_key: "autocompleteRef",
|
|
2161
2172
|
ref: o,
|
|
2162
2173
|
modelValue: l.value,
|
|
2163
|
-
"onUpdate:modelValue":
|
|
2164
|
-
"fetch-suggestions":
|
|
2174
|
+
"onUpdate:modelValue": x[0] || (x[0] = (y) => l.value = y),
|
|
2175
|
+
"fetch-suggestions": d,
|
|
2165
2176
|
placeholder: e.placeholder,
|
|
2166
2177
|
clearable: e.clearable,
|
|
2167
2178
|
disabled: e.disabled || e.readonly,
|
|
2179
|
+
size: e.size,
|
|
2168
2180
|
"value-key": e.valueKey,
|
|
2169
2181
|
debounce: e.debounce,
|
|
2170
2182
|
placement: e.placement,
|
|
@@ -2179,47 +2191,47 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2179
2191
|
"highlight-first-item": e.highlightFirstItem,
|
|
2180
2192
|
"fit-input-width": e.fitInputWidth,
|
|
2181
2193
|
"loop-navigation": e.loopNavigation,
|
|
2182
|
-
onSelect:
|
|
2183
|
-
onChange:
|
|
2184
|
-
onFocus:
|
|
2185
|
-
onBlur:
|
|
2194
|
+
onSelect: h,
|
|
2195
|
+
onChange: p,
|
|
2196
|
+
onFocus: g,
|
|
2197
|
+
onBlur: v
|
|
2186
2198
|
}, kn({
|
|
2187
|
-
default: V(({ item:
|
|
2199
|
+
default: V(({ item: y }) => [Ke(m.$slots, "default", { item: y }, () => [$("div", null, ve(y[e.valueKey] || ""), 1)])]),
|
|
2188
2200
|
_: 2
|
|
2189
2201
|
}, [
|
|
2190
|
-
|
|
2202
|
+
m.$slots.prefix ? {
|
|
2191
2203
|
name: "prefix",
|
|
2192
|
-
fn: V(() => [Ke(
|
|
2204
|
+
fn: V(() => [Ke(m.$slots, "prefix")]),
|
|
2193
2205
|
key: "0"
|
|
2194
2206
|
} : void 0,
|
|
2195
|
-
|
|
2207
|
+
m.$slots.suffix ? {
|
|
2196
2208
|
name: "suffix",
|
|
2197
|
-
fn: V(() => [Ke(
|
|
2209
|
+
fn: V(() => [Ke(m.$slots, "suffix")]),
|
|
2198
2210
|
key: "1"
|
|
2199
2211
|
} : void 0,
|
|
2200
|
-
|
|
2212
|
+
m.$slots.header ? {
|
|
2201
2213
|
name: "header",
|
|
2202
|
-
fn: V(() => [Ke(
|
|
2214
|
+
fn: V(() => [Ke(m.$slots, "header")]),
|
|
2203
2215
|
key: "2"
|
|
2204
2216
|
} : void 0,
|
|
2205
|
-
|
|
2217
|
+
m.$slots.footer ? {
|
|
2206
2218
|
name: "footer",
|
|
2207
|
-
fn: V(() => [Ke(
|
|
2219
|
+
fn: V(() => [Ke(m.$slots, "footer")]),
|
|
2208
2220
|
key: "3"
|
|
2209
2221
|
} : void 0,
|
|
2210
|
-
|
|
2222
|
+
m.$slots.prepend ? {
|
|
2211
2223
|
name: "prepend",
|
|
2212
|
-
fn: V(() => [Ke(
|
|
2224
|
+
fn: V(() => [Ke(m.$slots, "prepend")]),
|
|
2213
2225
|
key: "4"
|
|
2214
2226
|
} : void 0,
|
|
2215
|
-
|
|
2227
|
+
m.$slots.append ? {
|
|
2216
2228
|
name: "append",
|
|
2217
|
-
fn: V(() => [Ke(
|
|
2229
|
+
fn: V(() => [Ke(m.$slots, "append")]),
|
|
2218
2230
|
key: "5"
|
|
2219
2231
|
} : void 0,
|
|
2220
|
-
|
|
2232
|
+
m.$slots.loading ? {
|
|
2221
2233
|
name: "loading",
|
|
2222
|
-
fn: V(() => [Ke(
|
|
2234
|
+
fn: V(() => [Ke(m.$slots, "loading")]),
|
|
2223
2235
|
key: "6"
|
|
2224
2236
|
} : void 0
|
|
2225
2237
|
]), 1032, [
|
|
@@ -2227,6 +2239,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2227
2239
|
"placeholder",
|
|
2228
2240
|
"clearable",
|
|
2229
2241
|
"disabled",
|
|
2242
|
+
"size",
|
|
2230
2243
|
"value-key",
|
|
2231
2244
|
"debounce",
|
|
2232
2245
|
"placement",
|
|
@@ -2309,35 +2322,35 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2309
2322
|
size: 0,
|
|
2310
2323
|
h: 0,
|
|
2311
2324
|
w: 0
|
|
2312
|
-
}), f =
|
|
2325
|
+
}), f = P({
|
|
2313
2326
|
get() {
|
|
2314
2327
|
return i.value !== -1 ? i.value : t.left;
|
|
2315
2328
|
},
|
|
2316
2329
|
set(N) {
|
|
2317
2330
|
i.value = N;
|
|
2318
2331
|
}
|
|
2319
|
-
}), h =
|
|
2332
|
+
}), h = P({
|
|
2320
2333
|
get() {
|
|
2321
2334
|
return l.value !== -1 ? l.value : t.right;
|
|
2322
2335
|
},
|
|
2323
2336
|
set(N) {
|
|
2324
2337
|
l.value = N;
|
|
2325
2338
|
}
|
|
2326
|
-
}), p =
|
|
2339
|
+
}), p = P({
|
|
2327
2340
|
get() {
|
|
2328
2341
|
return r.value !== -1 ? r.value : t.top;
|
|
2329
2342
|
},
|
|
2330
2343
|
set(N) {
|
|
2331
2344
|
r.value = N;
|
|
2332
2345
|
}
|
|
2333
|
-
}), g =
|
|
2346
|
+
}), g = P({
|
|
2334
2347
|
get() {
|
|
2335
2348
|
return s.value !== -1 ? s.value : t.bottom;
|
|
2336
2349
|
},
|
|
2337
2350
|
set(N) {
|
|
2338
2351
|
s.value = N;
|
|
2339
2352
|
}
|
|
2340
|
-
}), v =
|
|
2353
|
+
}), v = P(() => n.left), b = P(() => n.right), w = P(() => n.top), m = P(() => n.bottom), x = P(() => v.value ? u.value && t.hideMidWhenNarrow && b.value ? "50%" : u.value && t.hideMidWhenNarrow && !b.value ? "100%" : typeof f.value == "number" ? f.value + "px" : f.value : "0"), E = P(() => b.value ? u.value && t.hideMidWhenNarrow && v.value ? "50%" : u.value && t.hideMidWhenNarrow && !v.value ? "100%" : typeof h.value == "number" ? h.value + "px" : h.value : "0"), y = P(() => w.value ? typeof p.value == "number" ? p.value + "px" : p.value : "0"), k = P(() => m.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), S = P(() => ({
|
|
2341
2354
|
minWidth: t.midMinWidth + "px",
|
|
2342
2355
|
minHeight: t.midMinHeight + "px"
|
|
2343
2356
|
})), T = (N, A) => {
|
|
@@ -2406,7 +2419,7 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2406
2419
|
const C = f.value;
|
|
2407
2420
|
N = typeof C == "string" && C.includes("%") ? parseFloat(C) / 100 * c.value : Number(C);
|
|
2408
2421
|
}
|
|
2409
|
-
if (
|
|
2422
|
+
if (b.value) {
|
|
2410
2423
|
const C = h.value;
|
|
2411
2424
|
A = typeof C == "string" && C.includes("%") ? parseFloat(C) / 100 * c.value : Number(C);
|
|
2412
2425
|
}
|
|
@@ -2419,26 +2432,26 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2419
2432
|
}), L.observe(a.value));
|
|
2420
2433
|
}), yo(() => {
|
|
2421
2434
|
L && L.disconnect();
|
|
2422
|
-
}), (N, A) => (_(),
|
|
2435
|
+
}), (N, A) => (_(), O("div", {
|
|
2423
2436
|
ref_key: "layout",
|
|
2424
2437
|
ref: a,
|
|
2425
2438
|
class: De(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
2426
2439
|
}, [
|
|
2427
|
-
v.value ? (_(),
|
|
2440
|
+
v.value ? (_(), O("div", {
|
|
2428
2441
|
key: 0,
|
|
2429
2442
|
class: "j-layout--left",
|
|
2430
2443
|
style: Re({ width: x.value })
|
|
2431
|
-
}, [$("div", Ch, [Ke(N.$slots, "left")]), e.leftMove ? (_(),
|
|
2444
|
+
}, [$("div", Ch, [Ke(N.$slots, "left")]), e.leftMove ? (_(), O("div", {
|
|
2432
2445
|
key: 0,
|
|
2433
2446
|
class: "j-layout--move",
|
|
2434
2447
|
onMousedown: A[0] || (A[0] = (C) => T("left", C))
|
|
2435
2448
|
}, null, 32)) : K("", !0)], 4)) : K("", !0),
|
|
2436
|
-
u.value ? K("", !0) : (_(),
|
|
2437
|
-
w.value ? (_(),
|
|
2449
|
+
u.value ? K("", !0) : (_(), O("div", Sh, [
|
|
2450
|
+
w.value ? (_(), O("div", {
|
|
2438
2451
|
key: 0,
|
|
2439
2452
|
class: "j-layout--top",
|
|
2440
2453
|
style: Re({ height: y.value })
|
|
2441
|
-
}, [$("div", kh, [Ke(N.$slots, "top")]), e.topMove ? (_(),
|
|
2454
|
+
}, [$("div", kh, [Ke(N.$slots, "top")]), e.topMove ? (_(), O("div", {
|
|
2442
2455
|
key: 0,
|
|
2443
2456
|
class: "j-layout--move",
|
|
2444
2457
|
onMousedown: A[1] || (A[1] = (C) => T("top", C))
|
|
@@ -2449,21 +2462,21 @@ var Wf = he(hc), Uf = /* @__PURE__ */ se({
|
|
|
2449
2462
|
class: "j-layout--wrapper",
|
|
2450
2463
|
style: Re(S.value)
|
|
2451
2464
|
}, [Ke(N.$slots, "default")], 4),
|
|
2452
|
-
|
|
2465
|
+
m.value ? (_(), O("div", {
|
|
2453
2466
|
key: 1,
|
|
2454
2467
|
class: "j-layout--bottom",
|
|
2455
2468
|
style: Re({ height: k.value })
|
|
2456
|
-
}, [$("div", Eh, [Ke(N.$slots, "bottom")]), e.bottomMove ? (_(),
|
|
2469
|
+
}, [$("div", Eh, [Ke(N.$slots, "bottom")]), e.bottomMove ? (_(), O("div", {
|
|
2457
2470
|
key: 0,
|
|
2458
2471
|
class: "j-layout--move",
|
|
2459
2472
|
onMousedown: A[2] || (A[2] = (C) => T("bottom", C))
|
|
2460
2473
|
}, null, 32)) : K("", !0)], 4)) : K("", !0)
|
|
2461
2474
|
])),
|
|
2462
|
-
|
|
2475
|
+
b.value ? (_(), O("div", {
|
|
2463
2476
|
key: 2,
|
|
2464
2477
|
class: "j-layout--right",
|
|
2465
2478
|
style: Re({ width: E.value })
|
|
2466
|
-
}, [$("div", Rh, [Ke(N.$slots, "right")]), e.rightMove ? (_(),
|
|
2479
|
+
}, [$("div", Rh, [Ke(N.$slots, "right")]), e.rightMove ? (_(), O("div", {
|
|
2467
2480
|
key: 0,
|
|
2468
2481
|
class: "j-layout--move",
|
|
2469
2482
|
onMousedown: A[3] || (A[3] = (C) => T("right", C))
|
|
@@ -3004,10 +3017,10 @@ var Oh = class {
|
|
|
3004
3017
|
theme: u.theme
|
|
3005
3018
|
}, f = l || {}, { style: h } = f, p = Ih(f, ["style"]), g = Object.assign(Object.assign({}, d), p), v = new Le.ListTable(this.table.container, g);
|
|
3006
3019
|
o.subTableInstances.set(e, v), this.restoreSubTableCheckboxState(e, v);
|
|
3007
|
-
const
|
|
3020
|
+
const b = () => {
|
|
3008
3021
|
o.subTableInstances && o.subTableInstances.has(e) && v.render();
|
|
3009
3022
|
};
|
|
3010
|
-
this.table.on("after_render",
|
|
3023
|
+
this.table.on("after_render", b), v.__afterRenderHandler = b, this.setupScrollEventIsolation(v), this.setupUnifiedSelectionManagement(e, v), this.setupSubTableCanvasClipping(v, e), this.setupAntiFlickerMechanism(v), this.setupSubTableEventForwarding(e, v), v.render(), ((a = l?.style) === null || a === void 0 ? void 0 : a.height) === "auto" && this.handleAutoHeightAfterRender(e, v, l);
|
|
3011
3024
|
}
|
|
3012
3025
|
handleAutoHeightAfterRender(e, t, n) {
|
|
3013
3026
|
var a;
|
|
@@ -3076,19 +3089,19 @@ var Oh = class {
|
|
|
3076
3089
|
row: l
|
|
3077
3090
|
});
|
|
3078
3091
|
if (!f || !h) return null;
|
|
3079
|
-
const [p, g, v,
|
|
3080
|
-
let
|
|
3081
|
-
if (
|
|
3082
|
-
x1: f.left +
|
|
3092
|
+
const [p, g, v, b] = Ui((o = t?.style) === null || o === void 0 ? void 0 : o.margin), w = n || ((i = t?.style) === null || i === void 0 ? void 0 : i.height) || 300;
|
|
3093
|
+
let m;
|
|
3094
|
+
if (m = w === "auto" ? 300 : typeof w == "number" ? w : 300, m <= p + v) return {
|
|
3095
|
+
x1: f.left + b,
|
|
3083
3096
|
y1: r.top + s,
|
|
3084
3097
|
x2: h.right - g,
|
|
3085
3098
|
y2: r.top + s
|
|
3086
3099
|
};
|
|
3087
3100
|
const x = {
|
|
3088
|
-
x1: f.left +
|
|
3101
|
+
x1: f.left + b,
|
|
3089
3102
|
y1: r.top + s + p,
|
|
3090
3103
|
x2: h.right - g,
|
|
3091
|
-
y2: r.top + s - v +
|
|
3104
|
+
y2: r.top + s - v + m
|
|
3092
3105
|
};
|
|
3093
3106
|
return x.x2 <= x.x1 || x.y2 <= x.y1 ? null : x;
|
|
3094
3107
|
}
|
|
@@ -3183,9 +3196,9 @@ var Oh = class {
|
|
|
3183
3196
|
const a = e.scenegraph.stage, o = e, i = () => {
|
|
3184
3197
|
var c;
|
|
3185
3198
|
try {
|
|
3186
|
-
const u = t + this.table.columnHeaderLevelCount, d = this.table.getFrozenRowsHeight(), f = this.table.getFrozenColsWidth(), h = this.table.getRightFrozenColsWidth(), p = this.table.getBottomFrozenRowsHeight(), g = this.table.tableNoFrameWidth, v = this.table.tableNoFrameHeight,
|
|
3199
|
+
const u = t + this.table.columnHeaderLevelCount, d = this.table.getFrozenRowsHeight(), f = this.table.getFrozenColsWidth(), h = this.table.getRightFrozenColsWidth(), p = this.table.getBottomFrozenRowsHeight(), g = this.table.tableNoFrameWidth, v = this.table.tableNoFrameHeight, b = u < this.table.frozenRowCount && u >= this.table.columnHeaderLevelCount, w = u >= this.table.rowCount - this.table.bottomFrozenRowCount, m = this.calculateGroupLevelOffset(u), x = Ea(this.table, t), E = x && this.getDetailConfigForRecord ? this.getDetailConfigForRecord(x, t) : null, [, y, , k] = Ui((c = E?.style) === null || c === void 0 ? void 0 : c.margin);
|
|
3187
3200
|
let S = 0, T = v;
|
|
3188
|
-
return
|
|
3201
|
+
return b ? (S = m, T = v - p - m) : w ? (S = m, T = v - m) : (S = d + m, T = v - d - p - m), {
|
|
3189
3202
|
clipX: f + k,
|
|
3190
3203
|
clipY: S,
|
|
3191
3204
|
clipWidth: g - f - h - k / 2 - y / 2,
|
|
@@ -3252,8 +3265,8 @@ var Oh = class {
|
|
|
3252
3265
|
if (p) {
|
|
3253
3266
|
const g = p.x2 - p.x1, v = p.y2 - p.y1;
|
|
3254
3267
|
i.options.viewBox = p;
|
|
3255
|
-
const
|
|
3256
|
-
|
|
3268
|
+
const b = i.options;
|
|
3269
|
+
b.canvasWidth === g && b.canvasHeight === v || (b.canvasWidth = g, b.canvasHeight = v, i.resize()), !((s = i.scenegraph) === null || s === void 0) && s.stage && i.scenegraph.stage.setViewBox(p, !1);
|
|
3257
3270
|
}
|
|
3258
3271
|
}));
|
|
3259
3272
|
}
|
|
@@ -3481,9 +3494,9 @@ var Oh = class {
|
|
|
3481
3494
|
if (r.has(h)) {
|
|
3482
3495
|
const g = r.get(h);
|
|
3483
3496
|
if (g) {
|
|
3484
|
-
const v = g.detailHeight,
|
|
3485
|
-
e.setRowHeight(h,
|
|
3486
|
-
baseHeight:
|
|
3497
|
+
const v = g.detailHeight, b = Math.max(p, v);
|
|
3498
|
+
e.setRowHeight(h, b), r.set(h, {
|
|
3499
|
+
baseHeight: b - g.detailHeight,
|
|
3487
3500
|
detailHeight: g.detailHeight
|
|
3488
3501
|
});
|
|
3489
3502
|
}
|
|
@@ -3739,7 +3752,7 @@ function zh(e, t) {
|
|
|
3739
3752
|
const p = ht(e);
|
|
3740
3753
|
t.getExpandedRows().forEach(((g) => {
|
|
3741
3754
|
var v;
|
|
3742
|
-
const
|
|
3755
|
+
const b = g - e.columnHeaderLevelCount, w = (v = p.subTableInstances) === null || v === void 0 ? void 0 : v.get(b);
|
|
3743
3756
|
w && u && Er(w, typeof u == "string" ? u : String(u), c);
|
|
3744
3757
|
}));
|
|
3745
3758
|
return;
|
|
@@ -3755,8 +3768,8 @@ function zh(e, t) {
|
|
|
3755
3768
|
return s.checkedState.forEach(((p, g) => {
|
|
3756
3769
|
var v;
|
|
3757
3770
|
g = g.includes(",") ? g.split(",").map(((E) => Number(E))) : Number(g);
|
|
3758
|
-
const
|
|
3759
|
-
if (w || !s.table.internalProps.enableCheckboxCascade &&
|
|
3771
|
+
const b = s.table.getTableIndexByRecordIndex(g), w = s.table.transpose ? s.table.getCustomMerge(b, r) : s.table.getCustomMerge(l, b), m = (v = s.table.dataSource) === null || v === void 0 ? void 0 : v.get(g);
|
|
3772
|
+
if (w || !s.table.internalProps.enableCheckboxCascade && m?.vtableMerge) return;
|
|
3760
3773
|
const x = p?.[i];
|
|
3761
3774
|
x === "indeterminate" ? (h = !0, f = !0, u = !1, d = !1) : x !== !0 ? u = !1 : (d = !1, f = !0);
|
|
3762
3775
|
})), c = h ? "indeterminate" : !!u || !d && !!f && "indeterminate", s.headerCheckedState[i] = c, c;
|
|
@@ -4161,7 +4174,7 @@ var Fh = class {
|
|
|
4161
4174
|
}
|
|
4162
4175
|
},
|
|
4163
4176
|
setup(e) {
|
|
4164
|
-
const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = ha(), { t: s } =
|
|
4177
|
+
const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = ha(), { t: s } = jt(), c = P(() => {
|
|
4165
4178
|
const v = Ra({
|
|
4166
4179
|
config: {
|
|
4167
4180
|
...t.config || {},
|
|
@@ -4175,24 +4188,24 @@ var Fh = class {
|
|
|
4175
4188
|
"j-input-rows",
|
|
4176
4189
|
"j-table"
|
|
4177
4190
|
].includes(u.value) && (v.needFormItem = !1), v;
|
|
4178
|
-
}), u =
|
|
4191
|
+
}), u = P(() => t.getCompType ? t.getCompType({
|
|
4179
4192
|
config: t.config,
|
|
4180
4193
|
formData: n
|
|
4181
|
-
}) : t.type), d =
|
|
4194
|
+
}) : t.type), d = P(() => Ol(u.value) && !c.value?.notInput || c.value?.isInput), f = P(() => c.value?.labelWidth || l.value), h = P(() => (c.value?.rule || []).some((v) => v.required === !0)), p = P(() => {
|
|
4182
4195
|
const v = o?.value?.[t.id];
|
|
4183
4196
|
return v ? v.msg : "";
|
|
4184
4197
|
}), g = (v) => {
|
|
4185
4198
|
r(v);
|
|
4186
4199
|
};
|
|
4187
|
-
return (v,
|
|
4188
|
-
const w = B("j-comp"),
|
|
4200
|
+
return (v, b) => {
|
|
4201
|
+
const w = B("j-comp"), m = B("el-form-item"), x = B("el-col");
|
|
4189
4202
|
return c.value.display !== !1 && !e.isNotCol ? (_(), H(x, {
|
|
4190
4203
|
key: 0,
|
|
4191
4204
|
span: c.value.span || G(i),
|
|
4192
4205
|
style: Re({ ...c.value.colStyle || {} }),
|
|
4193
4206
|
class: De(c.value.colClass || {})
|
|
4194
4207
|
}, {
|
|
4195
|
-
default: V(() => [d.value && c.value.needFormItem !== !1 ? (_(), H(
|
|
4208
|
+
default: V(() => [d.value && c.value.needFormItem !== !1 ? (_(), H(m, {
|
|
4196
4209
|
key: 0,
|
|
4197
4210
|
label: G(s)(c.value.notShowLabel ? "" : c.value.label || ""),
|
|
4198
4211
|
"label-position": c.value.labelPosition,
|
|
@@ -4309,13 +4322,13 @@ var Fh = class {
|
|
|
4309
4322
|
},
|
|
4310
4323
|
emits: ["update:modelValue", "change"],
|
|
4311
4324
|
setup(e, { emit: t }) {
|
|
4312
|
-
const n = e, a = t, { contextType: o } = Of(), { formData: i, formChange: l, gutter: r } = ha(), s =
|
|
4325
|
+
const n = e, a = t, { contextType: o } = Of(), { formData: i, formChange: l, gutter: r } = ha(), s = P(() => r?.value || 16), { registerMethod: c } = Df(), { getTableData: u, row: d, rowChange: f } = Pf(), h = n.row || d;
|
|
4313
4326
|
Si({
|
|
4314
4327
|
getTableData: u,
|
|
4315
4328
|
row: h,
|
|
4316
4329
|
rowChange: f
|
|
4317
4330
|
});
|
|
4318
|
-
const p =
|
|
4331
|
+
const p = P(() => Ol(w.value) && !v.value?.notInput || v.value?.isInput || w.value === "j-tabs" || w.value === "j-collapse" || w.value === "j-table"), g = P({
|
|
4319
4332
|
get() {
|
|
4320
4333
|
let R;
|
|
4321
4334
|
if (h ? R = h[n.id] : i ? R = i[n.id] : R = n.modelValue, R === void 0 && w.value === "j-tabs") {
|
|
@@ -4336,33 +4349,33 @@ var Fh = class {
|
|
|
4336
4349
|
set(R) {
|
|
4337
4350
|
h ? h[n.id] = R : i && (i[n.id] = R), a("update:modelValue", R);
|
|
4338
4351
|
}
|
|
4339
|
-
}), v =
|
|
4352
|
+
}), v = P(() => Ra({
|
|
4340
4353
|
config: n.config,
|
|
4341
4354
|
getCompConfig: n.getCompConfig,
|
|
4342
4355
|
formData: i || {},
|
|
4343
4356
|
row: h,
|
|
4344
4357
|
getTableData: u
|
|
4345
|
-
})),
|
|
4358
|
+
})), b = P(() => rc({
|
|
4346
4359
|
type: n.type,
|
|
4347
4360
|
getCompType: n.getCompType,
|
|
4348
4361
|
config: v.value,
|
|
4349
4362
|
formData: i || {},
|
|
4350
4363
|
row: h,
|
|
4351
4364
|
getTableData: u
|
|
4352
|
-
})), w =
|
|
4365
|
+
})), w = P(() => n.isTableCell && (b.value === "j-radio" || b.value === "j-checkbox") ? "j-select" : b.value === "j-textarea" ? "j-input" : ((b.value == null || b.value === "") && console.warn("组件类型不能为空"), b.value)), m = P(() => {
|
|
4353
4366
|
const R = { ...v.value };
|
|
4354
4367
|
return w.value === "j-layer-form" && (R.schema = n.children), w.value === "el-collapse-item" && R.label && (R.title = R.label, delete R.label), [
|
|
4355
4368
|
"j-input-cards",
|
|
4356
4369
|
"j-input-rows",
|
|
4357
4370
|
"j-table"
|
|
4358
|
-
].includes(
|
|
4371
|
+
].includes(b.value) && (console.log(n.children), R.columns = n.children.map((M) => {
|
|
4359
4372
|
const D = M.config?.parentTableId;
|
|
4360
4373
|
return D && M.id && M.id.startsWith(D + ".") ? {
|
|
4361
4374
|
...M,
|
|
4362
4375
|
id: M.id.slice(D.length + 1)
|
|
4363
4376
|
} : M;
|
|
4364
|
-
})), n.isTableCell && (
|
|
4365
|
-
}), x =
|
|
4377
|
+
})), n.isTableCell && (b.value === "j-checkbox" && (R.multiple = !0), b.value === "j-select" && R.multiple && (R.collapseTags = !0, R.collapseTagsTooltip = !0), b.value === "j-switch" && (R.size = "small"), b.value === "j-textarea" && (R.type = "textarea")), R;
|
|
4378
|
+
}), x = P(() => {
|
|
4366
4379
|
if (w.value === "j-layer-form" || w.value === "j-input-rows" || w.value === "j-input-cards") return {};
|
|
4367
4380
|
const R = {};
|
|
4368
4381
|
return n.children.forEach((M, D) => {
|
|
@@ -4412,30 +4425,30 @@ var Fh = class {
|
|
|
4412
4425
|
k.value.forEach((R) => R()), k.value = [];
|
|
4413
4426
|
}), (R, M) => {
|
|
4414
4427
|
const D = B("JComp"), L = B("el-row");
|
|
4415
|
-
return
|
|
4428
|
+
return m.value.display != !1 && p.value ? (_(), H(ja(w.value), ze({
|
|
4416
4429
|
key: 0,
|
|
4417
4430
|
ref_key: "compRef",
|
|
4418
4431
|
ref: y
|
|
4419
|
-
},
|
|
4432
|
+
}, m.value, {
|
|
4420
4433
|
modelValue: g.value,
|
|
4421
4434
|
"onUpdate:modelValue": M[0] || (M[0] = (N) => g.value = N),
|
|
4422
4435
|
onChange: E
|
|
4423
4436
|
}), kn({ _: 2 }, [ke(x.value, (N, A) => ({
|
|
4424
4437
|
name: A,
|
|
4425
|
-
fn: V(() => [(_(!0),
|
|
4426
|
-
}))]), 1040, ["modelValue"])) :
|
|
4438
|
+
fn: V(() => [(_(!0), O(ge, null, ke(N, (C) => (_(), H(D, ze({ key: C.id }, { ref_for: !0 }, C), null, 16))), 128))])
|
|
4439
|
+
}))]), 1040, ["modelValue"])) : m.value.display != !1 ? (_(), H(ja(w.value), ze({
|
|
4427
4440
|
key: 1,
|
|
4428
4441
|
ref_key: "compRef",
|
|
4429
4442
|
ref: y
|
|
4430
|
-
},
|
|
4443
|
+
}, m.value, { onChange: E }), kn({ _: 2 }, [ke(x.value, (N, A) => ({
|
|
4431
4444
|
name: A,
|
|
4432
|
-
fn: V(() => [
|
|
4445
|
+
fn: V(() => [m.value.needRow ? (_(), H(L, {
|
|
4433
4446
|
key: 0,
|
|
4434
4447
|
gutter: s.value
|
|
4435
4448
|
}, {
|
|
4436
|
-
default: V(() => [
|
|
4449
|
+
default: V(() => [m.value.needFormItem ? (_(!0), O(ge, { key: 0 }, ke(N, (C) => (_(), H(gc, ze({ key: C.id }, { ref_for: !0 }, C), null, 16))), 128)) : (_(!0), O(ge, { key: 1 }, ke(N, (C) => (_(), H(D, ze({ key: C.id }, { ref_for: !0 }, C), null, 16))), 128))]),
|
|
4437
4450
|
_: 2
|
|
4438
|
-
}, 1032, ["gutter"])) : (_(!0),
|
|
4451
|
+
}, 1032, ["gutter"])) : (_(!0), O(ge, { key: 1 }, ke(N, (C) => (_(), H(D, ze({ key: C.id }, { ref_for: !0 }, C), null, 16))), 128))])
|
|
4439
4452
|
}))]), 1040)) : K("", !0);
|
|
4440
4453
|
};
|
|
4441
4454
|
}
|
|
@@ -4688,11 +4701,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4688
4701
|
"change"
|
|
4689
4702
|
],
|
|
4690
4703
|
setup(e, { expose: t, emit: n }) {
|
|
4691
|
-
const a = Gs(), o = e, i = n, { formData: l } = ha(), { useData: r } =
|
|
4704
|
+
const a = Gs(), o = e, i = n, { formData: l } = ha(), { useData: r } = jt(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = xo(), d = P(() => o.heightMode === "auto" ? { height: "auto" } : {}), f = j(40), h = P(() => {
|
|
4692
4705
|
const I = {};
|
|
4693
4706
|
return o.heightMode === "auto" && (o.emptyTipText && f.value < 200 ? I.height = "200px" : I.height = f.value + "px", I.flex = "none", o.maxHeight && (I.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), I;
|
|
4694
4707
|
}), p = j(null);
|
|
4695
|
-
let g = null, v = null,
|
|
4708
|
+
let g = null, v = null, b = 0, w = 0, m = !1;
|
|
4696
4709
|
const x = j(0);
|
|
4697
4710
|
let E = o.records.length, y = 45;
|
|
4698
4711
|
const k = j(!1), S = j({}), T = j([]), R = j(null), M = j(0);
|
|
@@ -4975,25 +4988,25 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4975
4988
|
});
|
|
4976
4989
|
if (Pe.length === 0) return { elements: [] };
|
|
4977
4990
|
const xe = 14, fe = 28, We = 2, Ye = 12, $e = 8, ut = 6, Ue = 8, yt = Math.max(0, U.width - Ue * 2), Ct = Math.max(0, yt - Ye * 2), _e = [], He = (Oe) => {
|
|
4978
|
-
const
|
|
4979
|
-
return Math.min(yt,
|
|
4980
|
-
}, Fe = (Oe,
|
|
4991
|
+
const Pt = sn(te(Oe, Ct)) || 0;
|
|
4992
|
+
return Math.min(yt, Pt + Ye * 2);
|
|
4993
|
+
}, Fe = (Oe, Pt, hn, Vt, On) => {
|
|
4981
4994
|
const Fo = te(hn, Ct), Ju = ct(Fo), Xu = sn(Fo) || 0, Ca = Math.min(yt, Xu + Ye * 2), qu = Vt || "#f2f3f5", Zu = On || "#1d2129", Qu = fe / 2 + xe * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ca}" height="${fe}" viewBox="0 0 ${Ca} ${fe}"><rect x="0" y="0" width="${Ca}" height="${fe}" rx="${We}" ry="${We}" fill="${qu}"/><text x="${Ca / 2}" y="${Qu}" text-anchor="middle" font-size="${xe}" fill="${Zu}">${Ju}</text></svg>`;
|
|
4982
4995
|
return _e.push({
|
|
4983
4996
|
type: "icon",
|
|
4984
4997
|
svg: ed,
|
|
4985
4998
|
x: Oe,
|
|
4986
|
-
y:
|
|
4999
|
+
y: Pt,
|
|
4987
5000
|
width: Ca,
|
|
4988
5001
|
height: fe
|
|
4989
5002
|
}), { tagWidth: Ca };
|
|
4990
5003
|
}, Xe = [];
|
|
4991
5004
|
let zt = [], tn = 0;
|
|
4992
5005
|
for (let Oe = 0; Oe < Pe.length; Oe++) {
|
|
4993
|
-
const
|
|
5006
|
+
const Pt = Pe[Oe], hn = Pt.label, Vt = He(hn), On = {
|
|
4994
5007
|
label: hn,
|
|
4995
|
-
bg:
|
|
4996
|
-
text:
|
|
5008
|
+
bg: Pt.color || "#f2f3f5",
|
|
5009
|
+
text: Pt.textColor || Je(Pt.color || "#f2f3f5"),
|
|
4997
5010
|
width: Vt
|
|
4998
5011
|
};
|
|
4999
5012
|
zt.length > 0 && tn + $e + Vt > yt ? (Xe.push({
|
|
@@ -5008,28 +5021,28 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5008
5021
|
const na = U.height;
|
|
5009
5022
|
let Do = Math.max(1, Math.floor((na + ut) / (fe + ut))), It = !1;
|
|
5010
5023
|
if (Xe.length > Do && (It = !0, Xe.length = Do), It) {
|
|
5011
|
-
const Oe = Xe[Xe.length - 1],
|
|
5012
|
-
let hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) +
|
|
5024
|
+
const Oe = Xe[Xe.length - 1], Pt = He("...");
|
|
5025
|
+
let hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) + Pt;
|
|
5013
5026
|
for (; hn > yt && Oe.items.length > 0; ) {
|
|
5014
5027
|
const Vt = Oe.items.pop();
|
|
5015
5028
|
if (!Vt) break;
|
|
5016
|
-
Oe.items.length > 0 ? Oe.lineWidth -= $e + Vt.width : Oe.lineWidth -= Vt.width, hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) +
|
|
5029
|
+
Oe.items.length > 0 ? Oe.lineWidth -= $e + Vt.width : Oe.lineWidth -= Vt.width, hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) + Pt;
|
|
5017
5030
|
}
|
|
5018
5031
|
Oe.items.push({
|
|
5019
5032
|
label: "...",
|
|
5020
5033
|
bg: "#f2f3f5",
|
|
5021
5034
|
text: "#1d2129",
|
|
5022
|
-
width:
|
|
5023
|
-
}), Oe.lineWidth += Oe.items.length > 1 ? $e +
|
|
5035
|
+
width: Pt
|
|
5036
|
+
}), Oe.lineWidth += Oe.items.length > 1 ? $e + Pt : Pt;
|
|
5024
5037
|
}
|
|
5025
5038
|
const Ft = Xe.length * fe + (Xe.length > 1 ? (Xe.length - 1) * ut : 0);
|
|
5026
5039
|
let aa = Math.max(0, (U.height - Ft) / 2);
|
|
5027
5040
|
for (let Oe = 0; Oe < Xe.length; Oe++) {
|
|
5028
|
-
const
|
|
5029
|
-
let hn = we === "center" ? Ue + Math.max(0, (yt -
|
|
5030
|
-
for (let Vt = 0; Vt <
|
|
5031
|
-
const On =
|
|
5032
|
-
hn += Fo + (Vt <
|
|
5041
|
+
const Pt = Xe[Oe];
|
|
5042
|
+
let hn = we === "center" ? Ue + Math.max(0, (yt - Pt.lineWidth) / 2) : we === "right" ? Ue + Math.max(0, yt - Pt.lineWidth) : Ue;
|
|
5043
|
+
for (let Vt = 0; Vt < Pt.items.length; Vt++) {
|
|
5044
|
+
const On = Pt.items[Vt], { tagWidth: Fo } = Fe(hn, aa, On.label, On.bg, On.text);
|
|
5045
|
+
hn += Fo + (Vt < Pt.items.length - 1 ? $e : 0);
|
|
5033
5046
|
}
|
|
5034
5047
|
aa += fe + (Oe < Xe.length - 1 ? ut : 0);
|
|
5035
5048
|
}
|
|
@@ -5216,7 +5229,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5216
5229
|
_getCompType: ue,
|
|
5217
5230
|
frozen: Ue
|
|
5218
5231
|
}, He = Kh(W);
|
|
5219
|
-
return He && (_e.editor = He,
|
|
5232
|
+
return He && (_e.editor = He, m = !0), W === "j-switch" && (_e.customRender = Ze, _e.minWidth = _e.minWidth || Pe, _e.maxWidth = _e.maxWidth || Pe), W === "j-rate" && (_e.customRender = Ae), W === "j-slider" && (_e.customRender = nt), (W === "j-tag" || W === "j-input-tag") && (_e.customRender = Be), W === "j-icon" && (_e.customRender = Ce), W === "link" && (_e.customLayout = Lt), W === "checkbox" && (_e.customLayout = Dt), de && (_e.customLayout = at), _e.fieldFormat = jn, Q && Q.length > 0 && (_e.columns = Zt(Q)), _e;
|
|
5220
5233
|
});
|
|
5221
5234
|
return o.isTree && z.length > 0 && (z[0].tree = !0), z;
|
|
5222
5235
|
}, J = (I, z) => {
|
|
@@ -5304,7 +5317,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5304
5317
|
right: U
|
|
5305
5318
|
};
|
|
5306
5319
|
}, ot = (I, z, U, ne) => {
|
|
5307
|
-
|
|
5320
|
+
b = 0, w = 0, m = !1;
|
|
5308
5321
|
const W = {};
|
|
5309
5322
|
let q = Zt(I);
|
|
5310
5323
|
q.length === 0 && (q = [ee()]), q = Se(q);
|
|
@@ -5314,11 +5327,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5314
5327
|
fe === "left" ? pe.push(xe) : fe === "right" ? ue.push(xe) : Q.push(xe);
|
|
5315
5328
|
});
|
|
5316
5329
|
const de = Me(pe), we = Me(ue);
|
|
5317
|
-
w += de.left,
|
|
5330
|
+
w += de.left, b += we.right, q = [
|
|
5318
5331
|
...pe,
|
|
5319
5332
|
...Q,
|
|
5320
5333
|
...ue
|
|
5321
|
-
], z && (q.unshift(Z(ne)), w++), U.length > 0 && (q.push(Ge(U)),
|
|
5334
|
+
], z && (q.unshift(Z(ne)), w++), U.length > 0 && (q.push(Ge(U)), b++), m && (W.editCellTrigger = "click", W.keyboardOptions = {
|
|
5322
5335
|
copySelected: !0,
|
|
5323
5336
|
cutSelected: !0,
|
|
5324
5337
|
pasteValueToCell: !0,
|
|
@@ -5342,7 +5355,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5342
5355
|
autoFillWidth: !0,
|
|
5343
5356
|
enableCheckboxCascade: vt.value,
|
|
5344
5357
|
enableHeaderCheckboxCascade: vt.value,
|
|
5345
|
-
rightFrozenColCount:
|
|
5358
|
+
rightFrozenColCount: b,
|
|
5346
5359
|
frozenColCount: w,
|
|
5347
5360
|
tooltip: { isShowOverflowTextTooltip: !0 },
|
|
5348
5361
|
hover: { highlightMode: o.highlightMode },
|
|
@@ -5412,7 +5425,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5412
5425
|
selections: Q,
|
|
5413
5426
|
record: ue,
|
|
5414
5427
|
checked: Q.find((de) => re(de) === re(ue)) !== void 0
|
|
5415
|
-
});
|
|
5428
|
+
}), g.renderWithRecreateCells();
|
|
5416
5429
|
}
|
|
5417
5430
|
} else setTimeout(() => {
|
|
5418
5431
|
const Q = gt();
|
|
@@ -5444,21 +5457,21 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5444
5457
|
}), vo(() => {
|
|
5445
5458
|
ea(), X(), document.removeEventListener("wheel", Te);
|
|
5446
5459
|
});
|
|
5447
|
-
const Ya =
|
|
5460
|
+
const Ya = P({
|
|
5448
5461
|
get() {
|
|
5449
5462
|
return o.tablePage;
|
|
5450
5463
|
},
|
|
5451
5464
|
set(I) {
|
|
5452
5465
|
i("update:tablePage", I);
|
|
5453
5466
|
}
|
|
5454
|
-
}), Lo = j(0), ye =
|
|
5467
|
+
}), Lo = j(0), ye = P({
|
|
5455
5468
|
get() {
|
|
5456
5469
|
return Lo.value !== 0 ? Lo.value : o.pageSize;
|
|
5457
5470
|
},
|
|
5458
5471
|
set(I) {
|
|
5459
5472
|
Lo.value = I, i("update:pageSize", I);
|
|
5460
5473
|
}
|
|
5461
|
-
}), be =
|
|
5474
|
+
}), be = P(() => (Ya.value - 1) * ye.value), wt = (I, z) => {
|
|
5462
5475
|
i("loadPageData", {
|
|
5463
5476
|
rows: z,
|
|
5464
5477
|
page: I
|
|
@@ -5555,7 +5568,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5555
5568
|
}), o.heightMode === "auto" && (f.value = g.getAllRowsHeight()), x.value = 0;
|
|
5556
5569
|
}, Jt = () => {
|
|
5557
5570
|
g.renderWithRecreateCells();
|
|
5558
|
-
}, rt =
|
|
5571
|
+
}, rt = P(() => o.editConfig.isAddBtn), Ka = P(() => o.editConfig.addBtnText || "添加"), ta = P(() => o.editConfig.isRemoveBtn), zo = P(() => o.editConfig.readonly), vt = P(() => o.isMultiple || ta.value), Yt = () => {
|
|
5559
5572
|
const I = o.modelValue || [];
|
|
5560
5573
|
return I.forEach((z) => {
|
|
5561
5574
|
z._i || (z._i = Fn());
|
|
@@ -5564,7 +5577,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5564
5577
|
it(() => o.modelValue, () => {
|
|
5565
5578
|
Bo(Yt());
|
|
5566
5579
|
});
|
|
5567
|
-
const fn =
|
|
5580
|
+
const fn = P(() => {
|
|
5568
5581
|
const I = (z) => {
|
|
5569
5582
|
const U = [];
|
|
5570
5583
|
return z.forEach((ne) => {
|
|
@@ -5588,7 +5601,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5588
5601
|
tableData: g.records,
|
|
5589
5602
|
type: "add"
|
|
5590
5603
|
});
|
|
5591
|
-
}, Ga =
|
|
5604
|
+
}, Ga = P(() => x.value > 0), $o = () => {
|
|
5592
5605
|
if (!g) return;
|
|
5593
5606
|
const I = gt();
|
|
5594
5607
|
I.length !== 0 && dd.confirm(`确定要删除选中的 ${I.length} 条记录吗?`, "删除确认", {
|
|
@@ -5645,7 +5658,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5645
5658
|
renderTable: Jt
|
|
5646
5659
|
}), (I, z) => {
|
|
5647
5660
|
const U = B("j-button"), ne = B("el-space"), W = B("el-pagination");
|
|
5648
|
-
return _(),
|
|
5661
|
+
return _(), O("div", {
|
|
5649
5662
|
class: De(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
5650
5663
|
style: Re(d.value)
|
|
5651
5664
|
}, [
|
|
@@ -5657,7 +5670,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5657
5670
|
ref: p,
|
|
5658
5671
|
class: De("j-block")
|
|
5659
5672
|
}, null, 512)], 4),
|
|
5660
|
-
$("div", Jh, [e.isPage || !zo.value && (rt.value || ta.value) ? (_(),
|
|
5673
|
+
$("div", Jh, [e.isPage || !zo.value && (rt.value || ta.value) ? (_(), O("div", Xh, [
|
|
5661
5674
|
Y(ne, null, {
|
|
5662
5675
|
default: V(() => [rt.value ? (_(), H(U, {
|
|
5663
5676
|
key: 0,
|
|
@@ -5699,13 +5712,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5699
5712
|
"total"
|
|
5700
5713
|
])) : K("", !0)
|
|
5701
5714
|
])) : K("", !0)]),
|
|
5702
|
-
k.value ? (_(),
|
|
5715
|
+
k.value ? (_(), O("div", {
|
|
5703
5716
|
key: 0,
|
|
5704
5717
|
class: "j-table-dropdown",
|
|
5705
5718
|
style: Re(S.value),
|
|
5706
5719
|
onMouseenter: le,
|
|
5707
5720
|
onMouseleave: me
|
|
5708
|
-
}, [(_(!0),
|
|
5721
|
+
}, [(_(!0), O(ge, null, ke(T.value, (q) => (_(), O("div", {
|
|
5709
5722
|
key: q.id,
|
|
5710
5723
|
class: "j-table-dropdown-item",
|
|
5711
5724
|
style: Re({
|
|
@@ -5821,7 +5834,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5821
5834
|
"closed"
|
|
5822
5835
|
],
|
|
5823
5836
|
setup(e, { expose: t, emit: n }) {
|
|
5824
|
-
const a = e, o = n, { t: i } =
|
|
5837
|
+
const a = e, o = n, { t: i } = jt(), l = j(!1), r = j(!1), s = j(""), c = j(!1), u = j(!0), d = j(!1), f = j(!0), h = j(-1), p = da({
|
|
5825
5838
|
isMove: !1,
|
|
5826
5839
|
pageX: 0,
|
|
5827
5840
|
pageY: 0,
|
|
@@ -5829,22 +5842,22 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5829
5842
|
top: 0,
|
|
5830
5843
|
_left: 0,
|
|
5831
5844
|
_top: 0
|
|
5832
|
-
}), g = j(0), v = j(),
|
|
5845
|
+
}), g = j(0), v = j(), b = j(48), w = j(0), m = j(0);
|
|
5833
5846
|
it(() => a.visible, (oe) => {
|
|
5834
5847
|
g.value = 1, g.value = 0, l.value = oe, oe === !0 && a.zoomControls && At(() => {
|
|
5835
5848
|
typeof document < "u" && (v.value = document.querySelector(".j-dialog"), v.value && (v.value.onmousemove = Ne));
|
|
5836
5849
|
});
|
|
5837
5850
|
}, { immediate: !0 });
|
|
5838
|
-
const x =
|
|
5851
|
+
const x = P(() => {
|
|
5839
5852
|
let oe = a.height + g.value;
|
|
5840
5853
|
return typeof window < "u" && oe + 40 > window.innerHeight && (oe = window.innerHeight - 32 - 40), oe;
|
|
5841
|
-
}), E =
|
|
5854
|
+
}), E = P(() => {
|
|
5842
5855
|
let oe = 0 + g.value;
|
|
5843
5856
|
return typeof document < "u" && document.body && (oe = (document.body.clientWidth - k.value) / 2), oe;
|
|
5844
|
-
}), y =
|
|
5857
|
+
}), y = P(() => {
|
|
5845
5858
|
let oe = 0 + g.value;
|
|
5846
5859
|
return typeof window < "u" && (oe = (window.innerHeight - x.value - 40) / 2), oe;
|
|
5847
|
-
}), k =
|
|
5860
|
+
}), k = P(() => {
|
|
5848
5861
|
let oe = 0 + g.value;
|
|
5849
5862
|
return oe = a.width, typeof document < "u" && document.body && oe > document.body.clientWidth && (oe = document.body.clientWidth - 32), oe;
|
|
5850
5863
|
}), S = (oe) => {
|
|
@@ -5856,10 +5869,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5856
5869
|
}, M = () => {
|
|
5857
5870
|
o("ok", S, T);
|
|
5858
5871
|
}, D = () => {
|
|
5859
|
-
p.left = 0, p.top = 0,
|
|
5872
|
+
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (L.value = 0, At(() => {
|
|
5860
5873
|
F();
|
|
5861
5874
|
})), o("closed");
|
|
5862
|
-
}, L =
|
|
5875
|
+
}, L = P({
|
|
5863
5876
|
get() {
|
|
5864
5877
|
return h.value !== -1 ? h.value : a.stepActive;
|
|
5865
5878
|
},
|
|
@@ -5892,7 +5905,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5892
5905
|
u.value = !1, d.value = !1;
|
|
5893
5906
|
break;
|
|
5894
5907
|
}
|
|
5895
|
-
}, X =
|
|
5908
|
+
}, X = P(() => a.steps.map((oe) => ({
|
|
5896
5909
|
title: oe,
|
|
5897
5910
|
disabled: !0
|
|
5898
5911
|
}))), le = function(oe) {
|
|
@@ -5903,10 +5916,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5903
5916
|
if (p.isMove) {
|
|
5904
5917
|
const Ge = oe.pageX - p.pageX, Ze = oe.pageY - p.pageY;
|
|
5905
5918
|
let Ae = p._left + Ge, nt = p._top + Ze;
|
|
5906
|
-
Ae + E.value < 0 && (Ae = -E.value), typeof document < "u" && document.body && (w.value ? Ae + w.value + E.value > document.body.clientWidth && (Ae = document.body.clientWidth - w.value - E.value) : Ae + k.value + E.value > document.body.clientWidth && (Ae = document.body.clientWidth - k.value - E.value)), nt + y.value < 0 && (nt = -y.value), typeof window < "u" && (
|
|
5919
|
+
Ae + E.value < 0 && (Ae = -E.value), typeof document < "u" && document.body && (w.value ? Ae + w.value + E.value > document.body.clientWidth && (Ae = document.body.clientWidth - w.value - E.value) : Ae + k.value + E.value > document.body.clientWidth && (Ae = document.body.clientWidth - k.value - E.value)), nt + y.value < 0 && (nt = -y.value), typeof window < "u" && (m.value ? nt + m.value + y.value + 40 > window.innerHeight && (nt = window.innerHeight - m.value - y.value - 40) : nt + x.value + y.value + 40 > window.innerHeight && (nt = window.innerHeight - x.value - y.value - 40)), p.left = Ae, p.top = nt;
|
|
5907
5920
|
}
|
|
5908
5921
|
}, Ne = (oe) => {
|
|
5909
|
-
const Ge = v.value.offsetLeft, Ze = v.value.offsetTop, Ae = v.value.clientWidth, nt = v.value.clientHeight, ct = nt -
|
|
5922
|
+
const Ge = v.value.offsetLeft, Ze = v.value.offsetTop, Ae = v.value.clientWidth, nt = v.value.clientHeight, ct = nt - b.value, te = v.value.scrollTop;
|
|
5910
5923
|
if (oe.clientX > Ge + Ae - 10 && te + oe.clientY > Ze + nt - 10 || te + oe.clientY < Ze + 5 && Ge + 10 > oe.clientX) v.value.style.cursor = "se-resize";
|
|
5911
5924
|
else if (Ge + 10 > oe.clientX && te + oe.clientY > Ze + nt - 10 || oe.clientX > Ge + Ae - 10 && te + oe.clientY < Ze + 5) v.value.style.cursor = "sw-resize";
|
|
5912
5925
|
else if (oe.clientX > Ge + Ae - 10 || Ge + 10 > oe.clientX) v.value.style.cursor = "w-resize";
|
|
@@ -5917,8 +5930,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5917
5930
|
}
|
|
5918
5931
|
v.value.onmousedown = (Ce) => {
|
|
5919
5932
|
const { clientX: Be } = Ce, { clientY: Je } = Ce, Lt = p.left + E.value, Dt = p.top + y.value;
|
|
5920
|
-
p._left = p.left, p._top = p.top,
|
|
5921
|
-
at.preventDefault(), Be > Lt && Be < Lt + 10 && (Be > at.clientX && (w.value = Ae + (Be - at.clientX), p.left = p._left - (Be - at.clientX)), Be < at.clientX && w.value > a.minWidth && (w.value = Ae - (at.clientX - Be), p.left = p._left + at.clientX - Be)), Be > Lt + Ae - 10 && Be < Lt + Ae && (Be > at.clientX && w.value > a.minWidth && (w.value = Ae - (Be - at.clientX)), Be < at.clientX && typeof document < "u" && document.body && E.value + p.left + w.value < document.body.clientWidth && (w.value = Ae + (at.clientX - Be))), Je > Dt && Je < Dt + 5 && (Je > at.clientY && (
|
|
5933
|
+
p._left = p.left, p._top = p.top, m.value || (m.value = ct), w.value || (w.value = Ae), Be > Lt + 10 && Be < Lt + Ae - 10 && Je > Dt + 5 && Je < Dt + 47 || (typeof document < "u" && (document.onmousemove = function(at) {
|
|
5934
|
+
at.preventDefault(), Be > Lt && Be < Lt + 10 && (Be > at.clientX && (w.value = Ae + (Be - at.clientX), p.left = p._left - (Be - at.clientX)), Be < at.clientX && w.value > a.minWidth && (w.value = Ae - (at.clientX - Be), p.left = p._left + at.clientX - Be)), Be > Lt + Ae - 10 && Be < Lt + Ae && (Be > at.clientX && w.value > a.minWidth && (w.value = Ae - (Be - at.clientX)), Be < at.clientX && typeof document < "u" && document.body && E.value + p.left + w.value < document.body.clientWidth && (w.value = Ae + (at.clientX - Be))), Je > Dt && Je < Dt + 5 && (Je > at.clientY && (m.value = ct + Je - at.clientY, p.top = p._top - (Je - at.clientY)), Je < at.clientY && m.value > a.minHeight && (m.value = ct - (at.clientY - Je), p.top = p._top + at.clientY - Je)), te + Je > Dt + ct + 38 && te + Je < Dt + ct + 48 && (Je > at.clientY && m.value > a.minHeight && (m.value = ct - (Je - at.clientY)), Je < at.clientY && typeof window < "u" && y.value + p.top + m.value + 48 < window.innerHeight && (m.value = ct + at.clientY - Je));
|
|
5922
5935
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
5923
5936
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
5924
5937
|
}));
|
|
@@ -5958,7 +5971,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5958
5971
|
class: "j-dialog-header-left",
|
|
5959
5972
|
title: G(i)(e.title || ""),
|
|
5960
5973
|
style: Re({ cursor: e.autoHeight ? "" : "move" })
|
|
5961
|
-
}, [$("span", null, ve(G(i)(e.title || "")), 1), e.subtitle ? (_(),
|
|
5974
|
+
}, [$("span", null, ve(G(i)(e.title || "")), 1), e.subtitle ? (_(), O("span", np, [(_(), H(ja(e.subtitle())))])) : K("", !0)], 12, tp), e.showCloseBtn ? (_(), H(Ae, {
|
|
5962
5975
|
key: 0,
|
|
5963
5976
|
size: 0
|
|
5964
5977
|
}, {
|
|
@@ -5974,9 +5987,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5974
5987
|
{ "j-dialog-window-hasBtns": e.hasBtns },
|
|
5975
5988
|
{ "j-dialog-window-hasSteps": e.isStep }
|
|
5976
5989
|
]),
|
|
5977
|
-
style: Re({ height: e.autoHeight ? "auto" : (
|
|
5990
|
+
style: Re({ height: e.autoHeight ? "auto" : (m.value > 0 ? m.value : x.value) + "px" })
|
|
5978
5991
|
}, [
|
|
5979
|
-
e.isStep ? (_(),
|
|
5992
|
+
e.isStep ? (_(), O("div", ap, [$("div", { style: Re({
|
|
5980
5993
|
maxWidth: `${200 * X.value.length}px`,
|
|
5981
5994
|
width: "100%"
|
|
5982
5995
|
}) }, [Y(ct, {
|
|
@@ -5985,14 +5998,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5985
5998
|
space: 160,
|
|
5986
5999
|
"finish-status": "success"
|
|
5987
6000
|
}, {
|
|
5988
|
-
default: V(() => [(_(!0),
|
|
6001
|
+
default: V(() => [(_(!0), O(ge, null, ke(X.value, (Ce, Be) => (_(), H(nt, {
|
|
5989
6002
|
key: Be,
|
|
5990
6003
|
title: G(i)(Ce.title)
|
|
5991
6004
|
}, null, 8, ["title"]))), 128))]),
|
|
5992
6005
|
_: 1
|
|
5993
6006
|
}, 8, ["active"])], 4)])) : K("", !0),
|
|
5994
6007
|
$("div", op, [Ke(oe.$slots, "default")]),
|
|
5995
|
-
e.hasBtns ? (_(),
|
|
6008
|
+
e.hasBtns ? (_(), O("div", ip, [Y(Ae, { size: 8 }, {
|
|
5996
6009
|
default: V(() => [
|
|
5997
6010
|
e.isStep ? (_(), H(Ze, {
|
|
5998
6011
|
key: 0,
|
|
@@ -6019,7 +6032,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6019
6032
|
label: G(i)("取消"),
|
|
6020
6033
|
onClick: R
|
|
6021
6034
|
}, null, 8, ["label"])) : K("", !0),
|
|
6022
|
-
(_(!0),
|
|
6035
|
+
(_(!0), O(ge, null, ke(e.buttons, (Ce) => (_(), H(Ze, ze({ ref_for: !0 }, Ce.config, {
|
|
6023
6036
|
key: Ce.id,
|
|
6024
6037
|
label: Ce.label,
|
|
6025
6038
|
onClick: (Be) => dt(Ce)
|
|
@@ -6117,11 +6130,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6117
6130
|
"closed"
|
|
6118
6131
|
],
|
|
6119
6132
|
setup(e, { expose: t, emit: n }) {
|
|
6120
|
-
const a = e, o = n, { logoImg: i, t: l } =
|
|
6133
|
+
const a = e, o = n, { logoImg: i, t: l } = jt(), r = j(!1), s = j(!1), c = j(""), u = j(!1), d = j(!0), f = j(!1), h = j(!0), p = j(-1);
|
|
6121
6134
|
it(() => a.visible, (M) => {
|
|
6122
6135
|
r.value = M;
|
|
6123
6136
|
}, { immediate: !0 });
|
|
6124
|
-
const g =
|
|
6137
|
+
const g = P({
|
|
6125
6138
|
get() {
|
|
6126
6139
|
return p.value !== -1 ? p.value : a.stepActive;
|
|
6127
6140
|
},
|
|
@@ -6130,13 +6143,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6130
6143
|
}
|
|
6131
6144
|
}), v = () => {
|
|
6132
6145
|
a.beforeClose && a.beforeClose() === !1 || (r.value = !1, o("update:visible", !1), o("cancel"));
|
|
6133
|
-
},
|
|
6134
|
-
o("ok",
|
|
6146
|
+
}, b = () => {
|
|
6147
|
+
o("ok", m, x);
|
|
6135
6148
|
}, w = () => {
|
|
6136
6149
|
a.isStep && (g.value = 0, At(() => {
|
|
6137
6150
|
S();
|
|
6138
6151
|
})), o("closed");
|
|
6139
|
-
},
|
|
6152
|
+
}, m = (M) => {
|
|
6140
6153
|
c.value = M || "保存数据中...", s.value = !0;
|
|
6141
6154
|
}, x = () => {
|
|
6142
6155
|
s.value = !1;
|
|
@@ -6150,7 +6163,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6150
6163
|
}));
|
|
6151
6164
|
}, k = async () => {
|
|
6152
6165
|
if (u.value = !0, a.validateSteps) {
|
|
6153
|
-
const M = await a.validateSteps(a.stepActive,
|
|
6166
|
+
const M = await a.validateSteps(a.stepActive, m, x);
|
|
6154
6167
|
return u.value = !1, M;
|
|
6155
6168
|
}
|
|
6156
6169
|
return u.value = !1, !0;
|
|
@@ -6166,14 +6179,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6166
6179
|
d.value = !1, f.value = !1;
|
|
6167
6180
|
break;
|
|
6168
6181
|
}
|
|
6169
|
-
}, T =
|
|
6182
|
+
}, T = P(() => a.steps.map((M) => ({
|
|
6170
6183
|
title: M,
|
|
6171
6184
|
disabled: !0
|
|
6172
6185
|
}))), R = async (M) => {
|
|
6173
6186
|
M.click && await M.click();
|
|
6174
6187
|
};
|
|
6175
6188
|
return t({
|
|
6176
|
-
showLoading:
|
|
6189
|
+
showLoading: m,
|
|
6177
6190
|
hideLoading: x
|
|
6178
6191
|
}), (M, D) => {
|
|
6179
6192
|
const L = B("el-step"), N = B("el-steps"), A = B("j-button"), C = B("el-space"), F = B("el-divider"), X = B("el-dialog"), le = _i("loading");
|
|
@@ -6189,12 +6202,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6189
6202
|
"destroy-on-close": e.destroyOnClose,
|
|
6190
6203
|
onClosed: w
|
|
6191
6204
|
}, {
|
|
6192
|
-
default: V(() => [Sn((_(),
|
|
6205
|
+
default: V(() => [Sn((_(), O("div", {
|
|
6193
6206
|
class: "j-block j-dialog-full-window",
|
|
6194
6207
|
"element-loading-text": G(l)(c.value)
|
|
6195
6208
|
}, [$("div", up, [
|
|
6196
6209
|
$("div", dp, [
|
|
6197
|
-
G(i) ? (_(),
|
|
6210
|
+
G(i) ? (_(), O("img", {
|
|
6198
6211
|
key: 0,
|
|
6199
6212
|
class: "j-dialog-full-header-logo",
|
|
6200
6213
|
src: G(i)
|
|
@@ -6212,7 +6225,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6212
6225
|
space: 160,
|
|
6213
6226
|
"finish-status": "success"
|
|
6214
6227
|
}, {
|
|
6215
|
-
default: V(() => [(_(!0),
|
|
6228
|
+
default: V(() => [(_(!0), O(ge, null, ke(T.value, (me, Te) => (_(), H(L, {
|
|
6216
6229
|
key: Te,
|
|
6217
6230
|
title: G(l)(me.title)
|
|
6218
6231
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -6241,7 +6254,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6241
6254
|
"loading",
|
|
6242
6255
|
"label"
|
|
6243
6256
|
])) : K("", !0),
|
|
6244
|
-
(_(!0),
|
|
6257
|
+
(_(!0), O(ge, null, ke(e.buttons, (me) => (_(), O(ge, { key: me.id }, [me.config?.display !== !1 ? (_(), H(A, ze({
|
|
6245
6258
|
key: 0,
|
|
6246
6259
|
ref_for: !0
|
|
6247
6260
|
}, me.config, {
|
|
@@ -6254,7 +6267,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6254
6267
|
type: "primary",
|
|
6255
6268
|
disabled: h.value && e.isStep,
|
|
6256
6269
|
label: G(l)(e.btnText),
|
|
6257
|
-
onClick:
|
|
6270
|
+
onClick: b
|
|
6258
6271
|
}, null, 8, ["disabled", "label"])) : K("", !0)
|
|
6259
6272
|
]),
|
|
6260
6273
|
_: 1
|
|
@@ -6376,7 +6389,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6376
6389
|
"cancel"
|
|
6377
6390
|
],
|
|
6378
6391
|
setup(e, { expose: t, emit: n }) {
|
|
6379
|
-
const a = e, { t: o } =
|
|
6392
|
+
const a = e, { t: o } = jt(), i = n, l = j(!1), r = j(""), s = P(() => ["ltr", "rtl"].indexOf(a.direction) !== -1 ? `${a.width}px` : `${a.height}px`), c = P({
|
|
6380
6393
|
get() {
|
|
6381
6394
|
return a.visible;
|
|
6382
6395
|
},
|
|
@@ -6397,7 +6410,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6397
6410
|
a.beforeClose && a.beforeClose() === !1 || (c.value = !1, i("update:visible", !1), i("cancel"));
|
|
6398
6411
|
}, g = async (M) => {
|
|
6399
6412
|
M.click && await M.click();
|
|
6400
|
-
}, v = j(!1),
|
|
6413
|
+
}, v = j(!1), b = j(!0), w = j(!1), m = j(!0), x = j(-1), E = P({
|
|
6401
6414
|
get() {
|
|
6402
6415
|
return x.value !== -1 ? x.value : a.stepActive;
|
|
6403
6416
|
},
|
|
@@ -6419,18 +6432,18 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6419
6432
|
}
|
|
6420
6433
|
return v.value = !1, !0;
|
|
6421
6434
|
}, T = () => {
|
|
6422
|
-
switch (
|
|
6435
|
+
switch (m.value = !0, w.value = !0, b.value = !0, E.value) {
|
|
6423
6436
|
case 0:
|
|
6424
6437
|
w.value = !1;
|
|
6425
6438
|
break;
|
|
6426
6439
|
case a.steps.length - 1:
|
|
6427
|
-
|
|
6440
|
+
b.value = !1, m.value = !1;
|
|
6428
6441
|
break;
|
|
6429
6442
|
default:
|
|
6430
|
-
|
|
6443
|
+
b.value = !1, w.value = !1;
|
|
6431
6444
|
break;
|
|
6432
6445
|
}
|
|
6433
|
-
}, R =
|
|
6446
|
+
}, R = P(() => a.steps.map((M) => ({
|
|
6434
6447
|
title: M,
|
|
6435
6448
|
disabled: !0
|
|
6436
6449
|
})));
|
|
@@ -6454,7 +6467,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6454
6467
|
"close-on-click-modal": !0,
|
|
6455
6468
|
onClosed: f
|
|
6456
6469
|
}, {
|
|
6457
|
-
default: V(() => [Sn((_(),
|
|
6470
|
+
default: V(() => [Sn((_(), O("div", {
|
|
6458
6471
|
class: De(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
6459
6472
|
"element-loading-text": r.value
|
|
6460
6473
|
}, [
|
|
@@ -6467,12 +6480,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6467
6480
|
top: "-200px"
|
|
6468
6481
|
} }),
|
|
6469
6482
|
$("div", xp, [Ke(M.$slots, "default")]),
|
|
6470
|
-
e.hasBtns ? (_(),
|
|
6483
|
+
e.hasBtns ? (_(), O("div", _p, [Y(A, { size: 8 }, {
|
|
6471
6484
|
default: V(() => [
|
|
6472
6485
|
e.isStep ? (_(), H(N, {
|
|
6473
6486
|
key: 0,
|
|
6474
6487
|
size: "mini",
|
|
6475
|
-
disabled:
|
|
6488
|
+
disabled: b.value,
|
|
6476
6489
|
label: G(o)("上一步"),
|
|
6477
6490
|
onClick: y
|
|
6478
6491
|
}, null, 8, ["disabled", "label"])) : K("", !0),
|
|
@@ -6494,7 +6507,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6494
6507
|
label: G(o)("取消"),
|
|
6495
6508
|
onClick: p
|
|
6496
6509
|
}, null, 8, ["label"])) : K("", !0),
|
|
6497
|
-
(_(!0),
|
|
6510
|
+
(_(!0), O(ge, null, ke(e.buttons, (me) => (_(), H(N, ze({ key: me.id }, { ref_for: !0 }, me.config, {
|
|
6498
6511
|
label: me.label,
|
|
6499
6512
|
onClick: (Te) => g(me)
|
|
6500
6513
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
@@ -6502,7 +6515,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6502
6515
|
key: 3,
|
|
6503
6516
|
size: "mini",
|
|
6504
6517
|
type: "primary",
|
|
6505
|
-
disabled:
|
|
6518
|
+
disabled: m.value && e.isStep,
|
|
6506
6519
|
label: G(o)(e.btnText),
|
|
6507
6520
|
onClick: h
|
|
6508
6521
|
}, null, 8, ["disabled", "label"])) : K("", !0)
|
|
@@ -6510,12 +6523,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6510
6523
|
_: 1
|
|
6511
6524
|
})])) : K("", !0)
|
|
6512
6525
|
], 4),
|
|
6513
|
-
$("div", Cp, [$("div", Sp, [$("span", null, ve(G(o)(e.title)), 1), $("span", kp, [e.subtitle ? (_(), H(ja(e.subtitle()), { key: 0 })) : K("", !0)])]), e.showCloseBtn ? (_(),
|
|
6526
|
+
$("div", Cp, [$("div", Sp, [$("span", null, ve(G(o)(e.title)), 1), $("span", kp, [e.subtitle ? (_(), H(ja(e.subtitle()), { key: 0 })) : K("", !0)])]), e.showCloseBtn ? (_(), O("div", Ep, [Y(N, {
|
|
6514
6527
|
type: "text",
|
|
6515
6528
|
icon: "mdi:close",
|
|
6516
6529
|
onClick: p
|
|
6517
6530
|
})])) : K("", !0)]),
|
|
6518
|
-
e.isStep ? (_(),
|
|
6531
|
+
e.isStep ? (_(), O("div", Rp, [$("div", { style: Re({
|
|
6519
6532
|
maxWidth: `${200 * R.value.length}px`,
|
|
6520
6533
|
width: "100%"
|
|
6521
6534
|
}) }, [Y(F, {
|
|
@@ -6524,7 +6537,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6524
6537
|
space: 160,
|
|
6525
6538
|
"finish-status": "success"
|
|
6526
6539
|
}, {
|
|
6527
|
-
default: V(() => [(_(!0),
|
|
6540
|
+
default: V(() => [(_(!0), O(ge, null, ke(R.value, (me, Te) => (_(), H(C, {
|
|
6528
6541
|
key: Te,
|
|
6529
6542
|
title: G(o)(me.title)
|
|
6530
6543
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -6601,18 +6614,18 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6601
6614
|
"cancel"
|
|
6602
6615
|
],
|
|
6603
6616
|
setup(e, { expose: t, emit: n }) {
|
|
6604
|
-
const a = n, o = j(!1), i = j(""), l = j(), r = j(0), s = j(""), c = j(), u = (
|
|
6605
|
-
i.value =
|
|
6617
|
+
const a = n, o = j(!1), i = j(""), l = j(), r = j(0), s = j(""), c = j(), u = (b, w, m) => {
|
|
6618
|
+
i.value = b, c.value = m, s.value = w || "modal", o.value = !0;
|
|
6606
6619
|
}, d = () => {
|
|
6607
6620
|
o.value = !1;
|
|
6608
|
-
}, f = (
|
|
6609
|
-
a("ok",
|
|
6621
|
+
}, f = (b, w) => {
|
|
6622
|
+
a("ok", b, w);
|
|
6610
6623
|
}, h = () => {
|
|
6611
6624
|
r.value = 0, a("closed");
|
|
6612
6625
|
}, p = () => {
|
|
6613
6626
|
a("cancel");
|
|
6614
|
-
}, g = (
|
|
6615
|
-
l.value && l.value.showLoading(
|
|
6627
|
+
}, g = (b) => {
|
|
6628
|
+
l.value && l.value.showLoading(b);
|
|
6616
6629
|
}, v = () => {
|
|
6617
6630
|
l.value && l.value.hideLoading();
|
|
6618
6631
|
};
|
|
@@ -6621,9 +6634,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6621
6634
|
close: d,
|
|
6622
6635
|
showLoading: g,
|
|
6623
6636
|
hideLoading: v
|
|
6624
|
-
}), (
|
|
6625
|
-
const
|
|
6626
|
-
return s.value === "full" ? (_(), H(
|
|
6637
|
+
}), (b, w) => {
|
|
6638
|
+
const m = B("j-dialog-full"), x = B("j-drawer"), E = B("j-dialog");
|
|
6639
|
+
return s.value === "full" ? (_(), H(m, {
|
|
6627
6640
|
key: 0,
|
|
6628
6641
|
ref_key: "modalRef",
|
|
6629
6642
|
ref: l,
|
|
@@ -6647,7 +6660,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6647
6660
|
onClosed: h,
|
|
6648
6661
|
onCancel: p
|
|
6649
6662
|
}, {
|
|
6650
|
-
default: V(() => [Ke(
|
|
6663
|
+
default: V(() => [Ke(b.$slots, "default")]),
|
|
6651
6664
|
_: 3
|
|
6652
6665
|
}, 8, [
|
|
6653
6666
|
"visible",
|
|
@@ -6686,7 +6699,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6686
6699
|
onClosed: h,
|
|
6687
6700
|
onCancel: p
|
|
6688
6701
|
}, {
|
|
6689
|
-
default: V(() => [Ke(
|
|
6702
|
+
default: V(() => [Ke(b.$slots, "default")]),
|
|
6690
6703
|
_: 3
|
|
6691
6704
|
}, 8, [
|
|
6692
6705
|
"visible",
|
|
@@ -6726,7 +6739,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6726
6739
|
onClosed: h,
|
|
6727
6740
|
onCancel: p
|
|
6728
6741
|
}, {
|
|
6729
|
-
default: V(() => [Ke(
|
|
6742
|
+
default: V(() => [Ke(b.$slots, "default")]),
|
|
6730
6743
|
_: 3
|
|
6731
6744
|
}, 8, [
|
|
6732
6745
|
"visible",
|
|
@@ -6772,7 +6785,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6772
6785
|
"search"
|
|
6773
6786
|
],
|
|
6774
6787
|
setup(e, { emit: t }) {
|
|
6775
|
-
const n = e, a = t, o = j(), i =
|
|
6788
|
+
const n = e, a = t, o = j(), i = P(() => mn(n.modelValue) ? [] : n.modelValue?.split(",") || []), l = P(() => n.isStyleLoop ? i.value?.map((d, f) => {
|
|
6776
6789
|
let h = n.colors[f % n.colors.length] || {};
|
|
6777
6790
|
return h = {
|
|
6778
6791
|
...h,
|
|
@@ -6807,13 +6820,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6807
6820
|
onKeydown: tl(Ot(s, ["stop"]), ["enter"])
|
|
6808
6821
|
}, {
|
|
6809
6822
|
prefix: V(() => [Y(p, null, {
|
|
6810
|
-
default: V(() => [(_(!0),
|
|
6811
|
-
key:
|
|
6823
|
+
default: V(() => [(_(!0), O(ge, null, ke(i.value, (v, b) => (_(), H(h, {
|
|
6824
|
+
key: b,
|
|
6812
6825
|
type: "info",
|
|
6813
6826
|
closable: !e.readonly,
|
|
6814
|
-
style: Re(l.value[
|
|
6827
|
+
style: Re(l.value[b] || {}),
|
|
6815
6828
|
size: e.size,
|
|
6816
|
-
onClose: Ot((w) => u(
|
|
6829
|
+
onClose: Ot((w) => u(b), ["prevent"])
|
|
6817
6830
|
}, {
|
|
6818
6831
|
default: V(() => [nn(ve(v), 1)]),
|
|
6819
6832
|
_: 2
|
|
@@ -6868,14 +6881,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6868
6881
|
},
|
|
6869
6882
|
emits: ["update:modelValue", "change"],
|
|
6870
6883
|
setup(e, { emit: t }) {
|
|
6871
|
-
const n = e, a = t, o =
|
|
6884
|
+
const n = e, a = t, o = P({
|
|
6872
6885
|
get() {
|
|
6873
6886
|
return Number(n.modelValue);
|
|
6874
6887
|
},
|
|
6875
6888
|
set(s) {
|
|
6876
6889
|
a("update:modelValue", s), a("change", { value: s });
|
|
6877
6890
|
}
|
|
6878
|
-
}), i =
|
|
6891
|
+
}), i = P(() => n.texts?.map((s) => s.value) || []), l = j(0), r = (s) => {
|
|
6879
6892
|
l.value = s;
|
|
6880
6893
|
};
|
|
6881
6894
|
return (s, c) => {
|
|
@@ -6962,7 +6975,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
6962
6975
|
},
|
|
6963
6976
|
emits: ["update:modelValue", "change"],
|
|
6964
6977
|
setup(e, { emit: t }) {
|
|
6965
|
-
const n = e, a = t, o =
|
|
6978
|
+
const n = e, a = t, o = P({
|
|
6966
6979
|
get() {
|
|
6967
6980
|
return Number(n.modelValue);
|
|
6968
6981
|
},
|
|
@@ -7074,17 +7087,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7074
7087
|
}
|
|
7075
7088
|
},
|
|
7076
7089
|
setup(e) {
|
|
7077
|
-
const { t } =
|
|
7090
|
+
const { t } = jt();
|
|
7078
7091
|
return (n, a) => {
|
|
7079
7092
|
const o = B("j-icon"), i = B("el-text"), l = B("j-button"), r = B("el-progress"), s = B("el-link");
|
|
7080
|
-
return _(),
|
|
7093
|
+
return _(), O("div", { class: De(["j-upload-list", {
|
|
7081
7094
|
"j-upload-image-list": e.isUploadImg,
|
|
7082
7095
|
"j-upload-drag-list": e.drag
|
|
7083
|
-
}]) }, [e.drag ? (_(),
|
|
7096
|
+
}]) }, [e.drag ? (_(), O(ge, { key: 0 }, [e.showFileList ? (_(!0), O(ge, { key: 0 }, ke(e.list, (c) => (_(), O("div", {
|
|
7084
7097
|
key: c.id,
|
|
7085
7098
|
class: "j-upload-dragItem"
|
|
7086
7099
|
}, [
|
|
7087
|
-
e.isUploadImg ? (_(),
|
|
7100
|
+
e.isUploadImg ? (_(), O("div", Np, [$("img", {
|
|
7088
7101
|
src: c.url,
|
|
7089
7102
|
style: { width: "100%" },
|
|
7090
7103
|
alt: ""
|
|
@@ -7128,11 +7141,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7128
7141
|
percent: c.percent,
|
|
7129
7142
|
"show-text": !1
|
|
7130
7143
|
}, null, 8, ["percent"])) : K("", !0)
|
|
7131
|
-
]))), 128)) : K("", !0), Ke(n.$slots, "default")], 64)) : e.isUploadImg ? (_(!0),
|
|
7144
|
+
]))), 128)) : K("", !0), Ke(n.$slots, "default")], 64)) : e.isUploadImg ? (_(!0), O(ge, { key: 1 }, ke(e.list, (c) => (_(), O("div", {
|
|
7132
7145
|
key: c.id,
|
|
7133
7146
|
class: "j-upload-imgItem"
|
|
7134
7147
|
}, [
|
|
7135
|
-
c.status === "done" || c.status === "unUpload" ? (_(),
|
|
7148
|
+
c.status === "done" || c.status === "unUpload" ? (_(), O("img", {
|
|
7136
7149
|
key: 0,
|
|
7137
7150
|
src: c.url,
|
|
7138
7151
|
style: { width: "100%" },
|
|
@@ -7156,7 +7169,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7156
7169
|
percent: c.percent,
|
|
7157
7170
|
"show-text": !1
|
|
7158
7171
|
}, null, 8, ["percent"])) : K("", !0)
|
|
7159
|
-
]))), 128)) : (_(!0),
|
|
7172
|
+
]))), 128)) : (_(!0), O(ge, { key: 2 }, ke(e.list, (c) => (_(), O("div", {
|
|
7160
7173
|
key: c.id,
|
|
7161
7174
|
class: "j-upload-item"
|
|
7162
7175
|
}, [
|
|
@@ -7330,14 +7343,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7330
7343
|
"notUploadChange"
|
|
7331
7344
|
],
|
|
7332
7345
|
setup(e, { emit: t }) {
|
|
7333
|
-
const n = e, a = t, { warning: o, error: i, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } =
|
|
7346
|
+
const n = e, a = t, { warning: o, error: i, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } = jt(), { fileChunkedUpload: d, deleteFile: f } = u(), h = P(() => n.isUploadImg ? n.accept || "image/*" : n.accept), p = P(() => {
|
|
7334
7347
|
if (n.limit !== -1)
|
|
7335
7348
|
return n.limit;
|
|
7336
|
-
}), g =
|
|
7349
|
+
}), g = P(() => n.limit === -1 ? "" : `,${r("上传数量")}${n.limit}`), v = j(""), b = P(() => ({
|
|
7337
7350
|
folderId: n.modelValue || v.value,
|
|
7338
7351
|
maxSize: n.maxSize,
|
|
7339
7352
|
sizeType: n.sizeType
|
|
7340
|
-
})), w = j([]),
|
|
7353
|
+
})), w = j([]), m = () => {
|
|
7341
7354
|
w.value = [...w.value];
|
|
7342
7355
|
}, x = (te) => {
|
|
7343
7356
|
if (n.maxSize && n.sizeType) {
|
|
@@ -7388,21 +7401,21 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7388
7401
|
"svg"
|
|
7389
7402
|
].includes(Be) ? "file-image" : E[Be] || "file-ufo";
|
|
7390
7403
|
}, S = (te) => {
|
|
7391
|
-
te.status = n.autoUpload ? "uploading" : "unUpload", te.uploadSize = 0, te.icon = k(te.name, te.type), d || (te.icon = "file-text"), te.id = te.uid, te.url = window.URL.createObjectURL(te), te.date = No(), te.param =
|
|
7404
|
+
te.status = n.autoUpload ? "uploading" : "unUpload", te.uploadSize = 0, te.icon = k(te.name, te.type), d || (te.icon = "file-text"), te.id = te.uid, te.url = window.URL.createObjectURL(te), te.date = No(), te.param = b.value;
|
|
7392
7405
|
}, T = (te) => {
|
|
7393
7406
|
a("start", {
|
|
7394
7407
|
file: te,
|
|
7395
7408
|
list: w.value
|
|
7396
7409
|
});
|
|
7397
7410
|
}, R = (te, Ce, Be) => {
|
|
7398
|
-
te.percent = Be, te.uploadSize = Ce,
|
|
7411
|
+
te.percent = Be, te.uploadSize = Ce, m();
|
|
7399
7412
|
}, M = (te) => {
|
|
7400
|
-
te.status = "done", te.id += "1", te.uid += "1",
|
|
7413
|
+
te.status = "done", te.id += "1", te.uid += "1", m(), a("success", {
|
|
7401
7414
|
file: te,
|
|
7402
7415
|
list: w.value
|
|
7403
7416
|
}), n.modelValue || (a("update:modelValue", v.value), a("change", { value: v.value }));
|
|
7404
7417
|
}, D = (te, Ce) => {
|
|
7405
|
-
console.error(Ce, "简搭提醒您:文件上传错误!"), te.status = "error",
|
|
7418
|
+
console.error(Ce, "简搭提醒您:文件上传错误!"), te.status = "error", m(), a("error", {
|
|
7406
7419
|
file: te,
|
|
7407
7420
|
list: w.value
|
|
7408
7421
|
});
|
|
@@ -7493,7 +7506,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7493
7506
|
};
|
|
7494
7507
|
return (te, Ce) => {
|
|
7495
7508
|
const Be = B("j-icon"), Je = B("j-button"), Lt = B("el-popover"), Dt = B("el-upload"), at = B("el-text"), Wt = B("j-dialog-full"), jn = _i("loading");
|
|
7496
|
-
return _(),
|
|
7509
|
+
return _(), O("div", qp, [
|
|
7497
7510
|
Y(Dt, {
|
|
7498
7511
|
action: "",
|
|
7499
7512
|
drag: e.drag,
|
|
@@ -7511,7 +7524,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7511
7524
|
"on-preview": Ze,
|
|
7512
7525
|
"on-exceed": ct
|
|
7513
7526
|
}, {
|
|
7514
|
-
default: V(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(),
|
|
7527
|
+
default: V(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", Zp, [Y(Be, { icon: "mdi:add" }), $("div", Qp, ve(G(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && w.value.length > 0 && !Ne.value ? (_(), H(Lt, {
|
|
7515
7528
|
key: 1,
|
|
7516
7529
|
placement: "bottom",
|
|
7517
7530
|
title: e.isUploadImg ? G(r)("图片列表") : G(r)("文件列表")
|
|
@@ -7562,7 +7575,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7562
7575
|
"multiple",
|
|
7563
7576
|
"file-list"
|
|
7564
7577
|
]),
|
|
7565
|
-
e.isTip ? (_(),
|
|
7578
|
+
e.isTip ? (_(), O("div", eg, [Y(at, null, {
|
|
7566
7579
|
default: V(() => [nn(ve(`${G(r)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)]),
|
|
7567
7580
|
_: 1
|
|
7568
7581
|
})])) : K("", !0),
|
|
@@ -7588,12 +7601,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7588
7601
|
"has-btns": !!G(s),
|
|
7589
7602
|
onOk: nt
|
|
7590
7603
|
}, {
|
|
7591
|
-
default: V(() => [le.value && Te.value ? (_(),
|
|
7604
|
+
default: V(() => [le.value && Te.value ? (_(), O("div", tg, [$("img", {
|
|
7592
7605
|
width: "100%",
|
|
7593
7606
|
style: { "max-width": "1024px" },
|
|
7594
7607
|
src: Te.value,
|
|
7595
7608
|
alt: ""
|
|
7596
|
-
}, null, 8, ng)])) : Te.value != "" ? Sn((_(),
|
|
7609
|
+
}, null, 8, ng)])) : Te.value != "" ? Sn((_(), O("div", ag, [$("iframe", {
|
|
7597
7610
|
ref: "iframe",
|
|
7598
7611
|
src: Te.value,
|
|
7599
7612
|
style: {
|
|
@@ -7666,7 +7679,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7666
7679
|
clear: () => {
|
|
7667
7680
|
l.value?.clear();
|
|
7668
7681
|
}
|
|
7669
|
-
}), (p, g) => (_(),
|
|
7682
|
+
}), (p, g) => (_(), O("div", {
|
|
7670
7683
|
ref_key: "chartRef",
|
|
7671
7684
|
ref: i,
|
|
7672
7685
|
class: "j-echarts"
|
|
@@ -7838,8 +7851,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7838
7851
|
if (!f) return u;
|
|
7839
7852
|
const h = f[1], p = h.substring(0, 13), g = parseInt(h[13]), v = o(p);
|
|
7840
7853
|
if (g !== v) {
|
|
7841
|
-
const
|
|
7842
|
-
return u.replace(d, `(01)${
|
|
7854
|
+
const b = p + v;
|
|
7855
|
+
return u.replace(d, `(01)${b}`);
|
|
7843
7856
|
}
|
|
7844
7857
|
return u;
|
|
7845
7858
|
}, l = (u) => {
|
|
@@ -7851,35 +7864,35 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7851
7864
|
62: 25
|
|
7852
7865
|
}, f = Object.keys(d);
|
|
7853
7866
|
let h = null;
|
|
7854
|
-
for (const
|
|
7855
|
-
h =
|
|
7867
|
+
for (const b of f) if (u.startsWith(b)) {
|
|
7868
|
+
h = b;
|
|
7856
7869
|
break;
|
|
7857
7870
|
}
|
|
7858
7871
|
let p = u, g = !1;
|
|
7859
7872
|
if (!h) {
|
|
7860
|
-
const
|
|
7861
|
-
if (
|
|
7873
|
+
const b = u.length;
|
|
7874
|
+
if (b <= 8)
|
|
7862
7875
|
p = "11" + u.substring(0, 8), g = !0, h = "11";
|
|
7863
|
-
else if (
|
|
7864
|
-
const w = u.substring(0, 8),
|
|
7865
|
-
p = "59" + w +
|
|
7876
|
+
else if (b <= 16) {
|
|
7877
|
+
const w = u.substring(0, 8), m = u.substring(8, 16);
|
|
7878
|
+
p = "59" + w + m, g = !0, h = "59";
|
|
7866
7879
|
} else {
|
|
7867
|
-
const w = u.substring(0, 23),
|
|
7868
|
-
p = "62" +
|
|
7880
|
+
const w = u.substring(0, 23), m = w.substring(0, 8), x = w.substring(8, 23);
|
|
7881
|
+
p = "62" + m + x, p.length !== 25 && (p = p.substring(0, 25)), g = !0, h = "62";
|
|
7869
7882
|
}
|
|
7870
7883
|
}
|
|
7871
7884
|
if (h && !g) {
|
|
7872
|
-
const
|
|
7873
|
-
p.length >
|
|
7885
|
+
const b = d[h];
|
|
7886
|
+
p.length > b && (p = p.substring(0, b));
|
|
7874
7887
|
}
|
|
7875
7888
|
let v = null;
|
|
7876
|
-
for (const
|
|
7877
|
-
v =
|
|
7889
|
+
for (const b of f) if (p.startsWith(b)) {
|
|
7890
|
+
v = b;
|
|
7878
7891
|
break;
|
|
7879
7892
|
}
|
|
7880
7893
|
if (v) {
|
|
7881
|
-
const
|
|
7882
|
-
p.length >
|
|
7894
|
+
const b = d[v];
|
|
7895
|
+
p.length > b && (p = p.substring(0, b));
|
|
7883
7896
|
} else console.error("AUSPOST: 无法检测到有效的FCC,结果:", p);
|
|
7884
7897
|
return /^\d+$/.test(p) ? (p.length > 25 && (console.error("AUSPOST: 返回值长度超过25位:", p.length, p), p = p.substring(0, 25)), p) : (console.error("AUSPOST: 返回值不是纯数字:", p), u);
|
|
7885
7898
|
}, r = (u) => {
|
|
@@ -7980,11 +7993,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7980
7993
|
let d = u.message || "条码数据或参数错误";
|
|
7981
7994
|
u.message && u.message.includes("Bad checksum") && t.bcid === "gs1-128" ? d = `GS1-128 校验位错误: ${u.message}。请确保 AI 01 的14位数字包含正确的校验位。` : u.message && u.message.includes("GS1badChecksum") ? d = `GS1 校验位错误: ${u.message}。请检查应用标识符 (AI) 的数据格式和校验位是否正确。` : u.message && u.message.includes("auspostBadFCC") && t.bcid === "auspost" ? d = `AUSPOST FCC 错误: ${u.message}。AUSPOST 条码必须以有效的 FCC (Format Control Code) 开头:11, 45, 59 或 62。如果值未以有效的 FCC 开头,系统会自动添加合适的 FCC。` : u.message && u.message.includes("auspostTooLong") && t.bcid === "auspost" ? d = `AUSPOST 长度错误: ${u.message}。AUSPOST 条码长度限制:FCC 11 (10位), FCC 59 (18位), FCC 62 (25位,最大容量)。如果值超过限制,系统会自动截断并使用合适的 FCC。` : u.message && u.message.includes("pznBadCheckDigit") && t.bcid === "pzn" && (d = `PZN 校验位错误: ${u.message}。PZN (德国医药产品编号) 必须是7位或8位数字,包含正确的校验位。如果校验位不正确,系统会自动修复。`), a.value = d, n.value = "";
|
|
7982
7995
|
}
|
|
7983
|
-
}), (u, d) => (_(),
|
|
7996
|
+
}), (u, d) => (_(), O(ge, null, [n.value ? (_(), O("div", {
|
|
7984
7997
|
key: 0,
|
|
7985
7998
|
class: "j-barcode",
|
|
7986
7999
|
innerHTML: n.value
|
|
7987
|
-
}, null, 8, dg)) : K("", !0), a.value ? (_(),
|
|
8000
|
+
}, null, 8, dg)) : K("", !0), a.value ? (_(), O("div", fg, ve(a.value), 1)) : K("", !0)], 64));
|
|
7988
8001
|
}
|
|
7989
8002
|
}), pg = hg, gg = he(pg), vg = /* @__PURE__ */ se({
|
|
7990
8003
|
name: "JCount",
|
|
@@ -8078,7 +8091,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8078
8091
|
let T = k;
|
|
8079
8092
|
for (let R = 1; R < y.length; R++) T *= y[R][S] || 0;
|
|
8080
8093
|
return T;
|
|
8081
|
-
}).reduce((k, S) => k + S, 0),
|
|
8094
|
+
}).reduce((k, S) => k + S, 0), b = t, { getValue: w } = ha(), m = (y) => {
|
|
8082
8095
|
const k = w({ id: y });
|
|
8083
8096
|
if (ll(k)) {
|
|
8084
8097
|
const T = [];
|
|
@@ -8089,7 +8102,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8089
8102
|
}
|
|
8090
8103
|
const S = Number(k);
|
|
8091
8104
|
return Number.isNaN(S) ? 0 : S;
|
|
8092
|
-
}, x =
|
|
8105
|
+
}, x = P(() => {
|
|
8093
8106
|
if (!w) return "";
|
|
8094
8107
|
const y = JSON.parse(n.formatJson || "[]");
|
|
8095
8108
|
let k = "";
|
|
@@ -8139,19 +8152,19 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8139
8152
|
let S;
|
|
8140
8153
|
const T = ac(k);
|
|
8141
8154
|
if (T.res) try {
|
|
8142
|
-
S = T.fn(a, o, i, l, r, s, c, u, d, f, h, p, g, v,
|
|
8155
|
+
S = T.fn(a, o, i, l, r, s, c, u, d, f, h, p, g, v, m);
|
|
8143
8156
|
} catch (R) {
|
|
8144
8157
|
console.log(R, "计算组件公式运行错误");
|
|
8145
8158
|
}
|
|
8146
8159
|
else
|
|
8147
8160
|
return console.log(T.msg), "";
|
|
8148
8161
|
return Number.isNaN(S) ? "" : (n.decimal !== void 0 && (S = S.toFixed(n.decimal)), S);
|
|
8149
|
-
}), E =
|
|
8162
|
+
}), E = P(() => {
|
|
8150
8163
|
let y = x.value;
|
|
8151
8164
|
return n.thousandSeparator && (y = ff(y)), n.isChinese && (y = df(y)), y;
|
|
8152
8165
|
});
|
|
8153
8166
|
return it(x, (y) => {
|
|
8154
|
-
|
|
8167
|
+
b("update:modelValue", y), b("change", {
|
|
8155
8168
|
value: y,
|
|
8156
8169
|
data: E.value
|
|
8157
8170
|
});
|
|
@@ -8207,7 +8220,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8207
8220
|
},
|
|
8208
8221
|
emits: ["update:modelValue", "change"],
|
|
8209
8222
|
setup(e, { emit: t }) {
|
|
8210
|
-
const { t: n } =
|
|
8223
|
+
const { t: n } = jt(), a = e, o = t, i = [
|
|
8211
8224
|
{
|
|
8212
8225
|
label: 1,
|
|
8213
8226
|
value: 1
|
|
@@ -8505,7 +8518,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8505
8518
|
], r = j(!1), s = j([]), c = da({
|
|
8506
8519
|
cells: [],
|
|
8507
8520
|
cursor: 0
|
|
8508
|
-
}), u =
|
|
8521
|
+
}), u = P({
|
|
8509
8522
|
get() {
|
|
8510
8523
|
return JSON.parse(a.modelValue || "[]");
|
|
8511
8524
|
},
|
|
@@ -8540,13 +8553,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8540
8553
|
c.cursor > 0 && (c.cells.splice(c.cursor - 1, 1), c.cursor -= 1);
|
|
8541
8554
|
}, v = () => {
|
|
8542
8555
|
c.cells = [], c.cursor = 0;
|
|
8543
|
-
},
|
|
8556
|
+
}, b = () => {
|
|
8544
8557
|
c.cells = dn(u.value), c.cursor = c.cells.length, r.value = !0;
|
|
8545
8558
|
}, w = () => {
|
|
8546
8559
|
u.value = c.cells, r.value = !1;
|
|
8547
|
-
},
|
|
8560
|
+
}, m = () => {
|
|
8548
8561
|
c.cells = [], c.cursor = 0, r.value = !1;
|
|
8549
|
-
}, x =
|
|
8562
|
+
}, x = P(() => {
|
|
8550
8563
|
const y = {};
|
|
8551
8564
|
return a.list.forEach((k) => {
|
|
8552
8565
|
k.children.forEach((S) => {
|
|
@@ -8556,11 +8569,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8556
8569
|
}), E = (y) => x.value[y] || y;
|
|
8557
8570
|
return (y, k) => {
|
|
8558
8571
|
const S = B("j-button"), T = B("j-icon"), R = B("el-space"), M = B("j-dialog");
|
|
8559
|
-
return _(),
|
|
8572
|
+
return _(), O("div", null, [Y(S, ze(y.$attrs, {
|
|
8560
8573
|
type: e.type,
|
|
8561
8574
|
size: e.size,
|
|
8562
8575
|
label: e.label,
|
|
8563
|
-
onClick:
|
|
8576
|
+
onClick: b
|
|
8564
8577
|
}), null, 16, [
|
|
8565
8578
|
"type",
|
|
8566
8579
|
"size",
|
|
@@ -8571,7 +8584,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8571
8584
|
height: 800,
|
|
8572
8585
|
width: 1200,
|
|
8573
8586
|
onOk: w,
|
|
8574
|
-
onClosed:
|
|
8587
|
+
onClosed: m
|
|
8575
8588
|
}, {
|
|
8576
8589
|
default: V(() => [$("div", bg, [
|
|
8577
8590
|
$("div", wg, [$("div", xg, [$("span", _g, ve(G(n)("计算公式")) + "=", 1), Y(R, null, {
|
|
@@ -8603,27 +8616,27 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8603
8616
|
})
|
|
8604
8617
|
]),
|
|
8605
8618
|
_: 1
|
|
8606
|
-
})]), $("div", Cg, [c.cells.length == 0 ? (_(),
|
|
8619
|
+
})]), $("div", Cg, [c.cells.length == 0 ? (_(), O("span", Sg)) : K("", !0), (_(!0), O(ge, null, ke(c.cells, (D, L) => (_(), O(ge, { key: L }, [D.type == "fun" ? (_(), O("span", kg, ve(D.value.toUpperCase()), 1)) : D.type == "comp" ? (_(), O("span", Eg, " #" + ve(E(D.value)) + "# ", 1)) : D.type == "num" ? (_(), O("span", Rg, ve(D.value), 1)) : K("", !0), L + 1 == c.cursor ? (_(), O("span", Tg)) : K("", !0)], 64))), 128))])]),
|
|
8607
8620
|
Y(R, { class: "j-input-count-mid" }, {
|
|
8608
|
-
default: V(() => [(_(),
|
|
8621
|
+
default: V(() => [(_(), O(ge, null, ke(i, (D, L) => Y(S, {
|
|
8609
8622
|
key: L,
|
|
8610
8623
|
label: D.label + "",
|
|
8611
8624
|
onClick: (N) => f(D.value, "num")
|
|
8612
8625
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
8613
8626
|
_: 1
|
|
8614
8627
|
}),
|
|
8615
|
-
$("div", Mg, [$("div", Ag, [(_(!0),
|
|
8628
|
+
$("div", Mg, [$("div", Ag, [(_(!0), O(ge, null, ke(e.list, (D, L) => (_(), O(ge, { key: L }, [$("div", jg, ve(G(n)(D.label)), 1), Y(R, {
|
|
8616
8629
|
size: [8, 8],
|
|
8617
8630
|
wrap: "",
|
|
8618
8631
|
style: { "margin-bottom": "16px" }
|
|
8619
8632
|
}, {
|
|
8620
|
-
default: V(() => [(_(!0),
|
|
8633
|
+
default: V(() => [(_(!0), O(ge, null, ke(D.children, (N) => (_(), H(S, {
|
|
8621
8634
|
key: N.value,
|
|
8622
8635
|
onClick: (A) => f(N.value, "comp"),
|
|
8623
8636
|
label: G(n)(N.label)
|
|
8624
8637
|
}, null, 8, ["onClick", "label"]))), 128))]),
|
|
8625
8638
|
_: 2
|
|
8626
|
-
}, 1024)], 64))), 128))]), $("div", Pg, [$("div", Og, [$("span", Hg, ve(G(n)("函数列表")), 1), $("div", Ig, [(_(),
|
|
8639
|
+
}, 1024)], 64))), 128))]), $("div", Pg, [$("div", Og, [$("span", Hg, ve(G(n)("函数列表")), 1), $("div", Ig, [(_(), O(ge, null, ke(l, (D, L) => Y(S, {
|
|
8627
8640
|
type: "text",
|
|
8628
8641
|
style: {
|
|
8629
8642
|
"border-radius": "0",
|
|
@@ -8637,7 +8650,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8637
8650
|
"onMouseover",
|
|
8638
8651
|
"onClick",
|
|
8639
8652
|
"label"
|
|
8640
|
-
])), 64))])]), $("div", Bg, [$("div", null, [$("ul", null, [(_(!0),
|
|
8653
|
+
])), 64))])]), $("div", Bg, [$("div", null, [$("ul", null, [(_(!0), O(ge, null, ke(s.value, (D, L) => (_(), O("li", {
|
|
8641
8654
|
key: L,
|
|
8642
8655
|
style: { "margin-bottom": "8px" }
|
|
8643
8656
|
}, [$("span", Lg, ve(G(n)(D)), 1)]))), 128))])])])])])
|
|
@@ -8665,7 +8678,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8665
8678
|
}
|
|
8666
8679
|
},
|
|
8667
8680
|
setup(e, { expose: t }) {
|
|
8668
|
-
const n = e, a =
|
|
8681
|
+
const n = e, a = P(() => ({ ...n })), o = j(), i = j(null), l = P(() => n.options);
|
|
8669
8682
|
kt(() => {
|
|
8670
8683
|
n.animation && r();
|
|
8671
8684
|
}), it(() => n.decimals, () => {
|
|
@@ -8700,10 +8713,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8700
8713
|
update: (f) => {
|
|
8701
8714
|
i.value && i.value.update && i.value.update(f);
|
|
8702
8715
|
}
|
|
8703
|
-
}), (f, h) => (_(),
|
|
8716
|
+
}), (f, h) => (_(), O("span", {
|
|
8704
8717
|
ref_key: "el",
|
|
8705
8718
|
ref: o
|
|
8706
|
-
}, [e.animation ? K("", !0) : (_(),
|
|
8719
|
+
}, [e.animation ? K("", !0) : (_(), O("span", Fg, ve(e.endValue), 1))], 512));
|
|
8707
8720
|
}
|
|
8708
8721
|
}), Ng = Vg, Wg = he(Ng), Ug = { class: "j-block j-data-panel" }, Yg = {
|
|
8709
8722
|
key: 0,
|
|
@@ -8717,7 +8730,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8717
8730
|
__name: "data-panel",
|
|
8718
8731
|
props: { title: { default: void 0 } },
|
|
8719
8732
|
setup(e) {
|
|
8720
|
-
return (t, n) => (_(),
|
|
8733
|
+
return (t, n) => (_(), O("div", Ug, [e.title ? (_(), O("div", Yg, [$("div", Kg, ve(e.title), 1), $("div", Gg, [Ke(t.$slots, "titleRight")])])) : K("", !0), $("div", Jg, [Ke(t.$slots, "default")])]));
|
|
8721
8734
|
}
|
|
8722
8735
|
}), qg = Xg, Zg = he(qg), Qg = { class: "j-divider-content" }, ev = /* @__PURE__ */ se({
|
|
8723
8736
|
name: "JDivider",
|
|
@@ -8730,11 +8743,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8730
8743
|
contentPosition: { default: "center" }
|
|
8731
8744
|
},
|
|
8732
8745
|
setup(e) {
|
|
8733
|
-
const t = e, n =
|
|
8746
|
+
const t = e, n = P(() => {
|
|
8734
8747
|
const o = { color: t.color };
|
|
8735
8748
|
return t.size && Number(t.size) && (o.fontSize = `${t.size}px`), o;
|
|
8736
|
-
}), a =
|
|
8737
|
-
return (o, i) => (_(),
|
|
8749
|
+
}), a = P(() => ({ borderTopStyle: t.borderStyle }));
|
|
8750
|
+
return (o, i) => (_(), O("div", {
|
|
8738
8751
|
class: De(`j-divider-container j-divider-${e.contentPosition}`),
|
|
8739
8752
|
style: Re(n.value)
|
|
8740
8753
|
}, [
|
|
@@ -8753,7 +8766,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8753
8766
|
name: "JHpanel",
|
|
8754
8767
|
__name: "hpanel",
|
|
8755
8768
|
setup(e) {
|
|
8756
|
-
return (t, n) => (_(),
|
|
8769
|
+
return (t, n) => (_(), O("div", av, [
|
|
8757
8770
|
Ke(t.$slots, "left"),
|
|
8758
8771
|
$("div", ov, [Ke(t.$slots, "default")]),
|
|
8759
8772
|
Ke(t.$slots, "right")
|
|
@@ -8795,7 +8808,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8795
8808
|
i.value = u;
|
|
8796
8809
|
}, { immediate: !0 }), (u, d) => {
|
|
8797
8810
|
const f = B("j-button"), h = B("j-layer");
|
|
8798
|
-
return _(),
|
|
8811
|
+
return _(), O(ge, null, [Y(f, ze({ style: { width: "auto" } }, u.$attrs, {
|
|
8799
8812
|
type: e.type,
|
|
8800
8813
|
label: e.btnText,
|
|
8801
8814
|
size: e.size,
|
|
@@ -8846,7 +8859,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8846
8859
|
},
|
|
8847
8860
|
emits: ["update:modelValue", "change"],
|
|
8848
8861
|
setup(e, { emit: t }) {
|
|
8849
|
-
const n = e, a = t, o =
|
|
8862
|
+
const n = e, a = t, o = P({
|
|
8850
8863
|
get: () => n.modelValue,
|
|
8851
8864
|
set: (d) => {
|
|
8852
8865
|
a("update:modelValue", d);
|
|
@@ -8855,7 +8868,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8855
8868
|
i.value = d;
|
|
8856
8869
|
}, r = () => i.value, s = (d) => n.beforeClose ? n.beforeClose(d) : !0, c = (d) => {
|
|
8857
8870
|
a("change", d);
|
|
8858
|
-
}, u =
|
|
8871
|
+
}, u = P(() => n.modelValue && n.modelValue.trim() ? `${n.btnText}(已设置)` : n.btnText);
|
|
8859
8872
|
return (d, f) => {
|
|
8860
8873
|
const h = B("j-code-mirror"), p = B("j-layout"), g = B("j-input-button");
|
|
8861
8874
|
return _(), H(g, {
|
|
@@ -8975,7 +8988,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
8975
8988
|
"active-change"
|
|
8976
8989
|
],
|
|
8977
8990
|
setup(e, { expose: t, emit: n }) {
|
|
8978
|
-
const a = e, o = n, i = j(), l = j(), r =
|
|
8991
|
+
const a = e, o = n, i = j(), l = j(), r = P({
|
|
8979
8992
|
get() {
|
|
8980
8993
|
return a.modelValue === null || a.modelValue === void 0 ? l.value : a.modelValue;
|
|
8981
8994
|
},
|
|
@@ -9008,8 +9021,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9008
9021
|
i.value?.select();
|
|
9009
9022
|
}
|
|
9010
9023
|
}), (g, v) => {
|
|
9011
|
-
const
|
|
9012
|
-
return _(),
|
|
9024
|
+
const b = B("el-color-picker"), w = B("el-input");
|
|
9025
|
+
return _(), O("div", { class: De([
|
|
9013
9026
|
"j-input-color",
|
|
9014
9027
|
{ "j-input-color-only-button": e.onlyButton },
|
|
9015
9028
|
{ "j-input-color-disabled": e.disabled },
|
|
@@ -9018,7 +9031,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9018
9031
|
ref_key: "inputRef",
|
|
9019
9032
|
ref: i,
|
|
9020
9033
|
modelValue: r.value,
|
|
9021
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
9034
|
+
"onUpdate:modelValue": v[1] || (v[1] = (m) => r.value = m),
|
|
9022
9035
|
placeholder: e.placeholder,
|
|
9023
9036
|
size: e.size,
|
|
9024
9037
|
readonly: e.readonly || e.onlyButton,
|
|
@@ -9036,9 +9049,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9036
9049
|
onClear: d,
|
|
9037
9050
|
onChange: f
|
|
9038
9051
|
}), {
|
|
9039
|
-
[e.inputType]: V(() => [Y(
|
|
9052
|
+
[e.inputType]: V(() => [Y(b, {
|
|
9040
9053
|
modelValue: r.value,
|
|
9041
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
9054
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => r.value = m),
|
|
9042
9055
|
size: e.size,
|
|
9043
9056
|
disabled: e.disabled || e.readonly,
|
|
9044
9057
|
"show-alpha": e.showAlpha,
|
|
@@ -9082,11 +9095,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9082
9095
|
weight: { default: "normal" }
|
|
9083
9096
|
},
|
|
9084
9097
|
setup(e) {
|
|
9085
|
-
const t = e, n =
|
|
9098
|
+
const t = e, n = P(() => t.class || ""), a = P(() => {
|
|
9086
9099
|
const o = { ...t.style };
|
|
9087
9100
|
return t.color && (o.color = t.color), t.size && (typeof t.size == "number" ? o.fontSize = `${t.size}px` : o.fontSize = t.size), t.weight && (o.fontWeight = t.weight), o;
|
|
9088
9101
|
});
|
|
9089
|
-
return (o, i) => (_(),
|
|
9102
|
+
return (o, i) => (_(), O("div", {
|
|
9090
9103
|
class: De(["j-title", n.value]),
|
|
9091
9104
|
style: Re(a.value)
|
|
9092
9105
|
}, ve(e.title), 7));
|
|
@@ -9197,22 +9210,22 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9197
9210
|
Nd($d)
|
|
9198
9211
|
];
|
|
9199
9212
|
return g.push(s(a.mode)), a.readonly && g.push(Ni.readOnly.of(!0)), a.isHint && a.handleHint && g.push(Pd({ override: [(v) => {
|
|
9200
|
-
const
|
|
9201
|
-
if (!
|
|
9202
|
-
const w = a.handleHint(
|
|
9213
|
+
const b = v.matchBefore(/\w*/);
|
|
9214
|
+
if (!b || b.from === b.to) return null;
|
|
9215
|
+
const w = a.handleHint(b.text);
|
|
9203
9216
|
return w.length === 0 ? null : {
|
|
9204
|
-
from:
|
|
9205
|
-
options: w.map((
|
|
9206
|
-
label: typeof
|
|
9207
|
-
detail: typeof
|
|
9208
|
-
type: typeof
|
|
9209
|
-
apply: typeof
|
|
9217
|
+
from: b.from,
|
|
9218
|
+
options: w.map((m) => ({
|
|
9219
|
+
label: typeof m == "string" ? m : m.label || m.name || "",
|
|
9220
|
+
detail: typeof m == "string" ? "" : m.detail || "",
|
|
9221
|
+
type: typeof m == "string" ? "variable" : m.type || "variable",
|
|
9222
|
+
apply: typeof m == "string" ? m : m.apply || m.name || m.label || ""
|
|
9210
9223
|
}))
|
|
9211
9224
|
};
|
|
9212
9225
|
}] })), g.push(Vi.updateListener.of((v) => {
|
|
9213
9226
|
if (v.docChanged) {
|
|
9214
|
-
const
|
|
9215
|
-
l.value =
|
|
9227
|
+
const b = v.state.doc.toString();
|
|
9228
|
+
l.value = b, o("update:value", b), o("change", { value: b });
|
|
9216
9229
|
}
|
|
9217
9230
|
})), g;
|
|
9218
9231
|
}, u = async () => {
|
|
@@ -9235,10 +9248,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9235
9248
|
state: v,
|
|
9236
9249
|
parent: i.value
|
|
9237
9250
|
}));
|
|
9238
|
-
const
|
|
9239
|
-
|
|
9251
|
+
const b = r.state.doc.toString();
|
|
9252
|
+
b !== a.value && r.dispatch({ changes: {
|
|
9240
9253
|
from: 0,
|
|
9241
|
-
to:
|
|
9254
|
+
to: b.length,
|
|
9242
9255
|
insert: a.value
|
|
9243
9256
|
} });
|
|
9244
9257
|
}, f = () => {
|
|
@@ -9279,7 +9292,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9279
9292
|
}), p.observe(i.value));
|
|
9280
9293
|
}), yo(() => {
|
|
9281
9294
|
p && i.value && (p.unobserve(i.value), p.disconnect(), p = null), r && (r.destroy(), r = null);
|
|
9282
|
-
}), t({ sqlFormatter: h }), (g, v) => (_(),
|
|
9295
|
+
}), t({ sqlFormatter: h }), (g, v) => (_(), O("div", {
|
|
9283
9296
|
ref_key: "codeWraperRef",
|
|
9284
9297
|
ref: i,
|
|
9285
9298
|
class: "j-code-mirror",
|
|
@@ -9294,7 +9307,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9294
9307
|
toLeft: { type: Boolean }
|
|
9295
9308
|
},
|
|
9296
9309
|
setup(e, { expose: t }) {
|
|
9297
|
-
const n = e, a = ca("actionRef"), o = j("0"), i =
|
|
9310
|
+
const n = e, a = ca("actionRef"), o = j("0"), i = P(() => {
|
|
9298
9311
|
const { actionStyle: r, toLeft: s } = n;
|
|
9299
9312
|
return {
|
|
9300
9313
|
...r,
|
|
@@ -9303,7 +9316,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9303
9316
|
borderRadius: l.value ? "6px" : void 0,
|
|
9304
9317
|
transition: s ? "all 300ms cubic-bezier(0.4, 0, 0.2, 1)" : void 0
|
|
9305
9318
|
};
|
|
9306
|
-
}), l =
|
|
9319
|
+
}), l = P(() => Number.parseInt(o.value) > 10 && !n.isPassing);
|
|
9307
9320
|
return t({
|
|
9308
9321
|
getEl: () => a.value,
|
|
9309
9322
|
getStyle: () => a?.value?.style,
|
|
@@ -9312,7 +9325,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9312
9325
|
}
|
|
9313
9326
|
}), (r, s) => {
|
|
9314
9327
|
const c = B("j-icon");
|
|
9315
|
-
return _(),
|
|
9328
|
+
return _(), O("div", {
|
|
9316
9329
|
ref_key: "actionRef",
|
|
9317
9330
|
ref: a,
|
|
9318
9331
|
style: Re(i.value),
|
|
@@ -9338,7 +9351,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9338
9351
|
toLeft: { type: Boolean }
|
|
9339
9352
|
},
|
|
9340
9353
|
setup(e, { expose: t }) {
|
|
9341
|
-
const n = e, a = ca("barRef"), o = j("0"), i =
|
|
9354
|
+
const n = e, a = ca("barRef"), o = j("0"), i = P(() => {
|
|
9342
9355
|
const { barStyle: l, toLeft: r } = n;
|
|
9343
9356
|
return {
|
|
9344
9357
|
...l,
|
|
@@ -9354,7 +9367,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9354
9367
|
setWidth: (l) => {
|
|
9355
9368
|
o.value = l;
|
|
9356
9369
|
}
|
|
9357
|
-
}), (l, r) => (_(),
|
|
9370
|
+
}), (l, r) => (_(), O("div", {
|
|
9358
9371
|
ref_key: "barRef",
|
|
9359
9372
|
ref: a,
|
|
9360
9373
|
style: Re(i.value)
|
|
@@ -9381,7 +9394,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9381
9394
|
}
|
|
9382
9395
|
},
|
|
9383
9396
|
setup(e, { expose: t }) {
|
|
9384
|
-
const n = e, a = ca("contentRef"), o =
|
|
9397
|
+
const n = e, a = ca("contentRef"), o = P(() => {
|
|
9385
9398
|
const { contentStyle: l } = n;
|
|
9386
9399
|
return {
|
|
9387
9400
|
...l,
|
|
@@ -9389,8 +9402,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9389
9402
|
};
|
|
9390
9403
|
});
|
|
9391
9404
|
t({ getEl: () => a.value });
|
|
9392
|
-
const i =
|
|
9393
|
-
return (l, r) => (_(),
|
|
9405
|
+
const i = P(() => ({ animation: `shine ${n.animationDuration}s linear ${n.animationIterationCount}` }));
|
|
9406
|
+
return (l, r) => (_(), O("div", {
|
|
9394
9407
|
ref_key: "contentRef",
|
|
9395
9408
|
ref: a,
|
|
9396
9409
|
class: De([{ success: e.isPassing }, "j-slider-captcha-content"]),
|
|
@@ -9433,51 +9446,51 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9433
9446
|
startTime: 0,
|
|
9434
9447
|
toLeft: !1
|
|
9435
9448
|
}), l = ca("wrapperRef"), r = ca("barRef"), s = ca("contentRef"), c = ca("actionRef");
|
|
9436
|
-
it(() => i.isPassing, (
|
|
9437
|
-
if (
|
|
9438
|
-
const { endTime: w, startTime:
|
|
9449
|
+
it(() => i.isPassing, (b) => {
|
|
9450
|
+
if (b) {
|
|
9451
|
+
const { endTime: w, startTime: m } = i;
|
|
9439
9452
|
a("success", {
|
|
9440
|
-
isPassing:
|
|
9441
|
-
time: ((w -
|
|
9442
|
-
}), o.value =
|
|
9453
|
+
isPassing: b,
|
|
9454
|
+
time: ((w - m) / 1e3).toFixed(1)
|
|
9455
|
+
}), o.value = b;
|
|
9443
9456
|
}
|
|
9444
9457
|
}), Js(() => {
|
|
9445
9458
|
i.isPassing = !!o.value;
|
|
9446
9459
|
});
|
|
9447
|
-
function u(
|
|
9448
|
-
return "pageX" in
|
|
9460
|
+
function u(b) {
|
|
9461
|
+
return "pageX" in b ? b.pageX : "touches" in b && b.touches[0] ? b.touches[0].pageX : 0;
|
|
9449
9462
|
}
|
|
9450
|
-
function d(
|
|
9451
|
-
i.isPassing || c.value && (a("start",
|
|
9463
|
+
function d(b) {
|
|
9464
|
+
i.isPassing || c.value && (a("start", b), i.moveDistance = u(b) - Number.parseInt(c.value.getStyle().left.replace("px", "") || "0", 10), i.startTime = Date.now(), i.isMoving = !0);
|
|
9452
9465
|
}
|
|
9453
|
-
function f(
|
|
9454
|
-
const w = l.value?.offsetWidth ?? 220,
|
|
9466
|
+
function f(b) {
|
|
9467
|
+
const w = l.value?.offsetWidth ?? 220, m = b?.offsetWidth ?? 40;
|
|
9455
9468
|
return {
|
|
9456
|
-
actionWidth:
|
|
9457
|
-
offset: w -
|
|
9469
|
+
actionWidth: m,
|
|
9470
|
+
offset: w - m - 6,
|
|
9458
9471
|
wrapperWidth: w
|
|
9459
9472
|
};
|
|
9460
9473
|
}
|
|
9461
|
-
function h(
|
|
9462
|
-
const { isMoving: w, moveDistance:
|
|
9474
|
+
function h(b) {
|
|
9475
|
+
const { isMoving: w, moveDistance: m } = i;
|
|
9463
9476
|
if (w) {
|
|
9464
9477
|
const x = G(c), E = G(r);
|
|
9465
9478
|
if (!x || !E) return;
|
|
9466
|
-
const { actionWidth: y, offset: k, wrapperWidth: S } = f(x.getEl()), T = u(
|
|
9479
|
+
const { actionWidth: y, offset: k, wrapperWidth: S } = f(x.getEl()), T = u(b) - m;
|
|
9467
9480
|
a("move", {
|
|
9468
|
-
event:
|
|
9469
|
-
moveDistance:
|
|
9481
|
+
event: b,
|
|
9482
|
+
moveDistance: m,
|
|
9470
9483
|
moveX: T
|
|
9471
9484
|
}), T > 0 && T <= k ? (x.setLeft(`${T}px`), E.setWidth(`${T + y / 2}px`)) : T > k && (x.setLeft(`${S - y}px`), E.setWidth(`${S - y / 2}px`), g());
|
|
9472
9485
|
}
|
|
9473
9486
|
}
|
|
9474
|
-
function p(
|
|
9475
|
-
const { isMoving: w, isPassing:
|
|
9476
|
-
if (w && !
|
|
9477
|
-
a("end",
|
|
9487
|
+
function p(b) {
|
|
9488
|
+
const { isMoving: w, isPassing: m, moveDistance: x } = i;
|
|
9489
|
+
if (w && !m) {
|
|
9490
|
+
a("end", b);
|
|
9478
9491
|
const E = c.value, y = G(r);
|
|
9479
9492
|
if (!E || !y) return;
|
|
9480
|
-
const k = u(
|
|
9493
|
+
const k = u(b) - x, { actionWidth: S, offset: T, wrapperWidth: R } = f(E.getEl());
|
|
9481
9494
|
k < T ? v() : (E.setLeft(`${R - S}px`), y.setWidth(`${R - S / 2}px`), g()), i.isMoving = !1;
|
|
9482
9495
|
}
|
|
9483
9496
|
}
|
|
@@ -9486,12 +9499,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9486
9499
|
}
|
|
9487
9500
|
function v() {
|
|
9488
9501
|
i.isMoving = !1, i.isPassing = !1, i.moveDistance = 0, i.toLeft = !1, i.startTime = 0, i.endTime = 0;
|
|
9489
|
-
const
|
|
9490
|
-
!
|
|
9491
|
-
i.toLeft = !1,
|
|
9502
|
+
const b = G(c), w = G(r), m = G(s);
|
|
9503
|
+
!b || !w || !m || (m.getEl().style.width = "100%", i.toLeft = !0, setTimeout(() => {
|
|
9504
|
+
i.toLeft = !1, b.setLeft("0"), w.setWidth("0");
|
|
9492
9505
|
}, 300));
|
|
9493
9506
|
}
|
|
9494
|
-
return (
|
|
9507
|
+
return (b, w) => (_(), O("div", {
|
|
9495
9508
|
ref_key: "wrapperRef",
|
|
9496
9509
|
ref: l,
|
|
9497
9510
|
class: De(["j-slider-captcha slider-border", n.class]),
|
|
@@ -9541,13 +9554,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9541
9554
|
const g = c.value.find((v) => v.active);
|
|
9542
9555
|
g?.value !== p.value && (g && (g.active = !1), a("click", p));
|
|
9543
9556
|
}, { list: d, containerProps: f, wrapperProps: h } = kl(c, { itemHeight: 44 });
|
|
9544
|
-
return (p, g) => (_(),
|
|
9557
|
+
return (p, g) => (_(), O("div", ze({
|
|
9545
9558
|
class: ["j-sub-menu-content", { "j-menu-dark": G(r) === "dark" }],
|
|
9546
9559
|
style: {
|
|
9547
9560
|
"max-height": "calc(100vh - 80px)",
|
|
9548
9561
|
"border-radius": "8px"
|
|
9549
9562
|
}
|
|
9550
|
-
}, G(f)), [$("div", xi(Sl(G(h))), [(_(!0),
|
|
9563
|
+
}, G(f)), [$("div", xi(Sl(G(h))), [(_(!0), O(ge, null, ke(G(d), (v) => (_(), H(ki, {
|
|
9551
9564
|
key: v.data.value,
|
|
9552
9565
|
"parent-actives": G(l)?.pid?.split(".") || [],
|
|
9553
9566
|
item: v.data,
|
|
@@ -9577,7 +9590,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9577
9590
|
},
|
|
9578
9591
|
emits: ["click"],
|
|
9579
9592
|
setup(e, { emit: t }) {
|
|
9580
|
-
const { t: n } =
|
|
9593
|
+
const { t: n } = jt(), { activeMenuId: a } = wo(), o = t, i = (l) => {
|
|
9581
9594
|
o("click", l);
|
|
9582
9595
|
};
|
|
9583
9596
|
return (l, r) => {
|
|
@@ -9604,7 +9617,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9604
9617
|
size: 18
|
|
9605
9618
|
}, null, 8, ["icon"])) : K("", !0),
|
|
9606
9619
|
$("div", Hv, ve(G(n)(e.item.label)), 1),
|
|
9607
|
-
e.item.hasChildren ? (_(),
|
|
9620
|
+
e.item.hasChildren ? (_(), O("div", {
|
|
9608
9621
|
key: 1,
|
|
9609
9622
|
class: De(["j-menu-item-arrow", { open: e.item.open }])
|
|
9610
9623
|
}, null, 2)) : K("", !0)
|
|
@@ -9635,14 +9648,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9635
9648
|
size: 18
|
|
9636
9649
|
}, null, 8, ["icon", "style"])) : K("", !0),
|
|
9637
9650
|
$("div", Iv, ve(G(n)(e.item.label)), 1),
|
|
9638
|
-
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (_(),
|
|
9651
|
+
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (_(), O("div", Bv)) : K("", !0)
|
|
9639
9652
|
], 6)], 2)]),
|
|
9640
9653
|
default: V(() => [Y(Ov, {
|
|
9641
9654
|
"p-id": e.item.value,
|
|
9642
9655
|
onClick: i
|
|
9643
9656
|
}, null, 8, ["p-id"])]),
|
|
9644
9657
|
_: 1
|
|
9645
|
-
}, 8, ["placement"])) : (_(),
|
|
9658
|
+
}, 8, ["placement"])) : (_(), O("div", {
|
|
9646
9659
|
key: 2,
|
|
9647
9660
|
class: De(["j-menu-item", {
|
|
9648
9661
|
collapsed: e.collapsed,
|
|
@@ -9667,7 +9680,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9667
9680
|
size: 18
|
|
9668
9681
|
}, null, 8, ["icon", "style"])) : K("", !0),
|
|
9669
9682
|
$("div", Lv, ve(G(n)(e.item.label)), 1),
|
|
9670
|
-
e.item.hasChildren ? (_(),
|
|
9683
|
+
e.item.hasChildren ? (_(), O("div", {
|
|
9671
9684
|
key: 1,
|
|
9672
9685
|
class: De(["j-menu-item-arrow", { open: e.item.open }])
|
|
9673
9686
|
}, null, 2)) : K("", !0)
|
|
@@ -9688,11 +9701,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9688
9701
|
setup(e, { emit: t }) {
|
|
9689
9702
|
const n = e, a = t, { activeMenu: o, theme: i } = wo(), l = (u) => {
|
|
9690
9703
|
a("click", u);
|
|
9691
|
-
}, { list: r, containerProps: s, wrapperProps: c } = kl(
|
|
9692
|
-
return (u, d) => (_(),
|
|
9704
|
+
}, { list: r, containerProps: s, wrapperProps: c } = kl(P(() => n.menuList), { itemHeight: 44 });
|
|
9705
|
+
return (u, d) => (_(), O("div", ze({ class: ["j-menu", {
|
|
9693
9706
|
collapsed: e.collapsed,
|
|
9694
9707
|
"j-menu-dark": G(i) === "dark"
|
|
9695
|
-
}] }, G(s)), [$("div", xi(Sl(G(c))), [(_(!0),
|
|
9708
|
+
}] }, G(s)), [$("div", xi(Sl(G(c))), [(_(!0), O(ge, null, ke(G(r), (f) => (_(), H(ki, {
|
|
9696
9709
|
key: f.data.value,
|
|
9697
9710
|
"parent-actives": G(o)?.pid?.split(".") || [],
|
|
9698
9711
|
item: f.data,
|
|
@@ -9725,14 +9738,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9725
9738
|
l.value && (r.value = l.value.offsetWidth);
|
|
9726
9739
|
}), s.observe(l.value));
|
|
9727
9740
|
});
|
|
9728
|
-
const c =
|
|
9741
|
+
const c = P(() => {
|
|
9729
9742
|
const h = [];
|
|
9730
9743
|
let p = 0, g = 0;
|
|
9731
9744
|
const v = n.menuList.length;
|
|
9732
|
-
return n.menuList.forEach((
|
|
9745
|
+
return n.menuList.forEach((b) => {
|
|
9733
9746
|
g++;
|
|
9734
|
-
const w = (sn(
|
|
9735
|
-
p += w, (g === v && p <= r.value || g < v && p + 56 <= r.value) && h.push(
|
|
9747
|
+
const w = (sn(b.label) || 0) + 32 + 16 + 4 + 8;
|
|
9748
|
+
p += w, (g === v && p <= r.value || g < v && p + 56 <= r.value) && h.push(b);
|
|
9736
9749
|
}), h.length < n.menuList.length && h.push({
|
|
9737
9750
|
value: "moreId",
|
|
9738
9751
|
icon: "more-outlined",
|
|
@@ -9742,14 +9755,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9742
9755
|
open: !1,
|
|
9743
9756
|
active: !1
|
|
9744
9757
|
}), h;
|
|
9745
|
-
}), u =
|
|
9758
|
+
}), u = P(() => {
|
|
9746
9759
|
const h = [];
|
|
9747
9760
|
let p = 0;
|
|
9748
9761
|
const g = c.value.length;
|
|
9749
9762
|
return n.menuList.forEach((v) => {
|
|
9750
9763
|
p++, p >= g && h.push(v);
|
|
9751
9764
|
}), h;
|
|
9752
|
-
}), d =
|
|
9765
|
+
}), d = P(() => {
|
|
9753
9766
|
const h = o.value?.pid?.split(".") || [];
|
|
9754
9767
|
return (h.length > 1 && u.value.findIndex((p) => p.value === h[1]) > -1 || u.value.findIndex((p) => p.value === o.value?.value) > -1) && h.push("moreId"), h;
|
|
9755
9768
|
}), f = (h) => {
|
|
@@ -9757,11 +9770,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9757
9770
|
};
|
|
9758
9771
|
return Bf({ getHMoreMenus: u }), yo(() => {
|
|
9759
9772
|
s && l.value && (s.unobserve(l.value), s.disconnect(), s = null);
|
|
9760
|
-
}), (h, p) => (_(),
|
|
9773
|
+
}), (h, p) => (_(), O("div", {
|
|
9761
9774
|
ref_key: "menuRef",
|
|
9762
9775
|
ref: l,
|
|
9763
9776
|
class: De(["j-menu-horizontal", { "j-menu-dark": G(i) === "dark" }])
|
|
9764
|
-
}, [(_(!0),
|
|
9777
|
+
}, [(_(!0), O(ge, null, ke(c.value, (g) => (_(), H(ki, {
|
|
9765
9778
|
key: g.value,
|
|
9766
9779
|
"parent-actives": d.value,
|
|
9767
9780
|
item: g,
|
|
@@ -9785,12 +9798,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9785
9798
|
"var(--j-color-error)",
|
|
9786
9799
|
"#16c2c0",
|
|
9787
9800
|
"#9154de"
|
|
9788
|
-
], r =
|
|
9801
|
+
], r = P(() => (n.menuList.forEach((h, p) => {
|
|
9789
9802
|
h.color = l[p % l.length];
|
|
9790
|
-
}), n.menuList)), s =
|
|
9803
|
+
}), n.menuList)), s = P(() => o.value?.pid?.split(".") || []), c = (h) => {
|
|
9791
9804
|
a("click", h);
|
|
9792
9805
|
}, { list: u, containerProps: d, wrapperProps: f } = kl(r, { itemHeight: 96 });
|
|
9793
|
-
return (h, p) => (_(),
|
|
9806
|
+
return (h, p) => (_(), O("div", ze({ class: ["j-menu-vertical", { "j-menu-dark": G(i) === "dark" }] }, G(d)), [$("div", xi(Sl(G(f))), [(_(!0), O(ge, null, ke(G(u), (g) => (_(), H(ki, {
|
|
9794
9807
|
key: g.data.value,
|
|
9795
9808
|
"parent-actives": s.value,
|
|
9796
9809
|
item: g.data,
|
|
@@ -9826,26 +9839,26 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9826
9839
|
let o = {};
|
|
9827
9840
|
const i = j("");
|
|
9828
9841
|
i.value = n.activeId || "";
|
|
9829
|
-
const l = (g, v,
|
|
9830
|
-
|
|
9831
|
-
for (let x = 0, E =
|
|
9832
|
-
const y =
|
|
9842
|
+
const l = (g, v, b, w, m) => {
|
|
9843
|
+
b = b || [];
|
|
9844
|
+
for (let x = 0, E = b.length; x < E; x++) {
|
|
9845
|
+
const y = b[x], k = {};
|
|
9833
9846
|
k.pid = v, k.indent = w, i.value === y.value && (k.active = !0), Object.keys(y).forEach((T) => {
|
|
9834
9847
|
T !== "children" && (k[T] = y[T]);
|
|
9835
|
-
}),
|
|
9848
|
+
}), m && m.includes(y.value) && (k.open = !0), g.push(k);
|
|
9836
9849
|
const S = y.children || [];
|
|
9837
|
-
S.length > 0 && (k.hasChildren = !0,
|
|
9850
|
+
S.length > 0 && (k.hasChildren = !0, m || (o[k.value] = S), (!m || k.open && !n.collapsed) && l(g, `${v}.${k.value}`, S, w + 1, m));
|
|
9838
9851
|
}
|
|
9839
9852
|
}, r = (g, v) => {
|
|
9840
|
-
const
|
|
9841
|
-
return l(
|
|
9853
|
+
const b = [];
|
|
9854
|
+
return l(b, "0", g, 0, v), b;
|
|
9842
9855
|
}, s = j([]);
|
|
9843
9856
|
let c = [];
|
|
9844
9857
|
const u = () => {
|
|
9845
9858
|
o = {}, c = r(n.menus);
|
|
9846
9859
|
const g = [];
|
|
9847
9860
|
if (i.value && n.mode === "inline") {
|
|
9848
|
-
const v = c.find((
|
|
9861
|
+
const v = c.find((b) => b.value === i.value);
|
|
9849
9862
|
v && g.push(...v.pid.split("."));
|
|
9850
9863
|
}
|
|
9851
9864
|
s.value = r(n.menus, g);
|
|
@@ -9863,7 +9876,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9863
9876
|
n.mode === "inline" && v.push(...g.pid.split(".")), s.value = r(n.menus, v);
|
|
9864
9877
|
}
|
|
9865
9878
|
}
|
|
9866
|
-
}, f =
|
|
9879
|
+
}, f = P(() => c.find((g) => g.value === i.value));
|
|
9867
9880
|
it(() => n.activeId, () => {
|
|
9868
9881
|
i.value = n.activeId || "", d();
|
|
9869
9882
|
}), it(() => n.collapsed, () => {
|
|
@@ -9871,23 +9884,23 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9871
9884
|
else {
|
|
9872
9885
|
const g = [];
|
|
9873
9886
|
if (i.value) {
|
|
9874
|
-
const v = c.find((
|
|
9887
|
+
const v = c.find((b) => b.value === i.value);
|
|
9875
9888
|
v && g.push(...v.pid.split("."));
|
|
9876
9889
|
}
|
|
9877
9890
|
s.value = r(n.menus, g);
|
|
9878
9891
|
}
|
|
9879
9892
|
});
|
|
9880
|
-
const h =
|
|
9893
|
+
const h = P(() => n.theme), p = (g) => {
|
|
9881
9894
|
if (console.log(g), g.hasChildren) {
|
|
9882
9895
|
if (n.collapsed) return;
|
|
9883
9896
|
const v = [];
|
|
9884
9897
|
v.push(...g.pid.split(".")), g.open || v.push(g.value);
|
|
9885
|
-
const
|
|
9886
|
-
|
|
9898
|
+
const b = r(n.menus, v), w = new Set(s.value.map((x) => x.value)), m = new Set(b.map((x) => x.value));
|
|
9899
|
+
b.forEach((x) => {
|
|
9887
9900
|
w.has(x.value) || (x.entering = !0);
|
|
9888
9901
|
}), s.value.forEach((x) => {
|
|
9889
|
-
|
|
9890
|
-
}), s.value =
|
|
9902
|
+
m.has(x.value) || (x.leaving = !0);
|
|
9903
|
+
}), s.value = b, setTimeout(() => {
|
|
9891
9904
|
s.value.forEach((x) => {
|
|
9892
9905
|
x.entering = !1, x.leaving = !1;
|
|
9893
9906
|
});
|
|
@@ -9935,7 +9948,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9935
9948
|
}),
|
|
9936
9949
|
emits: ["update:checkAll", "update:checkFields"],
|
|
9937
9950
|
setup(e, { expose: t }) {
|
|
9938
|
-
const { t: n } =
|
|
9951
|
+
const { t: n } = jt(), a = e, o = po(e, "checkAll"), i = po(e, "checkFields"), l = j(!1), r = j(""), s = P(() => a.columns.filter((f) => f.config?.filter?.isSearchKeyword ? r.value ? f.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((f) => ({
|
|
9939
9952
|
label: f.config?.label,
|
|
9940
9953
|
value: f.id
|
|
9941
9954
|
}))), c = () => {
|
|
@@ -9947,7 +9960,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9947
9960
|
o.value ? l.value = !1 : l.value = !0;
|
|
9948
9961
|
} }), (f, h) => {
|
|
9949
9962
|
const p = B("j-icon"), g = B("el-input"), v = B("j-checkbox");
|
|
9950
|
-
return _(),
|
|
9963
|
+
return _(), O("div", Gv, [
|
|
9951
9964
|
$("div", {
|
|
9952
9965
|
class: De(["range-item", { active: o.value }]),
|
|
9953
9966
|
onClick: c
|
|
@@ -9957,11 +9970,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9957
9970
|
})) : K("", !0)], 2),
|
|
9958
9971
|
$("div", {
|
|
9959
9972
|
class: "range-item",
|
|
9960
|
-
onClick: h[0] || (h[0] = (
|
|
9973
|
+
onClick: h[0] || (h[0] = (b) => l.value = !l.value)
|
|
9961
9974
|
}, [$("div", null, ve(G(n)("搜索特定字段")), 1), Y(p, { icon: l.value ? "mdi:keyboard-arrow-up" : "mdi:keyboard-arrow-down" }, null, 8, ["icon"])]),
|
|
9962
|
-
l.value ? (_(),
|
|
9975
|
+
l.value ? (_(), O("div", Jv, [Y(g, {
|
|
9963
9976
|
modelValue: r.value,
|
|
9964
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
9977
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => r.value = b),
|
|
9965
9978
|
modelModifiers: { trim: !0 },
|
|
9966
9979
|
class: "no-border background",
|
|
9967
9980
|
placeholder: G(n)("搜索"),
|
|
@@ -9970,9 +9983,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
9970
9983
|
prefix: V(() => [Y(p, { icon: "mdi:search" })]),
|
|
9971
9984
|
_: 1
|
|
9972
9985
|
}, 8, ["modelValue", "placeholder"])])) : K("", !0),
|
|
9973
|
-
l.value ? (_(),
|
|
9986
|
+
l.value ? (_(), O("div", Xv, [Y(v, {
|
|
9974
9987
|
modelValue: i.value,
|
|
9975
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
9988
|
+
"onUpdate:modelValue": h[2] || (h[2] = (b) => i.value = b),
|
|
9976
9989
|
options: s.value,
|
|
9977
9990
|
style: {
|
|
9978
9991
|
display: "flex",
|
|
@@ -10006,7 +10019,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10006
10019
|
}),
|
|
10007
10020
|
emits: /* @__PURE__ */ ho(["filter", "close"], ["update:relation", "update:isPin"]),
|
|
10008
10021
|
setup(e, { expose: t, emit: n }) {
|
|
10009
|
-
const { t: a } =
|
|
10022
|
+
const { t: a } = jt(), o = e, i = po(e, "relation"), l = po(e, "isPin"), r = j([]), s = () => {
|
|
10010
10023
|
l.value = !l.value;
|
|
10011
10024
|
}, c = [
|
|
10012
10025
|
{
|
|
@@ -10023,10 +10036,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10023
10036
|
dataType: "options",
|
|
10024
10037
|
isShowTooltip: !0,
|
|
10025
10038
|
isSelectOnlyone: !0,
|
|
10026
|
-
change: ({ value: w, row:
|
|
10039
|
+
change: ({ value: w, row: m }) => {
|
|
10027
10040
|
const x = o.columns.find((k) => k.id === w)?.config || {};
|
|
10028
10041
|
let E = "eq", y = "text";
|
|
10029
|
-
["options"].includes(x.dataType || "") ? E = "in" : ["dateTime"].includes(x.type || "") ? (E = "range", y = "dateTime") : ["number"].includes(x.type || "") && (y = "number"),
|
|
10042
|
+
["options"].includes(x.dataType || "") ? E = "in" : ["dateTime"].includes(x.type || "") ? (E = "range", y = "dateTime") : ["number"].includes(x.type || "") && (y = "number"), m.method = E, m.type = x.valueType || y, m.value = void 0;
|
|
10030
10043
|
}
|
|
10031
10044
|
}
|
|
10032
10045
|
},
|
|
@@ -10034,13 +10047,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10034
10047
|
id: "method",
|
|
10035
10048
|
type: "j-select",
|
|
10036
10049
|
getCompConfig: ({ row: w }) => {
|
|
10037
|
-
const
|
|
10050
|
+
const m = o.columns.find((x) => x.id === w.field)?.config || {};
|
|
10038
10051
|
return [
|
|
10039
10052
|
"options",
|
|
10040
10053
|
"switch",
|
|
10041
10054
|
"dataItem",
|
|
10042
10055
|
"dataView"
|
|
10043
|
-
].includes(
|
|
10056
|
+
].includes(m.dataType || "") ? { options: [
|
|
10044
10057
|
{
|
|
10045
10058
|
value: "eq",
|
|
10046
10059
|
label: "等于"
|
|
@@ -10065,7 +10078,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10065
10078
|
value: "not_empty",
|
|
10066
10079
|
label: "不为空"
|
|
10067
10080
|
}
|
|
10068
|
-
] } : ["dateTime"].includes(
|
|
10081
|
+
] } : ["dateTime"].includes(m.type || "") ? { options: [
|
|
10069
10082
|
{
|
|
10070
10083
|
value: "eq",
|
|
10071
10084
|
label: "等于"
|
|
@@ -10098,7 +10111,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10098
10111
|
value: "not_empty",
|
|
10099
10112
|
label: "不为空"
|
|
10100
10113
|
}
|
|
10101
|
-
] } : ["number"].includes(
|
|
10114
|
+
] } : ["number"].includes(m.type || "") ? { options: [
|
|
10102
10115
|
{
|
|
10103
10116
|
value: "eq",
|
|
10104
10117
|
label: "等于"
|
|
@@ -10165,40 +10178,40 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10165
10178
|
id: "value",
|
|
10166
10179
|
type: "input",
|
|
10167
10180
|
getCompType: ({ row: w }) => {
|
|
10168
|
-
const
|
|
10181
|
+
const m = o.columns.find((x) => x.id === w.field)?.config || {};
|
|
10169
10182
|
if ([
|
|
10170
10183
|
"options",
|
|
10171
10184
|
"dataItem",
|
|
10172
10185
|
"switch"
|
|
10173
|
-
].includes(
|
|
10186
|
+
].includes(m.dataType || "")) {
|
|
10174
10187
|
if (["in", "nin"].includes(w.method) || ["eq", "ne"].includes(w.method)) return "j-select";
|
|
10175
10188
|
} else {
|
|
10176
|
-
if (["dateTime"].includes(
|
|
10177
|
-
if (["number"].includes(
|
|
10189
|
+
if (["dateTime"].includes(m.type || "")) return ["formula"].includes(w.method) ? "j-select" : "j-date";
|
|
10190
|
+
if (["number"].includes(m.type || "")) return "j-number";
|
|
10178
10191
|
}
|
|
10179
10192
|
return "j-input";
|
|
10180
10193
|
},
|
|
10181
10194
|
getCompConfig: ({ row: w }) => {
|
|
10182
10195
|
if (["empty", "not_empty"].includes(w.method || "")) return { display: !1 };
|
|
10183
|
-
const
|
|
10196
|
+
const m = o.columns.find((E) => E.id === w.field)?.config || {}, x = {
|
|
10184
10197
|
display: !0,
|
|
10185
10198
|
placeholder: "",
|
|
10186
10199
|
clearable: !0,
|
|
10187
10200
|
filterable: !0
|
|
10188
10201
|
};
|
|
10189
|
-
return ["in", "nin"].includes(w.method || "") && (x.multiple = !0, x.collapseTags = !0, x.collapseTagsTooltip = !0), ["options", "dataItem"].includes(
|
|
10202
|
+
return ["in", "nin"].includes(w.method || "") && (x.multiple = !0, x.collapseTags = !0, x.collapseTagsTooltip = !0), ["options", "dataItem"].includes(m.dataType || "") ? (x.collapseTags = !0, x.collapseTagsTooltip = !0, x.dataType = m.dataType, x.dataCode = m.dataCode, x.options = m.options) : ["switch"].includes(m.dataType || "") ? (x.options = [], x.dataType = "options", m.activeValue == null ? x.options.push({
|
|
10190
10203
|
label: "是",
|
|
10191
10204
|
value: "1"
|
|
10192
10205
|
}) : x.options.push({
|
|
10193
10206
|
label: "是",
|
|
10194
|
-
value:
|
|
10195
|
-
}),
|
|
10207
|
+
value: m.activeValue
|
|
10208
|
+
}), m.inactiveValue == null ? x.options.push({
|
|
10196
10209
|
label: "否",
|
|
10197
10210
|
value: "0"
|
|
10198
10211
|
}) : x.options.push({
|
|
10199
10212
|
label: "否",
|
|
10200
|
-
value:
|
|
10201
|
-
})) : ["dateTime"].includes(
|
|
10213
|
+
value: m.inactiveValue
|
|
10214
|
+
})) : ["dateTime"].includes(m.type || "") && (["formula"].includes(w.method) ? (x.placeholder = "", x.options = [
|
|
10202
10215
|
{
|
|
10203
10216
|
label: "今天",
|
|
10204
10217
|
value: "today"
|
|
@@ -10281,19 +10294,19 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10281
10294
|
kt(() => {
|
|
10282
10295
|
r.value = o.searchFieldList;
|
|
10283
10296
|
});
|
|
10284
|
-
const u =
|
|
10297
|
+
const u = P(() => o.columns.filter((w) => !w.children?.length).map((w) => ({
|
|
10285
10298
|
label: w.config?.label,
|
|
10286
10299
|
value: w.id,
|
|
10287
10300
|
dataType: w.config?.dataType,
|
|
10288
10301
|
options: w.config?.options
|
|
10289
|
-
}))), d =
|
|
10302
|
+
}))), d = P(() => r.value.map((w) => w.field)), f = ({ data: w }) => {
|
|
10290
10303
|
if (d.value.includes(w.value)) return;
|
|
10291
|
-
const
|
|
10304
|
+
const m = o.columns.find((y) => y.id === w.value)?.config || {};
|
|
10292
10305
|
let x = "eq", E = "text";
|
|
10293
|
-
["options", "dataItem"].includes(
|
|
10306
|
+
["options", "dataItem"].includes(m.dataType || "") ? x = "in" : ["dateTime"].includes(m.type || "") && (x = "range", E = "dateTime"), r.value.push({
|
|
10294
10307
|
field: w.value,
|
|
10295
10308
|
method: x,
|
|
10296
|
-
type:
|
|
10309
|
+
type: m.valueType || E
|
|
10297
10310
|
});
|
|
10298
10311
|
}, h = n, p = () => {
|
|
10299
10312
|
r.value.length = 0;
|
|
@@ -10304,16 +10317,16 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10304
10317
|
w.value = void 0;
|
|
10305
10318
|
}), h("filter");
|
|
10306
10319
|
};
|
|
10307
|
-
return t({ getSearchFields: () => r.value }), (w,
|
|
10320
|
+
return t({ getSearchFields: () => r.value }), (w, m) => {
|
|
10308
10321
|
const x = B("j-icon"), E = B("j-select"), y = B("j-button-select"), k = B("j-button"), S = B("j-input-rows"), T = B("el-tooltip");
|
|
10309
|
-
return _(),
|
|
10310
|
-
l.value ? (_(),
|
|
10322
|
+
return _(), O("div", { class: De(["j-filter-panel", { "is-pin": l.value }]) }, [
|
|
10323
|
+
l.value ? (_(), O("div", Qv, [Y(x, { icon: "mdi:filter-outline" }), $("div", null, ve(G(a)("筛选")), 1)])) : K("", !0),
|
|
10311
10324
|
$("div", ey, [
|
|
10312
10325
|
$("div", ty, [
|
|
10313
10326
|
$("div", null, ve(G(a)("筛选出符合以下")), 1),
|
|
10314
10327
|
$("div", ny, [Y(E, {
|
|
10315
10328
|
modelValue: i.value,
|
|
10316
|
-
"onUpdate:modelValue":
|
|
10329
|
+
"onUpdate:modelValue": m[0] || (m[0] = (R) => i.value = R),
|
|
10317
10330
|
teleported: !1,
|
|
10318
10331
|
"no-border": !0,
|
|
10319
10332
|
options: [{
|
|
@@ -10340,7 +10353,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10340
10353
|
})) : K("", !0)]),
|
|
10341
10354
|
$("div", oy, [Y(S, {
|
|
10342
10355
|
modelValue: r.value,
|
|
10343
|
-
"onUpdate:modelValue":
|
|
10356
|
+
"onUpdate:modelValue": m[1] || (m[1] = (R) => r.value = R),
|
|
10344
10357
|
columns: c,
|
|
10345
10358
|
"edit-config": { isAddBtn: !1 },
|
|
10346
10359
|
"is-wrap": l.value
|
|
@@ -10381,10 +10394,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10381
10394
|
} },
|
|
10382
10395
|
emits: ["save", "clear"],
|
|
10383
10396
|
setup(e, { expose: t, emit: n }) {
|
|
10384
|
-
const { t: a } =
|
|
10397
|
+
const { t: a } = jt(), o = e, i = n, l = P(() => o.columns.filter((p) => !p.children?.length && p.config?.sorter?.isNot !== !0).map((p) => ({
|
|
10385
10398
|
label: p.config?.label,
|
|
10386
10399
|
value: p.id
|
|
10387
|
-
}))), r = j([]), s =
|
|
10400
|
+
}))), r = j([]), s = P(() => r.value.map((p) => p.value)), c = [{
|
|
10388
10401
|
id: "label",
|
|
10389
10402
|
type: "j-title",
|
|
10390
10403
|
getCompConfig: ({ row: p }) => ({ title: p.label }),
|
|
@@ -10417,15 +10430,15 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10417
10430
|
r.value = [], i("clear");
|
|
10418
10431
|
};
|
|
10419
10432
|
return t({ init: d }), (p, g) => {
|
|
10420
|
-
const v = B("j-button-select"),
|
|
10421
|
-
return _(),
|
|
10433
|
+
const v = B("j-button-select"), b = B("j-input-rows"), w = B("j-button");
|
|
10434
|
+
return _(), O("div", ry, [$("div", sy, [$("div", cy, [Y(v, {
|
|
10422
10435
|
label: "添加排序规则",
|
|
10423
10436
|
options: l.value,
|
|
10424
10437
|
"model-value": s.value.join(","),
|
|
10425
10438
|
onChange: u
|
|
10426
|
-
}, null, 8, ["options", "model-value"])]), $("div", uy, [Y(
|
|
10439
|
+
}, null, 8, ["options", "model-value"])]), $("div", uy, [Y(b, {
|
|
10427
10440
|
modelValue: r.value,
|
|
10428
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
10441
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => r.value = m),
|
|
10429
10442
|
columns: c,
|
|
10430
10443
|
"edit-config": {
|
|
10431
10444
|
isAddBtn: !1,
|
|
@@ -10456,7 +10469,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10456
10469
|
},
|
|
10457
10470
|
emits: ["save"],
|
|
10458
10471
|
setup(e, { expose: t, emit: n }) {
|
|
10459
|
-
const { t: a } =
|
|
10472
|
+
const { t: a } = jt(), o = e, i = n, l = j(), r = j(""), s = {}, c = j([]), u = j([]), d = (y, k) => {
|
|
10460
10473
|
const S = [], T = /* @__PURE__ */ new Map();
|
|
10461
10474
|
y.forEach((M) => {
|
|
10462
10475
|
T.set(M.id || "", M), s[M.id || ""] = M;
|
|
@@ -10491,11 +10504,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10491
10504
|
...S,
|
|
10492
10505
|
children: R.length > 0 ? R : S.children
|
|
10493
10506
|
} : null;
|
|
10494
|
-
}).filter(Boolean), h =
|
|
10507
|
+
}).filter(Boolean), h = P(() => {
|
|
10495
10508
|
if (!r.value) return u.value;
|
|
10496
10509
|
const y = r.value.split(/\s+/).filter(Boolean);
|
|
10497
10510
|
return f(u.value, y);
|
|
10498
|
-
}), p = j([]), g =
|
|
10511
|
+
}), p = j([]), g = P(() => {
|
|
10499
10512
|
const y = /* @__PURE__ */ new Map();
|
|
10500
10513
|
if (o.columnConfig && o.columnConfig.length > 0) {
|
|
10501
10514
|
const k = (S) => {
|
|
@@ -10519,9 +10532,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10519
10532
|
}), S;
|
|
10520
10533
|
};
|
|
10521
10534
|
p.value = y(o.columns);
|
|
10522
|
-
},
|
|
10535
|
+
}, b = (y, { node: k }) => {
|
|
10523
10536
|
y.includes(k.id) ? p.value.push(k.id) : p.value = p.value.filter((S) => S !== k.id);
|
|
10524
|
-
}, w = (y, k, S) => S === "inner" ? !1 : y.parent === k.parent,
|
|
10537
|
+
}, w = (y, k, S) => S === "inner" ? !1 : y.parent === k.parent, m = () => {
|
|
10525
10538
|
const y = (k) => k.map((S) => {
|
|
10526
10539
|
const T = {
|
|
10527
10540
|
...S,
|
|
@@ -10543,7 +10556,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10543
10556
|
v(), c.value = d(o.columns, o.columnConfig), u.value = JSON.parse(JSON.stringify(c.value));
|
|
10544
10557
|
} }), (y, k) => {
|
|
10545
10558
|
const S = B("j-icon"), T = B("el-input"), R = B("j-tree"), M = B("j-button");
|
|
10546
|
-
return _(),
|
|
10559
|
+
return _(), O("div", py, [$("div", gy, [$("div", vy, [Y(T, {
|
|
10547
10560
|
modelValue: r.value,
|
|
10548
10561
|
"onUpdate:modelValue": k[0] || (k[0] = (D) => r.value = D),
|
|
10549
10562
|
modelModifiers: { trim: !0 },
|
|
@@ -10563,7 +10576,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10563
10576
|
"id-key": "id",
|
|
10564
10577
|
draggable: !r.value,
|
|
10565
10578
|
"allow-drop": w,
|
|
10566
|
-
check:
|
|
10579
|
+
check: b
|
|
10567
10580
|
}, null, 8, [
|
|
10568
10581
|
"list",
|
|
10569
10582
|
"default-checked-keys",
|
|
@@ -10571,7 +10584,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10571
10584
|
])])]), $("div", my, [Y(M, {
|
|
10572
10585
|
label: G(a)("确定"),
|
|
10573
10586
|
type: "primary",
|
|
10574
|
-
onClick:
|
|
10587
|
+
onClick: m
|
|
10575
10588
|
}, null, 8, ["label"]), Y(M, {
|
|
10576
10589
|
label: G(a)("重置"),
|
|
10577
10590
|
icon: "mdi:restore",
|
|
@@ -10665,6 +10678,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10665
10678
|
type: String,
|
|
10666
10679
|
default: "操作"
|
|
10667
10680
|
},
|
|
10681
|
+
actionFilter: {
|
|
10682
|
+
type: Function,
|
|
10683
|
+
default: null
|
|
10684
|
+
},
|
|
10668
10685
|
loadData: Function,
|
|
10669
10686
|
immediate: {
|
|
10670
10687
|
type: Boolean,
|
|
@@ -10698,13 +10715,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10698
10715
|
},
|
|
10699
10716
|
emits: ["select", "ready"],
|
|
10700
10717
|
setup(e, { expose: t, emit: n }) {
|
|
10701
|
-
const { t: a } =
|
|
10718
|
+
const { t: a } = jt(), { openLayer: o } = xo(), i = e, l = n;
|
|
10702
10719
|
i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
|
|
10703
10720
|
const r = j();
|
|
10704
10721
|
let s = [];
|
|
10705
10722
|
const c = j(0), u = j(1);
|
|
10706
10723
|
let d = i.pageSize || 100;
|
|
10707
|
-
const f = j(0), h =
|
|
10724
|
+
const f = j(0), h = P(() => f.value > 0), p = j([]), g = j(!1), v = P(() => i.batchButtons && i.batchButtons.length > 0), b = P(() => p.value.length > 0), w = P(() => v.value && b.value && i.isMultiple || g.value), m = P(() => i.isPage && !w.value);
|
|
10708
10725
|
v.value && !i.isMultiple && console.warn("batchButtons is only valid when isMultiple is true");
|
|
10709
10726
|
const x = (ye) => i.rowKey ? i.rowKey.split(",").map((be) => ye[be.trim()]).join("::") : "", E = (ye, be) => {
|
|
10710
10727
|
if (!be || be.length === 0) return ye.filter((re) => re.config?.display !== !1).map((re) => re.children && re.children.length > 0 ? {
|
|
@@ -10733,7 +10750,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10733
10750
|
}), gt.push(xt);
|
|
10734
10751
|
}
|
|
10735
10752
|
}), gt;
|
|
10736
|
-
}, y =
|
|
10753
|
+
}, y = P(() => E(i.columns, ct.value)), k = P(() => yf(i.columns, (ye) => ye.config.label)), S = j(""), T = P(() => k.value.some((ye) => ye.config?.filter?.isSearchKeyword)), R = j(), M = j(!0), D = j([]), L = P(() => M.value ? "搜索全部" : `搜索范围:${k.value.filter((ye) => D.value.includes(ye.id)).map((ye) => ye.config?.label).join("、")}`), N = () => {
|
|
10737
10754
|
R.value.init();
|
|
10738
10755
|
}, A = j(), C = j(!1), F = j(!1), X = j(!1), le = j([]), me = j("and"), Te = j(), Ne = j(!1), dt = j([]), oe = () => {
|
|
10739
10756
|
Te.value.init(dt.value);
|
|
@@ -10741,7 +10758,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10741
10758
|
dt.value = ye, Ne.value = !1, Me();
|
|
10742
10759
|
}, Ze = () => {
|
|
10743
10760
|
dt.value = [], Me();
|
|
10744
|
-
}, Ae = j(), nt = j(!1), ct = j(), te =
|
|
10761
|
+
}, Ae = j(), nt = j(!1), ct = j(), te = P(() => ct.value != null), Ce = () => {
|
|
10745
10762
|
Ae.value?.init();
|
|
10746
10763
|
}, Be = (ye) => {
|
|
10747
10764
|
ct.value = ye, nt.value = !1;
|
|
@@ -10751,7 +10768,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10751
10768
|
p.value = [], r.value && (r.value.setSelection?.([]), g.value && (g.value = !1, r.value.setRecords(s)));
|
|
10752
10769
|
}, at = () => {
|
|
10753
10770
|
g.value = !g.value, g.value ? r.value?.setRecords(p.value) : (console.log(s, "tableData"), r.value?.setRecords(s)), r.value?.setSelection?.(p.value);
|
|
10754
|
-
}, Wt =
|
|
10771
|
+
}, Wt = P(() => {
|
|
10755
10772
|
if (p.value.length > 0 && i.isMultiple) {
|
|
10756
10773
|
const ye = [
|
|
10757
10774
|
{
|
|
@@ -10783,7 +10800,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10783
10800
|
return [...ye, ...be];
|
|
10784
10801
|
}
|
|
10785
10802
|
return i.buttons;
|
|
10786
|
-
}), jn =
|
|
10803
|
+
}), jn = P(() => Wt.value.filter((ye) => ye.config?.display !== !1)), Zt = j(null), J = j(0), ce = () => {
|
|
10787
10804
|
J.value = Zt.value?.clientWidth || 0;
|
|
10788
10805
|
};
|
|
10789
10806
|
let Z;
|
|
@@ -10798,7 +10815,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10798
10815
|
}, { deep: !0 }), it(Je, () => {
|
|
10799
10816
|
At(ce);
|
|
10800
10817
|
});
|
|
10801
|
-
const ee =
|
|
10818
|
+
const ee = P(() => {
|
|
10802
10819
|
const ye = jn.value;
|
|
10803
10820
|
if (ye.length === 0) return [];
|
|
10804
10821
|
const be = J.value;
|
|
@@ -10929,7 +10946,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10929
10946
|
getTableRef: Ya
|
|
10930
10947
|
}), (ye, be) => {
|
|
10931
10948
|
const wt = B("j-buttons"), gt = B("j-icon"), re = B("el-popover"), xt = B("el-tooltip"), Qt = B("el-input"), _t = B("j-button"), Jt = B("j-table");
|
|
10932
|
-
return _(),
|
|
10949
|
+
return _(), O("div", { class: De(["j-table-panel-wrapper", {
|
|
10933
10950
|
fullscreen: Je.value,
|
|
10934
10951
|
"no-padding": e.noPadding || Je.value
|
|
10935
10952
|
}]) }, [$("div", { class: De(["j-table-panel", { "j-table-panel-fullscreen": Je.value }]) }, [$("div", xy, [$("div", _y, [$("div", {
|
|
@@ -10937,7 +10954,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10937
10954
|
ref: Zt,
|
|
10938
10955
|
class: "j-table-panel-top-left"
|
|
10939
10956
|
}, [Y(wt, { list: ee.value }, null, 8, ["list"])], 512), $("div", Cy, [
|
|
10940
|
-
T.value && !w.value ? (_(),
|
|
10957
|
+
T.value && !w.value ? (_(), O("div", Sy, [Y(Qt, {
|
|
10941
10958
|
modelValue: S.value,
|
|
10942
10959
|
"onUpdate:modelValue": be[2] || (be[2] = (rt) => S.value = rt),
|
|
10943
10960
|
modelModifiers: { trim: !0 },
|
|
@@ -11122,7 +11139,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11122
11139
|
"is-show-number": e.isShowNumber,
|
|
11123
11140
|
"is-sub-show-number": e.isSubShowNumber,
|
|
11124
11141
|
"is-multiple": e.isMultiple && !!e.rowKey,
|
|
11125
|
-
"is-page":
|
|
11142
|
+
"is-page": m.value,
|
|
11126
11143
|
"page-sizes": e.pageSizes,
|
|
11127
11144
|
"page-size": e.pageSize,
|
|
11128
11145
|
"page-total": c.value,
|
|
@@ -11131,6 +11148,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11131
11148
|
"sub-actions": e.subActions,
|
|
11132
11149
|
"actions-max-count": e.actionsMaxCount,
|
|
11133
11150
|
"actions-label": e.actionsLabel,
|
|
11151
|
+
"action-filter": e.actionFilter,
|
|
11134
11152
|
"highlight-mode": e.highlightMode,
|
|
11135
11153
|
"load-children": e.loadChildren,
|
|
11136
11154
|
onLoadPageData: ot,
|
|
@@ -11156,9 +11174,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11156
11174
|
"sub-actions",
|
|
11157
11175
|
"actions-max-count",
|
|
11158
11176
|
"actions-label",
|
|
11177
|
+
"action-filter",
|
|
11159
11178
|
"highlight-mode",
|
|
11160
11179
|
"load-children"
|
|
11161
|
-
])])]), e.showFilterButton && C.value && !w.value ? (_(),
|
|
11180
|
+
])])]), e.showFilterButton && C.value && !w.value ? (_(), O("div", My, [Y(Mr, {
|
|
11162
11181
|
ref_key: "filterPanelRef",
|
|
11163
11182
|
ref: A,
|
|
11164
11183
|
"is-pin": C.value,
|
|
@@ -11187,7 +11206,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11187
11206
|
},
|
|
11188
11207
|
emits: ["update:modelValue", "change"],
|
|
11189
11208
|
setup(e, { emit: t }) {
|
|
11190
|
-
const n = e, a = t, { t: o } =
|
|
11209
|
+
const n = e, a = t, { t: o } = jt(), i = j(""), l = P(() => i.value === "" ? n.options : n.options.filter((c) => (c.label || "").includes(i.value))), r = P(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), s = (c) => {
|
|
11191
11210
|
if (c.disabled || r.value.includes(c.value)) return;
|
|
11192
11211
|
const u = [...r.value, c.value].join(",");
|
|
11193
11212
|
a("update:modelValue", u), a("change", {
|
|
@@ -11226,7 +11245,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11226
11245
|
}, {
|
|
11227
11246
|
prefix: V(() => [Y(f, { icon: "mdi:search" })]),
|
|
11228
11247
|
_: 1
|
|
11229
|
-
}, 8, ["modelValue", "placeholder"])]), $("div", Hy, [(_(!0),
|
|
11248
|
+
}, 8, ["modelValue", "placeholder"])]), $("div", Hy, [(_(!0), O(ge, null, ke(l.value, (g) => (_(), O("div", {
|
|
11230
11249
|
key: g.value,
|
|
11231
11250
|
class: De(["option-item", { active: r.value.includes(g.value) || g.disabled }]),
|
|
11232
11251
|
onClick: Ot((v) => s(g), ["stop"])
|
|
@@ -11359,11 +11378,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11359
11378
|
},
|
|
11360
11379
|
emits: ["node-drop"],
|
|
11361
11380
|
setup(e, { expose: t, emit: n }) {
|
|
11362
|
-
const a = e, o = n, { useData: i, t: l } =
|
|
11381
|
+
const a = e, o = n, { useData: i, t: l } = jt(), { getTreeData: r, loadData: s } = i(), c = j(), u = j(!1), d = j(""), f = j([]), h = {
|
|
11363
11382
|
children: "children",
|
|
11364
11383
|
label: "label",
|
|
11365
11384
|
disabled: "disabled"
|
|
11366
|
-
}, p =
|
|
11385
|
+
}, p = P(() => r ? r({
|
|
11367
11386
|
dataType: a.dataType,
|
|
11368
11387
|
dataCode: a.dataCode,
|
|
11369
11388
|
labelKey: a.labelKey,
|
|
@@ -11371,13 +11390,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11371
11390
|
pidKey: a.pidKey,
|
|
11372
11391
|
idKey: a.idKey,
|
|
11373
11392
|
notLoad: !0
|
|
11374
|
-
}) || [] : []), g =
|
|
11393
|
+
}) || [] : []), g = P(() => a.dataCode || a.dataType ? p.value : a.list ? G(a.list) : f.value), v = async () => {
|
|
11375
11394
|
u.value = !0, a.loadData && (f.value = await a.loadData() || []), s && await s(a.dataType, a.dataCode), u.value = !1, At(() => {
|
|
11376
11395
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
11377
11396
|
});
|
|
11378
|
-
},
|
|
11397
|
+
}, b = (N, A = !0) => {
|
|
11379
11398
|
c.value?.setCurrentKey(N, A);
|
|
11380
|
-
}, w = () => c.value?.getCurrentKey(),
|
|
11399
|
+
}, w = () => c.value?.getCurrentKey(), m = (N, A = !1) => {
|
|
11381
11400
|
c.value?.setCheckedKeys(N, A);
|
|
11382
11401
|
}, x = (N = !1) => c.value?.getCheckedKeys(N), E = async (N, A, C, F) => {
|
|
11383
11402
|
if (d.value = N.value, a.nodeClickFlow && a.runFlow) {
|
|
@@ -11418,13 +11437,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11418
11437
|
v();
|
|
11419
11438
|
}), t({
|
|
11420
11439
|
refreshData: v,
|
|
11421
|
-
setValue:
|
|
11440
|
+
setValue: b,
|
|
11422
11441
|
getValue: w,
|
|
11423
|
-
setCheck:
|
|
11442
|
+
setCheck: m,
|
|
11424
11443
|
getCheck: x
|
|
11425
11444
|
}), (N, A) => {
|
|
11426
11445
|
const C = B("j-icon"), F = B("j-button"), X = B("el-dropdown-item"), le = B("el-dropdown-menu"), me = B("el-dropdown"), Te = B("el-tree"), Ne = B("el-empty"), dt = _i("loading");
|
|
11427
|
-
return Sn((_(),
|
|
11446
|
+
return Sn((_(), O("div", {
|
|
11428
11447
|
class: De([
|
|
11429
11448
|
"j-block",
|
|
11430
11449
|
"j-tree",
|
|
@@ -11470,13 +11489,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11470
11489
|
color: oe.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
11471
11490
|
}, null, 8, ["icon", "color"])) : K("", !0),
|
|
11472
11491
|
$("div", $y, ve(oe.label), 1),
|
|
11473
|
-
S(oe.data).length ? (_(),
|
|
11492
|
+
S(oe.data).length ? (_(), O("div", Dy, [(_(!0), O(ge, null, ke(S(oe.data), (Ge, Ze) => (_(), H(me, {
|
|
11474
11493
|
key: Ze,
|
|
11475
11494
|
trigger: "click",
|
|
11476
11495
|
onVisibleChange: (Ae) => D(Ae, oe.data)
|
|
11477
11496
|
}, {
|
|
11478
11497
|
dropdown: V(() => [Y(le, null, {
|
|
11479
|
-
default: V(() => [(_(!0),
|
|
11498
|
+
default: V(() => [(_(!0), O(ge, null, ke(Ge.children, (Ae, nt) => (_(), H(X, {
|
|
11480
11499
|
key: nt,
|
|
11481
11500
|
disabled: Ae.disabled,
|
|
11482
11501
|
divided: Ae.divided,
|
|
@@ -11519,7 +11538,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11519
11538
|
"render-after-expand",
|
|
11520
11539
|
"draggable",
|
|
11521
11540
|
"expand-on-click-node"
|
|
11522
|
-
])) : (_(),
|
|
11541
|
+
])) : (_(), O("div", Fy, [Y(Ne, { description: G(l)(e.emptyDes) }, null, 8, ["description"])]))], 2)), [[dt, u.value]]);
|
|
11523
11542
|
};
|
|
11524
11543
|
}
|
|
11525
11544
|
}), Ny = Vy, Wy = he(Ny), Uy = /* @__PURE__ */ se({
|
|
@@ -11587,7 +11606,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11587
11606
|
idKey: "j_AreaId",
|
|
11588
11607
|
pidKey: "j_ParentId"
|
|
11589
11608
|
}
|
|
11590
|
-
}, { useData: o } =
|
|
11609
|
+
}, { useData: o } = jt(), { getTreeData: i } = o(), l = P(() => i ? i({
|
|
11591
11610
|
dataType: n.dataType,
|
|
11592
11611
|
dataCode: n.dataCode,
|
|
11593
11612
|
labelKey: n.labelKey || a[n.dataType]?.label || "label",
|
|
@@ -11595,7 +11614,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11595
11614
|
pidKey: n.pidKey || a[n.dataType]?.pidKey || "pid",
|
|
11596
11615
|
idKey: n.idKey || a[n.dataType]?.idKey || "id",
|
|
11597
11616
|
notLoad: !1
|
|
11598
|
-
}) || [] : [])
|
|
11617
|
+
}) || [] : []), r = P(() => n.dataCode || n.dataType ? l.value : n.options || []), s = t, c = P({
|
|
11599
11618
|
get() {
|
|
11600
11619
|
return n.modelValue;
|
|
11601
11620
|
},
|
|
@@ -11710,12 +11729,12 @@ var Qy = /* @__PURE__ */ se({
|
|
|
11710
11729
|
},
|
|
11711
11730
|
emits: ["change"],
|
|
11712
11731
|
setup(e, { expose: t, emit: n }) {
|
|
11713
|
-
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } =
|
|
11732
|
+
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } = jt();
|
|
11714
11733
|
let p;
|
|
11715
11734
|
i && (p = i());
|
|
11716
11735
|
const g = (J) => {
|
|
11717
11736
|
d && d(J);
|
|
11718
|
-
}, v = j(!1),
|
|
11737
|
+
}, v = j(!1), b = P(() => a.config?.gutter || 16), w = P(() => a.config?.span || 24), m = P(() => a.config?.labelWidth), x = P(() => a.config?.labelPosition || "right"), E = P(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), y = da({}), k = j({}), S = [], T = {}, R = j({});
|
|
11719
11738
|
let M = {}, D = {}, L = [], N = {};
|
|
11720
11739
|
const A = (J) => {
|
|
11721
11740
|
v.value && X && (J.getTableData || xr(X, J.id, J.formData[J.id])), o("change", J);
|
|
@@ -11986,9 +12005,9 @@ var Qy = /* @__PURE__ */ se({
|
|
|
11986
12005
|
compsConfig: R,
|
|
11987
12006
|
errorFields: k,
|
|
11988
12007
|
isAutoWindow: E,
|
|
11989
|
-
gutter:
|
|
12008
|
+
gutter: b,
|
|
11990
12009
|
span: w,
|
|
11991
|
-
labelWidth:
|
|
12010
|
+
labelWidth: m,
|
|
11992
12011
|
labelPosition: x,
|
|
11993
12012
|
getValue: Lt,
|
|
11994
12013
|
formChange: A
|
|
@@ -12012,16 +12031,16 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12012
12031
|
"j-form"
|
|
12013
12032
|
]),
|
|
12014
12033
|
"label-position": x.value,
|
|
12015
|
-
"label-width":
|
|
12034
|
+
"label-width": m.value,
|
|
12016
12035
|
size: e.config?.size,
|
|
12017
12036
|
onSubmit: ce[0] || (ce[0] = Ot(() => {
|
|
12018
12037
|
}, ["prevent"]))
|
|
12019
12038
|
}, {
|
|
12020
12039
|
default: V(() => [E.value ? (_(), H(Z, ze({ key: 0 }, S[0], { "is-not-col": "" }), null, 16)) : (_(), H(ee, {
|
|
12021
12040
|
key: 1,
|
|
12022
|
-
gutter:
|
|
12041
|
+
gutter: b.value
|
|
12023
12042
|
}, {
|
|
12024
|
-
default: V(() => [(_(),
|
|
12043
|
+
default: V(() => [(_(), O(ge, null, ke(S, (Se) => Y(Z, ze({
|
|
12025
12044
|
key: Se.id,
|
|
12026
12045
|
ref_for: !0
|
|
12027
12046
|
}, Se), null, 16)), 64))]),
|
|
@@ -12057,14 +12076,14 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12057
12076
|
const n = e, a = j(!1), o = da([]), i = {}, l = da({}), r = (p, g) => {
|
|
12058
12077
|
p.forEach((v) => {
|
|
12059
12078
|
v.id = v.id || Pl("c");
|
|
12060
|
-
const
|
|
12079
|
+
const b = {
|
|
12061
12080
|
id: v.id,
|
|
12062
12081
|
slot: v.slot,
|
|
12063
12082
|
type: v.type || "",
|
|
12064
12083
|
getCompConfig: v.getCompConfig,
|
|
12065
12084
|
getCompType: v.getCompType
|
|
12066
12085
|
}, { children: w } = v;
|
|
12067
|
-
i[v.id] =
|
|
12086
|
+
i[v.id] = b, b.config = [], ui(b.config, v.config || {}, ["defaultValue"]), v?.config?.defaultValue !== void 0 && (l[v.id] = v.config.defaultValue), g.push(b), w && w.length > 0 && (b.children = [], r(w, b.children));
|
|
12068
12087
|
});
|
|
12069
12088
|
}, s = (p) => {
|
|
12070
12089
|
a.value = !1, o.splice(0, o.length), so(i), so(l), r(p, o), At(() => {
|
|
@@ -12072,17 +12091,17 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12072
12091
|
});
|
|
12073
12092
|
};
|
|
12074
12093
|
n.schema && s(n.schema);
|
|
12075
|
-
const c = new uc(), u = /* @__PURE__ */ new Map(), d = (p, g, v, ...
|
|
12094
|
+
const c = new uc(), u = /* @__PURE__ */ new Map(), d = (p, g, v, ...b) => {
|
|
12076
12095
|
if (v?.immediate) {
|
|
12077
12096
|
const w = u.get(p) || /* @__PURE__ */ new Map();
|
|
12078
|
-
w.set(g,
|
|
12097
|
+
w.set(g, b), u.set(p, w);
|
|
12079
12098
|
}
|
|
12080
|
-
return c.emit(p, g, ...
|
|
12099
|
+
return c.emit(p, g, ...b);
|
|
12081
12100
|
}, f = (p, g) => {
|
|
12082
12101
|
c.on(p, g);
|
|
12083
12102
|
const v = u.get(p);
|
|
12084
|
-
v && (u.delete(p), v.forEach((
|
|
12085
|
-
g(w, ...
|
|
12103
|
+
v && (u.delete(p), v.forEach((b, w) => {
|
|
12104
|
+
g(w, ...b || []);
|
|
12086
12105
|
}));
|
|
12087
12106
|
}, h = (p, g) => {
|
|
12088
12107
|
c.off(p, g);
|
|
@@ -12096,12 +12115,12 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12096
12115
|
off: h
|
|
12097
12116
|
}), (p, g) => {
|
|
12098
12117
|
const v = B("j-comp");
|
|
12099
|
-
return _(),
|
|
12100
|
-
key:
|
|
12101
|
-
id:
|
|
12102
|
-
type:
|
|
12103
|
-
config:
|
|
12104
|
-
children:
|
|
12118
|
+
return _(), O("div", am, [(_(!0), O(ge, null, ke(o, (b) => (_(), H(v, {
|
|
12119
|
+
key: b.id,
|
|
12120
|
+
id: b.id,
|
|
12121
|
+
type: b.type,
|
|
12122
|
+
config: b.config,
|
|
12123
|
+
children: b.children
|
|
12105
12124
|
}, null, 8, [
|
|
12106
12125
|
"id",
|
|
12107
12126
|
"type",
|
|
@@ -12173,7 +12192,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12173
12192
|
};
|
|
12174
12193
|
return (a, o) => {
|
|
12175
12194
|
const i = B("j-button"), l = B("el-tooltip"), r = B("j-buttons");
|
|
12176
|
-
return _(),
|
|
12195
|
+
return _(), O("div", {
|
|
12177
12196
|
class: "j-block",
|
|
12178
12197
|
style: Re({
|
|
12179
12198
|
padding: e.noPadding ? void 0 : "4px",
|
|
@@ -12184,11 +12203,11 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12184
12203
|
class: "j-panel",
|
|
12185
12204
|
style: Re({ "border-radius": e.noPadding ? "0px" : "4px" })
|
|
12186
12205
|
}, [
|
|
12187
|
-
e.title && !e.notTitle || e.toolBtns && e.toolBtns.length > 0 ? (_(),
|
|
12206
|
+
e.title && !e.notTitle || e.toolBtns && e.toolBtns.length > 0 ? (_(), O("div", um, [e.notTitle ? K("", !0) : (_(), O("div", {
|
|
12188
12207
|
key: 0,
|
|
12189
12208
|
class: "j-panel-top-left",
|
|
12190
12209
|
title: e.title || ""
|
|
12191
|
-
}, [Ke(a.$slots, "title", {}, () => [$("span", fm, ve(e.title || ""), 1)])], 8, dm)), e.toolBtns && e.toolBtns.length > 0 ? (_(),
|
|
12210
|
+
}, [Ke(a.$slots, "title", {}, () => [$("span", fm, ve(e.title || ""), 1)])], 8, dm)), e.toolBtns && e.toolBtns.length > 0 ? (_(), O("span", hm, [(_(!0), O(ge, null, ke(e.toolBtns, (s) => (_(), H(l, {
|
|
12192
12211
|
key: s.id,
|
|
12193
12212
|
placement: "top",
|
|
12194
12213
|
content: s.label || ""
|
|
@@ -12204,7 +12223,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12204
12223
|
class: "j-panel-body",
|
|
12205
12224
|
style: Re(e.bodyStyle)
|
|
12206
12225
|
}, [Ke(a.$slots, "default")], 4),
|
|
12207
|
-
e.bootmBtns && e.bootmBtns.length > 0 || e.bootmRightBtns && e.bootmRightBtns.length > 0 ? (_(),
|
|
12226
|
+
e.bootmBtns && e.bootmBtns.length > 0 || e.bootmRightBtns && e.bootmRightBtns.length > 0 ? (_(), O("div", pm, [Y(r, { list: e.bootmBtns }, null, 8, ["list"]), Y(r, { list: e.bootmRightBtns }, null, 8, ["list"])])) : K("", !0)
|
|
12208
12227
|
], 4)], 4);
|
|
12209
12228
|
};
|
|
12210
12229
|
}
|
|
@@ -12257,7 +12276,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12257
12276
|
"rowChange"
|
|
12258
12277
|
],
|
|
12259
12278
|
setup(e, { emit: t }) {
|
|
12260
|
-
const n = (x) => x == null, a = e, o = t, { formData: i } = ha(), l =
|
|
12279
|
+
const n = (x) => x == null, a = e, o = t, { formData: i } = ha(), l = P(() => a.editConfig.isAddBtn !== !1), r = P(() => a.editConfig.addBtnText || "添加"), s = P(() => a.editConfig.buttonsAlign || "left"), c = P(() => a.editConfig.isRemoveBtn !== !1), u = P(() => a.editConfig.readonly), d = P(() => a.editConfig.drag), f = P(() => a.editConfig.isNullValue !== !1), h = j(), p = [
|
|
12261
12280
|
"A",
|
|
12262
12281
|
"B",
|
|
12263
12282
|
"C",
|
|
@@ -12292,7 +12311,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12292
12311
|
E._i || (E._i = Fn());
|
|
12293
12312
|
});
|
|
12294
12313
|
}, { deep: !0 });
|
|
12295
|
-
const
|
|
12314
|
+
const b = () => {
|
|
12296
12315
|
const x = { _i: Fn() };
|
|
12297
12316
|
a.columns.forEach((E) => {
|
|
12298
12317
|
const y = E.config?.valueRowKey || E.id || "";
|
|
@@ -12315,7 +12334,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12315
12334
|
tableData: g.value,
|
|
12316
12335
|
type: "delete"
|
|
12317
12336
|
});
|
|
12318
|
-
},
|
|
12337
|
+
}, m = (x) => {
|
|
12319
12338
|
o("rowChange", x);
|
|
12320
12339
|
};
|
|
12321
12340
|
return kt(() => {
|
|
@@ -12339,20 +12358,20 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12339
12358
|
E();
|
|
12340
12359
|
}), Si({
|
|
12341
12360
|
getTableData: () => g.value,
|
|
12342
|
-
rowChange:
|
|
12361
|
+
rowChange: m
|
|
12343
12362
|
}), (x, E) => {
|
|
12344
12363
|
const y = B("j-comp"), k = B("j-icon"), S = B("j-button");
|
|
12345
|
-
return _(),
|
|
12364
|
+
return _(), O("div", mm, [$("div", {
|
|
12346
12365
|
ref_key: "inputRowsRef",
|
|
12347
12366
|
ref: h,
|
|
12348
12367
|
class: "j-input-rows-container"
|
|
12349
|
-
}, [(_(!0),
|
|
12368
|
+
}, [(_(!0), O(ge, null, ke(g.value, (T, R) => (_(), O("div", {
|
|
12350
12369
|
key: T._i + R,
|
|
12351
12370
|
class: De([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
12352
12371
|
}, [
|
|
12353
|
-
e.showNum ? (_(),
|
|
12354
|
-
e.showChar ? (_(),
|
|
12355
|
-
(_(!0),
|
|
12372
|
+
e.showNum ? (_(), O("div", bm, ve(R + 1), 1)) : K("", !0),
|
|
12373
|
+
e.showChar ? (_(), O("div", wm, ve(p[R % 26]), 1)) : K("", !0),
|
|
12374
|
+
(_(!0), O(ge, null, ke(e.columns, (M) => (_(), H(y, ze({
|
|
12356
12375
|
key: M.id,
|
|
12357
12376
|
ref_for: !0
|
|
12358
12377
|
}, M, { row: T }), null, 16, ["row"]))), 128)),
|
|
@@ -12367,7 +12386,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12367
12386
|
class: "j-input-rows-delete",
|
|
12368
12387
|
onClick: (M) => w(R)
|
|
12369
12388
|
}, null, 8, ["onClick"])) : K("", !0)
|
|
12370
|
-
], 2))), 128))], 512), !u.value && l.value ? (_(),
|
|
12389
|
+
], 2))), 128))], 512), !u.value && l.value ? (_(), O("div", {
|
|
12371
12390
|
key: 0,
|
|
12372
12391
|
style: Re({ "text-align": s.value }),
|
|
12373
12392
|
class: "j-input-rows-actions"
|
|
@@ -12377,7 +12396,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12377
12396
|
style: { "margin-right": "8px" },
|
|
12378
12397
|
label: r.value,
|
|
12379
12398
|
icon: "mdi:add",
|
|
12380
|
-
onClick:
|
|
12399
|
+
onClick: b
|
|
12381
12400
|
}, null, 8, ["label"])) : K("", !0)], 4)) : K("", !0)]);
|
|
12382
12401
|
};
|
|
12383
12402
|
}
|
|
@@ -12441,14 +12460,14 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12441
12460
|
},
|
|
12442
12461
|
emits: ["update:modelValue", "change"],
|
|
12443
12462
|
setup(e, { emit: t }) {
|
|
12444
|
-
const n = (p) => !!(p == null || typeof p == "string" && p.trim() === "" || Array.isArray(p) && p.length === 0), a = e, o = t, i = j(), l = j(), r = j(""), s =
|
|
12463
|
+
const n = (p) => !!(p == null || typeof p == "string" && p.trim() === "" || Array.isArray(p) && p.length === 0), a = e, o = t, i = j(), l = j(), r = j(""), s = P({
|
|
12445
12464
|
get() {
|
|
12446
12465
|
return a.modelValue;
|
|
12447
12466
|
},
|
|
12448
12467
|
set(p) {
|
|
12449
12468
|
o("update:modelValue", p);
|
|
12450
12469
|
}
|
|
12451
|
-
}), c =
|
|
12470
|
+
}), c = P({
|
|
12452
12471
|
get() {
|
|
12453
12472
|
return n(s.value) ? "" : n(r.value) ? a.getText ? a.getText(s.value) : s.value : r.value;
|
|
12454
12473
|
},
|
|
@@ -12471,17 +12490,17 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12471
12490
|
const p = l.value.getSelection();
|
|
12472
12491
|
if (a.isMultiSelect) {
|
|
12473
12492
|
const g = [], v = [];
|
|
12474
|
-
p.forEach((
|
|
12475
|
-
const w =
|
|
12476
|
-
g.push(w != null ? String(w) : ""),
|
|
12493
|
+
p.forEach((b) => {
|
|
12494
|
+
const w = b[a.labelKey], m = b[a.valueKey];
|
|
12495
|
+
g.push(w != null ? String(w) : ""), m === 0 || m ? v.push(String(m)) : v.push("");
|
|
12477
12496
|
}), r.value = g.join(","), s.value = v.join(","), o("change", {
|
|
12478
12497
|
value: v.join(","),
|
|
12479
12498
|
data: p
|
|
12480
12499
|
});
|
|
12481
12500
|
} else if (p.length > 0) {
|
|
12482
|
-
const g = p[0], v = g[a.labelKey],
|
|
12501
|
+
const g = p[0], v = g[a.labelKey], b = g[a.valueKey];
|
|
12483
12502
|
r.value = v != null ? String(v) : "";
|
|
12484
|
-
const w =
|
|
12503
|
+
const w = b != null ? String(b) : "";
|
|
12485
12504
|
s.value = w, o("change", {
|
|
12486
12505
|
value: w,
|
|
12487
12506
|
data: g
|
|
@@ -12497,7 +12516,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12497
12516
|
};
|
|
12498
12517
|
return (p, g) => {
|
|
12499
12518
|
const v = B("el-input");
|
|
12500
|
-
return _(),
|
|
12519
|
+
return _(), O("div", Sm, [e.onlyButton ? (_(), H(G(rl), {
|
|
12501
12520
|
key: 1,
|
|
12502
12521
|
type: e.buttonType,
|
|
12503
12522
|
size: e.size,
|
|
@@ -12512,7 +12531,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12512
12531
|
])) : (_(), H(v, {
|
|
12513
12532
|
key: 0,
|
|
12514
12533
|
modelValue: c.value,
|
|
12515
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
12534
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => c.value = b),
|
|
12516
12535
|
placeholder: e.placeholder,
|
|
12517
12536
|
readonly: !0,
|
|
12518
12537
|
size: e.size,
|
|
@@ -12607,7 +12626,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12607
12626
|
}
|
|
12608
12627
|
},
|
|
12609
12628
|
setup(e) {
|
|
12610
|
-
const t = e, n = ha(), { t: a } =
|
|
12629
|
+
const t = e, n = ha(), { t: a } = jt(), o = P(() => t.formConfig?.gutter || 16), i = P(() => t.formConfig?.span || 24), l = P(() => t.formConfig?.labelWidth || n.labelWidth?.value), r = P(() => t.formConfig?.labelPosition || n.labelPosition?.value || "right"), s = P(() => t.schema?.length === 1 && (t.schema?.[0]?.type === "j-tabs" || t.schema?.[0]?.type === "j-layout" || t.schema?.[0]?.config?.isAutoWindow)), c = j(!1), u = () => {
|
|
12611
12630
|
c.value = !0;
|
|
12612
12631
|
};
|
|
12613
12632
|
return dc({
|
|
@@ -12617,8 +12636,8 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12617
12636
|
span: i,
|
|
12618
12637
|
labelWidth: l
|
|
12619
12638
|
}), (d, f) => {
|
|
12620
|
-
const h = B("j-button"), p = B("j-form-item"), g = B("el-row"), v = B("el-form"),
|
|
12621
|
-
return _(),
|
|
12639
|
+
const h = B("j-button"), p = B("j-form-item"), g = B("el-row"), v = B("el-form"), b = B("j-dialog");
|
|
12640
|
+
return _(), O("div", null, [Y(h, ze(d.$attrs, {
|
|
12622
12641
|
type: e.type,
|
|
12623
12642
|
size: e.size,
|
|
12624
12643
|
icon: e.icon,
|
|
@@ -12627,7 +12646,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12627
12646
|
"type",
|
|
12628
12647
|
"size",
|
|
12629
12648
|
"icon"
|
|
12630
|
-
]), Y(
|
|
12649
|
+
]), Y(b, {
|
|
12631
12650
|
visible: c.value,
|
|
12632
12651
|
"onUpdate:visible": f[1] || (f[1] = (w) => c.value = w),
|
|
12633
12652
|
title: G(a)(e.layerLabel || "设置"),
|
|
@@ -12647,7 +12666,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12647
12666
|
key: 1,
|
|
12648
12667
|
gutter: o.value
|
|
12649
12668
|
}, {
|
|
12650
|
-
default: V(() => [(_(!0),
|
|
12669
|
+
default: V(() => [(_(!0), O(ge, null, ke(e.schema, (w) => (_(), H(p, ze({
|
|
12651
12670
|
key: w.id,
|
|
12652
12671
|
ref_for: !0
|
|
12653
12672
|
}, w), null, 16))), 128))]),
|
|
@@ -12737,7 +12756,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12737
12756
|
},
|
|
12738
12757
|
emits: ["update:modelValue", "change"],
|
|
12739
12758
|
setup(e, { emit: t }) {
|
|
12740
|
-
const n = e, a = t, o =
|
|
12759
|
+
const n = e, a = t, o = P({
|
|
12741
12760
|
get() {
|
|
12742
12761
|
return n.modelValue;
|
|
12743
12762
|
},
|
|
@@ -12973,7 +12992,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
12973
12992
|
},
|
|
12974
12993
|
emits: ["update:value", "change"],
|
|
12975
12994
|
setup(e, { emit: t }) {
|
|
12976
|
-
const n = e, a = t, o = j(), i = j(), l = Ci(), r =
|
|
12995
|
+
const n = e, a = t, o = j(), i = j(), l = Ci(), r = P(() => ({
|
|
12977
12996
|
height: typeof n.height == "number" ? `${n.height}px` : n.height,
|
|
12978
12997
|
overflowY: "hidden"
|
|
12979
12998
|
}));
|
|
@@ -13026,7 +13045,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
13026
13045
|
}), vo(() => {
|
|
13027
13046
|
const d = l.value;
|
|
13028
13047
|
d?.destroy();
|
|
13029
|
-
}), (d, f) => (_(),
|
|
13048
|
+
}), (d, f) => (_(), O("div", Dm, [$("div", {
|
|
13030
13049
|
ref_key: "toolbarRef",
|
|
13031
13050
|
ref: i,
|
|
13032
13051
|
class: "j-editor-toolbar"
|
|
@@ -13069,8 +13088,8 @@ var Qy = /* @__PURE__ */ se({
|
|
|
13069
13088
|
i.value = !0;
|
|
13070
13089
|
try {
|
|
13071
13090
|
r = await jf(a.mapKey);
|
|
13072
|
-
} catch (
|
|
13073
|
-
console.error("Failed to load Baidu Map:",
|
|
13091
|
+
} catch (b) {
|
|
13092
|
+
console.error("Failed to load Baidu Map:", b), i.value = !1;
|
|
13074
13093
|
return;
|
|
13075
13094
|
}
|
|
13076
13095
|
if (s != null) {
|
|
@@ -13080,51 +13099,51 @@ var Qy = /* @__PURE__ */ se({
|
|
|
13080
13099
|
if (!l.value) return;
|
|
13081
13100
|
s = new r.Map(l.value, { enableMapClick: !1 });
|
|
13082
13101
|
const v = new r.Point(121.480248, 31.236276);
|
|
13083
|
-
s.centerAndZoom(v, 17), c = new r.Marker(v, { enableDragging: !0 }), s.addOverlay(c), c.addEventListener("dragend", (
|
|
13084
|
-
f(
|
|
13102
|
+
s.centerAndZoom(v, 17), c = new r.Marker(v, { enableDragging: !0 }), s.addOverlay(c), c.addEventListener("dragend", (b) => {
|
|
13103
|
+
f(b.point);
|
|
13085
13104
|
}), s.addControl(new r.NavigationControl({
|
|
13086
13105
|
anchor: window.BMAP_ANCHOR_TOP_RIGHT,
|
|
13087
13106
|
type: window.BMAP_NAVIGATION_CONTROL_SMALL
|
|
13088
|
-
})), u = new r.GeolocationControl({ anchor: window.BMAP_ANCHOR_BOTTOM_LEFT }), u.addEventListener("locationSuccess", (
|
|
13089
|
-
f(
|
|
13090
|
-
}), u.addEventListener("locationError", (
|
|
13091
|
-
alert(
|
|
13092
|
-
}), s.addControl(u), s.addEventListener("click", (
|
|
13093
|
-
f(
|
|
13107
|
+
})), u = new r.GeolocationControl({ anchor: window.BMAP_ANCHOR_BOTTOM_LEFT }), u.addEventListener("locationSuccess", (b) => {
|
|
13108
|
+
f(b.point);
|
|
13109
|
+
}), u.addEventListener("locationError", (b) => {
|
|
13110
|
+
alert(b.message);
|
|
13111
|
+
}), s.addControl(u), s.addEventListener("click", (b) => {
|
|
13112
|
+
f(b.point);
|
|
13094
13113
|
}), s.enableScrollWheelZoom(!0), h(a.lng, a.lat), i.value = !1;
|
|
13095
13114
|
}, f = (v) => {
|
|
13096
|
-
new r.Geocoder().getLocation(v, (
|
|
13097
|
-
c.setPosition(v), s.panTo(v), o("update:address",
|
|
13098
|
-
address:
|
|
13115
|
+
new r.Geocoder().getLocation(v, (b) => {
|
|
13116
|
+
c.setPosition(v), s.panTo(v), o("update:address", b.address), o("update:lng", v.lng), o("update:lat", v.lat), o("change", { value: {
|
|
13117
|
+
address: b.address,
|
|
13099
13118
|
lng: v.lng,
|
|
13100
13119
|
lat: v.lat
|
|
13101
13120
|
} });
|
|
13102
13121
|
});
|
|
13103
|
-
}, h = (v,
|
|
13104
|
-
if (v &&
|
|
13105
|
-
const w = new r.Point(v,
|
|
13122
|
+
}, h = (v, b) => {
|
|
13123
|
+
if (v && b && r) {
|
|
13124
|
+
const w = new r.Point(v, b);
|
|
13106
13125
|
c && c.setPosition(w), s && s.panTo(w);
|
|
13107
13126
|
}
|
|
13108
13127
|
};
|
|
13109
13128
|
let p = null;
|
|
13110
13129
|
return t({
|
|
13111
13130
|
setPoint: h,
|
|
13112
|
-
querySearchAsync: (v,
|
|
13131
|
+
querySearchAsync: (v, b) => {
|
|
13113
13132
|
!s || !r || (p || (p = new r.LocalSearch(s, { onSearchComplete: (w) => {
|
|
13114
|
-
const
|
|
13133
|
+
const m = [];
|
|
13115
13134
|
if (w) {
|
|
13116
13135
|
const x = w.getCurrentNumPois();
|
|
13117
|
-
for (let E = 0; E < x; E++)
|
|
13136
|
+
for (let E = 0; E < x; E++) m.push(w.getPoi(E));
|
|
13118
13137
|
}
|
|
13119
|
-
m
|
|
13138
|
+
b(m);
|
|
13120
13139
|
} })), p.search(v));
|
|
13121
13140
|
}
|
|
13122
13141
|
}), kt(() => {
|
|
13123
13142
|
d();
|
|
13124
|
-
}), (v,
|
|
13143
|
+
}), (v, b) => (_(), O("div", {
|
|
13125
13144
|
class: "j-map",
|
|
13126
13145
|
style: Re({ height: e.height })
|
|
13127
|
-
}, [i.value ? (_(),
|
|
13146
|
+
}, [i.value ? (_(), O("div", Wm, [Y(ua, {
|
|
13128
13147
|
icon: "mdi:loading",
|
|
13129
13148
|
class: "is-loading",
|
|
13130
13149
|
size: 30
|
|
@@ -13371,11 +13390,11 @@ function Sc(e, t, n) {
|
|
|
13371
13390
|
var T = S.element, R = S.gfx;
|
|
13372
13391
|
a.updateDefaultHit(T, R);
|
|
13373
13392
|
});
|
|
13374
|
-
var v = E("djs-hit djs-hit-stroke"),
|
|
13393
|
+
var v = E("djs-hit djs-hit-stroke"), b = E("djs-hit djs-hit-click-stroke"), w = E("djs-hit djs-hit-all"), m = E("djs-hit djs-hit-no-move"), x = {
|
|
13375
13394
|
all: w,
|
|
13376
|
-
"click-stroke":
|
|
13395
|
+
"click-stroke": b,
|
|
13377
13396
|
stroke: v,
|
|
13378
|
-
"no-move":
|
|
13397
|
+
"no-move": m
|
|
13379
13398
|
};
|
|
13380
13399
|
function E(S, T) {
|
|
13381
13400
|
return T = je({
|
|
@@ -13587,82 +13606,82 @@ function jc(e, t, n, a) {
|
|
|
13587
13606
|
threshold: 5,
|
|
13588
13607
|
trapClick: !0
|
|
13589
13608
|
}, i;
|
|
13590
|
-
function l(
|
|
13609
|
+
function l(m) {
|
|
13591
13610
|
var x = t.viewbox(), E = t._container.getBoundingClientRect();
|
|
13592
13611
|
return {
|
|
13593
|
-
x: x.x + (
|
|
13594
|
-
y: x.y + (
|
|
13612
|
+
x: x.x + (m.x - E.left) / x.scale,
|
|
13613
|
+
y: x.y + (m.y - E.top) / x.scale
|
|
13595
13614
|
};
|
|
13596
13615
|
}
|
|
13597
|
-
function r(
|
|
13616
|
+
function r(m, x) {
|
|
13598
13617
|
x = x || i;
|
|
13599
13618
|
var E = e.createEvent(je({}, x.payload, x.data, { isTouch: x.isTouch }));
|
|
13600
|
-
return e.fire("drag." +
|
|
13619
|
+
return e.fire("drag." + m, E) === !1 ? !1 : e.fire(x.prefix + "." + m, E);
|
|
13601
13620
|
}
|
|
13602
|
-
function s(
|
|
13603
|
-
var x =
|
|
13621
|
+
function s(m) {
|
|
13622
|
+
var x = m.filter(function(E) {
|
|
13604
13623
|
return a.get(E.id);
|
|
13605
13624
|
});
|
|
13606
13625
|
x.length && n.select(x);
|
|
13607
13626
|
}
|
|
13608
|
-
function c(
|
|
13609
|
-
var E = i.payload, y = i.displacement, k = i.globalStart, S = Pa(
|
|
13627
|
+
function c(m, x) {
|
|
13628
|
+
var E = i.payload, y = i.displacement, k = i.globalStart, S = Pa(m), T = Ta(S, k), R = i.localStart, M = l(S), D = Ta(M, R);
|
|
13610
13629
|
if (!i.active && (x || ib(T) > i.threshold)) {
|
|
13611
13630
|
if (je(E, {
|
|
13612
13631
|
x: ka(R.x + y.x),
|
|
13613
13632
|
y: ka(R.y + y.y),
|
|
13614
13633
|
dx: 0,
|
|
13615
13634
|
dy: 0
|
|
13616
|
-
}, { originalEvent:
|
|
13635
|
+
}, { originalEvent: m }), r("start") === !1) return v();
|
|
13617
13636
|
i.active = !0, i.keepSelection || (E.previousSelection = n.get(), n.select(null)), i.cursor && Bl(i.cursor), t.addMarker(t.getRootElement(), Lr);
|
|
13618
13637
|
}
|
|
13619
|
-
Yi(
|
|
13638
|
+
Yi(m), i.active && (je(E, {
|
|
13620
13639
|
x: ka(M.x + y.x),
|
|
13621
13640
|
y: ka(M.y + y.y),
|
|
13622
13641
|
dx: ka(D.x),
|
|
13623
13642
|
dy: ka(D.y)
|
|
13624
|
-
}, { originalEvent:
|
|
13643
|
+
}, { originalEvent: m }), r("move"));
|
|
13625
13644
|
}
|
|
13626
|
-
function u(
|
|
13645
|
+
function u(m) {
|
|
13627
13646
|
var x, E = !0;
|
|
13628
|
-
i.active && (
|
|
13647
|
+
i.active && (m && (i.payload.originalEvent = m, Yi(m)), E = r("end")), E === !1 && r("rejected"), x = b(E !== !0), r("ended", x);
|
|
13629
13648
|
}
|
|
13630
|
-
function d(
|
|
13631
|
-
Ac("Escape",
|
|
13649
|
+
function d(m) {
|
|
13650
|
+
Ac("Escape", m) && (oa(m), v());
|
|
13632
13651
|
}
|
|
13633
|
-
function f(
|
|
13652
|
+
function f(m) {
|
|
13634
13653
|
var x;
|
|
13635
|
-
i.active && (x = Tc(e), setTimeout(x, 400), oa(
|
|
13654
|
+
i.active && (x = Tc(e), setTimeout(x, 400), oa(m)), u(m);
|
|
13636
13655
|
}
|
|
13637
|
-
function h(
|
|
13638
|
-
c(
|
|
13656
|
+
function h(m) {
|
|
13657
|
+
c(m);
|
|
13639
13658
|
}
|
|
13640
|
-
function p(
|
|
13659
|
+
function p(m) {
|
|
13641
13660
|
var x = i.payload;
|
|
13642
|
-
x.hoverGfx =
|
|
13661
|
+
x.hoverGfx = m.gfx, x.hover = m.element, r("hover");
|
|
13643
13662
|
}
|
|
13644
|
-
function g(
|
|
13663
|
+
function g(m) {
|
|
13645
13664
|
r("out");
|
|
13646
13665
|
var x = i.payload;
|
|
13647
13666
|
x.hoverGfx = null, x.hover = null;
|
|
13648
13667
|
}
|
|
13649
|
-
function v(
|
|
13668
|
+
function v(m) {
|
|
13650
13669
|
var x;
|
|
13651
13670
|
if (i) {
|
|
13652
13671
|
var E = i.active;
|
|
13653
|
-
E && r("cancel"), x = m
|
|
13672
|
+
E && r("cancel"), x = b(m), E && r("canceled", x);
|
|
13654
13673
|
}
|
|
13655
13674
|
}
|
|
13656
|
-
function m
|
|
13675
|
+
function b(m) {
|
|
13657
13676
|
var x, E;
|
|
13658
13677
|
r("cleanup"), Rc(), i.trapClick ? E = f : E = u, Qe.unbind(document, "mousemove", c), Qe.unbind(document, "dragstart", oa), Qe.unbind(document, "selectstart", oa), Qe.unbind(document, "mousedown", E, !0), Qe.unbind(document, "mouseup", E, !0), Qe.unbind(document, "keyup", d), Qe.unbind(document, "touchstart", h, !0), Qe.unbind(document, "touchcancel", v, !0), Qe.unbind(document, "touchmove", c, !0), Qe.unbind(document, "touchend", u, !0), e.off("element.hover", p), e.off("element.out", g), t.removeMarker(t.getRootElement(), Lr);
|
|
13659
13678
|
var y = i.payload.previousSelection;
|
|
13660
|
-
return
|
|
13679
|
+
return m !== !1 && y && !n.get().length && s(y), x = i, i = null, x;
|
|
13661
13680
|
}
|
|
13662
|
-
function w(
|
|
13681
|
+
function w(m, x, E, y) {
|
|
13663
13682
|
i && v(!1), typeof x == "string" && (y = E, E = x, x = null), y = je({}, o, y || {});
|
|
13664
13683
|
var k = y.data || {}, S, T, R, M, D;
|
|
13665
|
-
y.trapClick ? M = f : M = u,
|
|
13684
|
+
y.trapClick ? M = f : M = u, m ? (S = Ha(m) || m, T = Pa(m), Yi(m), S.type === "dragstart" && oa(S)) : (S = null, T = {
|
|
13666
13685
|
x: 0,
|
|
13667
13686
|
y: 0
|
|
13668
13687
|
}), R = l(T), x || (x = R), D = ob(S), i = je({
|
|
@@ -13673,12 +13692,12 @@ function jc(e, t, n, a) {
|
|
|
13673
13692
|
displacement: Ta(x, R),
|
|
13674
13693
|
localStart: R,
|
|
13675
13694
|
isTouch: D
|
|
13676
|
-
}, y), y.manual || (D ? (Qe.bind(document, "touchstart", h, !0), Qe.bind(document, "touchcancel", v, !0), Qe.bind(document, "touchmove", c, !0), Qe.bind(document, "touchend", u, !0)) : (Qe.bind(document, "mousemove", c), Qe.bind(document, "dragstart", oa), Qe.bind(document, "selectstart", oa), Qe.bind(document, "mousedown", M, !0), Qe.bind(document, "mouseup", M, !0)), Qe.bind(document, "keyup", d), e.on("element.hover", p), e.on("element.out", g)), r("init"), y.autoActivate && c(
|
|
13695
|
+
}, y), y.manual || (D ? (Qe.bind(document, "touchstart", h, !0), Qe.bind(document, "touchcancel", v, !0), Qe.bind(document, "touchmove", c, !0), Qe.bind(document, "touchend", u, !0)) : (Qe.bind(document, "mousemove", c), Qe.bind(document, "dragstart", oa), Qe.bind(document, "selectstart", oa), Qe.bind(document, "mousedown", M, !0), Qe.bind(document, "mouseup", M, !0)), Qe.bind(document, "keyup", d), e.on("element.hover", p), e.on("element.out", g)), r("init"), y.autoActivate && c(m, !0);
|
|
13677
13696
|
}
|
|
13678
13697
|
e.on("diagram.destroy", v), this.init = w, this.move = c, this.hover = p, this.out = g, this.end = u, this.cancel = v, this.context = function() {
|
|
13679
13698
|
return i;
|
|
13680
|
-
}, this.setOptions = function(
|
|
13681
|
-
je(o,
|
|
13699
|
+
}, this.setOptions = function(m) {
|
|
13700
|
+
je(o, m);
|
|
13682
13701
|
};
|
|
13683
13702
|
}
|
|
13684
13703
|
jc.$inject = [
|
|
@@ -13897,8 +13916,8 @@ function Oc(e, t, n, a, o) {
|
|
|
13897
13916
|
function i(s, c, u, d, f) {
|
|
13898
13917
|
if (!c) return !1;
|
|
13899
13918
|
s = an(s, function(w) {
|
|
13900
|
-
var
|
|
13901
|
-
return !w.parent && !(Oa(w) && s.indexOf(
|
|
13919
|
+
var m = w.labelTarget;
|
|
13920
|
+
return !w.parent && !(Oa(w) && s.indexOf(m) !== -1);
|
|
13902
13921
|
});
|
|
13903
13922
|
var h = vn(s, function(w) {
|
|
13904
13923
|
return !Ut(w);
|
|
@@ -13917,10 +13936,10 @@ function Oc(e, t, n, a, o) {
|
|
|
13917
13936
|
position: u,
|
|
13918
13937
|
target: c
|
|
13919
13938
|
}));
|
|
13920
|
-
var
|
|
13939
|
+
var b = f.connectionTarget;
|
|
13921
13940
|
return v || p ? (h && d && (g = o.allowed("connection.create", {
|
|
13922
|
-
source:
|
|
13923
|
-
target:
|
|
13941
|
+
source: b === d ? h : d,
|
|
13942
|
+
target: b === d ? d : h,
|
|
13924
13943
|
hints: {
|
|
13925
13944
|
targetParent: c,
|
|
13926
13945
|
targetAttach: p
|
|
@@ -13960,7 +13979,7 @@ function Oc(e, t, n, a, o) {
|
|
|
13960
13979
|
var c = s.hover;
|
|
13961
13980
|
c && l(c, null);
|
|
13962
13981
|
}), n.on("create.end", function(s) {
|
|
13963
|
-
var c = s.context, u = c.source, d = c.shape, f = c.elements, h = c.target, p = c.canExecute, g = p && p.attach, v = p && p.connect,
|
|
13982
|
+
var c = s.context, u = c.source, d = c.shape, f = c.elements, h = c.target, p = c.canExecute, g = p && p.attach, v = p && p.connect, b = c.hints || {};
|
|
13964
13983
|
if (p === !1 || !h) return !1;
|
|
13965
13984
|
Nr(s);
|
|
13966
13985
|
var w = {
|
|
@@ -13970,9 +13989,9 @@ function Oc(e, t, n, a, o) {
|
|
|
13970
13989
|
v ? d = a.appendShape(u, d, w, h, {
|
|
13971
13990
|
attach: g,
|
|
13972
13991
|
connection: v === !0 ? {} : v,
|
|
13973
|
-
connectionTarget:
|
|
13974
|
-
}) : (f = a.createElements(f, w, h, je({},
|
|
13975
|
-
return !Ut(
|
|
13992
|
+
connectionTarget: b.connectionTarget
|
|
13993
|
+
}) : (f = a.createElements(f, w, h, je({}, b, { attach: g })), d = vn(f, function(m) {
|
|
13994
|
+
return !Ut(m);
|
|
13976
13995
|
})), je(c, {
|
|
13977
13996
|
elements: f,
|
|
13978
13997
|
shape: d
|
|
@@ -14251,7 +14270,7 @@ function Zr(e, t, n, a, o, i, l, r, s) {
|
|
|
14251
14270
|
0.0472,
|
|
14252
14271
|
0.0472
|
|
14253
14272
|
], h = 0, p = 0; p < u; p++) {
|
|
14254
|
-
var g = c * d[p] + c, v = qr(g, e, n, o, l),
|
|
14273
|
+
var g = c * d[p] + c, v = qr(g, e, n, o, l), b = qr(g, t, a, i, r), w = v * v + b * b;
|
|
14255
14274
|
h += f[p] * St.sqrt(w);
|
|
14256
14275
|
}
|
|
14257
14276
|
return c * h;
|
|
@@ -14290,11 +14309,11 @@ function $b(e, t, n) {
|
|
|
14290
14309
|
t: d / l
|
|
14291
14310
|
};
|
|
14292
14311
|
for (d = 0; d < i; d++) for (f = 0; f < l; f++) {
|
|
14293
|
-
var p = r[d], g = r[d + 1], v = s[f],
|
|
14312
|
+
var p = r[d], g = r[d + 1], v = s[f], b = s[f + 1], w = Dn(g.x - p.x) < 0.01 ? "y" : "x", m = Dn(b.x - v.x) < 0.01 ? "y" : "x", x = zb(p.x, p.y, g.x, g.y, v.x, v.y, b.x, b.y), E;
|
|
14294
14313
|
if (x) {
|
|
14295
14314
|
if (E = x.x.toFixed(9) + "#" + x.y.toFixed(9), c[E]) continue;
|
|
14296
14315
|
c[E] = !0;
|
|
14297
|
-
var y = p.t + Dn((x[w] - p[w]) / (g[w] - p[w])) * (g.t - p.t), k = v.t + Dn((x[
|
|
14316
|
+
var y = p.t + Dn((x[w] - p[w]) / (g[w] - p[w])) * (g.t - p.t), k = v.t + Dn((x[m] - v[m]) / (b[m] - v[m])) * (b.t - v.t);
|
|
14298
14317
|
y >= 0 && y <= 1 && k >= 0 && k <= 1 && (n ? u++ : u.push({
|
|
14299
14318
|
x: x.x,
|
|
14300
14319
|
y: x.y,
|
|
@@ -14326,15 +14345,15 @@ function Bc(e, t, n) {
|
|
|
14326
14345
|
r,
|
|
14327
14346
|
s
|
|
14328
14347
|
], a = r, o = s);
|
|
14329
|
-
for (var
|
|
14330
|
-
var
|
|
14331
|
-
if (
|
|
14332
|
-
i = c =
|
|
14348
|
+
for (var b = 0, w = t.length; b < w; b++) {
|
|
14349
|
+
var m = t[b];
|
|
14350
|
+
if (m[0] == "M")
|
|
14351
|
+
i = c = m[1], l = u = m[2];
|
|
14333
14352
|
else {
|
|
14334
|
-
|
|
14353
|
+
m[0] == "C" ? (f = [
|
|
14335
14354
|
i,
|
|
14336
14355
|
l,
|
|
14337
|
-
...
|
|
14356
|
+
...m.slice(1)
|
|
14338
14357
|
], i = f[6], l = f[7]) : (f = [
|
|
14339
14358
|
i,
|
|
14340
14359
|
l,
|
|
@@ -14349,7 +14368,7 @@ function Bc(e, t, n) {
|
|
|
14349
14368
|
if (n) h += x;
|
|
14350
14369
|
else {
|
|
14351
14370
|
for (var E = 0, y = x.length; E < y; E++)
|
|
14352
|
-
x[E].segment1 = p, x[E].segment2 =
|
|
14371
|
+
x[E].segment1 = p, x[E].segment2 = b, x[E].bez1 = d, x[E].bez2 = f;
|
|
14353
14372
|
h = h.concat(x);
|
|
14354
14373
|
}
|
|
14355
14374
|
}
|
|
@@ -14440,9 +14459,9 @@ function Lc(e, t, n, a, o, i, l, r, s, c) {
|
|
|
14440
14459
|
k = c[0], S = c[1], E = c[2], y = c[3];
|
|
14441
14460
|
else {
|
|
14442
14461
|
h = p(e, t, -d), e = h.x, t = h.y, h = p(r, s, -d), r = h.x, s = h.y;
|
|
14443
|
-
var g = (e - r) / 2, v = (t - s) / 2,
|
|
14444
|
-
|
|
14445
|
-
var w = n * n,
|
|
14462
|
+
var g = (e - r) / 2, v = (t - s) / 2, b = g * g / (n * n) + v * v / (a * a);
|
|
14463
|
+
b > 1 && (b = St.sqrt(b), n = b * n, a = b * a);
|
|
14464
|
+
var w = n * n, m = a * a, x = (i == l ? -1 : 1) * St.sqrt(Dn((w * m - w * v * v - m * g * g) / (w * v * v + m * g * g))), E = x * n * v / a + (e + r) / 2, y = x * -a * g / n + (t + s) / 2, k = St.asin(((t - y) / a).toFixed(9)), S = St.asin(((s - y) / a).toFixed(9));
|
|
14446
14465
|
k = e < E ? Hn - k : k, S = r < E ? Hn - S : S, k < 0 && (k = Hn * 2 + k), S < 0 && (S = Hn * 2 + S), l && k > S && (k = k - Hn * 2), !l && S > k && (S = S - Hn * 2);
|
|
14447
14466
|
}
|
|
14448
14467
|
var T = S - k;
|
|
@@ -14471,16 +14490,16 @@ function Lc(e, t, n, a, o, i, l, r, s, c) {
|
|
|
14471
14490
|
return oe;
|
|
14472
14491
|
}
|
|
14473
14492
|
function Vb(e, t, n, a, o, i, l, r) {
|
|
14474
|
-
for (var s = [], c = [[], []], u, d, f, h, p, g, v,
|
|
14493
|
+
for (var s = [], c = [[], []], u, d, f, h, p, g, v, b, w = 0; w < 2; ++w) {
|
|
14475
14494
|
if (w == 0 ? (d = 6 * e - 12 * n + 6 * o, u = -3 * e + 9 * n - 9 * o + 3 * l, f = 3 * n - 3 * e) : (d = 6 * t - 12 * a + 6 * i, u = -3 * t + 9 * a - 9 * i + 3 * r, f = 3 * a - 3 * t), Dn(u) < 1e-12) {
|
|
14476
14495
|
if (Dn(d) < 1e-12) continue;
|
|
14477
14496
|
h = -f / d, 0 < h && h < 1 && s.push(h);
|
|
14478
14497
|
continue;
|
|
14479
14498
|
}
|
|
14480
|
-
v = d * d - 4 * f * u,
|
|
14499
|
+
v = d * d - 4 * f * u, b = St.sqrt(v), !(v < 0) && (p = (-d + b) / (2 * u), 0 < p && p < 1 && s.push(p), g = (-d - b) / (2 * u), 0 < g && g < 1 && s.push(g));
|
|
14481
14500
|
}
|
|
14482
|
-
for (var
|
|
14483
|
-
h = s[
|
|
14501
|
+
for (var m = s.length, x = m, E; m--; )
|
|
14502
|
+
h = s[m], E = 1 - h, c[0][m] = E * E * E * e + 3 * E * E * h * n + 3 * E * h * h * o + h * h * h * l, c[1][m] = E * E * E * t + 3 * E * E * h * a + 3 * E * h * h * i + h * h * h * r;
|
|
14484
14503
|
return c[0][x] = e, c[1][x] = t, c[0][x + 1] = l, c[1][x + 1] = r, c[0].length = c[1].length = x + 2, {
|
|
14485
14504
|
x0: pn(...c[0]),
|
|
14486
14505
|
y0: pn(...c[1]),
|
|
@@ -15538,8 +15557,8 @@ var ss = {
|
|
|
15538
15557
|
};
|
|
15539
15558
|
ji.prototype.preExecute = function(e) {
|
|
15540
15559
|
var t = this._modeling, n = e.groups, a = e.axis, o = e.dimension;
|
|
15541
|
-
function i(v,
|
|
15542
|
-
v.range.min = Math.min(
|
|
15560
|
+
function i(v, b) {
|
|
15561
|
+
v.range.min = Math.min(b[a], v.range.min), v.range.max = Math.max(b[a] + b[o], v.range.max);
|
|
15543
15562
|
}
|
|
15544
15563
|
function l(v) {
|
|
15545
15564
|
return v[a] + v[o] / 2;
|
|
@@ -15550,18 +15569,18 @@ ji.prototype.preExecute = function(e) {
|
|
|
15550
15569
|
function s(v) {
|
|
15551
15570
|
return v.max - v.min;
|
|
15552
15571
|
}
|
|
15553
|
-
function c(v,
|
|
15572
|
+
function c(v, b) {
|
|
15554
15573
|
var w = { y: 0 };
|
|
15555
|
-
w[a] = v - l(
|
|
15574
|
+
w[a] = v - l(b), w[a] && (w[ss[a]] = 0, t.moveElements([b], w, b.parent));
|
|
15556
15575
|
}
|
|
15557
15576
|
var u = n[0], d = r(n), f = n[d], h, p, g = 0;
|
|
15558
|
-
ae(n, function(v,
|
|
15559
|
-
var w,
|
|
15577
|
+
ae(n, function(v, b) {
|
|
15578
|
+
var w, m, x;
|
|
15560
15579
|
if (v.elements.length < 2) {
|
|
15561
|
-
|
|
15580
|
+
b && b !== n.length - 1 && (i(v, v.elements[0]), g += s(v.range));
|
|
15562
15581
|
return;
|
|
15563
15582
|
}
|
|
15564
|
-
w = go(v.elements, a),
|
|
15583
|
+
w = go(v.elements, a), m = w[0], b === d && (m = w[r(w)]), x = l(m), v.range = null, ae(w, function(E) {
|
|
15565
15584
|
if (c(x, E), v.range === null) {
|
|
15566
15585
|
v.range = {
|
|
15567
15586
|
min: E[a],
|
|
@@ -15570,11 +15589,11 @@ ji.prototype.preExecute = function(e) {
|
|
|
15570
15589
|
return;
|
|
15571
15590
|
}
|
|
15572
15591
|
i(v, E);
|
|
15573
|
-
}),
|
|
15574
|
-
}), p = Math.abs(f.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) && ae(n, function(v,
|
|
15575
|
-
var w = {},
|
|
15576
|
-
v === u || v === f || (
|
|
15577
|
-
w[ss[a]] = 0, w[a] =
|
|
15592
|
+
}), b && b !== n.length - 1 && (g += s(v.range));
|
|
15593
|
+
}), p = Math.abs(f.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) && ae(n, function(v, b) {
|
|
15594
|
+
var w = {}, m;
|
|
15595
|
+
v === u || v === f || (m = n[b - 1], v.range.max = 0, ae(v.elements, function(x, E) {
|
|
15596
|
+
w[ss[a]] = 0, w[a] = m.range.max - x[a] + h, v.range.min !== x[a] && (w[a] += x[a] - v.range.min), w[a] && t.moveElements([x], w, x.parent), v.range.max = Math.max(x[a] + x[o], E ? v.range.max : 0);
|
|
15578
15597
|
}));
|
|
15579
15598
|
});
|
|
15580
15599
|
};
|
|
@@ -16995,7 +17014,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
16995
17014
|
r: Math.round((C + F) / 4 - X)
|
|
16996
17015
|
}), Ee(Ne, le), Ve(A, Ne), Ne;
|
|
16997
17016
|
}
|
|
16998
|
-
function
|
|
17017
|
+
function b(A, C, F, X, le, me) {
|
|
16999
17018
|
fs(le) && (me = le, le = 0), le = le || 0, me = u(me, {
|
|
17000
17019
|
stroke: s,
|
|
17001
17020
|
strokeWidth: 2,
|
|
@@ -17019,7 +17038,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17019
17038
|
const X = Ie("path");
|
|
17020
17039
|
return Ee(X, { d: C }), Ee(X, F), Ve(A, X), X;
|
|
17021
17040
|
}
|
|
17022
|
-
function
|
|
17041
|
+
function m(A, C, F, X) {
|
|
17023
17042
|
const le = C / 2, me = F / 2, Te = [
|
|
17024
17043
|
{
|
|
17025
17044
|
x: le,
|
|
@@ -17265,7 +17284,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17265
17284
|
fill: rn(C, c[C.type]?.fill || C.fill),
|
|
17266
17285
|
stroke: mt(C, c[C.type]?.stroke || C.stroke)
|
|
17267
17286
|
};
|
|
17268
|
-
return
|
|
17287
|
+
return m(A, C.width, C.height, F);
|
|
17269
17288
|
},
|
|
17270
17289
|
gatewayAnd(A, C) {
|
|
17271
17290
|
const F = d("gateway")(A, C);
|
|
@@ -17310,7 +17329,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17310
17329
|
}), F;
|
|
17311
17330
|
},
|
|
17312
17331
|
activity(A, C, F) {
|
|
17313
|
-
return F = F || {}, "fillOpacity" in F || (F.fillOpacity = Gi),
|
|
17332
|
+
return F = F || {}, "fillOpacity" in F || (F.fillOpacity = Gi), b(A, C.width, C.height, yl, F);
|
|
17314
17333
|
},
|
|
17315
17334
|
task(A, C) {
|
|
17316
17335
|
const F = {
|
|
@@ -17355,7 +17374,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17355
17374
|
}), F;
|
|
17356
17375
|
},
|
|
17357
17376
|
SubProcessMarker(A, C) {
|
|
17358
|
-
bn(
|
|
17377
|
+
bn(b(A, 14, 14, 0, {
|
|
17359
17378
|
strokeWidth: 1,
|
|
17360
17379
|
fill: rn(C, r),
|
|
17361
17380
|
stroke: mt(C, s)
|
|
@@ -17396,7 +17415,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17396
17415
|
strokeWidth: Zo(C, c[C.type]?.strokeWidth || C.strokeWidth || 1),
|
|
17397
17416
|
fill: rn(C, c[C.type]?.fill || C.fill),
|
|
17398
17417
|
stroke: mt(C, c[C.type]?.stroke || C.stroke)
|
|
17399
|
-
}, X =
|
|
17418
|
+
}, X = b(A, C.width, C.height, C.radius || yl, F);
|
|
17400
17419
|
return y(A, C, "center-middle"), S(A, C), L(A, C, C.iconX, C.iconY), X;
|
|
17401
17420
|
}
|
|
17402
17421
|
};
|
|
@@ -17528,28 +17547,28 @@ zi.prototype.layoutText = function(e, t) {
|
|
|
17528
17547
|
y: 0
|
|
17529
17548
|
}), Ee(d, a), Ve(fx(), d); s.length; ) c.push(sx(s, u, d));
|
|
17530
17549
|
o.vertical === "middle" && (i.top = i.bottom = 0);
|
|
17531
|
-
var f = il(c, function(v,
|
|
17532
|
-
return v + (r ||
|
|
17533
|
-
}, 0) + i.top + i.bottom, h = il(c, function(v,
|
|
17534
|
-
return
|
|
17550
|
+
var f = il(c, function(v, b, w) {
|
|
17551
|
+
return v + (r || b.height);
|
|
17552
|
+
}, 0) + i.top + i.bottom, h = il(c, function(v, b, w) {
|
|
17553
|
+
return b.width > v ? b.width : v;
|
|
17535
17554
|
}, 0), p = i.top;
|
|
17536
17555
|
o.vertical === "middle" && (p += (n.height - f) / 2), p -= (r || c[0].height) / 4;
|
|
17537
17556
|
var g = Ie("text");
|
|
17538
17557
|
return Ee(g, a), ae(c, function(v) {
|
|
17539
|
-
var
|
|
17558
|
+
var b;
|
|
17540
17559
|
switch (p += r || v.height, o.horizontal) {
|
|
17541
17560
|
case "left":
|
|
17542
|
-
|
|
17561
|
+
b = i.left;
|
|
17543
17562
|
break;
|
|
17544
17563
|
case "right":
|
|
17545
|
-
|
|
17564
|
+
b = (l ? h : u) - i.right - v.width;
|
|
17546
17565
|
break;
|
|
17547
17566
|
default:
|
|
17548
|
-
|
|
17567
|
+
b = Math.max(((l ? h : u) - v.width) / 2 + i.left, 0);
|
|
17549
17568
|
}
|
|
17550
17569
|
var w = Ie("tspan");
|
|
17551
17570
|
Ee(w, {
|
|
17552
|
-
x:
|
|
17571
|
+
x: b,
|
|
17553
17572
|
y: p
|
|
17554
17573
|
}), w.textContent = v.text, Ve(g, w);
|
|
17555
17574
|
}), qt(d), {
|
|
@@ -17950,7 +17969,7 @@ var bu = { myImporter: ["type", Xn] }, wu = (e) => {
|
|
|
17950
17969
|
updateElemet: (y) => {
|
|
17951
17970
|
v(y);
|
|
17952
17971
|
}
|
|
17953
|
-
}), (y, k) => (_(),
|
|
17972
|
+
}), (y, k) => (_(), O("div", {
|
|
17954
17973
|
ref_key: "containerRef",
|
|
17955
17974
|
ref: i,
|
|
17956
17975
|
class: "j-work-flow"
|
|
@@ -18215,68 +18234,68 @@ function sr(e) {
|
|
|
18215
18234
|
return CSS.escape(e);
|
|
18216
18235
|
}
|
|
18217
18236
|
function Ru(e, t, n, a, o) {
|
|
18218
|
-
function i(
|
|
18219
|
-
var y =
|
|
18220
|
-
return y <= 0 ||
|
|
18237
|
+
function i(m, x, E) {
|
|
18238
|
+
var y = m.index, k = m.point, S, T, R, M, D, L;
|
|
18239
|
+
return y <= 0 || m.bendpoint ? !1 : (S = x[y - 1], T = x[y], R = fl(S, T), M = $n(S, T), D = Math.abs(k.x - R.x), L = Math.abs(k.y - R.y), M && D <= E && L <= E);
|
|
18221
18240
|
}
|
|
18222
|
-
function l(
|
|
18223
|
-
var E =
|
|
18241
|
+
function l(m, x) {
|
|
18242
|
+
var E = m.waypoints, y, k, S, T;
|
|
18224
18243
|
return x.index <= 0 || x.bendpoint || (y = {
|
|
18225
18244
|
start: E[x.index - 1],
|
|
18226
18245
|
end: E[x.index]
|
|
18227
18246
|
}, k = $n(y.start, y.end), !k) ? null : (k === "h" ? S = y.end.x - y.start.x : S = y.end.y - y.start.y, T = wl(S) / 2, T);
|
|
18228
18247
|
}
|
|
18229
|
-
function r(
|
|
18230
|
-
var E = x.waypoints, y = ml(t, E,
|
|
18248
|
+
function r(m, x) {
|
|
18249
|
+
var E = x.waypoints, y = ml(t, E, m), k;
|
|
18231
18250
|
if (y)
|
|
18232
|
-
return k = l(x, y), i(y, E, k) ? o.start(
|
|
18251
|
+
return k = l(x, y), i(y, E, k) ? o.start(m, x, y.index) : a.start(m, x, y.index, !y.bendpoint), !0;
|
|
18233
18252
|
}
|
|
18234
|
-
function s(
|
|
18235
|
-
Qe.bind(
|
|
18253
|
+
function s(m, x, E) {
|
|
18254
|
+
Qe.bind(m, x, function(y) {
|
|
18236
18255
|
n.triggerMouseEvent(x, y, E), y.stopPropagation();
|
|
18237
18256
|
});
|
|
18238
18257
|
}
|
|
18239
|
-
function c(
|
|
18240
|
-
var E = t.getLayer("overlays"), y = Nt('.djs-bendpoints[data-element-id="' + sr(
|
|
18241
|
-
return !y && x && (y = Ie("g"), Ee(y, { "data-element-id":
|
|
18258
|
+
function c(m, x) {
|
|
18259
|
+
var E = t.getLayer("overlays"), y = Nt('.djs-bendpoints[data-element-id="' + sr(m.id) + '"]', E);
|
|
18260
|
+
return !y && x && (y = Ie("g"), Ee(y, { "data-element-id": m.id }), st(y).add("djs-bendpoints"), Ve(E, y), s(y, "mousedown", m), s(y, "click", m), s(y, "dblclick", m)), y;
|
|
18242
18261
|
}
|
|
18243
|
-
function u(
|
|
18244
|
-
return Nt('.djs-segment-dragger[data-segment-idx="' +
|
|
18262
|
+
function u(m, x) {
|
|
18263
|
+
return Nt('.djs-segment-dragger[data-segment-idx="' + m + '"]', x);
|
|
18245
18264
|
}
|
|
18246
|
-
function d(
|
|
18265
|
+
function d(m, x) {
|
|
18247
18266
|
x.waypoints.forEach(function(E, y) {
|
|
18248
|
-
var k = bl(
|
|
18249
|
-
Ve(
|
|
18250
|
-
}), bl(
|
|
18267
|
+
var k = bl(m);
|
|
18268
|
+
Ve(m, k), bn(k, E.x, E.y);
|
|
18269
|
+
}), bl(m, "floating");
|
|
18251
18270
|
}
|
|
18252
|
-
function f(
|
|
18271
|
+
function f(m, x) {
|
|
18253
18272
|
for (var E = x.waypoints, y, k, S, T = 1; T < E.length; T++)
|
|
18254
|
-
y = E[T - 1], k = E[T], $n(y, k) && (S = Eu(
|
|
18273
|
+
y = E[T - 1], k = E[T], $n(y, k) && (S = Eu(m, y, k), Ee(S, { "data-segment-idx": T }), s(S, "mousemove", x));
|
|
18255
18274
|
}
|
|
18256
|
-
function h(
|
|
18257
|
-
ae(nl("." + Su,
|
|
18275
|
+
function h(m) {
|
|
18276
|
+
ae(nl("." + Su, m), function(x) {
|
|
18258
18277
|
qt(x);
|
|
18259
18278
|
});
|
|
18260
18279
|
}
|
|
18261
|
-
function p(
|
|
18262
|
-
ae(nl("." + ku,
|
|
18280
|
+
function p(m) {
|
|
18281
|
+
ae(nl("." + ku, m), function(x) {
|
|
18263
18282
|
qt(x);
|
|
18264
18283
|
});
|
|
18265
18284
|
}
|
|
18266
|
-
function g(
|
|
18267
|
-
var x = c(
|
|
18268
|
-
return x || (x = c(
|
|
18285
|
+
function g(m) {
|
|
18286
|
+
var x = c(m);
|
|
18287
|
+
return x || (x = c(m, !0), d(x, m), f(x, m)), x;
|
|
18269
18288
|
}
|
|
18270
|
-
function v(
|
|
18271
|
-
var x = c(
|
|
18272
|
-
x && (p(x), h(x), f(x,
|
|
18289
|
+
function v(m) {
|
|
18290
|
+
var x = c(m);
|
|
18291
|
+
x && (p(x), h(x), f(x, m), d(x, m));
|
|
18273
18292
|
}
|
|
18274
|
-
function m
|
|
18275
|
-
var E = Nt(".floating",
|
|
18293
|
+
function b(m, x) {
|
|
18294
|
+
var E = Nt(".floating", m), y = x.point;
|
|
18276
18295
|
E && bn(E, y.x, y.y);
|
|
18277
18296
|
}
|
|
18278
|
-
function w(
|
|
18279
|
-
var y = u(x.index,
|
|
18297
|
+
function w(m, x, E) {
|
|
18298
|
+
var y = u(x.index, m), k = E[x.index - 1], S = E[x.index], T = x.point, R = fl(k, S), M = $n(k, S), D, L;
|
|
18280
18299
|
y && (D = Fx(y), L = {
|
|
18281
18300
|
x: T.x - R.x,
|
|
18282
18301
|
y: T.y - R.y
|
|
@@ -18285,36 +18304,36 @@ function Ru(e, t, n, a, o) {
|
|
|
18285
18304
|
y: L.x
|
|
18286
18305
|
}), bn(D, L.x, L.y));
|
|
18287
18306
|
}
|
|
18288
|
-
e.on("connection.changed", function(
|
|
18289
|
-
v(
|
|
18290
|
-
}), e.on("connection.remove", function(
|
|
18291
|
-
var x = c(
|
|
18307
|
+
e.on("connection.changed", function(m) {
|
|
18308
|
+
v(m.element);
|
|
18309
|
+
}), e.on("connection.remove", function(m) {
|
|
18310
|
+
var x = c(m.element);
|
|
18292
18311
|
x && qt(x);
|
|
18293
|
-
}), e.on("element.marker.update", function(
|
|
18294
|
-
var x =
|
|
18295
|
-
x.waypoints && (E = g(x),
|
|
18296
|
-
}), e.on("element.mousemove", function(
|
|
18297
|
-
var x =
|
|
18312
|
+
}), e.on("element.marker.update", function(m) {
|
|
18313
|
+
var x = m.element, E;
|
|
18314
|
+
x.waypoints && (E = g(x), m.add ? st(E).add(m.marker) : st(E).remove(m.marker));
|
|
18315
|
+
}), e.on("element.mousemove", function(m) {
|
|
18316
|
+
var x = m.element, E = x.waypoints, y, k;
|
|
18298
18317
|
if (E) {
|
|
18299
|
-
if (y = c(x, !0), k = ml(t, E,
|
|
18300
|
-
|
|
18318
|
+
if (y = c(x, !0), k = ml(t, E, m.originalEvent), !k) return;
|
|
18319
|
+
b(y, k), k.bendpoint || w(y, k, E);
|
|
18301
18320
|
}
|
|
18302
|
-
}), e.on("element.mousedown", function(
|
|
18303
|
-
if (Nn(
|
|
18304
|
-
var x =
|
|
18321
|
+
}), e.on("element.mousedown", function(m) {
|
|
18322
|
+
if (Nn(m)) {
|
|
18323
|
+
var x = m.originalEvent, E = m.element;
|
|
18305
18324
|
if (E.waypoints)
|
|
18306
18325
|
return r(x, E);
|
|
18307
18326
|
}
|
|
18308
|
-
}), e.on("selection.changed", function(
|
|
18309
|
-
var x =
|
|
18327
|
+
}), e.on("selection.changed", function(m) {
|
|
18328
|
+
var x = m.newSelection[0];
|
|
18310
18329
|
x && x.waypoints && g(x);
|
|
18311
|
-
}), e.on("element.hover", function(
|
|
18312
|
-
var x =
|
|
18313
|
-
x.waypoints && (g(x), n.registerEvent(
|
|
18314
|
-
}), e.on("element.out", function(
|
|
18315
|
-
n.unregisterEvent(
|
|
18316
|
-
}), e.on("element.updateId", function(
|
|
18317
|
-
var x =
|
|
18330
|
+
}), e.on("element.hover", function(m) {
|
|
18331
|
+
var x = m.element;
|
|
18332
|
+
x.waypoints && (g(x), n.registerEvent(m.gfx, "mousemove", "element.mousemove"));
|
|
18333
|
+
}), e.on("element.out", function(m) {
|
|
18334
|
+
n.unregisterEvent(m.gfx, "mousemove", "element.mousemove");
|
|
18335
|
+
}), e.on("element.updateId", function(m) {
|
|
18336
|
+
var x = m.element, E = m.newId;
|
|
18318
18337
|
if (x.waypoints) {
|
|
18319
18338
|
var y = c(x);
|
|
18320
18339
|
y && Ee(y, { "data-element-id": E });
|
|
@@ -18382,15 +18401,15 @@ function cr(e, t, n, a, o, i) {
|
|
|
18382
18401
|
var r = l.context, s = r.type;
|
|
18383
18402
|
r.hover = null, r.source = null, r.target = null, s !== qa && (r.allowed = !1);
|
|
18384
18403
|
}), t.on("bendpoint.move.end", function(l) {
|
|
18385
|
-
var r = l.context, s = r.allowed, c = r.bendpointIndex, u = r.connection, d = r.insert, f = u.waypoints.slice(), h = r.source, p = r.target, g = r.type, v = r.hints || {},
|
|
18404
|
+
var r = l.context, s = r.allowed, c = r.bendpointIndex, u = r.connection, d = r.insert, f = u.waypoints.slice(), h = r.source, p = r.target, g = r.type, v = r.hints || {}, b = {
|
|
18386
18405
|
x: Cs(l.x),
|
|
18387
18406
|
y: Cs(l.y)
|
|
18388
18407
|
};
|
|
18389
18408
|
if (!s) return !1;
|
|
18390
|
-
g === qa ? (d ? f.splice(c, 0,
|
|
18409
|
+
g === qa ? (d ? f.splice(c, 0, b) : f[c] = b, v.bendpointMove = {
|
|
18391
18410
|
insert: d,
|
|
18392
18411
|
bendpointIndex: c
|
|
18393
|
-
}, f = this.cropWaypoints(u, f), i.updateWaypoints(u, Kb(f), v)) : (g === la ? (v.docking = "source", vi(r) && (v.docking = "target", v.newWaypoints = f.reverse())) : g === ra && (v.docking = "target", vi(r) && (v.docking = "source", v.newWaypoints = f.reverse())), i.reconnect(u, h, p,
|
|
18412
|
+
}, f = this.cropWaypoints(u, f), i.updateWaypoints(u, Kb(f), v)) : (g === la ? (v.docking = "source", vi(r) && (v.docking = "target", v.newWaypoints = f.reverse())) : g === ra && (v.docking = "target", vi(r) && (v.docking = "source", v.newWaypoints = f.reverse())), i.reconnect(u, h, p, b, v));
|
|
18394
18413
|
}, this);
|
|
18395
18414
|
}
|
|
18396
18415
|
cr.$inject = [
|
|
@@ -18435,8 +18454,8 @@ function Tu(e, t, n, a) {
|
|
|
18435
18454
|
var l = i.context, r = l.allowed, s = l.bendpointIndex, c = l.draggerGfx, u = l.hover, d = l.type, f = l.connection, h = f.source, p = f.target, g = f.waypoints.slice(), v = {
|
|
18436
18455
|
x: i.x,
|
|
18437
18456
|
y: i.y
|
|
18438
|
-
},
|
|
18439
|
-
o && (
|
|
18457
|
+
}, b = l.hints || {}, w = {};
|
|
18458
|
+
o && (b.connectionStart && (w.connectionStart = b.connectionStart), b.connectionEnd && (w.connectionEnd = b.connectionEnd), d === Vx ? vi(l) ? (w.connectionEnd = w.connectionEnd || v, w.source = p, w.target = u || h, g = g.reverse()) : (w.connectionStart = w.connectionStart || v, w.source = u || h, w.target = p) : d === Nx ? vi(l) ? (w.connectionStart = w.connectionStart || v, w.source = u || p, w.target = h, g = g.reverse()) : (w.connectionEnd = w.connectionEnd || v, w.source = h, w.target = u || p) : (w.noCropping = !0, w.noLayout = !0, g[s] = v), d === Ss && (g = e.cropWaypoints(f, g)), w.waypoints = g, o.drawPreview(l, r, w)), bn(c, i.x, i.y);
|
|
18440
18459
|
}, this), n.on(["bendpoint.move.end", "bendpoint.move.cancel"], Ts, function(i) {
|
|
18441
18460
|
var l = i.context, r = l.connection, s = l.draggerGfx, c = l.hover, u = l.target;
|
|
18442
18461
|
r.waypoints = l.waypoints, qt(s), a.removeMarker(r, Es), a.removeMarker(r, Rs), c && (a.removeMarker(c, Za), a.removeMarker(c, u ? Za : ei)), o && o.cleanUp(l);
|
|
@@ -18472,15 +18491,15 @@ function Ps(e, t, n) {
|
|
|
18472
18491
|
function Au(e, t, n, a, o, i) {
|
|
18473
18492
|
var l = e.get("connectionDocking", !1);
|
|
18474
18493
|
this.start = function(d, f, h) {
|
|
18475
|
-
var p, g = n.getGraphics(f), v = h - 1,
|
|
18476
|
-
y && (k = y === "v" ? "x" : "y", v === 0 && (
|
|
18477
|
-
x: (
|
|
18478
|
-
y: (
|
|
18494
|
+
var p, g = n.getGraphics(f), v = h - 1, b = h, w = f.waypoints, m = w[v], x = w[b], E = ml(n, w, d), y = $n(m, x), k, S;
|
|
18495
|
+
y && (k = y === "v" ? "x" : "y", v === 0 && (m = Ps(m, f.source, k)), b === w.length - 1 && (x = Ps(x, f.target, k)), E ? S = E.point : S = {
|
|
18496
|
+
x: (m.x + x.x) / 2,
|
|
18497
|
+
y: (m.y + x.y) / 2
|
|
18479
18498
|
}, p = {
|
|
18480
18499
|
connection: f,
|
|
18481
18500
|
segmentStartIndex: v,
|
|
18482
|
-
segmentEndIndex:
|
|
18483
|
-
segmentStart:
|
|
18501
|
+
segmentEndIndex: b,
|
|
18502
|
+
segmentStart: m,
|
|
18484
18503
|
segmentEnd: x,
|
|
18485
18504
|
axis: k,
|
|
18486
18505
|
dragPosition: S
|
|
@@ -18502,8 +18521,8 @@ function Au(e, t, n, a, o, i) {
|
|
|
18502
18521
|
o.update("connection", d.connection, d.connectionGfx);
|
|
18503
18522
|
}
|
|
18504
18523
|
function c(d, f, h) {
|
|
18505
|
-
var p = d.newWaypoints, g = p[d.segmentStartIndex + f], v = p[d.segmentEndIndex + f],
|
|
18506
|
-
bn(d.draggerGfx,
|
|
18524
|
+
var p = d.newWaypoints, g = p[d.segmentStartIndex + f], v = p[d.segmentEndIndex + f], b = Wx(h, g, v, Mu(d.axis));
|
|
18525
|
+
bn(d.draggerGfx, b.x, b.y);
|
|
18507
18526
|
}
|
|
18508
18527
|
function u(d, f) {
|
|
18509
18528
|
var h = 0;
|
|
@@ -18518,10 +18537,10 @@ function Au(e, t, n, a, o, i) {
|
|
|
18518
18537
|
var f = d.context, h = d.connection, p = n.getLayer("overlays");
|
|
18519
18538
|
f.originalWaypoints = h.waypoints.slice(), f.draggerGfx = Eu(p, f.segmentStart, f.segmentEnd), st(f.draggerGfx).add("djs-dragging"), n.addMarker(h, As);
|
|
18520
18539
|
}), t.on("connectionSegment.move.move", function(d) {
|
|
18521
|
-
var f = d.context, h = f.connection, p = f.segmentStartIndex, g = f.segmentEndIndex, v = f.segmentStart,
|
|
18522
|
-
|
|
18540
|
+
var f = d.context, h = f.connection, p = f.segmentStartIndex, g = f.segmentEndIndex, v = f.segmentStart, b = f.segmentEnd, w = f.axis, m = f.originalWaypoints.slice(), x = js(v, w, d["d" + w]), E = js(b, w, d["d" + w]), y = m.length, k = 0;
|
|
18541
|
+
m[p] = x, m[g] = E;
|
|
18523
18542
|
var S, T;
|
|
18524
|
-
p < 2 && (S = Vn(h.source, x), p === 1 ? S === "intersect" && (
|
|
18543
|
+
p < 2 && (S = Vn(h.source, x), p === 1 ? S === "intersect" && (m.shift(), m[0] = x, k--) : S !== "intersect" && (m.unshift(v), k++)), g > y - 3 && (T = Vn(h.target, E), g === y - 2 ? T === "intersect" && (m.pop(), m[m.length - 1] = E) : T !== "intersect" && m.push(b)), f.newWaypoints = h.waypoints = r(h, m), c(f, k, d), f.newSegmentStartIndex = p + k, s(d);
|
|
18525
18544
|
}), t.on("connectionSegment.move.hover", function(d) {
|
|
18526
18545
|
d.context.hover = d.hover, n.addMarker(d.hover, Ms);
|
|
18527
18546
|
}), t.on(["connectionSegment.move.out", "connectionSegment.move.cleanup"], function(d) {
|
|
@@ -18542,9 +18561,9 @@ function Au(e, t, n, a, o, i) {
|
|
|
18542
18561
|
y: Math.round(E.y)
|
|
18543
18562
|
};
|
|
18544
18563
|
});
|
|
18545
|
-
var v = u(p, g),
|
|
18564
|
+
var v = u(p, g), b = v.waypoints, w = r(h, b), m = v.segmentOffset, x = { segmentMove: {
|
|
18546
18565
|
segmentStartIndex: f.segmentStartIndex,
|
|
18547
|
-
newSegmentStartIndex: g +
|
|
18566
|
+
newSegmentStartIndex: g + m
|
|
18548
18567
|
} };
|
|
18549
18568
|
i.updateWaypoints(h, w, x);
|
|
18550
18569
|
});
|
|
@@ -18702,8 +18721,8 @@ An.$inject = [
|
|
|
18702
18721
|
An.prototype.drawPreview = function(e, t, n) {
|
|
18703
18722
|
n = n || {};
|
|
18704
18723
|
var a = e.connectionPreviewGfx, o = e.getConnection, i = n.source, l = n.target, r = n.waypoints, s = n.connectionStart, c = n.connectionEnd, u = n.noLayout, d = n.noCropping, f = n.noNoop, h, p = this;
|
|
18705
|
-
if (a || (a = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), Al(a), o || (o = e.getConnection = Zx(function(g, v,
|
|
18706
|
-
return p.getConnection(g, v,
|
|
18724
|
+
if (a || (a = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), Al(a), o || (o = e.getConnection = Zx(function(g, v, b) {
|
|
18725
|
+
return p.getConnection(g, v, b);
|
|
18707
18726
|
})), t && (h = o(t, i, l)), !h) {
|
|
18708
18727
|
!f && this.drawNoopPreview(a, n);
|
|
18709
18728
|
return;
|
|
@@ -20304,17 +20323,17 @@ Oo.prototype.getEditingBBox = function(e) {
|
|
|
20304
20323
|
paddingTop: g + "px",
|
|
20305
20324
|
paddingBottom: v + "px"
|
|
20306
20325
|
})), ar(n) && !cu(n) && !fo(n)) {
|
|
20307
|
-
const
|
|
20308
|
-
x:
|
|
20309
|
-
y:
|
|
20326
|
+
const b = uu(e), w = t.getAbsoluteBBox({
|
|
20327
|
+
x: b.x,
|
|
20328
|
+
y: b.y,
|
|
20310
20329
|
width: 0,
|
|
20311
20330
|
height: 0
|
|
20312
|
-
}),
|
|
20331
|
+
}), m = c + g + v;
|
|
20313
20332
|
pt(i, {
|
|
20314
20333
|
width: p,
|
|
20315
|
-
height:
|
|
20334
|
+
height: m,
|
|
20316
20335
|
x: w.x - p / 2,
|
|
20317
|
-
y: w.y -
|
|
20336
|
+
y: w.y - m / 2
|
|
20318
20337
|
}), pt(h, {
|
|
20319
20338
|
fontSize: c + "px",
|
|
20320
20339
|
lineHeight: u,
|
|
@@ -20898,13 +20917,13 @@ vr.prototype.getContextPadEntries = function(e) {
|
|
|
20898
20917
|
}
|
|
20899
20918
|
function c(d, f, h, p) {
|
|
20900
20919
|
typeof h != "string" && (p = h);
|
|
20901
|
-
function g(
|
|
20902
|
-
const
|
|
20903
|
-
i.start(
|
|
20920
|
+
function g(b, w) {
|
|
20921
|
+
const m = a.createShape(pt({ type: d }, p));
|
|
20922
|
+
i.start(b, m, { source: w });
|
|
20904
20923
|
}
|
|
20905
|
-
function v(
|
|
20906
|
-
const
|
|
20907
|
-
o.append(w,
|
|
20924
|
+
function v(b, w) {
|
|
20925
|
+
const m = a.createShape(pt({ type: d }, p));
|
|
20926
|
+
o.append(w, m);
|
|
20908
20927
|
}
|
|
20909
20928
|
return {
|
|
20910
20929
|
group: "model",
|
|
@@ -21083,7 +21102,7 @@ var j_ = {
|
|
|
21083
21102
|
r.get("commandStack").redo();
|
|
21084
21103
|
}, g = () => {
|
|
21085
21104
|
r.get("commandStack").undo();
|
|
21086
|
-
}, v = () => (r.get("canvas").zoom(1), wu(r.get("elementRegistry").getAll())),
|
|
21105
|
+
}, v = () => (r.get("canvas").zoom(1), wu(r.get("elementRegistry").getAll())), b = (R) => {
|
|
21087
21106
|
r.clear(), c(), xu(R, r);
|
|
21088
21107
|
}, w = (R) => {
|
|
21089
21108
|
r.get("myImporter").update(R.id, R);
|
|
@@ -21103,12 +21122,12 @@ var j_ = {
|
|
|
21103
21122
|
},
|
|
21104
21123
|
getData: () => v(),
|
|
21105
21124
|
setData: (R) => {
|
|
21106
|
-
|
|
21125
|
+
b(R);
|
|
21107
21126
|
},
|
|
21108
21127
|
updateElemet: (R) => {
|
|
21109
21128
|
w(R);
|
|
21110
21129
|
}
|
|
21111
|
-
}), (R, M) => (_(),
|
|
21130
|
+
}), (R, M) => (_(), O("div", {
|
|
21112
21131
|
ref_key: "containerRef",
|
|
21113
21132
|
ref: i,
|
|
21114
21133
|
class: "j-work-flow"
|
|
@@ -21151,7 +21170,7 @@ var j_ = {
|
|
|
21151
21170
|
"rowChange"
|
|
21152
21171
|
],
|
|
21153
21172
|
setup(e, { expose: t, emit: n }) {
|
|
21154
|
-
const a = e, o = n, { t: i } =
|
|
21173
|
+
const a = e, o = n, { t: i } = jt(), { formData: l } = ha(), r = P(() => a.editConfig.isAddBtn !== !1), s = P(() => a.editConfig.addBtnText || "添加"), c = P(() => a.editConfig.buttonsAlign || "left"), u = P(() => a.editConfig.isRemoveBtn !== !1), d = P(() => a.editConfig.readonly), f = P(() => a.editConfig.isNullValue !== !1), h = j([]), p = (y) => {
|
|
21155
21174
|
o("rowChange", y);
|
|
21156
21175
|
}, g = () => {
|
|
21157
21176
|
const y = { _i: Fn() };
|
|
@@ -21176,7 +21195,7 @@ var j_ = {
|
|
|
21176
21195
|
tableData: h.value,
|
|
21177
21196
|
type: "delete"
|
|
21178
21197
|
});
|
|
21179
|
-
},
|
|
21198
|
+
}, b = () => {
|
|
21180
21199
|
const y = {
|
|
21181
21200
|
isOk: !0,
|
|
21182
21201
|
info: ""
|
|
@@ -21188,7 +21207,7 @@ var j_ = {
|
|
|
21188
21207
|
const M = h.value[R];
|
|
21189
21208
|
for (let D = 0; D < T; D++) {
|
|
21190
21209
|
const L = S[D];
|
|
21191
|
-
if (
|
|
21210
|
+
if (m(L.config, R).display !== !1 && L.rule && L.rule.length > 0) {
|
|
21192
21211
|
const N = L.rule.length;
|
|
21193
21212
|
for (let A = 0; A < N; A++) {
|
|
21194
21213
|
const C = L.rule[A];
|
|
@@ -21205,7 +21224,7 @@ var j_ = {
|
|
|
21205
21224
|
a.modelValue && a.modelValue.length > 0 ? (h.value = a.modelValue || [], h.value.forEach((y) => {
|
|
21206
21225
|
y._i || (y._i = Fn());
|
|
21207
21226
|
})) : (h.value = [], o("update:modelValue", h.value));
|
|
21208
|
-
const
|
|
21227
|
+
const m = (y, k) => {
|
|
21209
21228
|
const S = { ...y };
|
|
21210
21229
|
if (S.getUpConfig) {
|
|
21211
21230
|
const T = y.getUpConfig({
|
|
@@ -21224,17 +21243,17 @@ var j_ = {
|
|
|
21224
21243
|
const k = y || a.labelWidth;
|
|
21225
21244
|
return typeof k == "string" ? k : typeof k == "number" ? k + "px" : k;
|
|
21226
21245
|
};
|
|
21227
|
-
return t({ validate: () =>
|
|
21246
|
+
return t({ validate: () => b() }), Si({
|
|
21228
21247
|
getTableData: () => h.value,
|
|
21229
21248
|
rowChange: p
|
|
21230
21249
|
}), (y, k) => {
|
|
21231
21250
|
const S = B("j-comp"), T = B("el-form-item"), R = B("el-col"), M = B("j-button"), D = B("el-row");
|
|
21232
|
-
return _(),
|
|
21251
|
+
return _(), O(ge, null, [$("div", ze({ class: "j-input-cards" }, y.$attrs), [(_(!0), O(ge, null, ke(h.value, (L, N) => (_(), O("div", {
|
|
21233
21252
|
class: "j-input-cards-item",
|
|
21234
21253
|
key: L.i,
|
|
21235
21254
|
style: { "margin-bottom": "8px" }
|
|
21236
21255
|
}, [Y(D, { gutter: e.gutter }, {
|
|
21237
|
-
default: V(() => [(_(!0),
|
|
21256
|
+
default: V(() => [(_(!0), O(ge, null, ke(e.columns, (A) => (_(), H(R, {
|
|
21238
21257
|
key: A.prop,
|
|
21239
21258
|
span: A.config?.span || e.span || 24,
|
|
21240
21259
|
style: Re({ "margin-bottom": (A.getInputType ? A.getInputType(L) : A.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
@@ -21254,7 +21273,7 @@ var j_ = {
|
|
|
21254
21273
|
"extra",
|
|
21255
21274
|
"tooltip",
|
|
21256
21275
|
"required"
|
|
21257
|
-
]), [[lo,
|
|
21276
|
+
]), [[lo, m(A.config, N).display !== !1]])]),
|
|
21258
21277
|
_: 2
|
|
21259
21278
|
}, 1032, ["span", "style"]))), 128)), u.value && (f.value || h.value.length > 1) && !d.value ? (_(), H(M, {
|
|
21260
21279
|
key: 0,
|
|
@@ -21266,7 +21285,7 @@ var j_ = {
|
|
|
21266
21285
|
onClick: (A) => v(N)
|
|
21267
21286
|
}, null, 8, ["onClick"])) : K("", !0)]),
|
|
21268
21287
|
_: 2
|
|
21269
|
-
}, 1032, ["gutter"])]))), 128))], 16), r.value && !d.value ? (_(),
|
|
21288
|
+
}, 1032, ["gutter"])]))), 128))], 16), r.value && !d.value ? (_(), O("div", {
|
|
21270
21289
|
key: 0,
|
|
21271
21290
|
style: Re({ "text-align": c.value })
|
|
21272
21291
|
}, [r.value ? (_(), H(M, {
|
|
@@ -21444,7 +21463,7 @@ export {
|
|
|
21444
21463
|
gf as toTree,
|
|
21445
21464
|
AC as uniqueArray,
|
|
21446
21465
|
hf as upFirst,
|
|
21447
|
-
|
|
21466
|
+
jt as useAppInject,
|
|
21448
21467
|
BC as useAppProvide,
|
|
21449
21468
|
Lf as useAuthPageInject,
|
|
21450
21469
|
zf as useAuthPageProvide,
|